# RequestedSubnet

Subnet requested for allocation.

- Source: [`aws-ec2/lib/ip-addresses.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ec2/lib/ip-addresses.ts#L95)
- Type last changed: v2.48.0 · 27 Oct 2022

## 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 ec2 } from 'aws-cdk-lib';
const requestedSubnet: ec2.RequestedSubnet = {
  availabilityZone: 'availabilityZone',
  configuration: {
    name: 'name',
    subnetType: ec2.SubnetType.PRIVATE_ISOLATED,

    // the properties below are optional
    cidrMask: 123,
    ipv6AssignAddressOnCreation: false,
    mapPublicIpOnLaunch: false,
    reserved: false,
  },
  subnetConstructId: 'subnetConstructId',
};
```

## Properties

- `availabilityZone`: string (required) — The availability zone for the subnet.

- `configuration`: [SubnetConfiguration](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.SubnetConfiguration.html) (required) — Specify configuration parameters for a single subnet group in a VPC.

- `subnetConstructId`: string (required) — Id for the Subnet construct.
