UNPKG

@spacelift-io/pulumi-spacelift

Version:

A Pulumi package for creating and managing Spacelift resources.

87 lines (86 loc) 3.07 kB
import * as pulumi from "@pulumi/pulumi"; /** * `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", * }); * ``` */ export declare function getDriftDetection(args: GetDriftDetectionArgs, opts?: pulumi.InvokeOptions): Promise<GetDriftDetectionResult>; /** * A collection of arguments for invoking getDriftDetection. */ export interface GetDriftDetectionArgs { /** * Controls whether drift detection should be performed on a stack in any final state instead of just 'Finished'. */ ignoreState?: boolean; /** * ID of the stack for which to set up drift detection */ stackId: string; } /** * A collection of values returned by getDriftDetection. */ export interface GetDriftDetectionResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Controls whether drift detection should be performed on a stack in any final state instead of just 'Finished'. */ readonly ignoreState?: boolean; /** * Whether a tracked run should be triggered when drift is detected. */ readonly reconcile: boolean; /** * List of cron schedule expressions based on which drift detection should be triggered. */ readonly schedules: string[]; /** * ID of the stack for which to set up drift detection */ readonly stackId: string; /** * Timezone in which the schedule is expressed */ readonly timezone: string; } /** * `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", * }); * ``` */ export declare function getDriftDetectionOutput(args: GetDriftDetectionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDriftDetectionResult>; /** * A collection of arguments for invoking getDriftDetection. */ export interface GetDriftDetectionOutputArgs { /** * Controls whether drift detection should be performed on a stack in any final state instead of just 'Finished'. */ ignoreState?: pulumi.Input<boolean>; /** * ID of the stack for which to set up drift detection */ stackId: pulumi.Input<string>; }