aws-cdk-lib.aws_ec2.PrivateSubnetAttributes

interface PrivateSubnetAttributes

LanguageType name
.NETAmazon.CDK.AWS.EC2.PrivateSubnetAttributes
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#PrivateSubnetAttributes
Javasoftware.amazon.awscdk.services.ec2.PrivateSubnetAttributes
Pythonaws_cdk.aws_ec2.PrivateSubnetAttributes
TypeScript (source)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

NameTypeDescription
subnetIdstringThe subnetId for this particular subnet.
availabilityZone?stringThe Availability Zone the subnet is located in.
ipv4CidrBlock?stringThe IPv4 CIDR block associated with the subnet.
routeTableId?stringThe 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.