"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.PrivateZone = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Provides a resource to manage private zone
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const foo = new volcengine.private_zone.PrivateZone("foo", {
 *     intelligentMode: true,
 *     loadBalanceMode: true,
 *     projectName: "default",
 *     recursionMode: true,
 *     remark: "acc-test-new",
 *     tags: [{
 *         key: "k1",
 *         value: "v1",
 *     }],
 *     vpcs: [
 *         {
 *             vpcId: "vpc-rs4mi0jedipsv0x57pf****",
 *         },
 *         {
 *             region: "cn-shanghai",
 *             vpcId: "vpc-3qdzk9xju6o747prml0jk****",
 *         },
 *     ],
 *     zoneName: "acc-test-pz.com",
 * });
 * ```
 *
 * ## Import
 *
 * PrivateZone can be imported using the id, e.g.
 *
 * ```sh
 * $ pulumi import volcengine:private_zone/privateZone:PrivateZone default resource_id
 * ```
 */
class PrivateZone extends pulumi.CustomResource {
    /**
     * Get an existing PrivateZone 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 PrivateZone(name, state, Object.assign(Object.assign({}, opts), { id: id }));
    }
    /**
     * Returns true if the given object is an instance of PrivateZone.  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'] === PrivateZone.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["intelligentMode"] = state ? state.intelligentMode : undefined;
            resourceInputs["loadBalanceMode"] = state ? state.loadBalanceMode : undefined;
            resourceInputs["projectName"] = state ? state.projectName : undefined;
            resourceInputs["recursionMode"] = state ? state.recursionMode : undefined;
            resourceInputs["remark"] = state ? state.remark : undefined;
            resourceInputs["tags"] = state ? state.tags : undefined;
            resourceInputs["vpcTrns"] = state ? state.vpcTrns : undefined;
            resourceInputs["vpcs"] = state ? state.vpcs : undefined;
            resourceInputs["zoneName"] = state ? state.zoneName : undefined;
        }
        else {
            const args = argsOrState;
            if ((!args || args.vpcs === undefined) && !opts.urn) {
                throw new Error("Missing required property 'vpcs'");
            }
            if ((!args || args.zoneName === undefined) && !opts.urn) {
                throw new Error("Missing required property 'zoneName'");
            }
            resourceInputs["intelligentMode"] = args ? args.intelligentMode : undefined;
            resourceInputs["loadBalanceMode"] = args ? args.loadBalanceMode : undefined;
            resourceInputs["projectName"] = args ? args.projectName : undefined;
            resourceInputs["recursionMode"] = args ? args.recursionMode : undefined;
            resourceInputs["remark"] = args ? args.remark : undefined;
            resourceInputs["tags"] = args ? args.tags : undefined;
            resourceInputs["vpcTrns"] = args ? args.vpcTrns : undefined;
            resourceInputs["vpcs"] = args ? args.vpcs : undefined;
            resourceInputs["zoneName"] = args ? args.zoneName : undefined;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(PrivateZone.__pulumiType, name, resourceInputs, opts);
    }
}
exports.PrivateZone = PrivateZone;
/** @internal */
PrivateZone.__pulumiType = 'volcengine:private_zone/privateZone:PrivateZone';
//# sourceMappingURL=privateZone.js.map