interface SubnetReference
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.SubnetReference |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#SubnetReference |
Java | software.amazon.awscdk.services.ec2.SubnetReference |
Python | aws_cdk.aws_ec2.SubnetReference |
TypeScript | aws-cdk-lib » aws_ec2 » SubnetReference |
A reference to a Subnet 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 subnetReference: ec2.SubnetReference = {
subnetId: 'subnetId',
};
Properties
| Name | Type | Description |
|---|---|---|
| subnet | string | The SubnetId of the Subnet resource. |
subnetId
Type:
string
The SubnetId of the Subnet resource.

.NET
Go
Java
Python
TypeScript