Show / Hide Table of Contents

Interface CfnProject.IProjectTriggersProperty

ProjectTriggers is a property of the AWS CodeBuild Project resource that specifies webhooks that trigger an AWS CodeBuild build.

Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnProject.IProjectTriggersProperty
Syntax (vb)
Public Interface CfnProject.IProjectTriggersProperty
Remarks
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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html

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.CodeBuild;

             var projectTriggersProperty = new ProjectTriggersProperty {
                 BuildType = "buildType",
                 FilterGroups = new [] { new [] { new WebhookFilterProperty {
                     Pattern = "pattern",
                     Type = "type",

                     // the properties below are optional
                     ExcludeMatchedPattern = false
                 } } },
                 PullRequestBuildPolicy = new PullRequestBuildPolicyProperty {
                     RequiresCommentApproval = "requiresCommentApproval",

                     // the properties below are optional
                     ApproverRoles = new [] { "approverRoles" }
                 },
                 ScopeConfiguration = new ScopeConfigurationProperty {
                     Name = "name",

                     // the properties below are optional
                     Domain = "domain",
                     Scope = "scope"
                 },
                 Webhook = false
             };

Synopsis

Properties

BuildType

Specifies the type of build this webhook will trigger. Allowed values are:.

FilterGroups

A list of lists of WebhookFilter objects used to determine which webhook events are triggered.

PullRequestBuildPolicy

ProjectTriggers is a property of the AWS CodeBuild Project resource that specifies webhooks that trigger an AWS CodeBuild build.

ScopeConfiguration

Contains configuration information about the scope for a webhook.

Webhook

Specifies whether or not to begin automatically rebuilding the source code every time a code change is pushed to the repository.

Properties

BuildType

Specifies the type of build this webhook will trigger. Allowed values are:.

string? BuildType { get; }
Property Value

string

Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html#cfn-codebuild-project-projecttriggers-buildtype

    FilterGroups

    A list of lists of WebhookFilter objects used to determine which webhook events are triggered.

    object? FilterGroups { get; }
    Property Value

    object

    Remarks

    At least one WebhookFilter in the array must specify EVENT as its type.

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html#cfn-codebuild-project-projecttriggers-filtergroups

    Type union: either IResolvable or (either IResolvable or (either IResolvable or CfnProject.IWebhookFilterProperty)[])[]

    PullRequestBuildPolicy

    ProjectTriggers is a property of the AWS CodeBuild Project resource that specifies webhooks that trigger an AWS CodeBuild build.

    object? PullRequestBuildPolicy { get; }
    Property Value

    object

    Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html#cfn-codebuild-project-projecttriggers-pullrequestbuildpolicy

    Type union: either IResolvable or CfnProject.IPullRequestBuildPolicyProperty

    ScopeConfiguration

    Contains configuration information about the scope for a webhook.

    object? ScopeConfiguration { get; }
    Property Value

    object

    Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html#cfn-codebuild-project-projecttriggers-scopeconfiguration

    Type union: either IResolvable or CfnProject.IScopeConfigurationProperty

    Webhook

    Specifies whether or not to begin automatically rebuilding the source code every time a code change is pushed to the repository.

    object? Webhook { get; }
    Property Value

    object

    Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html#cfn-codebuild-project-projecttriggers-webhook

    Type union: either bool or IResolvable

    Back to top Generated by DocFX