AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the DisableStageTransition operation. Prevents artifacts in a pipeline from transitioning to the next stage in the pipeline.
Namespace: Amazon.CodePipeline.Model
Assembly: AWSSDK.CodePipeline.dll
Version: 3.x.y.z
public class DisableStageTransitionRequest : AmazonCodePipelineRequest IAmazonWebServiceRequest
The DisableStageTransitionRequest type exposes the following members
Name | Description | |
---|---|---|
DisableStageTransitionRequest() |
Name | Type | Description | |
---|---|---|---|
PipelineName | System.String |
Gets and sets the property PipelineName. The name of the pipeline in which you want to disable the flow of artifacts from one stage to another. |
|
Reason | System.String |
Gets and sets the property Reason. The reason given to the user that a stage is disabled, such as waiting for manual approval or manual tests. This message is displayed in the pipeline console UI. |
|
StageName | System.String |
Gets and sets the property StageName. The name of the stage where you want to disable the inbound or outbound transition of artifacts. |
|
TransitionType | Amazon.CodePipeline.StageTransitionType |
Gets and sets the property TransitionType. Specifies whether artifacts are prevented from transitioning into the stage and being processed by the actions in that stage (inbound), or prevented from transitioning from the stage after they have been processed by the actions in that stage (outbound). |
This example disables transitions into the Beta stage of the MyFirstPipeline pipeline in AWS CodePipeline.
var client = new AmazonCodePipelineClient(); var response = client.DisableStageTransition(new DisableStageTransitionRequest { PipelineName = "MyFirstPipeline", Reason = "An example reason", StageName = "Beta", TransitionType = "Inbound" // Valid values are Inbound, which prevents artifacts from transitioning into the stage and being processed by the actions in that stage, or Outbound, which prevents artifacts from transitioning out of the stage after they have been processed by the actions in that stage. });
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5