start_attached_file_upload
async
¶
start_attached_file_upload(
instance_id: InstanceId,
file_name: FileName,
file_size_in_bytes: FileSizeInBytes,
file_use_case_type: FileUseCaseType,
associated_resource_arn: ARN,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
client_token: Optional[ClientToken] = None,
url_expiry_in_seconds: Optional[URLExpiryInSeconds] = None,
created_by: Optional[CreatedByInfo] = None,
tags: Optional[TagMap] = None,
) -> StartAttachedFileUploadResponse
Provides a pre-signed Amazon S3 URL in response for uploading your content.
You may only use this API to upload attachments to a Connect Customer Case, Connect Customer Email, or Connect Customer Task.
Parameters:
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
-
instance_id(InstanceId) –The unique identifier of the Connect Customer instance.
-
file_name(FileName) –A case-sensitive name of the attached file being uploaded.
-
file_size_in_bytes(FileSizeInBytes) –The size of the attached file in bytes.
-
url_expiry_in_seconds(Optional[URLExpiryInSeconds], default:None) –Optional override for the expiry of the pre-signed S3 URL in seconds. The default value is 300.
-
file_use_case_type(FileUseCaseType) –The use case for the file.
Only
ATTACHMENTSare supported. -
associated_resource_arn(ARN) – -
created_by(Optional[CreatedByInfo], default:None) –Represents the identity that created the file.
-
tags(Optional[TagMap], default:None) –The tags used to organize, track, or control access for this resource. For example,
{ "Tags": {"key1":"value1", "key2":"value2"} }.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidRequestException–The request is not valid.
-
ResourceConflictException–A resource already has that name.
-
ServiceQuotaExceededException–The service quota has been exceeded.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
23421 23422 23423 23424 23425 23426 23427 23428 23429 23430 23431 23432 23433 23434 23435 23436 23437 23438 23439 23440 23441 23442 23443 23444 23445 23446 23447 23448 23449 23450 23451 23452 23453 23454 23455 23456 23457 23458 23459 23460 23461 23462 23463 23464 23465 23466 23467 23468 23469 23470 23471 23472 23473 23474 23475 23476 23477 23478 23479 23480 23481 23482 23483 23484 23485 23486 23487 23488 23489 23490 23491 23492 23493 23494 23495 23496 23497 23498 23499 23500 23501 | |