BackupScheduleArgs

data class BackupScheduleArgs(val backupPolicyName: Output<String>? = null, val backupScheduleName: Output<String>? = null, val backupType: Output<BackupType>? = null, val deviceName: Output<String>? = null, val kind: Output<Kind>? = null, val managerName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val retentionCount: Output<Double>? = null, val scheduleRecurrence: Output<ScheduleRecurrenceArgs>? = null, val scheduleStatus: Output<ScheduleStatus>? = null, val startTime: Output<String>? = null) : ConvertibleToJava<BackupScheduleArgs>

The backup schedule. Uses Azure REST API version 2017-06-01. In version 2.x of the Azure Native provider, it used API version 2017-06-01.

Example Usage

BackupSchedulesCreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var backupSchedule = new AzureNative.StorSimple.BackupSchedule("backupSchedule", new()
{
BackupPolicyName = "BkUpPolicy01ForSDKTest",
BackupScheduleName = "schedule2",
BackupType = AzureNative.StorSimple.BackupType.CloudSnapshot,
DeviceName = "Device05ForSDKTest",
Kind = AzureNative.StorSimple.Kind.Series8000,
ManagerName = "ManagerForSDKTest1",
ResourceGroupName = "ResourceGroupForSDKTest",
RetentionCount = 1,
ScheduleRecurrence = new AzureNative.StorSimple.Inputs.ScheduleRecurrenceArgs
{
RecurrenceType = AzureNative.StorSimple.RecurrenceType.Weekly,
RecurrenceValue = 1,
WeeklyDaysList = new[]
{
AzureNative.StorSimple.DayOfWeek.Friday,
AzureNative.StorSimple.DayOfWeek.Thursday,
AzureNative.StorSimple.DayOfWeek.Monday,
},
},
ScheduleStatus = AzureNative.StorSimple.ScheduleStatus.Enabled,
StartTime = "2017-06-24T01:00:00Z",
});
});
package main
import (
storsimple "github.com/pulumi/pulumi-azure-native-sdk/storsimple/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storsimple.NewBackupSchedule(ctx, "backupSchedule", &storsimple.BackupScheduleArgs{
BackupPolicyName: pulumi.String("BkUpPolicy01ForSDKTest"),
BackupScheduleName: pulumi.String("schedule2"),
BackupType: storsimple.BackupTypeCloudSnapshot,
DeviceName: pulumi.String("Device05ForSDKTest"),
Kind: storsimple.KindSeries8000,
ManagerName: pulumi.String("ManagerForSDKTest1"),
ResourceGroupName: pulumi.String("ResourceGroupForSDKTest"),
RetentionCount: pulumi.Float64(1),
ScheduleRecurrence: &storsimple.ScheduleRecurrenceArgs{
RecurrenceType: storsimple.RecurrenceTypeWeekly,
RecurrenceValue: pulumi.Int(1),
WeeklyDaysList: storsimple.DayOfWeekArray{
storsimple.DayOfWeekFriday,
storsimple.DayOfWeekThursday,
storsimple.DayOfWeekMonday,
},
},
ScheduleStatus: storsimple.ScheduleStatusEnabled,
StartTime: pulumi.String("2017-06-24T01:00:00Z"),
})
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.storsimple.BackupSchedule;
import com.pulumi.azurenative.storsimple.BackupScheduleArgs;
import com.pulumi.azurenative.storsimple.inputs.ScheduleRecurrenceArgs;
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 backupSchedule = new BackupSchedule("backupSchedule", BackupScheduleArgs.builder()
.backupPolicyName("BkUpPolicy01ForSDKTest")
.backupScheduleName("schedule2")
.backupType("CloudSnapshot")
.deviceName("Device05ForSDKTest")
.kind("Series8000")
.managerName("ManagerForSDKTest1")
.resourceGroupName("ResourceGroupForSDKTest")
.retentionCount(1.0)
.scheduleRecurrence(ScheduleRecurrenceArgs.builder()
.recurrenceType("Weekly")
.recurrenceValue(1)
.weeklyDaysList(
"Friday",
"Thursday",
"Monday")
.build())
.scheduleStatus("Enabled")
.startTime("2017-06-24T01:00:00Z")
.build());
}
}

Import

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

$ pulumi import azure-native:storsimple:BackupSchedule schedule2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}/schedules/{backupScheduleName}

Constructors

Link copied to clipboard
constructor(backupPolicyName: Output<String>? = null, backupScheduleName: Output<String>? = null, backupType: Output<BackupType>? = null, deviceName: Output<String>? = null, kind: Output<Kind>? = null, managerName: Output<String>? = null, resourceGroupName: Output<String>? = null, retentionCount: Output<Double>? = null, scheduleRecurrence: Output<ScheduleRecurrenceArgs>? = null, scheduleStatus: Output<ScheduleStatus>? = null, startTime: Output<String>? = null)

Properties

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

The backup policy name.

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

The backup schedule name.

Link copied to clipboard
val backupType: Output<BackupType>? = null

The type of backup which needs to be taken.

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

The device name

Link copied to clipboard
val kind: Output<Kind>? = null

The Kind of the object. Currently only Series8000 is supported

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

The manager name

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

The resource group name

Link copied to clipboard
val retentionCount: Output<Double>? = null

The number of backups to be retained.

Link copied to clipboard

The schedule recurrence.

Link copied to clipboard
val scheduleStatus: Output<ScheduleStatus>? = null

The schedule status.

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

The start time of the schedule.

Functions

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