import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Automation Schedule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "tfex-automation-account", * location: "West Europe", * }); * const exampleAccount = new azure.automation.Account("example", { * name: "tfex-automation-account", * location: example.location, * resourceGroupName: example.name, * skuName: "Basic", * }); * const exampleSchedule = new azure.automation.Schedule("example", { * name: "tfex-automation-schedule", * resourceGroupName: example.name, * automationAccountName: exampleAccount.name, * frequency: "Week", * interval: 1, * timezone: "Australia/Perth", * startTime: "2014-04-15T18:00:15+02:00", * description: "This is an example schedule", * weekDays: ["Friday"], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Automation` - 2024-10-23 * * ## Import * * Automation Schedule can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:automation/schedule:Schedule schedule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/schedules/schedule1 * ``` */ 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 name of the automation account in which the Schedule is created. Changing this forces a new resource to be created. */ readonly automationAccountName: pulumi.Output; /** * A description for this Schedule. */ readonly description: pulumi.Output; /** * The end time of the schedule. */ readonly expiryTime: pulumi.Output; /** * The frequency of the schedule. - can be either `OneTime`, `Day`, `Hour`, `Week`, or `Month`. */ readonly frequency: pulumi.Output; /** * The number of `frequency`s between runs. Only valid when frequency is `Day`, `Hour`, `Week`, or `Month` and defaults to `1`. */ readonly interval: pulumi.Output; /** * List of days of the month that the job should execute on. Must be between `1` and `31`. `-1` for last day of the month. Only valid when frequency is `Month`. */ readonly monthDays: pulumi.Output; /** * One `monthlyOccurrence` blocks as defined below to specifies occurrences of days within a month. Only valid when frequency is `Month`. The `monthlyOccurrence` block supports fields documented below. */ readonly monthlyOccurrence: pulumi.Output; /** * Specifies the name of the Schedule. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * Start time of the schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created. */ readonly startTime: pulumi.Output; /** * The timezone of the start time. Defaults to `Etc/UTC`. For possible values see: */ readonly timezone: pulumi.Output; /** * List of days of the week that the job should execute on. Only valid when frequency is `Week`. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. */ readonly weekDays: 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 name of the automation account in which the Schedule is created. Changing this forces a new resource to be created. */ automationAccountName?: pulumi.Input; /** * A description for this Schedule. */ description?: pulumi.Input; /** * The end time of the schedule. */ expiryTime?: pulumi.Input; /** * The frequency of the schedule. - can be either `OneTime`, `Day`, `Hour`, `Week`, or `Month`. */ frequency?: pulumi.Input; /** * The number of `frequency`s between runs. Only valid when frequency is `Day`, `Hour`, `Week`, or `Month` and defaults to `1`. */ interval?: pulumi.Input; /** * List of days of the month that the job should execute on. Must be between `1` and `31`. `-1` for last day of the month. Only valid when frequency is `Month`. */ monthDays?: pulumi.Input[]>; /** * One `monthlyOccurrence` blocks as defined below to specifies occurrences of days within a month. Only valid when frequency is `Month`. The `monthlyOccurrence` block supports fields documented below. */ monthlyOccurrence?: pulumi.Input; /** * Specifies the name of the Schedule. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * Start time of the schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created. */ startTime?: pulumi.Input; /** * The timezone of the start time. Defaults to `Etc/UTC`. For possible values see: */ timezone?: pulumi.Input; /** * List of days of the week that the job should execute on. Only valid when frequency is `Week`. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. */ weekDays?: pulumi.Input[]>; } /** * The set of arguments for constructing a Schedule resource. */ export interface ScheduleArgs { /** * The name of the automation account in which the Schedule is created. Changing this forces a new resource to be created. */ automationAccountName: pulumi.Input; /** * A description for this Schedule. */ description?: pulumi.Input; /** * The end time of the schedule. */ expiryTime?: pulumi.Input; /** * The frequency of the schedule. - can be either `OneTime`, `Day`, `Hour`, `Week`, or `Month`. */ frequency: pulumi.Input; /** * The number of `frequency`s between runs. Only valid when frequency is `Day`, `Hour`, `Week`, or `Month` and defaults to `1`. */ interval?: pulumi.Input; /** * List of days of the month that the job should execute on. Must be between `1` and `31`. `-1` for last day of the month. Only valid when frequency is `Month`. */ monthDays?: pulumi.Input[]>; /** * One `monthlyOccurrence` blocks as defined below to specifies occurrences of days within a month. Only valid when frequency is `Month`. The `monthlyOccurrence` block supports fields documented below. */ monthlyOccurrence?: pulumi.Input; /** * Specifies the name of the Schedule. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * Start time of the schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created. */ startTime?: pulumi.Input; /** * The timezone of the start time. Defaults to `Etc/UTC`. For possible values see: */ timezone?: pulumi.Input; /** * List of days of the week that the job should execute on. Only valid when frequency is `Week`. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. */ weekDays?: pulumi.Input[]>; }