libZSservicesZSamazonka-workdocsZSamazonka-workdocs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.WorkDocs.CreateNotificationSubscription

Description

Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a confirmation message, and must confirm the subscription.

For more information, see Subscribe to Notifications in the Amazon WorkDocs Developer Guide.

Synopsis

Creating a Request

data CreateNotificationSubscription Source #

See: newCreateNotificationSubscription smart constructor.

Constructors

CreateNotificationSubscription' 

Fields

Instances

Instances details
Eq CreateNotificationSubscription Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

Read CreateNotificationSubscription Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

Show CreateNotificationSubscription Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

Generic CreateNotificationSubscription Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

Associated Types

type Rep CreateNotificationSubscription :: Type -> Type #

NFData CreateNotificationSubscription Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

Hashable CreateNotificationSubscription Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

ToJSON CreateNotificationSubscription Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

AWSRequest CreateNotificationSubscription Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

ToHeaders CreateNotificationSubscription Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

ToPath CreateNotificationSubscription Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

ToQuery CreateNotificationSubscription Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

type Rep CreateNotificationSubscription Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

type Rep CreateNotificationSubscription = D1 ('MetaData "CreateNotificationSubscription" "Amazonka.WorkDocs.CreateNotificationSubscription" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" 'False) (C1 ('MetaCons "CreateNotificationSubscription'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "organizationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "endpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "protocol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SubscriptionProtocolType) :*: S1 ('MetaSel ('Just "subscriptionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SubscriptionType))))
type AWSResponse CreateNotificationSubscription Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

newCreateNotificationSubscription Source #

Create a value of CreateNotificationSubscription with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:organizationId:CreateNotificationSubscription', createNotificationSubscription_organizationId - The ID of the organization.

$sel:endpoint:CreateNotificationSubscription', createNotificationSubscription_endpoint - The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with https.

$sel:protocol:CreateNotificationSubscription', createNotificationSubscription_protocol - The protocol to use. The supported value is https, which delivers JSON-encoded messages using HTTPS POST.

$sel:subscriptionType:CreateNotificationSubscription', createNotificationSubscription_subscriptionType - The notification type.

Request Lenses

createNotificationSubscription_endpoint :: Lens' CreateNotificationSubscription Text Source #

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

createNotificationSubscription_protocol :: Lens' CreateNotificationSubscription SubscriptionProtocolType Source #

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

Destructuring the Response

data CreateNotificationSubscriptionResponse Source #

Constructors

CreateNotificationSubscriptionResponse' 

Fields

Instances

Instances details
Eq CreateNotificationSubscriptionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

Read CreateNotificationSubscriptionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

Show CreateNotificationSubscriptionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

Generic CreateNotificationSubscriptionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

NFData CreateNotificationSubscriptionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

type Rep CreateNotificationSubscriptionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateNotificationSubscription

type Rep CreateNotificationSubscriptionResponse = D1 ('MetaData "CreateNotificationSubscriptionResponse" "Amazonka.WorkDocs.CreateNotificationSubscription" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" 'False) (C1 ('MetaCons "CreateNotificationSubscriptionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "subscription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Subscription)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateNotificationSubscriptionResponse Source #

Create a value of CreateNotificationSubscriptionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:subscription:CreateNotificationSubscriptionResponse', createNotificationSubscriptionResponse_subscription - The subscription.

$sel:httpStatus:CreateNotificationSubscriptionResponse', createNotificationSubscriptionResponse_httpStatus - The response's http status code.

Response Lenses