SetDefaultMessageFeedbackEnabledCommand

Sets a configuration set's default for message feedback.

Example Syntax

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

import { PinpointSMSVoiceV2Client, SetDefaultMessageFeedbackEnabledCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import
// const { PinpointSMSVoiceV2Client, SetDefaultMessageFeedbackEnabledCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import
const client = new PinpointSMSVoiceV2Client(config);
const input = { // SetDefaultMessageFeedbackEnabledRequest
  ConfigurationSetName: "STRING_VALUE", // required
  MessageFeedbackEnabled: true || false, // required
};
const command = new SetDefaultMessageFeedbackEnabledCommand(input);
const response = await client.send(command);
// { // SetDefaultMessageFeedbackEnabledResult
//   ConfigurationSetArn: "STRING_VALUE",
//   ConfigurationSetName: "STRING_VALUE",
//   MessageFeedbackEnabled: true || false,
// };

SetDefaultMessageFeedbackEnabledCommand Input

Parameter
Type
Description
ConfigurationSetName
Required
string | undefined

The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.

MessageFeedbackEnabled
Required
boolean | undefined

Set to true to enable message feedback.

SetDefaultMessageFeedbackEnabledCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
ConfigurationSetArn
string | undefined

The arn of the configuration set.

ConfigurationSetName
string | undefined

The name of the configuration.

MessageFeedbackEnabled
boolean | undefined

True if message feedback is enabled.

Throws

Name
Fault
Details
AccessDeniedException
client

The request was denied because you don't have sufficient permissions to access the resource.

InternalServerException
server

The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.

ResourceNotFoundException
client

A requested resource couldn't be found.

ThrottlingException
client

An error that occurred because too many requests were sent during a certain amount of time.

ValidationException
client

A validation exception for a field.

PinpointSMSVoiceV2ServiceException
Base exception class for all service exceptions from PinpointSMSVoiceV2 service.