@spacelift-io/pulumi-spacelift
Version:
A Pulumi package for creating and managing Spacelift resources.
49 lines • 1.84 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSpaceOutput = exports.getSpace = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* `spacelift.Space` represents a Spacelift **space** - a collection of resources such as stacks, modules, policies, etc. Allows for more granular access control. Can have a parent space.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as spacelift from "@pulumi/spacelift";
*
* const space = spacelift.getSpace({
* spaceId: spacelift_space.space.id,
* });
* export const spaceDescription = space.then(space => space.description);
* ```
*/
function getSpace(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("spacelift:index/getSpace:getSpace", {
"spaceId": args.spaceId,
}, opts);
}
exports.getSpace = getSpace;
/**
* `spacelift.Space` represents a Spacelift **space** - a collection of resources such as stacks, modules, policies, etc. Allows for more granular access control. Can have a parent space.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as spacelift from "@pulumi/spacelift";
*
* const space = spacelift.getSpace({
* spaceId: spacelift_space.space.id,
* });
* export const spaceDescription = space.then(space => space.description);
* ```
*/
function getSpaceOutput(args, opts) {
return pulumi.output(args).apply((a) => getSpace(a, opts));
}
exports.getSpaceOutput = getSpaceOutput;
//# sourceMappingURL=getSpace.js.map