Represents a private VPC subnet resource.
import { PrivateSubnet } from 'aws-cdk-lib/aws-ec2';Or use the module namespace:
import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.PrivateSubnetConfiguration passed to the constructor as PrivateSubnetProps.
SubnetPropsavailabilityZoneRequiredinherited from SubnetPropsstringThe availability zone for the subnet.
cidrBlockRequiredinherited from SubnetPropsstringThe CIDR notation for this subnet.
vpcIdRequiredinherited from SubnetPropsstringThe VPC which this subnet is part of.
assignIpv6AddressOnCreationOptionalinherited from SubnetPropsbooleanIndicates whether a network interface created in this subnet receives an IPv6 address. If you specify AssignIpv6AddressOnCreation, you must also specify Ipv6CidrBlock.
Default: false
ipv6CidrBlockOptionalinherited from SubnetPropsstringThe IPv6 CIDR block. If you specify AssignIpv6AddressOnCreation, you must also specify Ipv6CidrBlock.
Default: - no IPv6 CIDR block.
mapPublicIpOnLaunchOptionalinherited from SubnetPropsbooleanControls if a public IP is associated to an instance at launch.
Default: true in Subnet.Public, false in Subnet.Private or Subnet.Isolated.
Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.
Download Free Infographicaws-ec2