UNPKG

@spacelift-io/pulumi-spacelift

Version:

A Pulumi package for creating and managing Spacelift resources.

59 lines 2.17 kB
"use strict"; // *** 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.getContextAttachmentOutput = exports.getContextAttachment = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * `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", * }); * ``` */ function getContextAttachment(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("spacelift:index/getContextAttachment:getContextAttachment", { "contextId": args.contextId, "moduleId": args.moduleId, "stackId": args.stackId, }, opts); } exports.getContextAttachment = getContextAttachment; /** * `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", * }); * ``` */ function getContextAttachmentOutput(args, opts) { return pulumi.output(args).apply((a) => getContextAttachment(a, opts)); } exports.getContextAttachmentOutput = getContextAttachmentOutput; //# sourceMappingURL=getContextAttachment.js.map