@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-06-22T23:28:01.248Z") public class AppMeshProxyConfiguration extends ProxyConfiguration
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.
Example:
// 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.*; AppMeshProxyConfiguration appMeshProxyConfiguration = AppMeshProxyConfiguration.Builder.create() .containerName("containerName") .properties(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()) .build();
Modifier and Type | Class and Description |
---|---|
static class |
AppMeshProxyConfiguration.Builder
A fluent builder for
AppMeshProxyConfiguration . |
Modifier | Constructor and Description |
---|---|
protected |
AppMeshProxyConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AppMeshProxyConfiguration(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
CfnTaskDefinition.ProxyConfigurationProperty |
bind(Construct _scope,
TaskDefinition _taskDefinition)
Called when the proxy configuration is configured on a task definition.
|
protected AppMeshProxyConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
protected AppMeshProxyConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnTaskDefinition.ProxyConfigurationProperty bind(Construct _scope, TaskDefinition _taskDefinition)
bind
in class ProxyConfiguration
_scope
- This parameter is required._taskDefinition
- This parameter is required.