#[non_exhaustive]pub struct CreateLocationSmbInput {
pub subdirectory: Option<String>,
pub server_hostname: Option<String>,
pub user: Option<String>,
pub domain: Option<String>,
pub password: Option<String>,
pub agent_arns: Option<Vec<String>>,
pub mount_options: Option<SmbMountOptions>,
pub tags: Option<Vec<TagListEntry>>,
}
Expand description
CreateLocationSmbRequest
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.subdirectory: Option<String>
Specifies the name of the share exported by your SMB file server where DataSync will read or write data. You can include a subdirectory in the share path (for example, /path/to/subdirectory
). Make sure that other SMB clients in your network can also mount this path.
To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see required permissions for SMB locations.
server_hostname: Option<String>
Specifies the Domain Name Service (DNS) name or IP address of the SMB file server that your DataSync agent will mount.
You can't specify an IP version 6 (IPv6) address.
user: Option<String>
Specifies the user that can mount and access the files, folders, and file metadata in your SMB file server.
For information about choosing a user with the right level of access for your transfer, see required permissions for SMB locations.
domain: Option<String>
Specifies the name of the Active Directory domain that your SMB file server belongs to.
If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file server.
password: Option<String>
Specifies the password of the user who can mount your SMB file server and has permission to access the files and folders involved in your transfer.
For more information, see required permissions for SMB locations.
agent_arns: Option<Vec<String>>
Specifies the DataSync agent (or agents) which you want to connect to your SMB file server. You specify an agent by using its Amazon Resource Name (ARN).
mount_options: Option<SmbMountOptions>
Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.
Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
Implementations§
source§impl CreateLocationSmbInput
impl CreateLocationSmbInput
sourcepub fn subdirectory(&self) -> Option<&str>
pub fn subdirectory(&self) -> Option<&str>
Specifies the name of the share exported by your SMB file server where DataSync will read or write data. You can include a subdirectory in the share path (for example, /path/to/subdirectory
). Make sure that other SMB clients in your network can also mount this path.
To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see required permissions for SMB locations.
sourcepub fn server_hostname(&self) -> Option<&str>
pub fn server_hostname(&self) -> Option<&str>
Specifies the Domain Name Service (DNS) name or IP address of the SMB file server that your DataSync agent will mount.
You can't specify an IP version 6 (IPv6) address.
sourcepub fn user(&self) -> Option<&str>
pub fn user(&self) -> Option<&str>
Specifies the user that can mount and access the files, folders, and file metadata in your SMB file server.
For information about choosing a user with the right level of access for your transfer, see required permissions for SMB locations.
sourcepub fn domain(&self) -> Option<&str>
pub fn domain(&self) -> Option<&str>
Specifies the name of the Active Directory domain that your SMB file server belongs to.
If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file server.
sourcepub fn password(&self) -> Option<&str>
pub fn password(&self) -> Option<&str>
Specifies the password of the user who can mount your SMB file server and has permission to access the files and folders involved in your transfer.
For more information, see required permissions for SMB locations.
sourcepub fn agent_arns(&self) -> &[String]
pub fn agent_arns(&self) -> &[String]
Specifies the DataSync agent (or agents) which you want to connect to your SMB file server. You specify an agent by using its Amazon Resource Name (ARN).
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .agent_arns.is_none()
.
sourcepub fn mount_options(&self) -> Option<&SmbMountOptions>
pub fn mount_options(&self) -> Option<&SmbMountOptions>
Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.
Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CreateLocationSmbInput
impl CreateLocationSmbInput
sourcepub fn builder() -> CreateLocationSmbInputBuilder
pub fn builder() -> CreateLocationSmbInputBuilder
Creates a new builder-style object to manufacture CreateLocationSmbInput
.
Trait Implementations§
source§impl Clone for CreateLocationSmbInput
impl Clone for CreateLocationSmbInput
source§fn clone(&self) -> CreateLocationSmbInput
fn clone(&self) -> CreateLocationSmbInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateLocationSmbInput
impl Debug for CreateLocationSmbInput
source§impl PartialEq for CreateLocationSmbInput
impl PartialEq for CreateLocationSmbInput
source§fn eq(&self, other: &CreateLocationSmbInput) -> bool
fn eq(&self, other: &CreateLocationSmbInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateLocationSmbInput
Auto Trait Implementations§
impl Freeze for CreateLocationSmbInput
impl RefUnwindSafe for CreateLocationSmbInput
impl Send for CreateLocationSmbInput
impl Sync for CreateLocationSmbInput
impl Unpin for CreateLocationSmbInput
impl UnwindSafe for CreateLocationSmbInput
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