Support.Client.
describe_attachment
(**kwargs)¶Returns the attachment that has the specified ID. Attachments can include screenshots, error logs, or other files that describe your issue. Attachment IDs are generated by the case management system when you add an attachment to a case or case communication. Attachment IDs are returned in the AttachmentDetails objects that are returned by the DescribeCommunications operation.
Note
SubscriptionRequiredException
error message appears. For information about changing your support plan, see Amazon Web Services Support.See also: AWS API Documentation
Request Syntax
response = client.describe_attachment(
attachmentId='string'
)
[REQUIRED]
The ID of the attachment to return. Attachment IDs are returned by the DescribeCommunications operation.
{
'attachment': {
'fileName': 'string',
'data': b'bytes'
}
}
Response Structure
The content and file name of the attachment returned by the DescribeAttachment operation.
This object includes the attachment content and file name.
In the previous response syntax, the value for the data
parameter appears as blob
, which is represented as a base64-encoded string. The value for fileName
is the name of the attachment, such as troubleshoot-screenshot.png
.
The name of the attachment file.
The content of the attachment file.
Exceptions
Support.Client.exceptions.InternalServerError
Support.Client.exceptions.DescribeAttachmentLimitExceeded
Support.Client.exceptions.AttachmentIdNotFound