Class AppMeshProxyConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.AppMeshProxyConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AppMeshProxyConfigurationProps>
- Enclosing interface:
AppMeshProxyConfigurationProps
@Stability(Stable)
public static final class AppMeshProxyConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<AppMeshProxyConfigurationProps>
A builder for
AppMeshProxyConfigurationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofAppMeshProxyConfigurationProps.getAppPorts()
build()
Builds the configured instance.egressIgnoredIPs
(List<String> egressIgnoredIPs) Sets the value ofAppMeshProxyConfigurationProps.getEgressIgnoredIPs()
egressIgnoredPorts
(List<? extends Number> egressIgnoredPorts) Sets the value ofAppMeshProxyConfigurationProps.getEgressIgnoredPorts()
ignoredGid
(Number ignoredGid) Sets the value ofinvalid @link
AppMeshProxyConfigurationProps#getIgnoredGid
ignoredUid
(Number ignoredUid) Sets the value ofinvalid @link
AppMeshProxyConfigurationProps#getIgnoredUid
proxyEgressPort
(Number proxyEgressPort) Sets the value ofAppMeshProxyConfigurationProps.getProxyEgressPort()
proxyIngressPort
(Number proxyIngressPort) Sets the value ofAppMeshProxyConfigurationProps.getProxyIngressPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appPorts
@Stability(Stable) public AppMeshProxyConfigurationProps.Builder appPorts(List<? extends Number> appPorts) Sets the value ofAppMeshProxyConfigurationProps.getAppPorts()
- Parameters:
appPorts
- The list of ports that the application uses. This parameter is required. Network traffic to these ports is forwarded to the ProxyIngressPort and ProxyEgressPort.- Returns:
this
-
proxyEgressPort
@Stability(Stable) public AppMeshProxyConfigurationProps.Builder proxyEgressPort(Number proxyEgressPort) Sets the value ofAppMeshProxyConfigurationProps.getProxyEgressPort()
- Parameters:
proxyEgressPort
- Specifies the port that outgoing traffic from the AppPorts is directed to. This parameter is required.- Returns:
this
-
proxyIngressPort
@Stability(Stable) public AppMeshProxyConfigurationProps.Builder proxyIngressPort(Number proxyIngressPort) Sets the value ofAppMeshProxyConfigurationProps.getProxyIngressPort()
- Parameters:
proxyIngressPort
- Specifies the port that incoming traffic to the AppPorts is directed to. This parameter is required.- Returns:
this
-
egressIgnoredIPs
@Stability(Stable) public AppMeshProxyConfigurationProps.Builder egressIgnoredIPs(List<String> egressIgnoredIPs) Sets the value ofAppMeshProxyConfigurationProps.getEgressIgnoredIPs()
- Parameters:
egressIgnoredIPs
- The egress traffic going to these specified IP addresses is ignored and not redirected to the ProxyEgressPort. It can be an empty list.- Returns:
this
-
egressIgnoredPorts
@Stability(Stable) public AppMeshProxyConfigurationProps.Builder egressIgnoredPorts(List<? extends Number> egressIgnoredPorts) Sets the value ofAppMeshProxyConfigurationProps.getEgressIgnoredPorts()
- Parameters:
egressIgnoredPorts
- The egress traffic going to these specified ports is ignored and not redirected to the ProxyEgressPort. It can be an empty list.- Returns:
this
-
ignoredGid
Sets the value ofinvalid @link
AppMeshProxyConfigurationProps#getIgnoredGid
- Parameters:
ignoredGid
- 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.- Returns:
this
-
ignoredUid
Sets the value ofinvalid @link
AppMeshProxyConfigurationProps#getIgnoredUid
- Parameters:
ignoredUid
- 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AppMeshProxyConfigurationProps>
- Returns:
- a new instance of
AppMeshProxyConfigurationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-