Skip to main content

activities

Creates, updates, deletes or gets an activity resource or lists activities in a region

Overview

Nameactivities
TypeResource
DescriptionResource schema for Activity
Idaws.stepfunctions.activities

Fields

NameDatatypeDescription
arnstring
tagsarray
namestring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all activities in a region.

SELECT
region,
arn,
tags,
name
FROM aws.stepfunctions.activities
WHERE region = 'us-east-1';

Gets all properties from an individual activity.

SELECT
region,
arn,
tags,
name
FROM aws.stepfunctions.activities
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.stepfunctions.activities (
Name,
region
)
SELECT
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.stepfunctions.activities
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Read

states:DescribeActivity,
states:ListTagsForResource

Create

states:CreateActivity,
states:TagResource

Update

states:ListTagsForResource,
states:TagResource,
states:UntagResource

List

states:ListActivities

Delete

states:DescribeActivity,
states:DeleteActivity