Struct aws_sdk_fsx::types::Alias
source · #[non_exhaustive]pub struct Alias {
pub name: Option<String>,
pub lifecycle: Option<AliasLifecycle>,
}
Expand description
A DNS alias that is associated with the file system. You can use a DNS alias to access a file system using user-defined DNS names, in addition to the default DNS name that Amazon FSx assigns to the file system. For more information, see DNS aliases in the FSx for Windows File Server User Guide.
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.name: Option<String>
The name of the DNS alias. The alias name has to meet the following requirements:
-
Formatted as a fully-qualified domain name (FQDN),
hostname.domain
, for example,accounting.example.com
. -
Can contain alphanumeric characters, the underscore (_), and the hyphen (-).
-
Cannot start or end with a hyphen.
-
Can start with a numeric.
For DNS 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.
lifecycle: Option<AliasLifecycle>
Describes the state of the DNS alias.
-
AVAILABLE - The DNS alias is associated with an Amazon FSx file system.
-
CREATING - Amazon FSx is creating the DNS alias and associating it with the file system.
-
CREATE_FAILED - Amazon FSx was unable to associate the DNS alias with the file system.
-
DELETING - Amazon FSx is disassociating the DNS alias from the file system and deleting it.
-
DELETE_FAILED - Amazon FSx was unable to disassociate the DNS alias from the file system.
Implementations§
source§impl Alias
impl Alias
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the DNS alias. The alias name has to meet the following requirements:
-
Formatted as a fully-qualified domain name (FQDN),
hostname.domain
, for example,accounting.example.com
. -
Can contain alphanumeric characters, the underscore (_), and the hyphen (-).
-
Cannot start or end with a hyphen.
-
Can start with a numeric.
For DNS 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 lifecycle(&self) -> Option<&AliasLifecycle>
pub fn lifecycle(&self) -> Option<&AliasLifecycle>
Describes the state of the DNS alias.
-
AVAILABLE - The DNS alias is associated with an Amazon FSx file system.
-
CREATING - Amazon FSx is creating the DNS alias and associating it with the file system.
-
CREATE_FAILED - Amazon FSx was unable to associate the DNS alias with the file system.
-
DELETING - Amazon FSx is disassociating the DNS alias from the file system and deleting it.
-
DELETE_FAILED - Amazon FSx was unable to disassociate the DNS alias from the file system.
Trait Implementations§
source§impl PartialEq for Alias
impl PartialEq for Alias
impl StructuralPartialEq for Alias
Auto Trait Implementations§
impl Freeze for Alias
impl RefUnwindSafe for Alias
impl Send for Alias
impl Sync for Alias
impl Unpin for Alias
impl UnwindSafe for Alias
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