PullRequestBuildPolicyProperty Struct
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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" }
};
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
approverRolesoptionalstring[]approver_rolesoptionaltyping.List[str]approverRolesoptionalList<String>ApproverRolesoptionalstring[]ApproverRolesoptional*[]*string #requiresCommentApprovalstringrequires_comment_approvalstrrequiresCommentApprovalStringRequiresCommentApprovalstringRequiresCommentApproval*string required #