Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Network.AWS.Budgets.CreateBudget
Description
Creates a budget and, if included, notifications and subscribers.
- createBudget :: Text -> Budget -> CreateBudget
- data CreateBudget
- cbNotificationsWithSubscribers :: Lens' CreateBudget [NotificationWithSubscribers]
- cbAccountId :: Lens' CreateBudget Text
- cbBudget :: Lens' CreateBudget Budget
- createBudgetResponse :: Int -> CreateBudgetResponse
- data CreateBudgetResponse
- cbrsResponseStatus :: Lens' CreateBudgetResponse Int
Creating a Request
Arguments
:: Text | |
-> Budget | |
-> CreateBudget |
Creates a value of CreateBudget
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cbNotificationsWithSubscribers
- 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 ten email subscribers. If you include notifications and subscribers in yourCreateBudget
call, AWS creates the notifications and subscribers for you.cbAccountId
- TheaccountId
that is associated with the budget.cbBudget
- The budget object that you want to create.
data CreateBudget #
Request of CreateBudget
See: createBudget
smart constructor.
Instances
Request Lenses
cbNotificationsWithSubscribers :: Lens' CreateBudget [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 ten email subscribers. If you include notifications and subscribers in your CreateBudget
call, AWS creates the notifications and subscribers for you.
cbAccountId :: Lens' CreateBudget Text #
The accountId
that is associated with the budget.
cbBudget :: Lens' CreateBudget Budget #
The budget object that you want to create.
Destructuring the Response
Arguments
:: Int | |
-> CreateBudgetResponse |
Creates a value of CreateBudgetResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cbrsResponseStatus
- -- | The response status code.
data CreateBudgetResponse #
Response of CreateBudget
See: createBudgetResponse
smart constructor.
Response Lenses
cbrsResponseStatus :: Lens' CreateBudgetResponse Int #
- - | The response status code.