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.
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z
public class Vpc
The Vpc type exposes the following members
Name | Description | |
---|---|---|
![]() |
Vpc() |
Name | Type | Description | |
---|---|---|---|
![]() |
BlockPublicAccessStates | Amazon.EC2.Model.BlockPublicAccessStates |
Gets and sets the property BlockPublicAccessStates. The state of VPC Block Public Access (BPA). |
![]() |
CidrBlock | System.String |
Gets and sets the property CidrBlock. The primary IPv4 CIDR block for the VPC. |
![]() |
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. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
![]() |
DhcpOptionsId | System.String |
Gets and sets the property DhcpOptionsId. The ID of the set of DHCP options you've associated with the VPC. |
![]() |
EncryptionControl | Amazon.EC2.Model.VpcEncryptionControl |
Gets and sets the property EncryptionControl. |
![]() |
InstanceTenancy | Amazon.EC2.Tenancy |
Gets and sets the property InstanceTenancy. The allowed tenancy of instances launched into the VPC. |
![]() |
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. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
![]() |
IsDefault | System.Nullable<System.Boolean> |
Gets and sets the property IsDefault. Indicates whether the VPC is the default VPC. |
![]() |
OwnerId | System.String |
Gets and sets the property OwnerId. The ID of the Amazon Web Services account that owns the VPC. |
![]() |
State | Amazon.EC2.VpcState |
Gets and sets the property State. The current state of the VPC. |
![]() |
Tags | System.Collections.Generic.List<Amazon.EC2.Model.Tag> |
Gets and sets the property Tags. Any tags assigned to the VPC. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
![]() |
VpcId | System.String |
Gets and sets the property VpcId. The ID of the VPC. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer