amazonka-datasync-2.0: Amazon DataSync SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DataSync.UpdateLocationSmb

Description

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

Creating a Request

data UpdateLocationSmb Source #

See: newUpdateLocationSmb smart constructor.

Constructors

UpdateLocationSmb' 

Fields

  • agentArns :: Maybe (NonEmpty Text)

    The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location.

  • domain :: Maybe Text

    The name of the Windows domain that the SMB server belongs to.

  • mountOptions :: Maybe SmbMountOptions
     
  • password :: Maybe (Sensitive Text)

    The password of the user who can mount the share has the permissions to access files and folders in the SMB share.

  • subdirectory :: Maybe Text

    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 :: Maybe Text

    The user who can mount the share has the permissions to access files and folders in the SMB share.

  • locationArn :: Text

    The Amazon Resource Name (ARN) of the SMB location to update.

Instances

Instances details
ToJSON UpdateLocationSmb Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

ToHeaders UpdateLocationSmb Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

ToPath UpdateLocationSmb Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

ToQuery UpdateLocationSmb Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

AWSRequest UpdateLocationSmb Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

Associated Types

type AWSResponse UpdateLocationSmb #

Generic UpdateLocationSmb Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

Associated Types

type Rep UpdateLocationSmb :: Type -> Type #

Show UpdateLocationSmb Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

NFData UpdateLocationSmb Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

Methods

rnf :: UpdateLocationSmb -> () #

Eq UpdateLocationSmb Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

Hashable UpdateLocationSmb Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

type AWSResponse UpdateLocationSmb Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

type Rep UpdateLocationSmb Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

newUpdateLocationSmb Source #

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:

UpdateLocationSmb, updateLocationSmb_agentArns - The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location.

UpdateLocationSmb, updateLocationSmb_domain - The name of the Windows domain that the SMB server belongs to.

UpdateLocationSmb, updateLocationSmb_mountOptions - Undocumented member.

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.

UpdateLocationSmb, updateLocationSmb_user - The user who can mount the share has the permissions to access files and folders in the SMB share.

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_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_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_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.

Constructors

UpdateLocationSmbResponse' 

Fields

Instances

Instances details
Generic UpdateLocationSmbResponse Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

Associated Types

type Rep UpdateLocationSmbResponse :: Type -> Type #

Read UpdateLocationSmbResponse Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

Show UpdateLocationSmbResponse Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

NFData UpdateLocationSmbResponse Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

Eq UpdateLocationSmbResponse Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

type Rep UpdateLocationSmbResponse Source # 
Instance details

Defined in Amazonka.DataSync.UpdateLocationSmb

type Rep UpdateLocationSmbResponse = D1 ('MetaData "UpdateLocationSmbResponse" "Amazonka.DataSync.UpdateLocationSmb" "amazonka-datasync-2.0-LCcm4ddRe2z4CES4wun76Z" 'False) (C1 ('MetaCons "UpdateLocationSmbResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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