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

Description

Updates a budget. You can change every part of a budget except for the budgetName and the calculatedSpend. When you modify a budget, the calculatedSpend drops to zero until AWS has new usage data to use for forecasting.

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 UpdateBudget Source #

Request of UpdateBudget

See: newUpdateBudget smart constructor.

Constructors

UpdateBudget' 

Fields

  • accountId :: Text

    The accountId that is associated with the budget that you want to update.

  • newBudget' :: Budget

    The budget that you want to update your budget to.

Instances

Instances details
Eq UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Read UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Show UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Generic UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Associated Types

type Rep UpdateBudget :: Type -> Type #

NFData UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Methods

rnf :: UpdateBudget -> () #

Hashable UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

ToJSON UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

AWSRequest UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Associated Types

type AWSResponse UpdateBudget #

ToHeaders UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

ToPath UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

ToQuery UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

type Rep UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

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

Defined in Amazonka.Budgets.UpdateBudget

newUpdateBudget Source #

Create a value of UpdateBudget 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:UpdateBudget', updateBudget_accountId - The accountId that is associated with the budget that you want to update.

$sel:newBudget':UpdateBudget', updateBudget_newBudget - The budget that you want to update your budget to.

Request Lenses

updateBudget_accountId :: Lens' UpdateBudget Text Source #

The accountId that is associated with the budget that you want to update.

updateBudget_newBudget :: Lens' UpdateBudget Budget Source #

The budget that you want to update your budget to.

Destructuring the Response

data UpdateBudgetResponse Source #

Response of UpdateBudget

See: newUpdateBudgetResponse smart constructor.

Constructors

UpdateBudgetResponse' 

Fields

Instances

Instances details
Eq UpdateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Read UpdateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Show UpdateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Generic UpdateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Associated Types

type Rep UpdateBudgetResponse :: Type -> Type #

NFData UpdateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Methods

rnf :: UpdateBudgetResponse -> () #

type Rep UpdateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

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

newUpdateBudgetResponse Source #

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

Response Lenses