libZSservicesZSamazonka-budgetsZSamazonka-budgets
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.Budgets.Types.Subscriber

Description

 
Synopsis

Documentation

data Subscriber Source #

The subscriber to a budget notification. The subscriber consists of a subscription type and either an Amazon SNS topic or an email address.

For example, an email subscriber would have the following parameters:

  • A subscriptionType of EMAIL
  • An address of example@example.com

See: newSubscriber smart constructor.

Constructors

Subscriber' 

Fields

  • subscriptionType :: SubscriptionType

    The type of notification that AWS sends to a subscriber.

  • address :: Sensitive Text

    The address that AWS sends budget notifications to, either an SNS topic or an email.

    When you create a subscriber, the value of Address can't contain line breaks.

Instances

Instances details
Eq Subscriber Source # 
Instance details

Defined in Amazonka.Budgets.Types.Subscriber

Show Subscriber Source # 
Instance details

Defined in Amazonka.Budgets.Types.Subscriber

Generic Subscriber Source # 
Instance details

Defined in Amazonka.Budgets.Types.Subscriber

Associated Types

type Rep Subscriber :: Type -> Type #

NFData Subscriber Source # 
Instance details

Defined in Amazonka.Budgets.Types.Subscriber

Methods

rnf :: Subscriber -> () #

Hashable Subscriber Source # 
Instance details

Defined in Amazonka.Budgets.Types.Subscriber

ToJSON Subscriber Source # 
Instance details

Defined in Amazonka.Budgets.Types.Subscriber

FromJSON Subscriber Source # 
Instance details

Defined in Amazonka.Budgets.Types.Subscriber

type Rep Subscriber Source # 
Instance details

Defined in Amazonka.Budgets.Types.Subscriber

type Rep Subscriber = D1 ('MetaData "Subscriber" "Amazonka.Budgets.Types.Subscriber" "libZSservicesZSamazonka-budgetsZSamazonka-budgets" 'False) (C1 ('MetaCons "Subscriber'" 'PrefixI 'True) (S1 ('MetaSel ('Just "subscriptionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SubscriptionType) :*: S1 ('MetaSel ('Just "address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))

newSubscriber Source #

Create a value of Subscriber 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:subscriptionType:Subscriber', subscriber_subscriptionType - The type of notification that AWS sends to a subscriber.

$sel:address:Subscriber', subscriber_address - The address that AWS sends budget notifications to, either an SNS topic or an email.

When you create a subscriber, the value of Address can't contain line breaks.

subscriber_subscriptionType :: Lens' Subscriber SubscriptionType Source #

The type of notification that AWS sends to a subscriber.

subscriber_address :: Lens' Subscriber Text Source #

The address that AWS sends budget notifications to, either an SNS topic or an email.

When you create a subscriber, the value of Address can't contain line breaks.