Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates some of the parameters of a previously created location for Server Message Block (SMB) file system access. For information about creating an SMB location, see Creating a location for SMB.
Synopsis
- data UpdateLocationSmb = UpdateLocationSmb' {}
- newUpdateLocationSmb :: Text -> UpdateLocationSmb
- updateLocationSmb_agentArns :: Lens' UpdateLocationSmb (Maybe (NonEmpty Text))
- updateLocationSmb_domain :: Lens' UpdateLocationSmb (Maybe Text)
- updateLocationSmb_user :: Lens' UpdateLocationSmb (Maybe Text)
- updateLocationSmb_password :: Lens' UpdateLocationSmb (Maybe Text)
- updateLocationSmb_subdirectory :: Lens' UpdateLocationSmb (Maybe Text)
- updateLocationSmb_mountOptions :: Lens' UpdateLocationSmb (Maybe SmbMountOptions)
- updateLocationSmb_locationArn :: Lens' UpdateLocationSmb Text
- data UpdateLocationSmbResponse = UpdateLocationSmbResponse' {
- httpStatus :: Int
- newUpdateLocationSmbResponse :: Int -> UpdateLocationSmbResponse
- updateLocationSmbResponse_httpStatus :: Lens' UpdateLocationSmbResponse Int
Creating a Request
data UpdateLocationSmb Source #
See: newUpdateLocationSmb
smart constructor.
UpdateLocationSmb' | |
|
Instances
Create a value of UpdateLocationSmb
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:agentArns:UpdateLocationSmb'
, updateLocationSmb_agentArns
- The Amazon Resource Names (ARNs) of agents to use for a Simple Message
Block (SMB) location.
$sel:domain:UpdateLocationSmb'
, updateLocationSmb_domain
- The name of the Windows domain that the SMB server belongs to.
$sel:user:UpdateLocationSmb'
, updateLocationSmb_user
- The user who can mount the share has the permissions to access files and
folders in the SMB share.
$sel:password:UpdateLocationSmb'
, updateLocationSmb_password
- The password of the user who can mount the share has the permissions to
access files and folders in the SMB share.
$sel:subdirectory:UpdateLocationSmb'
, updateLocationSmb_subdirectory
- 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.
$sel:mountOptions:UpdateLocationSmb'
, updateLocationSmb_mountOptions
- Undocumented member.
$sel:locationArn:UpdateLocationSmb'
, updateLocationSmb_locationArn
- The Amazon Resource Name (ARN) of the SMB location to update.
Request Lenses
updateLocationSmb_agentArns :: Lens' UpdateLocationSmb (Maybe (NonEmpty Text)) Source #
The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location.
updateLocationSmb_domain :: Lens' UpdateLocationSmb (Maybe Text) Source #
The name of the Windows domain that the SMB server belongs to.
updateLocationSmb_user :: Lens' UpdateLocationSmb (Maybe Text) Source #
The user who can mount the share has the permissions to access files and folders in the SMB share.
updateLocationSmb_password :: Lens' UpdateLocationSmb (Maybe Text) Source #
The password of the user who can mount the share has the permissions to access files and folders in the SMB share.
updateLocationSmb_subdirectory :: Lens' UpdateLocationSmb (Maybe Text) Source #
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.
updateLocationSmb_mountOptions :: Lens' UpdateLocationSmb (Maybe SmbMountOptions) Source #
Undocumented member.
updateLocationSmb_locationArn :: Lens' UpdateLocationSmb Text Source #
The Amazon Resource Name (ARN) of the SMB location to update.
Destructuring the Response
data UpdateLocationSmbResponse Source #
See: newUpdateLocationSmbResponse
smart constructor.
UpdateLocationSmbResponse' | |
|
Instances
newUpdateLocationSmbResponse Source #
Create a value of UpdateLocationSmbResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:UpdateLocationSmbResponse'
, updateLocationSmbResponse_httpStatus
- The response's http status code.
Response Lenses
updateLocationSmbResponse_httpStatus :: Lens' UpdateLocationSmbResponse Int Source #
The response's http status code.