Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateTopicCommand

Creates a topic to which notifications can be published. Users can create at most 100,000 standard topics (at most 1,000 FIFO topics). For more information, see Creating an Amazon SNS topic in the Amazon SNS Developer Guide. This action is idempotent, so if the requester already owns a topic with the specified name, that topic's ARN is returned without creating a new topic.

example

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

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

CreateTopicCommandInput for command's input shape.

see

CreateTopicCommandOutput for command's response shape.

see

config for SNSClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateTopicCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CreateTopicCommandInput, CreateTopicCommandOutput>

Methods

Static getEndpointParameterInstructions