Interface CfnProject.ProjectTriggersProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnProject.ProjectTriggersProperty.Jsii$Proxy
- Enclosing class:
CfnProject
@Stability(Stable)
public static interface CfnProject.ProjectTriggersProperty
extends software.amazon.jsii.JsiiSerializable
ProjectTriggers is a property of the AWS CodeBuild Project resource that specifies webhooks that trigger an AWS CodeBuild build.
The Webhook feature isn't available in AWS CloudFormation for GitHub Enterprise projects. Use the AWS CLI or AWS CodeBuild console to create the webhook.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codebuild.*;
ProjectTriggersProperty projectTriggersProperty = ProjectTriggersProperty.builder()
.buildType("buildType")
.filterGroups(List.of(List.of(WebhookFilterProperty.builder()
.pattern("pattern")
.type("type")
// the properties below are optional
.excludeMatchedPattern(false)
.build())))
.pullRequestBuildPolicy(PullRequestBuildPolicyProperty.builder()
.requiresCommentApproval("requiresCommentApproval")
// the properties below are optional
.approverRoles(List.of("approverRoles"))
.build())
.scopeConfiguration(ScopeConfigurationProperty.builder()
.name("name")
// the properties below are optional
.domain("domain")
.scope("scope")
.build())
.webhook(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnProject.ProjectTriggersPropertystatic final classAn implementation forCfnProject.ProjectTriggersProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringSpecifies the type of build this webhook will trigger.default ObjectA list of lists ofWebhookFilterobjects used to determine which webhook events are triggered.default ObjectReturns union: eitherIResolvableorCfnProject.PullRequestBuildPolicyPropertydefault ObjectContains configuration information about the scope for a webhook.default ObjectSpecifies whether or not to begin automatically rebuilding the source code every time a code change is pushed to the repository.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBuildType
Specifies the type of build this webhook will trigger. Allowed values are:.- BUILD - A single build
- BUILD_BATCH - A batch build
- See Also:
-
getFilterGroups
A list of lists ofWebhookFilterobjects used to determine which webhook events are triggered.At least one
WebhookFilterin the array must specifyEVENTas its type.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnProject.WebhookFilterProperty>>- See Also:
-
getPullRequestBuildPolicy
Returns union: eitherIResolvableorCfnProject.PullRequestBuildPolicyProperty- See Also:
-
getScopeConfiguration
Contains configuration information about the scope for a webhook.Returns union: either
IResolvableorCfnProject.ScopeConfigurationProperty- See Also:
-
getWebhook
Specifies whether or not to begin automatically rebuilding the source code every time a code change is pushed to the repository.Returns union: either
BooleanorIResolvable- See Also:
-
builder
-