Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Azure Native

v1.47.0 published on Saturday, Nov 20, 2021 by Pulumi

MaintenanceConfiguration

maintenance configuration. API Version: 2021-03-01.

Example Usage

Create/Update Maintenance Configuration

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var maintenanceConfiguration = new AzureNative.ContainerService.MaintenanceConfiguration("maintenanceConfiguration", new AzureNative.ContainerService.MaintenanceConfigurationArgs
        {
            ConfigName = "default",
            NotAllowedTime = 
            {
                new AzureNative.ContainerService.Inputs.TimeSpanArgs
                {
                    End = "2020-11-30T12:00:00Z",
                    Start = "2020-11-26T03:00:00Z",
                },
            },
            ResourceGroupName = "rg1",
            ResourceName = "clustername1",
            TimeInWeek = 
            {
                new AzureNative.ContainerService.Inputs.TimeInWeekArgs
                {
                    Day = "Monday",
                    HourSlots = 
                    {
                        1,
                        2,
                    },
                },
            },
        });
    }

}

package main

import (
	containerservice "github.com/pulumi/pulumi-azure-native/sdk/go/azure/containerservice"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := containerservice.NewMaintenanceConfiguration(ctx, "maintenanceConfiguration", &containerservice.MaintenanceConfigurationArgs{
			ConfigName: pulumi.String("default"),
			NotAllowedTime: []containerservice.TimeSpanArgs{
				&containerservice.TimeSpanArgs{
					End:   pulumi.String("2020-11-30T12:00:00Z"),
					Start: pulumi.String("2020-11-26T03:00:00Z"),
				},
			},
			ResourceGroupName: pulumi.String("rg1"),
			ResourceName:      pulumi.String("clustername1"),
			TimeInWeek: []containerservice.TimeInWeekArgs{
				&containerservice.TimeInWeekArgs{
					Day: pulumi.String("Monday"),
					HourSlots: pulumi.IntArray{
						pulumi.Int(1),
						pulumi.Int(2),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

import pulumi
import pulumi_azure_native as azure_native

maintenance_configuration = azure_native.containerservice.MaintenanceConfiguration("maintenanceConfiguration",
    config_name="default",
    not_allowed_time=[azure_native.containerservice.TimeSpanArgs(
        end="2020-11-30T12:00:00Z",
        start="2020-11-26T03:00:00Z",
    )],
    resource_group_name="rg1",
    resource_name="clustername1",
    time_in_week=[azure_native.containerservice.TimeInWeekArgs(
        day="Monday",
        hour_slots=[
            1,
            2,
        ],
    )])

import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const maintenanceConfiguration = new azure_native.containerservice.MaintenanceConfiguration("maintenanceConfiguration", {
    configName: "default",
    notAllowedTime: [{
        end: "2020-11-30T12:00:00Z",
        start: "2020-11-26T03:00:00Z",
    }],
    resourceGroupName: "rg1",
    resourceName: "clustername1",
    timeInWeek: [{
        day: "Monday",
        hourSlots: [
            1,
            2,
        ],
    }],
});

Create a MaintenanceConfiguration Resource

new MaintenanceConfiguration(name: string, args: MaintenanceConfigurationArgs, opts?: CustomResourceOptions);
@overload
def MaintenanceConfiguration(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             config_name: Optional[str] = None,
                             not_allowed_time: Optional[Sequence[TimeSpanArgs]] = None,
                             resource_group_name: Optional[str] = None,
                             resource_name_: Optional[str] = None,
                             time_in_week: Optional[Sequence[TimeInWeekArgs]] = None)
@overload
def MaintenanceConfiguration(resource_name: str,
                             args: MaintenanceConfigurationArgs,
                             opts: Optional[ResourceOptions] = None)
func NewMaintenanceConfiguration(ctx *Context, name string, args MaintenanceConfigurationArgs, opts ...ResourceOption) (*MaintenanceConfiguration, error)
public MaintenanceConfiguration(string name, MaintenanceConfigurationArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args MaintenanceConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args MaintenanceConfigurationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args MaintenanceConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args MaintenanceConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

MaintenanceConfiguration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The MaintenanceConfiguration resource accepts the following input properties:

ResourceGroupName string
The name of the resource group.
ResourceName string
The name of the managed cluster resource.
ConfigName string
The name of the maintenance configuration.
NotAllowedTime List<Pulumi.AzureNative.ContainerService.Inputs.TimeSpanArgs>
Time slots on which upgrade is not allowed.
TimeInWeek List<Pulumi.AzureNative.ContainerService.Inputs.TimeInWeekArgs>
Weekday time slots allowed to upgrade.
ResourceGroupName string
The name of the resource group.
ResourceName string
The name of the managed cluster resource.
ConfigName string
The name of the maintenance configuration.
NotAllowedTime []TimeSpanArgs
Time slots on which upgrade is not allowed.
TimeInWeek []TimeInWeekArgs
Weekday time slots allowed to upgrade.
resourceGroupName string
The name of the resource group.
resourceName string
The name of the managed cluster resource.
configName string
The name of the maintenance configuration.
notAllowedTime TimeSpanArgs[]
Time slots on which upgrade is not allowed.
timeInWeek TimeInWeekArgs[]
Weekday time slots allowed to upgrade.
resource_group_name str
The name of the resource group.
resource_name str
The name of the managed cluster resource.
config_name str
The name of the maintenance configuration.
not_allowed_time Sequence[TimeSpanArgs]
Time slots on which upgrade is not allowed.
time_in_week Sequence[TimeInWeekArgs]
Weekday time slots allowed to upgrade.

Outputs

All input properties are implicitly available as output properties. Additionally, the MaintenanceConfiguration resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource that is unique within a resource group. This name can be used to access the resource.
SystemData Pulumi.AzureNative.ContainerService.Outputs.SystemDataResponse
The system meta data relating to this resource.
Type string
Resource type
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource that is unique within a resource group. This name can be used to access the resource.
SystemData SystemDataResponse
The system meta data relating to this resource.
Type string
Resource type
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource that is unique within a resource group. This name can be used to access the resource.
systemData SystemDataResponse
The system meta data relating to this resource.
type string
Resource type
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource that is unique within a resource group. This name can be used to access the resource.
system_data SystemDataResponse
The system meta data relating to this resource.
type str
Resource type

Supporting Types

SystemDataResponse

CreatedAt string
The UTC timestamp of resource creation.
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The type of identity that last modified the resource.
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The UTC timestamp of resource creation.
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The type of identity that last modified the resource.
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt string
The UTC timestamp of resource creation.
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The type of identity that last modified the resource.
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The UTC timestamp of resource creation.
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The type of identity that last modified the resource.
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.

TimeInWeek

Day string | Pulumi.AzureNative.ContainerService.WeekDay
A day in a week.
HourSlots List<int>
hour slots in a day.
Day string | WeekDay
A day in a week.
HourSlots []int
hour slots in a day.
day string | WeekDay
A day in a week.
hourSlots number[]
hour slots in a day.
day str | WeekDay
A day in a week.
hour_slots Sequence[int]
hour slots in a day.

TimeInWeekResponse

Day string
A day in a week.
HourSlots List<int>
hour slots in a day.
Day string
A day in a week.
HourSlots []int
hour slots in a day.
day string
A day in a week.
hourSlots number[]
hour slots in a day.
day str
A day in a week.
hour_slots Sequence[int]
hour slots in a day.

TimeSpan

End string
The end of a time span
Start string
The start of a time span
End string
The end of a time span
Start string
The start of a time span
end string
The end of a time span
start string
The start of a time span
end str
The end of a time span
start str
The start of a time span

TimeSpanResponse

End string
The end of a time span
Start string
The start of a time span
End string
The end of a time span
Start string
The start of a time span
end string
The end of a time span
start string
The start of a time span
end str
The end of a time span
start str
The start of a time span

WeekDay

Sunday
Sunday
Monday
Monday
Tuesday
Tuesday
Wednesday
Wednesday
Thursday
Thursday
Friday
Friday
Saturday
Saturday
WeekDaySunday
Sunday
WeekDayMonday
Monday
WeekDayTuesday
Tuesday
WeekDayWednesday
Wednesday
WeekDayThursday
Thursday
WeekDayFriday
Friday
WeekDaySaturday
Saturday
Sunday
Sunday
Monday
Monday
Tuesday
Tuesday
Wednesday
Wednesday
Thursday
Thursday
Friday
Friday
Saturday
Saturday
SUNDAY
Sunday
MONDAY
Monday
TUESDAY
Tuesday
WEDNESDAY
Wednesday
THURSDAY
Thursday
FRIDAY
Friday
SATURDAY
Saturday

Import

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

$ pulumi import azure-native:containerservice:MaintenanceConfiguration default /subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/maintenanceConfigurations/default 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0