@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.338Z") @Stability(value=Stable) public interface CfnSubnetProps extends software.amazon.jsii.JsiiSerializable
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.*;
Object privateDnsNameOptionsOnLaunch;
CfnSubnetProps cfnSubnetProps = CfnSubnetProps.builder()
.vpcId("vpcId")
// the properties below are optional
.assignIpv6AddressOnCreation(false)
.availabilityZone("availabilityZone")
.availabilityZoneId("availabilityZoneId")
.cidrBlock("cidrBlock")
.enableDns64(false)
.ipv6CidrBlock("ipv6CidrBlock")
.ipv6Native(false)
.mapPublicIpOnLaunch(false)
.outpostArn("outpostArn")
.privateDnsNameOptionsOnLaunch(privateDnsNameOptionsOnLaunch)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnSubnetProps.Builder
A builder for
CfnSubnetProps |
static class |
CfnSubnetProps.Jsii$Proxy
An implementation for
CfnSubnetProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnSubnetProps.Builder |
builder() |
default Object |
getAssignIpv6AddressOnCreation()
Indicates whether a network interface created in this subnet receives an IPv6 address.
|
default String |
getAvailabilityZone()
The Availability Zone of the subnet.
|
default String |
getAvailabilityZoneId()
The AZ ID of the subnet.
|
default String |
getCidrBlock()
The IPv4 CIDR block assigned to the subnet.
|
default Object |
getEnableDns64()
Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
|
default String |
getIpv6CidrBlock()
The IPv6 CIDR block.
|
default Object |
getIpv6Native()
Indicates whether this is an IPv6 only subnet.
|
default Object |
getMapPublicIpOnLaunch()
Indicates whether instances launched in this subnet receive a public IPv4 address.
|
default String |
getOutpostArn()
The Amazon Resource Name (ARN) of the Outpost.
|
default Object |
getPrivateDnsNameOptionsOnLaunch()
The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries to the instances should be handled.
|
default List<CfnTag> |
getTags()
Any tags assigned to the subnet.
|
String |
getVpcId()
The ID of the VPC the subnet is in.
|
@Stability(value=Stable) @NotNull String getVpcId()
If you update this property, you must also update the CidrBlock property.
@Stability(value=Stable) @Nullable default Object getAssignIpv6AddressOnCreation()
If you specify AssignIpv6AddressOnCreation , you must also specify Ipv6CidrBlock .
@Stability(value=Stable) @Nullable default String getAvailabilityZone()
If you update this property, you must also update the CidrBlock property.
@Stability(value=Stable) @Nullable default String getAvailabilityZoneId()
@Stability(value=Stable) @Nullable default String getCidrBlock()
If you update this property, we create a new subnet, and then delete the existing one.
@Stability(value=Stable) @Nullable default Object getEnableDns64()
For more information, see DNS64 and NAT64 in the Amazon Virtual Private Cloud User Guide .
@Stability(value=Stable) @Nullable default String getIpv6CidrBlock()
If you specify AssignIpv6AddressOnCreation , you must also specify Ipv6CidrBlock .
@Stability(value=Stable) @Nullable default Object getIpv6Native()
For more information, see Subnet basics in the Amazon Virtual Private Cloud User Guide .
@Stability(value=Stable) @Nullable default Object getMapPublicIpOnLaunch()
The default value is false .
@Stability(value=Stable) @Nullable default String getOutpostArn()
@Stability(value=Stable) @Nullable default Object getPrivateDnsNameOptionsOnLaunch()
For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide .
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) static CfnSubnetProps.Builder builder()
CfnSubnetProps.Builder of CfnSubnetPropsCopyright © 2022. All rights reserved.