![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.devtestlab.kotlin.ServiceFabricScheduleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.devtestlab.kotlin
import com.pulumi.azurenative.devtestlab.ServiceFabricScheduleArgs.builder
import com.pulumi.azurenative.devtestlab.kotlin.enums.EnableStatus
import com.pulumi.azurenative.devtestlab.kotlin.inputs.DayDetailsArgs
import com.pulumi.azurenative.devtestlab.kotlin.inputs.DayDetailsArgsBuilder
import com.pulumi.azurenative.devtestlab.kotlin.inputs.HourDetailsArgs
import com.pulumi.azurenative.devtestlab.kotlin.inputs.HourDetailsArgsBuilder
import com.pulumi.azurenative.devtestlab.kotlin.inputs.NotificationSettingsArgs
import com.pulumi.azurenative.devtestlab.kotlin.inputs.NotificationSettingsArgsBuilder
import com.pulumi.azurenative.devtestlab.kotlin.inputs.WeekDetailsArgs
import com.pulumi.azurenative.devtestlab.kotlin.inputs.WeekDetailsArgsBuilder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* A schedule.
* Azure REST API version: 2018-09-15. Prior API version in Azure Native 1.x: 2018-09-15.
* ## Example Usage
* ### ServiceFabricSchedules_CreateOrUpdate
* ```csharp
* 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",
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* devtestlab "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
* })
* }
* ```
* ```java
* 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 com.pulumi.azurenative.devtestlab.inputs.DayDetailsArgs;
* import com.pulumi.azurenative.devtestlab.inputs.HourDetailsArgs;
* import com.pulumi.azurenative.devtestlab.inputs.NotificationSettingsArgs;
* import com.pulumi.azurenative.devtestlab.inputs.WeekDetailsArgs;
* 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(DayDetailsArgs.builder()
* .time("19:00")
* .build())
* .hourlyRecurrence(HourDetailsArgs.builder()
* .minute(0)
* .build())
* .labName("{labName}")
* .location("{location}")
* .name("{scheduleName}")
* .notificationSettings(NotificationSettingsArgs.builder()
* .emailRecipient("{email}")
* .notificationLocale("EN")
* .status("{Enabled|Disabled}")
* .timeInMinutes(15)
* .webhookUrl("{webhoolUrl}")
* .build())
* .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(WeekDetailsArgs.builder()
* .time("19:00")
* .weekdays(
* "Monday",
* "Tuesday",
* "Wednesday",
* "Thursday",
* "Friday",
* "Saturday",
* "Sunday")
* .build())
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:devtestlab:ServiceFabricSchedule {scheduleName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}
* ```
* @property dailyRecurrence If the schedule will occur once each day of the week, specify the daily recurrence.
* @property hourlyRecurrence If the schedule will occur multiple times a day, specify the hourly recurrence.
* @property labName The name of the lab.
* @property location The location of the resource.
* @property name The name of the schedule.
* @property notificationSettings Notification settings.
* @property resourceGroupName The name of the resource group.
* @property serviceFabricName The name of the service fabric.
* @property status The status of the schedule (i.e. Enabled, Disabled)
* @property tags The tags of the resource.
* @property targetResourceId The resource ID to which the schedule belongs
* @property taskType The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
* @property timeZoneId 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 TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds` (https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md)
* @property userName The name of the user profile.
* @property weeklyRecurrence If the schedule will occur only some days of the week, specify the weekly recurrence.
*/
public data class ServiceFabricScheduleArgs(
public val dailyRecurrence: Output? = null,
public val hourlyRecurrence: Output? = null,
public val labName: Output? = null,
public val location: Output? = null,
public val name: Output? = null,
public val notificationSettings: Output? = null,
public val resourceGroupName: Output? = null,
public val serviceFabricName: Output? = null,
public val status: Output>? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy