PatchScheduleArgs

data class PatchScheduleArgs(val default: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val scheduleEntries: Output<List<ScheduleEntryArgs>>? = null) : ConvertibleToJava<PatchScheduleArgs>

Response to put/get patch schedules for Redis cache. Uses Azure REST API version 2024-11-01. Other available API versions: 2016-04-01, 2017-02-01, 2017-10-01, 2018-03-01, 2019-07-01, 2020-06-01, 2020-12-01, 2021-06-01, 2022-05-01, 2022-06-01, 2023-04-01, 2023-05-01-preview, 2023-08-01, 2024-03-01, 2024-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native redis [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

RedisCachePatchSchedulesCreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var patchSchedule = new AzureNative.Redis.PatchSchedule("patchSchedule", new()
{
Default = "default",
Name = "cache1",
ResourceGroupName = "rg1",
ScheduleEntries = new[]
{
new AzureNative.Redis.Inputs.ScheduleEntryArgs
{
DayOfWeek = AzureNative.Redis.DayOfWeek.Monday,
MaintenanceWindow = "PT5H",
StartHourUtc = 12,
},
new AzureNative.Redis.Inputs.ScheduleEntryArgs
{
DayOfWeek = AzureNative.Redis.DayOfWeek.Tuesday,
StartHourUtc = 12,
},
},
});
});
package main
import (
redis "github.com/pulumi/pulumi-azure-native-sdk/redis/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redis.NewPatchSchedule(ctx, "patchSchedule", &redis.PatchScheduleArgs{
Default: pulumi.String("default"),
Name: pulumi.String("cache1"),
ResourceGroupName: pulumi.String("rg1"),
ScheduleEntries: redis.ScheduleEntryArray{
&redis.ScheduleEntryArgs{
DayOfWeek: redis.DayOfWeekMonday,
MaintenanceWindow: pulumi.String("PT5H"),
StartHourUtc: pulumi.Int(12),
},
&redis.ScheduleEntryArgs{
DayOfWeek: redis.DayOfWeekTuesday,
StartHourUtc: pulumi.Int(12),
},
},
})
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.redis.PatchSchedule;
import com.pulumi.azurenative.redis.PatchScheduleArgs;
import com.pulumi.azurenative.redis.inputs.ScheduleEntryArgs;
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 patchSchedule = new PatchSchedule("patchSchedule", PatchScheduleArgs.builder()
.default_("default")
.name("cache1")
.resourceGroupName("rg1")
.scheduleEntries(
ScheduleEntryArgs.builder()
.dayOfWeek("Monday")
.maintenanceWindow("PT5H")
.startHourUtc(12)
.build(),
ScheduleEntryArgs.builder()
.dayOfWeek("Tuesday")
.startHourUtc(12)
.build())
.build());
}
}

Import

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

$ pulumi import azure-native:redis:PatchSchedule cachename1/default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/patchSchedules/{default}

Constructors

Link copied to clipboard
constructor(default: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, scheduleEntries: Output<List<ScheduleEntryArgs>>? = null)

Properties

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

Default string modeled as parameter for auto generation to work correctly.

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

The name of the Redis cache.

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

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val scheduleEntries: Output<List<ScheduleEntryArgs>>? = null

List of patch schedules for a Redis cache.

Functions

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