@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
69 lines • 3.32 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.IotRoute = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class IotRoute extends pulumi.CustomResource {
/**
* Get an existing IotRoute 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 IotRoute(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of IotRoute. 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'] === IotRoute.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
resourceInputs["database"] = state ? state.database : undefined;
resourceInputs["hubId"] = state ? state.hubId : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["region"] = state ? state.region : undefined;
resourceInputs["rest"] = state ? state.rest : undefined;
resourceInputs["s3"] = state ? state.s3 : undefined;
resourceInputs["topic"] = state ? state.topic : undefined;
}
else {
const args = argsOrState;
if ((!args || args.hubId === undefined) && !opts.urn) {
throw new Error("Missing required property 'hubId'");
}
if ((!args || args.topic === undefined) && !opts.urn) {
throw new Error("Missing required property 'topic'");
}
resourceInputs["database"] = args ? args.database : undefined;
resourceInputs["hubId"] = args ? args.hubId : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["region"] = args ? args.region : undefined;
resourceInputs["rest"] = args ? args.rest : undefined;
resourceInputs["s3"] = args ? args.s3 : undefined;
resourceInputs["topic"] = args ? args.topic : undefined;
resourceInputs["createdAt"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(IotRoute.__pulumiType, name, resourceInputs, opts);
}
}
exports.IotRoute = IotRoute;
/** @internal */
IotRoute.__pulumiType = 'scaleway:index/iotRoute:IotRoute';
//# sourceMappingURL=iotRoute.js.map