Skip to content
v2.274.0

VpcConfigProperty Struct ​

VpcConfig is a property of the AWS::CodeBuild::Project resource that enable AWS CodeBuild to access resources in an Amazon VPC. For more information, see Use AWS CodeBuild with Amazon Virtual Private Cloud in the AWS CodeBuild User Guide .

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 vpcConfigProperty: codebuild.CfnProject.VpcConfigProperty = {
  securityGroupIds: ['securityGroupIds'],
  subnets: ['subnets'],
  vpcId: 'vpcId',
};

Properties ​

securityGroupIdsoptionalstring[]security_group_idsoptionaltyping.List[str]securityGroupIdsoptionalList<String>SecurityGroupIdsoptionalstring[]SecurityGroupIdsoptional*[]*string#
A list of one or more security groups IDs in your Amazon VPC.

The maximum count is 5.

subnetsoptionalstring[]subnetsoptionaltyping.List[str]subnetsoptionalList<String>Subnetsoptionalstring[]Subnetsoptional*[]*string#
A list of one or more subnet IDs in your Amazon VPC.

The maximum count is 16.

vpcIdoptionalstringvpc_idoptionalstrvpcIdoptionalStringVpcIdoptionalstringVpcIdoptional*string#
The ID of the Amazon VPC.