Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
See: AWS API Reference for CreateTopic.
Creating a Request
:: Text | |
-> 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:
data CreateTopic Source
Input for CreateTopic action.
See: createTopic
smart constructor.
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
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:
data CreateTopicResponse Source
Response from CreateTopic action.
See: createTopicResponse
smart constructor.
Response Lenses
ctrsTopicARN :: Lens' CreateTopicResponse (Maybe Text) Source
The Amazon Resource Name (ARN) assigned to the created topic.
ctrsResponseStatus :: Lens' CreateTopicResponse Int Source
The response status code.