UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

118 lines 5.41 kB
"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, Object.assign(Object.assign({}, 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 ? state.attachments : undefined; resourceInputs["configureds"] = state ? state.configureds : undefined; resourceInputs["creationTimestamp"] = state ? state.creationTimestamp : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["intent"] = state ? state.intent : undefined; resourceInputs["interconnectGroup"] = state ? state.interconnectGroup : undefined; resourceInputs["logicalStructures"] = state ? state.logicalStructures : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["project"] = state ? state.project : undefined; } else { const args = argsOrState; if ((!args || args.intent === undefined) && !opts.urn) { throw new Error("Missing required property 'intent'"); } resourceInputs["attachments"] = args ? args.attachments : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["intent"] = args ? args.intent : undefined; resourceInputs["interconnectGroup"] = args ? args.interconnectGroup : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["project"] = args ? args.project : undefined; 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