# SubnetReference

A reference to a Subnet resource.

- Source: Generated code
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as interfaces_ec2 } from 'aws-cdk-lib/interfaces';
const subnetReference: interfaces_ec2.SubnetReference = {
  subnetId: 'subnetId',
};
```

## Properties

- `subnetId`: string (required) — The SubnetId of the Subnet resource.
