UNPKG

@pulumiverse/cpln

Version:

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

87 lines 4.23 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, { ...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?.aws; resourceInputs["azureConnector"] = state?.azureConnector; resourceInputs["azureSdk"] = state?.azureSdk; resourceInputs["cplnId"] = state?.cplnId; resourceInputs["description"] = state?.description; resourceInputs["dictionary"] = state?.dictionary; resourceInputs["dictionaryAsEnvs"] = state?.dictionaryAsEnvs; resourceInputs["docker"] = state?.docker; resourceInputs["ecr"] = state?.ecr; resourceInputs["gcp"] = state?.gcp; resourceInputs["keypair"] = state?.keypair; resourceInputs["name"] = state?.name; resourceInputs["natsAccount"] = state?.natsAccount; resourceInputs["opaque"] = state?.opaque; resourceInputs["secretLink"] = state?.secretLink; resourceInputs["selfLink"] = state?.selfLink; resourceInputs["tags"] = state?.tags; resourceInputs["tls"] = state?.tls; resourceInputs["userpass"] = state?.userpass; } else { const args = argsOrState; resourceInputs["aws"] = args?.aws; resourceInputs["azureConnector"] = args?.azureConnector; resourceInputs["azureSdk"] = args?.azureSdk ? pulumi.secret(args.azureSdk) : undefined; resourceInputs["description"] = args?.description; resourceInputs["dictionary"] = args?.dictionary; resourceInputs["docker"] = args?.docker ? pulumi.secret(args.docker) : undefined; resourceInputs["ecr"] = args?.ecr; resourceInputs["gcp"] = args?.gcp ? pulumi.secret(args.gcp) : undefined; resourceInputs["keypair"] = args?.keypair; resourceInputs["name"] = args?.name; resourceInputs["natsAccount"] = args?.natsAccount; resourceInputs["opaque"] = args?.opaque; resourceInputs["tags"] = args?.tags; resourceInputs["tls"] = args?.tls; resourceInputs["userpass"] = args?.userpass; 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