AWS SDK Version 3 for .NET
API Reference

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 StartPipelineExecution operation. Starts the specified pipeline. Specifically, it begins processing the latest commit to the source location specified as part of the pipeline.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CodePipeline.AmazonCodePipelineRequest
      Amazon.CodePipeline.Model.StartPipelineExecutionRequest

Namespace: Amazon.CodePipeline.Model
Assembly: AWSSDK.CodePipeline.dll
Version: 3.x.y.z

Syntax

C#
public class StartPipelineExecutionRequest : AmazonCodePipelineRequest
         IAmazonWebServiceRequest

The StartPipelineExecutionRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ClientRequestToken System.String

Gets and sets the property ClientRequestToken.

The system-generated unique ID used to identify a unique execution request.

Public Property Name System.String

Gets and sets the property Name.

The name of the pipeline to start.

Public Property SourceRevisions System.Collections.Generic.List<Amazon.CodePipeline.Model.SourceRevisionOverride>

Gets and sets the property SourceRevisions.

A list that allows you to specify, or override, the source revision for a pipeline execution that's being started. A source revision is the version with all the changes to your application code, or source artifact, for the pipeline execution.

Public Property Variables System.Collections.Generic.List<Amazon.CodePipeline.Model.PipelineVariable>

Gets and sets the property Variables.

A list that overrides pipeline variables for a pipeline execution that's being started. Variable names must match [A-Za-z0-9@\-_]+, and the values can be anything except an empty string.

Examples

This example runs the latest revision present in the source stage of a pipeline through the pipeline named "MyFirstPipeline".

Run the latest revision through a pipeline


var client = new AmazonCodePipelineClient();
var response = client.StartPipelineExecution(new StartPipelineExecutionRequest 
{
    Name = "MyFirstPipeline"
});

string pipelineExecutionId = response.PipelineExecutionId;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5