@equinix-labs/pulumi-equinix
Version:
A Pulumi package for creating and managing equinix cloud resources.
939 lines • 30.1 kB
JavaScript
"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.Connection = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* ## Example Usage
* ### example fcr to azure
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const fcr2Azure = new equinix.fabric.Connection("fcr2azure", {
* name: "ConnectionName",
* type: "IP_VC",
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: "CLOUD_ROUTER",
* router: {
* uuid: "<cloud_router_uuid>",
* },
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.SP,
* authenticationKey: "<Azure_ExpressRouter_Auth_Key>",
* peeringType: equinix.fabric.AccessPointPeeringType.Private,
* profile: {
* type: equinix.fabric.ProfileType.L2Profile,
* uuid: "<Azure_Service_Profile_UUID>",
* },
* location: {
* metroCode: equinix.index.Metro.SiliconValley,
* },
* },
* },
* });
* ```
* ### example fcr to metal
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const fcr2Metal = new equinix.fabric.Connection("fcr2metal", {
* name: "ConnectionName",
* type: "IP_VC",
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: "CLOUD_ROUTER",
* router: {
* uuid: "<cloud_router_uuid>",
* },
* },
* },
* zSide: {
* accessPoint: {
* type: "METAL_NETWORK",
* authenticationKey: "<metal_authorization_code>",
* },
* },
* });
* ```
* ### example fcr to network
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const fcr2Network = new equinix.fabric.Connection("fcr2network", {
* name: "ConnectionName",
* type: "IPWAN_VC",
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: "CLOUD_ROUTER",
* router: {
* uuid: "<cloud_router_uuid>",
* },
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Network,
* network: {
* uuid: "<network_uuid>",
* },
* },
* },
* });
* ```
* ### example fcr to port
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const fcr2Port = new equinix.fabric.Connection("fcr2port", {
* name: "ConnectionName",
* type: "IP_VC",
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: "CLOUD_ROUTER",
* router: {
* uuid: "<cloud_router_uuid>",
* },
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Colo,
* port: {
* uuid: "<port_uuid>",
* },
* linkProtocol: {
* type: equinix.fabric.AccessPointLinkProtocolType.Dot1q,
* vlanTag: 2711,
* },
* location: {
* metroCode: equinix.index.Metro.SiliconValley,
* },
* },
* },
* });
* ```
* ### example metal to aws
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const metal2Aws = new equinix.fabric.Connection("metal2aws", {
* name: "ConnectionName",
* type: "EVPLAN_VC",
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: "METAL_NETWORK",
* authenticationKey: "<metal_authorization_code>",
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.SP,
* authenticationKey: "<aws_account_id>",
* sellerRegion: "us-west-1",
* profile: {
* type: equinix.fabric.ProfileType.L2Profile,
* uuid: "<service_profile_uuid>",
* },
* location: {
* metroCode: equinix.index.Metro.SiliconValley,
* },
* },
* },
* });
* ```
* ### example port to alibaba
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const port2Alibaba = new equinix.fabric.Connection("port2alibaba", {
* name: "ConnectionName",
* type: equinix.fabric.ConnectionType.EVPL,
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* redundancy: {
* priority: "PRIMARY",
* },
* order: {
* purchaseOrderNumber: "1-323929",
* },
* aSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Colo,
* port: {
* uuid: "<aside_port_uuid>",
* },
* linkProtocol: {
* type: equinix.fabric.AccessPointLinkProtocolType.Dot1q,
* vlanTag: 2019,
* },
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.SP,
* authenticationKey: "<alibaba_account_id>",
* sellerRegion: "us-west-1",
* profile: {
* type: equinix.fabric.ProfileType.L2Profile,
* uuid: "<service_profile_uuid>",
* },
* location: {
* metroCode: equinix.index.Metro.SiliconValley,
* },
* },
* },
* });
* ```
* ### example port to aws
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const port2Aws = new equinix.fabric.Connection("port2aws", {
* name: "ConnectionName",
* type: equinix.fabric.ConnectionType.EVPL,
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* redundancy: {
* priority: "PRIMARY",
* },
* order: {
* purchaseOrderNumber: "1-323929",
* },
* aSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Colo,
* port: {
* uuid: "<aside_port_uuid>",
* },
* linkProtocol: {
* type: equinix.fabric.AccessPointLinkProtocolType.QinQ,
* vlanSTag: 2019,
* vlanCTag: 2112,
* },
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.SP,
* authenticationKey: "<aws_account_id>",
* sellerRegion: "us-west-1",
* profile: {
* type: equinix.fabric.ProfileType.L2Profile,
* uuid: "<service_profile_uuid>",
* },
* location: {
* metroCode: equinix.index.Metro.SiliconValley,
* },
* },
* },
* additionalInfo: [
* {
* key: "accessKey",
* value: "<aws_access_key>",
* },
* {
* key: "secretKey",
* value: "<aws_secret_key>",
* },
* ],
* });
* ```
* ### example port to network eplan
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const eplan = new equinix.fabric.Connection("eplan", {
* name: "ConnectionName",
* type: "EPLAN_VC",
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Colo,
* port: {
* uuid: "<aside_port_uuid>",
* },
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Network,
* network: {
* uuid: "<network_uuid>",
* },
* },
* },
* });
* ```
* ### example port to network evplan
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const evplan = new equinix.fabric.Connection("evplan", {
* name: "ConnectionName",
* type: "EVPLAN_VC",
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Colo,
* port: {
* uuid: "<aside_port_uuid>",
* },
* linkProtocol: {
* type: equinix.fabric.AccessPointLinkProtocolType.Dot1q,
* vlanSTag: 1976,
* },
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Network,
* network: {
* uuid: "<network_uuid>",
* },
* },
* },
* });
* ```
* ### example port to port
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const port2Port = new equinix.fabric.Connection("port2port", {
* name: "ConnectionName",
* type: equinix.fabric.ConnectionType.EVPL,
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Colo,
* port: {
* uuid: "<aside_port_uuid>",
* },
* linkProtocol: {
* type: equinix.fabric.AccessPointLinkProtocolType.QinQ,
* vlanSTag: 1976,
* },
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Colo,
* port: {
* uuid: "<zside_port_uuid>",
* },
* linkProtocol: {
* type: equinix.fabric.AccessPointLinkProtocolType.QinQ,
* vlanSTag: 3711,
* },
* location: {
* metroCode: equinix.index.Metro.SiliconValley,
* },
* },
* },
* });
* ```
* ### example port to port access epl
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const accessEplVc = new equinix.fabric.Connection("accessEplVc", {
* name: "ConnectionName",
* type: equinix.fabric.ConnectionType.AccessEPL,
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Colo,
* port: {
* uuid: "<aside_port_uuid>",
* },
* linkProtocol: {
* type: equinix.fabric.AccessPointLinkProtocolType.QinQ,
* vlanSTag: 1976,
* },
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Colo,
* port: {
* uuid: "<zside_port_uuid>",
* },
* location: {
* metroCode: equinix.index.Metro.SiliconValley,
* },
* },
* },
* });
* ```
* ### example port to port epl
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const epl = new equinix.fabric.Connection("epl", {
* name: "ConnectionName",
* type: equinix.fabric.ConnectionType.EPL,
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Colo,
* port: {
* uuid: "<aside_port_uuid>",
* },
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Colo,
* port: {
* uuid: "<zside_port_uuid>",
* },
* location: {
* metroCode: equinix.index.Metro.SiliconValley,
* },
* },
* },
* });
* ```
* ### example port to vd
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const vd2Port = new equinix.fabric.Connection("vd2port", {
* name: "ConnectionName",
* type: equinix.fabric.ConnectionType.EVPL,
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.VD,
* virtualDevice: {
* type: "EDGE",
* uuid: "<device_uuid>",
* },
* "interface": {
* type: "NETWORK",
* id: 7,
* },
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Colo,
* port: {
* uuid: "<zside_port_uuid>",
* },
* linkProtocol: {
* type: equinix.fabric.AccessPointLinkProtocolType.Dot1q,
* vlanSTag: 3711,
* },
* location: {
* metroCode: equinix.index.Metro.SiliconValley,
* },
* },
* },
* });
* ```
* ### example token to aws
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const token2Aws = new equinix.fabric.Connection("token2aws", {
* name: "ConnectionName",
* type: equinix.fabric.ConnectionType.EVPL,
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* serviceToken: {
* uuid: "<service_token_uuid>",
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.SP,
* authenticationKey: "<aws_account_id>",
* sellerRegion: "us-west-1",
* profile: {
* type: equinix.fabric.ProfileType.L2Profile,
* uuid: "<service_profile_uuid>",
* },
* location: {
* metroCode: equinix.index.Metro.SiliconValley,
* },
* },
* },
* });
* ```
* ### example vd to azure
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const vd2Azure = new equinix.fabric.Connection("vd2azure", {
* name: "ConnectionName",
* type: equinix.fabric.ConnectionType.EVPL,
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.VD,
* virtualDevice: {
* type: "EDGE",
* uuid: "<device_uuid>",
* },
* "interface": {
* type: "CLOUD",
* id: 7,
* },
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.SP,
* authenticationKey: "<Azure_ExpressRouter_Auth_Key>",
* peeringType: equinix.fabric.AccessPointPeeringType.Private,
* profile: {
* type: equinix.fabric.ProfileType.L2Profile,
* uuid: "<Azure_Service_Profile_UUID>",
* },
* location: {
* metroCode: equinix.index.Metro.SiliconValley,
* },
* },
* },
* });
* ```
* ### example vd to azure redundant
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const vd2AzurePrimary = new equinix.fabric.Connection("vd2azurePrimary", {
* name: "ConnectionName",
* type: equinix.fabric.ConnectionType.EVPL,
* redundancy: {
* priority: "PRIMARY",
* },
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.VD,
* virtualDevice: {
* type: "EDGE",
* uuid: "<device_uuid>",
* },
* "interface": {
* type: "CLOUD",
* id: 7,
* },
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.SP,
* authenticationKey: "<Azure_ExpressRouter_Auth_Key>",
* peeringType: equinix.fabric.AccessPointPeeringType.Private,
* profile: {
* type: equinix.fabric.ProfileType.L2Profile,
* uuid: "<Azure_Service_Profile_UUID>",
* },
* location: {
* metroCode: equinix.index.Metro.SiliconValley,
* },
* },
* },
* });
* const vd2AzureSecondary = new equinix.fabric.Connection("vd2azureSecondary", {
* name: "ConnectionName",
* type: equinix.fabric.ConnectionType.EVPL,
* redundancy: {
* priority: "SECONDARY",
* group: vd2AzurePrimary.redundancy.apply(redundancy => redundancy?.group),
* },
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.VD,
* virtualDevice: {
* type: "EDGE",
* uuid: "<device_uuid>",
* },
* "interface": {
* type: "CLOUD",
* id: 5,
* },
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.SP,
* authenticationKey: "<Azure_ExpressRouter_Auth_Key>",
* peeringType: equinix.fabric.AccessPointPeeringType.Private,
* profile: {
* type: equinix.fabric.ProfileType.L2Profile,
* uuid: "<Azure_Service_Profile_UUID>",
* },
* location: {
* metroCode: equinix.index.Metro.SiliconValley,
* },
* },
* },
* });
* ```
* ### example vd to network
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const vd2Network = new equinix.fabric.Connection("vd2network", {
* name: "ConnectionName",
* type: "EVPLAN_VC",
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.VD,
* virtualDevice: {
* type: "EDGE",
* uuid: "<device_uuid>",
* },
* "interface": {
* type: "CLOUD",
* id: 7,
* },
* },
* },
* zSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.Network,
* network: {
* uuid: "<network_uuid>",
* },
* },
* },
* });
* ```
* ### example vd to token
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const vd2Token = new equinix.fabric.Connection("vd2token", {
* name: "ConnectionName",
* type: equinix.fabric.ConnectionType.EVPL,
* notifications: [{
* type: equinix.fabric.NotificationsType.All,
* emails: [
* "example@equinix.com",
* "test1@equinix.com",
* ],
* }],
* bandwidth: 50,
* order: {
* purchaseOrderNumber: "1-323292",
* },
* aSide: {
* accessPoint: {
* type: equinix.fabric.AccessPointType.VD,
* virtualDevice: {
* type: "EDGE",
* uuid: "<device_uuid>",
* },
* "interface": {
* type: "NETWORK",
* id: 7,
* },
* },
* },
* zSide: {
* serviceToken: {
* uuid: "<service_token_uuid>",
* },
* },
* });
* ```
*/
class Connection extends pulumi.CustomResource {
/**
* Get an existing Connection 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 Connection(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Connection. 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'] === Connection.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["aSide"] = state ? state.aSide : undefined;
resourceInputs["account"] = state ? state.account : undefined;
resourceInputs["additionalInfo"] = state ? state.additionalInfo : undefined;
resourceInputs["bandwidth"] = state ? state.bandwidth : undefined;
resourceInputs["changeLog"] = state ? state.changeLog : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["direction"] = state ? state.direction : undefined;
resourceInputs["href"] = state ? state.href : undefined;
resourceInputs["isRemote"] = state ? state.isRemote : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["notifications"] = state ? state.notifications : undefined;
resourceInputs["operation"] = state ? state.operation : undefined;
resourceInputs["order"] = state ? state.order : undefined;
resourceInputs["project"] = state ? state.project : undefined;
resourceInputs["redundancy"] = state ? state.redundancy : undefined;
resourceInputs["state"] = state ? state.state : undefined;
resourceInputs["type"] = state ? state.type : undefined;
resourceInputs["uuid"] = state ? state.uuid : undefined;
resourceInputs["zSide"] = state ? state.zSide : undefined;
}
else {
const args = argsOrState;
if ((!args || args.aSide === undefined) && !opts.urn) {
throw new Error("Missing required property 'aSide'");
}
if ((!args || args.bandwidth === undefined) && !opts.urn) {
throw new Error("Missing required property 'bandwidth'");
}
if ((!args || args.notifications === undefined) && !opts.urn) {
throw new Error("Missing required property 'notifications'");
}
if ((!args || args.type === undefined) && !opts.urn) {
throw new Error("Missing required property 'type'");
}
if ((!args || args.zSide === undefined) && !opts.urn) {
throw new Error("Missing required property 'zSide'");
}
resourceInputs["aSide"] = args ? args.aSide : undefined;
resourceInputs["additionalInfo"] = args ? args.additionalInfo : undefined;
resourceInputs["bandwidth"] = args ? args.bandwidth : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["notifications"] = args ? args.notifications : undefined;
resourceInputs["order"] = args ? args.order : undefined;
resourceInputs["project"] = args ? args.project : undefined;
resourceInputs["redundancy"] = args ? args.redundancy : undefined;
resourceInputs["type"] = args ? args.type : undefined;
resourceInputs["zSide"] = args ? args.zSide : undefined;
resourceInputs["account"] = undefined /*out*/;
resourceInputs["changeLog"] = undefined /*out*/;
resourceInputs["direction"] = undefined /*out*/;
resourceInputs["href"] = undefined /*out*/;
resourceInputs["isRemote"] = undefined /*out*/;
resourceInputs["operation"] = undefined /*out*/;
resourceInputs["state"] = undefined /*out*/;
resourceInputs["uuid"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Connection.__pulumiType, name, resourceInputs, opts);
}
}
exports.Connection = Connection;
/** @internal */
Connection.__pulumiType = 'equinix:fabric/connection:Connection';
//# sourceMappingURL=connection.js.map