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.
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTBudgetName, NotificationType, ActionType, ActionThreshold, ExecutionRoleArn, Definition, Subscribers, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all budgets_actions in a region.

SELECT
region,
action_id,
budget_name,
notification_type,
action_type,
action_threshold,
execution_role_arn,
approval_model,
subscribers,
definition,
resource_tags
FROM aws.budgets.budgets_actions
WHERE region = 'us-east-1';

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 aws.budgets.budgets_actions
WHERE region = 'us-east-1' AND data__Identifier = '<ActionId>|<BudgetName>';

INSERT example

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

/*+ create */
INSERT INTO aws.budgets.budgets_actions (
BudgetName,
NotificationType,
ActionType,
ActionThreshold,
ExecutionRoleArn,
Subscribers,
Definition,
region
)
SELECT
'{{ BudgetName }}',
'{{ NotificationType }}',
'{{ ActionType }}',
'{{ ActionThreshold }}',
'{{ ExecutionRoleArn }}',
'{{ Subscribers }}',
'{{ Definition }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.budgets.budgets_actions
WHERE data__Identifier = '<ActionId|BudgetName>'
AND region = 'us-east-1';

Permissions

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

Create

budgets:CreateBudgetAction,
iam:PassRole,
budgets:TagResource

Read

budgets:DescribeBudgetAction,
budgets:ListTagsForResource

Update

budgets:UpdateBudgetAction,
iam:PassRole,
budgets:TagResource,
budgets:UntagResource,
budgets:ListTagsForResource

Delete

budgets:DeleteBudgetAction

List

budgets:DescribeBudgetActionsForAccount,
budgets:DescribeBudgetActionsForBudget