Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data CreateBudget = CreateBudget' {}
- newCreateBudget :: Text -> Budget -> CreateBudget
- createBudget_notificationsWithSubscribers :: Lens' CreateBudget (Maybe [NotificationWithSubscribers])
- createBudget_accountId :: Lens' CreateBudget Text
- createBudget_budget :: Lens' CreateBudget Budget
- data CreateBudgetResponse = CreateBudgetResponse' {
- httpStatus :: Int
- newCreateBudgetResponse :: Int -> CreateBudgetResponse
- createBudgetResponse_httpStatus :: Lens' CreateBudgetResponse Int
Creating a Request
data CreateBudget Source #
Request of CreateBudget
See: newCreateBudget
smart constructor.
CreateBudget' | |
|
Instances
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.
CreateBudgetResponse' | |
|
Instances
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
createBudgetResponse_httpStatus :: Lens' CreateBudgetResponse Int Source #
The response's http status code.