@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.523Z") @Stability(value=Stable) public class VpnConnection extends Resource implements IVpnConnection
Example:
// Across all tunnels in the account/region
Metric allDataOut = VpnConnection.metricAllTunnelDataOut();
// For a specific vpn connection
VpnConnection vpnConnection = vpc.addVpnConnection("Dynamic", VpnConnectionOptions.builder()
.ip("1.2.3.4")
.build());
Metric state = vpnConnection.metricTunnelState();
| Modifier and Type | Class and Description |
|---|---|
static class |
VpnConnection.Builder
A fluent builder for
VpnConnection. |
software.amazon.jsii.JsiiObject.InitializationModeIVpnConnection.Jsii$Default, IVpnConnection.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
VpnConnection(software.constructs.Construct scope,
String id,
VpnConnectionProps props) |
protected |
VpnConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
VpnConnection(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Number |
getCustomerGatewayAsn()
The ASN of the customer gateway.
|
String |
getCustomerGatewayId()
The id of the customer gateway.
|
String |
getCustomerGatewayIp()
The ip address of the customer gateway.
|
String |
getVpnId()
The id of the VPN connection.
|
Metric |
metric(String metricName)
Return the given named metric for this VPNConnection.
|
Metric |
metric(String metricName,
MetricOptions props)
Return the given named metric for this VPNConnection.
|
static Metric |
metricAll(String metricName)
Return the given named metric for all VPN connections in the account/region.
|
static Metric |
metricAll(String metricName,
MetricOptions props)
Return the given named metric for all VPN connections in the account/region.
|
static Metric |
metricAllTunnelDataIn()
Metric for the tunnel data in of all VPN connections in the account/region.
|
static Metric |
metricAllTunnelDataIn(MetricOptions props)
Metric for the tunnel data in of all VPN connections in the account/region.
|
static Metric |
metricAllTunnelDataOut()
Metric for the tunnel data out of all VPN connections.
|
static Metric |
metricAllTunnelDataOut(MetricOptions props)
Metric for the tunnel data out of all VPN connections.
|
static Metric |
metricAllTunnelState()
Metric for the tunnel state of all VPN connections in the account/region.
|
static Metric |
metricAllTunnelState(MetricOptions props)
Metric for the tunnel state of all VPN connections in the account/region.
|
Metric |
metricTunnelDataIn()
The bytes received through the VPN tunnel.
|
Metric |
metricTunnelDataIn(MetricOptions props)
The bytes received through the VPN tunnel.
|
Metric |
metricTunnelDataOut()
The bytes sent through the VPN tunnel.
|
Metric |
metricTunnelDataOut(MetricOptions props)
The bytes sent through the VPN tunnel.
|
Metric |
metricTunnelState()
The state of the tunnel.
|
Metric |
metricTunnelState(MetricOptions props)
The state of the tunnel.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected VpnConnection(software.amazon.jsii.JsiiObjectRef objRef)
protected VpnConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public VpnConnection(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
VpnConnectionProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static Metric metricAll(@NotNull String metricName, @Nullable MetricOptions props)
metricName - This parameter is required.props - @Stability(value=Stable) @NotNull public static Metric metricAll(@NotNull String metricName)
metricName - This parameter is required.@Stability(value=Stable) @NotNull public static Metric metricAllTunnelDataIn(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Stable) @NotNull public static Metric metricAllTunnelDataIn()
Default: sum over 5 minutes
@Stability(value=Stable) @NotNull public static Metric metricAllTunnelDataOut(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Stable) @NotNull public static Metric metricAllTunnelDataOut()
Default: sum over 5 minutes
@Stability(value=Stable) @NotNull public static Metric metricAllTunnelState(@Nullable MetricOptions props)
Default: average over 5 minutes
props - @Stability(value=Stable) @NotNull public static Metric metricAllTunnelState()
Default: average over 5 minutes
@Stability(value=Stable) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
metric in interface IVpnConnectionmetricName - This parameter is required.props - @Stability(value=Stable) @NotNull public Metric metric(@NotNull String metricName)
metric in interface IVpnConnectionmetricName - This parameter is required.@Stability(value=Stable) @NotNull public Metric metricTunnelDataIn(@Nullable MetricOptions props)
Sum over 5 minutes
metricTunnelDataIn in interface IVpnConnectionprops - @Stability(value=Stable) @NotNull public Metric metricTunnelDataIn()
Sum over 5 minutes
metricTunnelDataIn in interface IVpnConnection@Stability(value=Stable) @NotNull public Metric metricTunnelDataOut(@Nullable MetricOptions props)
Sum over 5 minutes
metricTunnelDataOut in interface IVpnConnectionprops - @Stability(value=Stable) @NotNull public Metric metricTunnelDataOut()
Sum over 5 minutes
metricTunnelDataOut in interface IVpnConnection@Stability(value=Stable) @NotNull public Metric metricTunnelState(@Nullable MetricOptions props)
Average over 5 minutes
metricTunnelState in interface IVpnConnectionprops - @Stability(value=Stable) @NotNull public Metric metricTunnelState()
Average over 5 minutes
metricTunnelState in interface IVpnConnection@Stability(value=Stable) @NotNull public Number getCustomerGatewayAsn()
getCustomerGatewayAsn in interface IVpnConnection@Stability(value=Stable) @NotNull public String getCustomerGatewayId()
getCustomerGatewayId in interface IVpnConnection@Stability(value=Stable) @NotNull public String getCustomerGatewayIp()
getCustomerGatewayIp in interface IVpnConnection@Stability(value=Stable) @NotNull public String getVpnId()
getVpnId in interface IVpnConnectionCopyright © 2022. All rights reserved.