@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
67 lines • 4.5 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.Provider = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* The provider type for the linode package. By default, resources use package-wide configuration
* settings, however an explicit `Provider` instance may be created and passed during resource
* construction to achieve fine-grained programmatic control over provider settings. See the
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
*/
class Provider extends pulumi.ProviderResource {
/**
* Returns true if the given object is an instance of Provider. 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'] === "pulumi:providers:" + Provider.__pulumiType;
}
/**
* Create a Provider resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name, args, opts) {
var _a, _b, _c;
let resourceInputs = {};
opts = opts || {};
{
resourceInputs["apiCaPath"] = args ? args.apiCaPath : undefined;
resourceInputs["apiVersion"] = (_a = (args ? args.apiVersion : undefined)) !== null && _a !== void 0 ? _a : utilities.getEnv("LINODE_API_VERSION");
resourceInputs["configPath"] = args ? args.configPath : undefined;
resourceInputs["configProfile"] = args ? args.configProfile : undefined;
resourceInputs["disableInternalCache"] = pulumi.output(args ? args.disableInternalCache : undefined).apply(JSON.stringify);
resourceInputs["eventPollMs"] = pulumi.output(args ? args.eventPollMs : undefined).apply(JSON.stringify);
resourceInputs["lkeEventPollMs"] = pulumi.output(args ? args.lkeEventPollMs : undefined).apply(JSON.stringify);
resourceInputs["lkeNodeReadyPollMs"] = pulumi.output(args ? args.lkeNodeReadyPollMs : undefined).apply(JSON.stringify);
resourceInputs["maxRetryDelayMs"] = pulumi.output(args ? args.maxRetryDelayMs : undefined).apply(JSON.stringify);
resourceInputs["minRetryDelayMs"] = pulumi.output(args ? args.minRetryDelayMs : undefined).apply(JSON.stringify);
resourceInputs["objAccessKey"] = args ? args.objAccessKey : undefined;
resourceInputs["objBucketForceDelete"] = pulumi.output(args ? args.objBucketForceDelete : undefined).apply(JSON.stringify);
resourceInputs["objSecretKey"] = (args === null || args === void 0 ? void 0 : args.objSecretKey) ? pulumi.secret(args.objSecretKey) : undefined;
resourceInputs["objUseTempKeys"] = pulumi.output(args ? args.objUseTempKeys : undefined).apply(JSON.stringify);
resourceInputs["skipImplicitReboots"] = pulumi.output(args ? args.skipImplicitReboots : undefined).apply(JSON.stringify);
resourceInputs["skipInstanceDeletePoll"] = pulumi.output(args ? args.skipInstanceDeletePoll : undefined).apply(JSON.stringify);
resourceInputs["skipInstanceReadyPoll"] = pulumi.output(args ? args.skipInstanceReadyPoll : undefined).apply(JSON.stringify);
resourceInputs["token"] = args ? args.token : undefined;
resourceInputs["uaPrefix"] = (_b = (args ? args.uaPrefix : undefined)) !== null && _b !== void 0 ? _b : utilities.getEnv("LINODE_UA_PREFIX");
resourceInputs["url"] = (_c = (args ? args.url : undefined)) !== null && _c !== void 0 ? _c : utilities.getEnv("LINODE_URL");
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["objSecretKey"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(Provider.__pulumiType, name, resourceInputs, opts);
}
}
exports.Provider = Provider;
/** @internal */
Provider.__pulumiType = 'linode';
//# sourceMappingURL=provider.js.map
;