CfnSubnetCidrReservationProps
- class aws_cdk.aws_ec2.CfnSubnetCidrReservationProps(*, cidr, reservation_type, subnet_id, description=None, tags=None)
Bases:
objectProperties for defining a
CfnSubnetCidrReservation.- Parameters:
cidr (
str) – 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.reservation_type (
str) – 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.subnet_id (
str) – The identifier of the subnet the CIDR range is reserved in.description (
Optional[str]) – The description of the subnet CIDR reservation.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – The tags assigned to the subnet CIDR reservation.
- See:
- ExampleMetadata:
fixture=_generated
Example:
from aws_cdk import CfnTag # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ec2 as ec2 cfn_subnet_cidr_reservation_props = ec2.CfnSubnetCidrReservationProps( cidr="cidr", reservation_type="reservationType", subnet_id="subnetId", # the properties below are optional description="description", tags=[CfnTag( key="key", value="value" )] )
Attributes
- cidr
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.
- description
The description of the subnet CIDR reservation.
- reservation_type
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.
- subnet_id
The identifier of the subnet the CIDR range is reserved in.
- tags
The tags assigned to the subnet CIDR reservation.