Struct aws_sdk_datasync::types::LocationListEntry
source · #[non_exhaustive]pub struct LocationListEntry {
pub location_arn: Option<String>,
pub location_uri: Option<String>,
}
Expand description
Represents a single entry in a list of locations. LocationListEntry
returns an array that contains a list of locations when the ListLocations operation is called.
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.location_arn: Option<String>
The Amazon Resource Name (ARN) of the location. For Network File System (NFS) or Amazon EFS, the location is the export path. For Amazon S3, the location is the prefix path that you want to mount and use as the root of the location.
location_uri: Option<String>
Represents a list of URIs of a location. LocationUri
returns an array that contains a list of locations when the ListLocations operation is called.
Format: TYPE://GLOBAL_ID/SUBDIR
.
TYPE designates the type of location (for example, nfs
or s3
).
GLOBAL_ID is the globally unique identifier of the resource that backs the location. An example for EFS is us-east-2.fs-abcd1234
. An example for Amazon S3 is the bucket name, such as myBucket
. An example for NFS is a valid IPv4 address or a hostname that is compliant with Domain Name Service (DNS).
SUBDIR is a valid file system path, delimited by forward slashes as is the *nix convention. For NFS and Amazon EFS, it's the export path to mount the location. For Amazon S3, it's the prefix path that you mount to and treat as the root of the location.
Implementations§
source§impl LocationListEntry
impl LocationListEntry
sourcepub fn location_arn(&self) -> Option<&str>
pub fn location_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the location. For Network File System (NFS) or Amazon EFS, the location is the export path. For Amazon S3, the location is the prefix path that you want to mount and use as the root of the location.
sourcepub fn location_uri(&self) -> Option<&str>
pub fn location_uri(&self) -> Option<&str>
Represents a list of URIs of a location. LocationUri
returns an array that contains a list of locations when the ListLocations operation is called.
Format: TYPE://GLOBAL_ID/SUBDIR
.
TYPE designates the type of location (for example, nfs
or s3
).
GLOBAL_ID is the globally unique identifier of the resource that backs the location. An example for EFS is us-east-2.fs-abcd1234
. An example for Amazon S3 is the bucket name, such as myBucket
. An example for NFS is a valid IPv4 address or a hostname that is compliant with Domain Name Service (DNS).
SUBDIR is a valid file system path, delimited by forward slashes as is the *nix convention. For NFS and Amazon EFS, it's the export path to mount the location. For Amazon S3, it's the prefix path that you mount to and treat as the root of the location.
source§impl LocationListEntry
impl LocationListEntry
sourcepub fn builder() -> LocationListEntryBuilder
pub fn builder() -> LocationListEntryBuilder
Creates a new builder-style object to manufacture LocationListEntry
.
Trait Implementations§
source§impl Clone for LocationListEntry
impl Clone for LocationListEntry
source§fn clone(&self) -> LocationListEntry
fn clone(&self) -> LocationListEntry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocationListEntry
impl Debug for LocationListEntry
source§impl PartialEq for LocationListEntry
impl PartialEq for LocationListEntry
source§fn eq(&self, other: &LocationListEntry) -> bool
fn eq(&self, other: &LocationListEntry) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LocationListEntry
Auto Trait Implementations§
impl Freeze for LocationListEntry
impl RefUnwindSafe for LocationListEntry
impl Send for LocationListEntry
impl Sync for LocationListEntry
impl Unpin for LocationListEntry
impl UnwindSafe for LocationListEntry
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