Skip to main content

steps

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

Overview

Namesteps
TypeResource
Idaws.deadline.steps

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the step.
created_atstring (date-time)The date and time the resource was created.
created_bystringThe user or system that created this resource.
dependency_countsobjectThe number of dependencies in the step.
descriptionstringThe description of the step. This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
ended_atstring (date-time)The date and time the resource ended running.
lifecycle_statusstringThe life cycle status of the step. (CREATE_COMPLETE, UPDATE_IN_PROGRESS, UPDATE_FAILED, UPDATE_SUCCEEDED)
lifecycle_status_messagestringA message that describes the lifecycle status of the step.
parameter_spaceobjectA list of step parameters and the combination expression for the step.
required_capabilitiesobjectThe required capabilities of the step.
started_atstring (date-time)The date and time the resource started running.
step_idstringThe step ID. (pattern: <code>step-[0-9a-f]{32}</code>)
target_task_run_statusstringThe task status with which the job started. (READY, FAILED, SUCCEEDED, CANCELED, SUSPENDED, PENDING)
task_failure_retry_countintegerThe total number of times tasks from the step failed and were retried.
task_run_statusstringThe task run status for the job. (PENDING, READY, ASSIGNED, STARTING, SCHEDULED, INTERRUPTING, RUNNING, SUSPENDED, CANCELED, FAILED, SUCCEEDED, NOT_COMPATIBLE)
task_run_status_countsobjectThe number of tasks running on the job.
updated_atstring (date-time)The date and time the resource was updated.
updated_bystringThe user or system that updated this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_stepselectfarm_id, queue_id, job_id, step_id, regionGets a step.
list_stepsselectfarm_id, queue_id, job_id, regionnextToken, maxResultsLists steps for a job.
search_stepsselectfarm_id, regionSearches for steps.
batch_get_stepselectregionRetrieves multiple steps in a single request. This is a batch version of the GetStep API. The result of getting each step is reported individually in the response. Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.
update_stepupdatefarm_id, queue_id, job_id, step_id, region, targetTaskRunStatusX-Amz-Client-TokenUpdates a step.

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
farm_idstringThe farm ID to update.
job_idstringThe job ID to update.
queue_idstringThe queue ID to update.
regionstringAWS region (default: us-east-1)
step_idstringThe step ID to update.
X-Amz-Client-TokenstringThe unique token which the server uses to recognize retries of the same request.
maxResultsintegerThe maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.
nextTokenstringThe token for the next set of results, or null to start from the beginning.

SELECT examples

Gets a step.

SELECT
name,
created_at,
created_by,
dependency_counts,
description,
ended_at,
lifecycle_status,
lifecycle_status_message,
parameter_space,
required_capabilities,
started_at,
step_id,
target_task_run_status,
task_failure_retry_count,
task_run_status,
task_run_status_counts,
updated_at,
updated_by
FROM aws.deadline.steps
WHERE farm_id = '{{ farm_id }}' -- required
AND queue_id = '{{ queue_id }}' -- required
AND job_id = '{{ job_id }}' -- required
AND step_id = '{{ step_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates a step.

UPDATE aws.deadline.steps
SET
targetTaskRunStatus = '{{ targetTaskRunStatus }}'
WHERE
farm_id = '{{ farm_id }}' --required
AND queue_id = '{{ queue_id }}' --required
AND job_id = '{{ job_id }}' --required
AND step_id = '{{ step_id }}' --required
AND region = '{{ region }}' --required
AND targetTaskRunStatus = '{{ targetTaskRunStatus }}' --required
AND `X-Amz-Client-Token` = '{{ X-Amz-Client-Token}}';