Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns a list of cases that you specify by passing one or more case
IDs. You can use the afterTime
and beforeTime
parameters to filter
the cases by date. You can set values for the includeResolvedCases
and
includeCommunications
parameters to specify how much information to
return.
The response returns the following in JSON format:
- One or more CaseDetails data types.
- One or more
nextToken
values, which specify where to paginate the returned records represented by theCaseDetails
objects.
Case data is available for 12 months after creation. If a case was created more than 12 months ago, a request might return an error.
- 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
- data DescribeCases = DescribeCases' {}
- newDescribeCases :: DescribeCases
- describeCases_includeResolvedCases :: Lens' DescribeCases (Maybe Bool)
- describeCases_caseIdList :: Lens' DescribeCases (Maybe [Text])
- describeCases_afterTime :: Lens' DescribeCases (Maybe Text)
- describeCases_beforeTime :: Lens' DescribeCases (Maybe Text)
- describeCases_nextToken :: Lens' DescribeCases (Maybe Text)
- describeCases_includeCommunications :: Lens' DescribeCases (Maybe Bool)
- describeCases_displayId :: Lens' DescribeCases (Maybe Text)
- describeCases_language :: Lens' DescribeCases (Maybe Text)
- describeCases_maxResults :: Lens' DescribeCases (Maybe Natural)
- data DescribeCasesResponse = DescribeCasesResponse' {
- cases :: Maybe [CaseDetails]
- nextToken :: Maybe Text
- httpStatus :: Int
- newDescribeCasesResponse :: Int -> DescribeCasesResponse
- describeCasesResponse_cases :: Lens' DescribeCasesResponse (Maybe [CaseDetails])
- describeCasesResponse_nextToken :: Lens' DescribeCasesResponse (Maybe Text)
- describeCasesResponse_httpStatus :: Lens' DescribeCasesResponse Int
Creating a Request
data DescribeCases Source #
See: newDescribeCases
smart constructor.
DescribeCases' | |
|
Instances
newDescribeCases :: DescribeCases Source #
Create a value of DescribeCases
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:includeResolvedCases:DescribeCases'
, describeCases_includeResolvedCases
- Specifies whether to include resolved support cases in the
DescribeCases
response. By default, resolved cases aren't included.
$sel:caseIdList:DescribeCases'
, describeCases_caseIdList
- A list of ID numbers of the support cases you want returned. The maximum
number of cases is 100.
$sel:afterTime:DescribeCases'
, describeCases_afterTime
- The start date for a filtered date search on support case
communications. Case communications are available for 12 months after
creation.
$sel:beforeTime:DescribeCases'
, describeCases_beforeTime
- The end date for a filtered date search on support case communications.
Case communications are available for 12 months after creation.
$sel:nextToken:DescribeCases'
, describeCases_nextToken
- A resumption point for pagination.
$sel:includeCommunications:DescribeCases'
, describeCases_includeCommunications
- Specifies whether to include communications in the DescribeCases
response. By default, communications are included.
$sel:displayId:DescribeCases'
, describeCases_displayId
- The ID displayed for a case in the AWS Support Center user interface.
$sel:language:DescribeCases'
, describeCases_language
- The ISO 639-1 code for the language in which AWS provides support. AWS
Support currently supports English ("en") and Japanese ("ja").
Language parameters must be passed explicitly for operations that take
them.
$sel:maxResults:DescribeCases'
, describeCases_maxResults
- The maximum number of results to return before paginating.
Request Lenses
describeCases_includeResolvedCases :: Lens' DescribeCases (Maybe Bool) Source #
Specifies whether to include resolved support cases in the
DescribeCases
response. By default, resolved cases aren't included.
describeCases_caseIdList :: Lens' DescribeCases (Maybe [Text]) Source #
A list of ID numbers of the support cases you want returned. The maximum number of cases is 100.
describeCases_afterTime :: Lens' DescribeCases (Maybe Text) Source #
The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.
describeCases_beforeTime :: Lens' DescribeCases (Maybe Text) Source #
The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.
describeCases_nextToken :: Lens' DescribeCases (Maybe Text) Source #
A resumption point for pagination.
describeCases_includeCommunications :: Lens' DescribeCases (Maybe Bool) Source #
Specifies whether to include communications in the DescribeCases
response. By default, communications are included.
describeCases_displayId :: Lens' DescribeCases (Maybe Text) Source #
The ID displayed for a case in the AWS Support Center user interface.
describeCases_language :: Lens' DescribeCases (Maybe Text) Source #
The ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English ("en") and Japanese ("ja"). Language parameters must be passed explicitly for operations that take them.
describeCases_maxResults :: Lens' DescribeCases (Maybe Natural) Source #
The maximum number of results to return before paginating.
Destructuring the Response
data DescribeCasesResponse Source #
Returns an array of
CaseDetails
objects and a nextToken
that defines a point for pagination in the
result set.
See: newDescribeCasesResponse
smart constructor.
DescribeCasesResponse' | |
|
Instances
newDescribeCasesResponse Source #
Create a value of DescribeCasesResponse
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:cases:DescribeCasesResponse'
, describeCasesResponse_cases
- The details for the cases that match the request.
$sel:nextToken:DescribeCases'
, describeCasesResponse_nextToken
- A resumption point for pagination.
$sel:httpStatus:DescribeCasesResponse'
, describeCasesResponse_httpStatus
- The response's http status code.
Response Lenses
describeCasesResponse_cases :: Lens' DescribeCasesResponse (Maybe [CaseDetails]) Source #
The details for the cases that match the request.
describeCasesResponse_nextToken :: Lens' DescribeCasesResponse (Maybe Text) Source #
A resumption point for pagination.
describeCasesResponse_httpStatus :: Lens' DescribeCasesResponse Int Source #
The response's http status code.