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

Description

Creates a budget and, if included, notifications and subscribers.

Only one of BudgetLimit or PlannedBudgetLimits can be present in the syntax at one time. Use the syntax that matches your case. The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits, see the Examples section.

Synopsis

Creating a Request

data CreateBudget Source #

Request of CreateBudget

See: newCreateBudget smart constructor.

Constructors

CreateBudget' 

Fields

  • notificationsWithSubscribers :: Maybe [NotificationWithSubscribers]

    A notification that you want to associate with a budget. A budget can have up to five notifications, and each notification can have one SNS subscriber and up to 10 email subscribers. If you include notifications and subscribers in your CreateBudget call, Amazon Web Services creates the notifications and subscribers for you.

  • accountId :: Text

    The accountId that is associated with the budget.

  • budget :: Budget

    The budget object that you want to create.

Instances

Instances details
ToJSON CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

ToHeaders CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

ToPath CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

ToQuery CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

AWSRequest CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Associated Types

type AWSResponse CreateBudget #

Generic CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Associated Types

type Rep CreateBudget :: Type -> Type #

Show CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

NFData CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Methods

rnf :: CreateBudget -> () #

Eq CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Hashable CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

type AWSResponse CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

type Rep CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

type Rep CreateBudget = D1 ('MetaData "CreateBudget" "Amazonka.Budgets.CreateBudget" "amazonka-budgets-2.0-7U1RWOWP6pxJESvTUhAD5Y" 'False) (C1 ('MetaCons "CreateBudget'" 'PrefixI 'True) (S1 ('MetaSel ('Just "notificationsWithSubscribers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [NotificationWithSubscribers])) :*: (S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "budget") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Budget))))

newCreateBudget Source #

Create a value of CreateBudget 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:notificationsWithSubscribers:CreateBudget', createBudget_notificationsWithSubscribers - A notification that you want to associate with a budget. A budget can have up to five notifications, and each notification can have one SNS subscriber and up to 10 email subscribers. If you include notifications and subscribers in your CreateBudget call, Amazon Web Services creates the notifications and subscribers for you.

$sel:accountId:CreateBudget', createBudget_accountId - The accountId that is associated with the budget.

$sel:budget:CreateBudget', createBudget_budget - The budget object that you want to create.

Request Lenses

createBudget_notificationsWithSubscribers :: Lens' CreateBudget (Maybe [NotificationWithSubscribers]) Source #

A notification that you want to associate with a budget. A budget can have up to five notifications, and each notification can have one SNS subscriber and up to 10 email subscribers. If you include notifications and subscribers in your CreateBudget call, Amazon Web Services creates the notifications and subscribers for you.

createBudget_accountId :: Lens' CreateBudget Text Source #

The accountId that is associated with the budget.

createBudget_budget :: Lens' CreateBudget Budget Source #

The budget object that you want to create.

Destructuring the Response

data CreateBudgetResponse Source #

Response of CreateBudget

See: newCreateBudgetResponse smart constructor.

Constructors

CreateBudgetResponse' 

Fields

Instances

Instances details
Generic CreateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Associated Types

type Rep CreateBudgetResponse :: Type -> Type #

Read CreateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Show CreateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

NFData CreateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Methods

rnf :: CreateBudgetResponse -> () #

Eq CreateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

type Rep CreateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

type Rep CreateBudgetResponse = D1 ('MetaData "CreateBudgetResponse" "Amazonka.Budgets.CreateBudget" "amazonka-budgets-2.0-7U1RWOWP6pxJESvTUhAD5Y" 'False) (C1 ('MetaCons "CreateBudgetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateBudgetResponse Source #

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

Response Lenses