libZSservicesZSamazonka-snsZSamazonka-sns
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.SNS.Types.Subscription

Description

 
Synopsis

Documentation

data Subscription Source #

A wrapper type for the attributes of an Amazon SNS subscription.

See: newSubscription smart constructor.

Constructors

Subscription' 

Fields

Instances

Instances details
Eq Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

Read Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

Show Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

Generic Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

Associated Types

type Rep Subscription :: Type -> Type #

NFData Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

Methods

rnf :: Subscription -> () #

Hashable Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

FromXML Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

type Rep Subscription Source # 
Instance details

Defined in Amazonka.SNS.Types.Subscription

type Rep Subscription = D1 ('MetaData "Subscription" "Amazonka.SNS.Types.Subscription" "libZSservicesZSamazonka-snsZSamazonka-sns" 'False) (C1 ('MetaCons "Subscription'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "protocol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "owner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "topicArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "endpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "subscriptionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newSubscription :: Subscription Source #

Create a value of Subscription 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:protocol:Subscription', subscription_protocol - The subscription's protocol.

$sel:owner:Subscription', subscription_owner - The subscription's owner.

$sel:topicArn:Subscription', subscription_topicArn - The ARN of the subscription's topic.

$sel:endpoint:Subscription', subscription_endpoint - The subscription's endpoint (format depends on the protocol).

$sel:subscriptionArn:Subscription', subscription_subscriptionArn - The subscription's ARN.

subscription_protocol :: Lens' Subscription (Maybe Text) Source #

The subscription's protocol.

subscription_owner :: Lens' Subscription (Maybe Text) Source #

The subscription's owner.

subscription_topicArn :: Lens' Subscription (Maybe Text) Source #

The ARN of the subscription's topic.

subscription_endpoint :: Lens' Subscription (Maybe Text) Source #

The subscription's endpoint (format depends on the protocol).