#[non_exhaustive]pub struct UpdateLocationSmbInput {
pub location_arn: Option<String>,
pub subdirectory: 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>,
}
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 SMB location to update.
subdirectory: Option<String>
The subdirectory in the SMB file system that is used to read data from the SMB source location or write data to the SMB destination. The SMB path should be a path that's exported by the SMB server, or a subdirectory of that path. The path should be such that it can be mounted by other SMB clients in your network.
Subdirectory
must be specified with forward slashes. For example, /path/to/folder
.
To transfer all the data in the folder that you specified, DataSync must have permissions to mount the SMB share and to access all the data in that share. To ensure this, do either of the following:
-
Ensure that the user/password specified belongs to the user who can mount the share and who has the appropriate permissions for all of the files and directories that you want DataSync to access.
-
Use credentials of a member of the Backup Operators group to mount the share.
Doing either of these options enables the agent to access the data. For the agent to access directories, you must also enable all execute access.
user: Option<String>
The user who can mount the share has the permissions to access files and folders in the SMB share.
domain: Option<String>
The name of the Windows domain that the SMB server belongs to.
password: Option<String>
The password of the user who can mount the share has the permissions to access files and folders in the SMB share.
agent_arns: Option<Vec<String>>
The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location.
mount_options: Option<SmbMountOptions>
Specifies the version of the Server Message Block (SMB) protocol that DataSync uses to access an SMB file server.
Implementations§
source§impl UpdateLocationSmbInput
impl UpdateLocationSmbInput
sourcepub fn location_arn(&self) -> Option<&str>
pub fn location_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the SMB location to update.
sourcepub fn subdirectory(&self) -> Option<&str>
pub fn subdirectory(&self) -> Option<&str>
The subdirectory in the SMB file system that is used to read data from the SMB source location or write data to the SMB destination. The SMB path should be a path that's exported by the SMB server, or a subdirectory of that path. The path should be such that it can be mounted by other SMB clients in your network.
Subdirectory
must be specified with forward slashes. For example, /path/to/folder
.
To transfer all the data in the folder that you specified, DataSync must have permissions to mount the SMB share and to access all the data in that share. To ensure this, do either of the following:
-
Ensure that the user/password specified belongs to the user who can mount the share and who has the appropriate permissions for all of the files and directories that you want DataSync to access.
-
Use credentials of a member of the Backup Operators group to mount the share.
Doing either of these options enables the agent to access the data. For the agent to access directories, you must also enable all execute access.
sourcepub fn user(&self) -> Option<&str>
pub fn user(&self) -> Option<&str>
The user who can mount the share has the permissions to access files and folders in the SMB share.
sourcepub fn domain(&self) -> Option<&str>
pub fn domain(&self) -> Option<&str>
The name of the Windows domain that the SMB server belongs to.
sourcepub fn password(&self) -> Option<&str>
pub fn password(&self) -> Option<&str>
The password of the user who can mount the share has the permissions to access files and folders in the SMB share.
sourcepub fn agent_arns(&self) -> Option<&[String]>
pub fn agent_arns(&self) -> Option<&[String]>
The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location.
sourcepub fn mount_options(&self) -> Option<&SmbMountOptions>
pub fn mount_options(&self) -> Option<&SmbMountOptions>
Specifies the version of the Server Message Block (SMB) protocol that DataSync uses to access an SMB file server.
source§impl UpdateLocationSmbInput
impl UpdateLocationSmbInput
sourcepub fn builder() -> UpdateLocationSmbInputBuilder
pub fn builder() -> UpdateLocationSmbInputBuilder
Creates a new builder-style object to manufacture UpdateLocationSmbInput
.
Trait Implementations§
source§impl Clone for UpdateLocationSmbInput
impl Clone for UpdateLocationSmbInput
source§fn clone(&self) -> UpdateLocationSmbInput
fn clone(&self) -> UpdateLocationSmbInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateLocationSmbInput
impl Debug for UpdateLocationSmbInput
source§impl PartialEq for UpdateLocationSmbInput
impl PartialEq for UpdateLocationSmbInput
source§fn eq(&self, other: &UpdateLocationSmbInput) -> bool
fn eq(&self, other: &UpdateLocationSmbInput) -> bool
self
and other
values to be equal, and is used
by ==
.