Skip to main content

workflow_step_groups

Creates, updates, deletes, gets or lists a workflow_step_groups resource.

Overview

Nameworkflow_step_groups
TypeResource
Idaws.migrationhuborchestrator.workflow_step_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the step group. (pattern: <code>[a-zA-Z0-9-]+</code>)
namestringThe name of the step group.
creation_timestring (date-time)The time at which the step group was created.
descriptionstringThe description of the step group.
end_timestring (date-time)The time at which the step group ended.
last_modified_timestring (date-time)The time at which the step group was last modified.
nextarrayThe next step group.
ownerstringThe owner of the step group. (AWS_MANAGED, CUSTOM)
previousarrayThe previous step group.
statusstringThe status of the step group. (AWAITING_DEPENDENCIES, READY, IN_PROGRESS, COMPLETED, FAILED, PAUSED, PAUSING, USER_ATTENTION_REQUIRED)
toolsarrayList of AWS services utilized in a migration workflow.
workflow_idstringThe ID of the migration workflow.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_workflow_step_groupselectid, workflowId, regionGet the step group of a migration workflow.
list_workflow_step_groupsselectworkflowId, regionnextToken, maxResultsList the step groups in a migration workflow.
create_workflow_step_groupinsertregion, workflowId, nameCreate a step group in a migration workflow.
update_workflow_step_groupupdateworkflowId, id, regionUpdate the step group in a migration workflow.
delete_workflow_step_groupdeleteworkflowId, id, regionDelete a step group in a migration workflow.

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
idstringThe ID of the step group you want to delete.
regionstringAWS region (default: us-east-1)
workflowIdstringThe ID of the migration workflow.
maxResultsintegerThe maximum number of results that can be returned.
nextTokenstringThe pagination token.

SELECT examples

Get the step group of a migration workflow.

SELECT
id,
name,
creation_time,
description,
end_time,
last_modified_time,
next,
owner,
previous,
status,
tools,
workflow_id
FROM aws.migrationhuborchestrator.workflow_step_groups
WHERE id = '{{ id }}' -- required
AND workflowId = '{{ workflowId }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a step group in a migration workflow.

INSERT INTO aws.migrationhuborchestrator.workflow_step_groups (
workflowId,
name,
description,
next,
previous,
region
)
SELECT
'{{ workflowId }}' /* required */,
'{{ name }}' /* required */,
'{{ description }}',
'{{ next }}',
'{{ previous }}',
'{{ region }}'
RETURNING
id,
name,
creation_time,
description,
next,
previous,
tools,
workflow_id
;

UPDATE examples

Update the step group in a migration workflow.

UPDATE aws.migrationhuborchestrator.workflow_step_groups
SET
name = '{{ name }}',
description = '{{ description }}',
next = '{{ next }}',
previous = '{{ previous }}'
WHERE
workflowId = '{{ workflowId }}' --required
AND id = '{{ id }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
name,
description,
last_modified_time,
next,
previous,
tools,
workflow_id;

DELETE examples

Delete a step group in a migration workflow.

DELETE FROM aws.migrationhuborchestrator.workflow_step_groups
WHERE workflowId = '{{ workflowId }}' --required
AND id = '{{ id }}' --required
AND region = '{{ region }}' --required
;