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>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • containerName

      @Stability(Stable) public CfnTaskDefinition.ProxyConfigurationProperty.Builder containerName(String containerName)
      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 the user parameter in a container definition. This is used to ensure the proxy ignores its own traffic. If IgnoredGID is specified, this field can be empty.
      • IgnoredGID - (Required) The group ID (GID) of the proxy container as defined by the user parameter in a container definition. This is used to ensure the proxy ignores its own traffic. If IgnoredUID is specified, this field can be empty.
      • AppPorts - (Required) The list of ports that the application uses. Network traffic to these ports is forwarded to the ProxyIngressPort and ProxyEgressPort .
      • ProxyIngressPort - (Required) Specifies the port that incoming traffic to the AppPorts is directed to.
      • ProxyEgressPort - (Required) Specifies the port that outgoing traffic from the AppPorts is directed to.
      • EgressIgnoredPorts - (Required) The egress traffic going to the specified ports is ignored and not redirected to the ProxyEgressPort . It can be an empty list.
      • EgressIgnoredIPs - (Required) The egress traffic going to the specified IP addresses is ignored and not redirected to the ProxyEgressPort . 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 the user parameter in a container definition. This is used to ensure the proxy ignores its own traffic. If IgnoredGID is specified, this field can be empty.
      • IgnoredGID - (Required) The group ID (GID) of the proxy container as defined by the user parameter in a container definition. This is used to ensure the proxy ignores its own traffic. If IgnoredUID is specified, this field can be empty.
      • AppPorts - (Required) The list of ports that the application uses. Network traffic to these ports is forwarded to the ProxyIngressPort and ProxyEgressPort .
      • ProxyIngressPort - (Required) Specifies the port that incoming traffic to the AppPorts is directed to.
      • ProxyEgressPort - (Required) Specifies the port that outgoing traffic from the AppPorts is directed to.
      • EgressIgnoredPorts - (Required) The egress traffic going to the specified ports is ignored and not redirected to the ProxyEgressPort . It can be an empty list.
      • EgressIgnoredIPs - (Required) The egress traffic going to the specified IP addresses is ignored and not redirected to the ProxyEgressPort . It can be an empty list.
      Returns:
      this
    • type

      @Stability(Stable) public CfnTaskDefinition.ProxyConfigurationProperty.Builder type(String type)
      Parameters:
      type - The proxy type. The only supported value is APPMESH .
      Returns:
      this
    • build

      @Stability(Stable) public CfnTaskDefinition.ProxyConfigurationProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnTaskDefinition.ProxyConfigurationProperty>
      Returns:
      a new instance of CfnTaskDefinition.ProxyConfigurationProperty
      Throws:
      NullPointerException - if any required attribute was not provided