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.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 Amazon Web Services 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
ToJSON UpdateBudget Source # 
Instance details

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

AWSRequest UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Associated Types

type AWSResponse UpdateBudget #

Generic UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Associated Types

type Rep UpdateBudget :: Type -> Type #

Read UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Show UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

NFData UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Methods

rnf :: UpdateBudget -> () #

Eq UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Hashable UpdateBudget Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

type AWSResponse 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" "amazonka-budgets-2.0-7U1RWOWP6pxJESvTUhAD5Y" 'False) (C1 ('MetaCons "UpdateBudget'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "newBudget'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Budget)))

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

Defined in Amazonka.Budgets.UpdateBudget

Associated Types

type Rep UpdateBudgetResponse :: Type -> Type #

Read UpdateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Show UpdateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

NFData UpdateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

Methods

rnf :: UpdateBudgetResponse -> () #

Eq UpdateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

type Rep UpdateBudgetResponse Source # 
Instance details

Defined in Amazonka.Budgets.UpdateBudget

type Rep UpdateBudgetResponse = D1 ('MetaData "UpdateBudgetResponse" "Amazonka.Budgets.UpdateBudget" "amazonka-budgets-2.0-7U1RWOWP6pxJESvTUhAD5Y" '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