Interface AllocatedSubnet
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AllocatedSubnet.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:36.672Z")
@Stability(Stable)
public interface AllocatedSubnet
extends software.amazon.jsii.JsiiSerializable
CIDR Allocated Subnet.
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.*;
AllocatedSubnet allocatedSubnet = AllocatedSubnet.builder()
.cidr("cidr")
// the properties below are optional
.ipv6Cidr("ipv6Cidr")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAllocatedSubnetstatic final classAn implementation forAllocatedSubnet -
Method Summary
Modifier and TypeMethodDescriptionstatic AllocatedSubnet.Builderbuilder()getCidr()IPv4 CIDR Allocations for a Subnet.default StringIPv6 CIDR Allocations for a Subnet.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCidr
IPv4 CIDR Allocations for a Subnet.Note this is specific to the IPv4 CIDR.
-
getIpv6Cidr
IPv6 CIDR Allocations for a Subnet.Note this is specific to the IPv6 CIDR.
Default: - no IPV6 CIDR
-
builder
- Returns:
- a
AllocatedSubnet.BuilderofAllocatedSubnet
-