Package software.amazon.awscdk.services.codebuild
AWS CodeBuild Construct Library
AWS CodeBuild is a fully managed continuous integration service that compiles source code, runs tests, and produces software packages that are ready to deploy. With CodeBuild, you don’t need to provision, manage, and scale your own build servers. CodeBuild scales continuously and processes multiple builds concurrently, so your builds are not left waiting in a queue. You can get started quickly by using prepackaged build environments, or you can create custom build environments that use your own build tools. With CodeBuild, you are charged by the minute for the compute resources you use.
Source
 Build projects are usually associated with a source, which is specified via
 the source property which accepts a class that extends the Source
 abstract base class.
 The default is to have no source associated with the build project;
 the buildSpec option is required in that case.
 
 Here's a CodeBuild project with no source which simply prints Hello, CodeBuild!:
 
 Project.Builder.create(this, "MyProject")
         .buildSpec(BuildSpec.fromObject(Map.of(
                 "version", "0.2",
                 "phases", Map.of(
                         "build", Map.of(
                                 "commands", List.of("echo \"Hello, CodeBuild!\""))))))
         .build();
 
 
CodeCommitSource
 Use an AWS CodeCommit repository as the source of this build:
 import software.amazon.awscdk.services.codecommit.*;
 
 
 Repository repository = Repository.Builder.create(this, "MyRepo").repositoryName("foo").build();
 Project.Builder.create(this, "MyFirstCodeCommitProject")
         .source(Source.codeCommit(CodeCommitSourceProps.builder().repository(repository).build()))
         .build();
 
 
S3Source
 Create a CodeBuild project with an S3 bucket as the source:
 Bucket bucket = new Bucket(this, "MyBucket");
 
 Project.Builder.create(this, "MyProject")
         .source(Source.s3(S3SourceProps.builder()
                 .bucket(bucket)
                 .path("path/to/file.zip")
                 .build()))
         .build();
 
 
 The CodeBuild role will be granted to read just the given path from the given bucket.
 
GitHubSource and GitHubEnterpriseSource
 These source types can be used to build code from a GitHub repository. Example:
 ISource gitHubSource = Source.gitHub(GitHubSourceProps.builder()
         .owner("awslabs")
         .repo("aws-cdk") // optional, default: undefined if unspecified will create organization webhook
         .webhook(true) // optional, default: true if `webhookFilters` were provided, false otherwise
         .webhookTriggersBatchBuild(true) // optional, default is false
         .webhookFilters(List.of(FilterGroup.inEventOf(EventAction.PUSH).andBranchIs("main").andCommitMessageIs("the commit message"), FilterGroup.inEventOf(EventAction.RELEASED).andBranchIs("main")))
         .build());
 
 
 The GitHubSource is also able to trigger all repos in GitHub Organizations
 Example:
 
 ISource gitHubSource = Source.gitHub(GitHubSourceProps.builder()
         .owner("aws")
         .webhookTriggersBatchBuild(true) // optional, default is false
         .webhookFilters(List.of(FilterGroup.inEventOf(EventAction.WORKFLOW_JOB_QUEUED).andRepositoryNameIs("aws-.*").andRepositoryNameIsNot("aws-cdk-lib")))
         .build());
 
 
 To provide GitHub credentials, please either go to AWS CodeBuild Console to connect
 or call ImportSourceCredentials to persist your personal access token.
 Example:
 
aws codebuild import-source-credentials --server-type GITHUB --auth-type PERSONAL_ACCESS_TOKEN --token <token_value>
BitBucketSource
 This source type can be used to build code from a BitBucket repository.
 ISource bbSource = Source.bitBucket(BitBucketSourceProps.builder()
         .owner("owner")
         .repo("repo")
         .build());
 
 
For all Git sources
For all Git sources, you can fetch submodules while cloning git repo.
 ISource gitHubSource = Source.gitHub(GitHubSourceProps.builder()
         .owner("awslabs")
         .repo("aws-cdk")
         .fetchSubmodules(true)
         .build());
 
 
BuildSpec
The build spec can be provided from a number of different sources
File path relative to the root of the source
You can specify a specific filename that exists within the project's source artifact to use as the buildspec.
 Project project = Project.Builder.create(this, "MyProject")
         .buildSpec(BuildSpec.fromSourceFilename("my-buildspec.yml"))
         .source(Source.gitHub(GitHubSourceProps.builder()
                 .owner("awslabs")
                 .repo("aws-cdk")
                 .build()))
         .build();
 
 
 This will use my-buildspec.yml file within the awslabs/aws-cdk repository as the build spec.
 
File within the CDK project codebuild
You can also specify a file within your cdk project directory to use as the buildspec.
 Project project = Project.Builder.create(this, "MyProject")
         .buildSpec(BuildSpec.fromAsset("my-buildspec.yml"))
         .build();
 
 This file will be uploaded to S3 and referenced from the codebuild project.
Inline object
 Project project = Project.Builder.create(this, "MyProject")
         .buildSpec(BuildSpec.fromObject(Map.of(
                 "version", "0.2")))
         .build();
 
 
 This will result in the buildspec being rendered as JSON within the codebuild project, if you prefer it to be rendered as YAML, use fromObjectToYaml.
 
 Project project = Project.Builder.create(this, "MyProject")
         .buildSpec(BuildSpec.fromObjectToYaml(Map.of(
                 "version", "0.2")))
         .build();
 
 
Artifacts
CodeBuild Projects can produce Artifacts and upload them to S3. For example:
 Bucket bucket;
 
 
 Project project = Project.Builder.create(this, "MyProject")
         .buildSpec(BuildSpec.fromObject(Map.of(
                 "version", "0.2")))
         .artifacts(Artifacts.s3(S3ArtifactsProps.builder()
                 .bucket(bucket)
                 .includeBuildId(false)
                 .packageZip(true)
                 .path("another/path")
                 .identifier("AddArtifact1")
                 .build()))
         .build();
 
 
 Because we've not set the name property, this example will set the
 overrideArtifactName parameter, and produce an artifact named as defined in
 the Buildspec file, uploaded to an S3 bucket (bucket). The path will be
 another/path and the artifact will be a zipfile.
 
CodePipeline
 To add a CodeBuild Project as an Action to CodePipeline,
 use the PipelineProject class instead of Project.
 It's a simple class that doesn't allow you to specify sources,
 secondarySources, artifacts or secondaryArtifacts,
 as these are handled by setting input and output CodePipeline Artifact instances on the Action,
 instead of setting them on the Project.
 
