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.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, AWS 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
Eq CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Show CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Generic CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Associated Types

type Rep CreateBudget :: Type -> Type #

NFData CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Methods

rnf :: CreateBudget -> () #

Hashable CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

ToJSON CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

AWSRequest CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Associated Types

type AWSResponse 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

type Rep CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

type Rep CreateBudget = D1 ('MetaData "CreateBudget" "Amazonka.Budgets.CreateBudget" "libZSservicesZSamazonka-budgetsZSamazonka-budgets" '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))))
type AWSResponse CreateBudget Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

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, AWS 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, AWS 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
Eq CreateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Read CreateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Show CreateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Generic CreateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Associated Types

type Rep CreateBudgetResponse :: Type -> Type #

NFData CreateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

Methods

rnf :: CreateBudgetResponse -> () #

type Rep CreateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.CreateBudget

type Rep CreateBudgetResponse = D1 ('MetaData "CreateBudgetResponse" "Amazonka.Budgets.CreateBudget" "libZSservicesZSamazonka-budgetsZSamazonka-budgets" '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