@Stability(value=Experimental) public static final class AddApplicationTargetsProps.Builder extends Object implements software.amazon.jsii.Builder<AddApplicationTargetsProps>
AddApplicationTargetsProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public AddApplicationTargetsProps.Builder deregistrationDelay(Duration deregistrationDelay)
AddApplicationTargetsProps.getDeregistrationDelay()deregistrationDelay - The amount of time for Elastic Load Balancing to wait before deregistering a target.
The range is 0-3600 seconds.this@Stability(value=Experimental) public AddApplicationTargetsProps.Builder healthCheck(HealthCheck healthCheck)
AddApplicationTargetsProps.getHealthCheck()healthCheck - Health check configuration.this@Stability(value=Experimental) public AddApplicationTargetsProps.Builder port(Number port)
AddApplicationTargetsProps.getPort()port - The port on which the listener listens for requests.this@Stability(value=Experimental) public AddApplicationTargetsProps.Builder protocol(ApplicationProtocol protocol)
AddApplicationTargetsProps.getProtocol()protocol - The protocol to use.this@Stability(value=Experimental) public AddApplicationTargetsProps.Builder protocolVersion(ApplicationProtocolVersion protocolVersion)
AddApplicationTargetsProps.getProtocolVersion()protocolVersion - The protocol version to use.this@Stability(value=Experimental) public AddApplicationTargetsProps.Builder slowStart(Duration slowStart)
AddApplicationTargetsProps.getSlowStart()slowStart - The time period during which the load balancer sends a newly registered target a linearly increasing share of the traffic to the target group.
The range is 30-900 seconds (15 minutes).this@Stability(value=Experimental) public AddApplicationTargetsProps.Builder stickinessCookieDuration(Duration stickinessCookieDuration)
AddApplicationTargetsProps.getStickinessCookieDuration()stickinessCookieDuration - The stickiness cookie expiration period.
Setting this value enables load balancer stickiness.
After this period, the cookie is considered stale. The minimum value is 1 second and the maximum value is 7 days (604800 seconds).
this@Stability(value=Experimental) public AddApplicationTargetsProps.Builder stickinessCookieName(String stickinessCookieName)
AddApplicationTargetsProps.getStickinessCookieName()stickinessCookieName - The name of an application-based stickiness cookie.
Names that start with the following prefixes are not allowed: AWSALB, AWSALBAPP,
and AWSALBTG; they're reserved for use by the load balancer.
Note: stickinessCookieName parameter depends on the presence of stickinessCookieDuration parameter.
If stickinessCookieDuration is not set, stickinessCookieName will be omitted.
this@Stability(value=Experimental) public AddApplicationTargetsProps.Builder targetGroupName(String targetGroupName)
AddApplicationTargetsProps.getTargetGroupName()targetGroupName - The name of the target group.
This name must be unique per region per account, can have a maximum of
32 characters, must contain only alphanumeric characters or hyphens, and
must not begin or end with a hyphen.this@Stability(value=Experimental) public AddApplicationTargetsProps.Builder targets(List<? extends IApplicationLoadBalancerTarget> targets)
AddApplicationTargetsProps.getTargets()targets - The targets to add to this target group.
Can be Instance, IPAddress, or any self-registering load balancing
target. All target must be of the same type.this@Stability(value=Experimental) public AddApplicationTargetsProps.Builder conditions(List<? extends ListenerCondition> conditions)
AddRuleProps.getConditions()conditions - Rule applies if matches the conditions.this@Stability(value=Experimental) public AddApplicationTargetsProps.Builder priority(Number priority)
AddRuleProps.getPriority()priority - Priority of this target group.
The rule with the lowest priority will be used for every request.
If priority is not given, these target groups will be added as
defaults, and must not have conditions.
Priorities must be unique.
this@Stability(value=Experimental) public AddApplicationTargetsProps build()
build in interface software.amazon.jsii.Builder<AddApplicationTargetsProps>AddApplicationTargetsPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.