update_location_object_storage
async
¶
update_location_object_storage(
location_arn: LocationArn,
*,
config_overrides: Optional[AsyncDataSyncClientConfig] = 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,
federated_identity: Optional[ObjectStorageFederatedIdentityConfig] = 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. -
federated_identity(Optional[ObjectStorageFederatedIdentityConfig], default:None) –Specifies the federated identity configuration that allows DataSync to access your object storage using an OpenID Connect (OIDC) token instead of a long-term access key and secret key. Provide either
FederatedIdentityor theAccessKey/SecretKeycredentials, but not both. -
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/async_data_sync.py
4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 | |