Use AWS CodePipeline to inspect release pipelines and execution history, start or stop runs, retry stages, and approve or reject manual approval actions. Stage transitions can be disabled or re-enabled to control pipeline flow.
Start, stop, and monitor pipeline executions, retry failed stages, and approve or reject manual approval actions. Requires AWS access key and secret access key.
List all CodePipeline pipelines in an AWS account and region
Inputs and outputsParameter Type Required Description awsRegionstring Yes AWS region (e.g., us-east-1) awsAccessKeyIdstring Yes AWS access key ID awsSecretAccessKeystring Yes AWS secret access key maxResultsnumber No Maximum number of pipelines to return (1-1000) nextTokenstring No Pagination token from a previous call
Parameter Type Description pipelinesarray List of pipelines with name, version, type, and timestamps ↳ name string Pipeline name ↳ version number Pipeline version number ↳ pipelineType string Pipeline type (V1 or V2) ↳ executionMode string Execution mode (QUEUED, SUPERSEDED, PARALLEL) ↳ created number Epoch ms when the pipeline was created ↳ updated number Epoch ms when the pipeline was last updated nextTokenstring Pagination token for the next page of results
Get the structure of a CodePipeline pipeline, including its stages, actions, and variables
Inputs and outputsParameter Type Required Description awsRegionstring Yes AWS region (e.g., us-east-1) awsAccessKeyIdstring Yes AWS access key ID awsSecretAccessKeystring Yes AWS secret access key pipelineNamestring Yes Name of the pipeline versionnumber No Pipeline version to retrieve (defaults to the current version)
Parameter Type Description pipelineNamestring Pipeline name pipelineArnstring Pipeline ARN roleArnstring IAM role ARN the pipeline assumes versionnumber Pipeline version number pipelineTypestring Pipeline type (V1 or V2) executionModestring Execution mode (QUEUED, SUPERSEDED, PARALLEL) artifactStoreTypestring Artifact store type (S3) artifactStoreLocationstring Artifact store bucket location stagesarray Pipeline stages with their actions (name, category, provider, configuration) ↳ stageName string Stage name ↳ actions array Actions in the stage, in run order variablesarray Pipeline variable declarations with default values ↳ name string Variable name ↳ defaultValue string Default value ↳ description string Variable description creatednumber Epoch ms when the pipeline was created updatednumber Epoch ms when the pipeline was last updated
Get the current state of a CodePipeline pipeline, including stage and action status and pending approval tokens
Inputs and outputsParameter Type Required Description awsRegionstring Yes AWS region (e.g., us-east-1) awsAccessKeyIdstring Yes AWS access key ID awsSecretAccessKeystring Yes AWS secret access key pipelineNamestring Yes Name of the pipeline
Parameter Type Description pipelineNamestring Pipeline name pipelineVersionnumber Pipeline version number creatednumber Epoch ms when the pipeline was created updatednumber Epoch ms when the pipeline was last updated stageStatesarray Per-stage state including latest execution status and action details ↳ stageName string Stage name ↳ status string Latest stage execution status (InProgress, Succeeded, Failed, Stopped, Cancelled) ↳ pipelineExecutionId string Pipeline execution ID currently in the stage ↳ inboundTransitionEnabled boolean Whether the inbound transition into the stage is enabled ↳ actionStates array Per-action state with status, summary, error details, and approval token (for pending manual approvals)
Get details of a CodePipeline execution, including status, trigger, source revisions, and resolved variables
Inputs and outputsParameter Type Required Description awsRegionstring Yes AWS region (e.g., us-east-1) awsAccessKeyIdstring Yes AWS access key ID awsSecretAccessKeystring Yes AWS secret access key pipelineNamestring Yes Name of the pipeline pipelineExecutionIdstring Yes ID of the pipeline execution
Parameter Type Description pipelineExecutionIdstring Pipeline execution ID pipelineNamestring Pipeline name pipelineVersionnumber Pipeline version number statusstring Execution status (Cancelled, InProgress, Stopped, Stopping, Succeeded, Superseded, Failed) statusSummarystring Status summary for the execution executionModestring Execution mode (QUEUED, SUPERSEDED, PARALLEL) executionTypestring Execution type (STANDARD or ROLLBACK) triggerTypestring What triggered the execution (e.g., Webhook, StartPipelineExecution) triggerDetailstring Detail about the trigger (e.g., user ARN) artifactRevisionsarray Source artifact revisions for the execution ↳ name string Artifact name ↳ revisionId string Revision ID (e.g., commit SHA) ↳ revisionSummary string Revision summary (e.g., commit message) ↳ revisionUrl string URL of the revision ↳ created number Epoch ms when the revision was created variablesarray Resolved pipeline variables for the execution ↳ name string Variable name ↳ resolvedValue string Resolved variable value
List recent executions of a CodePipeline pipeline with status and source revisions
Inputs and outputsParameter Type Required Description awsRegionstring Yes AWS region (e.g., us-east-1) awsAccessKeyIdstring Yes AWS access key ID awsSecretAccessKeystring Yes AWS secret access key pipelineNamestring Yes Name of the pipeline maxResultsnumber No Maximum number of executions to return (1-100, default 100) nextTokenstring No Pagination token from a previous call succeededInStagestring No Only return executions that succeeded in this stage
Parameter Type Description executionsarray Pipeline execution summaries, most recent first ↳ pipelineExecutionId string Pipeline execution ID ↳ status string Execution status (Cancelled, InProgress, Stopped, Stopping, Succeeded, Superseded, Failed) ↳ statusSummary string Status summary for the execution ↳ startTime number Epoch ms when the execution started ↳ lastUpdateTime number Epoch ms when the execution was last updated ↳ executionMode string Execution mode (QUEUED, SUPERSEDED, PARALLEL) ↳ executionType string Execution type (STANDARD or ROLLBACK) ↳ stopTriggerReason string Reason the execution was stopped, if applicable ↳ triggerType string What triggered the execution ↳ triggerDetail string Detail about the trigger ↳ rollbackTargetPipelineExecutionId string Execution ID this run rolled back to, if it was a rollback ↳ sourceRevisions array Source revisions (commit IDs, summaries, URLs) for the execution nextTokenstring Pagination token for the next page of results
List action-level execution history for a CodePipeline pipeline, including per-action status, timing, and error details
Inputs and outputsParameter Type Required Description awsRegionstring Yes AWS region (e.g., us-east-1) awsAccessKeyIdstring Yes AWS access key ID awsSecretAccessKeystring Yes AWS secret access key pipelineNamestring Yes Name of the pipeline pipelineExecutionIdstring No Only return action executions for this pipeline execution maxResultsnumber No Maximum number of action executions to return (1-100, default 100) nextTokenstring No Pagination token from a previous call
Parameter Type Description actionExecutionDetailsarray Action execution history, most recent first ↳ pipelineExecutionId string Pipeline execution ID ↳ actionExecutionId string Action execution ID (use as the approval token for PARALLEL execution-mode pipelines) ↳ pipelineVersion number Pipeline version number ↳ stageName string Stage the action belongs to ↳ actionName string Action name ↳ startTime number Epoch ms when the action started ↳ lastUpdateTime number Epoch ms when the action was last updated ↳ updatedBy string Who or what last updated the action ↳ status string Action execution status (InProgress, Abandoned, Succeeded, Failed) ↳ externalExecutionId string ID of the external system execution (e.g., CodeBuild build ID) ↳ externalExecutionSummary string Summary from the external system execution ↳ externalExecutionUrl string URL of the external system execution ↳ errorCode string Error code if the action failed ↳ errorMessage string Error message if the action failed nextTokenstring Pagination token for the next page of results
Start a CodePipeline pipeline execution, optionally overriding pipeline variables
Inputs and outputsParameter Type Required Description awsRegionstring Yes AWS region (e.g., us-east-1) awsAccessKeyIdstring Yes AWS access key ID awsSecretAccessKeystring Yes AWS secret access key pipelineNamestring Yes Name of the pipeline to start clientRequestTokenstring No Idempotency token to identify a unique execution request variablesjson No Pipeline variable overrides as an array of { name, value } objects
Parameter Type Description pipelineExecutionIdstring ID of the pipeline execution that was started
Stop a CodePipeline pipeline execution, either finishing in-progress actions or abandoning them
Inputs and outputsParameter Type Required Description awsRegionstring Yes AWS region (e.g., us-east-1) awsAccessKeyIdstring Yes AWS access key ID awsSecretAccessKeystring Yes AWS secret access key pipelineNamestring Yes Name of the pipeline pipelineExecutionIdstring Yes ID of the pipeline execution to stop abandonboolean No Abandon in-progress actions instead of letting them finish (default false) reasonstring No Reason for stopping the execution (max 200 characters)
Parameter Type Description pipelineExecutionIdstring ID of the pipeline execution that was stopped
Retry the failed actions (or all actions) of a failed CodePipeline stage
Inputs and outputsParameter Type Required Description awsRegionstring Yes AWS region (e.g., us-east-1) awsAccessKeyIdstring Yes AWS access key ID awsSecretAccessKeystring Yes AWS secret access key pipelineNamestring Yes Name of the pipeline stageNamestring Yes Name of the failed stage to retry pipelineExecutionIdstring Yes ID of the pipeline execution in the failed stage retryModestring Yes Scope of the retry: FAILED_ACTIONS or ALL_ACTIONS
Parameter Type Description pipelineExecutionIdstring ID of the pipeline execution with the retried stage
Approve or reject a pending CodePipeline manual approval action. The approval token is available from Get Pipeline State on the pending approval action
Inputs and outputsParameter Type Required Description awsRegionstring Yes AWS region (e.g., us-east-1) awsAccessKeyIdstring Yes AWS access key ID awsSecretAccessKeystring Yes AWS secret access key pipelineNamestring Yes Name of the pipeline stageNamestring Yes Name of the stage containing the approval action actionNamestring Yes Name of the manual approval action tokenstring Yes Approval token from Get Pipeline State for the pending approval statusstring Yes Approval decision: Approved or Rejected summarystring Yes Summary explaining the approval decision (max 512 characters)
Parameter Type Description approvedAtnumber Epoch ms when the approval or rejection was submitted statusstring The submitted approval decision (Approved or Rejected)
Prevent artifacts from transitioning into or out of a CodePipeline stage, freezing the pipeline at that point
Inputs and outputsParameter Type Required Description awsRegionstring Yes AWS region (e.g., us-east-1) awsAccessKeyIdstring Yes AWS access key ID awsSecretAccessKeystring Yes AWS secret access key pipelineNamestring Yes Name of the pipeline stageNamestring Yes Name of the stage to disable the transition for transitionTypestring Yes Inbound to block artifacts entering the stage, Outbound to block artifacts leaving it reasonstring Yes Reason the transition is disabled, shown in the pipeline console (max 300 characters)
Parameter Type Description pipelineNamestring Pipeline name stageNamestring Stage whose transition was disabled transitionTypestring Transition type that was disabled (Inbound or Outbound)
Re-enable artifacts transitioning into or out of a CodePipeline stage after it was disabled
Inputs and outputsParameter Type Required Description awsRegionstring Yes AWS region (e.g., us-east-1) awsAccessKeyIdstring Yes AWS access key ID awsSecretAccessKeystring Yes AWS secret access key pipelineNamestring Yes Name of the pipeline stageNamestring Yes Name of the stage to enable the transition for transitionTypestring Yes Inbound to allow artifacts entering the stage, Outbound to allow artifacts leaving it
Parameter Type Description pipelineNamestring Pipeline name stageNamestring Stage whose transition was enabled transitionTypestring Transition type that was enabled (Inbound or Outbound)