# AppMeshProxyConfigurationProps

Interface for setting the properties of proxy configuration.

- Source: [`aws-ecs/lib/proxy-configuration/app-mesh-proxy-configuration.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ecs/lib/proxy-configuration/app-mesh-proxy-configuration.ts#L11)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const appMeshProxyConfigurationProps: ecs.AppMeshProxyConfigurationProps = {
  appPorts: [123],
  proxyEgressPort: 123,
  proxyIngressPort: 123,

  // the properties below are optional
  egressIgnoredIPs: ['egressIgnoredIPs'],
  egressIgnoredPorts: [123],
  ignoredGID: 123,
  ignoredUID: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs

app_mesh_proxy_configuration_props = ecs.AppMeshProxyConfigurationProps(
    app_ports=[123],
    proxy_egress_port=123,
    proxy_ingress_port=123,

    # the properties below are optional
    egress_ignored_i_ps=["egressIgnoredIPs"],
    egress_ignored_ports=[123],
    ignored_gid=123,
    ignored_uid=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;

AppMeshProxyConfigurationProps appMeshProxyConfigurationProps = AppMeshProxyConfigurationProps.builder()
        .appPorts(List.of(123))
        .proxyEgressPort(123)
        .proxyIngressPort(123)

        // the properties below are optional
        .egressIgnoredIPs(List.of("egressIgnoredIPs"))
        .egressIgnoredPorts(List.of(123))
        .ignoredGID(123)
        .ignoredUID(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;

var appMeshProxyConfigurationProps = new AppMeshProxyConfigurationProps {
    AppPorts = new [] { 123 },
    ProxyEgressPort = 123,
    ProxyIngressPort = 123,

    // the properties below are optional
    EgressIgnoredIPs = new [] { "egressIgnoredIPs" },
    EgressIgnoredPorts = new [] { 123 },
    IgnoredGID = 123,
    IgnoredUID = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

appMeshProxyConfigurationProps := &AppMeshProxyConfigurationProps{
	AppPorts: []*f64{
		jsii.Number(123),
	},
	ProxyEgressPort: jsii.Number(123),
	ProxyIngressPort: jsii.Number(123),

	// the properties below are optional
	EgressIgnoredIPs: []*string{
		jsii.String("egressIgnoredIPs"),
	},
	EgressIgnoredPorts: []*f64{
		jsii.Number(123),
	},
	IgnoredGID: jsii.Number(123),
	IgnoredUID: jsii.Number(123),
}
```

## Properties

- `appPorts`: number[] (required) — The list of ports that the application uses.

  Network traffic to these ports is forwarded to the ProxyIngressPort and ProxyEgressPort.

- `egressIgnoredIPs`: string[] — The egress traffic going to these specified IP addresses is ignored and not redirected to the ProxyEgressPort.

  It can be an empty list.

- `egressIgnoredPorts`: number[] — The egress traffic going to these specified ports is ignored and not redirected to the ProxyEgressPort.

  It can be an empty list.

- `ignoredGID`: number — The group ID (GID) of the proxy container as defined by the user parameter in a container definition.

  This is used to ensure the proxy ignores its own traffic. If IgnoredUID is specified, this field can be empty.

- `ignoredUID`: number — The user ID (UID) of the proxy container as defined by the user parameter in a container definition.

  This is used to ensure the proxy ignores its own traffic. If IgnoredGID is specified, this field can be empty.

- `proxyEgressPort`: number (required) — Specifies the port that outgoing traffic from the AppPorts is directed to.

- `proxyIngressPort`: number (required) — Specifies the port that incoming traffic to the AppPorts is directed to.
