AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class Subnet : Object
The Subnet type exposes the following members
Name | Description | |
---|---|---|
Subnet() |
Name | Type | Description | |
---|---|---|---|
AvailabilityZone | System.String |
Gets and sets the property AvailabilityZone.
The Availability Zone of the subnet. |
|
AvailableIpAddressCount | System.Int32 |
Gets and sets the property AvailableIpAddressCount.
The number of unused IP addresses in the subnet. Note that the IP addresses for any stopped instances are considered unavailable. |
|
CidrBlock | System.String |
Gets and sets the property CidrBlock.
The CIDR block assigned to the subnet. |
|
DefaultForAz | System.Boolean |
Gets and sets the property DefaultForAz.
Indicates whether this is the default subnet for the Availability Zone. |
|
MapPublicIpOnLaunch | System.Boolean |
Gets and sets the property MapPublicIpOnLaunch.
Indicates whether instances launched in this subnet receive a public IP address. |
|
State | Amazon.EC2.SubnetState |
Gets and sets the property State.
The current state of the subnet. |
|
SubnetId | System.String |
Gets and sets the property SubnetId.
The ID of the subnet. |
|
Tags | System.Collections.Generic.List<Amazon.EC2.Model.Tag> |
Gets and sets the property Tags.
Any tags assigned to the subnet. |
|
VpcId | System.String |
Gets and sets the property VpcId.
The ID of the VPC the subnet is in. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8
.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8