Interface IVpnConnection
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IVpnConnection : IResource
Syntax (vb)
Public Interface IVpnConnection
Inherits IResource, IConstruct, IDependable
Synopsis
Properties
CustomerGatewayAsn | The ASN of the customer gateway. |
CustomerGatewayId | The id of the customer gateway. |
CustomerGatewayIp | The ip address of the customer gateway. |
VpnId | The id of the VPN connection. |
Methods
Metric(String, IMetricOptions) | Return the given named metric for this VPNConnection. |
MetricTunnelDataIn(IMetricOptions) | The bytes received through the VPN tunnel. |
MetricTunnelDataOut(IMetricOptions) | The bytes sent through the VPN tunnel. |
MetricTunnelState(IMetricOptions) | The state of the tunnel. 0 indicates DOWN and 1 indicates UP. |
Properties
CustomerGatewayAsn
The ASN of the customer gateway.
double CustomerGatewayAsn { get; }
Property Value
System.Double
CustomerGatewayId
The id of the customer gateway.
string CustomerGatewayId { get; }
Property Value
System.String
CustomerGatewayIp
The ip address of the customer gateway.
string CustomerGatewayIp { get; }
Property Value
System.String
VpnId
The id of the VPN connection.
string VpnId { get; }
Property Value
System.String
Remarks
Attribute: VpnConnectionId
Methods
Metric(String, IMetricOptions)
Return the given named metric for this VPNConnection.
Metric Metric(string metricName, IMetricOptions props = null)
Parameters
- metricName System.String
- props IMetricOptions
Returns
MetricTunnelDataIn(IMetricOptions)
The bytes received through the VPN tunnel.
Metric MetricTunnelDataIn(IMetricOptions props = null)
Parameters
- props IMetricOptions
Returns
Remarks
Sum over 5 minutes
MetricTunnelDataOut(IMetricOptions)
The bytes sent through the VPN tunnel.
Metric MetricTunnelDataOut(IMetricOptions props = null)
Parameters
- props IMetricOptions
Returns
Remarks
Sum over 5 minutes
MetricTunnelState(IMetricOptions)
The state of the tunnel. 0 indicates DOWN and 1 indicates UP.
Metric MetricTunnelState(IMetricOptions props = null)
Parameters
- props IMetricOptions
Returns
Remarks
Average over 5 minutes