UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

134 lines (133 loc) 5.29 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for creating a fixed schedule for Harness AutoStopping rule */ export declare class Schedule extends pulumi.CustomResource { /** * Get an existing Schedule resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ScheduleState, opts?: pulumi.CustomResourceOptions): Schedule; /** * Returns true if the given object is an instance of Schedule. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Schedule; /** * Time until which schedule will be active. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05 */ readonly endingOn: pulumi.Output<string | undefined>; /** * Unique identifier of the schedule */ readonly identifier: pulumi.Output<number>; /** * Name of the schedule */ readonly name: pulumi.Output<string>; /** * For defining periodic schedule. Periodic nature will be applicable from the time of creation of schedule, unless specific 'time_period' is specified */ readonly repeats: pulumi.Output<outputs.autostopping.ScheduleRepeat[] | undefined>; /** * ID of AutoStopping rules on which the schedule applies */ readonly rules: pulumi.Output<number[]>; /** * Type of the schedule. Valid values are `uptime` and `downtime` */ readonly scheduleType: pulumi.Output<string>; /** * Time from which schedule will be active. Schedule will take immediate effect if startingFrom is not specified. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05 */ readonly startingFrom: pulumi.Output<string | undefined>; /** * Time zone in which schedule needs to be executed */ readonly timeZone: pulumi.Output<string>; /** * Create a Schedule resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ScheduleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Schedule resources. */ export interface ScheduleState { /** * Time until which schedule will be active. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05 */ endingOn?: pulumi.Input<string>; /** * Unique identifier of the schedule */ identifier?: pulumi.Input<number>; /** * Name of the schedule */ name?: pulumi.Input<string>; /** * For defining periodic schedule. Periodic nature will be applicable from the time of creation of schedule, unless specific 'time_period' is specified */ repeats?: pulumi.Input<pulumi.Input<inputs.autostopping.ScheduleRepeat>[]>; /** * ID of AutoStopping rules on which the schedule applies */ rules?: pulumi.Input<pulumi.Input<number>[]>; /** * Type of the schedule. Valid values are `uptime` and `downtime` */ scheduleType?: pulumi.Input<string>; /** * Time from which schedule will be active. Schedule will take immediate effect if startingFrom is not specified. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05 */ startingFrom?: pulumi.Input<string>; /** * Time zone in which schedule needs to be executed */ timeZone?: pulumi.Input<string>; } /** * The set of arguments for constructing a Schedule resource. */ export interface ScheduleArgs { /** * Time until which schedule will be active. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05 */ endingOn?: pulumi.Input<string>; /** * Name of the schedule */ name?: pulumi.Input<string>; /** * For defining periodic schedule. Periodic nature will be applicable from the time of creation of schedule, unless specific 'time_period' is specified */ repeats?: pulumi.Input<pulumi.Input<inputs.autostopping.ScheduleRepeat>[]>; /** * ID of AutoStopping rules on which the schedule applies */ rules: pulumi.Input<pulumi.Input<number>[]>; /** * Type of the schedule. Valid values are `uptime` and `downtime` */ scheduleType: pulumi.Input<string>; /** * Time from which schedule will be active. Schedule will take immediate effect if startingFrom is not specified. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05 */ startingFrom?: pulumi.Input<string>; /** * Time zone in which schedule needs to be executed */ timeZone: pulumi.Input<string>; }