ScheduleArgs

data class ScheduleArgs(val advancedSchedule: Output<AdvancedScheduleArgs>? = null, val automationAccountName: Output<String>? = null, val description: Output<String>? = null, val expiryTime: Output<String>? = null, val frequency: Output<Either<String, ScheduleFrequency>>? = null, val interval: Output<Any>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val scheduleName: Output<String>? = null, val startTime: Output<String>? = null, val timeZone: Output<String>? = null) : ConvertibleToJava<ScheduleArgs>

Definition of the schedule. Uses Azure REST API version 2023-11-01. In version 2.x of the Azure Native provider, it used API version 2022-08-08. Other available API versions: 2015-10-31, 2019-06-01, 2020-01-13-preview, 2022-08-08, 2023-05-15-preview, 2024-10-23. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native automation [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create or update a schedule

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var schedule = new AzureNative.Automation.Schedule("schedule", new()
{
AdvancedSchedule = null,
AutomationAccountName = "myAutomationAccount33",
Description = "my description of schedule goes here",
ExpiryTime = "2017-04-01T17:28:57.2494819Z",
Frequency = AzureNative.Automation.ScheduleFrequency.Hour,
Interval = 1,
Name = "mySchedule",
ResourceGroupName = "rg",
ScheduleName = "mySchedule",
StartTime = "2017-03-27T17:28:57.2494819Z",
});
});
package main
import (
automation "github.com/pulumi/pulumi-azure-native-sdk/automation/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := automation.NewSchedule(ctx, "schedule", &automation.ScheduleArgs{
AdvancedSchedule: &automation.AdvancedScheduleArgs{},
AutomationAccountName: pulumi.String("myAutomationAccount33"),
Description: pulumi.String("my description of schedule goes here"),
ExpiryTime: pulumi.String("2017-04-01T17:28:57.2494819Z"),
Frequency: pulumi.String(automation.ScheduleFrequencyHour),
Interval: pulumi.Any(1),
Name: pulumi.String("mySchedule"),
ResourceGroupName: pulumi.String("rg"),
ScheduleName: pulumi.String("mySchedule"),
StartTime: pulumi.String("2017-03-27T17:28:57.2494819Z"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.automation.Schedule;
import com.pulumi.azurenative.automation.ScheduleArgs;
import com.pulumi.azurenative.automation.inputs.AdvancedScheduleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var schedule = new Schedule("schedule", ScheduleArgs.builder()
.advancedSchedule()
.automationAccountName("myAutomationAccount33")
.description("my description of schedule goes here")
.expiryTime("2017-04-01T17:28:57.2494819Z")
.frequency("Hour")
.interval(1)
.name("mySchedule")
.resourceGroupName("rg")
.scheduleName("mySchedule")
.startTime("2017-03-27T17:28:57.2494819Z")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:automation:Schedule mySchedule /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}

Constructors

Link copied to clipboard
constructor(advancedSchedule: Output<AdvancedScheduleArgs>? = null, automationAccountName: Output<String>? = null, description: Output<String>? = null, expiryTime: Output<String>? = null, frequency: Output<Either<String, ScheduleFrequency>>? = null, interval: Output<Any>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, scheduleName: Output<String>? = null, startTime: Output<String>? = null, timeZone: Output<String>? = null)

Properties

Link copied to clipboard

Gets or sets the AdvancedSchedule.

Link copied to clipboard
val automationAccountName: Output<String>? = null

The name of the automation account.

Link copied to clipboard
val description: Output<String>? = null

Gets or sets the description of the schedule.

Link copied to clipboard
val expiryTime: Output<String>? = null

Gets or sets the end time of the schedule.

Link copied to clipboard
val frequency: Output<Either<String, ScheduleFrequency>>? = null

Gets or sets the frequency of the schedule.

Link copied to clipboard
val interval: Output<Any>? = null

Gets or sets the interval of the schedule.

Link copied to clipboard
val name: Output<String>? = null

Gets or sets the name of the Schedule.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Name of an Azure Resource group.

Link copied to clipboard
val scheduleName: Output<String>? = null

The schedule name.

Link copied to clipboard
val startTime: Output<String>? = null

Gets or sets the start time of the schedule.

Link copied to clipboard
val timeZone: Output<String>? = null

Gets or sets the time zone of the schedule.

Functions

Link copied to clipboard
open override fun toJava(): ScheduleArgs