amazonka-support-2.0: Amazon Support SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Support.DescribeAttachment

Description

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.

  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.
Synopsis

Creating a Request

data DescribeAttachment Source #

See: newDescribeAttachment smart constructor.

Constructors

DescribeAttachment' 

Fields

  • attachmentId :: Text

    The ID of the attachment to return. Attachment IDs are returned by the DescribeCommunications operation.

Instances

Instances details
ToJSON DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

ToHeaders DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

ToPath DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

ToQuery DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

AWSRequest DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Associated Types

type AWSResponse DescribeAttachment #

Generic DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Associated Types

type Rep DescribeAttachment :: Type -> Type #

Read DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Show DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

NFData DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Methods

rnf :: DescribeAttachment -> () #

Eq DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Hashable DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

type AWSResponse DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

type Rep DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

type Rep DescribeAttachment = D1 ('MetaData "DescribeAttachment" "Amazonka.Support.DescribeAttachment" "amazonka-support-2.0-LbNYGbwzg4MCCJkN4B0nCH" 'False) (C1 ('MetaCons "DescribeAttachment'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attachmentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDescribeAttachment Source #

Create a value of DescribeAttachment with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DescribeAttachment, describeAttachment_attachmentId - The ID of the attachment to return. Attachment IDs are returned by the DescribeCommunications operation.

Request Lenses

describeAttachment_attachmentId :: Lens' DescribeAttachment Text Source #

The ID of the attachment to return. Attachment IDs are returned by the DescribeCommunications operation.

Destructuring the Response

data DescribeAttachmentResponse Source #

The content and file name of the attachment returned by the DescribeAttachment operation.

See: newDescribeAttachmentResponse smart constructor.

Constructors

DescribeAttachmentResponse' 

Fields

  • attachment :: Maybe Attachment

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeAttachmentResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Associated Types

type Rep DescribeAttachmentResponse :: Type -> Type #

Read DescribeAttachmentResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Show DescribeAttachmentResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

NFData DescribeAttachmentResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Eq DescribeAttachmentResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

type Rep DescribeAttachmentResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

type Rep DescribeAttachmentResponse = D1 ('MetaData "DescribeAttachmentResponse" "Amazonka.Support.DescribeAttachment" "amazonka-support-2.0-LbNYGbwzg4MCCJkN4B0nCH" 'False) (C1 ('MetaCons "DescribeAttachmentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attachment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Attachment)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDescribeAttachmentResponse Source #

Create a value of DescribeAttachmentResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:attachment:DescribeAttachmentResponse', describeAttachmentResponse_attachment - 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.

$sel:httpStatus:DescribeAttachmentResponse', describeAttachmentResponse_httpStatus - The response's http status code.

Response Lenses

describeAttachmentResponse_attachment :: Lens' DescribeAttachmentResponse (Maybe Attachment) Source #

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.