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 action.
Synopsis
- data CreateBudgetAction = CreateBudgetAction' {}
- newCreateBudgetAction :: Text -> Text -> NotificationType -> ActionType -> ActionThreshold -> Definition -> Text -> ApprovalModel -> NonEmpty Subscriber -> CreateBudgetAction
- createBudgetAction_accountId :: Lens' CreateBudgetAction Text
- createBudgetAction_budgetName :: Lens' CreateBudgetAction Text
- createBudgetAction_notificationType :: Lens' CreateBudgetAction NotificationType
- createBudgetAction_actionType :: Lens' CreateBudgetAction ActionType
- createBudgetAction_actionThreshold :: Lens' CreateBudgetAction ActionThreshold
- createBudgetAction_definition :: Lens' CreateBudgetAction Definition
- createBudgetAction_executionRoleArn :: Lens' CreateBudgetAction Text
- createBudgetAction_approvalModel :: Lens' CreateBudgetAction ApprovalModel
- createBudgetAction_subscribers :: Lens' CreateBudgetAction (NonEmpty Subscriber)
- data CreateBudgetActionResponse = CreateBudgetActionResponse' {
- httpStatus :: Int
- accountId :: Text
- budgetName :: Text
- actionId :: Text
- newCreateBudgetActionResponse :: Int -> Text -> Text -> Text -> CreateBudgetActionResponse
- createBudgetActionResponse_httpStatus :: Lens' CreateBudgetActionResponse Int
- createBudgetActionResponse_accountId :: Lens' CreateBudgetActionResponse Text
- createBudgetActionResponse_budgetName :: Lens' CreateBudgetActionResponse Text
- createBudgetActionResponse_actionId :: Lens' CreateBudgetActionResponse Text
Creating a Request
data CreateBudgetAction Source #
See: newCreateBudgetAction
smart constructor.
CreateBudgetAction' | |
|
Instances
newCreateBudgetAction Source #
:: Text | |
-> Text | |
-> NotificationType | |
-> ActionType | |
-> ActionThreshold | |
-> Definition | |
-> Text | |
-> ApprovalModel | |
-> NonEmpty Subscriber | |
-> CreateBudgetAction |
Create a value of CreateBudgetAction
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:CreateBudgetAction'
, createBudgetAction_accountId
- Undocumented member.
$sel:budgetName:CreateBudgetAction'
, createBudgetAction_budgetName
- Undocumented member.
$sel:notificationType:CreateBudgetAction'
, createBudgetAction_notificationType
- Undocumented member.
$sel:actionType:CreateBudgetAction'
, createBudgetAction_actionType
- The type of action. This defines the type of tasks that can be carried
out by this action. This field also determines the format for
definition.
$sel:actionThreshold:CreateBudgetAction'
, createBudgetAction_actionThreshold
- Undocumented member.
$sel:definition:CreateBudgetAction'
, createBudgetAction_definition
- Undocumented member.
$sel:executionRoleArn:CreateBudgetAction'
, createBudgetAction_executionRoleArn
- The role passed for action execution and reversion. Roles and actions
must be in the same account.
$sel:approvalModel:CreateBudgetAction'
, createBudgetAction_approvalModel
- This specifies if the action needs manual or automatic approval.
$sel:subscribers:CreateBudgetAction'
, createBudgetAction_subscribers
- Undocumented member.
Request Lenses
createBudgetAction_accountId :: Lens' CreateBudgetAction Text Source #
Undocumented member.
createBudgetAction_budgetName :: Lens' CreateBudgetAction Text Source #
Undocumented member.
createBudgetAction_notificationType :: Lens' CreateBudgetAction NotificationType Source #
Undocumented member.
createBudgetAction_actionType :: Lens' CreateBudgetAction ActionType Source #
The type of action. This defines the type of tasks that can be carried out by this action. This field also determines the format for definition.
createBudgetAction_actionThreshold :: Lens' CreateBudgetAction ActionThreshold Source #
Undocumented member.
createBudgetAction_definition :: Lens' CreateBudgetAction Definition Source #
Undocumented member.
createBudgetAction_executionRoleArn :: Lens' CreateBudgetAction Text Source #
The role passed for action execution and reversion. Roles and actions must be in the same account.
createBudgetAction_approvalModel :: Lens' CreateBudgetAction ApprovalModel Source #
This specifies if the action needs manual or automatic approval.
createBudgetAction_subscribers :: Lens' CreateBudgetAction (NonEmpty Subscriber) Source #
Undocumented member.
Destructuring the Response
data CreateBudgetActionResponse Source #
See: newCreateBudgetActionResponse
smart constructor.
CreateBudgetActionResponse' | |
|
Instances
newCreateBudgetActionResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> Text | |
-> CreateBudgetActionResponse |
Create a value of CreateBudgetActionResponse
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:CreateBudgetActionResponse'
, createBudgetActionResponse_httpStatus
- The response's http status code.
$sel:accountId:CreateBudgetAction'
, createBudgetActionResponse_accountId
- Undocumented member.
$sel:budgetName:CreateBudgetAction'
, createBudgetActionResponse_budgetName
- Undocumented member.
$sel:actionId:CreateBudgetActionResponse'
, createBudgetActionResponse_actionId
- A system-generated universally unique identifier (UUID) for the action.
Response Lenses
createBudgetActionResponse_httpStatus :: Lens' CreateBudgetActionResponse Int Source #
The response's http status code.
createBudgetActionResponse_accountId :: Lens' CreateBudgetActionResponse Text Source #
Undocumented member.
createBudgetActionResponse_budgetName :: Lens' CreateBudgetActionResponse Text Source #
Undocumented member.
createBudgetActionResponse_actionId :: Lens' CreateBudgetActionResponse Text Source #
A system-generated universally unique identifier (UUID) for the action.