CfnSubnetCidrReservationMixinProps
- class aws_cdk.cfn_property_mixins.aws_ec2.CfnSubnetCidrReservationMixinProps(*, cidr=None, description=None, reservation_type=None, subnet_id=None, tags=None)
Bases:
objectProperties for CfnSubnetCidrReservationPropsMixin.
- Parameters:
cidr (
Optional[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.description (
Optional[str]) – The description of the subnet CIDR reservation.reservation_type (
Optional[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 (
Optional[str]) – The identifier of the subnet the CIDR range is reserved in.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.cfn_property_mixins import aws_ec2 as ec2 cfn_subnet_cidr_reservation_mixin_props = ec2.CfnSubnetCidrReservationMixinProps( cidr="cidr", description="description", reservation_type="reservationType", subnet_id="subnetId", 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.