@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.129Z") @Stability(value=Stable) public class NetworkTargetGroup extends TargetGroupBase implements INetworkTargetGroup
Example:
NetworkListener listener;
AutoScalingGroup asg1;
AutoScalingGroup asg2;
NetworkTargetGroup group = listener.addTargets("AppFleet", AddNetworkTargetsProps.builder()
.port(443)
.targets(List.of(asg1))
.build());
group.addTarget(asg2);
| Modifier and Type | Class and Description |
|---|---|
static class |
NetworkTargetGroup.Builder
A fluent builder for
NetworkTargetGroup. |
software.amazon.jsii.JsiiObject.InitializationModeINetworkTargetGroup.Jsii$Default, INetworkTargetGroup.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
NetworkTargetGroup(software.constructs.Construct scope,
String id,
NetworkTargetGroupProps props) |
protected |
NetworkTargetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
NetworkTargetGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTarget(INetworkLoadBalancerTarget... targets)
Add a load balancing target to this target group.
|
static INetworkTargetGroup |
fromTargetGroupAttributes(software.constructs.Construct scope,
String id,
TargetGroupAttributes attrs)
Import an existing target group.
|
String |
getFirstLoadBalancerFullName()
Full name of first load balancer.
|
Metric |
metricHealthyHostCount()
The number of targets that are considered healthy.
|
Metric |
metricHealthyHostCount(MetricOptions props)
The number of targets that are considered healthy.
|
Metric |
metricUnHealthyHostCount()
The number of targets that are considered unhealthy.
|
Metric |
metricUnHealthyHostCount(MetricOptions props)
The number of targets that are considered unhealthy.
|
void |
registerListener(INetworkListener listener)
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, getTargetGroupArn, getTargetGroupNameprotected NetworkTargetGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected NetworkTargetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public NetworkTargetGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
NetworkTargetGroupProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static INetworkTargetGroup 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=Stable)
public void addTarget(@NotNull
INetworkLoadBalancerTarget... targets)
addTarget in interface INetworkTargetGrouptargets - This parameter is required.@Stability(value=Stable) @NotNull public Metric metricHealthyHostCount(@Nullable MetricOptions props)
Default: Average over 5 minutes
props - @Stability(value=Stable) @NotNull public Metric metricHealthyHostCount()
Default: Average over 5 minutes
@Stability(value=Stable) @NotNull public Metric metricUnHealthyHostCount(@Nullable MetricOptions props)
Default: Average over 5 minutes
props - @Stability(value=Stable) @NotNull public Metric metricUnHealthyHostCount()
Default: Average over 5 minutes
@Stability(value=Stable)
public void registerListener(@NotNull
INetworkListener listener)
Don't call this directly. It will be called by listeners.
registerListener in interface INetworkTargetGrouplistener - This parameter is required.@Stability(value=Stable) @NotNull protected List<String> validateTargetGroup()
validateTargetGroup in class TargetGroupBase@Stability(value=Stable) @NotNull public String getFirstLoadBalancerFullName()
getFirstLoadBalancerFullName in class TargetGroupBaseCopyright © 2022. All rights reserved.