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 VPN connection.
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z
public class VpnConnection
The VpnConnection type exposes the following members
Name | Description | |
---|---|---|
![]() |
VpnConnection() |
Name | Type | Description | |
---|---|---|---|
![]() |
Category | System.String |
Gets and sets the property Category.
The category of the VPN connection. A value of |
![]() |
CoreNetworkArn | System.String |
Gets and sets the property CoreNetworkArn. The ARN of the core network. |
![]() |
CoreNetworkAttachmentArn | System.String |
Gets and sets the property CoreNetworkAttachmentArn. The ARN of the core network attachment. |
![]() |
CustomerGatewayConfiguration | System.String |
Gets and sets the property CustomerGatewayConfiguration.
The configuration information for the VPN connection's customer gateway (in the native
XML format). This element is always present in the CreateVpnConnection response;
however, it's present in the DescribeVpnConnections response only if the VPN
connection is in the |
![]() |
CustomerGatewayId | System.String |
Gets and sets the property CustomerGatewayId. The ID of the customer gateway at your end of the VPN connection. |
![]() |
GatewayAssociationState | Amazon.EC2.GatewayAssociationState |
Gets and sets the property GatewayAssociationState. The current state of the gateway association. |
![]() |
Options | Amazon.EC2.Model.VpnConnectionOptions |
Gets and sets the property Options. The VPN connection options. |
![]() |
PreSharedKeyArn | System.String |
Gets and sets the property PreSharedKeyArn. The Amazon Resource Name (ARN) of the Secrets Manager secret storing the pre-shared key(s) for the VPN connection. |
![]() |
Routes | System.Collections.Generic.List<Amazon.EC2.Model.VpnStaticRoute> |
Gets and sets the property Routes. The static routes associated with the VPN connection. 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. |
![]() |
State | Amazon.EC2.VpnState |
Gets and sets the property State. The current state of the VPN connection. |
![]() |
Tags | System.Collections.Generic.List<Amazon.EC2.Model.Tag> |
Gets and sets the property Tags. Any tags assigned to the VPN connection. 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. |
![]() |
TransitGatewayId | System.String |
Gets and sets the property TransitGatewayId. The ID of the transit gateway associated with the VPN connection. |
![]() |
Type | Amazon.EC2.GatewayType |
Gets and sets the property Type. The type of VPN connection. |
![]() |
VgwTelemetry | System.Collections.Generic.List<Amazon.EC2.Model.VgwTelemetry> |
Gets and sets the property VgwTelemetry. Information about the VPN tunnel. 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. |
![]() |
VpnConnectionId | System.String |
Gets and sets the property VpnConnectionId. The ID of the VPN connection. |
![]() |
VpnGatewayId | System.String |
Gets and sets the property VpnGatewayId. The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection. |
.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