"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.InterconnectAttachmentGroup = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * An interconnect attachment group resource allows customers to create,
 * analyze, and expand highly available deployments.
 *
 * To get more information about InterconnectAttachmentGroup, see:
 *
 * * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/interconnects)
 * * How-to Guides
 *     * [Create a Dedicated Interconnect](https://cloud.google.com/network-connectivity/docs/interconnect/concepts/dedicated-overview)
 *
 * ## Example Usage
 *
 * ### Interconnect Attachment Group Basic
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const example_interconnect_attachment_group = new gcp.compute.InterconnectAttachmentGroup("example-interconnect-attachment-group", {
 *     name: "example-interconnect-attachment-group",
 *     intent: {
 *         availabilitySla: "NO_SLA",
 *     },
 * });
 * ```
 *
 * ## Import
 *
 * InterconnectAttachmentGroup can be imported using any of these accepted formats:
 *
 * * `projects/{{project}}/global/interconnectAttachmentGroups/{{name}}`
 *
 * * `{{project}}/{{name}}`
 *
 * * `{{name}}`
 *
 * When using the `pulumi import` command, InterconnectAttachmentGroup can be imported using one of the formats above. For example:
 *
 * ```sh
 * $ pulumi import gcp:compute/interconnectAttachmentGroup:InterconnectAttachmentGroup default projects/{{project}}/global/interconnectAttachmentGroups/{{name}}
 * ```
 *
 * ```sh
 * $ pulumi import gcp:compute/interconnectAttachmentGroup:InterconnectAttachmentGroup default {{project}}/{{name}}
 * ```
 *
 * ```sh
 * $ pulumi import gcp:compute/interconnectAttachmentGroup:InterconnectAttachmentGroup default {{name}}
 * ```
 */
class InterconnectAttachmentGroup extends pulumi.CustomResource {
    /**
     * Get an existing InterconnectAttachmentGroup 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 InterconnectAttachmentGroup(name, state, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of InterconnectAttachmentGroup.  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'] === InterconnectAttachmentGroup.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["attachments"] = state?.attachments;
            resourceInputs["configureds"] = state?.configureds;
            resourceInputs["creationTimestamp"] = state?.creationTimestamp;
            resourceInputs["description"] = state?.description;
            resourceInputs["intent"] = state?.intent;
            resourceInputs["interconnectGroup"] = state?.interconnectGroup;
            resourceInputs["logicalStructures"] = state?.logicalStructures;
            resourceInputs["name"] = state?.name;
            resourceInputs["project"] = state?.project;
        }
        else {
            const args = argsOrState;
            if (args?.intent === undefined && !opts.urn) {
                throw new Error("Missing required property 'intent'");
            }
            resourceInputs["attachments"] = args?.attachments;
            resourceInputs["description"] = args?.description;
            resourceInputs["intent"] = args?.intent;
            resourceInputs["interconnectGroup"] = args?.interconnectGroup;
            resourceInputs["name"] = args?.name;
            resourceInputs["project"] = args?.project;
            resourceInputs["configureds"] = undefined /*out*/;
            resourceInputs["creationTimestamp"] = undefined /*out*/;
            resourceInputs["logicalStructures"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(InterconnectAttachmentGroup.__pulumiType, name, resourceInputs, opts);
    }
}
exports.InterconnectAttachmentGroup = InterconnectAttachmentGroup;
/** @internal */
InterconnectAttachmentGroup.__pulumiType = 'gcp:compute/interconnectAttachmentGroup:InterconnectAttachmentGroup';
//# sourceMappingURL=interconnectAttachmentGroup.js.map