Struct aws_sdk_ecs::types::ServiceConnectClientAlias
source · #[non_exhaustive]pub struct ServiceConnectClientAlias {
pub port: Option<i32>,
pub dns_name: Option<String>,
}
Expand description
Each alias ("endpoint") is a fully-qualified name and port number that other tasks ("clients") can use to connect to this service.
Each name and port mapping must be unique within the namespace.
Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.port: Option<i32>
The listening port number for the Service Connect proxy. This port is available inside of all of the tasks within the same namespace.
To avoid changing your applications in client Amazon ECS services, set this to the same port that the client application uses by default. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.
dns_name: Option<String>
The dnsName
is the name that you use in the applications of client tasks to connect to this service. The name must be a valid DNS name but doesn't need to be fully-qualified. The name can include up to 127 characters. The name can include lowercase letters, numbers, underscores (_), hyphens (-), and periods (.). The name can't start with a hyphen.
If this parameter isn't specified, the default value of discoveryName.namespace
is used. If the discoveryName
isn't specified, the port mapping name from the task definition is used in portName.namespace
.
To avoid changing your applications in client Amazon ECS services, set this to the same name that the client application uses by default. For example, a few common names are database
, db
, or the lowercase name of a database, such as mysql
or redis
. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.
Implementations§
source§impl ServiceConnectClientAlias
impl ServiceConnectClientAlias
sourcepub fn port(&self) -> Option<i32>
pub fn port(&self) -> Option<i32>
The listening port number for the Service Connect proxy. This port is available inside of all of the tasks within the same namespace.
To avoid changing your applications in client Amazon ECS services, set this to the same port that the client application uses by default. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.
sourcepub fn dns_name(&self) -> Option<&str>
pub fn dns_name(&self) -> Option<&str>
The dnsName
is the name that you use in the applications of client tasks to connect to this service. The name must be a valid DNS name but doesn't need to be fully-qualified. The name can include up to 127 characters. The name can include lowercase letters, numbers, underscores (_), hyphens (-), and periods (.). The name can't start with a hyphen.
If this parameter isn't specified, the default value of discoveryName.namespace
is used. If the discoveryName
isn't specified, the port mapping name from the task definition is used in portName.namespace
.
To avoid changing your applications in client Amazon ECS services, set this to the same name that the client application uses by default. For example, a few common names are database
, db
, or the lowercase name of a database, such as mysql
or redis
. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.
source§impl ServiceConnectClientAlias
impl ServiceConnectClientAlias
sourcepub fn builder() -> ServiceConnectClientAliasBuilder
pub fn builder() -> ServiceConnectClientAliasBuilder
Creates a new builder-style object to manufacture ServiceConnectClientAlias
.
Trait Implementations§
source§impl Clone for ServiceConnectClientAlias
impl Clone for ServiceConnectClientAlias
source§fn clone(&self) -> ServiceConnectClientAlias
fn clone(&self) -> ServiceConnectClientAlias
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServiceConnectClientAlias
impl Debug for ServiceConnectClientAlias
source§impl PartialEq<ServiceConnectClientAlias> for ServiceConnectClientAlias
impl PartialEq<ServiceConnectClientAlias> for ServiceConnectClientAlias
source§fn eq(&self, other: &ServiceConnectClientAlias) -> bool
fn eq(&self, other: &ServiceConnectClientAlias) -> bool
self
and other
values to be equal, and is used
by ==
.