import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ## Example Usage * * ## Import * * ```sh * $ pulumi import cloudflare:index/healthcheck:Healthcheck example '/' * ``` */ export declare class Healthcheck extends pulumi.CustomResource { /** * Get an existing Healthcheck resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: HealthcheckState, opts?: pulumi.CustomResourceOptions): Healthcheck; /** * Returns true if the given object is an instance of Healthcheck. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Healthcheck; /** * The hostname or IP address of the origin server to run health checks on. */ readonly address: pulumi.Output; /** * A list of regions from which to run health checks. Null means Cloudflare will pick a default region. */ readonly checkRegions: pulumi.Output; /** * The number of consecutive fails required from a health check before changing the health to unhealthy. */ readonly consecutiveFails: pulumi.Output; /** * The number of consecutive successes required from a health check before changing the health to healthy. */ readonly consecutiveSuccesses: pulumi.Output; readonly createdOn: pulumi.Output; /** * A human-readable description of the health check. */ readonly description: pulumi.Output; /** * The current failure reason if status is unhealthy. */ readonly failureReason: pulumi.Output; /** * Parameters specific to an HTTP or HTTPS health check. */ readonly httpConfig: pulumi.Output; /** * The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations. */ readonly interval: pulumi.Output; readonly modifiedOn: pulumi.Output; /** * A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed. */ readonly name: pulumi.Output; /** * The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately. */ readonly retries: pulumi.Output; /** * The current status of the origin server according to the health check. * Available values: "unknown", "healthy", "unhealthy", "suspended". */ readonly status: pulumi.Output; /** * If suspended, no health checks are sent to the origin. */ readonly suspended: pulumi.Output; /** * Parameters specific to TCP health check. */ readonly tcpConfig: pulumi.Output; /** * The timeout (in seconds) before marking the health check as failed. */ readonly timeout: pulumi.Output; /** * The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'. */ readonly type: pulumi.Output; /** * Identifier */ readonly zoneId: pulumi.Output; /** * Create a Healthcheck resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: HealthcheckArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Healthcheck resources. */ export interface HealthcheckState { /** * The hostname or IP address of the origin server to run health checks on. */ address?: pulumi.Input; /** * A list of regions from which to run health checks. Null means Cloudflare will pick a default region. */ checkRegions?: pulumi.Input[]>; /** * The number of consecutive fails required from a health check before changing the health to unhealthy. */ consecutiveFails?: pulumi.Input; /** * The number of consecutive successes required from a health check before changing the health to healthy. */ consecutiveSuccesses?: pulumi.Input; createdOn?: pulumi.Input; /** * A human-readable description of the health check. */ description?: pulumi.Input; /** * The current failure reason if status is unhealthy. */ failureReason?: pulumi.Input; /** * Parameters specific to an HTTP or HTTPS health check. */ httpConfig?: pulumi.Input; /** * The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations. */ interval?: pulumi.Input; modifiedOn?: pulumi.Input; /** * A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed. */ name?: pulumi.Input; /** * The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately. */ retries?: pulumi.Input; /** * The current status of the origin server according to the health check. * Available values: "unknown", "healthy", "unhealthy", "suspended". */ status?: pulumi.Input; /** * If suspended, no health checks are sent to the origin. */ suspended?: pulumi.Input; /** * Parameters specific to TCP health check. */ tcpConfig?: pulumi.Input; /** * The timeout (in seconds) before marking the health check as failed. */ timeout?: pulumi.Input; /** * The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'. */ type?: pulumi.Input; /** * Identifier */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a Healthcheck resource. */ export interface HealthcheckArgs { /** * The hostname or IP address of the origin server to run health checks on. */ address: pulumi.Input; /** * A list of regions from which to run health checks. Null means Cloudflare will pick a default region. */ checkRegions?: pulumi.Input[]>; /** * The number of consecutive fails required from a health check before changing the health to unhealthy. */ consecutiveFails?: pulumi.Input; /** * The number of consecutive successes required from a health check before changing the health to healthy. */ consecutiveSuccesses?: pulumi.Input; /** * A human-readable description of the health check. */ description?: pulumi.Input; /** * Parameters specific to an HTTP or HTTPS health check. */ httpConfig?: pulumi.Input; /** * The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations. */ interval?: pulumi.Input; /** * A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed. */ name: pulumi.Input; /** * The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately. */ retries?: pulumi.Input; /** * If suspended, no health checks are sent to the origin. */ suspended?: pulumi.Input; /** * Parameters specific to TCP health check. */ tcpConfig?: pulumi.Input; /** * The timeout (in seconds) before marking the health check as failed. */ timeout?: pulumi.Input; /** * The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'. */ type?: pulumi.Input; /** * Identifier */ zoneId: pulumi.Input; }