Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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 100,000 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
:: 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:
ctName
- 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.
data CreateTopic Source #
Input for CreateTopic action.
See: createTopic
smart constructor.
Instances
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:
ctrsTopicARN
- The Amazon Resource Name (ARN) assigned to the created topic.ctrsResponseStatus
- -- | The response status code.
data CreateTopicResponse Source #
Response from CreateTopic action.
See: createTopicResponse
smart constructor.
Instances
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.