Package com.pulumi.aws.alb.inputs
Class TargetGroupHealthCheckArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.alb.inputs.TargetGroupHealthCheckArgs.Builder
-
- Enclosing class:
- TargetGroupHealthCheckArgs
public static final class TargetGroupHealthCheckArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(TargetGroupHealthCheckArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetGroupHealthCheckArgsbuild()TargetGroupHealthCheckArgs.Builderenabled(com.pulumi.core.Output<java.lang.Boolean> enabled)TargetGroupHealthCheckArgs.Builderenabled(java.lang.Boolean enabled)TargetGroupHealthCheckArgs.BuilderhealthyThreshold(com.pulumi.core.Output<java.lang.Integer> healthyThreshold)TargetGroupHealthCheckArgs.BuilderhealthyThreshold(java.lang.Integer healthyThreshold)TargetGroupHealthCheckArgs.Builderinterval(com.pulumi.core.Output<java.lang.Integer> interval)TargetGroupHealthCheckArgs.Builderinterval(java.lang.Integer interval)TargetGroupHealthCheckArgs.Buildermatcher(com.pulumi.core.Output<java.lang.String> matcher)TargetGroupHealthCheckArgs.Buildermatcher(java.lang.String matcher)TargetGroupHealthCheckArgs.Builderpath(com.pulumi.core.Output<java.lang.String> path)TargetGroupHealthCheckArgs.Builderpath(java.lang.String path)TargetGroupHealthCheckArgs.Builderport(com.pulumi.core.Output<java.lang.String> port)TargetGroupHealthCheckArgs.Builderport(java.lang.String port)TargetGroupHealthCheckArgs.Builderprotocol(com.pulumi.core.Output<java.lang.String> protocol)TargetGroupHealthCheckArgs.Builderprotocol(java.lang.String protocol)TargetGroupHealthCheckArgs.Buildertimeout(com.pulumi.core.Output<java.lang.Integer> timeout)TargetGroupHealthCheckArgs.Buildertimeout(java.lang.Integer timeout)TargetGroupHealthCheckArgs.BuilderunhealthyThreshold(com.pulumi.core.Output<java.lang.Integer> unhealthyThreshold)TargetGroupHealthCheckArgs.BuilderunhealthyThreshold(java.lang.Integer unhealthyThreshold)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(TargetGroupHealthCheckArgs defaults)
-
-
Method Detail
-
enabled
public TargetGroupHealthCheckArgs.Builder enabled(@Nullable com.pulumi.core.Output<java.lang.Boolean> enabled)
- Parameters:
enabled- Whether health checks are enabled. Defaults to `true`.- Returns:
- builder
-
enabled
public TargetGroupHealthCheckArgs.Builder enabled(java.lang.Boolean enabled)
- Parameters:
enabled- Whether health checks are enabled. Defaults to `true`.- Returns:
- builder
-
healthyThreshold
public TargetGroupHealthCheckArgs.Builder healthyThreshold(@Nullable com.pulumi.core.Output<java.lang.Integer> healthyThreshold)
- Parameters:
healthyThreshold- Number of consecutive health check successes required before considering a target healthy. The range is 2-10. Defaults to 3.- Returns:
- builder
-
healthyThreshold
public TargetGroupHealthCheckArgs.Builder healthyThreshold(java.lang.Integer healthyThreshold)
- Parameters:
healthyThreshold- Number of consecutive health check successes required before considering a target healthy. The range is 2-10. Defaults to 3.- Returns:
- builder
-
interval
public TargetGroupHealthCheckArgs.Builder interval(@Nullable com.pulumi.core.Output<java.lang.Integer> interval)
- Parameters:
interval- Approximate amount of time, in seconds, between health checks of an individual target. The range is 5-300. For `lambda` target groups, it needs to be greater than the timeout of the underlying `lambda`. Defaults to 30.- Returns:
- builder
-
interval
public TargetGroupHealthCheckArgs.Builder interval(java.lang.Integer interval)
- Parameters:
interval- Approximate amount of time, in seconds, between health checks of an individual target. The range is 5-300. For `lambda` target groups, it needs to be greater than the timeout of the underlying `lambda`. Defaults to 30.- Returns:
- builder
-
matcher
public TargetGroupHealthCheckArgs.Builder matcher(@Nullable com.pulumi.core.Output<java.lang.String> matcher)
- Parameters:
matcher- The HTTP or gRPC codes to use when checking for a successful response from a target. The `health_check.protocol` must be one of `HTTP` or `HTTPS` or the `targetType` must be `lambda`. Values can be comma-separated individual values (e.g., "200,202") or a range of values (e.g., "200-299"). Once the value has been set, removing it has no effect. To unset it, set it to an empty string `""`. * For gRPC-based target groups (i.e., the `protocol` is one of `HTTP` or `HTTPS` and the `protocolVersion` is `GRPC`), values can be between `0` and `99`. The default is `12`. * When used with an Application Load Balancer (i.e., the `protocol` is one of `HTTP` or `HTTPS` and the `protocolVersion` is not `GRPC`), values can be between `200` and `499`. The default is `200`. * When used with a Network Load Balancer (i.e., the `protocol` is one of `TCP`, `TCP_UDP`, `UDP`, or `TLS`), values can be between `200` and `599`. The default is `200-399`. * When the `targetType` is `lambda`, values can be between `200` and `499`. The default is `200`.- Returns:
- builder
-
matcher
public TargetGroupHealthCheckArgs.Builder matcher(java.lang.String matcher)
- Parameters:
matcher- The HTTP or gRPC codes to use when checking for a successful response from a target. The `health_check.protocol` must be one of `HTTP` or `HTTPS` or the `targetType` must be `lambda`. Values can be comma-separated individual values (e.g., "200,202") or a range of values (e.g., "200-299"). Once the value has been set, removing it has no effect. To unset it, set it to an empty string `""`. * For gRPC-based target groups (i.e., the `protocol` is one of `HTTP` or `HTTPS` and the `protocolVersion` is `GRPC`), values can be between `0` and `99`. The default is `12`. * When used with an Application Load Balancer (i.e., the `protocol` is one of `HTTP` or `HTTPS` and the `protocolVersion` is not `GRPC`), values can be between `200` and `499`. The default is `200`. * When used with a Network Load Balancer (i.e., the `protocol` is one of `TCP`, `TCP_UDP`, `UDP`, or `TLS`), values can be between `200` and `599`. The default is `200-399`. * When the `targetType` is `lambda`, values can be between `200` and `499`. The default is `200`.- Returns:
- builder
-
path
public TargetGroupHealthCheckArgs.Builder path(@Nullable com.pulumi.core.Output<java.lang.String> path)
- Parameters:
path- Destination for the health check request. Required for HTTP/HTTPS ALB and HTTP NLB. Only applies to HTTP/HTTPS. Once the value has been set, removing it has no effect. To unset it, set it to an empty string `""`. * For HTTP and HTTPS health checks, the default is `/`. * For gRPC health checks, the default is `/AWS.ALB/healthcheck`.- Returns:
- builder
-
path
public TargetGroupHealthCheckArgs.Builder path(java.lang.String path)
- Parameters:
path- Destination for the health check request. Required for HTTP/HTTPS ALB and HTTP NLB. Only applies to HTTP/HTTPS. Once the value has been set, removing it has no effect. To unset it, set it to an empty string `""`. * For HTTP and HTTPS health checks, the default is `/`. * For gRPC health checks, the default is `/AWS.ALB/healthcheck`.- Returns:
- builder
-
port
public TargetGroupHealthCheckArgs.Builder port(@Nullable com.pulumi.core.Output<java.lang.String> port)
- Parameters:
port- The port the load balancer uses when performing health checks on targets. Valid values are either `traffic-port`, to use the same port as the target group, or a valid port number between `1` and `65536`. Default is `traffic-port`.- Returns:
- builder
-
port
public TargetGroupHealthCheckArgs.Builder port(java.lang.String port)
- Parameters:
port- The port the load balancer uses when performing health checks on targets. Valid values are either `traffic-port`, to use the same port as the target group, or a valid port number between `1` and `65536`. Default is `traffic-port`.- Returns:
- builder
-
protocol
public TargetGroupHealthCheckArgs.Builder protocol(@Nullable com.pulumi.core.Output<java.lang.String> protocol)
- Parameters:
protocol- Protocol the load balancer uses when performing health checks on targets. Must be one of `TCP`, `HTTP`, or `HTTPS`. The `TCP` protocol is not supported for health checks if the protocol of the target group is `HTTP` or `HTTPS`. Default is `HTTP`. Cannot be specified when the `targetType` is `lambda`.- Returns:
- builder
-
protocol
public TargetGroupHealthCheckArgs.Builder protocol(java.lang.String protocol)
- Parameters:
protocol- Protocol the load balancer uses when performing health checks on targets. Must be one of `TCP`, `HTTP`, or `HTTPS`. The `TCP` protocol is not supported for health checks if the protocol of the target group is `HTTP` or `HTTPS`. Default is `HTTP`. Cannot be specified when the `targetType` is `lambda`.- Returns:
- builder
-
timeout
public TargetGroupHealthCheckArgs.Builder timeout(@Nullable com.pulumi.core.Output<java.lang.Integer> timeout)
- Parameters:
timeout- Amount of time, in seconds, during which no response from a target means a failed health check. The range is 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups with a protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE, the default is 5 seconds. If the target type is lambda, the default is 30 seconds.- Returns:
- builder
-
timeout
public TargetGroupHealthCheckArgs.Builder timeout(java.lang.Integer timeout)
- Parameters:
timeout- Amount of time, in seconds, during which no response from a target means a failed health check. The range is 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups with a protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE, the default is 5 seconds. If the target type is lambda, the default is 30 seconds.- Returns:
- builder
-
unhealthyThreshold
public TargetGroupHealthCheckArgs.Builder unhealthyThreshold(@Nullable com.pulumi.core.Output<java.lang.Integer> unhealthyThreshold)
- Parameters:
unhealthyThreshold- Number of consecutive health check failures required before considering a target unhealthy. The range is 2-10. Defaults to 3.- Returns:
- builder
-
unhealthyThreshold
public TargetGroupHealthCheckArgs.Builder unhealthyThreshold(java.lang.Integer unhealthyThreshold)
- Parameters:
unhealthyThreshold- Number of consecutive health check failures required before considering a target unhealthy. The range is 2-10. Defaults to 3.- Returns:
- builder
-
build
public TargetGroupHealthCheckArgs build()
-
-