| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- data UpdateBudget = UpdateBudget' {
- accountId :: Text
- newBudget' :: Budget
- newUpdateBudget :: Text -> Budget -> UpdateBudget
- updateBudget_accountId :: Lens' UpdateBudget Text
- updateBudget_newBudget :: Lens' UpdateBudget Budget
- data UpdateBudgetResponse = UpdateBudgetResponse' {
- httpStatus :: Int
- newUpdateBudgetResponse :: Int -> UpdateBudgetResponse
- updateBudgetResponse_httpStatus :: Lens' UpdateBudgetResponse Int
Creating a Request
data UpdateBudget Source #
Request of UpdateBudget
See: newUpdateBudget smart constructor.
Constructors
| UpdateBudget' | |
Fields
| |
Instances
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
newUpdateBudgetResponse Source #
Arguments
| :: Int | |
| -> UpdateBudgetResponse |
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
updateBudgetResponse_httpStatus :: Lens' UpdateBudgetResponse Int Source #
The response's http status code.