Creates a budget action¶
Description¶
Creates a budget action.
Usage¶
budgets_create_budget_action(AccountId, BudgetName, NotificationType,
ActionType, ActionThreshold, Definition, ExecutionRoleArn,
ApprovalModel, Subscribers, ResourceTags)
Arguments¶
-
AccountId[required] The account ID of the user. It's a 12-digit number.
-
BudgetName[required] A string that represents the budget name. The ":" and "\" characters, and the "/action/" substring, aren't allowed.
Budget names are validated for content. Names that contain phone numbers, URLs, or email addresses combined with certain terms may be rejected.
-
NotificationType[required] The type of a notification. It must be ACTUAL or FORECASTED.
-
ActionType[required] 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.
-
ActionThreshold[required] The trigger threshold of the action.
-
Definition[required] Specifies all of the type-specific parameters.
-
ExecutionRoleArn[required] The role passed for action execution and reversion. Roles and actions must be in the same account.
-
ApprovalModel[required] This specifies if the action needs manual or automatic approval.
-
Subscribers[required] A list of subscribers.
-
ResourceTagsAn optional list of tags to associate with the specified budget action. Each tag consists of a key and a value, and each key must be unique for the resource.
Value¶
A list with the following syntax:
Request syntax¶
svc$create_budget_action(
AccountId = "string",
BudgetName = "string",
NotificationType = "ACTUAL"|"FORECASTED",
ActionType = "APPLY_IAM_POLICY"|"APPLY_SCP_POLICY"|"RUN_SSM_DOCUMENTS",
ActionThreshold = list(
ActionThresholdValue = 123.0,
ActionThresholdType = "PERCENTAGE"|"ABSOLUTE_VALUE"
),
Definition = list(
IamActionDefinition = list(
PolicyArn = "string",
Roles = list(
"string"
),
Groups = list(
"string"
),
Users = list(
"string"
)
),
ScpActionDefinition = list(
PolicyId = "string",
TargetIds = list(
"string"
)
),
SsmActionDefinition = list(
ActionSubType = "STOP_EC2_INSTANCES"|"STOP_RDS_INSTANCES",
Region = "string",
InstanceIds = list(
"string"
)
)
),
ExecutionRoleArn = "string",
ApprovalModel = "AUTOMATIC"|"MANUAL",
Subscribers = list(
list(
SubscriptionType = "SNS"|"EMAIL",
Address = "string"
)
),
ResourceTags = list(
list(
Key = "string",
Value = "string"
)
)
)