class Trigger
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CodePipeline.Trigger |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscodepipeline#Trigger |
![]() | software.amazon.awscdk.services.codepipeline.Trigger |
![]() | aws_cdk.aws_codepipeline.Trigger |
![]() | aws-cdk-lib » aws_codepipeline » Trigger |
Trigger.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codepipeline as codepipeline } from 'aws-cdk-lib';
declare const action: codepipeline.Action;
const trigger = new codepipeline.Trigger({
providerType: codepipeline.ProviderType.CODE_STAR_SOURCE_CONNECTION,
// the properties below are optional
gitConfiguration: {
sourceAction: action,
// the properties below are optional
pullRequestFilter: [{
branchesExcludes: ['branchesExcludes'],
branchesIncludes: ['branchesIncludes'],
events: [codepipeline.GitPullRequestEvent.OPEN],
filePathsExcludes: ['filePathsExcludes'],
filePathsIncludes: ['filePathsIncludes'],
}],
pushFilter: [{
tagsExcludes: ['tagsExcludes'],
tagsIncludes: ['tagsIncludes'],
}],
},
});
Initializer
new Trigger(props: TriggerProps)
Parameters
- props
Trigger
Props
Properties
Name | Type | Description |
---|---|---|
source | IAction | The pipeline source action where the trigger configuration. |
sourceAction?
Type:
IAction
(optional)
The pipeline source action where the trigger configuration.