PipelineProject project = PipelineProject.Builder.create(this, "Project").build();
 For more details, see the readme of the @aws-cdk/aws-codepipeline-actions package.
 
Caching
You can save time when your project builds by using a cache. A cache can store reusable pieces of your build environment and use them across multiple builds. Your build project can use one of two types of caching: Amazon S3 or local. In general, S3 caching is a good option for small and intermediate build artifacts that are more expensive to build than to download. Local caching is a good option for large intermediate build artifacts because the cache is immediately available on the build host.
S3 Caching
 With S3 caching, the cache is stored in an S3 bucket which is available
 regardless from what CodeBuild instance gets selected to run your CodeBuild job
 on. When using S3 caching, you must also add in a cache section to your
 buildspec which indicates the files to be cached:
 
 Bucket myCachingBucket;
 
 
 Project.Builder.create(this, "Project")
         .source(Source.bitBucket(BitBucketSourceProps.builder()
                 .owner("awslabs")
                 .repo("aws-cdk")
                 .build()))
 
         .cache(Cache.bucket(myCachingBucket))
 
         // BuildSpec with a 'cache' section necessary for S3 caching. This can
         // also come from 'buildspec.yml' in your source.
         .buildSpec(BuildSpec.fromObject(Map.of(
                 "version", "0.2",
                 "phases", Map.of(
                         "build", Map.of(
                                 "commands", List.of("..."))),
                 "cache", Map.of(
                         "paths", List.of("/root/cachedir/**/*")))))
         .build();
 
 If you want to share the same cache between multiple projects, you must must do the following:
- Use the same 
cacheNamespace. - Specify the same cache key.
 - Define identical cache paths.
 - Use the same Amazon S3 buckets and 
pathPrefixif set. 
 Bucket sourceBucket;
 Bucket myCachingBucket;
 
 
 Project.Builder.create(this, "ProjectA")
         .source(Source.s3(S3SourceProps.builder()
                 .bucket(sourceBucket)
                 .path("path/to/source-a.zip")
                 .build()))
         // configure the same bucket and path prefix
         .cache(Cache.bucket(myCachingBucket, BucketCacheOptions.builder()
                 .prefix("cache")
                 // use the same cache namespace
                 .cacheNamespace("cache-namespace")
                 .build()))
         .buildSpec(BuildSpec.fromObject(Map.of(
                 "version", "0.2",
                 "phases", Map.of(
                         "build", Map.of(
                                 "commands", List.of("..."))),
                 // specify the same cache key and paths
                 "cache", Map.of(
                         "key", "unique-key",
                         "paths", List.of("/root/cachedir/**/*")))))
         .build();
 
 Project.Builder.create(this, "ProjectB")
         .source(Source.s3(S3SourceProps.builder()
                 .bucket(sourceBucket)
                 .path("path/to/source-b.zip")
                 .build()))
         // configure the same bucket and path prefix
         .cache(Cache.bucket(myCachingBucket, BucketCacheOptions.builder()
                 .prefix("cache")
                 // use the same cache namespace
                 .cacheNamespace("cache-namespace")
                 .build()))
         .buildSpec(BuildSpec.fromObject(Map.of(
                 "version", "0.2",
                 "phases", Map.of(
                         "build", Map.of(
                                 "commands", List.of("..."))),
                 // specify the same cache key and paths
                 "cache", Map.of(
                         "key", "unique-key",
                         "paths", List.of("/root/cachedir/**/*")))))
         .build();
 
 
Local Caching
With local caching, the cache is stored on the codebuild instance itself. This is simple, cheap and fast, but CodeBuild cannot guarantee a reuse of instance and hence cannot guarantee cache hits. For example, when a build starts and caches files locally, if two subsequent builds start at the same time afterwards only one of those builds would get the cache. Three different cache modes are supported, which can be turned on individually.
LocalCacheMode.SOURCEcaches Git metadata for primary and secondary sources.LocalCacheMode.DOCKER_LAYERcaches existing Docker layers.LocalCacheMode.CUSTOMcaches directories you specify in the buildspec file.
 Project.Builder.create(this, "Project")
         .source(Source.gitHubEnterprise(GitHubEnterpriseSourceProps.builder()
                 .httpsCloneUrl("https://my-github-enterprise.com/owner/repo")
                 .build()))
 
         // Enable Docker AND custom caching
         .cache(Cache.local(LocalCacheMode.DOCKER_LAYER, LocalCacheMode.CUSTOM))
 
         // BuildSpec with a 'cache' section necessary for 'CUSTOM' caching. This can
         // also come from 'buildspec.yml' in your source.
         .buildSpec(BuildSpec.fromObject(Map.of(
                 "version", "0.2",
                 "phases", Map.of(
                         "build", Map.of(
                                 "commands", List.of("..."))),
                 "cache", Map.of(
                         "paths", List.of("/root/cachedir/**/*")))))
         .build();
 
 
Environment
 By default, projects use a small instance with an Ubuntu 18.04 image. You
 can use the environment property to customize the build environment:
 
buildImagedefines the Docker image used. See Images below for details on how to define build images.certificatedefines the location of a PEM encoded certificate to import.computeTypedefines the instance type used for the build.dockerServerdefines the docker server used for the build.privilegedcan be set totrueto allow privileged access.environmentVariablescan be set at this level (and also at the project level).
 Finally, you can also set the build environment fleet property to create
 a reserved capacity project. See Fleet for more information.
 
Images
 The CodeBuild library supports Linux, Windows, and Mac images via the
 LinuxBuildImage (or LinuxArmBuildImage), WindowsBuildImage, and MacBuildImage classes, respectively.
 With the introduction of Lambda compute support, the LinuxLambdaBuildImage  (or LinuxArmLambdaBuildImage) class
 is available for specifying Lambda-compatible images.
 
 You can specify one of the predefined Windows/Linux images by using one
 of the constants such as WindowsBuildImage.WIN_SERVER_CORE_2019_BASE,
 WindowsBuildImage.WINDOWS_BASE_2_0, LinuxBuildImage.STANDARD_2_0,
 LinuxBuildImage.AMAZON_LINUX_2_5, MacBuildImage.BASE_14, LinuxArmBuildImage.AMAZON_LINUX_2_ARM,
 LinuxLambdaBuildImage.AMAZON_LINUX_2_NODE_18 or LinuxArmLambdaBuildImage.AMAZON_LINUX_2_NODE_18.
 
 Alternatively, you can specify a custom image using one of the static methods on
 LinuxBuildImage:
 
LinuxBuildImage.fromDockerRegistry(image[, { secretsManagerCredentials }])to reference an image in any public or private Docker registry.LinuxBuildImage.fromEcrRepository(repo[, tag])to reference an image available in an ECR repository.LinuxBuildImage.fromAsset(parent, id, props)to use an image created from a local asset.LinuxBuildImage.fromCodeBuildImageId(id)to reference a pre-defined, CodeBuild-provided Docker image.
 or one of the corresponding methods on WindowsBuildImage:
 
WindowsBuildImage.fromDockerRegistry(image[, { secretsManagerCredentials }, imageType])WindowsBuildImage.fromEcrRepository(repo[, tag, imageType])WindowsBuildImage.fromAsset(parent, id, props, [, imageType])
 or one of the corresponding methods on MacBuildImage:
 
MacBuildImage.fromDockerRegistry(image[, { secretsManagerCredentials }, imageType])MacBuildImage.fromEcrRepository(repo[, tag, imageType])MacBuildImage.fromAsset(parent, id, props, [, imageType])
 or one of the corresponding methods on LinuxArmBuildImage:
 
LinuxArmBuildImage.fromDockerRegistry(image[, { secretsManagerCredentials }])LinuxArmBuildImage.fromEcrRepository(repo[, tag])
 Note: You cannot specify custom images on LinuxLambdaBuildImage or LinuxArmLambdaBuildImage images.
 
 Note that the WindowsBuildImage version of the static methods accepts an optional parameter of type WindowsImageType,
 which can be either WindowsImageType.STANDARD, the default, or WindowsImageType.SERVER_2019:
 
 Repository ecrRepository;
 
 
 Project.Builder.create(this, "Project")
         .environment(BuildEnvironment.builder()
                 .buildImage(WindowsBuildImage.fromEcrRepository(ecrRepository, "v1.0", WindowsImageType.SERVER_2019))
                 // optional certificate to include in the build image
                 .certificate(BuildEnvironmentCertificate.builder()
                         .bucket(Bucket.fromBucketName(this, "Bucket", "amzn-s3-demo-bucket"))
                         .objectKey("path/to/cert.pem")
                         .build())
                 .build())
         .build();
 
 The following example shows how to define an image from a Docker asset:
 .environment(BuildEnvironment.builder()
         .buildImage(LinuxBuildImage.fromAsset(this, "MyImage", DockerImageAssetProps.builder()
                 .directory(join(__dirname, "demo-image"))
                 .build()))
         .build())
 .build();
 
 The following example shows how to define an image from an ECR repository:
 .environment(BuildEnvironment.builder()
         .buildImage(LinuxBuildImage.fromEcrRepository(ecrRepository, "v1.0"))
         .build())
 .build();
 
 The following example shows how to define an image from a private docker registry:
 .environment(BuildEnvironment.builder()
         .buildImage(LinuxBuildImage.fromDockerRegistry("my-registry/my-repo", DockerImageOptions.builder()
                 .secretsManagerCredentials(secrets)
                 .build()))
         .build())
 .build();
 
 
GPU images
 The class LinuxGpuBuildImage contains constants for working with
 AWS Deep Learning Container images:
 
 Project.Builder.create(this, "Project")
         .environment(BuildEnvironment.builder()
                 .buildImage(LinuxGpuBuildImage.DLC_TENSORFLOW_2_1_0_INFERENCE)
                 .build())
         .build();
 
 
 One complication is that the repositories for the DLC images are in
 different accounts in different AWS regions.
 In most cases, the CDK will handle providing the correct account for you;
 in rare cases (for example, deploying to new regions)
 where our information might be out of date,
 you can always specify the account
 (along with the repository name and tag)
 explicitly using the awsDeepLearningContainersImage method:
 
 Project.Builder.create(this, "Project")
         .environment(BuildEnvironment.builder()
                 .buildImage(LinuxGpuBuildImage.awsDeepLearningContainersImage("tensorflow-inference", "2.1.0-gpu-py36-cu101-ubuntu18.04", "123456789012"))
                 .build())
         .build();
 
 
 Alternatively, you can reference an image available in an ECR repository using the LinuxGpuBuildImage.fromEcrRepository(repo[, tag]) method.
 
Lambda images
 The LinuxLambdaBuildImage (or LinuxArmLambdaBuildImage) class contains constants for working with
 Lambda compute:
 
 Project.Builder.create(this, "Project")
         .environment(BuildEnvironment.builder()
                 .buildImage(LinuxLambdaBuildImage.AMAZON_LINUX_2_NODE_18)
                 .build())
         .build();
 
 
Visit AWS Lambda compute in AWS CodeBuild for more details.
Fleet
By default, a CodeBuild project will request on-demand compute resources to process your build requests. While being able to scale and handle high load, on-demand resources can also be slow to provision.
Reserved capacity fleets are an alternative to on-demand. Dedicated instances, maintained by CodeBuild, will be ready to fulfill your build requests immediately. Skipping the provisioning step in your project will reduce your build time, at the cost of paying for these reserved instances, even when idling, until they are released.
For more information, see Working with reserved capacity in AWS CodeBuild in the CodeBuild documentation.
 Fleet fleet = Fleet.Builder.create(this, "Fleet")
         .computeType(FleetComputeType.MEDIUM)
         .environmentType(EnvironmentType.LINUX_CONTAINER)
         .baseCapacity(1)
         .build();
 
 Project.Builder.create(this, "Project")
         .environment(BuildEnvironment.builder()
                 .fleet(fleet)
                 .buildImage(LinuxBuildImage.STANDARD_7_0)
                 .build())
         .build();
 
 You can also import an existing fleet to share its resources among several projects across multiple stacks:
 Project.Builder.create(this, "Project")
         .environment(BuildEnvironment.builder()
                 .fleet(Fleet.fromFleetArn(this, "SharedFleet", "arn:aws:codebuild:us-east-1:123456789012:fleet/MyFleet:ed0d0823-e38a-4c10-90a1-1bf25f50fa76"))
                 .buildImage(LinuxBuildImage.STANDARD_7_0)
                 .build())
         .build();
 
 
Attribute-based compute
 You can use attribute-based compute for your fleet by setting the computeType to ATTRIBUTE_BASED.
 This allows you to specify the attributes in computeConfiguration such as vCPUs, memory, disk space, and the machineType.
 After specifying some or all of the available attributes, CodeBuild will select the cheapest compute type from available instance types as that at least matches all given criteria.
 
 import software.amazon.awscdk.Size;
 
 
 Fleet fleet = Fleet.Builder.create(this, "MyFleet")
         .baseCapacity(1)
         .computeType(FleetComputeType.ATTRIBUTE_BASED)
         .environmentType(EnvironmentType.LINUX_CONTAINER)
         .computeConfiguration(ComputeConfiguration.builder()
                 .vCpu(2)
                 .memory(Size.gibibytes(4))
                 .disk(Size.gibibytes(10))
                 .machineType(MachineType.GENERAL)
                 .build())
         .build();
 
 
Custom instance types
 You can use specific EC2 instance
 types
 for your fleet by setting the computeType to CUSTOM_INSTANCE_TYPE.  This
 allows you to specify the instanceType in computeConfiguration. Only certain
 EC2 instance types are supported; see the linked documentation for details.
 
 import software.amazon.awscdk.Size;
 
 
 Fleet fleet = Fleet.Builder.create(this, "MyFleet")
         .baseCapacity(1)
         .computeType(FleetComputeType.CUSTOM_INSTANCE_TYPE)
         .environmentType(EnvironmentType.LINUX_CONTAINER)
         .computeConfiguration(ComputeConfiguration.builder()
                 .instanceType(InstanceType.of(InstanceClass.T3, InstanceSize.MEDIUM))
                 // By default, 64 GiB of disk space is included. Any value optionally
                 // specified here is _incremental_ on top of the included disk space.
                 .disk(Size.gibibytes(10))
                 .build())
         .build();
 
 
Fleet overflow behavior
 When your builds exceed the capacity of your fleet, you can specify how CodeBuild should handle the overflow builds by setting the overflowBehavior property:
 
 Fleet fleet = Fleet.Builder.create(this, "Fleet")
         .computeType(FleetComputeType.MEDIUM)
         .environmentType(EnvironmentType.LINUX_CONTAINER)
         .baseCapacity(1)
         .overflowBehavior(FleetOverflowBehavior.ON_DEMAND)
         .build();
 
 The available overflow behaviors are:
QUEUE(default): Overflow builds wait for existing fleet instances to become availableON_DEMAND: Overflow builds run on CodeBuild on-demand instances
 Note: If you set overflow behavior to ON_DEMAND for a VPC-connected fleet, ensure your VPC settings allow access to public AWS services.
 
VPCs
The same considerations that apply to Project VPCs also apply to Fleet VPCs. When using a Fleet in a CodeBuild Project, it is an error to configure a VPC on the Project. Configure a VPC on the fleet instead.
 ApplicationLoadBalancer loadBalancer;
 
 
 Vpc vpc = new Vpc(this, "MyVPC");
 Fleet fleet = Fleet.Builder.create(this, "MyProject")
         .computeType(FleetComputeType.MEDIUM)
         .environmentType(EnvironmentType.LINUX_CONTAINER)
         .baseCapacity(1)
         .vpc(vpc)
         .build();
 
 fleet.connections.allowTo(loadBalancer, Port.tcp(443));
 
 Project project = Project.Builder.create(this, "MyProject")
         .environment(BuildEnvironment.builder()
                 .fleet(fleet)
                 .build())
         .buildSpec(BuildSpec.fromObject(Map.of()))
         .build();
 
 
39ec36ec6a (feat(codebuild): add custom instance type and VPC to Fleets)
Logs
CodeBuild lets you specify an S3 Bucket, CloudWatch Log Group or both to receive logs from your projects.
By default, logs will go to cloudwatch.
CloudWatch Logs Example
 Project.Builder.create(this, "Project")
         .logging(LoggingOptions.builder()
                 .cloudWatch(CloudWatchLoggingOptions.builder()
                         .logGroup(new LogGroup(this, "MyLogGroup"))
                         .build())
                 .build())
         .build();
 
 
S3 Logs Example
 Project.Builder.create(this, "Project")
         .logging(LoggingOptions.builder()
                 .s3(S3LoggingOptions.builder()
                         .bucket(new Bucket(this, "LogBucket"))
                         .build())
                 .build())
         .build();
 
 
Debugging builds interactively using SSM Session Manager
Integration with SSM Session Manager makes it possible to add breakpoints to your build commands, pause the build there and log into the container to interactively debug the environment.
To do so, you need to:
- Create the build with 
ssmSessionPermissions: true. - Use a build image with SSM agent installed and configured (default CodeBuild images come with the image preinstalled).
 - Start the build with debugSessionEnabled set to true.
 
 If these conditions are met, execution of the command codebuild-breakpoint
 will suspend your build and allow you to attach a Session Manager session from
 the CodeBuild console.
 
For more information, see View a running build in Session Manager in the CodeBuild documentation.
Example:
 Project.Builder.create(this, "Project")
         .environment(BuildEnvironment.builder()
                 .buildImage(LinuxBuildImage.STANDARD_7_0)
                 .build())
         .ssmSessionPermissions(true)
         .buildSpec(BuildSpec.fromObject(Map.of(
                 "version", "0.2",
                 "phases", Map.of(
                         "build", Map.of(
                                 "commands", List.of("codebuild-breakpoint", "./my-build.sh"))))))
         .build();
 
 
Credentials
CodeBuild allows you to store credentials used when communicating with various sources, like GitHub:
 GitHubSourceCredentials.Builder.create(this, "CodeBuildGitHubCreds")
         .accessToken(SecretValue.secretsManager("my-token"))
         .build();
 
 and BitBucket:
 BitBucketSourceCredentials.Builder.create(this, "CodeBuildBitBucketCreds")
         .username(SecretValue.secretsManager("my-bitbucket-creds", SecretsManagerSecretOptions.builder().jsonField("username").build()))
         .password(SecretValue.secretsManager("my-bitbucket-creds", SecretsManagerSecretOptions.builder().jsonField("password").build()))
         .build();
 
 
 Note: the credentials are global to a given account in a given region -
 they are not defined per CodeBuild project.
 CodeBuild only allows storing a single credential of a given type
 (GitHub, GitHub Enterprise or BitBucket)
 in a given account in a given region -
 any attempt to save more than one will result in an error.
 You can use the list-source-credentials AWS CLI operation
 to inspect what credentials are stored in your account.
 
Test reports
You can specify a test report in your buildspec:
 Project project = Project.Builder.create(this, "Project")
         .buildSpec(BuildSpec.fromObject(Map.of(
                 // ...
                 "reports", Map.of(
                         "myReport", Map.of(
                                 "files", "**/*",
                                 "base-directory", "build/test-results")))))
         .build();
 
 
 This will create a new test report group,
 with the name <ProjectName>-myReport.
 
