UNPKG

@spacelift-io/pulumi-spacelift

Version:

A Pulumi package for creating and managing Spacelift resources.

208 lines (207 loc) 5.42 kB
import * as pulumi from "@pulumi/pulumi"; /** * `spacelift.Context` represents a Spacelift **context** - a collection of configuration elements (either environment variables or mounted files) that can be administratively attached to multiple stacks (`spacelift.Stack`) or modules (`spacelift.Module`) using a context attachment (`spacelift.ContextAttachment`)` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * * const prod-k8s-ie = spacelift.getContext({ * contextId: "prod-k8s-ie", * }); * ``` */ export declare function getContext(args: GetContextArgs, opts?: pulumi.InvokeOptions): Promise<GetContextResult>; /** * A collection of arguments for invoking getContext. */ export interface GetContextArgs { /** * List of after-apply scripts */ afterApplies?: string[]; /** * List of after-destroy scripts */ afterDestroys?: string[]; /** * List of after-init scripts */ afterInits?: string[]; /** * List of after-perform scripts */ afterPerforms?: string[]; /** * List of after-plan scripts */ afterPlans?: string[]; /** * List of after-run scripts */ afterRuns?: string[]; /** * List of before-apply scripts */ beforeApplies?: string[]; /** * List of before-destroy scripts */ beforeDestroys?: string[]; /** * List of before-init scripts */ beforeInits?: string[]; /** * List of before-perform scripts */ beforePerforms?: string[]; /** * List of before-plan scripts */ beforePlans?: string[]; /** * immutable ID (slug) of the context */ contextId: string; } /** * A collection of values returned by getContext. */ export interface GetContextResult { /** * List of after-apply scripts */ readonly afterApplies: string[]; /** * List of after-destroy scripts */ readonly afterDestroys: string[]; /** * List of after-init scripts */ readonly afterInits: string[]; /** * List of after-perform scripts */ readonly afterPerforms: string[]; /** * List of after-plan scripts */ readonly afterPlans: string[]; /** * List of after-run scripts */ readonly afterRuns?: string[]; /** * List of before-apply scripts */ readonly beforeApplies: string[]; /** * List of before-destroy scripts */ readonly beforeDestroys: string[]; /** * List of before-init scripts */ readonly beforeInits: string[]; /** * List of before-perform scripts */ readonly beforePerforms: string[]; /** * List of before-plan scripts */ readonly beforePlans: string[]; /** * immutable ID (slug) of the context */ readonly contextId: string; /** * free-form context description for users */ readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly labels: string[]; /** * name of the context */ readonly name: string; /** * ID (slug) of the space the context is in */ readonly spaceId: string; } /** * `spacelift.Context` represents a Spacelift **context** - a collection of configuration elements (either environment variables or mounted files) that can be administratively attached to multiple stacks (`spacelift.Stack`) or modules (`spacelift.Module`) using a context attachment (`spacelift.ContextAttachment`)` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * * const prod-k8s-ie = spacelift.getContext({ * contextId: "prod-k8s-ie", * }); * ``` */ export declare function getContextOutput(args: GetContextOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetContextResult>; /** * A collection of arguments for invoking getContext. */ export interface GetContextOutputArgs { /** * List of after-apply scripts */ afterApplies?: pulumi.Input<pulumi.Input<string>[]>; /** * List of after-destroy scripts */ afterDestroys?: pulumi.Input<pulumi.Input<string>[]>; /** * List of after-init scripts */ afterInits?: pulumi.Input<pulumi.Input<string>[]>; /** * List of after-perform scripts */ afterPerforms?: pulumi.Input<pulumi.Input<string>[]>; /** * List of after-plan scripts */ afterPlans?: pulumi.Input<pulumi.Input<string>[]>; /** * List of after-run scripts */ afterRuns?: pulumi.Input<pulumi.Input<string>[]>; /** * List of before-apply scripts */ beforeApplies?: pulumi.Input<pulumi.Input<string>[]>; /** * List of before-destroy scripts */ beforeDestroys?: pulumi.Input<pulumi.Input<string>[]>; /** * List of before-init scripts */ beforeInits?: pulumi.Input<pulumi.Input<string>[]>; /** * List of before-perform scripts */ beforePerforms?: pulumi.Input<pulumi.Input<string>[]>; /** * List of before-plan scripts */ beforePlans?: pulumi.Input<pulumi.Input<string>[]>; /** * immutable ID (slug) of the context */ contextId: pulumi.Input<string>; }