Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OptInPhoneNumberCommand

Use this request to opt in a phone number that is opted out, which enables you to resume sending SMS messages to the number.

You can opt in a phone number only once every 30 days.

example

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

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

OptInPhoneNumberCommandInput for command's input shape.

see

OptInPhoneNumberCommandOutput for command's response shape.

see

config for SNSClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: OptInPhoneNumberCommandInput

Readonly middlewareStack