Class RequestedSubnet
Subnet requested for allocation.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RequestedSubnet : IRequestedSubnet
Syntax (vb)
Public Class RequestedSubnet Implements IRequestedSubnet
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 requestedSubnet = new RequestedSubnet {
AvailabilityZone = "availabilityZone",
Configuration = new SubnetConfiguration {
Name = "name",
SubnetType = SubnetType.PRIVATE_ISOLATED,
// the properties below are optional
CidrMask = 123,
Ipv6AssignAddressOnCreation = false,
MapPublicIpOnLaunch = false,
Reserved = false
},
SubnetConstructId = "subnetConstructId"
};
Synopsis
Constructors
| RequestedSubnet() | Subnet requested for allocation. |
Properties
| AvailabilityZone | The availability zone for the subnet. |
| Configuration | Specify configuration parameters for a single subnet group in a VPC. |
| SubnetConstructId | Id for the Subnet construct. |
Constructors
RequestedSubnet()
Subnet requested for allocation.
public RequestedSubnet()
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 requestedSubnet = new RequestedSubnet {
AvailabilityZone = "availabilityZone",
Configuration = new SubnetConfiguration {
Name = "name",
SubnetType = SubnetType.PRIVATE_ISOLATED,
// the properties below are optional
CidrMask = 123,
Ipv6AssignAddressOnCreation = false,
MapPublicIpOnLaunch = false,
Reserved = false
},
SubnetConstructId = "subnetConstructId"
};
Properties
AvailabilityZone
The availability zone for the subnet.
public string AvailabilityZone { get; set; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
Configuration
Specify configuration parameters for a single subnet group in a VPC.
public ISubnetConfiguration Configuration { get; set; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
SubnetConstructId
Id for the Subnet construct.
public string SubnetConstructId { get; set; }
Property Value
Remarks
ExampleMetadata: fixture=_generated