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>
  • 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)
      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 CfnTaskDefinitionPropsMixin.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

      Parameters:
      type - The proxy type. The only supported value is APPMESH .
      Returns:
      this
    • build

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