"use strict";
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.HealthCheckTemplate = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Provides a resource to manage alb health check template
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const foo = new volcengine.alb.HealthCheckTemplate("foo", {
 *     description: "acc-test3",
 *     healthCheckDomain: "test.com",
 *     healthCheckHttpCode: "http_2xx",
 *     healthCheckHttpVersion: "HTTP1.1",
 *     healthCheckInterval: 8,
 *     healthCheckMethod: "HEAD",
 *     healthCheckProtocol: "HTTP",
 *     healthCheckTemplateName: "acc-test-template-1",
 *     healthCheckTimeout: 11,
 *     healthCheckUri: "/",
 *     healthyThreshold: 2,
 *     tags: [{
 *         key: "key1",
 *         value: "value2",
 *     }],
 *     unhealthyThreshold: 3,
 * });
 * ```
 *
 * ## Import
 *
 * AlbHealthCheckTemplate can be imported using the id, e.g.
 *
 * ```sh
 * $ pulumi import volcengine:alb/healthCheckTemplate:HealthCheckTemplate default hctpl-123*****432
 * ```
 */
class HealthCheckTemplate extends pulumi.CustomResource {
    /**
     * Get an existing HealthCheckTemplate 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, id, state, opts) {
        return new HealthCheckTemplate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
    }
    /**
     * Returns true if the given object is an instance of HealthCheckTemplate.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === HealthCheckTemplate.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["description"] = state ? state.description : undefined;
            resourceInputs["healthCheckDomain"] = state ? state.healthCheckDomain : undefined;
            resourceInputs["healthCheckHttpCode"] = state ? state.healthCheckHttpCode : undefined;
            resourceInputs["healthCheckHttpVersion"] = state ? state.healthCheckHttpVersion : undefined;
            resourceInputs["healthCheckInterval"] = state ? state.healthCheckInterval : undefined;
            resourceInputs["healthCheckMethod"] = state ? state.healthCheckMethod : undefined;
            resourceInputs["healthCheckPort"] = state ? state.healthCheckPort : undefined;
            resourceInputs["healthCheckProtocol"] = state ? state.healthCheckProtocol : undefined;
            resourceInputs["healthCheckTemplateName"] = state ? state.healthCheckTemplateName : undefined;
            resourceInputs["healthCheckTimeout"] = state ? state.healthCheckTimeout : undefined;
            resourceInputs["healthCheckUri"] = state ? state.healthCheckUri : undefined;
            resourceInputs["healthyThreshold"] = state ? state.healthyThreshold : undefined;
            resourceInputs["projectName"] = state ? state.projectName : undefined;
            resourceInputs["tags"] = state ? state.tags : undefined;
            resourceInputs["unhealthyThreshold"] = state ? state.unhealthyThreshold : undefined;
        }
        else {
            const args = argsOrState;
            if ((!args || args.healthCheckTemplateName === undefined) && !opts.urn) {
                throw new Error("Missing required property 'healthCheckTemplateName'");
            }
            resourceInputs["description"] = args ? args.description : undefined;
            resourceInputs["healthCheckDomain"] = args ? args.healthCheckDomain : undefined;
            resourceInputs["healthCheckHttpCode"] = args ? args.healthCheckHttpCode : undefined;
            resourceInputs["healthCheckHttpVersion"] = args ? args.healthCheckHttpVersion : undefined;
            resourceInputs["healthCheckInterval"] = args ? args.healthCheckInterval : undefined;
            resourceInputs["healthCheckMethod"] = args ? args.healthCheckMethod : undefined;
            resourceInputs["healthCheckPort"] = args ? args.healthCheckPort : undefined;
            resourceInputs["healthCheckProtocol"] = args ? args.healthCheckProtocol : undefined;
            resourceInputs["healthCheckTemplateName"] = args ? args.healthCheckTemplateName : undefined;
            resourceInputs["healthCheckTimeout"] = args ? args.healthCheckTimeout : undefined;
            resourceInputs["healthCheckUri"] = args ? args.healthCheckUri : undefined;
            resourceInputs["healthyThreshold"] = args ? args.healthyThreshold : undefined;
            resourceInputs["projectName"] = args ? args.projectName : undefined;
            resourceInputs["tags"] = args ? args.tags : undefined;
            resourceInputs["unhealthyThreshold"] = args ? args.unhealthyThreshold : undefined;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(HealthCheckTemplate.__pulumiType, name, resourceInputs, opts);
    }
}
exports.HealthCheckTemplate = HealthCheckTemplate;
/** @internal */
HealthCheckTemplate.__pulumiType = 'volcengine:alb/healthCheckTemplate:HealthCheckTemplate';
//# sourceMappingURL=healthCheckTemplate.js.map