#[non_exhaustive]pub struct ServiceConnectServiceResourceBuilder { /* private fields */ }
Expand description
A builder for ServiceConnectServiceResource
.
Implementations§
source§impl ServiceConnectServiceResourceBuilder
impl ServiceConnectServiceResourceBuilder
sourcepub fn discovery_name(self, input: impl Into<String>) -> Self
pub fn discovery_name(self, input: impl Into<String>) -> Self
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 set_discovery_name(self, input: Option<String>) -> Self
pub fn set_discovery_name(self, input: Option<String>) -> Self
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 get_discovery_name(&self) -> &Option<String>
pub fn get_discovery_name(&self) -> &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
.
sourcepub fn discovery_arn(self, input: impl Into<String>) -> Self
pub fn discovery_arn(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_discovery_arn(self, input: Option<String>) -> Self
pub fn set_discovery_arn(self, input: Option<String>) -> Self
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.
sourcepub fn get_discovery_arn(&self) -> &Option<String>
pub fn get_discovery_arn(&self) -> &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.
sourcepub fn build(self) -> ServiceConnectServiceResource
pub fn build(self) -> ServiceConnectServiceResource
Consumes the builder and constructs a ServiceConnectServiceResource
.
Trait Implementations§
source§impl Clone for ServiceConnectServiceResourceBuilder
impl Clone for ServiceConnectServiceResourceBuilder
source§fn clone(&self) -> ServiceConnectServiceResourceBuilder
fn clone(&self) -> ServiceConnectServiceResourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ServiceConnectServiceResourceBuilder
impl Default for ServiceConnectServiceResourceBuilder
source§fn default() -> ServiceConnectServiceResourceBuilder
fn default() -> ServiceConnectServiceResourceBuilder
source§impl PartialEq<ServiceConnectServiceResourceBuilder> for ServiceConnectServiceResourceBuilder
impl PartialEq<ServiceConnectServiceResourceBuilder> for ServiceConnectServiceResourceBuilder
source§fn eq(&self, other: &ServiceConnectServiceResourceBuilder) -> bool
fn eq(&self, other: &ServiceConnectServiceResourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.