interface PublicSubnetAttributes
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.PublicSubnetAttributes |
Java | software.amazon.awscdk.services.ec2.PublicSubnetAttributes |
Python | aws_cdk.aws_ec2.PublicSubnetAttributes |
TypeScript (source) | @aws-cdk/aws-ec2 » PublicSubnetAttributes |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2 from '@aws-cdk/aws-ec2';
const publicSubnetAttributes: ec2.PublicSubnetAttributes = {
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.