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 VPC.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.Vpc

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

Syntax

C#
public class Vpc

The Vpc type exposes the following members

Constructors

NameDescription
Public Method Vpc()

Properties

NameTypeDescription
Public Property CidrBlock System.String

Gets and sets the property CidrBlock.

The primary IPv4 CIDR block for the VPC.

Public Property CidrBlockAssociationSet System.Collections.Generic.List<Amazon.EC2.Model.VpcCidrBlockAssociation>

Gets and sets the property CidrBlockAssociationSet.

Information about the IPv4 CIDR blocks associated with the VPC.

Public Property DhcpOptionsId System.String

Gets and sets the property DhcpOptionsId.

The ID of the set of DHCP options you've associated with the VPC (or default if the default options are associated with the VPC).

Public Property InstanceTenancy Amazon.EC2.Tenancy

Gets and sets the property InstanceTenancy.

The allowed tenancy of instances launched into the VPC.

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

Gets and sets the property Ipv6CidrBlockAssociationSet.

Information about the IPv6 CIDR blocks associated with the VPC.

Public Property IsDefault System.Boolean

Gets and sets the property IsDefault.

Indicates whether the VPC is the default VPC.

Public Property State Amazon.EC2.VpcState

Gets and sets the property State.

The current state of the VPC.

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

Gets and sets the property Tags.

Any tags assigned to the VPC.

Public Property VpcId System.String

Gets and sets the property VpcId.

The ID of the VPC.

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