AppMeshProxyConfiguration
- class aws_cdk.aws_ecs.AppMeshProxyConfiguration(*, container_name, properties)
Bases:
ProxyConfiguration
The class for App Mesh proxy configurations.
For tasks using the EC2 launch type, the container instances require at least version 1.26.0 of the container agent and at least version 1.26.0-1 of the ecs-init package to enable a proxy configuration. If your container instances are launched from the Amazon ECS-optimized AMI version 20190301 or later, then they contain the required versions of the container agent and ecs-init. For more information, see Amazon ECS-optimized AMIs.
For tasks using the Fargate launch type, the task or service requires platform version 1.3.0 or later.
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_ecs as ecs app_mesh_proxy_configuration = ecs.AppMeshProxyConfiguration( container_name="containerName", properties=ecs.AppMeshProxyConfigurationProps( app_ports=[123], proxy_egress_port=123, proxy_ingress_port=123, # the properties below are optional egress_ignored_iPs=["egressIgnoredIPs"], egress_ignored_ports=[123], ignored_gID=123, ignored_uID=123 ) )
Constructs a new instance of the AppMeshProxyConfiguration class.
- Parameters:
container_name (
str
) – The name of the container that will serve as the App Mesh proxy.properties (
Union
[AppMeshProxyConfigurationProps
,Dict
[str
,Any
]]) – The set of network configuration parameters to provide the Container Network Interface (CNI) plugin.
Methods
- bind(_scope, _task_definition)
Called when the proxy configuration is configured on a task definition.
- Parameters:
_scope (
Construct
)_task_definition (
TaskDefinition
)
- Return type: