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,
) -> 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) –
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
12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 | |