@cuemby/equinix
Version:
A Pulumi package for creating and managing equinix cloud resources.
69 lines • 3.26 kB
JavaScript
;
// *** 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.ECXL2ConnectionAccepter = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* ## Import
*
* This resource can be imported using an existing ID
*
* ```sh
* $ pulumi import equinix:index/eCXL2ConnectionAccepter:ECXL2ConnectionAccepter example {existing_id}
* ```
*/
class ECXL2ConnectionAccepter extends pulumi.CustomResource {
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["accessKey"] = state ? state.accessKey : undefined;
resourceInputs["awsConnectionId"] = state ? state.awsConnectionId : undefined;
resourceInputs["awsProfile"] = state ? state.awsProfile : undefined;
resourceInputs["connectionId"] = state ? state.connectionId : undefined;
resourceInputs["secretKey"] = state ? state.secretKey : undefined;
}
else {
const args = argsOrState;
if ((!args || args.connectionId === undefined) && !opts.urn) {
throw new Error("Missing required property 'connectionId'");
}
resourceInputs["accessKey"] = args ? args.accessKey : undefined;
resourceInputs["awsProfile"] = args ? args.awsProfile : undefined;
resourceInputs["connectionId"] = args ? args.connectionId : undefined;
resourceInputs["secretKey"] = args ? args.secretKey : undefined;
resourceInputs["awsConnectionId"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ECXL2ConnectionAccepter.__pulumiType, name, resourceInputs, opts);
}
/**
* Get an existing ECXL2ConnectionAccepter 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 ECXL2ConnectionAccepter(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of ECXL2ConnectionAccepter. 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'] === ECXL2ConnectionAccepter.__pulumiType;
}
}
exports.ECXL2ConnectionAccepter = ECXL2ConnectionAccepter;
/** @internal */
ECXL2ConnectionAccepter.__pulumiType = 'equinix:index/eCXL2ConnectionAccepter:ECXL2ConnectionAccepter';
//# sourceMappingURL=ecxl2connectionAccepter.js.map