# PullRequestBuildPolicyProperty

- Source: Generated at build time
- Type last changed: v2.212.0 · 20 Aug 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codebuild as codebuild } from 'aws-cdk-lib';
const pullRequestBuildPolicyProperty: codebuild.CfnProject.PullRequestBuildPolicyProperty = {
  requiresCommentApproval: 'requiresCommentApproval',

  // the properties below are optional
  approverRoles: ['approverRoles'],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codebuild as codebuild

pull_request_build_policy_property = codebuild.CfnProject.PullRequestBuildPolicyProperty(
    requires_comment_approval="requiresCommentApproval",

    # the properties below are optional
    approver_roles=["approverRoles"]
)
```

Java:

```java
// 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.*;

PullRequestBuildPolicyProperty pullRequestBuildPolicyProperty = PullRequestBuildPolicyProperty.builder()
        .requiresCommentApproval("requiresCommentApproval")

        // the properties below are optional
        .approverRoles(List.of("approverRoles"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 pullRequestBuildPolicyProperty = new PullRequestBuildPolicyProperty {
    RequiresCommentApproval = "requiresCommentApproval",

    // the properties below are optional
    ApproverRoles = new [] { "approverRoles" }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

pullRequestBuildPolicyProperty := &PullRequestBuildPolicyProperty{
	RequiresCommentApproval: jsii.String("requiresCommentApproval"),

	// the properties below are optional
	ApproverRoles: []*string{
		jsii.String("approverRoles"),
	},
}
```

## Properties

- `approverRoles`: string[]

- `requiresCommentApproval`: string (required)
