- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
CreateCaseCommand
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:
-
Submit a request from the Amazon Web Services Support Center Create Case page.
-
Use the Service Quotas RequestServiceQuotaIncrease operation.
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 Syntax
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",
// };
CreateCaseCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
communicationBody Required | string | undefined | The communication body text that describes the issue. This text appears in the Description field on the Amazon Web Services Support Center Create Case page. |
subject Required | string | undefined | The title of the support case. The title appears in the Subject field on the Amazon Web Services Support Center Create Case page. |
attachmentSetId | string | undefined | The ID of a set of one or more attachments for the case. Create the set by using the AddAttachmentsToSet operation. |
categoryCode | string | undefined | The category of problem for the support case. You also use the DescribeServices operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes. |
ccEmailAddresses | string[] | undefined | A list of email addresses that Amazon Web Services Support copies on case correspondence. Amazon Web Services Support identifies the account that creates the case when you specify your Amazon Web Services credentials in an HTTP POST method or use the Amazon Web Services SDKs . |
issueType | string | undefined | The type of issue for the case. You can specify |
language | string | undefined | The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the |
serviceCode | string | undefined | The code for the Amazon Web Services service. You can use the DescribeServices operation to get the possible |
severityCode | string | undefined | A value that indicates the urgency of the case. This value determines the response time according to your service level agreement with Amazon Web Services Support. You can use the DescribeSeverityLevels operation to get the possible values for For more information, see SeverityLevel and Choosing a Severity in the Amazon Web Services Support User Guide. The availability of severity levels depends on the support plan for the Amazon Web Services account. |
CreateCaseCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
caseId | string | undefined | The support case ID requested or returned in the call. The case ID is an alphanumeric string in the following format: case-12345678910-2013-c4c1d2bf33c5cf47 |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AttachmentSetExpired | client | The expiration time of the attachment set has passed. The set expires 1 hour after it is created. |
AttachmentSetIdNotFound | client | An attachment set with the specified ID could not be found. |
CaseCreationLimitExceeded | client | The case creation limit for the account has been exceeded. |
InternalServerError | server | An internal server error occurred. |
SupportServiceException | Base exception class for all service exceptions from Support service. |