public static interface TargetGroup.Builder extends SdkPojo, CopyableBuilder<TargetGroup.Builder,TargetGroup>
| Modifier and Type | Method and Description |
|---|---|
TargetGroup.Builder |
healthCheckEnabled(Boolean healthCheckEnabled)
Indicates whether health checks are enabled.
|
TargetGroup.Builder |
healthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)
The approximate amount of time, in seconds, between health checks of an individual target.
|
TargetGroup.Builder |
healthCheckPath(String healthCheckPath)
The destination for health checks on the targets.
|
TargetGroup.Builder |
healthCheckPort(String healthCheckPort)
The port to use to connect with the target.
|
TargetGroup.Builder |
healthCheckProtocol(ProtocolEnum healthCheckProtocol)
The protocol to use to connect with the target.
|
TargetGroup.Builder |
healthCheckProtocol(String healthCheckProtocol)
The protocol to use to connect with the target.
|
TargetGroup.Builder |
healthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds)
The amount of time, in seconds, during which no response means a failed health check.
|
TargetGroup.Builder |
healthyThresholdCount(Integer healthyThresholdCount)
The number of consecutive health checks successes required before considering an unhealthy target healthy.
|
TargetGroup.Builder |
ipAddressType(String ipAddressType)
The type of IP address used for this target group.
|
TargetGroup.Builder |
ipAddressType(TargetGroupIpAddressTypeEnum ipAddressType)
The type of IP address used for this target group.
|
TargetGroup.Builder |
loadBalancerArns(Collection<String> loadBalancerArns)
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
|
TargetGroup.Builder |
loadBalancerArns(String... loadBalancerArns)
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
|
default TargetGroup.Builder |
matcher(Consumer<Matcher.Builder> matcher)
The HTTP or gRPC codes to use when checking for a successful response from a target.
|
TargetGroup.Builder |
matcher(Matcher matcher)
The HTTP or gRPC codes to use when checking for a successful response from a target.
|
TargetGroup.Builder |
port(Integer port)
The port on which the targets are listening.
|
TargetGroup.Builder |
protocol(ProtocolEnum protocol)
The protocol to use for routing traffic to the targets.
|
TargetGroup.Builder |
protocol(String protocol)
The protocol to use for routing traffic to the targets.
|
TargetGroup.Builder |
protocolVersion(String protocolVersion)
[HTTP/HTTPS protocol] The protocol version.
|
TargetGroup.Builder |
targetGroupArn(String targetGroupArn)
The Amazon Resource Name (ARN) of the target group.
|
TargetGroup.Builder |
targetGroupName(String targetGroupName)
The name of the target group.
|
TargetGroup.Builder |
targetType(String targetType)
The type of target that you must specify when registering targets with this target group.
|
TargetGroup.Builder |
targetType(TargetTypeEnum targetType)
The type of target that you must specify when registering targets with this target group.
|
TargetGroup.Builder |
unhealthyThresholdCount(Integer unhealthyThresholdCount)
The number of consecutive health check failures required before considering the target unhealthy.
|
TargetGroup.Builder |
vpcId(String vpcId)
The ID of the VPC for the targets.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildTargetGroup.Builder targetGroupArn(String targetGroupArn)
The Amazon Resource Name (ARN) of the target group.
targetGroupArn - The Amazon Resource Name (ARN) of the target group.TargetGroup.Builder targetGroupName(String targetGroupName)
The name of the target group.
targetGroupName - The name of the target group.TargetGroup.Builder protocol(String protocol)
The protocol to use for routing traffic to the targets.
protocol - The protocol to use for routing traffic to the targets.ProtocolEnum,
ProtocolEnumTargetGroup.Builder protocol(ProtocolEnum protocol)
The protocol to use for routing traffic to the targets.
protocol - The protocol to use for routing traffic to the targets.ProtocolEnum,
ProtocolEnumTargetGroup.Builder port(Integer port)
The port on which the targets are listening. Not used if the target is a Lambda function.
port - The port on which the targets are listening. Not used if the target is a Lambda function.TargetGroup.Builder vpcId(String vpcId)
The ID of the VPC for the targets.
vpcId - The ID of the VPC for the targets.TargetGroup.Builder healthCheckProtocol(String healthCheckProtocol)
The protocol to use to connect with the target. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.
healthCheckProtocol - The protocol to use to connect with the target. The GENEVE, TLS, UDP, and TCP_UDP protocols are not
supported for health checks.ProtocolEnum,
ProtocolEnumTargetGroup.Builder healthCheckProtocol(ProtocolEnum healthCheckProtocol)
The protocol to use to connect with the target. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.
healthCheckProtocol - The protocol to use to connect with the target. The GENEVE, TLS, UDP, and TCP_UDP protocols are not
supported for health checks.ProtocolEnum,
ProtocolEnumTargetGroup.Builder healthCheckPort(String healthCheckPort)
The port to use to connect with the target.
healthCheckPort - The port to use to connect with the target.TargetGroup.Builder healthCheckEnabled(Boolean healthCheckEnabled)
Indicates whether health checks are enabled.
healthCheckEnabled - Indicates whether health checks are enabled.TargetGroup.Builder healthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)
The approximate amount of time, in seconds, between health checks of an individual target.
healthCheckIntervalSeconds - The approximate amount of time, in seconds, between health checks of an individual target.TargetGroup.Builder healthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds)
The amount of time, in seconds, during which no response means a failed health check.
healthCheckTimeoutSeconds - The amount of time, in seconds, during which no response means a failed health check.TargetGroup.Builder healthyThresholdCount(Integer healthyThresholdCount)
The number of consecutive health checks successes required before considering an unhealthy target healthy.
healthyThresholdCount - The number of consecutive health checks successes required before considering an unhealthy target
healthy.TargetGroup.Builder unhealthyThresholdCount(Integer unhealthyThresholdCount)
The number of consecutive health check failures required before considering the target unhealthy.
unhealthyThresholdCount - The number of consecutive health check failures required before considering the target unhealthy.TargetGroup.Builder healthCheckPath(String healthCheckPath)
The destination for health checks on the targets.
healthCheckPath - The destination for health checks on the targets.TargetGroup.Builder matcher(Matcher matcher)
The HTTP or gRPC codes to use when checking for a successful response from a target.
matcher - The HTTP or gRPC codes to use when checking for a successful response from a target.default TargetGroup.Builder matcher(Consumer<Matcher.Builder> matcher)
The HTTP or gRPC codes to use when checking for a successful response from a target.
This is a convenience method that creates an instance of theMatcher.Builder avoiding the need to
create one manually via Matcher.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to matcher(Matcher).
matcher - a consumer that will call methods on Matcher.Buildermatcher(Matcher)TargetGroup.Builder loadBalancerArns(Collection<String> loadBalancerArns)
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
loadBalancerArns - The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.TargetGroup.Builder loadBalancerArns(String... loadBalancerArns)
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
loadBalancerArns - The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.TargetGroup.Builder targetType(String targetType)
The type of target that you must specify when registering targets with this target group. The possible values
are instance (register targets by instance ID), ip (register targets by IP
address), lambda (register a single Lambda function as a target), or alb (register
a single Application Load Balancer as a target).
targetType - The type of target that you must specify when registering targets with this target group. The possible
values are instance (register targets by instance ID), ip (register targets
by IP address), lambda (register a single Lambda function as a target), or
alb (register a single Application Load Balancer as a target).TargetTypeEnum,
TargetTypeEnumTargetGroup.Builder targetType(TargetTypeEnum targetType)
The type of target that you must specify when registering targets with this target group. The possible values
are instance (register targets by instance ID), ip (register targets by IP
address), lambda (register a single Lambda function as a target), or alb (register
a single Application Load Balancer as a target).
targetType - The type of target that you must specify when registering targets with this target group. The possible
values are instance (register targets by instance ID), ip (register targets
by IP address), lambda (register a single Lambda function as a target), or
alb (register a single Application Load Balancer as a target).TargetTypeEnum,
TargetTypeEnumTargetGroup.Builder protocolVersion(String protocolVersion)
[HTTP/HTTPS protocol] The protocol version. The possible values are GRPC, HTTP1,
and HTTP2.
protocolVersion - [HTTP/HTTPS protocol] The protocol version. The possible values are GRPC,
HTTP1, and HTTP2.TargetGroup.Builder ipAddressType(String ipAddressType)
The type of IP address used for this target group. The possible values are ipv4 and
ipv6. This is an optional parameter. If not specified, the IP address type defaults to
ipv4.
ipAddressType - The type of IP address used for this target group. The possible values are ipv4 and
ipv6. This is an optional parameter. If not specified, the IP address type defaults to
ipv4.TargetGroupIpAddressTypeEnum,
TargetGroupIpAddressTypeEnumTargetGroup.Builder ipAddressType(TargetGroupIpAddressTypeEnum ipAddressType)
The type of IP address used for this target group. The possible values are ipv4 and
ipv6. This is an optional parameter. If not specified, the IP address type defaults to
ipv4.
ipAddressType - The type of IP address used for this target group. The possible values are ipv4 and
ipv6. This is an optional parameter. If not specified, the IP address type defaults to
ipv4.TargetGroupIpAddressTypeEnum,
TargetGroupIpAddressTypeEnumCopyright © 2022. All rights reserved.