update_location_smb
¶
update_location_smb(
location_arn: LocationArn,
*,
config_overrides: Optional[DataSyncClientConfig] = None,
subdirectory: Optional[SmbSubdirectory] = None,
server_hostname: Optional[ServerHostname] = None,
user: Optional[SmbUser] = None,
domain: Optional[SmbDomain] = None,
password: Optional[SmbPassword] = None,
cmk_secret_config: Optional[CmkSecretConfig] = None,
custom_secret_config: Optional[CustomSecretConfig] = None,
agent_arns: Optional[AgentArnList] = None,
mount_options: Optional[SmbMountOptions] = None,
authentication_type: Optional[SmbAuthenticationType] = None,
dns_ip_addresses: Optional[DnsIpList] = None,
kerberos_principal: Optional[KerberosPrincipal] = None,
kerberos_keytab: Optional[KerberosKeytabFile] = None,
kerberos_krb5_conf: Optional[KerberosKrb5ConfFile] = None,
) -> UpdateLocationSmbResponse
Modifies the following configuration parameters of the Server Message Block (SMB) transfer location that you're using with DataSync.
For more information, see Configuring DataSync transfers with an SMB file server.
Parameters:
-
location_arn(LocationArn) –Specifies the ARN of the SMB location that you want to update.
-
subdirectory(Optional[SmbSubdirectory], default:None) –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 specified subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see Providing DataSync access to SMB file servers.
-
server_hostname(Optional[ServerHostname], default:None) –Specifies the domain name or IP address (IPv4 or IPv6) of the SMB file server that your DataSync agent connects to.
If you're using Kerberos authentication, you must specify a domain name.
-
user(Optional[SmbUser], default:None) –Specifies the user name that can mount your SMB file server and has permission to access the files and folders involved in your transfer. This parameter applies only if
AuthenticationTypeis set toNTLM.For information about choosing a user with the right level of access for your transfer, see Providing DataSync access to SMB file servers.
-
domain(Optional[SmbDomain], default:None) –Specifies the Windows domain name that your SMB file server belongs to. This parameter applies only if
AuthenticationTypeis set toNTLM.If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right file server.
-
password(Optional[SmbPassword], default:None) –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. This parameter applies only if
AuthenticationTypeis set toNTLM. -
cmk_secret_config(Optional[CmkSecretConfig], default:None) –Specifies configuration information for a DataSync-managed secret, such as a
PasswordorKerberosKeytabor set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key. -
custom_secret_config(Optional[CustomSecretConfig], default:None) –Specifies configuration information for a customer-managed secret, such as a
PasswordorKerberosKeytabor set of credentials that DataSync uses to access a specific transfer location, and a customer-managed Identity and Access Management (IAM) role that provides access to the secret. -
agent_arns(Optional[AgentArnList], default:None) –Specifies the DataSync agent (or agents) that can connect to your SMB file server. You specify an agent by using its Amazon Resource Name (ARN).
-
authentication_type(Optional[SmbAuthenticationType], default:None) –Specifies the authentication protocol that DataSync uses to connect to your SMB file server. DataSync supports
NTLM(default) andKERBEROSauthentication.For more information, see Providing DataSync access to SMB file servers.
-
dns_ip_addresses(Optional[DnsIpList], default:None) –Specifies the IP addresses (IPv4 or IPv6) for the DNS servers that your SMB file server belongs to. This parameter applies only if
AuthenticationTypeis set toKERBEROS.If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right SMB file server.
-
kerberos_principal(Optional[KerberosPrincipal], default:None) –Specifies a Kerberos prinicpal, which is an identity in your Kerberos realm that has permission to access the files, folders, and file metadata in your SMB file server.
A Kerberos principal might look like
HOST/[email protected].Principal names are case sensitive. Your DataSync task execution will fail if the principal that you specify for this parameter doesn’t exactly match the principal that you use to create the keytab file.
-
kerberos_keytab(Optional[KerberosKeytabFile], default:None) –Specifies your Kerberos key table (keytab) file, which includes mappings between your Kerberos principal and encryption keys.
To avoid task execution errors, make sure that the Kerberos principal that you use to create the keytab file matches exactly what you specify for
KerberosPrincipal. -
kerberos_krb5_conf(Optional[KerberosKrb5ConfFile], default:None) –Specifies a Kerberos configuration file (
krb5.conf) that defines your Kerberos realm configuration.The file must be base64 encoded. If you're using the CLI, the encoding is done for you.
Raises:
-
InternalException–This exception is thrown when an error occurs in the DataSync service.
-
InvalidRequestException–This exception is thrown when the client submits a malformed request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_datasync/_services/data_sync.py
3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 | |