interface PrivateSubnetAttributes
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.PrivateSubnetAttributes |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#PrivateSubnetAttributes |
![]() | software.amazon.awscdk.services.ec2.PrivateSubnetAttributes |
![]() | aws_cdk.aws_ec2.PrivateSubnetAttributes |
![]() | aws-cdk-lib » aws_ec2 » PrivateSubnetAttributes |
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 privateSubnetAttributes: ec2.PrivateSubnetAttributes = {
subnetId: 'subnetId',
// the properties below are optional
availabilityZone: 'availabilityZone',
ipv4CidrBlock: 'ipv4CidrBlock',
routeTableId: 'routeTableId',
};
Properties
Name | Type | Description |
---|---|---|
subnet | string | The subnetId for this particular subnet. |
availability | string | The Availability Zone the subnet is located in. |
ipv4 | string | The IPv4 CIDR block associated with the subnet. |
route | string | The ID of the route table for this particular subnet. |
subnetId
Type:
string
The subnetId for this particular subnet.
availabilityZone?
Type:
string
(optional, default: No AZ information, cannot use AZ selection features)
The Availability Zone the subnet is located in.
ipv4CidrBlock?
Type:
string
(optional, default: No CIDR information, cannot use CIDR filter features)
The IPv4 CIDR block associated with the subnet.
routeTableId?
Type:
string
(optional, default: No route table information, cannot create VPC endpoints)
The ID of the route table for this particular subnet.