Provides a pre-signed URL for download of an approved attached file¶
Description¶
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.
Usage¶
Arguments¶
-
InstanceId[required] The unique identifier of the Connect Customer instance.
-
FileId[required] The unique identifier of the attached file resource.
-
UrlExpiryInSecondsOptional override for the expiry of the pre-signed S3 URL in seconds. The default value is 300.
-
AssociatedResourceArn[required] The resource to which the attached file is (being) uploaded to. The supported resources are Cases, Email, and Task.
This value must be a valid ARN.
Value¶
A list with the following syntax:
list(
FileArn = "string",
FileId = "string",
CreationTime = "string",
FileStatus = "APPROVED"|"REJECTED"|"PROCESSING"|"FAILED",
FileName = "string",
FileSizeInBytes = 123,
AssociatedResourceArn = "string",
FileUseCaseType = "CONTACT_ANALYSIS"|"EMAIL_MESSAGE"|"EMAIL_MESSAGE_PLAIN_TEXT"|"EMAIL_MESSAGE_REDACTED"|"EMAIL_MESSAGE_PLAIN_TEXT_REDACTED"|"ATTACHMENT"|"VOICE_RECORDING",
CreatedBy = list(
ConnectUserArn = "string",
AWSIdentityArn = "string"
),
DownloadUrlMetadata = list(
Url = "string",
UrlExpiry = "string"
),
Tags = list(
"string"
)
)