Struct aws_sdk_fsx::operation::associate_file_system_aliases::builders::AssociateFileSystemAliasesFluentBuilder
source · pub struct AssociateFileSystemAliasesFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to AssociateFileSystemAliases
.
Use this action to associate one or more Domain Name Server (DNS) aliases with an existing Amazon FSx for Windows File Server file system. A file system can have a maximum of 50 DNS aliases associated with it at any one time. If you try to associate a DNS alias that is already associated with the file system, FSx takes no action on that alias in the request. For more information, see Working with DNS Aliases and Walkthrough 5: Using DNS aliases to access your file system, including additional steps you must take to be able to access your file system using a DNS alias.
The system response shows the DNS aliases that Amazon FSx is attempting to associate with the file system. Use the API operation to monitor the status of the aliases Amazon FSx is associating with the file system.
Implementations§
source§impl AssociateFileSystemAliasesFluentBuilder
impl AssociateFileSystemAliasesFluentBuilder
sourcepub fn as_input(&self) -> &AssociateFileSystemAliasesInputBuilder
pub fn as_input(&self) -> &AssociateFileSystemAliasesInputBuilder
Access the AssociateFileSystemAliases as a reference.
sourcepub async fn send(
self
) -> Result<AssociateFileSystemAliasesOutput, SdkError<AssociateFileSystemAliasesError, HttpResponse>>
pub async fn send( self ) -> Result<AssociateFileSystemAliasesOutput, SdkError<AssociateFileSystemAliasesError, 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<AssociateFileSystemAliasesOutput, AssociateFileSystemAliasesError, Self>
pub fn customize( self ) -> CustomizableOperation<AssociateFileSystemAliasesOutput, AssociateFileSystemAliasesError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
sourcepub fn file_system_id(self, input: impl Into<String>) -> Self
pub fn file_system_id(self, input: impl Into<String>) -> Self
Specifies the file system with which you want to associate one or more DNS aliases.
sourcepub fn set_file_system_id(self, input: Option<String>) -> Self
pub fn set_file_system_id(self, input: Option<String>) -> Self
Specifies the file system with which you want to associate one or more DNS aliases.
sourcepub fn get_file_system_id(&self) -> &Option<String>
pub fn get_file_system_id(&self) -> &Option<String>
Specifies the file system with which you want to associate one or more DNS aliases.
sourcepub fn aliases(self, input: impl Into<String>) -> Self
pub fn aliases(self, input: impl Into<String>) -> Self
Appends an item to Aliases
.
To override the contents of this collection use set_aliases
.
An array of one or more DNS alias names to associate with the file system. The alias name has to comply with the following formatting requirements:
-
Formatted as a fully-qualified domain name (FQDN),
hostname.domain
, for example,accounting.corp.example.com
. -
Can contain alphanumeric characters and the hyphen (-).
-
Cannot start or end with a hyphen.
-
Can start with a numeric.
For DNS alias names, Amazon FSx stores alphabetic characters as lowercase letters (a-z), regardless of how you specify them: as uppercase letters, lowercase letters, or the corresponding letters in escape codes.
sourcepub fn set_aliases(self, input: Option<Vec<String>>) -> Self
pub fn set_aliases(self, input: Option<Vec<String>>) -> Self
An array of one or more DNS alias names to associate with the file system. The alias name has to comply with the following formatting requirements:
-
Formatted as a fully-qualified domain name (FQDN),
hostname.domain
, for example,accounting.corp.example.com
. -
Can contain alphanumeric characters and the hyphen (-).
-
Cannot start or end with a hyphen.
-
Can start with a numeric.
For DNS alias names, Amazon FSx stores alphabetic characters as lowercase letters (a-z), regardless of how you specify them: as uppercase letters, lowercase letters, or the corresponding letters in escape codes.
sourcepub fn get_aliases(&self) -> &Option<Vec<String>>
pub fn get_aliases(&self) -> &Option<Vec<String>>
An array of one or more DNS alias names to associate with the file system. The alias name has to comply with the following formatting requirements:
-
Formatted as a fully-qualified domain name (FQDN),
hostname.domain
, for example,accounting.corp.example.com
. -
Can contain alphanumeric characters and the hyphen (-).
-
Cannot start or end with a hyphen.
-
Can start with a numeric.
For DNS alias names, Amazon FSx stores alphabetic characters as lowercase letters (a-z), regardless of how you specify them: as uppercase letters, lowercase letters, or the corresponding letters in escape codes.
Trait Implementations§
source§impl Clone for AssociateFileSystemAliasesFluentBuilder
impl Clone for AssociateFileSystemAliasesFluentBuilder
source§fn clone(&self) -> AssociateFileSystemAliasesFluentBuilder
fn clone(&self) -> AssociateFileSystemAliasesFluentBuilder
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 AssociateFileSystemAliasesFluentBuilder
impl !RefUnwindSafe for AssociateFileSystemAliasesFluentBuilder
impl Send for AssociateFileSystemAliasesFluentBuilder
impl Sync for AssociateFileSystemAliasesFluentBuilder
impl Unpin for AssociateFileSystemAliasesFluentBuilder
impl !UnwindSafe for AssociateFileSystemAliasesFluentBuilder
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