# AllocateCidrRequest

Request for subnets CIDR to be allocated for a Vpc.

- 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#L131)
- 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 allocateCidrRequest: ec2.AllocateCidrRequest = {
  requestedSubnets: [{
    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',
  }],
  vpcCidr: 'vpcCidr',
};
```

## Properties

- `requestedSubnets`: [RequestedSubnet](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.RequestedSubnet.html)[] (required) — The Subnets to be allocated.

- `vpcCidr`: string (required) — The IPv4 CIDR block for this Vpc.
