amazonka-workdocs-1.6.1: Amazon WorkDocs 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.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 messages using HTTPS POST.
  • cnsSubscriptionType - The notification type.

data CreateNotificationSubscription Source #

See: createNotificationSubscription smart constructor.

Instances
Eq CreateNotificationSubscription Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

Data CreateNotificationSubscription Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

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 # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

Show CreateNotificationSubscription Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

Generic CreateNotificationSubscription Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

Associated Types

type Rep CreateNotificationSubscription :: Type -> Type #

Hashable CreateNotificationSubscription Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

ToJSON CreateNotificationSubscription Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

AWSRequest CreateNotificationSubscription Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

Associated Types

type Rs CreateNotificationSubscription :: Type #

ToHeaders CreateNotificationSubscription Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

ToPath CreateNotificationSubscription Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

ToQuery CreateNotificationSubscription Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

NFData CreateNotificationSubscription Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

type Rep CreateNotificationSubscription Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

type Rep CreateNotificationSubscription = D1 (MetaData "CreateNotificationSubscription" "Network.AWS.WorkDocs.CreateNotificationSubscription" "amazonka-workdocs-1.6.1-7lORy3cdAvvAKwhZON5nxY" False) (C1 (MetaCons "CreateNotificationSubscription'" PrefixI True) ((S1 (MetaSel (Just "_cnsOrganizationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cnsEndpoint") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_cnsProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SubscriptionProtocolType) :*: S1 (MetaSel (Just "_cnsSubscriptionType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SubscriptionType))))
type Rs CreateNotificationSubscription Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

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 messages 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 # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

Data CreateNotificationSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

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 # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

Show CreateNotificationSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

Generic CreateNotificationSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

NFData CreateNotificationSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

type Rep CreateNotificationSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateNotificationSubscription

type Rep CreateNotificationSubscriptionResponse = D1 (MetaData "CreateNotificationSubscriptionResponse" "Network.AWS.WorkDocs.CreateNotificationSubscription" "amazonka-workdocs-1.6.1-7lORy3cdAvvAKwhZON5nxY" False) (C1 (MetaCons "CreateNotificationSubscriptionResponse'" PrefixI True) (S1 (MetaSel (Just "_cnsrsSubscription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Subscription)) :*: S1 (MetaSel (Just "_cnsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses