UNPKG

@spacelift-io/pulumi-spacelift

Version:

A Pulumi package for creating and managing Spacelift resources.

47 lines 1.78 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.getScheduledTaskOutput = exports.getScheduledTask = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * `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", * }); * ``` */ function getScheduledTask(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("spacelift:index/getScheduledTask:getScheduledTask", { "scheduledTaskId": args.scheduledTaskId, }, opts); } exports.getScheduledTask = getScheduledTask; /** * `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", * }); * ``` */ function getScheduledTaskOutput(args, opts) { return pulumi.output(args).apply((a) => getScheduledTask(a, opts)); } exports.getScheduledTaskOutput = getScheduledTaskOutput; //# sourceMappingURL=getScheduledTask.js.map