import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudflare from "@pulumi/cloudflare"; * * const exampleLoadBalancerMonitor = new cloudflare.LoadBalancerMonitor("example_load_balancer_monitor", { * accountId: "023e105f4ecef8ad9ca31a8372d0c353", * allowInsecure: true, * consecutiveDown: 0, * consecutiveUp: 0, * description: "Login page monitor", * expectedBody: "alive", * expectedCodes: "2xx", * followRedirects: true, * header: { * Host: ["example.com"], * "X-App-ID": ["abc123"], * }, * interval: 0, * method: "GET", * path: "/health", * port: 0, * probeZone: "example.com", * retries: 0, * timeout: 0, * type: "https", * }); * ``` * * ## Import * * ```sh * $ pulumi import cloudflare:index/loadBalancerMonitor:LoadBalancerMonitor example '/' * ``` */ export declare class LoadBalancerMonitor extends pulumi.CustomResource { /** * Get an existing LoadBalancerMonitor 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?: LoadBalancerMonitorState, opts?: pulumi.CustomResourceOptions): LoadBalancerMonitor; /** * Returns true if the given object is an instance of LoadBalancerMonitor. 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 LoadBalancerMonitor; /** * Identifier */ readonly accountId: pulumi.Output; /** * Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors. */ readonly allowInsecure: pulumi.Output; /** * To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times. */ readonly consecutiveDown: pulumi.Output; /** * To be marked healthy the monitored origin must pass this healthcheck N consecutive times. */ readonly consecutiveUp: pulumi.Output; readonly createdOn: pulumi.Output; /** * Object description. */ readonly description: pulumi.Output; /** * A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be marked as unhealthy. This parameter is only valid for HTTP and HTTPS monitors. */ readonly expectedBody: pulumi.Output; /** * The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors. */ readonly expectedCodes: pulumi.Output; /** * Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors. */ readonly followRedirects: pulumi.Output; /** * The HTTP request headers to send in the health check. It is recommended you set a Host header by default. The User-Agent header cannot be overridden. This parameter is only valid for HTTP and HTTPS monitors. */ readonly header: pulumi.Output<{ [key: string]: string[]; } | undefined>; /** * The interval between each health check. Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations. */ readonly interval: pulumi.Output; /** * The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks. */ readonly method: pulumi.Output; readonly modifiedOn: pulumi.Output; /** * The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors. */ readonly path: pulumi.Output; /** * The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443). */ readonly port: pulumi.Output; /** * Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors. */ readonly probeZone: 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 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', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'. * Available values: "http", "https", "tcp", "udp*icmp", "icmp*ping", "smtp". */ readonly type: pulumi.Output; /** * Create a LoadBalancerMonitor 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: LoadBalancerMonitorArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LoadBalancerMonitor resources. */ export interface LoadBalancerMonitorState { /** * Identifier */ accountId?: pulumi.Input; /** * Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors. */ allowInsecure?: pulumi.Input; /** * To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times. */ consecutiveDown?: pulumi.Input; /** * To be marked healthy the monitored origin must pass this healthcheck N consecutive times. */ consecutiveUp?: pulumi.Input; createdOn?: pulumi.Input; /** * Object description. */ description?: pulumi.Input; /** * A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be marked as unhealthy. This parameter is only valid for HTTP and HTTPS monitors. */ expectedBody?: pulumi.Input; /** * The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors. */ expectedCodes?: pulumi.Input; /** * Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors. */ followRedirects?: pulumi.Input; /** * The HTTP request headers to send in the health check. It is recommended you set a Host header by default. The User-Agent header cannot be overridden. This parameter is only valid for HTTP and HTTPS monitors. */ header?: pulumi.Input<{ [key: string]: pulumi.Input[]>; }>; /** * The interval between each health check. Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations. */ interval?: pulumi.Input; /** * The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks. */ method?: pulumi.Input; modifiedOn?: pulumi.Input; /** * The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors. */ path?: pulumi.Input; /** * The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443). */ port?: pulumi.Input; /** * Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors. */ probeZone?: 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 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', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'. * Available values: "http", "https", "tcp", "udp*icmp", "icmp*ping", "smtp". */ type?: pulumi.Input; } /** * The set of arguments for constructing a LoadBalancerMonitor resource. */ export interface LoadBalancerMonitorArgs { /** * Identifier */ accountId: pulumi.Input; /** * Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS monitors. */ allowInsecure?: pulumi.Input; /** * To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times. */ consecutiveDown?: pulumi.Input; /** * To be marked healthy the monitored origin must pass this healthcheck N consecutive times. */ consecutiveUp?: pulumi.Input; /** * Object description. */ description?: pulumi.Input; /** * A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be marked as unhealthy. This parameter is only valid for HTTP and HTTPS monitors. */ expectedBody?: pulumi.Input; /** * The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors. */ expectedCodes?: pulumi.Input; /** * Follow redirects if returned by the origin. This parameter is only valid for HTTP and HTTPS monitors. */ followRedirects?: pulumi.Input; /** * The HTTP request headers to send in the health check. It is recommended you set a Host header by default. The User-Agent header cannot be overridden. This parameter is only valid for HTTP and HTTPS monitors. */ header?: pulumi.Input<{ [key: string]: pulumi.Input[]>; }>; /** * The interval between each health check. Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations. */ interval?: pulumi.Input; /** * The method to use for the health check. This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established' for TCP based health checks. */ method?: pulumi.Input; /** * The endpoint path you want to conduct a health check against. This parameter is only valid for HTTP and HTTPS monitors. */ path?: pulumi.Input; /** * The port number to connect to for the health check. Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define the port when using a non-standard port (HTTP: default 80, HTTPS: default 443). */ port?: pulumi.Input; /** * Assign this monitor to emulate the specified zone while probing. This parameter is only valid for HTTP and HTTPS monitors. */ probeZone?: 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 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', 'TCP', 'ICMP-PING', 'UDP-ICMP', and 'SMTP'. * Available values: "http", "https", "tcp", "udp*icmp", "icmp*ping", "smtp". */ type?: pulumi.Input; }