Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class CreateCaseCommandProtected

Creates a case in the Amazon Web Services Support Center. This operation is similar to how you create a case in the Amazon Web Services Support Center Create Case page.

The Amazon Web Services Support API doesn't support requesting service limit increases. You can submit a service limit increase in the following ways:

A successful CreateCase request returns an Amazon Web Services Support case number. You can use the DescribeCases operation and specify the case number to get existing Amazon Web Services Support cases. After you create a case, use the AddCommunicationToCase operation to add additional communication or attachments to an existing case.

The caseId is separate from the displayId that appears in the Amazon Web Services Support Center. Use the DescribeCases operation to get the displayId.

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

Example

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

import { SupportClient, CreateCaseCommand } from "@aws-sdk/client-support"; // ES Modules import
// const { SupportClient, CreateCaseCommand } = require("@aws-sdk/client-support"); // CommonJS import
const client = new SupportClient(config);
const input = { // CreateCaseRequest
subject: "STRING_VALUE", // required
serviceCode: "STRING_VALUE",
severityCode: "STRING_VALUE",
categoryCode: "STRING_VALUE",
communicationBody: "STRING_VALUE", // required
ccEmailAddresses: [ // CcEmailAddressList
"STRING_VALUE",
],
language: "STRING_VALUE",
issueType: "STRING_VALUE",
attachmentSetId: "STRING_VALUE",
};
const command = new CreateCaseCommand(input);
const response = await client.send(command);
// { // CreateCaseResponse
// caseId: "STRING_VALUE",
// };

Param

CreateCaseCommandInput

Returns

CreateCaseCommandOutput

See

Throws

AttachmentSetExpired (client fault)

The expiration time of the attachment set has passed. The set expires 1 hour after it is created.

Throws

AttachmentSetIdNotFound (client fault)

An attachment set with the specified ID could not be found.

Throws

CaseCreationLimitExceeded (client fault)

The case creation limit for the account has been exceeded.

Throws

InternalServerError (server fault)

An internal server error occurred.

Throws

SupportServiceException

Base exception class for all service exceptions from Support service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods