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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
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.

Synopsis

Creating a Request

createTopic Source

Arguments

:: Text

ctName

-> CreateTopic 

Creates a value of CreateTopic with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

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.

Destructuring the Response

createTopicResponse Source

Creates a value of CreateTopicResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

ctrsTopicARN :: Lens' CreateTopicResponse (Maybe Text) Source

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