Interface CfnPipeline.IGitConfigurationProperty
A type of trigger configuration for Git-based source actions.
Namespace: Amazon.CDK.AWS.CodePipeline
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IGitConfigurationProperty
Syntax (vb)
Public Interface IGitConfigurationProperty
Remarks
You can specify the Git configuration trigger type for all third-party Git-based source actions that are supported by the CodeStarSourceConnection
action type.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodePipeline;
var gitConfigurationProperty = new GitConfigurationProperty {
SourceActionName = "sourceActionName",
// the properties below are optional
PullRequest = new [] { new GitPullRequestFilterProperty {
Branches = new GitBranchFilterCriteriaProperty {
Excludes = new [] { "excludes" },
Includes = new [] { "includes" }
},
Events = new [] { "events" },
FilePaths = new GitFilePathFilterCriteriaProperty {
Excludes = new [] { "excludes" },
Includes = new [] { "includes" }
}
} },
Push = new [] { new GitPushFilterProperty {
Branches = new GitBranchFilterCriteriaProperty {
Excludes = new [] { "excludes" },
Includes = new [] { "includes" }
},
FilePaths = new GitFilePathFilterCriteriaProperty {
Excludes = new [] { "excludes" },
Includes = new [] { "includes" }
},
Tags = new GitTagFilterCriteriaProperty {
Excludes = new [] { "excludes" },
Includes = new [] { "includes" }
}
} }
};
Synopsis
Properties
Pull |
The field where the repository event that will start the pipeline is specified as pull requests. |
Push | The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. |
Source |
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. |
Properties
PullRequest
The field where the repository event that will start the pipeline is specified as pull requests.
virtual object PullRequest { get; }
Property Value
System.
Remarks
Push
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.
virtual object Push { get; }
Property Value
System.
Remarks
SourceActionName
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified.
string SourceActionName { get; }
Property Value
System.
Remarks
The trigger configuration will start the pipeline upon the specified change only.
You can only specify one trigger configuration per source action.