Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SetSMSAttributesCommand

Use this request to set the default settings for sending SMS messages and receiving daily SMS usage reports.

You can override some of these settings for a single message when you use the Publish action with the MessageAttributes.entry.N parameter. For more information, see Publishing to a mobile phone in the Amazon SNS Developer Guide.

To use this operation, you must grant the Amazon SNS service principal (sns.amazonaws.com) permission to perform the s3:ListBucket action.

example

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

import { SNSClient, SetSMSAttributesCommand } from "@aws-sdk/client-sns"; // ES Modules import
// const { SNSClient, SetSMSAttributesCommand } = require("@aws-sdk/client-sns"); // CommonJS import
const client = new SNSClient(config);
const command = new SetSMSAttributesCommand(input);
const response = await client.send(command);
see

SetSMSAttributesCommandInput for command's input shape.

see

SetSMSAttributesCommandOutput for command's response shape.

see

config for SNSClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: SetSMSAttributesCommandInput

Readonly middlewareStack