UNPKG

@spacelift-io/pulumi-spacelift

Version:

A Pulumi package for creating and managing Spacelift resources.

48 lines 2.09 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.getDriftDetectionOutput = exports.getDriftDetection = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * `spacelift.DriftDetection` represents a Drift Detection configuration for a Stack. It will trigger a proposed run on the given schedule, which you can listen for using run state webhooks. If reconcile is true, then a tracked run will be triggered when drift is detected. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * * const core-infra-production-drift-detection = spacelift.getDriftDetection({ * stackId: "core-infra-production", * }); * ``` */ function getDriftDetection(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("spacelift:index/getDriftDetection:getDriftDetection", { "ignoreState": args.ignoreState, "stackId": args.stackId, }, opts); } exports.getDriftDetection = getDriftDetection; /** * `spacelift.DriftDetection` represents a Drift Detection configuration for a Stack. It will trigger a proposed run on the given schedule, which you can listen for using run state webhooks. If reconcile is true, then a tracked run will be triggered when drift is detected. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * * const core-infra-production-drift-detection = spacelift.getDriftDetection({ * stackId: "core-infra-production", * }); * ``` */ function getDriftDetectionOutput(args, opts) { return pulumi.output(args).apply((a) => getDriftDetection(a, opts)); } exports.getDriftDetectionOutput = getDriftDetectionOutput; //# sourceMappingURL=getDriftDetection.js.map