The project's role in the CDK will always be granted permissions to create and use report groups with names starting with the project's name; if you'd rather not have those permissions added, you can opt out of it when creating the project:
 Source source;
 
 
 Project project = Project.Builder.create(this, "Project")
         .source(source)
         .grantReportGroupPermissions(false)
         .build();
 
 Alternatively, you can specify an ARN of an existing resource group, instead of a simple name, in your buildspec:
 Source source;
 
 
 // create a new ReportGroup
 ReportGroup reportGroup = new ReportGroup(this, "ReportGroup");
 
 Project project = Project.Builder.create(this, "Project")
         .source(source)
         .buildSpec(BuildSpec.fromObject(Map.of(
                 // ...
                 "reports", Map.of(
                         reportGroup.getReportGroupArn(), Map.of(
                                 "files", "**/*",
                                 "base-directory", "build/test-results")))))
         .build();
 
 For a code coverage report, you can specify a report group with the code coverage report group type.
 Source source;
 
 
 // create a new ReportGroup
 ReportGroup reportGroup = ReportGroup.Builder.create(this, "ReportGroup")
         .type(ReportGroupType.CODE_COVERAGE)
         .build();
 
 Project project = Project.Builder.create(this, "Project")
         .source(source)
         .buildSpec(BuildSpec.fromObject(Map.of(
                 // ...
                 "reports", Map.of(
                         reportGroup.getReportGroupArn(), Map.of(
                                 "files", "**/*",
                                 "base-directory", "build/coverage-report.xml",
                                 "file-format", "JACOCOXML")))))
         .build();
 
 If you specify a report group, you need to grant the project's role permissions to write reports to that report group:
Project project; ReportGroup reportGroup; reportGroup.grantWrite(project);
The created policy will adjust to the report group type. If no type is specified when creating the report group the created policy will contain the action for the test report group type.
For more information on the test reports feature, see the AWS CodeBuild documentation.
Report group deletion
 When a report group is removed from a stack (or the stack is deleted), the report
 group will be removed according to its removal policy (which by default will
 simply orphan the report group and leave it in your AWS account). If the removal
 policy is set to RemovalPolicy.DESTROY, the report group will be deleted as long
 as it does not contain any reports.
 
 To override this and force all reports to get deleted during report group deletion,
 enable the deleteReports option as well as setting the removal policy to
 RemovalPolicy.DESTROY.
 
 import software.amazon.awscdk.*;
 
 
 ReportGroup reportGroup = ReportGroup.Builder.create(this, "ReportGroup")
         .removalPolicy(RemovalPolicy.DESTROY)
         .deleteReports(true)
         .build();
 
 
Events
CodeBuild projects can be used either as a source for events or be triggered by events via an event rule.
Using Project as an event target
 The aws-cdk-lib/aws-events-targets.CodeBuildProject allows using an AWS CodeBuild
 project as a AWS CloudWatch event rule target:
 
 // start build when a commit is pushed
 import software.amazon.awscdk.services.codecommit.*;
 import software.amazon.awscdk.services.events.targets.*;
 
 Repository codeCommitRepository;
 Project project;
 
 
 codeCommitRepository.onCommit("OnCommit", OnCommitOptions.builder()
         .target(new CodeBuildProject(project))
         .build());
 
 
Using Project as an event source
 To define Amazon CloudWatch event rules for build projects, use one of the onXxx
 methods:
 
 import software.amazon.awscdk.services.events.targets.*;
 Function fn;
 Project project;
 
 
 Rule rule = project.onStateChange("BuildStateChange", OnEventOptions.builder()
         .target(new LambdaFunction(fn))
         .build());
 
 
CodeStar Notifications
 To define CodeStar Notification rules for Projects, use one of the notifyOnXxx() methods.
 They are very similar to onXxx() methods for CloudWatch events:
 
 import software.amazon.awscdk.services.chatbot.*;
 
 Project project;
 
 
 SlackChannelConfiguration target = SlackChannelConfiguration.Builder.create(this, "MySlackChannel")
         .slackChannelConfigurationName("YOUR_CHANNEL_NAME")
         .slackWorkspaceId("YOUR_SLACK_WORKSPACE_ID")
         .slackChannelId("YOUR_SLACK_CHANNEL_ID")
         .build();
 
 INotificationRule rule = project.notifyOnBuildSucceeded("NotifyOnBuildSucceeded", target);
 
 
Secondary sources and artifacts
CodeBuild Projects can get their sources from multiple places, and produce multiple outputs. For example:
 import software.amazon.awscdk.services.codecommit.*;
 Repository repo;
 Bucket bucket;
 
 
 Project project = Project.Builder.create(this, "MyProject")
         .secondarySources(List.of(Source.codeCommit(CodeCommitSourceProps.builder()
                 .identifier("source2")
                 .repository(repo)
                 .build())))
         .secondaryArtifacts(List.of(Artifacts.s3(S3ArtifactsProps.builder()
                 .identifier("artifact2")
                 .bucket(bucket)
                 .path("some/path")
                 .name("file.zip")
                 .build())))
         .build();
 
 
 Note that the identifier property is required for both secondary sources and
 artifacts.
 
 The contents of the secondary source is available to the build under the
 directory specified by the CODEBUILD_SRC_DIR_<identifier> environment variable
 (so, CODEBUILD_SRC_DIR_source2 in the above case).
 
 The secondary artifacts have their own section in the buildspec, under the
 regular artifacts one. Each secondary artifact has its own section, beginning
 with their identifier.
 
So, a buildspec for the above Project could look something like this:
 Project project = Project.Builder.create(this, "MyProject")
         // secondary sources and artifacts as above...
         .buildSpec(BuildSpec.fromObject(Map.of(
                 "version", "0.2",
                 "phases", Map.of(
                         "build", Map.of(
                                 "commands", List.of("cd $CODEBUILD_SRC_DIR_source2", "touch output2.txt"))),
                 "artifacts", Map.of(
                         "secondary-artifacts", Map.of(
                                 "artifact2", Map.of(
                                         "base-directory", "$CODEBUILD_SRC_DIR_source2",
                                         "files", List.of("output2.txt")))))))
         .build();
 
 
Definition of VPC configuration in CodeBuild Project
Typically, resources in an VPC are not accessible by AWS CodeBuild. To enable access, you must provide additional VPC-specific configuration information as part of your CodeBuild project configuration. This includes the VPC ID, the VPC subnet IDs, and the VPC security group IDs. VPC-enabled builds are then able to access resources inside your VPC.
For further Information see https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html
Use Cases VPC connectivity from AWS CodeBuild builds makes it possible to:
- Run integration tests from your build against data in an Amazon RDS database that's isolated on a private subnet.
 - Query data in an Amazon ElastiCache cluster directly from tests.
 - Interact with internal web services hosted on Amazon EC2, Amazon ECS, or services that use internal Elastic Load Balancing.
 - Retrieve dependencies from self-hosted, internal artifact repositories, such as PyPI for Python, Maven for Java, and npm for Node.js.
 - Access objects in an Amazon S3 bucket configured to allow access through an Amazon VPC endpoint only.
 - Query external web services that require fixed IP addresses through the Elastic IP address of the NAT gateway or NAT instance associated with your subnet(s).
 
