Class VpnConnectionBase
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.ec2.VpnConnectionBase
- All Implemented Interfaces:
IResource,IVpnConnection,IVPNConnectionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
VpnConnection
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:38.370Z")
@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.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.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.A reference to a VPNConnection resource.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.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, 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.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.awscdk.services.ec2.IVpnConnection
getNodeMethods 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
-
getVpnConnectionRef
A reference to a VPNConnection resource.- Specified by:
getVpnConnectionRefin interfaceIVPNConnectionRef
-
getVpnId
The id of the VPN connection.- Specified by:
getVpnIdin interfaceIVpnConnection
-