UNPKG

@pulumiverse/cpln

Version:

A Pulumi package for creating and managing Control Plane (cpln) resources.

87 lines 4.97 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Secret = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class Secret extends pulumi.CustomResource { /** * Get an existing Secret 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 Secret(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Secret. 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'] === Secret.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["aws"] = state ? state.aws : undefined; resourceInputs["azureConnector"] = state ? state.azureConnector : undefined; resourceInputs["azureSdk"] = state ? state.azureSdk : undefined; resourceInputs["cplnId"] = state ? state.cplnId : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["dictionary"] = state ? state.dictionary : undefined; resourceInputs["dictionaryAsEnvs"] = state ? state.dictionaryAsEnvs : undefined; resourceInputs["docker"] = state ? state.docker : undefined; resourceInputs["ecr"] = state ? state.ecr : undefined; resourceInputs["gcp"] = state ? state.gcp : undefined; resourceInputs["keypair"] = state ? state.keypair : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["natsAccount"] = state ? state.natsAccount : undefined; resourceInputs["opaque"] = state ? state.opaque : undefined; resourceInputs["secretLink"] = state ? state.secretLink : undefined; resourceInputs["selfLink"] = state ? state.selfLink : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["tls"] = state ? state.tls : undefined; resourceInputs["userpass"] = state ? state.userpass : undefined; } else { const args = argsOrState; resourceInputs["aws"] = args ? args.aws : undefined; resourceInputs["azureConnector"] = args ? args.azureConnector : undefined; resourceInputs["azureSdk"] = (args === null || args === void 0 ? void 0 : args.azureSdk) ? pulumi.secret(args.azureSdk) : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["dictionary"] = args ? args.dictionary : undefined; resourceInputs["docker"] = (args === null || args === void 0 ? void 0 : args.docker) ? pulumi.secret(args.docker) : undefined; resourceInputs["ecr"] = args ? args.ecr : undefined; resourceInputs["gcp"] = (args === null || args === void 0 ? void 0 : args.gcp) ? pulumi.secret(args.gcp) : undefined; resourceInputs["keypair"] = args ? args.keypair : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["natsAccount"] = args ? args.natsAccount : undefined; resourceInputs["opaque"] = args ? args.opaque : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["tls"] = args ? args.tls : undefined; resourceInputs["userpass"] = args ? args.userpass : undefined; resourceInputs["cplnId"] = undefined /*out*/; resourceInputs["dictionaryAsEnvs"] = undefined /*out*/; resourceInputs["secretLink"] = undefined /*out*/; resourceInputs["selfLink"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["azureSdk", "docker", "gcp"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(Secret.__pulumiType, name, resourceInputs, opts); } } exports.Secret = Secret; /** @internal */ Secret.__pulumiType = 'cpln:index/secret:Secret'; //# sourceMappingURL=secret.js.map