Struct aws_sdk_ecs::types::builders::ServiceConnectServiceBuilder
source · #[non_exhaustive]pub struct ServiceConnectServiceBuilder { /* private fields */ }
Expand description
A builder for ServiceConnectService
.
Implementations§
source§impl ServiceConnectServiceBuilder
impl ServiceConnectServiceBuilder
sourcepub fn port_name(self, input: impl Into<String>) -> Self
pub fn port_name(self, input: impl Into<String>) -> Self
The portName
must match the name of one of the portMappings
from all the containers in the task definition of this Amazon ECS service.
sourcepub fn set_port_name(self, input: Option<String>) -> Self
pub fn set_port_name(self, input: Option<String>) -> Self
The portName
must match the name of one of the portMappings
from all the containers in the task definition of this Amazon ECS service.
sourcepub fn get_port_name(&self) -> &Option<String>
pub fn get_port_name(&self) -> &Option<String>
The portName
must match the name of one of the portMappings
from all the containers in the task definition of this Amazon ECS service.
sourcepub fn discovery_name(self, input: impl Into<String>) -> Self
pub fn discovery_name(self, input: impl Into<String>) -> Self
The discoveryName
is the name of the new Cloud Map service that Amazon ECS creates for this Amazon ECS service. This must be unique within the Cloud Map namespace. The name can contain up to 64 characters. The name can include lowercase letters, numbers, underscores (_), and hyphens (-). The name can't start with a hyphen.
If the discoveryName
isn't specified, the port mapping name from the task definition is used in portName.namespace
.
sourcepub fn set_discovery_name(self, input: Option<String>) -> Self
pub fn set_discovery_name(self, input: Option<String>) -> Self
The discoveryName
is the name of the new Cloud Map service that Amazon ECS creates for this Amazon ECS service. This must be unique within the Cloud Map namespace. The name can contain up to 64 characters. The name can include lowercase letters, numbers, underscores (_), and hyphens (-). The name can't start with a hyphen.
If the discoveryName
isn't specified, the port mapping name from the task definition is used in portName.namespace
.
sourcepub fn get_discovery_name(&self) -> &Option<String>
pub fn get_discovery_name(&self) -> &Option<String>
The discoveryName
is the name of the new Cloud Map service that Amazon ECS creates for this Amazon ECS service. This must be unique within the Cloud Map namespace. The name can contain up to 64 characters. The name can include lowercase letters, numbers, underscores (_), and hyphens (-). The name can't start with a hyphen.
If the discoveryName
isn't specified, the port mapping name from the task definition is used in portName.namespace
.
sourcepub fn client_aliases(self, input: ServiceConnectClientAlias) -> Self
pub fn client_aliases(self, input: ServiceConnectClientAlias) -> Self
Appends an item to client_aliases
.
To override the contents of this collection use set_client_aliases
.
The list of client aliases for this Service Connect service. You use these to assign names that can be used by client applications. The maximum number of client aliases that you can have in this list is 1.
Each alias ("endpoint") is a fully-qualified name and port number that other Amazon ECS tasks ("clients") can use to connect to this service.
Each name and port mapping must be unique within the namespace.
For each ServiceConnectService
, you must provide at least one clientAlias
with one port
.
sourcepub fn set_client_aliases(
self,
input: Option<Vec<ServiceConnectClientAlias>>
) -> Self
pub fn set_client_aliases( self, input: Option<Vec<ServiceConnectClientAlias>> ) -> Self
The list of client aliases for this Service Connect service. You use these to assign names that can be used by client applications. The maximum number of client aliases that you can have in this list is 1.
Each alias ("endpoint") is a fully-qualified name and port number that other Amazon ECS tasks ("clients") can use to connect to this service.
Each name and port mapping must be unique within the namespace.
For each ServiceConnectService
, you must provide at least one clientAlias
with one port
.
sourcepub fn get_client_aliases(&self) -> &Option<Vec<ServiceConnectClientAlias>>
pub fn get_client_aliases(&self) -> &Option<Vec<ServiceConnectClientAlias>>
The list of client aliases for this Service Connect service. You use these to assign names that can be used by client applications. The maximum number of client aliases that you can have in this list is 1.
Each alias ("endpoint") is a fully-qualified name and port number that other Amazon ECS tasks ("clients") can use to connect to this service.
Each name and port mapping must be unique within the namespace.
For each ServiceConnectService
, you must provide at least one clientAlias
with one port
.
sourcepub fn ingress_port_override(self, input: i32) -> Self
pub fn ingress_port_override(self, input: i32) -> Self
The port number for the Service Connect proxy to listen on.
Use the value of this field to bypass the proxy for traffic on the port number specified in the named portMapping
in the task definition of this application, and then use it in your VPC security groups to allow traffic into the proxy for this Amazon ECS service.
In awsvpc
mode and Fargate, the default value is the container port number. The container port number is in the portMapping
in the task definition. In bridge mode, the default value is the ephemeral port of the Service Connect proxy.
sourcepub fn set_ingress_port_override(self, input: Option<i32>) -> Self
pub fn set_ingress_port_override(self, input: Option<i32>) -> Self
The port number for the Service Connect proxy to listen on.
Use the value of this field to bypass the proxy for traffic on the port number specified in the named portMapping
in the task definition of this application, and then use it in your VPC security groups to allow traffic into the proxy for this Amazon ECS service.
In awsvpc
mode and Fargate, the default value is the container port number. The container port number is in the portMapping
in the task definition. In bridge mode, the default value is the ephemeral port of the Service Connect proxy.
sourcepub fn get_ingress_port_override(&self) -> &Option<i32>
pub fn get_ingress_port_override(&self) -> &Option<i32>
The port number for the Service Connect proxy to listen on.
Use the value of this field to bypass the proxy for traffic on the port number specified in the named portMapping
in the task definition of this application, and then use it in your VPC security groups to allow traffic into the proxy for this Amazon ECS service.
In awsvpc
mode and Fargate, the default value is the container port number. The container port number is in the portMapping
in the task definition. In bridge mode, the default value is the ephemeral port of the Service Connect proxy.
sourcepub fn build(self) -> Result<ServiceConnectService, BuildError>
pub fn build(self) -> Result<ServiceConnectService, BuildError>
Consumes the builder and constructs a ServiceConnectService
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ServiceConnectServiceBuilder
impl Clone for ServiceConnectServiceBuilder
source§fn clone(&self) -> ServiceConnectServiceBuilder
fn clone(&self) -> ServiceConnectServiceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServiceConnectServiceBuilder
impl Debug for ServiceConnectServiceBuilder
source§impl Default for ServiceConnectServiceBuilder
impl Default for ServiceConnectServiceBuilder
source§fn default() -> ServiceConnectServiceBuilder
fn default() -> ServiceConnectServiceBuilder
source§impl PartialEq for ServiceConnectServiceBuilder
impl PartialEq for ServiceConnectServiceBuilder
source§fn eq(&self, other: &ServiceConnectServiceBuilder) -> bool
fn eq(&self, other: &ServiceConnectServiceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.