start_attached_file_upload
¶
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[ConnectClientConfig] = 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/connect.py
23111 23112 23113 23114 23115 23116 23117 23118 23119 23120 23121 23122 23123 23124 23125 23126 23127 23128 23129 23130 23131 23132 23133 23134 23135 23136 23137 23138 23139 23140 23141 23142 23143 23144 23145 23146 23147 23148 23149 23150 23151 23152 23153 23154 23155 23156 23157 23158 23159 23160 23161 23162 23163 23164 23165 23166 23167 23168 23169 23170 23171 23172 23173 23174 23175 23176 23177 23178 23179 23180 23181 23182 23183 23184 23185 23186 23187 23188 23189 23190 | |