amazonka-ds-1.6.0: Amazon Directory 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.DirectoryService.RegisterEventTopic

Contents

Description

Associates a directory with an SNS topic. This establishes the directory as a publisher to the specified SNS topic. You can then receive email or text (SMS) messages when the status of your directory changes. You get notified if your directory goes from an Active status to an Impaired or Inoperable status. You also receive a notification when the directory returns to an Active status.

Synopsis

Creating a Request

registerEventTopic #

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

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

  • retDirectoryId - The Directory ID that will publish status messages to the SNS topic.
  • retTopicName - The SNS topic name to which the directory will publish status messages. This SNS topic must be in the same region as the specified Directory ID.

data RegisterEventTopic #

Registers a new event topic.

See: registerEventTopic smart constructor.

Instances

Eq RegisterEventTopic # 
Data RegisterEventTopic # 

Methods

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

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

toConstr :: RegisterEventTopic -> Constr #

dataTypeOf :: RegisterEventTopic -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RegisterEventTopic # 
Show RegisterEventTopic # 
Generic RegisterEventTopic # 
Hashable RegisterEventTopic # 
ToJSON RegisterEventTopic # 
NFData RegisterEventTopic # 

Methods

rnf :: RegisterEventTopic -> () #

AWSRequest RegisterEventTopic # 
ToHeaders RegisterEventTopic # 
ToPath RegisterEventTopic # 
ToQuery RegisterEventTopic # 
type Rep RegisterEventTopic # 
type Rep RegisterEventTopic = D1 * (MetaData "RegisterEventTopic" "Network.AWS.DirectoryService.RegisterEventTopic" "amazonka-ds-1.6.0-GmQtRfGRD6LI91OTzfkXGW" False) (C1 * (MetaCons "RegisterEventTopic'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_retDirectoryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_retTopicName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs RegisterEventTopic # 

Request Lenses

retDirectoryId :: Lens' RegisterEventTopic Text #

The Directory ID that will publish status messages to the SNS topic.

retTopicName :: Lens' RegisterEventTopic Text #

The SNS topic name to which the directory will publish status messages. This SNS topic must be in the same region as the specified Directory ID.

Destructuring the Response

registerEventTopicResponse #

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

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

data RegisterEventTopicResponse #

The result of a RegisterEventTopic request.

See: registerEventTopicResponse smart constructor.

Instances

Eq RegisterEventTopicResponse # 
Data RegisterEventTopicResponse # 

Methods

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

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

toConstr :: RegisterEventTopicResponse -> Constr #

dataTypeOf :: RegisterEventTopicResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RegisterEventTopicResponse # 
Show RegisterEventTopicResponse # 
Generic RegisterEventTopicResponse # 
NFData RegisterEventTopicResponse # 
type Rep RegisterEventTopicResponse # 
type Rep RegisterEventTopicResponse = D1 * (MetaData "RegisterEventTopicResponse" "Network.AWS.DirectoryService.RegisterEventTopic" "amazonka-ds-1.6.0-GmQtRfGRD6LI91OTzfkXGW" True) (C1 * (MetaCons "RegisterEventTopicResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_retrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses

retrsResponseStatus :: Lens' RegisterEventTopicResponse Int #

  • - | The response status code.