UNPKG

@pulumiverse/cpln

Version:

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

70 lines 2.22 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.getOrgOutput = exports.getOrg = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Output the ID and name of the current [org](https://docs.controlplane.com/reference/org). * * ## Outputs * * The following attributes are exported: * * - **cpln_id** (String) The ID, in GUID format, of the org. * - **name** (String) The name of org. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cpln from "@pulumiverse/cpln"; * * const org = cpln.getOrg({}); * export const orgId = org.then(org => org.id); * export const orgName = org.then(org => org.name); * ``` */ function getOrg(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("cpln:index/getOrg:getOrg", { "authConfig": args.authConfig, "observability": args.observability, "security": args.security, }, opts); } exports.getOrg = getOrg; /** * Output the ID and name of the current [org](https://docs.controlplane.com/reference/org). * * ## Outputs * * The following attributes are exported: * * - **cpln_id** (String) The ID, in GUID format, of the org. * - **name** (String) The name of org. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cpln from "@pulumiverse/cpln"; * * const org = cpln.getOrg({}); * export const orgId = org.then(org => org.id); * export const orgName = org.then(org => org.name); * ``` */ function getOrgOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("cpln:index/getOrg:getOrg", { "authConfig": args.authConfig, "observability": args.observability, "security": args.security, }, opts); } exports.getOrgOutput = getOrgOutput; //# sourceMappingURL=getOrg.js.map