Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data DescribeCommunications = DescribeCommunications' {}
- newDescribeCommunications :: Text -> DescribeCommunications
- describeCommunications_afterTime :: Lens' DescribeCommunications (Maybe Text)
- describeCommunications_beforeTime :: Lens' DescribeCommunications (Maybe Text)
- describeCommunications_maxResults :: Lens' DescribeCommunications (Maybe Natural)
- describeCommunications_nextToken :: Lens' DescribeCommunications (Maybe Text)
- describeCommunications_caseId :: Lens' DescribeCommunications Text
- data DescribeCommunicationsResponse = DescribeCommunicationsResponse' {
- communications :: Maybe [Communication]
- nextToken :: Maybe Text
- httpStatus :: Int
- newDescribeCommunicationsResponse :: Int -> DescribeCommunicationsResponse
- describeCommunicationsResponse_communications :: Lens' DescribeCommunicationsResponse (Maybe [Communication])
- describeCommunicationsResponse_nextToken :: Lens' DescribeCommunicationsResponse (Maybe Text)
- describeCommunicationsResponse_httpStatus :: Lens' DescribeCommunicationsResponse Int
Creating a Request
data DescribeCommunications Source #
See: newDescribeCommunications
smart constructor.
DescribeCommunications' | |
|
Instances
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_nextToken :: Lens' DescribeCommunications (Maybe Text) Source #
A resumption point for pagination.
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.
DescribeCommunicationsResponse' | |
|
Instances
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
describeCommunicationsResponse_communications :: Lens' DescribeCommunicationsResponse (Maybe [Communication]) Source #
The communications for the case.
describeCommunicationsResponse_nextToken :: Lens' DescribeCommunicationsResponse (Maybe Text) Source #
A resumption point for pagination.
describeCommunicationsResponse_httpStatus :: Lens' DescribeCommunicationsResponse Int Source #
The response's http status code.