@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
58 lines • 3.15 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! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
// Export members:
__exportStar(require("./cassandraInstance"), exports);
__exportStar(require("./getCassandraDedicatedResource"), exports);
__exportStar(require("./getCassandraFlavors"), exports);
__exportStar(require("./getCassandraInstance"), exports);
__exportStar(require("./getCassandraInstances"), exports);
__exportStar(require("./getNosqlFlavors"), exports);
__exportStar(require("./getRedisInstance"), exports);
__exportStar(require("./influxInstance"), exports);
__exportStar(require("./mongoInstance"), exports);
__exportStar(require("./redisInstance"), exports);
// Import resources to register:
const cassandraInstance_1 = require("./cassandraInstance");
const influxInstance_1 = require("./influxInstance");
const mongoInstance_1 = require("./mongoInstance");
const redisInstance_1 = require("./redisInstance");
const _module = {
version: utilities.getVersion(),
construct: (name, type, urn) => {
switch (type) {
case "huaweicloud:GaussDBforNoSQL/cassandraInstance:CassandraInstance":
return new cassandraInstance_1.CassandraInstance(name, undefined, { urn });
case "huaweicloud:GaussDBforNoSQL/influxInstance:InfluxInstance":
return new influxInstance_1.InfluxInstance(name, undefined, { urn });
case "huaweicloud:GaussDBforNoSQL/mongoInstance:MongoInstance":
return new mongoInstance_1.MongoInstance(name, undefined, { urn });
case "huaweicloud:GaussDBforNoSQL/redisInstance:RedisInstance":
return new redisInstance_1.RedisInstance(name, undefined, { urn });
default:
throw new Error(`unknown resource type ${type}`);
}
},
};
pulumi.runtime.registerResourceModule("huaweicloud", "GaussDBforNoSQL/cassandraInstance", _module);
pulumi.runtime.registerResourceModule("huaweicloud", "GaussDBforNoSQL/influxInstance", _module);
pulumi.runtime.registerResourceModule("huaweicloud", "GaussDBforNoSQL/mongoInstance", _module);
pulumi.runtime.registerResourceModule("huaweicloud", "GaussDBforNoSQL/redisInstance", _module);
//# sourceMappingURL=index.js.map