Schedule Args
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
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
The frequency of this scheduled task.
Link copied to clipboard
The name of the project.
Link copied to clipboard
Name of the resource group within the Azure subscription.
Link copied to clipboard
The name of the schedule that uniquely identifies it.
Link copied to clipboard
Indicates whether or not this scheduled task is enabled.
Link copied to clipboard
Supported type this scheduled task represents.