interface AppMeshProxyConfigurationProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.AppMeshProxyConfigurationProps |
Java | software.amazon.awscdk.services.ecs.AppMeshProxyConfigurationProps |
Python | aws_cdk.aws_ecs.AppMeshProxyConfigurationProps |
TypeScript (source) | @aws-cdk/aws-ecs » AppMeshProxyConfigurationProps |
Interface for setting the properties of proxy configuration.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ecs from '@aws-cdk/aws-ecs';
const appMeshProxyConfigurationProps: ecs.AppMeshProxyConfigurationProps = {
appPorts: [123],
proxyEgressPort: 123,
proxyIngressPort: 123,
// the properties below are optional
egressIgnoredIPs: ['egressIgnoredIPs'],
egressIgnoredPorts: [123],
ignoredGID: 123,
ignoredUID: 123,
};
Properties
Name | Type | Description |
---|---|---|
app | number[] | The list of ports that the application uses. |
proxy | number | Specifies the port that outgoing traffic from the AppPorts is directed to. |
proxy | number | Specifies the port that incoming traffic to the AppPorts is directed to. |
egress | string[] | The egress traffic going to these specified IP addresses is ignored and not redirected to the ProxyEgressPort. |
egress | number[] | The egress traffic going to these specified ports is ignored and not redirected to the ProxyEgressPort. |
ignored | number | The group ID (GID) of the proxy container as defined by the user parameter in a container definition. |
ignored | number | The user ID (UID) of the proxy container as defined by the user parameter in a container definition. |
appPorts
Type:
number[]
The list of ports that the application uses.
Network traffic to these ports is forwarded to the ProxyIngressPort and ProxyEgressPort.
proxyEgressPort
Type:
number
Specifies the port that outgoing traffic from the AppPorts is directed to.
proxyIngressPort
Type:
number
Specifies the port that incoming traffic to the AppPorts is directed to.
egressIgnoredIPs?
Type:
string[]
(optional)
The egress traffic going to these specified IP addresses is ignored and not redirected to the ProxyEgressPort.
It can be an empty list.
egressIgnoredPorts?
Type:
number[]
(optional)
The egress traffic going to these specified ports is ignored and not redirected to the ProxyEgressPort.
It can be an empty list.
ignoredGID?
Type:
number
(optional)
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?
Type:
number
(optional)
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.