Class VpnConnectionBase
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.ec2.VpnConnectionBase
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,IVpnConnection
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
- Direct Known Subclasses:
VpnConnection
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.591Z")
@Stability(Stable)
public abstract class VpnConnectionBase
extends Resource
implements IVpnConnection
Base class for Vpn connections.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.constructs.Construct
software.constructs.Construct.Builder
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IVpnConnection
IVpnConnection.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
VpnConnectionBase
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
VpnConnectionBase
(software.amazon.jsii.JsiiObjectRef objRef) protected
VpnConnectionBase
(software.constructs.Construct scope, String id) protected
VpnConnectionBase
(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionabstract Number
The ASN of the customer gateway.abstract String
The id of the customer gateway.abstract String
The ip address of the customer gateway.abstract String
getVpnId()
The id of the VPN connection.Return the given named metric for this VPNConnection.metric
(String metricName, MetricOptions props) Return the given named metric for this VPNConnection.The bytes received through the VPN tunnel.metricTunnelDataIn
(MetricOptions props) The bytes received through the VPN tunnel.The bytes sent through the VPN tunnel.metricTunnelDataOut
(MetricOptions props) The bytes sent through the VPN tunnel.The state of the tunnel.metricTunnelState
(MetricOptions props) The state of the tunnel.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
VpnConnectionBase
protected VpnConnectionBase(software.amazon.jsii.JsiiObjectRef objRef) -
VpnConnectionBase
protected VpnConnectionBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
VpnConnectionBase
@Stability(Stable) protected VpnConnectionBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
-
-
VpnConnectionBase
@Stability(Stable) protected VpnConnectionBase(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.
-
-
Method Details
-
metric
@Stability(Stable) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this VPNConnection.- Specified by:
metric
in interfaceIVpnConnection
- Parameters:
metricName
- This parameter is required.props
-
-
metric
Return the given named metric for this VPNConnection.- Specified by:
metric
in interfaceIVpnConnection
- Parameters:
metricName
- This parameter is required.
-
metricTunnelDataIn
The bytes received through the VPN tunnel.Sum over 5 minutes
- Specified by:
metricTunnelDataIn
in interfaceIVpnConnection
- Parameters:
props
-
-
metricTunnelDataIn
The bytes received through the VPN tunnel.Sum over 5 minutes
- Specified by:
metricTunnelDataIn
in interfaceIVpnConnection
-
metricTunnelDataOut
The bytes sent through the VPN tunnel.Sum over 5 minutes
- Specified by:
metricTunnelDataOut
in interfaceIVpnConnection
- Parameters:
props
-
-
metricTunnelDataOut
The bytes sent through the VPN tunnel.Sum over 5 minutes
- Specified by:
metricTunnelDataOut
in interfaceIVpnConnection
-
metricTunnelState
The state of the tunnel. 0 indicates DOWN and 1 indicates UP.Average over 5 minutes
- Specified by:
metricTunnelState
in interfaceIVpnConnection
- Parameters:
props
-
-
metricTunnelState
The state of the tunnel. 0 indicates DOWN and 1 indicates UP.Average over 5 minutes
- Specified by:
metricTunnelState
in interfaceIVpnConnection
-
getCustomerGatewayAsn
The ASN of the customer gateway.- Specified by:
getCustomerGatewayAsn
in interfaceIVpnConnection
-
getCustomerGatewayId
The id of the customer gateway.- Specified by:
getCustomerGatewayId
in interfaceIVpnConnection
-
getCustomerGatewayIp
The ip address of the customer gateway.- Specified by:
getCustomerGatewayIp
in interfaceIVpnConnection
-
getVpnId
The id of the VPN connection.- Specified by:
getVpnId
in interfaceIVpnConnection
-