Interface ISubnetAttributes
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ISubnetAttributes
Syntax (vb)
Public Interface ISubnetAttributes
Remarks
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
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. |
Properties
AvailabilityZone
The Availability Zone the subnet is located in.
virtual string AvailabilityZone { get; }
Property Value
System.String
Remarks
Default: - No AZ information, cannot use AZ selection features
Ipv4CidrBlock
The IPv4 CIDR block associated with the subnet.
virtual string Ipv4CidrBlock { get; }
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.
virtual string RouteTableId { get; }
Property Value
System.String
Remarks
Default: - No route table information, cannot create VPC endpoints
SubnetId
The subnetId for this particular subnet.
string SubnetId { get; }
Property Value
System.String