Skip to main content

workflow_runs

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

Overview

Nameworkflow_runs
TypeResource
Idaws.codecatalyst.workflow_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the workflow run. (pattern: <code>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}</code>)
end_timestring (date-time)The date and time the workflow run ended, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
last_updated_timestring (date-time)The date and time the workflow run status was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339
project_namestringThe name of the project in the space. (pattern: <code>[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*</code>)
space_namestringThe name of the space. (pattern: <code>[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*</code>)
start_timestring (date-time)The date and time the workflow run began, in coordinated universal time (UTC) timestamp format as specified in RFC 3339
statusstringThe status of the workflow run. (SUCCEEDED, FAILED, STOPPED, SUPERSEDED, CANCELLED, NOT_RUN, VALIDATING, PROVISIONING, IN_PROGRESS, STOPPING, ABANDONED)
status_reasonsarrayInformation about the reasons for the status of the workflow run.
workflow_idstringThe ID of the workflow. (pattern: <code>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_workflow_runselectspace_name, id, project_name, regionReturns information about a specified run of a workflow.
list_workflow_runsselectspace_name, project_name, regionworkflowId, nextToken, maxResultsRetrieves a list of workflow runs of a specified 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 workflow run. To retrieve a list of workflow run IDs, use ListWorkflowRuns.
project_namestringThe name of the project in the space.
regionstringAWS region (default: us-east-1)
space_namestringThe name of the space.
maxResultsintegerThe maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a NextToken element, which you can use to obtain additional results.
nextTokenstringA token returned from a call to this API to indicate the next batch of results to return, if any.
workflowIdstringThe ID of the workflow. To retrieve a list of workflow IDs, use ListWorkflows.

SELECT examples

Returns information about a specified run of a workflow.

SELECT
id,
end_time,
last_updated_time,
project_name,
space_name,
start_time,
status,
status_reasons,
workflow_id
FROM aws.codecatalyst.workflow_runs
WHERE space_name = '{{ space_name }}' -- required
AND id = '{{ id }}' -- required
AND project_name = '{{ project_name }}' -- required
AND region = '{{ region }}' -- required
;