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.
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.
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);
CreateTopicCommandInput for command's
input
shape.CreateTopicCommandOutput for command's
response
shape.config for SNSClient's
config
shape.