state_machine_versions
Creates, updates, deletes or gets a state_machine_version
resource or lists state_machine_versions
in a region
Overview
Name | state_machine_versions |
Type | Resource |
Description | Resource schema for StateMachineVersion |
Id | aws.stepfunctions.state_machine_versions |
Fields
Name | Datatype | Description |
---|---|---|
arn | string | |
state_machine_arn | string | |
state_machine_revision_id | string | |
description | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | StateMachineArn, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all state_machine_versions
in a region.
SELECT
region,
arn,
state_machine_arn,
state_machine_revision_id,
description
FROM aws.stepfunctions.state_machine_versions
WHERE region = 'us-east-1';
Gets all properties from an individual state_machine_version
.
SELECT
region,
arn,
state_machine_arn,
state_machine_revision_id,
description
FROM aws.stepfunctions.state_machine_versions
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';
INSERT
example
Use the following StackQL query and manifest file to create a new state_machine_version
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.stepfunctions.state_machine_versions (
StateMachineArn,
region
)
SELECT
'{{ StateMachineArn }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.stepfunctions.state_machine_versions (
StateMachineArn,
StateMachineRevisionId,
Description,
region
)
SELECT
'{{ StateMachineArn }}',
'{{ StateMachineRevisionId }}',
'{{ Description }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: state_machine_version
props:
- name: StateMachineArn
value: '{{ StateMachineArn }}'
- name: StateMachineRevisionId
value: '{{ StateMachineRevisionId }}'
- name: Description
value: '{{ Description }}'
DELETE
example
/*+ delete */
DELETE FROM aws.stepfunctions.state_machine_versions
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';
Permissions
To operate on the state_machine_versions
resource, the following permissions are required:
Create
states:PublishStateMachineVersion,
states:ListStateMachineVersions,
states:DescribeStateMachine
Read
states:DescribeStateMachine
Delete
states:DeleteStateMachineVersion,
states:DescribeStateMachine
List
states:ListStateMachineVersions