Struct aws_sdk_servicediscovery::operation::create_private_dns_namespace::builders::CreatePrivateDnsNamespaceFluentBuilder
source · pub struct CreatePrivateDnsNamespaceFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreatePrivateDnsNamespace
.
Creates a private namespace based on DNS, which is visible only inside a specified Amazon VPC. The namespace defines your service naming scheme. For example, if you name your namespace example.com
and name your service backend
, the resulting DNS name for the service is backend.example.com
. Service instances that are registered using a private DNS namespace can be discovered using either a DiscoverInstances
request or using DNS. For the current quota on the number of namespaces that you can create using the same Amazon Web Services account, see Cloud Map quotas in the Cloud Map Developer Guide.
Implementations§
source§impl CreatePrivateDnsNamespaceFluentBuilder
impl CreatePrivateDnsNamespaceFluentBuilder
sourcepub fn as_input(&self) -> &CreatePrivateDnsNamespaceInputBuilder
pub fn as_input(&self) -> &CreatePrivateDnsNamespaceInputBuilder
Access the CreatePrivateDnsNamespace as a reference.
sourcepub async fn send(
self
) -> Result<CreatePrivateDnsNamespaceOutput, SdkError<CreatePrivateDnsNamespaceError, HttpResponse>>
pub async fn send( self ) -> Result<CreatePrivateDnsNamespaceOutput, SdkError<CreatePrivateDnsNamespaceError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreatePrivateDnsNamespaceOutput, CreatePrivateDnsNamespaceError, Self>
pub fn customize( self ) -> CustomizableOperation<CreatePrivateDnsNamespaceOutput, CreatePrivateDnsNamespaceError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name that you want to assign to this namespace. When you create a private DNS namespace, Cloud Map automatically creates an Amazon Route 53 private hosted zone that has the same name as the namespace.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name that you want to assign to this namespace. When you create a private DNS namespace, Cloud Map automatically creates an Amazon Route 53 private hosted zone that has the same name as the namespace.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name that you want to assign to this namespace. When you create a private DNS namespace, Cloud Map automatically creates an Amazon Route 53 private hosted zone that has the same name as the namespace.
sourcepub fn creator_request_id(self, input: impl Into<String>) -> Self
pub fn creator_request_id(self, input: impl Into<String>) -> Self
A unique string that identifies the request and that allows failed CreatePrivateDnsNamespace
requests to be retried without the risk of running the operation twice. CreatorRequestId
can be any unique string (for example, a date/timestamp).
sourcepub fn set_creator_request_id(self, input: Option<String>) -> Self
pub fn set_creator_request_id(self, input: Option<String>) -> Self
A unique string that identifies the request and that allows failed CreatePrivateDnsNamespace
requests to be retried without the risk of running the operation twice. CreatorRequestId
can be any unique string (for example, a date/timestamp).
sourcepub fn get_creator_request_id(&self) -> &Option<String>
pub fn get_creator_request_id(&self) -> &Option<String>
A unique string that identifies the request and that allows failed CreatePrivateDnsNamespace
requests to be retried without the risk of running the operation twice. CreatorRequestId
can be any unique string (for example, a date/timestamp).
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description for the namespace.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description for the namespace.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description for the namespace.
sourcepub fn vpc(self, input: impl Into<String>) -> Self
pub fn vpc(self, input: impl Into<String>) -> Self
The ID of the Amazon VPC that you want to associate the namespace with.
sourcepub fn set_vpc(self, input: Option<String>) -> Self
pub fn set_vpc(self, input: Option<String>) -> Self
The ID of the Amazon VPC that you want to associate the namespace with.
sourcepub fn get_vpc(&self) -> &Option<String>
pub fn get_vpc(&self) -> &Option<String>
The ID of the Amazon VPC that you want to associate the namespace with.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
The tags to add to the namespace. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.
The tags to add to the namespace. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.
The tags to add to the namespace. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.
sourcepub fn properties(self, input: PrivateDnsNamespaceProperties) -> Self
pub fn properties(self, input: PrivateDnsNamespaceProperties) -> Self
Properties for the private DNS namespace.
sourcepub fn set_properties(
self,
input: Option<PrivateDnsNamespaceProperties>
) -> Self
pub fn set_properties( self, input: Option<PrivateDnsNamespaceProperties> ) -> Self
Properties for the private DNS namespace.
sourcepub fn get_properties(&self) -> &Option<PrivateDnsNamespaceProperties>
pub fn get_properties(&self) -> &Option<PrivateDnsNamespaceProperties>
Properties for the private DNS namespace.
Trait Implementations§
source§impl Clone for CreatePrivateDnsNamespaceFluentBuilder
impl Clone for CreatePrivateDnsNamespaceFluentBuilder
source§fn clone(&self) -> CreatePrivateDnsNamespaceFluentBuilder
fn clone(&self) -> CreatePrivateDnsNamespaceFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreatePrivateDnsNamespaceFluentBuilder
impl !RefUnwindSafe for CreatePrivateDnsNamespaceFluentBuilder
impl Send for CreatePrivateDnsNamespaceFluentBuilder
impl Sync for CreatePrivateDnsNamespaceFluentBuilder
impl Unpin for CreatePrivateDnsNamespaceFluentBuilder
impl !UnwindSafe for CreatePrivateDnsNamespaceFluentBuilder
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