UNPKG

@lbrlabs/pulumi-cockroach

Version:

A Pulumi package to create and managed cockroach db resources in Pulumi programs.

86 lines 4.46 kB
"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.LogExportConfig = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Log Export configuration for a cluster. */ class LogExportConfig extends pulumi.CustomResource { /** * Get an existing LogExportConfig 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 LogExportConfig(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of LogExportConfig. 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'] === LogExportConfig.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["authPrincipal"] = state ? state.authPrincipal : undefined; resourceInputs["clusterId"] = state ? state.clusterId : undefined; resourceInputs["createdAt"] = state ? state.createdAt : undefined; resourceInputs["groups"] = state ? state.groups : undefined; resourceInputs["logName"] = state ? state.logName : undefined; resourceInputs["omittedChannels"] = state ? state.omittedChannels : undefined; resourceInputs["redact"] = state ? state.redact : undefined; resourceInputs["region"] = state ? state.region : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["type"] = state ? state.type : undefined; resourceInputs["updatedAt"] = state ? state.updatedAt : undefined; resourceInputs["userMessage"] = state ? state.userMessage : undefined; } else { const args = argsOrState; if ((!args || args.authPrincipal === undefined) && !opts.urn) { throw new Error("Missing required property 'authPrincipal'"); } if ((!args || args.clusterId === undefined) && !opts.urn) { throw new Error("Missing required property 'clusterId'"); } if ((!args || args.logName === undefined) && !opts.urn) { throw new Error("Missing required property 'logName'"); } if ((!args || args.type === undefined) && !opts.urn) { throw new Error("Missing required property 'type'"); } resourceInputs["authPrincipal"] = args ? args.authPrincipal : undefined; resourceInputs["clusterId"] = args ? args.clusterId : undefined; resourceInputs["groups"] = args ? args.groups : undefined; resourceInputs["logName"] = args ? args.logName : undefined; resourceInputs["omittedChannels"] = args ? args.omittedChannels : undefined; resourceInputs["redact"] = args ? args.redact : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["type"] = args ? args.type : undefined; resourceInputs["createdAt"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["updatedAt"] = undefined /*out*/; resourceInputs["userMessage"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(LogExportConfig.__pulumiType, name, resourceInputs, opts); } } exports.LogExportConfig = LogExportConfig; /** @internal */ LogExportConfig.__pulumiType = 'cockroach:index/logExportConfig:LogExportConfig'; //# sourceMappingURL=logExportConfig.js.map