@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.568Z") @Stability(value=Stable) 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 |
|---|---|
|
AppMeshProxyConfiguration(AppMeshProxyConfigurationConfigProps props)
Constructs a new instance of the AppMeshProxyConfiguration class.
|
protected |
AppMeshProxyConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AppMeshProxyConfiguration(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
CfnTaskDefinition.ProxyConfigurationProperty |
bind(software.constructs.Construct _scope,
TaskDefinition _taskDefinition)
Called when the proxy configuration is configured on a task definition.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected AppMeshProxyConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
protected AppMeshProxyConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public AppMeshProxyConfiguration(@NotNull
AppMeshProxyConfigurationConfigProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull public CfnTaskDefinition.ProxyConfigurationProperty bind(@NotNull software.constructs.Construct _scope, @NotNull TaskDefinition _taskDefinition)
bind in class ProxyConfiguration_scope - This parameter is required._taskDefinition - This parameter is required.Copyright © 2022. All rights reserved.