# CfnSubnetCidrBlockProps

Properties for defining a `CfnSubnetCidrBlock`.

Extends: CfnSubnetCidrBlockProps
Used as props by: CfnSubnetCidrBlock

- Source: Generated code
- Type last changed: v2.227.0 · 21 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 ec2 } from 'aws-cdk-lib';
const cfnSubnetCidrBlockProps: ec2.CfnSubnetCidrBlockProps = {
  subnetId: 'subnetId',

  // the properties below are optional
  ipv6CidrBlock: 'ipv6CidrBlock',
  ipv6IpamPoolId: 'ipv6IpamPoolId',
  ipv6NetmaskLength: 123,
};
```

## Properties

- `ipv6CidrBlock`: string — The IPv6 network range for the subnet, in CIDR notation.

- `ipv6IpamPoolId`: string — An IPv6 IPAM pool ID for the subnet.

- `ipv6NetmaskLength`: number — An IPv6 netmask length for the subnet.

- `subnetId`: string | [ISubnetRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ec2.ISubnetRef.html) (required) — The ID of the subnet.
