update_location_s3
async
¶
update_location_s3(
location_arn: LocationArn,
*,
config_overrides: Optional[AsyncDataSyncClientConfig] = None,
subdirectory: Optional[S3Subdirectory] = None,
s3_storage_class: Optional[S3StorageClass] = None,
s3_config: Optional[S3Config] = None,
) -> UpdateLocationS3Response
Modifies the following configuration parameters of the Amazon S3 transfer location that you're using with DataSync.
Before you begin, make sure that you read the following topics:
Parameters:
-
location_arn(LocationArn) –Specifies the Amazon Resource Name (ARN) of the Amazon S3 transfer location that you're updating.
-
subdirectory(Optional[S3Subdirectory], default:None) –Specifies a prefix in the S3 bucket that DataSync reads from or writes to (depending on whether the bucket is a source or destination location).
DataSync can't transfer objects with a prefix that begins with a slash (
/) or includes//,/./, or/../patterns. For example:-
/photos -
photos//2006/January -
photos/./2006/February -
photos/../2006/March
-
-
s3_storage_class(Optional[S3StorageClass], default:None) –Specifies the storage class that you want your objects to use when Amazon S3 is a transfer destination.
For buckets in Amazon Web Services Regions, the storage class defaults to
STANDARD. For buckets on Outposts, the storage class defaults toOUTPOSTS.For more information, see Storage class considerations with Amazon S3 transfers.
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
4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 | |