- 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.
AddCommunicationToCaseCommand
Adds additional customer communication to an Amazon Web Services Support case. Use the caseId
parameter to identify the case to which to add communication. You can list a set of email addresses to copy on the communication by using the ccEmailAddresses
parameter. The communicationBody
value contains the text of the communication.
-
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, AddCommunicationToCaseCommand } from "@aws-sdk/client-support"; // ES Modules import
// const { SupportClient, AddCommunicationToCaseCommand } = require("@aws-sdk/client-support"); // CommonJS import
const client = new SupportClient(config);
const input = { // AddCommunicationToCaseRequest
caseId: "STRING_VALUE",
communicationBody: "STRING_VALUE", // required
ccEmailAddresses: [ // CcEmailAddressList
"STRING_VALUE",
],
attachmentSetId: "STRING_VALUE",
};
const command = new AddCommunicationToCaseCommand(input);
const response = await client.send(command);
// { // AddCommunicationToCaseResponse
// result: true || false,
// };
AddCommunicationToCaseCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
communicationBody Required | string | undefined | The body of an email communication to add to the support case. |
attachmentSetId | string | undefined | The ID of a set of one or more attachments for the communication to add to the case. Create the set by calling AddAttachmentsToSet |
caseId | string | undefined | 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 |
ccEmailAddresses | string[] | undefined | The email addresses in the CC line of an email to be added to the support case. |
AddCommunicationToCaseCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
result | boolean | undefined | True if AddCommunicationToCase succeeds. Otherwise, returns an error. |
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. |
CaseIdNotFound | client | The requested |
InternalServerError | server | An internal server error occurred. |
SupportServiceException | Base exception class for all service exceptions from Support service. |