aws-cdk-lib.aws_codebuild.CfnProject.VpcConfigProperty

interface VpcConfigProperty

LanguageType name
.NETAmazon.CDK.AWS.CodeBuild.CfnProject.VpcConfigProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#CfnProject_VpcConfigProperty
Javasoftware.amazon.awscdk.services.codebuild.CfnProject.VpcConfigProperty
Pythonaws_cdk.aws_codebuild.CfnProject.VpcConfigProperty
TypeScript aws-cdk-lib » aws_codebuild » CfnProject » VpcConfigProperty

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

// 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

NameTypeDescription
securityGroupIds?string[]A list of one or more security groups IDs in your Amazon VPC.
subnets?string[]A list of one or more subnet IDs in your Amazon VPC.
vpcId?stringThe ID of the Amazon VPC.

securityGroupIds?

Type: string[] (optional)

A list of one or more security groups IDs in your Amazon VPC.

The maximum count is 5.


subnets?

Type: string[] (optional)

A list of one or more subnet IDs in your Amazon VPC.

The maximum count is 16.


vpcId?

Type: string (optional)

The ID of the Amazon VPC.