Struct aws_sdk_ecs::types::ServiceConnectServiceResource
source · #[non_exhaustive]pub struct ServiceConnectServiceResource {
pub discovery_name: Option<String>,
pub discovery_arn: Option<String>,
}
Expand description
The Service Connect resource. Each configuration maps a discovery name to a Cloud Map service name. The data is stored in Cloud Map as part of the Service Connect configuration for each discovery name of this Amazon ECS service.
A task can resolve the dnsName
for each of the clientAliases
of a service. However a task can't resolve the discovery names. If you want to connect to a service, refer to the ServiceConnectConfiguration
of that service for the list of clientAliases
that you can use.
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.discovery_name: Option<String>
The discovery name of this Service Connect resource.
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
.
discovery_arn: Option<String>
The Amazon Resource Name (ARN) for the namespace in Cloud Map that matches the discovery name for this Service Connect resource. You can use this ARN in other integrations with Cloud Map. However, Service Connect can't ensure connectivity outside of Amazon ECS.
Implementations§
source§impl ServiceConnectServiceResource
impl ServiceConnectServiceResource
sourcepub fn discovery_name(&self) -> Option<&str>
pub fn discovery_name(&self) -> Option<&str>
The discovery name of this Service Connect resource.
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 discovery_arn(&self) -> Option<&str>
pub fn discovery_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) for the namespace in Cloud Map that matches the discovery name for this Service Connect resource. You can use this ARN in other integrations with Cloud Map. However, Service Connect can't ensure connectivity outside of Amazon ECS.
source§impl ServiceConnectServiceResource
impl ServiceConnectServiceResource
sourcepub fn builder() -> ServiceConnectServiceResourceBuilder
pub fn builder() -> ServiceConnectServiceResourceBuilder
Creates a new builder-style object to manufacture ServiceConnectServiceResource
.
Trait Implementations§
source§impl Clone for ServiceConnectServiceResource
impl Clone for ServiceConnectServiceResource
source§fn clone(&self) -> ServiceConnectServiceResource
fn clone(&self) -> ServiceConnectServiceResource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for ServiceConnectServiceResource
impl PartialEq for ServiceConnectServiceResource
source§fn eq(&self, other: &ServiceConnectServiceResource) -> bool
fn eq(&self, other: &ServiceConnectServiceResource) -> bool
self
and other
values to be equal, and is used
by ==
.