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
23188 23189 23190 23191 23192 23193 23194 23195 23196 23197 23198 23199 23200 23201 23202 23203 23204 23205 23206 23207 23208 23209 23210 23211 23212 23213 23214 23215 23216 23217 23218 23219 23220 23221 23222 23223 23224 23225 23226 23227 23228 23229 23230 23231 23232 23233 23234 23235 23236 23237 23238 23239 23240 23241 23242 23243 23244 23245 23246 23247 23248 23249 23250 23251 23252 23253 23254 23255 23256 23257 23258 23259 23260 23261 23262 23263 23264 23265 23266 23267 23268 | |