"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Boundary = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Application management boundary.
 *
 * To get more information about Boundary, see:
 *
 * * [API documentation](https://docs.cloud.google.com/app-hub/docs/reference/rest/v1/Boundary)
 * * How-to Guides
 *     * [AppHub](https://docs.cloud.google.com/app-hub/docs/)
 *
 * ## Example Usage
 *
 * ### Apphub Boundary Basic
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const example = new gcp.apphub.Boundary("example", {
 *     location: "global",
 *     crmNode: "projects/1111111111111",
 * });
 * ```
 *
 * ## Import
 *
 * Boundary can be imported using any of these accepted formats:
 *
 * * `projects/{{project}}/locations/{{location}}/boundary`
 *
 * * `{{project}}/{{location}}`
 *
 * * `{{location}}`
 *
 * When using the `pulumi import` command, Boundary can be imported using one of the formats above. For example:
 *
 * ```sh
 * $ pulumi import gcp:apphub/boundary:Boundary default projects/{{project}}/locations/{{location}}/boundary
 * ```
 *
 * ```sh
 * $ pulumi import gcp:apphub/boundary:Boundary default {{project}}/{{location}}
 * ```
 *
 * ```sh
 * $ pulumi import gcp:apphub/boundary:Boundary default {{location}}
 * ```
 */
class Boundary extends pulumi.CustomResource {
    /**
     * Get an existing Boundary 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 Boundary(name, state, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of Boundary.  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'] === Boundary.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["createTime"] = state?.createTime;
            resourceInputs["crmNode"] = state?.crmNode;
            resourceInputs["location"] = state?.location;
            resourceInputs["name"] = state?.name;
            resourceInputs["project"] = state?.project;
            resourceInputs["type"] = state?.type;
            resourceInputs["updateTime"] = state?.updateTime;
        }
        else {
            const args = argsOrState;
            if (args?.location === undefined && !opts.urn) {
                throw new Error("Missing required property 'location'");
            }
            resourceInputs["crmNode"] = args?.crmNode;
            resourceInputs["location"] = args?.location;
            resourceInputs["project"] = args?.project;
            resourceInputs["createTime"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["updateTime"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(Boundary.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Boundary = Boundary;
/** @internal */
Boundary.__pulumiType = 'gcp:apphub/boundary:Boundary';
//# sourceMappingURL=boundary.js.map