aws-cdk-lib.aws_ec2.PublicSubnetAttributes

interface PublicSubnetAttributes

LanguageType name
.NETAmazon.CDK.AWS.EC2.PublicSubnetAttributes
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#PublicSubnetAttributes
Javasoftware.amazon.awscdk.services.ec2.PublicSubnetAttributes
Pythonaws_cdk.aws_ec2.PublicSubnetAttributes
TypeScript (source)aws-cdk-lib » aws_ec2 » PublicSubnetAttributes

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 publicSubnetAttributes: ec2.PublicSubnetAttributes = {
  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.