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.BuilderNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IVpnConnection
IVpnConnection.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVpnConnectionBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedVpnConnectionBase(software.amazon.jsii.JsiiObjectRef objRef) protectedVpnConnectionBase(software.constructs.Construct scope, String id) protectedVpnConnectionBase(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionabstract NumberThe ASN of the customer gateway.abstract StringThe id of the customer gateway.abstract StringThe ip address of the customer gateway.abstract StringgetVpnId()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, isResourceMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods 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:
metricin interfaceIVpnConnection- Parameters:
metricName- This parameter is required.props-
-
metric
Return the given named metric for this VPNConnection.- Specified by:
metricin interfaceIVpnConnection- Parameters:
metricName- This parameter is required.
-
metricTunnelDataIn
The bytes received through the VPN tunnel.Sum over 5 minutes
- Specified by:
metricTunnelDataInin interfaceIVpnConnection- Parameters:
props-
-
metricTunnelDataIn
The bytes received through the VPN tunnel.Sum over 5 minutes
- Specified by:
metricTunnelDataInin interfaceIVpnConnection
-
metricTunnelDataOut
The bytes sent through the VPN tunnel.Sum over 5 minutes
- Specified by:
metricTunnelDataOutin interfaceIVpnConnection- Parameters:
props-
-
metricTunnelDataOut
The bytes sent through the VPN tunnel.Sum over 5 minutes
- Specified by:
metricTunnelDataOutin interfaceIVpnConnection
-
metricTunnelState
The state of the tunnel. 0 indicates DOWN and 1 indicates UP.Average over 5 minutes
- Specified by:
metricTunnelStatein interfaceIVpnConnection- Parameters:
props-
-
metricTunnelState
The state of the tunnel. 0 indicates DOWN and 1 indicates UP.Average over 5 minutes
- Specified by:
metricTunnelStatein interfaceIVpnConnection
-
getCustomerGatewayAsn
The ASN of the customer gateway.- Specified by:
getCustomerGatewayAsnin interfaceIVpnConnection
-
getCustomerGatewayId
The id of the customer gateway.- Specified by:
getCustomerGatewayIdin interfaceIVpnConnection
-
getCustomerGatewayIp
The ip address of the customer gateway.- Specified by:
getCustomerGatewayIpin interfaceIVpnConnection
-
getVpnId
The id of the VPN connection.- Specified by:
getVpnIdin interfaceIVpnConnection
-