amazonka-budgets-2.0: Amazon Budgets SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.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

AWSRequest CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Associated Types

type AWSResponse CreateSubscriber #

Generic CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Associated Types

type Rep CreateSubscriber :: Type -> Type #

Show CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

NFData CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Methods

rnf :: CreateSubscriber -> () #

Eq CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Hashable CreateSubscriber Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

type AWSResponse 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" "amazonka-budgets-2.0-7U1RWOWP6pxJESvTUhAD5Y" '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))))

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.

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

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
Generic CreateSubscriberResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Associated Types

type Rep CreateSubscriberResponse :: Type -> Type #

Read CreateSubscriberResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Show CreateSubscriberResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

NFData CreateSubscriberResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateSubscriber

Eq 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" "amazonka-budgets-2.0-7U1RWOWP6pxJESvTUhAD5Y" '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