Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteTopicCommand

Deletes a topic and all its subscriptions. Deleting a topic might prevent some messages previously sent to the topic from being delivered to subscribers. This action is idempotent, so deleting a topic that does not exist does not result in an error.

example

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

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

DeleteTopicCommandInput for command's input shape.

see

DeleteTopicCommandOutput for command's response shape.

see

config for SNSClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: DeleteTopicCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<DeleteTopicCommandInput, DeleteTopicCommandOutput>