update_location_object_storage
¶
update_location_object_storage(
location_arn: LocationArn,
*,
config_overrides: Optional[DataSyncClientConfig] = None,
server_port: Optional[ObjectStorageServerPort] = None,
server_protocol: Optional[ObjectStorageServerProtocol] = None,
subdirectory: Optional[S3Subdirectory] = None,
server_hostname: Optional[ServerHostname] = None,
access_key: Optional[ObjectStorageAccessKey] = None,
secret_key: Optional[ObjectStorageSecretKey] = None,
agent_arns: Optional[AgentArnList] = None,
server_certificate: Optional[ObjectStorageCertificate] = None,
cmk_secret_config: Optional[CmkSecretConfig] = None,
custom_secret_config: Optional[CustomSecretConfig] = None,
) -> UpdateLocationObjectStorageResponse
Modifies the following configuration parameters of the object storage transfer location that you're using with DataSync.
For more information, see Configuring DataSync transfers with an object storage system.
Parameters:
-
location_arn(LocationArn) –Specifies the ARN of the object storage system location that you're updating.
-
server_port(Optional[ObjectStorageServerPort], default:None) –Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
-
server_protocol(Optional[ObjectStorageServerProtocol], default:None) –Specifies the protocol that your object storage server uses to communicate.
-
subdirectory(Optional[S3Subdirectory], default:None) –Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.
-
server_hostname(Optional[ServerHostname], default:None) –Specifies the domain name or IP address (IPv4 or IPv6) of the object storage server that your DataSync agent connects to.
-
access_key(Optional[ObjectStorageAccessKey], default:None) –Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
-
secret_key(Optional[ObjectStorageSecretKey], default:None) –Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
If you provide a secret using
SecretKey, but do not provide secret configuration details usingCmkSecretConfigorCustomSecretConfig, then DataSync stores the token using your Amazon Web Services account's Secrets Manager secret. -
agent_arns(Optional[AgentArnList], default:None) –(Optional) Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your object storage system. If you are setting up an agentless cross-cloud transfer, you do not need to specify a value for this parameter.
You cannot add or remove agents from a storage location after you initially create it.
-
server_certificate(Optional[ObjectStorageCertificate], default:None) –Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single
.pemfile with a full certificate chain (for example,file:///home/user/.ssh/object_storage_certificates.pem).The certificate chain might include:
-
The object storage system's certificate
-
All intermediate certificates (if there are any)
-
The root certificate of the signing CA
You can concatenate your certificates into a
.pemfile (which can be up to 32768 bytes before base64 encoding). The following examplecatcommand creates anobject_storage_certificates.pemfile that includes three certificates:cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pemTo use this parameter, configure
ServerProtocoltoHTTPS.Updating this parameter doesn't interfere with tasks that you have in progress.
-
-
cmk_secret_config(Optional[CmkSecretConfig], default:None) –Specifies configuration information for a DataSync-managed secret, such as an authentication token or 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 an authentication token or 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.
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
3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 | |