AWS Fundamentals Logo
AWS Fundamentals

AWS CodeBuild

12 CDK constructs available in aws-cdk-lib/aws-codebuild

import * as codebuild from 'aws-cdk-lib/aws-codebuild';

L2 Constructs8

Higher-level abstractions with sensible defaults and convenience methods.

BitBucketSourceCredentials

L2

The source credentials used when contacting the BitBucket API. **Note**: CodeBuild only allows a single credential for BitBucket to be saved in a given AWS account in a given region - any attempt to add more than one will result in an error.

Fleet

L2

Fleet for a reserved capacity CodeBuild project. Fleets allow for process builds or tests to run immediately and reduces build durations, by reserving compute resources for your projects. You will be charged for the resources in the fleet, even if they are idle.

GitHubEnterpriseSourceCredentials

L2

The source credentials used when contacting the GitHub Enterprise API. **Note**: CodeBuild only allows a single credential for GitHub Enterprise to be saved in a given AWS account in a given region - any attempt to add more than one will result in an error.

GitHubSourceCredentials

L2

The source credentials used when contacting the GitHub API. **Note**: CodeBuild only allows a single credential for GitHub to be saved in a given AWS account in a given region - any attempt to add more than one will result in an error.

PipelineProject

L2

A convenience class for CodeBuild Projects that are used in CodePipeline.

Project

L2

A representation of a CodeBuild Project.

ReportGroup

L2

The ReportGroup resource class.

UntrustedCodeBoundaryPolicy

L2

Permissions Boundary for a CodeBuild Project running untrusted code. This class is a Policy, intended to be used as a Permissions Boundary for a CodeBuild project. It allows most of the actions necessary to run the CodeBuild project, but disallows reading from Parameter Store and Secrets Manager. Use this when your CodeBuild project is running untrusted code (for example, if you are using one to automatically build Pull Requests that anyone can submit), and you want to prevent your future self from accidentally exposing Secrets to this build. (The reason you might want to do this is because otherwise anyone who can submit a Pull Request to your project can write a script to email those secrets to themselves).

L1 Constructs4

Direct CloudFormation resource mappings. One-to-one with CloudFormation resource types.

Get the AWS CodeBuild Cheat Sheet

Everything you need to know about AWS CodeBuild on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

L2 Constructs8
L1 Constructs4
Moduleaws-cdk-lib/aws-codebuild