@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:18.642Z") @Stability(value=Experimental) public class ApplicationTargetGroup extends TargetGroupBase implements IApplicationTargetGroup
| Modifier and Type | Class and Description |
|---|---|
static class |
ApplicationTargetGroup.Builder
(experimental) A fluent builder for
ApplicationTargetGroup. |
software.amazon.jsii.JsiiObject.InitializationModeIApplicationTargetGroup.Jsii$Default, IApplicationTargetGroup.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
ApplicationTargetGroup(software.constructs.Construct scope,
String id) |
|
ApplicationTargetGroup(software.constructs.Construct scope,
String id,
ApplicationTargetGroupProps props) |
protected |
ApplicationTargetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ApplicationTargetGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTarget(IApplicationLoadBalancerTarget... targets)
(experimental) Add a load balancing target to this target group.
|
void |
enableCookieStickiness(Duration duration)
(experimental) Enable sticky routing via a cookie to members of this target group.
|
void |
enableCookieStickiness(Duration duration,
String cookieName)
(experimental) Enable sticky routing via a cookie to members of this target group.
|
static IApplicationTargetGroup |
fromTargetGroupAttributes(software.constructs.Construct scope,
String id,
TargetGroupAttributes attrs)
(experimental) Import an existing target group.
|
String |
getFirstLoadBalancerFullName()
(experimental) Full name of first load balancer.
|
Metric |
metric(String metricName)
(experimental) Return the given named metric for this Application Load Balancer Target Group.
|
Metric |
metric(String metricName,
MetricOptions props)
(experimental) Return the given named metric for this Application Load Balancer Target Group.
|
Metric |
metricHealthyHostCount()
(experimental) The number of healthy hosts in the target group.
|
Metric |
metricHealthyHostCount(MetricOptions props)
(experimental) The number of healthy hosts in the target group.
|
Metric |
metricHttpCodeTarget(HttpCodeTarget code)
(experimental) The number of HTTP 2xx/3xx/4xx/5xx response codes generated by all targets in this target group.
|
Metric |
metricHttpCodeTarget(HttpCodeTarget code,
MetricOptions props)
(experimental) The number of HTTP 2xx/3xx/4xx/5xx response codes generated by all targets in this target group.
|
Metric |
metricIpv6RequestCount()
(experimental) The number of IPv6 requests received by the target group.
|
Metric |
metricIpv6RequestCount(MetricOptions props)
(experimental) The number of IPv6 requests received by the target group.
|
Metric |
metricRequestCount()
(experimental) The number of requests processed over IPv4 and IPv6.
|
Metric |
metricRequestCount(MetricOptions props)
(experimental) The number of requests processed over IPv4 and IPv6.
|
Metric |
metricRequestCountPerTarget()
(experimental) The average number of requests received by each target in a target group.
|
Metric |
metricRequestCountPerTarget(MetricOptions props)
(experimental) The average number of requests received by each target in a target group.
|
Metric |
metricTargetConnectionErrorCount()
(experimental) The number of connections that were not successfully established between the load balancer and target.
|
Metric |
metricTargetConnectionErrorCount(MetricOptions props)
(experimental) The number of connections that were not successfully established between the load balancer and target.
|
Metric |
metricTargetResponseTime()
(experimental) The time elapsed, in seconds, after the request leaves the load balancer until a response from the target is received.
|
Metric |
metricTargetResponseTime(MetricOptions props)
(experimental) The time elapsed, in seconds, after the request leaves the load balancer until a response from the target is received.
|
Metric |
metricTargetTLSNegotiationErrorCount()
(experimental) The number of TLS connections initiated by the load balancer that did not establish a session with the target.
|
Metric |
metricTargetTLSNegotiationErrorCount(MetricOptions props)
(experimental) The number of TLS connections initiated by the load balancer that did not establish a session with the target.
|
Metric |
metricUnhealthyHostCount()
(experimental) The number of unhealthy hosts in the target group.
|
Metric |
metricUnhealthyHostCount(MetricOptions props)
(experimental) The number of unhealthy hosts in the target group.
|
void |
registerConnectable(IConnectable connectable)
(experimental) Register a connectable as a member of this target group.
|
void |
registerConnectable(IConnectable connectable,
Port portRange)
(experimental) Register a connectable as a member of this target group.
|
void |
registerListener(IApplicationListener listener)
(experimental) Register a listener that is load balancing to this target group.
|
void |
registerListener(IApplicationListener listener,
software.constructs.IConstruct associatingConstruct)
(experimental) Register a listener that is load balancing to this target group.
|
protected List<String> |
validateTargetGroup() |
addLoadBalancerTarget, configureHealthCheck, getDefaultPort, getHealthCheck, getLoadBalancerArns, getLoadBalancerAttached, getLoadBalancerAttachedDependencies, getTargetGroupArn, getTargetGroupFullName, getTargetGroupLoadBalancerArns, getTargetGroupName, getTargetType, setAttribute, setAttribute, setHealthCheck, setTargetTypejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLoadBalancerArns, getLoadBalancerAttached, getTargetGroupArnprotected ApplicationTargetGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected ApplicationTargetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public ApplicationTargetGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
ApplicationTargetGroupProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public ApplicationTargetGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static IApplicationTargetGroup fromTargetGroupAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull TargetGroupAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental)
public void addTarget(@NotNull
IApplicationLoadBalancerTarget... targets)
addTarget in interface IApplicationTargetGrouptargets - This parameter is required.@Stability(value=Experimental)
public void enableCookieStickiness(@NotNull
Duration duration,
@Nullable
String cookieName)
Note: If the cookieName parameter is set, application-based stickiness will be applied,
otherwise it defaults to duration-based stickiness attributes (lb_cookie).
duration - This parameter is required.cookieName - https://docs.aws.amazon.com/elasticloadbalancing/latest/application/sticky-sessions.html@Stability(value=Experimental)
public void enableCookieStickiness(@NotNull
Duration duration)
Note: If the cookieName parameter is set, application-based stickiness will be applied,
otherwise it defaults to duration-based stickiness attributes (lb_cookie).
duration - This parameter is required.https://docs.aws.amazon.com/elasticloadbalancing/latest/application/sticky-sessions.html@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
Returns the metric for this target group from the point of view of the first load balancer load balancing to it. If you have multiple load balancers load sending traffic to the same target group, you will have to override the dimensions on this metric.
Default: Average over 5 minutes
metricName - This parameter is required.props - @Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName)
Returns the metric for this target group from the point of view of the first load balancer load balancing to it. If you have multiple load balancers load sending traffic to the same target group, you will have to override the dimensions on this metric.
Default: Average over 5 minutes
metricName - This parameter is required.@Stability(value=Experimental) @NotNull public Metric metricHealthyHostCount(@Nullable MetricOptions props)
Default: Average over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricHealthyHostCount()
Default: Average over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricHttpCodeTarget(@NotNull HttpCodeTarget code, @Nullable MetricOptions props)
This does not include any response codes generated by the load balancer.
Default: Sum over 5 minutes
code - This parameter is required.props - @Stability(value=Experimental) @NotNull public Metric metricHttpCodeTarget(@NotNull HttpCodeTarget code)
This does not include any response codes generated by the load balancer.
Default: Sum over 5 minutes
code - This parameter is required.@Stability(value=Experimental) @NotNull public Metric metricIpv6RequestCount(@Nullable MetricOptions props)
Default: Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricIpv6RequestCount()
Default: Sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricRequestCount(@Nullable MetricOptions props)
This count includes only the requests with a response generated by a target of the load balancer.
Default: Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricRequestCount()
This count includes only the requests with a response generated by a target of the load balancer.
Default: Sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricRequestCountPerTarget(@Nullable MetricOptions props)
The only valid statistic is Sum. Note that this represents the average not the sum.
Default: Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricRequestCountPerTarget()
The only valid statistic is Sum. Note that this represents the average not the sum.
Default: Sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricTargetConnectionErrorCount(@Nullable MetricOptions props)
Default: Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricTargetConnectionErrorCount()
Default: Sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricTargetResponseTime(@Nullable MetricOptions props)
Default: Average over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricTargetResponseTime()
Default: Average over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricTargetTLSNegotiationErrorCount(@Nullable MetricOptions props)
Possible causes include a mismatch of ciphers or protocols.
Default: Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricTargetTLSNegotiationErrorCount()
Possible causes include a mismatch of ciphers or protocols.
Default: Sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricUnhealthyHostCount(@Nullable MetricOptions props)
Default: Average over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricUnhealthyHostCount()
Default: Average over 5 minutes
@Stability(value=Experimental)
public void registerConnectable(@NotNull
IConnectable connectable,
@Nullable
Port portRange)
Don't call this directly. It will be called by load balancing targets.
registerConnectable in interface IApplicationTargetGroupconnectable - This parameter is required.portRange - @Stability(value=Experimental)
public void registerConnectable(@NotNull
IConnectable connectable)
Don't call this directly. It will be called by load balancing targets.
registerConnectable in interface IApplicationTargetGroupconnectable - This parameter is required.@Stability(value=Experimental)
public void registerListener(@NotNull
IApplicationListener listener,
@Nullable
software.constructs.IConstruct associatingConstruct)
Don't call this directly. It will be called by listeners.
registerListener in interface IApplicationTargetGrouplistener - This parameter is required.associatingConstruct - @Stability(value=Experimental)
public void registerListener(@NotNull
IApplicationListener listener)
Don't call this directly. It will be called by listeners.
registerListener in interface IApplicationTargetGrouplistener - This parameter is required.@Stability(value=Experimental) @NotNull protected List<String> validateTargetGroup()
validateTargetGroup in class TargetGroupBase@Stability(value=Experimental) @NotNull public String getFirstLoadBalancerFullName()
getFirstLoadBalancerFullName in class TargetGroupBaseCopyright © 2021. All rights reserved.