There are more AWS SDK examples available in the AWS Doc SDK Examples
Use DisableStageTransition with a CLI
The following code examples show how to use DisableStageTransition.
- CLI
-
- AWS CLI
-
To disable a transition to a stage in a pipeline
The following
disable-stage-transitionexample disables transitions into the Beta stage of the MyFirstPipeline pipeline in AWS CodePipeline.aws codepipeline disable-stage-transition \ --pipeline-nameMyFirstPipeline\ --stage-nameBeta\ --transition-typeInbound\ --reason"An example reason"This command produces no output.
For more information, see Working with stage transitions in CodePipeline in the AWS CodePipeline User Guide.
-
For API details, see DisableStageTransition
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell V4
-
Example 1: This example disables the inbound transition for the specified stage in the specified pipeline.
Disable-CPStageTransition -PipelineName CodePipelineDemo -Reason "Disabling temporarily." -StageName Beta -TransitionType Inbound-
For API details, see DisableStageTransition in AWS Tools for PowerShell Cmdlet Reference (V4).
-
- Tools for PowerShell V5
-
Example 1: This example disables the inbound transition for the specified stage in the specified pipeline.
Disable-CPStageTransition -PipelineName CodePipelineDemo -Reason "Disabling temporarily." -StageName Beta -TransitionType Inbound-
For API details, see DisableStageTransition in AWS Tools for PowerShell Cmdlet Reference (V5).
-