Struct aws_sdk_ecs::types::builders::ProxyConfigurationBuilder
source · #[non_exhaustive]pub struct ProxyConfigurationBuilder { /* private fields */ }
Expand description
A builder for ProxyConfiguration
.
Implementations§
source§impl ProxyConfigurationBuilder
impl ProxyConfigurationBuilder
sourcepub fn type(self, input: ProxyConfigurationType) -> Self
pub fn type(self, input: ProxyConfigurationType) -> Self
The proxy type. The only supported value is APPMESH
.
sourcepub fn set_type(self, input: Option<ProxyConfigurationType>) -> Self
pub fn set_type(self, input: Option<ProxyConfigurationType>) -> Self
The proxy type. The only supported value is APPMESH
.
sourcepub fn get_type(&self) -> &Option<ProxyConfigurationType>
pub fn get_type(&self) -> &Option<ProxyConfigurationType>
The proxy type. The only supported value is APPMESH
.
sourcepub fn container_name(self, input: impl Into<String>) -> Self
pub fn container_name(self, input: impl Into<String>) -> Self
The name of the container that will serve as the App Mesh proxy.
This field is required.sourcepub fn set_container_name(self, input: Option<String>) -> Self
pub fn set_container_name(self, input: Option<String>) -> Self
The name of the container that will serve as the App Mesh proxy.
sourcepub fn get_container_name(&self) -> &Option<String>
pub fn get_container_name(&self) -> &Option<String>
The name of the container that will serve as the App Mesh proxy.
sourcepub fn properties(self, input: KeyValuePair) -> Self
pub fn properties(self, input: KeyValuePair) -> Self
Appends an item to properties
.
To override the contents of this collection use set_properties
.
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 theuser
parameter in a container definition. This is used to ensure the proxy ignores its own traffic. IfIgnoredGID
is specified, this field can be empty. -
IgnoredGID
- (Required) The group ID (GID) of the proxy container as defined by theuser
parameter in a container definition. This is used to ensure the proxy ignores its own traffic. IfIgnoredUID
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 theProxyIngressPort
andProxyEgressPort
. -
ProxyIngressPort
- (Required) Specifies the port that incoming traffic to theAppPorts
is directed to. -
ProxyEgressPort
- (Required) Specifies the port that outgoing traffic from theAppPorts
is 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.
sourcepub fn set_properties(self, input: Option<Vec<KeyValuePair>>) -> Self
pub fn set_properties(self, input: Option<Vec<KeyValuePair>>) -> Self
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 theuser
parameter in a container definition. This is used to ensure the proxy ignores its own traffic. IfIgnoredGID
is specified, this field can be empty. -
IgnoredGID
- (Required) The group ID (GID) of the proxy container as defined by theuser
parameter in a container definition. This is used to ensure the proxy ignores its own traffic. IfIgnoredUID
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 theProxyIngressPort
andProxyEgressPort
. -
ProxyIngressPort
- (Required) Specifies the port that incoming traffic to theAppPorts
is directed to. -
ProxyEgressPort
- (Required) Specifies the port that outgoing traffic from theAppPorts
is 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.
sourcepub fn get_properties(&self) -> &Option<Vec<KeyValuePair>>
pub fn get_properties(&self) -> &Option<Vec<KeyValuePair>>
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 theuser
parameter in a container definition. This is used to ensure the proxy ignores its own traffic. IfIgnoredGID
is specified, this field can be empty. -
IgnoredGID
- (Required) The group ID (GID) of the proxy container as defined by theuser
parameter in a container definition. This is used to ensure the proxy ignores its own traffic. IfIgnoredUID
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 theProxyIngressPort
andProxyEgressPort
. -
ProxyIngressPort
- (Required) Specifies the port that incoming traffic to theAppPorts
is directed to. -
ProxyEgressPort
- (Required) Specifies the port that outgoing traffic from theAppPorts
is 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.
sourcepub fn build(self) -> Result<ProxyConfiguration, BuildError>
pub fn build(self) -> Result<ProxyConfiguration, BuildError>
Consumes the builder and constructs a ProxyConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ProxyConfigurationBuilder
impl Clone for ProxyConfigurationBuilder
source§fn clone(&self) -> ProxyConfigurationBuilder
fn clone(&self) -> ProxyConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProxyConfigurationBuilder
impl Debug for ProxyConfigurationBuilder
source§impl Default for ProxyConfigurationBuilder
impl Default for ProxyConfigurationBuilder
source§fn default() -> ProxyConfigurationBuilder
fn default() -> ProxyConfigurationBuilder
source§impl PartialEq for ProxyConfigurationBuilder
impl PartialEq for ProxyConfigurationBuilder
source§fn eq(&self, other: &ProxyConfigurationBuilder) -> bool
fn eq(&self, other: &ProxyConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.