import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages automated startup and shutdown schedules for Azure Dev Test Lab. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleLab = new azure.devtest.Lab("example", { * name: "YourDevTestLab", * location: example.location, * resourceGroupName: example.name, * }); * const exampleSchedule = new azure.devtest.Schedule("example", { * name: "LabVmAutoStart", * location: example.location, * resourceGroupName: example.name, * labName: exampleLab.name, * status: "Enabled", * weeklyRecurrence: { * time: "1100", * weekDays: [ * "Monday", * "Tuesday", * ], * }, * timeZoneId: "Pacific Standard Time", * taskType: "LabVmsStartupTask", * notificationSettings: {}, * tags: { * environment: "Production", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.DevTestLab` - 2018-09-15 * * ## Import * * DevTest Schedule's can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:devtest/schedule:Schedule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.DevTestLab/labs/myDevTestLab/schedules/labvmautostart * ``` */ 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, 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; /** * The properties of a daily schedule. If the schedule occurs once each day of the week, specify the daily recurrence. A `dailyRecurrence` block as defined below. */ readonly dailyRecurrence: pulumi.Output; /** * The properties of an hourly schedule. If the schedule occurs multiple times a day, specify the hourly recurrence. A `hourlyRecurrence` block as defined below. */ readonly hourlyRecurrence: pulumi.Output; /** * The name of the dev test lab. Changing this forces a new resource to be created. */ readonly labName: pulumi.Output; /** * The location where the schedule is created. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * The name of the dev test lab schedule. Valid value for name depends on the `taskType`. For instance for taskType `LabVmsStartupTask` the name needs to be `LabVmAutoStart`. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The notification setting of a schedule. A `notificationSettings` block as defined below. */ readonly notificationSettings: pulumi.Output; /** * The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * The status of this schedule. Possible values are `Enabled` and `Disabled`. Defaults to `Disabled`. */ readonly status: pulumi.Output; /** * A mapping of tags to assign to the resource. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The task type of the schedule. Possible values include `LabVmsShutdownTask` and `LabVmAutoStart`. */ readonly taskType: pulumi.Output; /** * The time zone ID (e.g. Pacific Standard time). */ readonly timeZoneId: pulumi.Output; /** * The properties of a weekly schedule. If the schedule occurs only some days of the week, specify the weekly recurrence. A `weeklyRecurrence` block as defined below. */ readonly weeklyRecurrence: pulumi.Output; /** * 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 { /** * The properties of a daily schedule. If the schedule occurs once each day of the week, specify the daily recurrence. A `dailyRecurrence` block as defined below. */ dailyRecurrence?: pulumi.Input; /** * The properties of an hourly schedule. If the schedule occurs multiple times a day, specify the hourly recurrence. A `hourlyRecurrence` block as defined below. */ hourlyRecurrence?: pulumi.Input; /** * The name of the dev test lab. Changing this forces a new resource to be created. */ labName?: pulumi.Input; /** * The location where the schedule is created. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name of the dev test lab schedule. Valid value for name depends on the `taskType`. For instance for taskType `LabVmsStartupTask` the name needs to be `LabVmAutoStart`. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The notification setting of a schedule. A `notificationSettings` block as defined below. */ notificationSettings?: pulumi.Input; /** * The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * The status of this schedule. Possible values are `Enabled` and `Disabled`. Defaults to `Disabled`. */ status?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The task type of the schedule. Possible values include `LabVmsShutdownTask` and `LabVmAutoStart`. */ taskType?: pulumi.Input; /** * The time zone ID (e.g. Pacific Standard time). */ timeZoneId?: pulumi.Input; /** * The properties of a weekly schedule. If the schedule occurs only some days of the week, specify the weekly recurrence. A `weeklyRecurrence` block as defined below. */ weeklyRecurrence?: pulumi.Input; } /** * The set of arguments for constructing a Schedule resource. */ export interface ScheduleArgs { /** * The properties of a daily schedule. If the schedule occurs once each day of the week, specify the daily recurrence. A `dailyRecurrence` block as defined below. */ dailyRecurrence?: pulumi.Input; /** * The properties of an hourly schedule. If the schedule occurs multiple times a day, specify the hourly recurrence. A `hourlyRecurrence` block as defined below. */ hourlyRecurrence?: pulumi.Input; /** * The name of the dev test lab. Changing this forces a new resource to be created. */ labName: pulumi.Input; /** * The location where the schedule is created. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name of the dev test lab schedule. Valid value for name depends on the `taskType`. For instance for taskType `LabVmsStartupTask` the name needs to be `LabVmAutoStart`. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The notification setting of a schedule. A `notificationSettings` block as defined below. */ notificationSettings: pulumi.Input; /** * The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * The status of this schedule. Possible values are `Enabled` and `Disabled`. Defaults to `Disabled`. */ status?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The task type of the schedule. Possible values include `LabVmsShutdownTask` and `LabVmAutoStart`. */ taskType: pulumi.Input; /** * The time zone ID (e.g. Pacific Standard time). */ timeZoneId: pulumi.Input; /** * The properties of a weekly schedule. If the schedule occurs only some days of the week, specify the weekly recurrence. A `weeklyRecurrence` block as defined below. */ weeklyRecurrence?: pulumi.Input; }