amazonka-workdocs-1.5.0: Amazon WorkDocs SDK.

Copyright(c) 2013-2017 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.WorkDocs.CreateNotificationSubscription

Contents

Description

Configure WorkDocs to use Amazon SNS notifications.

The endpoint receives a confirmation message, and must confirm the subscription. For more information, see Confirm the Subscription in the Amazon Simple Notification Service Developer Guide .

Synopsis

Creating a Request

createNotificationSubscription Source #

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

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

  • cnsOrganizationId - The ID of the organization.
  • cnsEndpoint - The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with "https://".
  • cnsProtocol - The protocol to use. The supported value is https, which delivers JSON-encoded messasges using HTTPS POST.
  • cnsSubscriptionType - The notification type.

data CreateNotificationSubscription Source #

See: createNotificationSubscription smart constructor.

Instances

Eq CreateNotificationSubscription Source # 
Data CreateNotificationSubscription Source # 

Methods

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

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

toConstr :: CreateNotificationSubscription -> Constr #

dataTypeOf :: CreateNotificationSubscription -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateNotificationSubscription Source # 
Show CreateNotificationSubscription Source # 
Generic CreateNotificationSubscription Source # 
Hashable CreateNotificationSubscription Source # 
ToJSON CreateNotificationSubscription Source # 
NFData CreateNotificationSubscription Source # 
AWSRequest CreateNotificationSubscription Source # 
ToQuery CreateNotificationSubscription Source # 
ToPath CreateNotificationSubscription Source # 
ToHeaders CreateNotificationSubscription Source # 
type Rep CreateNotificationSubscription Source # 
type Rep CreateNotificationSubscription = D1 (MetaData "CreateNotificationSubscription" "Network.AWS.WorkDocs.CreateNotificationSubscription" "amazonka-workdocs-1.5.0-BQCQjzmZAyNCgdficzQnx9" False) (C1 (MetaCons "CreateNotificationSubscription'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cnsOrganizationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cnsEndpoint") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_cnsProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SubscriptionProtocolType)) (S1 (MetaSel (Just Symbol "_cnsSubscriptionType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SubscriptionType)))))
type Rs CreateNotificationSubscription Source # 

Request Lenses

cnsEndpoint :: Lens' CreateNotificationSubscription Text Source #

The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with "https://".

cnsProtocol :: Lens' CreateNotificationSubscription SubscriptionProtocolType Source #

The protocol to use. The supported value is https, which delivers JSON-encoded messasges using HTTPS POST.

Destructuring the Response

createNotificationSubscriptionResponse Source #

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

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

data CreateNotificationSubscriptionResponse Source #

Instances

Eq CreateNotificationSubscriptionResponse Source # 
Data CreateNotificationSubscriptionResponse Source # 

Methods

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

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

toConstr :: CreateNotificationSubscriptionResponse -> Constr #

dataTypeOf :: CreateNotificationSubscriptionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateNotificationSubscriptionResponse Source # 
Show CreateNotificationSubscriptionResponse Source # 
Generic CreateNotificationSubscriptionResponse Source # 
NFData CreateNotificationSubscriptionResponse Source # 
type Rep CreateNotificationSubscriptionResponse Source # 
type Rep CreateNotificationSubscriptionResponse = D1 (MetaData "CreateNotificationSubscriptionResponse" "Network.AWS.WorkDocs.CreateNotificationSubscription" "amazonka-workdocs-1.5.0-BQCQjzmZAyNCgdficzQnx9" False) (C1 (MetaCons "CreateNotificationSubscriptionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cnsrsSubscription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Subscription))) (S1 (MetaSel (Just Symbol "_cnsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses