@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:47.114Z") @Stability(value=Experimental) public class VpnConnection extends VpnConnectionBase
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
(experimental) A fluent builder for
VpnConnection. |
software.amazon.jsii.JsiiObject.InitializationModeIVpnConnection.Jsii$Default| 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 |
|---|---|
static IVpnConnection |
fromVpnConnectionAttributes(software.constructs.Construct scope,
String id,
VpnConnectionAttributes attrs)
(experimental) Import a VPN connection by supplying all attributes directly.
|
Number |
getCustomerGatewayAsn()
(experimental) The ASN of the customer gateway.
|
String |
getCustomerGatewayId()
(experimental) The id of the customer gateway.
|
String |
getCustomerGatewayIp()
(experimental) The ip address of the customer gateway.
|
String |
getVpnId()
(experimental) The id of the VPN connection.
|
static Metric |
metricAll(String metricName)
(experimental) Return the given named metric for all VPN connections in the account/region.
|
static Metric |
metricAll(String metricName,
MetricOptions props)
(experimental) Return the given named metric for all VPN connections in the account/region.
|
static Metric |
metricAllTunnelDataIn()
(experimental) Metric for the tunnel data in of all VPN connections in the account/region.
|
static Metric |
metricAllTunnelDataIn(MetricOptions props)
(experimental) Metric for the tunnel data in of all VPN connections in the account/region.
|
static Metric |
metricAllTunnelDataOut()
(experimental) Metric for the tunnel data out of all VPN connections.
|
static Metric |
metricAllTunnelDataOut(MetricOptions props)
(experimental) Metric for the tunnel data out of all VPN connections.
|
static Metric |
metricAllTunnelState()
(experimental) Metric for the tunnel state of all VPN connections in the account/region.
|
static Metric |
metricAllTunnelState(MetricOptions props)
(experimental) Metric for the tunnel state of all VPN connections in the account/region.
|
metric, metric, metricTunnelDataIn, metricTunnelDataIn, metricTunnelDataOut, metricTunnelDataOut, metricTunnelState, metricTunnelStateapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected VpnConnection(software.amazon.jsii.JsiiObjectRef objRef)
protected VpnConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
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=Experimental) @NotNull public static IVpnConnection fromVpnConnectionAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull VpnConnectionAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental) @NotNull public static Metric metricAll(@NotNull String metricName, @Nullable MetricOptions props)
metricName - This parameter is required.props - @Stability(value=Experimental) @NotNull public static Metric metricAll(@NotNull String metricName)
metricName - This parameter is required.@Stability(value=Experimental) @NotNull public static Metric metricAllTunnelDataIn(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public static Metric metricAllTunnelDataIn()
Default: sum over 5 minutes
@Stability(value=Experimental) @NotNull public static Metric metricAllTunnelDataOut(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public static Metric metricAllTunnelDataOut()
Default: sum over 5 minutes
@Stability(value=Experimental) @NotNull public static Metric metricAllTunnelState(@Nullable MetricOptions props)
Default: average over 5 minutes
props - @Stability(value=Experimental) @NotNull public static Metric metricAllTunnelState()
Default: average over 5 minutes
@Stability(value=Experimental) @NotNull public Number getCustomerGatewayAsn()
getCustomerGatewayAsn in interface IVpnConnectiongetCustomerGatewayAsn in class VpnConnectionBase@Stability(value=Experimental) @NotNull public String getCustomerGatewayId()
getCustomerGatewayId in interface IVpnConnectiongetCustomerGatewayId in class VpnConnectionBase@Stability(value=Experimental) @NotNull public String getCustomerGatewayIp()
getCustomerGatewayIp in interface IVpnConnectiongetCustomerGatewayIp in class VpnConnectionBase@Stability(value=Experimental) @NotNull public String getVpnId()
getVpnId in interface IVpnConnectiongetVpnId in class VpnConnectionBaseCopyright © 2022. All rights reserved.