#[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 for ServiceConnectServiceResourceBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for ServiceConnectServiceResourceBuilder
Auto Trait Implementations§
impl Freeze for ServiceConnectServiceResourceBuilder
impl RefUnwindSafe for ServiceConnectServiceResourceBuilder
impl Send for ServiceConnectServiceResourceBuilder
impl Sync for ServiceConnectServiceResourceBuilder
impl Unpin for ServiceConnectServiceResourceBuilder
impl UnwindSafe for ServiceConnectServiceResourceBuilder
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> 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