Class ApplicationLoadBalancer
- All Implemented Interfaces:
IResource
,IConnectable
,IApplicationLoadBalancer
,ILoadBalancerV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
Example:
import software.amazon.awscdk.services.autoscaling.AutoScalingGroup; AutoScalingGroup asg; Vpc vpc; // Create the load balancer in a VPC. 'internetFacing' is 'false' // by default, which creates an internal load balancer. ApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, "LB") .vpc(vpc) .internetFacing(true) .build(); // Add a listener and open up the load balancer's security group // to the world. ApplicationListener listener = lb.addListener("Listener", BaseApplicationListenerProps.builder() .port(80) // 'open: true' is the default, you can leave it out if you want. Set it // to 'false' and use `listener.connections` if you want to be selective // about who can access the load balancer. .open(true) .build()); // Create an AutoScaling group and add it as a load balancing // target to the listener. listener.addTargets("ApplicationFleet", AddApplicationTargetsProps.builder() .port(8080) .targets(List.of(asg)) .build());
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forApplicationLoadBalancer
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationLoadBalancer
IApplicationLoadBalancer.Jsii$Default, IApplicationLoadBalancer.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
ApplicationLoadBalancer
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ApplicationLoadBalancer
(software.amazon.jsii.JsiiObjectRef objRef) ApplicationLoadBalancer
(software.constructs.Construct scope, String id, ApplicationLoadBalancerProps props) -
Method Summary
Modifier and TypeMethodDescriptionaddListener
(String id, BaseApplicationListenerProps props) Add a new listener to this load balancer.Add a redirection listener to this load balancer.Add a redirection listener to this load balancer.void
addSecurityGroup
(ISecurityGroup securityGroup) Add a security group to this load balancer.static IApplicationLoadBalancer
fromApplicationLoadBalancerAttributes
(software.constructs.Construct scope, String id, ApplicationLoadBalancerAttributes attrs) Import an existing Application Load Balancer.static IApplicationLoadBalancer
fromLookup
(software.constructs.Construct scope, String id, ApplicationLoadBalancerLookupOptions options) Look up an application load balancer.The network connections associated with this resource.The IP Address Type for this load balancer.A list of listeners that have been added to the load balancer.All metrics available for this load balancer.void
logAccessLogs
(IBucket bucket) Enable access logging for this load balancer.void
logAccessLogs
(IBucket bucket, String prefix) Enable access logging for this load balancer.void
logConnectionLogs
(IBucket bucket) Enable connection logging for this load balancer.void
logConnectionLogs
(IBucket bucket, String prefix) Enable connection logging for this load balancer.Deprecated.metric
(String metricName, MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.custom
insteadDeprecated.UseApplicationLoadBalancer.metrics.activeConnectionCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.activeConnectionCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.clientTlsNegotiationErrorCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.clientTlsNegotiationErrorCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.consumedLCUs
insteadmetricConsumedLCUs
(MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.consumedLCUs
insteadDeprecated.UseApplicationLoadBalancer.metrics.elbAuthError
insteadmetricElbAuthError
(MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.elbAuthError
insteadDeprecated.UseApplicationLoadBalancer.metrics.elbAuthFailure
insteadDeprecated.UseApplicationLoadBalancer.metrics.elbAuthFailure
insteadDeprecated.UseApplicationLoadBalancer.metrics.elbAuthLatency
insteadDeprecated.UseApplicationLoadBalancer.metrics.elbAuthLatency
insteadDeprecated.UseApplicationLoadBalancer.metrics.elbAuthSuccess
insteadDeprecated.UseApplicationLoadBalancer.metrics.elbAuthSuccess
insteadmetricHttpCodeElb
(HttpCodeElb code) Deprecated.UseApplicationLoadBalancer.metrics.httpCodeElb
insteadmetricHttpCodeElb
(HttpCodeElb code, MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.httpCodeElb
insteadDeprecated.UseApplicationLoadBalancer.metrics.httpCodeTarget
insteadmetricHttpCodeTarget
(HttpCodeTarget code, MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.httpCodeTarget
insteadDeprecated.UseApplicationLoadBalancer.metrics.httpFixedResponseCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.httpFixedResponseCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.httpRedirectCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.httpRedirectCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.httpRedirectUrlLimitExceededCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.httpRedirectUrlLimitExceededCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.ipv6ProcessedBytes
insteadDeprecated.UseApplicationLoadBalancer.metrics.ipv6ProcessedBytes
insteadDeprecated.UseApplicationLoadBalancer.metrics.ipv6RequestCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.ipv6RequestCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.newConnectionCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.newConnectionCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.processedBytes
insteadDeprecated.UseApplicationLoadBalancer.metrics.processedBytes
insteadDeprecated.UseApplicationLoadBalancer.metrics.rejectedConnectionCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.rejectedConnectionCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.requestCount
insteadmetricRequestCount
(MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.requestCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.ruleEvaluations
insteadDeprecated.UseApplicationLoadBalancer.metrics.ruleEvaluations
insteadDeprecated.UseApplicationLoadBalancer.metrics.targetConnectionErrorCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.targetConnectionErrorCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.targetResponseTime
insteadDeprecated.UseApplicationLoadBalancer.metrics.targetResponseTime
insteadDeprecated.UseApplicationLoadBalancer.metrics.targetTLSNegotiationErrorCount
insteadDeprecated.UseApplicationLoadBalancer.metrics.targetTLSNegotiationErrorCount
insteadMethods inherited from class software.amazon.awscdk.services.elasticloadbalancingv2.BaseLoadBalancer
getLoadBalancerArn, getLoadBalancerCanonicalHostedZoneId, getLoadBalancerDnsName, getLoadBalancerFullName, getLoadBalancerName, getLoadBalancerSecurityGroups, getVpc, removeAttribute, resourcePolicyPrincipal, setAttribute, setAttribute, validateLoadBalancer
Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationLoadBalancer
getLoadBalancerArn, getVpc
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.ILoadBalancerV2
getLoadBalancerCanonicalHostedZoneId, getLoadBalancerDnsName
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ApplicationLoadBalancer
protected ApplicationLoadBalancer(software.amazon.jsii.JsiiObjectRef objRef) -
ApplicationLoadBalancer
protected ApplicationLoadBalancer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ApplicationLoadBalancer
@Stability(Stable) public ApplicationLoadBalancer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ApplicationLoadBalancerProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
fromApplicationLoadBalancerAttributes
@Stability(Stable) @NotNull public static IApplicationLoadBalancer fromApplicationLoadBalancerAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ApplicationLoadBalancerAttributes attrs) Import an existing Application Load Balancer.- Parameters:
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.
-
fromLookup
@Stability(Stable) @NotNull public static IApplicationLoadBalancer fromLookup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ApplicationLoadBalancerLookupOptions options) Look up an application load balancer.- Parameters:
scope
- This parameter is required.id
- This parameter is required.options
- This parameter is required.
-
addListener
@Stability(Stable) @NotNull public ApplicationListener addListener(@NotNull String id, @NotNull BaseApplicationListenerProps props) Add a new listener to this load balancer.- Specified by:
addListener
in interfaceIApplicationLoadBalancer
- Parameters:
id
- This parameter is required.props
- This parameter is required.
-
addRedirect
@Stability(Stable) @NotNull public ApplicationListener addRedirect(@Nullable ApplicationLoadBalancerRedirectConfig props) Add a redirection listener to this load balancer.- Parameters:
props
-
-
addRedirect
Add a redirection listener to this load balancer. -
addSecurityGroup
Add a security group to this load balancer.- Parameters:
securityGroup
- This parameter is required.
-
logAccessLogs
Enable access logging for this load balancer.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
- Overrides:
logAccessLogs
in classBaseLoadBalancer
- Parameters:
bucket
- This parameter is required.prefix
-
-
logAccessLogs
Enable access logging for this load balancer.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
- Overrides:
logAccessLogs
in classBaseLoadBalancer
- Parameters:
bucket
- This parameter is required.
-
logConnectionLogs
Enable connection logging for this load balancer.A region must be specified on the stack containing the load balancer; you cannot enable logging on environment-agnostic stacks.
- Parameters:
bucket
- This parameter is required.prefix
-- See Also:
-
logConnectionLogs
Enable connection logging for this load balancer.A region must be specified on the stack containing the load balancer; you cannot enable logging on environment-agnostic stacks.
- Parameters:
bucket
- This parameter is required.- See Also:
-
metric
@Stability(Deprecated) @Deprecated @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.custom
instead(deprecated) Return the given named metric for this Application Load Balancer.Default: Average over 5 minutes
- Parameters:
metricName
- This parameter is required.props
-
-
metric
Deprecated.UseApplicationLoadBalancer.metrics.custom
instead(deprecated) Return the given named metric for this Application Load Balancer.Default: Average over 5 minutes
- Parameters:
metricName
- This parameter is required.
-
metricActiveConnectionCount
@Stability(Deprecated) @Deprecated @NotNull public Metric metricActiveConnectionCount(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.activeConnectionCount
instead(deprecated) The total number of concurrent TCP connections active from clients to the load balancer and from the load balancer to targets.Default: Sum over 5 minutes
- Parameters:
props
-
-
metricActiveConnectionCount
Deprecated.UseApplicationLoadBalancer.metrics.activeConnectionCount
instead(deprecated) The total number of concurrent TCP connections active from clients to the load balancer and from the load balancer to targets.Default: Sum over 5 minutes
-
metricClientTlsNegotiationErrorCount
@Stability(Deprecated) @Deprecated @NotNull public Metric metricClientTlsNegotiationErrorCount(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.clientTlsNegotiationErrorCount
instead(deprecated) The number of TLS connections initiated by the client that did not establish a session with the load balancer.Possible causes include a mismatch of ciphers or protocols.
Default: Sum over 5 minutes
- Parameters:
props
-
-
metricClientTlsNegotiationErrorCount
Deprecated.UseApplicationLoadBalancer.metrics.clientTlsNegotiationErrorCount
instead(deprecated) The number of TLS connections initiated by the client that did not establish a session with the load balancer.Possible causes include a mismatch of ciphers or protocols.
Default: Sum over 5 minutes
-
metricConsumedLCUs
@Stability(Deprecated) @Deprecated @NotNull public Metric metricConsumedLCUs(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.consumedLCUs
instead(deprecated) The number of load balancer capacity units (LCU) used by your load balancer.Default: Sum over 5 minutes
- Parameters:
props
-
-
metricConsumedLCUs
Deprecated.UseApplicationLoadBalancer.metrics.consumedLCUs
instead(deprecated) The number of load balancer capacity units (LCU) used by your load balancer.Default: Sum over 5 minutes
-
metricElbAuthError
@Stability(Deprecated) @Deprecated @NotNull public Metric metricElbAuthError(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.elbAuthError
instead(deprecated) The number of user authentications that could not be completed.Because an authenticate action was misconfigured, the load balancer couldn't establish a connection with the IdP, or the load balancer couldn't complete the authentication flow due to an internal error.
Default: Sum over 5 minutes
- Parameters:
props
-
-
metricElbAuthError
Deprecated.UseApplicationLoadBalancer.metrics.elbAuthError
instead(deprecated) The number of user authentications that could not be completed.Because an authenticate action was misconfigured, the load balancer couldn't establish a connection with the IdP, or the load balancer couldn't complete the authentication flow due to an internal error.
Default: Sum over 5 minutes
-
metricElbAuthFailure
@Stability(Deprecated) @Deprecated @NotNull public Metric metricElbAuthFailure(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.elbAuthFailure
instead(deprecated) The number of user authentications that could not be completed because the IdP denied access to the user or an authorization code was used more than once.Default: Sum over 5 minutes
- Parameters:
props
-
-
metricElbAuthFailure
Deprecated.UseApplicationLoadBalancer.metrics.elbAuthFailure
instead(deprecated) The number of user authentications that could not be completed because the IdP denied access to the user or an authorization code was used more than once.Default: Sum over 5 minutes
-
metricElbAuthLatency
@Stability(Deprecated) @Deprecated @NotNull public Metric metricElbAuthLatency(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.elbAuthLatency
instead(deprecated) The time elapsed, in milliseconds, to query the IdP for the ID token and user info.If one or more of these operations fail, this is the time to failure.
Default: Average over 5 minutes
- Parameters:
props
-
-
metricElbAuthLatency
Deprecated.UseApplicationLoadBalancer.metrics.elbAuthLatency
instead(deprecated) The time elapsed, in milliseconds, to query the IdP for the ID token and user info.If one or more of these operations fail, this is the time to failure.
Default: Average over 5 minutes
-
metricElbAuthSuccess
@Stability(Deprecated) @Deprecated @NotNull public Metric metricElbAuthSuccess(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.elbAuthSuccess
instead(deprecated) The number of authenticate actions that were successful.This metric is incremented at the end of the authentication workflow, after the load balancer has retrieved the user claims from the IdP.
Default: Sum over 5 minutes
- Parameters:
props
-
-
metricElbAuthSuccess
Deprecated.UseApplicationLoadBalancer.metrics.elbAuthSuccess
instead(deprecated) The number of authenticate actions that were successful.This metric is incremented at the end of the authentication workflow, after the load balancer has retrieved the user claims from the IdP.
Default: Sum over 5 minutes
-
metricHttpCodeElb
@Stability(Deprecated) @Deprecated @NotNull public Metric metricHttpCodeElb(@NotNull HttpCodeElb code, @Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.httpCodeElb
instead(deprecated) The number of HTTP 3xx/4xx/5xx codes that originate from the load balancer.This does not include any response codes generated by the targets.
Default: Sum over 5 minutes
- Parameters:
code
- This parameter is required.props
-
-
metricHttpCodeElb
@Stability(Deprecated) @Deprecated @NotNull public Metric metricHttpCodeElb(@NotNull HttpCodeElb code) Deprecated.UseApplicationLoadBalancer.metrics.httpCodeElb
instead(deprecated) The number of HTTP 3xx/4xx/5xx codes that originate from the load balancer.This does not include any response codes generated by the targets.
Default: Sum over 5 minutes
- Parameters:
code
- This parameter is required.
-
metricHttpCodeTarget
@Stability(Deprecated) @Deprecated @NotNull public Metric metricHttpCodeTarget(@NotNull HttpCodeTarget code, @Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.httpCodeTarget
instead(deprecated) The number of HTTP 2xx/3xx/4xx/5xx response codes generated by all targets in the load balancer.This does not include any response codes generated by the load balancer.
Default: Sum over 5 minutes
- Parameters:
code
- This parameter is required.props
-
-
metricHttpCodeTarget
@Stability(Deprecated) @Deprecated @NotNull public Metric metricHttpCodeTarget(@NotNull HttpCodeTarget code) Deprecated.UseApplicationLoadBalancer.metrics.httpCodeTarget
instead(deprecated) The number of HTTP 2xx/3xx/4xx/5xx response codes generated by all targets in the load balancer.This does not include any response codes generated by the load balancer.
Default: Sum over 5 minutes
- Parameters:
code
- This parameter is required.
-
metricHttpFixedResponseCount
@Stability(Deprecated) @Deprecated @NotNull public Metric metricHttpFixedResponseCount(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.httpFixedResponseCount
instead(deprecated) The number of fixed-response actions that were successful.Default: Sum over 5 minutes
- Parameters:
props
-
-
metricHttpFixedResponseCount
Deprecated.UseApplicationLoadBalancer.metrics.httpFixedResponseCount
instead(deprecated) The number of fixed-response actions that were successful.Default: Sum over 5 minutes
-
metricHttpRedirectCount
@Stability(Deprecated) @Deprecated @NotNull public Metric metricHttpRedirectCount(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.httpRedirectCount
instead(deprecated) The number of redirect actions that were successful.Default: Sum over 5 minutes
- Parameters:
props
-
-
metricHttpRedirectCount
Deprecated.UseApplicationLoadBalancer.metrics.httpRedirectCount
instead(deprecated) The number of redirect actions that were successful.Default: Sum over 5 minutes
-
metricHttpRedirectUrlLimitExceededCount
@Stability(Deprecated) @Deprecated @NotNull public Metric metricHttpRedirectUrlLimitExceededCount(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.httpRedirectUrlLimitExceededCount
instead(deprecated) The number of redirect actions that couldn't be completed because the URL in the response location header is larger than 8K.Default: Sum over 5 minutes
- Parameters:
props
-
-
metricHttpRedirectUrlLimitExceededCount
Deprecated.UseApplicationLoadBalancer.metrics.httpRedirectUrlLimitExceededCount
instead(deprecated) The number of redirect actions that couldn't be completed because the URL in the response location header is larger than 8K.Default: Sum over 5 minutes
-
metricIpv6ProcessedBytes
@Stability(Deprecated) @Deprecated @NotNull public Metric metricIpv6ProcessedBytes(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.ipv6ProcessedBytes
instead(deprecated) The total number of bytes processed by the load balancer over IPv6.Default: Sum over 5 minutes
- Parameters:
props
-
-
metricIpv6ProcessedBytes
Deprecated.UseApplicationLoadBalancer.metrics.ipv6ProcessedBytes
instead(deprecated) The total number of bytes processed by the load balancer over IPv6.Default: Sum over 5 minutes
-
metricIpv6RequestCount
@Stability(Deprecated) @Deprecated @NotNull public Metric metricIpv6RequestCount(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.ipv6RequestCount
instead(deprecated) The number of IPv6 requests received by the load balancer.Default: Sum over 5 minutes
- Parameters:
props
-
-
metricIpv6RequestCount
Deprecated.UseApplicationLoadBalancer.metrics.ipv6RequestCount
instead(deprecated) The number of IPv6 requests received by the load balancer.Default: Sum over 5 minutes
-
metricNewConnectionCount
@Stability(Deprecated) @Deprecated @NotNull public Metric metricNewConnectionCount(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.newConnectionCount
instead(deprecated) The total number of new TCP connections established from clients to the load balancer and from the load balancer to targets.Default: Sum over 5 minutes
- Parameters:
props
-
-
metricNewConnectionCount
Deprecated.UseApplicationLoadBalancer.metrics.newConnectionCount
instead(deprecated) The total number of new TCP connections established from clients to the load balancer and from the load balancer to targets.Default: Sum over 5 minutes
-
metricProcessedBytes
@Stability(Deprecated) @Deprecated @NotNull public Metric metricProcessedBytes(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.processedBytes
instead(deprecated) The total number of bytes processed by the load balancer over IPv4 and IPv6.Default: Sum over 5 minutes
- Parameters:
props
-
-
metricProcessedBytes
Deprecated.UseApplicationLoadBalancer.metrics.processedBytes
instead(deprecated) The total number of bytes processed by the load balancer over IPv4 and IPv6.Default: Sum over 5 minutes
-
metricRejectedConnectionCount
@Stability(Deprecated) @Deprecated @NotNull public Metric metricRejectedConnectionCount(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.rejectedConnectionCount
instead(deprecated) The number of connections that were rejected because the load balancer had reached its maximum number of connections.Default: Sum over 5 minutes
- Parameters:
props
-
-
metricRejectedConnectionCount
Deprecated.UseApplicationLoadBalancer.metrics.rejectedConnectionCount
instead(deprecated) The number of connections that were rejected because the load balancer had reached its maximum number of connections.Default: Sum over 5 minutes
-
metricRequestCount
@Stability(Deprecated) @Deprecated @NotNull public Metric metricRequestCount(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.requestCount
instead(deprecated) The number of requests processed over IPv4 and IPv6.This count includes only the requests with a response generated by a target of the load balancer.
Default: Sum over 5 minutes
- Parameters:
props
-
-
metricRequestCount
Deprecated.UseApplicationLoadBalancer.metrics.requestCount
instead(deprecated) The number of requests processed over IPv4 and IPv6.This count includes only the requests with a response generated by a target of the load balancer.
Default: Sum over 5 minutes
-
metricRuleEvaluations
@Stability(Deprecated) @Deprecated @NotNull public Metric metricRuleEvaluations(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.ruleEvaluations
instead(deprecated) The number of rules processed by the load balancer given a request rate averaged over an hour.Default: Sum over 5 minutes
- Parameters:
props
-
-
metricRuleEvaluations
Deprecated.UseApplicationLoadBalancer.metrics.ruleEvaluations
instead(deprecated) The number of rules processed by the load balancer given a request rate averaged over an hour.Default: Sum over 5 minutes
-
metricTargetConnectionErrorCount
@Stability(Deprecated) @Deprecated @NotNull public Metric metricTargetConnectionErrorCount(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.targetConnectionErrorCount
instead(deprecated) The number of connections that were not successfully established between the load balancer and target.Default: Sum over 5 minutes
- Parameters:
props
-
-
metricTargetConnectionErrorCount
Deprecated.UseApplicationLoadBalancer.metrics.targetConnectionErrorCount
instead(deprecated) The number of connections that were not successfully established between the load balancer and target.Default: Sum over 5 minutes
-
metricTargetResponseTime
@Stability(Deprecated) @Deprecated @NotNull public Metric metricTargetResponseTime(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.targetResponseTime
instead(deprecated) The time elapsed, in seconds, after the request leaves the load balancer until a response from the target is received.Default: Average over 5 minutes
- Parameters:
props
-
-
metricTargetResponseTime
Deprecated.UseApplicationLoadBalancer.metrics.targetResponseTime
instead(deprecated) The time elapsed, in seconds, after the request leaves the load balancer until a response from the target is received.Default: Average over 5 minutes
-
metricTargetTLSNegotiationErrorCount
@Stability(Deprecated) @Deprecated @NotNull public Metric metricTargetTLSNegotiationErrorCount(@Nullable MetricOptions props) Deprecated.UseApplicationLoadBalancer.metrics.targetTLSNegotiationErrorCount
instead(deprecated) The number of TLS connections initiated by the load balancer that did not establish a session with the target.Possible causes include a mismatch of ciphers or protocols.
Default: Sum over 5 minutes
- Parameters:
props
-
-
metricTargetTLSNegotiationErrorCount
Deprecated.UseApplicationLoadBalancer.metrics.targetTLSNegotiationErrorCount
instead(deprecated) The number of TLS connections initiated by the load balancer that did not establish a session with the target.Possible causes include a mismatch of ciphers or protocols.
Default: Sum over 5 minutes
-
getConnections
The network connections associated with this resource.- Specified by:
getConnections
in interfaceIConnectable
-
getListeners
A list of listeners that have been added to the load balancer.This list is only valid for owned constructs.
- Specified by:
getListeners
in interfaceIApplicationLoadBalancer
-
getMetrics
All metrics available for this load balancer.- Specified by:
getMetrics
in interfaceIApplicationLoadBalancer
-
getIpAddressType
The IP Address Type for this load balancer.- Specified by:
getIpAddressType
in interfaceIApplicationLoadBalancer
-
ApplicationLoadBalancer.metrics.custom
instead