Your builds can access any resource that's hosted in your VPC.
Enable Amazon VPC Access in your CodeBuild Projects
 Pass the VPC when defining your Project, then make sure to
 give the CodeBuild's security group the right permissions
 to access the resources that it needs by using the
 connections object.
 
For example:
 ApplicationLoadBalancer loadBalancer;
 
 
 Vpc vpc = new Vpc(this, "MyVPC");
 Project project = Project.Builder.create(this, "MyProject")
         .vpc(vpc)
         .buildSpec(BuildSpec.fromObject(Map.of()))
         .build();
 
 project.connections.allowTo(loadBalancer, Port.tcp(443));
 
 
Project File System Location EFS
 Add support for CodeBuild to build on AWS EFS file system mounts using
 the new ProjectFileSystemLocation.
 The fileSystemLocations property which accepts a list ProjectFileSystemLocation
 as represented by the interface IFileSystemLocations.
 The only supported file system type is EFS.
 
For example:
 Project.Builder.create(this, "MyProject")
         .buildSpec(BuildSpec.fromObject(Map.of(
                 "version", "0.2")))
         .fileSystemLocations(List.of(FileSystemLocation.efs(EfsFileSystemLocationProps.builder()
                 .identifier("myidentifier2")
                 .location("myclodation.mydnsroot.com:/loc")
                 .mountPoint("/media")
                 .mountOptions("opts")
                 .build())))
         .build();
 
 Here's a CodeBuild project with a simple example that creates a project mounted on AWS EFS:
Batch builds
 To enable batch builds you should call enableBatchBuilds() on the project instance.
 
 It returns an object containing the batch service role that was created,
 or undefined if batch builds could not be enabled, for example if the project was imported.
 
 Source source;
 
 
 Project project = Project.Builder.create(this, "MyProject").source(source).build();
 
 if (project.enableBatchBuilds()) {
     System.out.println("Batch builds were enabled");
 }
 
 
Timeouts
 There are two types of timeouts that can be set when creating your Project.
 The timeout property can be used to set an upper limit on how long your Project is able to run without being marked as completed.
 The default is 60 minutes.
 An example of overriding the default follows.
 
 Project.Builder.create(this, "MyProject")
         .timeout(Duration.minutes(90))
         .build();
 
 
 The queuedTimeout property can be used to set an upper limit on how your Project remains queued to run.
 There is no default value for this property.
 As an example, to allow your Project to queue for up to thirty (30) minutes before the build fails,
 use the following code.
 
 Project.Builder.create(this, "MyProject")
         .queuedTimeout(Duration.minutes(30))
         .build();
 
 
Limiting concurrency
By default if a new build is triggered it will be run even if there is a previous build already in progress. It is possible to limit the maximum concurrent builds to value between 1 and the account specific maximum limit. By default there is no explicit limit.
 Project.Builder.create(this, "MyProject")
         .concurrentBuildLimit(1)
         .build();
 
 
Visibility
When you can specify the visibility of the project builds. This setting controls whether the builds are publicly readable or remain private.
Visibility options:
PUBLIC_READ: The project builds are visible to the public.PRIVATE: The project builds are not visible to the public.
Examples:
 Project.Builder.create(this, "MyProject")
         .visibility(ProjectVisibility.PUBLIC_READ)
         .build();
 
 
Auto retry limit
 You can automatically retry your builds in AWS CodeBuild by setting autoRetryLimit property.
 
With auto-retry enabled, CodeBuild will automatically call RetryBuild using the project's service role after a failed build up to a specified limit.
For example, if the auto-retry limit is set to two, CodeBuild will call the RetryBuild API to automatically retry your build for up to two additional times.
 Project.Builder.create(this, "MyProject")
         .autoRetryLimit(2)
         .build();
 - 
