@Stability(value=Stable) public static final class ApplicationTargetGroupProps.Builder extends Object implements software.amazon.jsii.Builder<ApplicationTargetGroupProps>
ApplicationTargetGroupProps
Constructor and Description |
---|
Builder() |
@Stability(value=Stable) public ApplicationTargetGroupProps.Builder loadBalancingAlgorithmType(TargetGroupLoadBalancingAlgorithmType loadBalancingAlgorithmType)
ApplicationTargetGroupProps.getLoadBalancingAlgorithmType()
loadBalancingAlgorithmType
- The load balancing algorithm to select targets for routing requests.this
@Stability(value=Stable) public ApplicationTargetGroupProps.Builder port(Number port)
ApplicationTargetGroupProps.getPort()
port
- The port on which the listener listens for requests.this
@Stability(value=Stable) public ApplicationTargetGroupProps.Builder protocol(ApplicationProtocol protocol)
ApplicationTargetGroupProps.getProtocol()
protocol
- The protocol to use.this
@Stability(value=Stable) public ApplicationTargetGroupProps.Builder protocolVersion(ApplicationProtocolVersion protocolVersion)
ApplicationTargetGroupProps.getProtocolVersion()
protocolVersion
- The protocol version to use.this
@Stability(value=Stable) public ApplicationTargetGroupProps.Builder slowStart(Duration slowStart)
ApplicationTargetGroupProps.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=Stable) public ApplicationTargetGroupProps.Builder stickinessCookieDuration(Duration stickinessCookieDuration)
ApplicationTargetGroupProps.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=Stable) public ApplicationTargetGroupProps.Builder stickinessCookieName(String stickinessCookieName)
ApplicationTargetGroupProps.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=Stable) public ApplicationTargetGroupProps.Builder targets(List<? extends IApplicationLoadBalancerTarget> targets)
ApplicationTargetGroupProps.getTargets()
targets
- The targets to add to this target group.
Can be Instance
, IPAddress
, or any self-registering load balancing
target. If you use either Instance
or IPAddress
as targets, all
target must be of the same type.this
@Stability(value=Stable) public ApplicationTargetGroupProps.Builder deregistrationDelay(Duration deregistrationDelay)
BaseTargetGroupProps.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=Stable) public ApplicationTargetGroupProps.Builder healthCheck(HealthCheck healthCheck)
BaseTargetGroupProps.getHealthCheck()
healthCheck
- Health check configuration.this
@Stability(value=Stable) public ApplicationTargetGroupProps.Builder targetGroupName(String targetGroupName)
BaseTargetGroupProps.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=Stable) public ApplicationTargetGroupProps.Builder targetType(TargetType targetType)
BaseTargetGroupProps.getTargetType()
targetType
- The type of targets registered to this TargetGroup, either IP or Instance.
All targets registered into the group must be of this type. If you
register targets to the TargetGroup in the CDK app, the TargetType is
determined automatically.this
@Stability(value=Stable) public ApplicationTargetGroupProps.Builder vpc(IVpc vpc)
BaseTargetGroupProps.getVpc()
vpc
- The virtual private cloud (VPC).
only if TargetType
is Ip
or InstanceId
this
@Stability(value=Stable) public ApplicationTargetGroupProps build()
build
in interface software.amazon.jsii.Builder<ApplicationTargetGroupProps>
ApplicationTargetGroupProps
NullPointerException
- if any required attribute was not providedCopyright © 2023. All rights reserved.