interface CfnSubnetCidrReservationProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.CfnSubnetCidrReservationProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnSubnetCidrReservationProps |
Java | software.amazon.awscdk.services.ec2.CfnSubnetCidrReservationProps |
Python | aws_cdk.aws_ec2.CfnSubnetCidrReservationProps |
TypeScript | aws-cdk-lib » aws_ec2 » CfnSubnetCidrReservationProps |
Properties for defining a CfnSubnetCidrReservation.
Example
// 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 cfnSubnetCidrReservationProps: ec2.CfnSubnetCidrReservationProps = {
cidr: 'cidr',
reservationType: 'reservationType',
subnetId: 'subnetId',
// the properties below are optional
description: 'description',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| cidr | string | The IPv4 or IPv6 CIDR range to reserve. |
| reservation | string | The type of reservation. |
| subnet | string | The identifier of the subnet the CIDR range is reserved in. |
| description? | string | The description of the subnet CIDR reservation. |
| tags? | Cfn[] | The tags assigned to the subnet CIDR reservation. |
cidr
Type:
string
The IPv4 or IPv6 CIDR range to reserve.
Must lie inside the subnet's CIDR block and must not overlap an existing reservation. Supply an IPv6 range exactly as the service returns it: Amazon EC2 stores an IPv6 CIDR in RFC 5952 compressed form, and a noncanonical spelling of the same range is reported as drift because this property is create-only and read back.
reservationType
Type:
string
The type of reservation.
A prefix reservation is used for an IPv6 prefix delegated to a network interface; an explicit reservation is used for a range that Amazon EC2 must not assign automatically.
subnetId
Type:
string
The identifier of the subnet the CIDR range is reserved in.
description?
Type:
string
(optional)
The description of the subnet CIDR reservation.
tags?
Type:
Cfn[]
(optional)
The tags assigned to the subnet CIDR reservation.

.NET
Go
Java
Python
TypeScript