ClassDescriptionArtifacts definition for a CodeBuild Project.The type returned from
IArtifacts#bind.A builder forArtifactsConfigAn implementation forArtifactsConfigProperties common to all Artifacts classes.A builder forArtifactsPropsAn implementation forArtifactsPropsThe type returned fromIProject#enableBatchBuilds.A builder forBatchBuildConfigAn implementation forBatchBuildConfigThe extra options passed to theIProject.bindToCodePipelinemethod.A builder forBindToCodePipelineOptionsAn implementation forBindToCodePipelineOptionsThe source credentials used when contacting the BitBucket API.A fluent builder forBitBucketSourceCredentials.Construction properties ofBitBucketSourceCredentials.A builder forBitBucketSourceCredentialsPropsAn implementation forBitBucketSourceCredentialsPropsConstruction properties forBitBucketSource.A builder forBitBucketSourcePropsAn implementation forBitBucketSourcePropsExample:A builder forBucketCacheOptionsAn implementation forBucketCacheOptionsExample:A builder forBuildEnvironmentAn implementation forBuildEnvironmentLocation of a PEM certificate on S3.A builder forBuildEnvironmentCertificateAn implementation forBuildEnvironmentCertificateExample:A builder forBuildEnvironmentVariableAn implementation forBuildEnvironmentVariableExample:Optional arguments toIBuildImage.binder- currently empty.A builder forBuildImageBindOptionsAn implementation forBuildImageBindOptionsThe return type fromIBuildImage.binder- currently empty.A builder forBuildImageConfigAn implementation forBuildImageConfigBuildSpec for CodeBuild projects.Cache options for CodeBuild Project.TheAWS::CodeBuild::Fleetresource configures a compute fleet, a set of dedicated instances for your build environment.A fluent builder forCfnFleet.Contains compute attributes.A builder forCfnFleet.ComputeConfigurationPropertyAn implementation forCfnFleet.ComputeConfigurationPropertyInformation about the proxy rule for your reserved capacity instances.A builder forCfnFleet.FleetProxyRulePropertyAn implementation forCfnFleet.FleetProxyRulePropertyInformation about the proxy configurations that apply network access control to your reserved capacity instances.A builder forCfnFleet.ProxyConfigurationPropertyAn implementation forCfnFleet.ProxyConfigurationPropertyThe scaling configuration input of a compute fleet.A builder forCfnFleet.ScalingConfigurationInputPropertyAn implementation forCfnFleet.ScalingConfigurationInputPropertyDefines when a new instance is auto-scaled into the compute fleet.A builder forCfnFleet.TargetTrackingScalingConfigurationPropertyAn implementation forCfnFleet.TargetTrackingScalingConfigurationPropertyInformation about the VPC configuration that AWS CodeBuild accesses.A builder forCfnFleet.VpcConfigPropertyAn implementation forCfnFleet.VpcConfigPropertyProperties for defining aCfnFleet.A builder forCfnFleetPropsAn implementation forCfnFleetPropsTheAWS::CodeBuild::Projectresource configures how AWS CodeBuild builds your source code.Artifactsis a property of the AWS::CodeBuild::Project resource that specifies output settings for artifacts generated by an AWS CodeBuild build.A builder forCfnProject.ArtifactsPropertyAn implementation forCfnProject.ArtifactsPropertySpecifies restrictions for the batch build.A builder forCfnProject.BatchRestrictionsPropertyAn implementation forCfnProject.BatchRestrictionsPropertyA fluent builder forCfnProject.Contains information that defines how the AWS CodeBuild build project reports the build status to the source provider.A builder forCfnProject.BuildStatusConfigPropertyAn implementation forCfnProject.BuildStatusConfigPropertyCloudWatchLogsis a property of the AWS CodeBuild Project LogsConfig property type that specifies settings for CloudWatch logs generated by an AWS CodeBuild build.A builder forCfnProject.CloudWatchLogsConfigPropertyAn implementation forCfnProject.CloudWatchLogsConfigPropertyExample:A builder forCfnProject.DockerServerPropertyAn implementation forCfnProject.DockerServerPropertyEnvironmentis a property of the AWS::CodeBuild::Project resource that specifies the environment for an AWS CodeBuild project.A builder forCfnProject.EnvironmentPropertyAn implementation forCfnProject.EnvironmentPropertyEnvironmentVariableis a property of the AWS CodeBuild Project Environment property type that specifies the name and value of an environment variable for an AWS CodeBuild project environment.A builder forCfnProject.EnvironmentVariablePropertyAn implementation forCfnProject.EnvironmentVariablePropertyGitSubmodulesConfigis a property of the AWS CodeBuild Project Source property type that specifies information about the Git submodules configuration for the build project.A builder forCfnProject.GitSubmodulesConfigPropertyAn implementation forCfnProject.GitSubmodulesConfigPropertyLogsConfigis a property of the AWS CodeBuild Project resource that specifies information about logs for a build project.A builder forCfnProject.LogsConfigPropertyAn implementation forCfnProject.LogsConfigPropertyContains configuration information about a batch build project.A builder forCfnProject.ProjectBuildBatchConfigPropertyAn implementation forCfnProject.ProjectBuildBatchConfigPropertyProjectCacheis a property of the AWS CodeBuild Project resource that specifies information about the cache for the build project.A builder forCfnProject.ProjectCachePropertyAn implementation forCfnProject.ProjectCachePropertyInformation about a file system created by Amazon Elastic File System (EFS).A builder forCfnProject.ProjectFileSystemLocationPropertyAn implementation forCfnProject.ProjectFileSystemLocationPropertyInformation about the compute fleet of the build project.A builder forCfnProject.ProjectFleetPropertyAn implementation forCfnProject.ProjectFleetPropertyA source identifier and its corresponding version.A builder forCfnProject.ProjectSourceVersionPropertyAn implementation forCfnProject.ProjectSourceVersionPropertyProjectTriggersis a property of the AWS CodeBuild Project resource that specifies webhooks that trigger an AWS CodeBuild build.A builder forCfnProject.ProjectTriggersPropertyAn implementation forCfnProject.ProjectTriggersPropertyExample:A builder forCfnProject.PullRequestBuildPolicyPropertyAn implementation forCfnProject.PullRequestBuildPolicyPropertyRegistryCredentialis a property of the AWS CodeBuild Project Environment property type that specifies information about credentials that provide access to a private Docker registry.A builder forCfnProject.RegistryCredentialPropertyAn implementation forCfnProject.RegistryCredentialPropertyS3Logsis a property of the AWS CodeBuild Project LogsConfig property type that specifies settings for logs generated by an AWS CodeBuild build in an S3 bucket.A builder forCfnProject.S3LogsConfigPropertyAn implementation forCfnProject.S3LogsConfigPropertyContains configuration information about the scope for a webhook.A builder forCfnProject.ScopeConfigurationPropertyAn implementation forCfnProject.ScopeConfigurationPropertySourceAuthis a property of the AWS CodeBuild Project Source property type that specifies authorization settings for AWS CodeBuild to access the source code to be built.A builder forCfnProject.SourceAuthPropertyAn implementation forCfnProject.SourceAuthPropertySourceis a property of the AWS::CodeBuild::Project resource that specifies the source code settings for the project, such as the source code's repository type and location.A builder forCfnProject.SourcePropertyAn implementation forCfnProject.SourcePropertyVpcConfigis a property of the AWS::CodeBuild::Project resource that enable AWS CodeBuild to access resources in an Amazon VPC.A builder forCfnProject.VpcConfigPropertyAn implementation forCfnProject.VpcConfigPropertyWebhookFilteris a structure of theFilterGroupsproperty on the AWS CodeBuild Project ProjectTriggers property type that specifies which webhooks trigger an AWS CodeBuild build.A builder forCfnProject.WebhookFilterPropertyAn implementation forCfnProject.WebhookFilterPropertyProperties for defining aCfnProject.A builder forCfnProjectPropsAn implementation forCfnProjectPropsRepresents a report group.A fluent builder forCfnReportGroup.Information about the location where the run of a report is exported.A builder forCfnReportGroup.ReportExportConfigPropertyAn implementation forCfnReportGroup.ReportExportConfigPropertyInformation about the S3 bucket where the raw data of a report are exported.A builder forCfnReportGroup.S3ReportExportConfigPropertyAn implementation forCfnReportGroup.S3ReportExportConfigPropertyProperties for defining aCfnReportGroup.A builder forCfnReportGroupPropsAn implementation forCfnReportGroupPropsInformation about the credentials for a GitHub, GitHub Enterprise, or Bitbucket repository.A fluent builder forCfnSourceCredential.Properties for defining aCfnSourceCredential.A builder forCfnSourceCredentialPropsAn implementation forCfnSourceCredentialPropsInformation about logs built to a CloudWatch Log Group for a build project.A builder forCloudWatchLoggingOptionsAn implementation forCloudWatchLoggingOptionsConstruction properties forCodeCommitSource.A builder forCodeCommitSourcePropsAn implementation forCodeCommitSourcePropsExample:A builder forCommonProjectPropsAn implementation forCommonProjectPropsThe compute configuration for the fleet.A builder forComputeConfigurationAn implementation forComputeConfigurationBuild machine compute type.The options when creating a CodeBuild Docker build image usingLinuxBuildImage.fromDockerRegistry,WindowsBuildImage.fromDockerRegistry, orMacBuildImage.fromDockerRegistry.A builder forDockerImageOptionsAn implementation forDockerImageOptionsDocker server compute type.The Docker server configuration CodeBuild use to build your Docker image.A builder forDockerServerOptionsAn implementation forDockerServerOptionsConstruction properties forEfsFileSystemLocation.A builder forEfsFileSystemLocationPropsAn implementation forEfsFileSystemLocationPropsBuild environment type.The types of webhook event actions.The type returned fromIFileSystemLocation#bind.A builder forFileSystemConfigAn implementation forFileSystemConfigFileSystemLocation provider definition for a CodeBuild Project.An object that represents a group of filter conditions for a webhook.Fleet for a reserved capacity CodeBuild project.A fluent builder forFleet.Fleet build machine compute type.The compute fleet overflow behavior.Construction properties of a CodeBuild Fleet.A builder forFleetPropsAn implementation forFleetPropsA reference to a Fleet resource.A builder forFleetReferenceAn implementation forFleetReferenceThe source credentials used when contacting the GitHub Enterprise API.A fluent builder forGitHubEnterpriseSourceCredentials.Creation properties forGitHubEnterpriseSourceCredentials.A builder forGitHubEnterpriseSourceCredentialsPropsAn implementation forGitHubEnterpriseSourceCredentialsPropsConstruction properties forGitHubEnterpriseSource.A builder forGitHubEnterpriseSourcePropsAn implementation forGitHubEnterpriseSourcePropsThe source credentials used when contacting the GitHub API.A fluent builder forGitHubSourceCredentials.Creation properties forGitHubSourceCredentials.A builder forGitHubSourceCredentialsPropsAn implementation forGitHubSourceCredentialsPropsConstruction properties forGitHubSourceandGitHubEnterpriseSource.A builder forGitHubSourcePropsAn implementation forGitHubSourcePropsThe abstract interface of a CodeBuild build output.Internal default implementation forIArtifacts.A proxy class which represents a concrete javascript instance of this type.A variant ofIBuildImagethat allows binding to the project.Internal default implementation forIBindableBuildImage.A proxy class which represents a concrete javascript instance of this type.Represents a Docker image used for the CodeBuild Project builds.Internal default implementation forIBuildImage.A proxy class which represents a concrete javascript instance of this type.The interface of a CodeBuild FileSystemLocation.Internal default implementation forIFileSystemLocation.A proxy class which represents a concrete javascript instance of this type.Represents a Fleet for a reserved capacity CodeBuild project.Internal default implementation forIFleet.A proxy class which represents a concrete javascript instance of this type.(experimental) Indicates that this resource can be referenced as a Fleet.Internal default implementation forIFleetRef.A proxy class which represents a concrete javascript instance of this type.The type of principal CodeBuild will use to pull your build Docker image.Internal default implementation forIProject.A proxy class which represents a concrete javascript instance of this type.(experimental) Indicates that this resource can be referenced as a Project.Internal default implementation forIProjectRef.A proxy class which represents a concrete javascript instance of this type.The interface representing the ReportGroup resource - either an existing one, imported using theReportGroup.fromReportGroupNamemethod, or a new one, created with theReportGroupclass.Internal default implementation forIReportGroup.A proxy class which represents a concrete javascript instance of this type.(experimental) Indicates that this resource can be referenced as a ReportGroup.Internal default implementation forIReportGroupRef.A proxy class which represents a concrete javascript instance of this type.The abstract interface of a CodeBuild source.Internal default implementation forISource.A proxy class which represents a concrete javascript instance of this type.(experimental) Indicates that this resource can be referenced as a SourceCredential.Internal default implementation forISourceCredentialRef.A proxy class which represents a concrete javascript instance of this type.A CodeBuild image running aarch64 Linux.A CodeBuild image running aarch64 Lambda.A CodeBuild image running x86-64 Linux.A CodeBuild GPU image running Linux.A CodeBuild image running x86-64 Lambda.Local cache modes to enable for the CodeBuild Project.Information about logs for the build project.A builder forLoggingOptionsAn implementation forLoggingOptionsA CodeBuild image running ARM MacOS.The compute type of the fleet.Event fields for the CodeBuild "phase change" event.A convenience class for CodeBuild Projects that are used in CodePipeline.A fluent builder forPipelineProject.Example:A builder forPipelineProjectPropsAn implementation forPipelineProjectPropsA representation of a CodeBuild Project.A fluent builder forProject.The list of event types for AWS Codebuild.Additional options to pass to the notification rule.A builder forProjectNotifyOnOptionsAn implementation forProjectNotifyOnOptionsExample:A builder forProjectPropsAn implementation forProjectPropsA reference to a Project resource.A builder forProjectReferenceAn implementation forProjectReferenceSpecifies the visibility of the project's builds.The ReportGroup resource class.A fluent builder forReportGroup.Construction properties forReportGroup.A builder forReportGroupPropsAn implementation forReportGroupPropsA reference to a ReportGroup resource.A builder forReportGroupReferenceAn implementation forReportGroupReferenceThe type of reports in the report group.Construction properties forS3Artifacts.A builder forS3ArtifactsPropsAn implementation forS3ArtifactsPropsInformation about logs built to an S3 bucket for a build project.A builder forS3LoggingOptionsAn implementation forS3LoggingOptionsConstruction properties forS3Source.A builder forS3SourcePropsAn implementation forS3SourcePropsSource provider definition for a CodeBuild Project.The type returned fromISource#bind.A builder forSourceConfigAn implementation forSourceConfigA reference to a SourceCredential resource.A builder forSourceCredentialReferenceAn implementation forSourceCredentialReferenceProperties common to all Source classes.A builder forSourcePropsAn implementation forSourcePropsEvent fields for the CodeBuild "state change" event.Permissions Boundary for a CodeBuild Project running untrusted code.A fluent builder forUntrustedCodeBoundaryPolicy.Construction properties for UntrustedCodeBoundaryPolicy.A builder forUntrustedCodeBoundaryPolicyPropsAn implementation forUntrustedCodeBoundaryPolicyPropsA CodeBuild image running Windows.Environment type for Windows Docker images.