UNPKG

@spacelift-io/pulumi-spacelift

Version:

A Pulumi package for creating and managing Spacelift resources.

87 lines (86 loc) 2.55 kB
import * as pulumi from "@pulumi/pulumi"; /** * `spacelift.ScheduledTask` represents a scheduling configuration for a Stack. It will trigger a task on the given timestamp/schedule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * * const ireland-kubeconfig-destroy = spacelift.getScheduledTask({ * scheduledTaskId: "$STACK_ID/$SCHEDULED_TASK_ID", * }); * ``` */ export declare function getScheduledTask(args: GetScheduledTaskArgs, opts?: pulumi.InvokeOptions): Promise<GetScheduledTaskResult>; /** * A collection of arguments for invoking getScheduledTask. */ export interface GetScheduledTaskArgs { /** * ID of the scheduled task (stack*id/schedule*id) */ scheduledTaskId: string; } /** * A collection of values returned by getScheduledTask. */ export interface GetScheduledTaskResult { /** * Timestamp (unix timestamp) at which time the scheduling should happen. */ readonly at: number; /** * Command that will be run. */ readonly command: string; /** * List of cron schedule expressions based on which the scheduled task should be triggered. */ readonly everies: string[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * ID of the schedule */ readonly scheduleId: string; /** * ID of the scheduled task (stack*id/schedule*id) */ readonly scheduledTaskId: string; /** * Stack ID of the scheduled task */ readonly stackId: string; /** * Timezone in which the schedule is expressed. Defaults to `UTC`. */ readonly timezone: string; } /** * `spacelift.ScheduledTask` represents a scheduling configuration for a Stack. It will trigger a task on the given timestamp/schedule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * * const ireland-kubeconfig-destroy = spacelift.getScheduledTask({ * scheduledTaskId: "$STACK_ID/$SCHEDULED_TASK_ID", * }); * ``` */ export declare function getScheduledTaskOutput(args: GetScheduledTaskOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetScheduledTaskResult>; /** * A collection of arguments for invoking getScheduledTask. */ export interface GetScheduledTaskOutputArgs { /** * ID of the scheduled task (stack*id/schedule*id) */ scheduledTaskId: pulumi.Input<string>; }