UNPKG

@pulumi/vault

Version:

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

90 lines 2.99 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.getOidcOpenidConfigOutput = exports.getOidcOpenidConfig = 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 key = new vault.identity.OidcKey("key", { * name: "key", * allowedClientIds: ["*"], * rotationPeriod: 3600, * verificationTtl: 3600, * }); * const app = new vault.identity.OidcClient("app", { * name: "application", * key: key.name, * redirectUris: [ * "http://127.0.0.1:9200/v1/auth-methods/oidc:authenticate:callback", * "http://127.0.0.1:8251/callback", * "http://127.0.0.1:8080/callback", * ], * idTokenTtl: 2400, * accessTokenTtl: 7200, * }); * const provider = new vault.identity.OidcProvider("provider", { * name: "provider", * allowedClientIds: [test.clientId], * }); * const config = vault.identity.getOidcOpenidConfigOutput({ * name: provider.name, * }); * ``` */ function getOidcOpenidConfig(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vault:identity/getOidcOpenidConfig:getOidcOpenidConfig", { "name": args.name, "namespace": args.namespace, }, opts); } exports.getOidcOpenidConfig = getOidcOpenidConfig; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vault from "@pulumi/vault"; * * const key = new vault.identity.OidcKey("key", { * name: "key", * allowedClientIds: ["*"], * rotationPeriod: 3600, * verificationTtl: 3600, * }); * const app = new vault.identity.OidcClient("app", { * name: "application", * key: key.name, * redirectUris: [ * "http://127.0.0.1:9200/v1/auth-methods/oidc:authenticate:callback", * "http://127.0.0.1:8251/callback", * "http://127.0.0.1:8080/callback", * ], * idTokenTtl: 2400, * accessTokenTtl: 7200, * }); * const provider = new vault.identity.OidcProvider("provider", { * name: "provider", * allowedClientIds: [test.clientId], * }); * const config = vault.identity.getOidcOpenidConfigOutput({ * name: provider.name, * }); * ``` */ function getOidcOpenidConfigOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("vault:identity/getOidcOpenidConfig:getOidcOpenidConfig", { "name": args.name, "namespace": args.namespace, }, opts); } exports.getOidcOpenidConfigOutput = getOidcOpenidConfigOutput; //# sourceMappingURL=getOidcOpenidConfig.js.map