Service Fabric Schedule Args
data class ServiceFabricScheduleArgs(val dailyRecurrence: Output<DayDetailsArgs>? = null, val hourlyRecurrence: Output<HourDetailsArgs>? = null, val labName: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val notificationSettings: Output<NotificationSettingsArgs>? = null, val resourceGroupName: Output<String>? = null, val serviceFabricName: Output<String>? = null, val status: Output<Either<String, EnableStatus>>? = null, val tags: Output<Map<String, String>>? = null, val targetResourceId: Output<String>? = null, val taskType: Output<String>? = null, val timeZoneId: Output<String>? = null, val userName: Output<String>? = null, val weeklyRecurrence: Output<WeekDetailsArgs>? = null) : ConvertibleToJava<ServiceFabricScheduleArgs>
A schedule. Azure REST API version: 2018-09-15. Prior API version in Azure Native 1.x: 2018-09-15.
Example Usage
ServiceFabricSchedules_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serviceFabricSchedule = new AzureNative.DevTestLab.ServiceFabricSchedule("serviceFabricSchedule", new()
{
DailyRecurrence = new AzureNative.DevTestLab.Inputs.DayDetailsArgs
{
Time = "19:00",
},
HourlyRecurrence = new AzureNative.DevTestLab.Inputs.HourDetailsArgs
{
Minute = 0,
},
LabName = "{labName}",
Location = "{location}",
Name = "{scheduleName}",
NotificationSettings = new AzureNative.DevTestLab.Inputs.NotificationSettingsArgs
{
EmailRecipient = "{email}",
NotificationLocale = "EN",
Status = "{Enabled|Disabled}",
TimeInMinutes = 15,
WebhookUrl = "{webhoolUrl}",
},
ResourceGroupName = "resourceGroupName",
ServiceFabricName = "{serviceFrabicName}",
Status = "{Enabled|Disabled}",
Tags =
{
{ "tagName1", "tagValue1" },
},
TargetResourceId = "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}",
TaskType = "{Unknown|LabVmsShutdownTask|LabVmsStartupTask|LabVmReclamationTask|ComputeVmShutdownTask}",
TimeZoneId = "Pacific Standard Time",
UserName = "@me",
WeeklyRecurrence = new AzureNative.DevTestLab.Inputs.WeekDetailsArgs
{
Time = "19:00",
Weekdays = new[]
{
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday",
},
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/devtestlab/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devtestlab.NewServiceFabricSchedule(ctx, "serviceFabricSchedule", &devtestlab.ServiceFabricScheduleArgs{
DailyRecurrence: &devtestlab.DayDetailsArgs{
Time: pulumi.String("19:00"),
},
HourlyRecurrence: &devtestlab.HourDetailsArgs{
Minute: pulumi.Int(0),
},
LabName: pulumi.String("{labName}"),
Location: pulumi.String("{location}"),
Name: pulumi.String("{scheduleName}"),
NotificationSettings: &devtestlab.NotificationSettingsArgs{
EmailRecipient: pulumi.String("{email}"),
NotificationLocale: pulumi.String("EN"),
Status: pulumi.String("{Enabled|Disabled}"),
TimeInMinutes: pulumi.Int(15),
WebhookUrl: pulumi.String("{webhoolUrl}"),
},
ResourceGroupName: pulumi.String("resourceGroupName"),
ServiceFabricName: pulumi.String("{serviceFrabicName}"),
Status: pulumi.String("{Enabled|Disabled}"),
Tags: pulumi.StringMap{
"tagName1": pulumi.String("tagValue1"),
},
TargetResourceId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}"),
TaskType: pulumi.String("{Unknown|LabVmsShutdownTask|LabVmsStartupTask|LabVmReclamationTask|ComputeVmShutdownTask}"),
TimeZoneId: pulumi.String("Pacific Standard Time"),
UserName: pulumi.String("@me"),
WeeklyRecurrence: &devtestlab.WeekDetailsArgs{
Time: pulumi.String("19:00"),
Weekdays: pulumi.StringArray{
pulumi.String("Monday"),
pulumi.String("Tuesday"),
pulumi.String("Wednesday"),
pulumi.String("Thursday"),
pulumi.String("Friday"),
pulumi.String("Saturday"),
pulumi.String("Sunday"),
},
},
})
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.devtestlab.ServiceFabricSchedule;
import com.pulumi.azurenative.devtestlab.ServiceFabricScheduleArgs;
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 serviceFabricSchedule = new ServiceFabricSchedule("serviceFabricSchedule", ServiceFabricScheduleArgs.builder()
.dailyRecurrence(Map.of("time", "19:00"))
.hourlyRecurrence(Map.of("minute", 0))
.labName("{labName}")
.location("{location}")
.name("{scheduleName}")
.notificationSettings(Map.ofEntries(
Map.entry("emailRecipient", "{email}"),
Map.entry("notificationLocale", "EN"),
Map.entry("status", "{Enabled|Disabled}"),
Map.entry("timeInMinutes", 15),
Map.entry("webhookUrl", "{webhoolUrl}")
))
.resourceGroupName("resourceGroupName")
.serviceFabricName("{serviceFrabicName}")
.status("{Enabled|Disabled}")
.tags(Map.of("tagName1", "tagValue1"))
.targetResourceId("/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/users/{uniqueIdentifier}/servicefabrics/{serviceFrabicName}")
.taskType("{Unknown|LabVmsShutdownTask|LabVmsStartupTask|LabVmReclamationTask|ComputeVmShutdownTask}")
.timeZoneId("Pacific Standard Time")
.userName("@me")
.weeklyRecurrence(Map.ofEntries(
Map.entry("time", "19:00"),
Map.entry("weekdays",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday")
))
.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:devtestlab:ServiceFabricSchedule {scheduleName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}
Content copied to clipboard
Constructors
Link copied to clipboard
fun ServiceFabricScheduleArgs(dailyRecurrence: Output<DayDetailsArgs>? = null, hourlyRecurrence: Output<HourDetailsArgs>? = null, labName: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, notificationSettings: Output<NotificationSettingsArgs>? = null, resourceGroupName: Output<String>? = null, serviceFabricName: Output<String>? = null, status: Output<Either<String, EnableStatus>>? = null, tags: Output<Map<String, String>>? = null, targetResourceId: Output<String>? = null, taskType: Output<String>? = null, timeZoneId: Output<String>? = null, userName: Output<String>? = null, weeklyRecurrence: Output<WeekDetailsArgs>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in IReadOnlyCollection<string> TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds
(https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md)