Class SubnetAttributes
Inheritance
System.Object
    SubnetAttributes
  Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class SubnetAttributes : Object, ISubnetAttributesSyntax (vb)
Public Class SubnetAttributes
    Inherits Object
    Implements ISubnetAttributesRemarks
ExampleMetadata: infused
Examples
// Supply all properties
var subnet1 = Subnet.FromSubnetAttributes(this, "SubnetFromAttributes", new SubnetAttributes {
    SubnetId = "s-1234",
    AvailabilityZone = "pub-az-4465",
    RouteTableId = "rt-145"
});
// Supply only subnet id
var subnet2 = Subnet.FromSubnetId(this, "SubnetFromId", "s-1234");Synopsis
Constructors
| SubnetAttributes() | 
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
SubnetAttributes()
public SubnetAttributes()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