UNPKG

@pulumi/vault

Version:

A Pulumi package for creating and managing HashiCorp Vault cloud resources.

95 lines 4.24 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.OciAuthBackend = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vault from "@pulumi/vault"; * * const example = new vault.OciAuthBackend("example", { * path: exampleVaultAuthBackend.path, * homeTenancyId: "ocid1.tenancy.oc1..aaaaaaaah7zkvaffv26pzyauoe2zbnionqvhvsexamplee557wakiofi4ysgqq", * }); * ``` * * ## Import * * OCI auth backends can be imported using the backend's `path`, e.g. * * ```sh * $ pulumi import vault:index/ociAuthBackend:OciAuthBackend example oci * ``` */ class OciAuthBackend extends pulumi.CustomResource { /** * Get an existing OciAuthBackend 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 OciAuthBackend(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of OciAuthBackend. 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'] === OciAuthBackend.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["accessor"] = state?.accessor; resourceInputs["description"] = state?.description; resourceInputs["disableAutomatedRotation"] = state?.disableAutomatedRotation; resourceInputs["disableRemount"] = state?.disableRemount; resourceInputs["homeTenancyId"] = state?.homeTenancyId; resourceInputs["namespace"] = state?.namespace; resourceInputs["path"] = state?.path; resourceInputs["rotationPeriod"] = state?.rotationPeriod; resourceInputs["rotationSchedule"] = state?.rotationSchedule; resourceInputs["rotationWindow"] = state?.rotationWindow; resourceInputs["tune"] = state?.tune; } else { const args = argsOrState; if (args?.homeTenancyId === undefined && !opts.urn) { throw new Error("Missing required property 'homeTenancyId'"); } resourceInputs["description"] = args?.description; resourceInputs["disableAutomatedRotation"] = args?.disableAutomatedRotation; resourceInputs["disableRemount"] = args?.disableRemount; resourceInputs["homeTenancyId"] = args?.homeTenancyId ? pulumi.secret(args.homeTenancyId) : undefined; resourceInputs["namespace"] = args?.namespace; resourceInputs["path"] = args?.path; resourceInputs["rotationPeriod"] = args?.rotationPeriod; resourceInputs["rotationSchedule"] = args?.rotationSchedule; resourceInputs["rotationWindow"] = args?.rotationWindow; resourceInputs["tune"] = args?.tune; resourceInputs["accessor"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["homeTenancyId"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(OciAuthBackend.__pulumiType, name, resourceInputs, opts); } } exports.OciAuthBackend = OciAuthBackend; /** @internal */ OciAuthBackend.__pulumiType = 'vault:index/ociAuthBackend:OciAuthBackend'; //# sourceMappingURL=ociAuthBackend.js.map