CfnSubnetCidrReservationMixinProps

class aws_cdk.cfn_property_mixins.aws_ec2.CfnSubnetCidrReservationMixinProps(*, cidr=None, description=None, reservation_type=None, subnet_id=None, tags=None)

Bases: object

Properties 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetcidrreservation.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetcidrreservation.html#cfn-ec2-subnetcidrreservation-cidr

description

The description of the subnet CIDR reservation.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetcidrreservation.html#cfn-ec2-subnetcidrreservation-description

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetcidrreservation.html#cfn-ec2-subnetcidrreservation-reservationtype

subnet_id

The identifier of the subnet the CIDR range is reserved in.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetcidrreservation.html#cfn-ec2-subnetcidrreservation-subnetid

tags

The tags assigned to the subnet CIDR reservation.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetcidrreservation.html#cfn-ec2-subnetcidrreservation-tags