interface RequestedSubnet
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.RequestedSubnet |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#RequestedSubnet |
![]() | software.amazon.awscdk.services.ec2.RequestedSubnet |
![]() | aws_cdk.aws_ec2.RequestedSubnet |
![]() | aws-cdk-lib » aws_ec2 » RequestedSubnet |
Subnet requested for allocation.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const requestedSubnet: ec2.RequestedSubnet = {
availabilityZone: 'availabilityZone',
configuration: {
name: 'name',
subnetType: ec2.SubnetType.PRIVATE_ISOLATED,
// the properties below are optional
cidrMask: 123,
ipv6AssignAddressOnCreation: false,
mapPublicIpOnLaunch: false,
reserved: false,
},
subnetConstructId: 'subnetConstructId',
};
Properties
Name | Type | Description |
---|---|---|
availability | string | The availability zone for the subnet. |
configuration | Subnet | Specify configuration parameters for a single subnet group in a VPC. |
subnet | string | Id for the Subnet construct. |
availabilityZone
Type:
string
The availability zone for the subnet.
configuration
Type:
Subnet
Specify configuration parameters for a single subnet group in a VPC.
subnetConstructId
Type:
string
Id for the Subnet construct.