@spacelift-io/pulumi-spacelift
Version:
A Pulumi package for creating and managing Spacelift resources.
85 lines (84 loc) • 2.44 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* `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);
* ```
*/
export declare function getSpace(args: GetSpaceArgs, opts?: pulumi.InvokeOptions): Promise<GetSpaceResult>;
/**
* A collection of arguments for invoking getSpace.
*/
export interface GetSpaceArgs {
/**
* immutable ID (slug) of the space
*/
spaceId: string;
}
/**
* A collection of values returned by getSpace.
*/
export interface GetSpaceResult {
/**
* free-form space description for users
*/
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* indication whether access to this space inherits read access to entities from the parent space
*/
readonly inheritEntities: boolean;
/**
* list of labels describing a space
*/
readonly labels: string[];
/**
* name of the space
*/
readonly name: string;
/**
* immutable ID (slug) of parent space
*/
readonly parentSpaceId: string;
/**
* immutable ID (slug) of the space
*/
readonly spaceId: string;
}
/**
* `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);
* ```
*/
export declare function getSpaceOutput(args: GetSpaceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSpaceResult>;
/**
* A collection of arguments for invoking getSpace.
*/
export interface GetSpaceOutputArgs {
/**
* immutable ID (slug) of the space
*/
spaceId: pulumi.Input<string>;
}