Use EnableStageTransition with an AWS SDK or CLI - AWS SDK Code Examples

There are more AWS SDK examples available in the AWS Doc SDK Examples GitHub repo.

Use EnableStageTransition with an AWS SDK or CLI

The following code examples show how to use EnableStageTransition.

CLI
AWS CLI

To enable a transition to a stage in a pipeline

This example enables transitions into the Beta stage of the MyFirstPipeline pipeline in AWS CodePipeline.

Command:

aws codepipeline enable-stage-transition --pipeline-name MyFirstPipeline --stage-name Beta --transition-type Inbound

Output:

None.
PowerShell
Tools for PowerShell

Example 1: This example enables the inbound transition for the specified stage in the specified pipeline.

Enable-CPStageTransition -PipelineName CodePipelineDemo -StageName Beta -TransitionType Inbound