interface VPCReference
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.VPCReference |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#VPCReference |
Java | software.amazon.awscdk.services.ec2.VPCReference |
Python | aws_cdk.aws_ec2.VPCReference |
TypeScript | aws-cdk-lib » aws_ec2 » VPCReference |
A reference to a VPC resource.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const vPCReference: ec2.VPCReference = {
vpcId: 'vpcId',
};
Properties
| Name | Type | Description |
|---|---|---|
| vpc | string | The VpcId of the VPC resource. |
vpcId
Type:
string
The VpcId of the VPC resource.

.NET
Go
Java
Python
TypeScript