UNPKG

@spacelift-io/pulumi-spacelift

Version:

A Pulumi package for creating and managing Spacelift resources.

101 lines (100 loc) 3 kB
import * as pulumi from "@pulumi/pulumi"; /** * `spacelift.ContextAttachment` represents a Spacelift attachment of a single context to a single stack or module, with a predefined priority. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * * const apps-k8s-ie = spacelift.getContextAttachment({ * contextId: "prod-k8s-ie", * stackId: "apps-cluster", * }); * const kafka-k8s-ie = spacelift.getContextAttachment({ * contextId: "prod-k8s-ie", * moduleId: "terraform-aws-kafka", * }); * ``` */ export declare function getContextAttachment(args: GetContextAttachmentArgs, opts?: pulumi.InvokeOptions): Promise<GetContextAttachmentResult>; /** * A collection of arguments for invoking getContextAttachment. */ export interface GetContextAttachmentArgs { /** * ID of the attached context */ contextId: string; /** * ID of the attached module */ moduleId?: string; /** * ID of the attached stack */ stackId?: string; } /** * A collection of values returned by getContextAttachment. */ export interface GetContextAttachmentResult { /** * ID of the attached context */ readonly contextId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * ID of the attached module */ readonly moduleId?: string; /** * Priority of the context attachment. All the contexts attached to a stack are sorted by priority (lowest first), though values don't need to be unique. This ordering establishes precedence rules between contexts should there be a conflict and multiple contexts define the same value. */ readonly priority: number; /** * ID of the attached stack */ readonly stackId?: string; } /** * `spacelift.ContextAttachment` represents a Spacelift attachment of a single context to a single stack or module, with a predefined priority. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * * const apps-k8s-ie = spacelift.getContextAttachment({ * contextId: "prod-k8s-ie", * stackId: "apps-cluster", * }); * const kafka-k8s-ie = spacelift.getContextAttachment({ * contextId: "prod-k8s-ie", * moduleId: "terraform-aws-kafka", * }); * ``` */ export declare function getContextAttachmentOutput(args: GetContextAttachmentOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetContextAttachmentResult>; /** * A collection of arguments for invoking getContextAttachment. */ export interface GetContextAttachmentOutputArgs { /** * ID of the attached context */ contextId: pulumi.Input<string>; /** * ID of the attached module */ moduleId?: pulumi.Input<string>; /** * ID of the attached stack */ stackId?: pulumi.Input<string>; }