2026/10/28 - Amazon Connect Participant Service - 1 updated api methods
Changes Amazon Connect Participant Service now supports the optional UrlContentDisposition parameter on GetAttachment, which returns a pre-signed URL that renders a chat attachment inline in the browser instead of forcing a download.
{'UrlContentDisposition': 'INLINE | ATTACHMENT'}
Provides a pre-signed URL for download of a completed attachment. This is an asynchronous API for use with active contacts.
For security recommendations, see Connect Customer Chat security best practices.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
See also: AWS API Documentation
Request Syntax
client.get_attachment(
AttachmentId='string',
ConnectionToken='string',
UrlExpiryInSeconds=123,
UrlContentDisposition='INLINE'|'ATTACHMENT'
)
string
[REQUIRED]
A unique identifier for the attachment.
string
[REQUIRED]
The authentication token associated with the participant's connection.
integer
The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
string
Specifies how a browser handles the file at the pre-signed URL. The following values are valid:
INLINE
Displays the file in the browser.
ATTACHMENT
Downloads the file. This is the default behavior.
dict
Response Syntax
{
'Url': 'string',
'UrlExpiry': 'string',
'AttachmentSizeInBytes': 123
}
Response Structure
(dict) --
Url (string) --
This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response to StartAttachmentUpload.
UrlExpiry (string) --
The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
AttachmentSizeInBytes (integer) --
The size of the attachment in bytes.