@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.127Z") @Stability(value=Stable) public class NetworkLoadBalancer extends BaseLoadBalancer implements INetworkLoadBalancer
Example:
import software.amazon.awscdk.services.apigatewayv2.integrations.alpha.HttpNlbIntegration;
Vpc vpc = new Vpc(this, "VPC");
NetworkLoadBalancer lb = NetworkLoadBalancer.Builder.create(this, "lb").vpc(vpc).build();
NetworkListener listener = lb.addListener("listener", BaseNetworkListenerProps.builder().port(80).build());
listener.addTargets("target", AddNetworkTargetsProps.builder()
.port(80)
.build());
HttpApi httpEndpoint = HttpApi.Builder.create(this, "HttpProxyPrivateApi")
.defaultIntegration(new HttpNlbIntegration("DefaultIntegration", listener))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
NetworkLoadBalancer.Builder
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)
Add a listener to this load balancer.
|
static INetworkLoadBalancer |
fromLookup(software.constructs.Construct scope,
String id,
NetworkLoadBalancerLookupOptions options)
Looks up the network load balancer.
|
static INetworkLoadBalancer |
fromNetworkLoadBalancerAttributes(software.constructs.Construct scope,
String id,
NetworkLoadBalancerAttributes attrs) |
Metric |
metric(String metricName)
Return the given named metric for this Network Load Balancer.
|
Metric |
metric(String metricName,
MetricOptions props)
Return the given named metric for this Network Load Balancer.
|
Metric |
metricActiveFlowCount()
The total number of concurrent TCP flows (or connections) from clients to targets.
|
Metric |
metricActiveFlowCount(MetricOptions props)
The total number of concurrent TCP flows (or connections) from clients to targets.
|
Metric |
metricConsumedLCUs()
The number of load balancer capacity units (LCU) used by your load balancer.
|
Metric |
metricConsumedLCUs(MetricOptions props)
The number of load balancer capacity units (LCU) used by your load balancer.
|
Metric |
metricNewFlowCount()
The total number of new TCP flows (or connections) established from clients to targets in the time period.
|
Metric |
metricNewFlowCount(MetricOptions props)
The total number of new TCP flows (or connections) established from clients to targets in the time period.
|
Metric |
metricProcessedBytes()
The total number of bytes processed by the load balancer, including TCP/IP headers.
|
Metric |
metricProcessedBytes(MetricOptions props)
The total number of bytes processed by the load balancer, including TCP/IP headers.
|
Metric |
metricTcpClientResetCount()
The total number of reset (RST) packets sent from a client to a target.
|
Metric |
metricTcpClientResetCount(MetricOptions props)
The total number of reset (RST) packets sent from a client to a target.
|
Metric |
metricTcpElbResetCount()
The total number of reset (RST) packets generated by the load balancer.
|
Metric |
metricTcpElbResetCount(MetricOptions props)
The total number of reset (RST) packets generated by the load balancer.
|
Metric |
metricTcpTargetResetCount()
The total number of reset (RST) packets sent from a target to a client.
|
Metric |
metricTcpTargetResetCount(MetricOptions props)
The total number of reset (RST) packets sent from a target to a client.
|
getLoadBalancerArn, getLoadBalancerCanonicalHostedZoneId, getLoadBalancerDnsName, getLoadBalancerFullName, getLoadBalancerName, getLoadBalancerSecurityGroups, getVpc, logAccessLogs, logAccessLogs, removeAttribute, setAttribute, setAttribute, validateLoadBalancerapplyRemovalPolicy, 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, waitgetVpcgetLoadBalancerCanonicalHostedZoneId, getLoadBalancerDnsNameapplyRemovalPolicy, getEnv, getStackgetLoadBalancerArnprotected NetworkLoadBalancer(software.amazon.jsii.JsiiObjectRef objRef)
protected NetworkLoadBalancer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
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=Stable) @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=Stable) @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=Stable) @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=Stable) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
Default: Average over 5 minutes
metricName - This parameter is required.props - @Stability(value=Stable) @NotNull public Metric metric(@NotNull String metricName)
Default: Average over 5 minutes
metricName - This parameter is required.@Stability(value=Stable) @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=Stable) @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=Stable) @NotNull public Metric metricConsumedLCUs(@Nullable MetricOptions props)
Default: Sum over 5 minutes
props - @Stability(value=Stable) @NotNull public Metric metricConsumedLCUs()
Default: Sum over 5 minutes
@Stability(value=Stable) @NotNull public Metric metricNewFlowCount(@Nullable MetricOptions props)
Default: Sum over 5 minutes
props - @Stability(value=Stable) @NotNull public Metric metricNewFlowCount()
Default: Sum over 5 minutes
@Stability(value=Stable) @NotNull public Metric metricProcessedBytes(@Nullable MetricOptions props)
Default: Sum over 5 minutes
props - @Stability(value=Stable) @NotNull public Metric metricProcessedBytes()
Default: Sum over 5 minutes
@Stability(value=Stable) @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=Stable) @NotNull public Metric metricTcpClientResetCount()
These resets are generated by the client and forwarded by the load balancer.
Default: Sum over 5 minutes
@Stability(value=Stable) @NotNull public Metric metricTcpElbResetCount(@Nullable MetricOptions props)
Default: Sum over 5 minutes
props - @Stability(value=Stable) @NotNull public Metric metricTcpElbResetCount()
Default: Sum over 5 minutes
@Stability(value=Stable) @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=Stable) @NotNull public Metric metricTcpTargetResetCount()
These resets are generated by the target and forwarded by the load balancer.
Default: Sum over 5 minutes
Copyright © 2022. All rights reserved.