HealthCheckTemplate

class HealthCheckTemplate : KotlinCustomResource

Provides a Application Load Balancer (ALB) Health Check Template resource. For information about Application Load Balancer (ALB) Health Check Template and how to use it, see What is Health Check Template.

NOTE: Available since v1.134.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.alb.HealthCheckTemplate;
import com.pulumi.alicloud.alb.HealthCheckTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new HealthCheckTemplate("example", HealthCheckTemplateArgs.builder()
.healthCheckTemplateName("example_name")
.build());
}
}

Import

Application Load Balancer (ALB) Health Check Template can be imported using the id, e.g.

$ pulumi import alicloud:alb/healthCheckTemplate:HealthCheckTemplate example <id>

Properties

Link copied to clipboard
val dryRun: Output<Boolean>?

Whether to precheck the API request.

Link copied to clipboard

The HTTP status code that indicates a successful health check. NOTE: The attribute HealthCheckProtocol is valid when the attribute is HTTP .

Link copied to clipboard

The number of the port that is used for health checks. Valid values: 0 to 65535. Default value: 0. This default value indicates that the backend server is used for health checks.

Link copied to clipboard
val healthCheckHost: Output<String>

The domain name that is used for health checks. Default value: $SERVER_IP. The domain name must be 1 to 80 characters in length. NOTE: The attribute HealthCheckProtocol is valid when the attribute is HTTP .

Link copied to clipboard

The version of the HTTP protocol. Valid values: HTTP1.0 and HTTP1.1. Default value: HTTP1.1. NOTE: The attribute HealthCheckProtocol is valid when the attribute is HTTP .

Link copied to clipboard

The time interval between two consecutive health checks. Valid values: 1 to 50. Unit: seconds. Default value: 2.

Link copied to clipboard

The health check method. Valid values: GET and HEAD. Default value: HEAD. NOTE: The attribute HealthCheckProtocol is valid when the attribute is HTTP .

Link copied to clipboard
val healthCheckPath: Output<String>

The URL that is used for health checks. The URL must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL can also contain the following extended characters: _ ; ~ ! ( )* [ ] @ $ ^ : ' , +. The URL must start with a forward slash (/). NOTE: The attribute HealthCheckProtocol is valid when the attribute is HTTP .

Link copied to clipboard

The protocol that is used for health checks. Valid values: HTTP and TCP. Default value: HTTP.

Link copied to clipboard

The name of the health check template. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.

Link copied to clipboard
val healthCheckTimeout: Output<Int>

The timeout period of a health check response. If the backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the health check fails. Valid values: 1 to 300. Unit: seconds. Default value: 5.

Link copied to clipboard
val healthyThreshold: Output<Int>

The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy (from fail to success). Valid values: 2 to 10. Default value: 3. Unit: seconds.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val unhealthyThreshold: Output<Int>

The number of times that an healthy backend server must consecutively fail health checks before it is declared unhealthy (from success to fail). Valid values: 2 to 10. Default value: 3. Unit: seconds.

Link copied to clipboard
val urn: Output<String>