ScheduleArgs

data class ScheduleArgs(val frequency: Output<Either<String, ScheduledFrequency>>? = null, val poolName: Output<String>? = null, val projectName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val scheduleName: Output<String>? = null, val state: Output<Either<String, EnableStatus>>? = null, val time: Output<String>? = null, val timeZone: Output<String>? = null, val top: Output<Int>? = null, val type: Output<Either<String, ScheduledType>>? = null) : ConvertibleToJava<ScheduleArgs>

Represents a Schedule to execute a task. API Version: 2022-09-01-preview.

Example Usage

Schedules_CreateDailyShutdownPoolSchedule

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var schedule = new AzureNative.DevCenter.Schedule("schedule", new()
{
Frequency = "Daily",
PoolName = "DevPool",
ProjectName = "DevProject",
ResourceGroupName = "rg1",
ScheduleName = "autoShutdown",
State = "Enabled",
Time = "17:30",
TimeZone = "America/Los_Angeles",
Type = "StopDevBox",
});
});
package main
import (
devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devcenter.NewSchedule(ctx, "schedule", &devcenter.ScheduleArgs{
Frequency: pulumi.String("Daily"),
PoolName: pulumi.String("DevPool"),
ProjectName: pulumi.String("DevProject"),
ResourceGroupName: pulumi.String("rg1"),
ScheduleName: pulumi.String("autoShutdown"),
State: pulumi.String("Enabled"),
Time: pulumi.String("17:30"),
TimeZone: pulumi.String("America/Los_Angeles"),
Type: pulumi.String("StopDevBox"),
})
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.devcenter.Schedule;
import com.pulumi.azurenative.devcenter.ScheduleArgs;
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()
.frequency("Daily")
.poolName("DevPool")
.projectName("DevProject")
.resourceGroupName("rg1")
.scheduleName("autoShutdown")
.state("Enabled")
.time("17:30")
.timeZone("America/Los_Angeles")
.type("StopDevBox")
.build());
}
}

Import

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

$ pulumi import azure-native:devcenter:Schedule autoShutdown /subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown

Constructors

Link copied to clipboard
constructor(frequency: Output<Either<String, ScheduledFrequency>>? = null, poolName: Output<String>? = null, projectName: Output<String>? = null, resourceGroupName: Output<String>? = null, scheduleName: Output<String>? = null, state: Output<Either<String, EnableStatus>>? = null, time: Output<String>? = null, timeZone: Output<String>? = null, top: Output<Int>? = null, type: Output<Either<String, ScheduledType>>? = null)

Properties

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

The frequency of this scheduled task.

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

Name of the pool.

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

The name of the project.

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

Name of the resource group within the Azure subscription.

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

The name of the schedule that uniquely identifies it.

Link copied to clipboard
val state: Output<Either<String, EnableStatus>>? = null

Indicates whether or not this scheduled task is enabled.

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

The target time to trigger the action. The format is HH:MM.

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

The IANA timezone id at which the schedule should execute.

Link copied to clipboard
val top: Output<Int>? = null

The maximum number of resources to return from the operation. Example: '$top=10'.

Link copied to clipboard
val type: Output<Either<String, ScheduledType>>? = null

Supported type this scheduled task represents.

Functions

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