@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:19.817Z") @Stability(value=Experimental) public class NetworkLoadBalancer extends BaseLoadBalancer implements INetworkLoadBalancer
| Modifier and Type | Class and Description |
|---|---|
static class |
NetworkLoadBalancer.Builder
(experimental) A fluent builder for
NetworkLoadBalancer. |
software.amazon.jsii.JsiiObject.InitializationModeINetworkLoadBalancer.Jsii$Default, INetworkLoadBalancer.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
NetworkLoadBalancer(software.constructs.Construct scope,
String id,
NetworkLoadBalancerProps props) |
protected |
NetworkLoadBalancer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
NetworkLoadBalancer(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
NetworkListener |
addListener(String id,
BaseNetworkListenerProps props)
(experimental) Add a listener to this load balancer.
|
static INetworkLoadBalancer |
fromLookup(software.constructs.Construct scope,
String id,
NetworkLoadBalancerLookupOptions options)
(experimental) Looks up the network load balancer.
|
static INetworkLoadBalancer |
fromNetworkLoadBalancerAttributes(software.constructs.Construct scope,
String id,
NetworkLoadBalancerAttributes attrs) |
void |
logAccessLogs(IBucket bucket)
(experimental) Enable access logging for this load balancer.
|
void |
logAccessLogs(IBucket bucket,
String prefix)
(experimental) Enable access logging for this load balancer.
|
Metric |
metric(String metricName)
(experimental) Return the given named metric for this Network Load Balancer.
|
Metric |
metric(String metricName,
MetricOptions props)
(experimental) Return the given named metric for this Network Load Balancer.
|
Metric |
metricActiveFlowCount()
(experimental) The total number of concurrent TCP flows (or connections) from clients to targets.
|
Metric |
metricActiveFlowCount(MetricOptions props)
(experimental) The total number of concurrent TCP flows (or connections) from clients to targets.
|
Metric |
metricConsumedLCUs()
(experimental) The number of load balancer capacity units (LCU) used by your load balancer.
|
Metric |
metricConsumedLCUs(MetricOptions props)
(experimental) The number of load balancer capacity units (LCU) used by your load balancer.
|
Metric |
metricNewFlowCount()
(experimental) The total number of new TCP flows (or connections) established from clients to targets in the time period.
|
Metric |
metricNewFlowCount(MetricOptions props)
(experimental) The total number of new TCP flows (or connections) established from clients to targets in the time period.
|
Metric |
metricProcessedBytes()
(experimental) The total number of bytes processed by the load balancer, including TCP/IP headers.
|
Metric |
metricProcessedBytes(MetricOptions props)
(experimental) The total number of bytes processed by the load balancer, including TCP/IP headers.
|
Metric |
metricTcpClientResetCount()
(experimental) The total number of reset (RST) packets sent from a client to a target.
|
Metric |
metricTcpClientResetCount(MetricOptions props)
(experimental) The total number of reset (RST) packets sent from a client to a target.
|
Metric |
metricTcpElbResetCount()
(experimental) The total number of reset (RST) packets generated by the load balancer.
|
Metric |
metricTcpElbResetCount(MetricOptions props)
(experimental) The total number of reset (RST) packets generated by the load balancer.
|
Metric |
metricTcpTargetResetCount()
(experimental) The total number of reset (RST) packets sent from a target to a client.
|
Metric |
metricTcpTargetResetCount(MetricOptions props)
(experimental) The total number of reset (RST) packets sent from a target to a client.
|
getLoadBalancerArn, getLoadBalancerCanonicalHostedZoneId, getLoadBalancerDnsName, getLoadBalancerFullName, getLoadBalancerName, getLoadBalancerSecurityGroups, getVpc, removeAttribute, setAttribute, setAttributeapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVpcgetLoadBalancerCanonicalHostedZoneId, getLoadBalancerDnsNamegetLoadBalancerArnprotected NetworkLoadBalancer(software.amazon.jsii.JsiiObjectRef objRef)
protected NetworkLoadBalancer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public NetworkLoadBalancer(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
NetworkLoadBalancerProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static INetworkLoadBalancer fromLookup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull NetworkLoadBalancerLookupOptions options)
scope - This parameter is required.id - This parameter is required.options - This parameter is required.@Stability(value=Experimental) @NotNull public static INetworkLoadBalancer fromNetworkLoadBalancerAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull NetworkLoadBalancerAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental) @NotNull public NetworkListener addListener(@NotNull String id, @NotNull BaseNetworkListenerProps props)
addListener in interface INetworkLoadBalancerid - This parameter is required.props - This parameter is required.@Stability(value=Experimental)
public void logAccessLogs(@NotNull
IBucket bucket,
@Nullable
String prefix)
A region must be specified on the stack containing the load balancer; you cannot enable logging on environment-agnostic stacks. See https://docs.aws.amazon.com/cdk/latest/guide/environments.html
This is extending the BaseLoadBalancer.logAccessLogs method to match the bucket permissions described at https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-access-logs.html#access-logging-bucket-requirements
logAccessLogs in class BaseLoadBalancerbucket - This parameter is required.prefix - @Stability(value=Experimental)
public void logAccessLogs(@NotNull
IBucket bucket)
A region must be specified on the stack containing the load balancer; you cannot enable logging on environment-agnostic stacks. See https://docs.aws.amazon.com/cdk/latest/guide/environments.html
This is extending the BaseLoadBalancer.logAccessLogs method to match the bucket permissions described at https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-access-logs.html#access-logging-bucket-requirements
logAccessLogs in class BaseLoadBalancerbucket - This parameter is required.@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
Default: Average over 5 minutes
metricName - This parameter is required.props - @Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName)
Default: Average over 5 minutes
metricName - This parameter is required.@Stability(value=Experimental) @NotNull public Metric metricActiveFlowCount(@Nullable MetricOptions props)
This metric includes connections in the SYN_SENT and ESTABLISHED states. TCP connections are not terminated at the load balancer, so a client opening a TCP connection to a target counts as a single flow.
Default: Average over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricActiveFlowCount()
This metric includes connections in the SYN_SENT and ESTABLISHED states. TCP connections are not terminated at the load balancer, so a client opening a TCP connection to a target counts as a single flow.
Default: Average over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricConsumedLCUs(@Nullable MetricOptions props)
Default: Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricConsumedLCUs()
Default: Sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricNewFlowCount(@Nullable MetricOptions props)
Default: Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricNewFlowCount()
Default: Sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricProcessedBytes(@Nullable MetricOptions props)
Default: Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricProcessedBytes()
Default: Sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricTcpClientResetCount(@Nullable MetricOptions props)
These resets are generated by the client and forwarded by the load balancer.
Default: Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricTcpClientResetCount()
These resets are generated by the client and forwarded by the load balancer.
Default: Sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricTcpElbResetCount(@Nullable MetricOptions props)
Default: Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricTcpElbResetCount()
Default: Sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricTcpTargetResetCount(@Nullable MetricOptions props)
These resets are generated by the target and forwarded by the load balancer.
Default: Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricTcpTargetResetCount()
These resets are generated by the target and forwarded by the load balancer.
Default: Sum over 5 minutes
Copyright © 2021. All rights reserved.