Skip to content
v2.275.0

BatchRestrictionsProperty Struct ​

Specifies restrictions for the batch build.

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 batchRestrictionsProperty: codebuild.CfnProject.BatchRestrictionsProperty = {
  computeTypesAllowed: ['computeTypesAllowed'],
  maximumBuildsAllowed: 123,
};

Properties ​

computeTypesAllowedoptionalstring[]compute_types_allowedoptionaltyping.List[str]computeTypesAllowedoptionalList<String>ComputeTypesAllowedoptionalstring[]ComputeTypesAllowedoptional*[]*string#
An array of strings that specify the compute types that are allowed for the batch build.

See Build environment compute types in the AWS CodeBuild User Guide for these values.

maximumBuildsAllowedoptionalnumbermaximum_builds_allowedoptionalint | floatmaximumBuildsAllowedoptionalNumberMaximumBuildsAllowedoptionaldoubleMaximumBuildsAllowedoptional*float64#
Specifies the maximum number of builds allowed.