Options for customizing a single CodeBuild project

interface CodeBuildOptions {
    buildEnvironment?: BuildEnvironment;
    cache?: Cache;
    fileSystemLocations?: IFileSystemLocation[];
    logging?: LoggingOptions;
    partialBuildSpec?: BuildSpec;
    rolePolicy?: PolicyStatement[];
    securityGroups?: ISecurityGroup[];
    subnetSelection?: SubnetSelection;
    timeout?: Duration;
    vpc?: IVpc;
}

Properties

buildEnvironment?: BuildEnvironment

Partial build environment, will be combined with other build environments that apply

- Non-privileged build, SMALL instance, LinuxBuildImage.STANDARD_7_0
cache?: Cache

Caching strategy to use.

- No cache
fileSystemLocations?: IFileSystemLocation[]

ProjectFileSystemLocation objects for CodeBuild build projects.

A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System. Requires a vpc to be set and privileged to be set to true.

- no file system locations
logging?: LoggingOptions

Information about logs for CodeBuild projects. A CodeBuild project can create logs in Amazon CloudWatch Logs, an S3 bucket, or both.

- no log configuration is set
partialBuildSpec?: BuildSpec

Partial buildspec, will be combined with other buildspecs that apply

The BuildSpec must be available inline--it cannot reference a file on disk.

- No initial BuildSpec
rolePolicy?: PolicyStatement[]

Policy statements to add to role

- No policy statements added to CodeBuild Project Role
securityGroups?: ISecurityGroup[]

Which security group(s) to associate with the project network interfaces.

Only used if 'vpc' is supplied.

- Security group will be automatically created.
subnetSelection?: SubnetSelection

Which subnets to use.

Only used if 'vpc' is supplied.

- All private subnets.
timeout?: Duration

The number of minutes after which AWS CodeBuild stops the build if it's not complete. For valid values, see the timeoutInMinutes field in the AWS CodeBuild User Guide.

Duration.hours(1)
vpc?: IVpc

The VPC where to create the CodeBuild network interfaces in.

- No VPC