Interface CfnSubnetCidrReservationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSubnetCidrReservationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:04:50.266Z")
@Stability(Stable)
public interface CfnSubnetCidrReservationProps
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.ec2.*;
CfnSubnetCidrReservationProps cfnSubnetCidrReservationProps = CfnSubnetCidrReservationProps.builder()
.cidr("cidr")
.reservationType("reservationType")
.subnetId("subnetId")
// the properties below are optional
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnSubnetCidrReservationPropsstatic final classAn implementation forCfnSubnetCidrReservationProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()getCidr()The IPv4 or IPv6 CIDR range to reserve.default StringThe description of the subnet CIDR reservation.The type of reservation.The identifier of the subnet the CIDR range is reserved in.getTags()The tags assigned to the subnet CIDR reservation.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCidr
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 Also:
-
getReservationType
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 Also:
-
getSubnetId
The identifier of the subnet the CIDR range is reserved in.- See Also:
-
getDescription
The description of the subnet CIDR reservation.- See Also:
-
getTags
The tags assigned to the subnet CIDR reservation.- See Also:
-
builder
-