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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 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

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:

  • 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
Eq CreateTopic Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

Data CreateTopic Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateTopic -> c CreateTopic #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateTopic #

toConstr :: CreateTopic -> Constr #

dataTypeOf :: CreateTopic -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateTopic) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateTopic) #

gmapT :: (forall b. Data b => b -> b) -> CreateTopic -> CreateTopic #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateTopic -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateTopic -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateTopic -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateTopic -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateTopic -> m CreateTopic #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTopic -> m CreateTopic #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTopic -> m CreateTopic #

Read CreateTopic Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

Show CreateTopic Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

Generic CreateTopic Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

Associated Types

type Rep CreateTopic :: Type -> Type #

Hashable CreateTopic Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

AWSRequest CreateTopic Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

Associated Types

type Rs CreateTopic :: Type #

ToHeaders CreateTopic Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

Methods

toHeaders :: CreateTopic -> [Header] #

ToPath CreateTopic Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

ToQuery CreateTopic Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

NFData CreateTopic Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

Methods

rnf :: CreateTopic -> () #

type Rep CreateTopic Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

type Rep CreateTopic = D1 (MetaData "CreateTopic" "Network.AWS.SNS.CreateTopic" "amazonka-sns-1.6.1-7GBYpIO1P7AJWNWtL33amk" True) (C1 (MetaCons "CreateTopic'" PrefixI True) (S1 (MetaSel (Just "_ctName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs CreateTopic Source # 
Instance details

Defined in Network.AWS.SNS.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.

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:

data CreateTopicResponse Source #

Response from CreateTopic action.

See: createTopicResponse smart constructor.

Instances
Eq CreateTopicResponse Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

Data CreateTopicResponse Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateTopicResponse -> c CreateTopicResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateTopicResponse #

toConstr :: CreateTopicResponse -> Constr #

dataTypeOf :: CreateTopicResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateTopicResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateTopicResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateTopicResponse -> CreateTopicResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateTopicResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateTopicResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateTopicResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateTopicResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateTopicResponse -> m CreateTopicResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTopicResponse -> m CreateTopicResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTopicResponse -> m CreateTopicResponse #

Read CreateTopicResponse Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

Show CreateTopicResponse Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

Generic CreateTopicResponse Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

Associated Types

type Rep CreateTopicResponse :: Type -> Type #

NFData CreateTopicResponse Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

Methods

rnf :: CreateTopicResponse -> () #

type Rep CreateTopicResponse Source # 
Instance details

Defined in Network.AWS.SNS.CreateTopic

type Rep CreateTopicResponse = D1 (MetaData "CreateTopicResponse" "Network.AWS.SNS.CreateTopic" "amazonka-sns-1.6.1-7GBYpIO1P7AJWNWtL33amk" False) (C1 (MetaCons "CreateTopicResponse'" PrefixI True) (S1 (MetaSel (Just "_ctrsTopicARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ctrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

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.