DeleteSmsChannelCommand

Disables the SMS channel for an application and deletes any existing settings for the channel.

Example Syntax

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

import { PinpointClient, DeleteSmsChannelCommand } from "@aws-sdk/client-pinpoint"; // ES Modules import
// const { PinpointClient, DeleteSmsChannelCommand } = require("@aws-sdk/client-pinpoint"); // CommonJS import
const client = new PinpointClient(config);
const input = { // DeleteSmsChannelRequest
  ApplicationId: "STRING_VALUE", // required
};
const command = new DeleteSmsChannelCommand(input);
const response = await client.send(command);
// { // DeleteSmsChannelResponse
//   SMSChannelResponse: { // SMSChannelResponse
//     ApplicationId: "STRING_VALUE",
//     CreationDate: "STRING_VALUE",
//     Enabled: true || false,
//     HasCredential: true || false,
//     Id: "STRING_VALUE",
//     IsArchived: true || false,
//     LastModifiedBy: "STRING_VALUE",
//     LastModifiedDate: "STRING_VALUE",
//     Platform: "STRING_VALUE", // required
//     PromotionalMessagesPerSecond: Number("int"),
//     SenderId: "STRING_VALUE",
//     ShortCode: "STRING_VALUE",
//     TransactionalMessagesPerSecond: Number("int"),
//     Version: Number("int"),
//   },
// };

DeleteSmsChannelCommand Input

See DeleteSmsChannelCommandInput for more details

Parameter
Type
Description
ApplicationId
Required
string | undefined

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

DeleteSmsChannelCommand Output

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

Provides information about the status and settings of the SMS channel for an application.

Throws

Name
Fault
Details
BadRequestException
client

Provides information about an API request or response.

ForbiddenException
client

Provides information about an API request or response.

InternalServerErrorException
server

Provides information about an API request or response.

MethodNotAllowedException
client

Provides information about an API request or response.

NotFoundException
client

Provides information about an API request or response.

PayloadTooLargeException
client

Provides information about an API request or response.

TooManyRequestsException
client

Provides information about an API request or response.

PinpointServiceException
Base exception class for all service exceptions from Pinpoint service.