get_attached_file
async
¶
get_attached_file(
instance_id: InstanceId,
file_id: FileId,
associated_resource_arn: ARN,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
url_expiry_in_seconds: Optional[URLExpiryInSeconds] = None,
url_content_disposition: Optional[ContentDisposition] = None,
) -> GetAttachedFileResponse
Provides a pre-signed URL for download of an approved attached file. This API also returns metadata about the attached file. It will only return a downloadURL if the status of the attached file is APPROVED.
Parameters:
-
instance_id(InstanceId) –The unique identifier of the Connect Customer instance.
-
file_id(FileId) –The unique identifier of the attached file resource.
-
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.
-
associated_resource_arn(ARN) – -
url_content_disposition(Optional[ContentDisposition], default:None) –Specifies how a browser handles the file at the pre-signed URL. The valid values are the following:
- INLINE
-
Displays the file in the browser.
- ATTACHMENT
-
Downloads the file. This is the default.
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.
-
ResourceNotFoundException–The specified resource was not found.
-
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
12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 | |