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.DescribeCommunications

Description

Returns communications and attachments for one or more support cases. Use the afterTime and beforeTime parameters to filter by date. You can use the caseId parameter to restrict the results to a specific case.

Case data is available for 12 months after creation. If a case was created more than 12 months ago, a request for data might cause an error.

You can use the maxResults and nextToken parameters to control the pagination of the results. Set maxResults to the number of cases that you want to display on each page, and use nextToken to specify the resumption of pagination.

  • 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.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeCommunications Source #

See: newDescribeCommunications smart constructor.

Constructors

DescribeCommunications' 

Fields

  • afterTime :: Maybe Text

    The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.

  • beforeTime :: Maybe Text

    The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.

  • nextToken :: Maybe Text

    A resumption point for pagination.

  • maxResults :: Maybe Natural

    The maximum number of results to return before paginating.

  • caseId :: Text

    The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

Instances

Instances details
Eq DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Read DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Show DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Generic DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Associated Types

type Rep DescribeCommunications :: Type -> Type #

NFData DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Methods

rnf :: DescribeCommunications -> () #

Hashable DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

ToJSON DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

AWSPager DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

AWSRequest DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Associated Types

type AWSResponse DescribeCommunications #

ToHeaders DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

ToPath DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

ToQuery DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

type Rep DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

type Rep DescribeCommunications = D1 ('MetaData "DescribeCommunications" "Amazonka.Support.DescribeCommunications" "libZSservicesZSamazonka-supportZSamazonka-support" 'False) (C1 ('MetaCons "DescribeCommunications'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "afterTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "beforeTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "caseId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

newDescribeCommunications Source #

Create a value of DescribeCommunications 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:afterTime:DescribeCommunications', describeCommunications_afterTime - The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.

$sel:beforeTime:DescribeCommunications', describeCommunications_beforeTime - The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.

$sel:nextToken:DescribeCommunications', describeCommunications_nextToken - A resumption point for pagination.

$sel:maxResults:DescribeCommunications', describeCommunications_maxResults - The maximum number of results to return before paginating.

$sel:caseId:DescribeCommunications', describeCommunications_caseId - The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

Request Lenses

describeCommunications_afterTime :: Lens' DescribeCommunications (Maybe Text) Source #

The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.

describeCommunications_beforeTime :: Lens' DescribeCommunications (Maybe Text) Source #

The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.

describeCommunications_maxResults :: Lens' DescribeCommunications (Maybe Natural) Source #

The maximum number of results to return before paginating.

describeCommunications_caseId :: Lens' DescribeCommunications Text Source #

The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

Destructuring the Response

data DescribeCommunicationsResponse Source #

The communications returned by the DescribeCommunications operation.

See: newDescribeCommunicationsResponse smart constructor.

Constructors

DescribeCommunicationsResponse' 

Fields

Instances

Instances details
Eq DescribeCommunicationsResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Read DescribeCommunicationsResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Show DescribeCommunicationsResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Generic DescribeCommunicationsResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Associated Types

type Rep DescribeCommunicationsResponse :: Type -> Type #

NFData DescribeCommunicationsResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

type Rep DescribeCommunicationsResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

type Rep DescribeCommunicationsResponse = D1 ('MetaData "DescribeCommunicationsResponse" "Amazonka.Support.DescribeCommunications" "libZSservicesZSamazonka-supportZSamazonka-support" 'False) (C1 ('MetaCons "DescribeCommunicationsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "communications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Communication])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeCommunicationsResponse Source #

Create a value of DescribeCommunicationsResponse 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:nextToken:DescribeCommunications', describeCommunicationsResponse_nextToken - A resumption point for pagination.

$sel:communications:DescribeCommunicationsResponse', describeCommunicationsResponse_communications - The communications for the case.

$sel:httpStatus:DescribeCommunicationsResponse', describeCommunicationsResponse_httpStatus - The response's http status code.

Response Lenses