@Stability(value=Experimental) public static final class NetworkTargetGroupProps.Builder extends Object implements software.amazon.jsii.Builder<NetworkTargetGroupProps>
NetworkTargetGroupProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public NetworkTargetGroupProps.Builder port(Number port)
NetworkTargetGroupProps.getPort()port - The port on which the listener listens for requests. This parameter is required.this@Stability(value=Experimental) public NetworkTargetGroupProps.Builder preserveClientIp(Boolean preserveClientIp)
NetworkTargetGroupProps.getPreserveClientIp()preserveClientIp - Indicates whether client IP preservation is enabled.this@Stability(value=Experimental) public NetworkTargetGroupProps.Builder protocol(Protocol protocol)
NetworkTargetGroupProps.getProtocol()protocol - Protocol for target group, expects TCP, TLS, UDP, or TCP_UDP.this@Stability(value=Experimental) public NetworkTargetGroupProps.Builder proxyProtocolV2(Boolean proxyProtocolV2)
NetworkTargetGroupProps.getProxyProtocolV2()proxyProtocolV2 - Indicates whether Proxy Protocol version 2 is enabled.this@Stability(value=Experimental) public NetworkTargetGroupProps.Builder targets(List<? extends INetworkLoadBalancerTarget> targets)
NetworkTargetGroupProps.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=Experimental) public NetworkTargetGroupProps.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=Experimental) public NetworkTargetGroupProps.Builder healthCheck(HealthCheck healthCheck)
BaseTargetGroupProps.getHealthCheck()healthCheck - Health check configuration.this@Stability(value=Experimental) public NetworkTargetGroupProps.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=Experimental) public NetworkTargetGroupProps.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=Experimental) public NetworkTargetGroupProps.Builder vpc(IVpc vpc)
BaseTargetGroupProps.getVpc()vpc - The virtual private cloud (VPC).
only if TargetType is Ip or InstanceIdthis@Stability(value=Experimental) public NetworkTargetGroupProps build()
build in interface software.amazon.jsii.Builder<NetworkTargetGroupProps>NetworkTargetGroupPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.