libZSservicesZSamazonka-supportZSamazonka-support
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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 or Enterprise Support plan to use the AWS Support API.
  • If you call the AWS Support API from an account that does not have a Business or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see AWS 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
Eq DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Read DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Show DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Generic DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Associated Types

type Rep DescribeAttachment :: Type -> Type #

NFData DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Methods

rnf :: DescribeAttachment -> () #

Hashable DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

ToJSON DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

AWSRequest DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Associated Types

type AWSResponse 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

type Rep DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

type Rep DescribeAttachment = D1 ('MetaData "DescribeAttachment" "Amazonka.Support.DescribeAttachment" "libZSservicesZSamazonka-supportZSamazonka-support" 'False) (C1 ('MetaCons "DescribeAttachment'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attachmentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DescribeAttachment Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

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:

$sel:attachmentId: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
Eq DescribeAttachmentResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Read DescribeAttachmentResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Show DescribeAttachmentResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Generic DescribeAttachmentResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeAttachment

Associated Types

type Rep DescribeAttachmentResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-supportZSamazonka-support" '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.