Class CfnTaskDefinitionPropsMixin.ProxyConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnTaskDefinitionPropsMixin.ProxyConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinitionPropsMixin.ProxyConfigurationProperty>
- Enclosing interface:
CfnTaskDefinitionPropsMixin.ProxyConfigurationProperty
@Stability(Stable)
public static final class CfnTaskDefinitionPropsMixin.ProxyConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinitionPropsMixin.ProxyConfigurationProperty>
A builder for
CfnTaskDefinitionPropsMixin.ProxyConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerName(String containerName) proxyConfigurationProperties(List<? extends Object> proxyConfigurationProperties) proxyConfigurationProperties(IResolvable proxyConfigurationProperties) Sets the value ofCfnTaskDefinitionPropsMixin.ProxyConfigurationProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerName
@Stability(Stable) public CfnTaskDefinitionPropsMixin.ProxyConfigurationProperty.Builder containerName(String containerName) - Parameters:
containerName- The name of the container that will serve as the App Mesh proxy.- Returns:
this
-
proxyConfigurationProperties
@Stability(Stable) public CfnTaskDefinitionPropsMixin.ProxyConfigurationProperty.Builder proxyConfigurationProperties(IResolvable proxyConfigurationProperties) Sets the value ofCfnTaskDefinitionPropsMixin.ProxyConfigurationProperty.getProxyConfigurationProperties()- 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 CfnTaskDefinitionPropsMixin.ProxyConfigurationProperty.Builder proxyConfigurationProperties(List<? extends Object> proxyConfigurationProperties) Sets the value ofCfnTaskDefinitionPropsMixin.ProxyConfigurationProperty.getProxyConfigurationProperties()- 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
@Stability(Stable) public CfnTaskDefinitionPropsMixin.ProxyConfigurationProperty.Builder type(String type) Sets the value ofCfnTaskDefinitionPropsMixin.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<CfnTaskDefinitionPropsMixin.ProxyConfigurationProperty>- Returns:
- a new instance of
CfnTaskDefinitionPropsMixin.ProxyConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-