Skip to main content

budgets_actions

Creates, updates, deletes or gets a budgets_action resource or lists budgets_actions in a region

Overview

Namebudgets_actions
TypeResource
DescriptionAn example resource schema demonstrating some basic constructs and validation rules.
Idawscc.budgets.budgets_actions

Fields

NameDatatypeDescription
action_idstring
budget_namestring
notification_typestring
action_typestring
action_thresholdobject
execution_role_arnstring
approval_modelstring
subscribersarray
definitionobject
resource_tagsarray
regionstringAWS region.

For more information, see AWS::Budgets::BudgetsAction.

Methods

NameResourceAccessible byRequired Params
create_resourcebudgets_actionsINSERTBudgetName, NotificationType, ActionType, ActionThreshold, ExecutionRoleArn, Definition, Subscribers, region
delete_resourcebudgets_actionsDELETEIdentifier, region
update_resourcebudgets_actionsUPDATEIdentifier, PatchDocument, region
list_resourcesbudgets_actions_list_onlySELECTregion
get_resourcebudgets_actionsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual budgets_action.

SELECT
region,
action_id,
budget_name,
notification_type,
action_type,
action_threshold,
execution_role_arn,
approval_model,
subscribers,
definition,
resource_tags
FROM awscc.budgets.budgets_actions
WHERE
region = 'us-east-1' AND
Identifier = '{{ action_id }}|{{ budget_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new budgets_action resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.budgets.budgets_actions (
BudgetName,
NotificationType,
ActionType,
ActionThreshold,
ExecutionRoleArn,
Subscribers,
Definition,
region
)
SELECT
'{{ budget_name }}',
'{{ notification_type }}',
'{{ action_type }}',
'{{ action_threshold }}',
'{{ execution_role_arn }}',
'{{ subscribers }}',
'{{ definition }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a budgets_action resource, using stack-deploy.

/*+ update */
UPDATE awscc.budgets.budgets_actions
SET PatchDocument = string('{{ {
"NotificationType": notification_type,
"ActionThreshold": action_threshold,
"ExecutionRoleArn": execution_role_arn,
"ApprovalModel": approval_model,
"Subscribers": subscribers,
"Definition": definition,
"ResourceTags": resource_tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ action_id }}|{{ budget_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.budgets.budgets_actions
WHERE
Identifier = '{{ action_id }}|{{ budget_name }}' AND
region = 'us-east-1';

Permissions

To operate on the budgets_actions resource, the following permissions are required:

budgets:CreateBudgetAction,
iam:PassRole,
budgets:TagResource