Class PublicSubnetAttributes
Inheritance
System.Object
PublicSubnetAttributes
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class PublicSubnetAttributes : Object, IPublicSubnetAttributes, ISubnetAttributes
Syntax (vb)
Public Class PublicSubnetAttributes
Inherits Object
Implements IPublicSubnetAttributes, ISubnetAttributes
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var publicSubnetAttributes = new PublicSubnetAttributes {
SubnetId = "subnetId",
// the properties below are optional
AvailabilityZone = "availabilityZone",
Ipv4CidrBlock = "ipv4CidrBlock",
RouteTableId = "routeTableId"
};
Synopsis
Constructors
PublicSubnetAttributes() |
Properties
AvailabilityZone | The Availability Zone the subnet is located in. |
Ipv4CidrBlock | The IPv4 CIDR block associated with the subnet. |
RouteTableId | The ID of the route table for this particular subnet. |
SubnetId | The subnetId for this particular subnet. |
Constructors
PublicSubnetAttributes()
public PublicSubnetAttributes()
Properties
AvailabilityZone
The Availability Zone the subnet is located in.
public string AvailabilityZone { get; set; }
Property Value
System.String
Remarks
Default: - No AZ information, cannot use AZ selection features
Ipv4CidrBlock
The IPv4 CIDR block associated with the subnet.
public string Ipv4CidrBlock { get; set; }
Property Value
System.String
Remarks
Default: - No CIDR information, cannot use CIDR filter features
RouteTableId
The ID of the route table for this particular subnet.
public string RouteTableId { get; set; }
Property Value
System.String
Remarks
Default: - No route table information, cannot create VPC endpoints
SubnetId
The subnetId for this particular subnet.
public string SubnetId { get; set; }
Property Value
System.String