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.CreateSubscriber

Description

Creates a subscriber. You must create the associated budget and notification before you create the subscriber.

Synopsis

Creating a Request

data CreateSubscriber Source #

Request of CreateSubscriber

See: newCreateSubscriber smart constructor.

Constructors

CreateSubscriber' 

Fields

  • accountId :: Text

    The accountId that is associated with the budget that you want to create a subscriber for.

  • budgetName :: Text

    The name of the budget that you want to subscribe to. Budget names must be unique within an account.

  • notification :: Notification

    The notification that you want to create a subscriber for.

  • subscriber :: Subscriber

    The subscriber that you want to associate with a budget notification.

Instances

Instances details
Eq CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Show CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Generic CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Associated Types

type Rep CreateSubscriber :: Type -> Type #

NFData CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Methods

rnf :: CreateSubscriber -> () #

Hashable CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

ToJSON CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

AWSRequest CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Associated Types

type AWSResponse CreateSubscriber #

ToHeaders CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

ToPath CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

ToQuery CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

type Rep CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

type Rep CreateSubscriber = D1 ('MetaData "CreateSubscriber" "Amazonka.Budgets.CreateSubscriber" "libZSservicesZSamazonka-budgetsZSamazonka-budgets" 'False) (C1 ('MetaCons "CreateSubscriber'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "budgetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "notification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Notification) :*: S1 ('MetaSel ('Just "subscriber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Subscriber))))
type AWSResponse CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

newCreateSubscriber Source #

Create a value of CreateSubscriber 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:accountId:CreateSubscriber', createSubscriber_accountId - The accountId that is associated with the budget that you want to create a subscriber for.

$sel:budgetName:CreateSubscriber', createSubscriber_budgetName - The name of the budget that you want to subscribe to. Budget names must be unique within an account.

$sel:notification:CreateSubscriber', createSubscriber_notification - The notification that you want to create a subscriber for.

$sel:subscriber:CreateSubscriber', createSubscriber_subscriber - The subscriber that you want to associate with a budget notification.

Request Lenses

createSubscriber_accountId :: Lens' CreateSubscriber Text Source #

The accountId that is associated with the budget that you want to create a subscriber for.

createSubscriber_budgetName :: Lens' CreateSubscriber Text Source #

The name of the budget that you want to subscribe to. Budget names must be unique within an account.

createSubscriber_notification :: Lens' CreateSubscriber Notification Source #

The notification that you want to create a subscriber for.

createSubscriber_subscriber :: Lens' CreateSubscriber Subscriber Source #

The subscriber that you want to associate with a budget notification.

Destructuring the Response

data CreateSubscriberResponse Source #

Response of CreateSubscriber

See: newCreateSubscriberResponse smart constructor.

Constructors

CreateSubscriberResponse' 

Fields

Instances

Instances details
Eq CreateSubscriberResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Read CreateSubscriberResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Show CreateSubscriberResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Generic CreateSubscriberResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Associated Types

type Rep CreateSubscriberResponse :: Type -> Type #

NFData CreateSubscriberResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

type Rep CreateSubscriberResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

type Rep CreateSubscriberResponse = D1 ('MetaData "CreateSubscriberResponse" "Amazonka.Budgets.CreateSubscriber" "libZSservicesZSamazonka-budgetsZSamazonka-budgets" 'False) (C1 ('MetaCons "CreateSubscriberResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateSubscriberResponse Source #

Create a value of CreateSubscriberResponse 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:httpStatus:CreateSubscriberResponse', createSubscriberResponse_httpStatus - The response's http status code.

Response Lenses