AWS SDK Version 3 for .NET
API Reference

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.

Describes a subnet.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.Subnet

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public class Subnet

The Subnet type exposes the following members

Constructors

NameDescription
Public Method Subnet()

Properties

NameTypeDescription
Public Property AssignIpv6AddressOnCreation System.Boolean

Gets and sets the property AssignIpv6AddressOnCreation.

Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives an IPv6 address.

Public Property AvailabilityZone System.String

Gets and sets the property AvailabilityZone.

The Availability Zone of the subnet.

Public Property AvailableIpAddressCount System.Int32

Gets and sets the property AvailableIpAddressCount.

The number of unused private IPv4 addresses in the subnet. Note that the IPv4 addresses for any stopped instances are considered unavailable.

Public Property CidrBlock System.String

Gets and sets the property CidrBlock.

The IPv4 CIDR block assigned to the subnet.

Public Property DefaultForAz System.Boolean

Gets and sets the property DefaultForAz.

Indicates whether this is the default subnet for the Availability Zone.

Public Property Ipv6CidrBlockAssociationSet System.Collections.Generic.List<Amazon.EC2.Model.SubnetIpv6CidrBlockAssociation>

Gets and sets the property Ipv6CidrBlockAssociationSet.

Information about the IPv6 CIDR blocks associated with the subnet.

Public Property MapPublicIpOnLaunch System.Boolean

Gets and sets the property MapPublicIpOnLaunch.

Indicates whether instances launched in this subnet receive a public IPv4 address.

Public Property State Amazon.EC2.SubnetState

Gets and sets the property State.

The current state of the subnet.

Public Property SubnetId System.String

Gets and sets the property SubnetId.

The ID of the subnet.

Public Property Tags System.Collections.Generic.List<Amazon.EC2.Model.Tag>

Gets and sets the property Tags.

Any tags assigned to the subnet.

Public Property VpcId System.String

Gets and sets the property VpcId.

The ID of the VPC the subnet is in.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms