# SubnetIpamOptions

CIDR Allocated Subnets.

- 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#L197)
- 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 subnetIpamOptions: ec2.SubnetIpamOptions = {
  allocatedSubnets: [{
    cidr: 'cidr',

    // the properties below are optional
    ipv6Cidr: 'ipv6Cidr',
  }],
};
```

## Properties

- `allocatedSubnets`: [AllocatedSubnet](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.AllocatedSubnet.html)[] (required) — CIDR Allocations for Subnets.
