Skip to content
v2.277.0

BatchBuildConfig Struct ​

The type returned from IProject#enableBatchBuilds.

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';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const role: iam.Role;
const batchBuildConfig: codebuild.BatchBuildConfig = {
  role: role,
};
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
from aws_cdk import aws_iam as iam

# role: iam.Role

batch_build_config = codebuild.BatchBuildConfig(
    role=role
)
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.*;
import software.amazon.awscdk.services.iam.*;

Role role;

BatchBuildConfig batchBuildConfig = BatchBuildConfig.builder()
        .role(role)
        .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;
using Amazon.CDK.AWS.IAM;

Role role;

var batchBuildConfig = new BatchBuildConfig {
    Role = role
};
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"
import "github.com/aws/aws-cdk-go/awscdk"

var role Role

batchBuildConfig := &BatchBuildConfig{
	Role: role,
}

Properties ​

roleIRoleroleIRoleroleIRoleRoleIRoleRoleIRole required #
The IAM batch service Role of this Project.