Class SelectedSubnets
Result of selecting a subset of subnets from a VPC.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SelectedSubnets : Object, ISelectedSubnets
Syntax (vb)
Public Class SelectedSubnets
Inherits Object
Implements ISelectedSubnets
Remarks
ExampleMetadata: infused
Examples
var vpc = new Vpc(this, "TheVPC", new VpcProps {
IpAddresses = IpAddresses.Cidr("10.0.0.0/16")
});
// Iterate the private subnets
var selection = vpc.SelectSubnets(new SubnetSelection {
SubnetType = SubnetType.PRIVATE_WITH_EGRESS
});
for (var subnet in selection.Subnets)
{
}
Synopsis
Constructors
SelectedSubnets() |
Properties
AvailabilityZones | The respective AZs of each subnet. |
HasPublic | Whether any of the given subnets are from the VPC's public subnets. |
InternetConnectivityEstablished | Dependency representing internet connectivity for these subnets. |
IsPendingLookup | The subnet selection is not actually real yet. |
SubnetIds | The subnet IDs. |
Subnets | Selected subnet objects. |
Constructors
SelectedSubnets()
public SelectedSubnets()
Properties
AvailabilityZones
The respective AZs of each subnet.
public string[] AvailabilityZones { get; set; }
Property Value
System.String[]
HasPublic
Whether any of the given subnets are from the VPC's public subnets.
public bool HasPublic { get; set; }
Property Value
System.Boolean
InternetConnectivityEstablished
Dependency representing internet connectivity for these subnets.
public IDependable InternetConnectivityEstablished { get; set; }
Property Value
Constructs.IDependable
IsPendingLookup
The subnet selection is not actually real yet.
public Nullable<bool> IsPendingLookup { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
If this value is true, don't validate anything about the subnets. The count or identities are not known yet, and the validation will most likely fail which will prevent a successful lookup.
Default: false
SubnetIds
The subnet IDs.
public string[] SubnetIds { get; set; }
Property Value
System.String[]