@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-20T22:19:59.623Z") 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 . |
IVpnConnection.Jsii$Default, IVpnConnection.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
VpnConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
VpnConnection(software.amazon.jsii.JsiiObjectRef objRef) |
|
VpnConnection(software.constructs.Construct scope,
java.lang.String id,
VpnConnectionProps props) |
Modifier and Type | Method and Description |
---|---|
java.lang.Number |
getCustomerGatewayAsn()
The ASN of the customer gateway.
|
java.lang.String |
getCustomerGatewayId()
The id of the customer gateway.
|
java.lang.String |
getCustomerGatewayIp()
The ip address of the customer gateway.
|
java.lang.String |
getVpnId()
The id of the VPN connection.
|
Metric |
metric(java.lang.String metricName)
Return the given named metric for this VPNConnection.
|
Metric |
metric(java.lang.String metricName,
MetricOptions props)
Return the given named metric for this VPNConnection.
|
static Metric |
metricAll(java.lang.String metricName)
Return the given named metric for all VPN connections in the account/region.
|
static Metric |
metricAll(java.lang.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, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected VpnConnection(software.amazon.jsii.JsiiObjectRef objRef)
protected VpnConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public VpnConnection(software.constructs.Construct scope, java.lang.String id, VpnConnectionProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static Metric metricAll(java.lang.String metricName, MetricOptions props)
metricName
- This parameter is required.props
- public static Metric metricAll(java.lang.String metricName)
metricName
- This parameter is required.public static Metric metricAllTunnelDataIn(MetricOptions props)
Default: sum over 5 minutes
props
- public static Metric metricAllTunnelDataIn()
Default: sum over 5 minutes
public static Metric metricAllTunnelDataOut(MetricOptions props)
Default: sum over 5 minutes
props
- public static Metric metricAllTunnelDataOut()
Default: sum over 5 minutes
public static Metric metricAllTunnelState(MetricOptions props)
Default: average over 5 minutes
props
- public static Metric metricAllTunnelState()
Default: average over 5 minutes
public Metric metric(java.lang.String metricName, MetricOptions props)
metric
in interface IVpnConnection
metricName
- This parameter is required.props
- public Metric metric(java.lang.String metricName)
metric
in interface IVpnConnection
metricName
- This parameter is required.public Metric metricTunnelDataIn(MetricOptions props)
Sum over 5 minutes
metricTunnelDataIn
in interface IVpnConnection
props
- public Metric metricTunnelDataIn()
Sum over 5 minutes
metricTunnelDataIn
in interface IVpnConnection
public Metric metricTunnelDataOut(MetricOptions props)
Sum over 5 minutes
metricTunnelDataOut
in interface IVpnConnection
props
- public Metric metricTunnelDataOut()
Sum over 5 minutes
metricTunnelDataOut
in interface IVpnConnection
public Metric metricTunnelState(MetricOptions props)
Average over 5 minutes
metricTunnelState
in interface IVpnConnection
props
- public Metric metricTunnelState()
Average over 5 minutes
metricTunnelState
in interface IVpnConnection
public java.lang.Number getCustomerGatewayAsn()
getCustomerGatewayAsn
in interface IVpnConnection
public java.lang.String getCustomerGatewayId()
getCustomerGatewayId
in interface IVpnConnection
public java.lang.String getCustomerGatewayIp()
getCustomerGatewayIp
in interface IVpnConnection
public java.lang.String getVpnId()
getVpnId
in interface IVpnConnection