Interface IVpnConnection

All Superinterfaces:
software.constructs.IConstruct, software.constructs.IDependable, IEnvironmentAware, IResource, IVPNConnectionRef, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IVpnConnection.Jsii$Default
All Known Implementing Classes:
IVpnConnection.Jsii$Proxy, VpnConnection, VpnConnectionBase

@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)", date="2025-11-20T23:37:19.290Z") @Stability(Stable) public interface IVpnConnection extends software.amazon.jsii.JsiiSerializable, IResource, IVPNConnectionRef
  • Method Details

    • getCustomerGatewayAsn

      @Stability(Stable) @NotNull Number getCustomerGatewayAsn()
      The ASN of the customer gateway.
    • getCustomerGatewayId

      @Stability(Stable) @NotNull String getCustomerGatewayId()
      The id of the customer gateway.
    • getCustomerGatewayIp

      @Stability(Stable) @NotNull String getCustomerGatewayIp()
      The ip address of the customer gateway.
    • getVpnId

      @Stability(Stable) @NotNull String getVpnId()
      The id of the VPN connection.
    • metric

      @Stability(Stable) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
      Return the given named metric for this VPNConnection.

      Parameters:
      metricName - This parameter is required.
      props -
    • metric

      @Stability(Stable) @NotNull Metric metric(@NotNull String metricName)
      Return the given named metric for this VPNConnection.

      Parameters:
      metricName - This parameter is required.
    • metricTunnelDataIn

      @Stability(Stable) @NotNull Metric metricTunnelDataIn(@Nullable MetricOptions props)
      The bytes received through the VPN tunnel.

      Sum over 5 minutes

      Parameters:
      props -
    • metricTunnelDataIn

      @Stability(Stable) @NotNull Metric metricTunnelDataIn()
      The bytes received through the VPN tunnel.

      Sum over 5 minutes

    • metricTunnelDataOut

      @Stability(Stable) @NotNull Metric metricTunnelDataOut(@Nullable MetricOptions props)
      The bytes sent through the VPN tunnel.

      Sum over 5 minutes

      Parameters:
      props -
    • metricTunnelDataOut

      @Stability(Stable) @NotNull Metric metricTunnelDataOut()
      The bytes sent through the VPN tunnel.

      Sum over 5 minutes

    • metricTunnelState

      @Stability(Stable) @NotNull Metric metricTunnelState(@Nullable MetricOptions props)
      The state of the tunnel. 0 indicates DOWN and 1 indicates UP.

      Average over 5 minutes

      Parameters:
      props -
    • metricTunnelState

      @Stability(Stable) @NotNull Metric metricTunnelState()
      The state of the tunnel. 0 indicates DOWN and 1 indicates UP.

      Average over 5 minutes

    • getNode

      @Stability(Stable) @NotNull software.constructs.Node getNode()
      The tree node.
      Specified by:
      getNode in interface software.constructs.IConstruct
    • getEnv

      @Stability(Stable) @NotNull ResourceEnvironment getEnv()
      The environment this resource belongs to.

      For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.

      For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.

      Specified by:
      getEnv in interface IEnvironmentAware