| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.AWS.SNS.CreateTopic
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
- data CreateTopic
- createTopic :: Text -> CreateTopic
- ctName :: Lens' CreateTopic Text
- data CreateTopicResponse
- createTopicResponse :: CreateTopicResponse
- ctrTopicArn :: Lens' CreateTopicResponse (Maybe Text)
Request
data CreateTopic Source
Instances
| Eq CreateTopic | |
| Ord CreateTopic | |
| Read CreateTopic | |
| Show CreateTopic | |
| IsString CreateTopic | |
| Monoid CreateTopic | |
| AWSRequest CreateTopic | |
| ToQuery CreateTopic | |
| ToPath CreateTopic | |
| ToHeaders CreateTopic | |
| type Sv CreateTopic = SNS | |
| type Rs CreateTopic = CreateTopicResponse |
Request constructor
Arguments
| :: Text | |
| -> CreateTopic |
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:
ctrTopicArn::MaybeText
Response lenses
ctrTopicArn :: Lens' CreateTopicResponse (Maybe Text) Source
The Amazon Resource Name (ARN) assigned to the created topic.