Class CfnTaskDefinition.ProxyConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.ProxyConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.ProxyConfigurationProperty>
- Enclosing interface:
CfnTaskDefinition.ProxyConfigurationProperty
@Stability(Stable)
public static final class CfnTaskDefinition.ProxyConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.ProxyConfigurationProperty>
A builder for
CfnTaskDefinition.ProxyConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerName(String containerName) Sets the value ofCfnTaskDefinition.ProxyConfigurationProperty.getContainerName()proxyConfigurationProperties(List<? extends Object> proxyConfigurationProperties) proxyConfigurationProperties(IResolvable proxyConfigurationProperties) Sets the value ofCfnTaskDefinition.ProxyConfigurationProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerName
@Stability(Stable) public CfnTaskDefinition.ProxyConfigurationProperty.Builder containerName(String containerName) Sets the value ofCfnTaskDefinition.ProxyConfigurationProperty.getContainerName()- Parameters:
containerName- The name of the container that will serve as the App Mesh proxy. This parameter is required.- Returns:
this
-
proxyConfigurationProperties
@Stability(Stable) public CfnTaskDefinition.ProxyConfigurationProperty.Builder proxyConfigurationProperties(IResolvable proxyConfigurationProperties) - Parameters:
proxyConfigurationProperties- The set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified as key-value pairs.IgnoredUID- (Required) The user ID (UID) of the proxy container as defined by theuserparameter in a container definition. This is used to ensure the proxy ignores its own traffic. IfIgnoredGIDis specified, this field can be empty.IgnoredGID- (Required) The group ID (GID) of the proxy container as defined by theuserparameter in a container definition. This is used to ensure the proxy ignores its own traffic. IfIgnoredUIDis specified, this field can be empty.AppPorts- (Required) The list of ports that the application uses. Network traffic to these ports is forwarded to theProxyIngressPortandProxyEgressPort.ProxyIngressPort- (Required) Specifies the port that incoming traffic to theAppPortsis directed to.ProxyEgressPort- (Required) Specifies the port that outgoing traffic from theAppPortsis directed to.EgressIgnoredPorts- (Required) The egress traffic going to the specified ports is ignored and not redirected to theProxyEgressPort. It can be an empty list.EgressIgnoredIPs- (Required) The egress traffic going to the specified IP addresses is ignored and not redirected to theProxyEgressPort. It can be an empty list.
- Returns:
this
-
proxyConfigurationProperties
@Stability(Stable) public CfnTaskDefinition.ProxyConfigurationProperty.Builder proxyConfigurationProperties(List<? extends Object> proxyConfigurationProperties) - Parameters:
proxyConfigurationProperties- The set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified as key-value pairs.IgnoredUID- (Required) The user ID (UID) of the proxy container as defined by theuserparameter in a container definition. This is used to ensure the proxy ignores its own traffic. IfIgnoredGIDis specified, this field can be empty.IgnoredGID- (Required) The group ID (GID) of the proxy container as defined by theuserparameter in a container definition. This is used to ensure the proxy ignores its own traffic. IfIgnoredUIDis specified, this field can be empty.AppPorts- (Required) The list of ports that the application uses. Network traffic to these ports is forwarded to theProxyIngressPortandProxyEgressPort.ProxyIngressPort- (Required) Specifies the port that incoming traffic to theAppPortsis directed to.ProxyEgressPort- (Required) Specifies the port that outgoing traffic from theAppPortsis directed to.EgressIgnoredPorts- (Required) The egress traffic going to the specified ports is ignored and not redirected to theProxyEgressPort. It can be an empty list.EgressIgnoredIPs- (Required) The egress traffic going to the specified IP addresses is ignored and not redirected to theProxyEgressPort. It can be an empty list.
- Returns:
this
-
type
Sets the value ofCfnTaskDefinition.ProxyConfigurationProperty.getType()- Parameters:
type- The proxy type. The only supported value isAPPMESH.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.ProxyConfigurationProperty>- Returns:
- a new instance of
CfnTaskDefinition.ProxyConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-