2019/08/29 - AWS CodePipeline - 1 updated api methods
Changes Introducing pipeline execution trigger details in ListPipelineExecutions API.
{'pipelineExecutionSummaries': {'trigger': {'triggerDetail': 'string', 'triggerType': 'CreatePipeline | ' 'StartPipelineExecution ' '| ' 'PollForSourceChanges ' '| Webhook | ' 'CloudWatchEvent | ' 'PutActionRevision'}}}
Gets a summary of the most recent executions for a pipeline.
See also: AWS API Documentation
Request Syntax
client.list_pipeline_executions( pipelineName='string', maxResults=123, nextToken='string' )
string
[REQUIRED]
The name of the pipeline for which you want to get execution summary information.
integer
The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value. Pipeline history is limited to the most recent 12 months, based on pipeline execution start times. Default value is 100.
string
The token that was returned from the previous ListPipelineExecutions call, which can be used to return the next set of pipeline executions in the list.
dict
Response Syntax
{ 'pipelineExecutionSummaries': [ { 'pipelineExecutionId': 'string', 'status': 'InProgress'|'Succeeded'|'Superseded'|'Failed', 'startTime': datetime(2015, 1, 1), 'lastUpdateTime': datetime(2015, 1, 1), 'sourceRevisions': [ { 'actionName': 'string', 'revisionId': 'string', 'revisionSummary': 'string', 'revisionUrl': 'string' }, ], 'trigger': { 'triggerType': 'CreatePipeline'|'StartPipelineExecution'|'PollForSourceChanges'|'Webhook'|'CloudWatchEvent'|'PutActionRevision', 'triggerDetail': 'string' } }, ], 'nextToken': 'string' }
Response Structure
(dict) --
Represents the output of a ListPipelineExecutions action.
pipelineExecutionSummaries (list) --
A list of executions in the history of a pipeline.
(dict) --
Summary information about a pipeline execution.
pipelineExecutionId (string) --
The ID of the pipeline execution.
status (string) --
The status of the pipeline execution.
InProgress: The pipeline execution is currently running.
Succeeded: The pipeline execution was completed successfully.
Superseded: While this pipeline execution was waiting for the next stage to be completed, a newer pipeline execution advanced and continued through the pipeline instead.
Failed: The pipeline execution was not completed successfully.
startTime (datetime) --
The date and time when the pipeline execution began, in timestamp format.
lastUpdateTime (datetime) --
The date and time of the last change to the pipeline execution, in timestamp format.
sourceRevisions (list) --
A list of the source artifact revisions that initiated a pipeline execution.
(dict) --
Information about the version (or revision) of a source artifact that initiated a pipeline execution.
actionName (string) --
The name of the action that processed the revision to the source artifact.
revisionId (string) --
The system-generated unique ID that identifies the revision number of the artifact.
revisionSummary (string) --
Summary information about the most recent revision of the artifact. For GitHub and AWS CodeCommit repositories, the commit message. For Amazon S3 buckets or actions, the user-provided content of a codepipeline-artifact-revision-summary key specified in the object metadata.
revisionUrl (string) --
The commit ID for the artifact revision. For artifacts stored in GitHub or AWS CodeCommit repositories, the commit ID is linked to a commit details page.
trigger (dict) --
The interaction or event that started a pipeline execution, such as automated change detection or a StartPipelineExecution API call.
triggerType (string) --
The type of change-detection method, command, or user interaction that started a pipeline execution.
triggerDetail (string) --
Detail related to the event that started a pipeline execution, such as the webhook ARN of the webhook that triggered the pipeline execution or the user ARN for a user-initiated start-pipeline-execution CLI command.
nextToken (string) --
A token that can be used in the next ListPipelineExecutions call. To view all items in the list, continue to call this operation with each subsequent token until no more nextToken values are returned.