Skip to main content

activities

Creates, updates, deletes, gets or lists an activities resource.

Overview

Nameactivities
TypeResource
Idaws.stepfunctions.activities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the activity. A name must not contain: white space brackets < > { } [ ] wildcard characters ? * special characters " # % \ ^ | ~ ` $ & , ; : / control characters (U+0000-001F, U+007F-009F, U+FFFE-FFFF) surrogates (U+D800-DFFF) invalid characters ( U+10FFFF) To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
activity_arnstringThe Amazon Resource Name (ARN) that identifies the activity.
creation_datestring (date-time)The date the activity is created.
encryption_configurationobjectSettings for configured server-side encryption.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_activityselectregionDescribes an activity. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
list_activitiesselectregionLists the existing activities. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
create_activityinsertregion, nameCreates an activity. An activity is a task that you write in any programming language and host on any machine that has access to Step Functions. Activities must poll Step Functions using the GetActivityTask API action and respond using SendTask* API actions. This function lets Step Functions know the existence of your activity and returns an identifier for use in a state machine and when polling from the activity. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes. CreateActivity is an idempotent API. Subsequent requests won’t create a duplicate resource if it was already created. CreateActivity's idempotency check is based on the activity name. If a following request has different tags values, Step Functions will ignore these differences and treat it as an idempotent request of the previous. In this case, tags will not be updated, even if they are different.
delete_activitydeleteregionDeletes an activity.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes an activity. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.

SELECT
name,
activity_arn,
creation_date,
encryption_configuration
FROM aws.stepfunctions.activities
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an activity. An activity is a task that you write in any programming language and host on any machine that has access to Step Functions. Activities must poll Step Functions using the GetActivityTask API action and respond using SendTask* API actions. This function lets Step Functions know the existence of your activity and returns an identifier for use in a state machine and when polling from the activity. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes. CreateActivity is an idempotent API. Subsequent requests won’t create a duplicate resource if it was already created. CreateActivity's idempotency check is based on the activity name. If a following request has different tags values, Step Functions will ignore these differences and treat it as an idempotent request of the previous. In this case, tags will not be updated, even if they are different.

INSERT INTO aws.stepfunctions.activities (
name,
tags,
encryptionConfiguration,
region
)
SELECT
'{{ name }}' /* required */,
'{{ tags }}',
'{{ encryptionConfiguration }}',
'{{ region }}'
RETURNING
activity_arn,
creation_date
;

DELETE examples

Deletes an activity.

DELETE FROM aws.stepfunctions.activities
WHERE region = '{{ region }}' --required
;