amazonka-sns-0.2.2: Amazon Simple Notification Service SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.SNS.CreateTopic

Contents

Description

Creates a topic to which notifications can be published. Users can create at most 3000 topics. For more information, see http://aws.amazon.com/sns. 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.

http://docs.aws.amazon.com/sns/latest/api/API_CreateTopic.html

Synopsis

Request

Request constructor

createTopic Source

Arguments

:: Text

ctName

-> CreateTopic 

CreateTopic constructor.

The fields accessible through corresponding lenses are:

Request lenses

ctName :: Lens' CreateTopic Text Source

The name of the topic you want to create.

Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters long.

Response

Response constructor

createTopicResponse :: CreateTopicResponse Source

CreateTopicResponse constructor.

The fields accessible through corresponding lenses are:

Response lenses

ctrTopicArn :: Lens' CreateTopicResponse (Maybe Text) Source

The Amazon Resource Name (ARN) assigned to the created topic.