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 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.
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 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.
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 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.
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
impl StructuralPartialEq for ProxyConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ProxyConfigurationBuilder
impl RefUnwindSafe for ProxyConfigurationBuilder
impl Send for ProxyConfigurationBuilder
impl Sync for ProxyConfigurationBuilder
impl Unpin for ProxyConfigurationBuilder
impl UnwindSafe for ProxyConfigurationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more