Jump to Content

Class DescribeCasesCommandProtected

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


Use a bare-bones client and the command you need to make an API call.

import { SupportClient, DescribeCasesCommand } from "@aws-sdk/client-support"; // ES Modules import
// const { SupportClient, DescribeCasesCommand } = require("@aws-sdk/client-support"); // CommonJS import
const client = new SupportClient(config);
const input = {
caseIdList: [
displayId: "STRING_VALUE",
afterTime: "STRING_VALUE",
beforeTime: "STRING_VALUE",
includeResolvedCases: true || false,
nextToken: "STRING_VALUE",
maxResults: Number("int"),
language: "STRING_VALUE",
includeCommunications: true || false,
const command = new DescribeCasesCommand(input);
const response = await client.send(command);







CaseIdNotFound (client fault)

The requested caseId couldn't be located.


InternalServerError (server fault)

An internal server error occurred.




middlewareStack: MiddlewareStack<DescribeCasesCommandInput, DescribeCasesCommandOutput>