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

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.

  • maxResults :: Maybe Natural

    The maximum number of results to return before paginating.

  • nextToken :: Maybe Text

    A resumption point for pagination.

  • 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
ToJSON DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.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

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 #

Generic DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Associated Types

type Rep DescribeCommunications :: Type -> Type #

Read DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Show DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

NFData DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Methods

rnf :: DescribeCommunications -> () #

Eq DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Hashable DescribeCommunications Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

type AWSResponse 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" "amazonka-support-2.0-LbNYGbwzg4MCCJkN4B0nCH" '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 "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "caseId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

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:maxResults:DescribeCommunications', describeCommunications_maxResults - The maximum number of results to return before paginating.

DescribeCommunications, describeCommunications_nextToken - A resumption point for pagination.

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
Generic DescribeCommunicationsResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Associated Types

type Rep DescribeCommunicationsResponse :: Type -> Type #

Read DescribeCommunicationsResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Show DescribeCommunicationsResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

NFData DescribeCommunicationsResponse Source # 
Instance details

Defined in Amazonka.Support.DescribeCommunications

Eq 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" "amazonka-support-2.0-LbNYGbwzg4MCCJkN4B0nCH" 'False) (C1 ('MetaCons "DescribeCommunicationsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "communications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Communication])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:

DescribeCommunicationsResponse, describeCommunicationsResponse_communications - The communications for the case.

DescribeCommunications, describeCommunicationsResponse_nextToken - A resumption point for pagination.

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

Response Lenses