Skip to main content

pipeline_states

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

Overview

Namepipeline_states
TypeResource
Idaws.codepipeline.pipeline_states

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
createdstring (date-time)The date and time the pipeline was created, in timestamp format.
pipeline_namestringThe name of the pipeline for which you want to get the state. (pattern: <code>[A-Za-z0-9.@-_]+</code>)
pipeline_versionintegerThe version number of the pipeline. A newly created pipeline is always assigned a version number of 1.
stage_statesarrayA list of the pipeline stage output information, including stage name, state, most recent run details, whether the stage is disabled, and other data.
updatedstring (date-time)The date and time the pipeline was last updated, in timestamp format.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_pipeline_stateselectregionReturns information about the state of a pipeline, including the stages and actions. Values returned in the revisionId and revisionUrl fields indicate the source revision information, such as the commit ID, for the current state.

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

Returns information about the state of a pipeline, including the stages and actions. Values returned in the revisionId and revisionUrl fields indicate the source revision information, such as the commit ID, for the current state.

SELECT
created,
pipeline_name,
pipeline_version,
stage_states,
updated
FROM aws.codepipeline.pipeline_states
WHERE region = '{{ region }}' -- required
;