azure-native.maintenance.MaintenanceConfiguration
Explore with Pulumi AI
Maintenance configuration record type API Version: 2020-04-01.
Example Usage
MaintenanceConfigurations_CreateOrUpdateForResource
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var maintenanceConfiguration = new AzureNative.Maintenance.MaintenanceConfiguration("maintenanceConfiguration", new()
{
Location = "westus2",
Namespace = "Microsoft.Maintenance",
ResourceGroupName = "examplerg",
ResourceName = "configuration1",
});
});
package main
import (
maintenance "github.com/pulumi/pulumi-azure-native-sdk/maintenance"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := maintenance.NewMaintenanceConfiguration(ctx, "maintenanceConfiguration", &maintenance.MaintenanceConfigurationArgs{
Location: pulumi.String("westus2"),
Namespace: pulumi.String("Microsoft.Maintenance"),
ResourceGroupName: pulumi.String("examplerg"),
ResourceName: pulumi.String("configuration1"),
})
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.maintenance.MaintenanceConfiguration;
import com.pulumi.azurenative.maintenance.MaintenanceConfigurationArgs;
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 maintenanceConfiguration = new MaintenanceConfiguration("maintenanceConfiguration", MaintenanceConfigurationArgs.builder()
.location("westus2")
.namespace("Microsoft.Maintenance")
.resourceGroupName("examplerg")
.resourceName("configuration1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
maintenance_configuration = azure_native.maintenance.MaintenanceConfiguration("maintenanceConfiguration",
location="westus2",
namespace="Microsoft.Maintenance",
resource_group_name="examplerg",
resource_name_="configuration1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const maintenanceConfiguration = new azure_native.maintenance.MaintenanceConfiguration("maintenanceConfiguration", {
location: "westus2",
namespace: "Microsoft.Maintenance",
resourceGroupName: "examplerg",
resourceName: "configuration1",
});
resources:
maintenanceConfiguration:
type: azure-native:maintenance:MaintenanceConfiguration
properties:
location: westus2
namespace: Microsoft.Maintenance
resourceGroupName: examplerg
resourceName: configuration1
Create MaintenanceConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MaintenanceConfiguration(name: string, args: MaintenanceConfigurationArgs, opts?: CustomResourceOptions);
@overload
def MaintenanceConfiguration(resource_name: str,
args: MaintenanceConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MaintenanceConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
extension_properties: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
maintenance_scope: Optional[Union[str, MaintenanceScope]] = None,
namespace: Optional[str] = None,
resource_name_: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewMaintenanceConfiguration(ctx *Context, name string, args MaintenanceConfigurationArgs, opts ...ResourceOption) (*MaintenanceConfiguration, error)
public MaintenanceConfiguration(string name, MaintenanceConfigurationArgs args, CustomResourceOptions? opts = null)
public MaintenanceConfiguration(String name, MaintenanceConfigurationArgs args)
public MaintenanceConfiguration(String name, MaintenanceConfigurationArgs args, CustomResourceOptions options)
type: azure-native:maintenance:MaintenanceConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- name String
- The unique name of the resource.
- args MaintenanceConfigurationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeMaintenanceConfigurationResource = new AzureNative.Maintenance.MaintenanceConfiguration("azure-nativeMaintenanceConfigurationResource", new()
{
ResourceGroupName = "string",
ExtensionProperties =
{
{ "string", "string" },
},
Location = "string",
MaintenanceScope = "string",
Namespace = "string",
ResourceName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := maintenance.NewMaintenanceConfiguration(ctx, "azure-nativeMaintenanceConfigurationResource", &maintenance.MaintenanceConfigurationArgs{
ResourceGroupName: "string",
ExtensionProperties: map[string]interface{}{
"string": "string",
},
Location: "string",
MaintenanceScope: "string",
Namespace: "string",
ResourceName: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var azure_nativeMaintenanceConfigurationResource = new MaintenanceConfiguration("azure-nativeMaintenanceConfigurationResource", MaintenanceConfigurationArgs.builder()
.resourceGroupName("string")
.extensionProperties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.location("string")
.maintenanceScope("string")
.namespace("string")
.resourceName("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
azure_native_maintenance_configuration_resource = azure_native.maintenance.MaintenanceConfiguration("azure-nativeMaintenanceConfigurationResource",
resource_group_name=string,
extension_properties={
string: string,
},
location=string,
maintenance_scope=string,
namespace=string,
resource_name_=string,
tags={
string: string,
})
const azure_nativeMaintenanceConfigurationResource = new azure_native.maintenance.MaintenanceConfiguration("azure-nativeMaintenanceConfigurationResource", {
resourceGroupName: "string",
extensionProperties: {
string: "string",
},
location: "string",
maintenanceScope: "string",
namespace: "string",
resourceName: "string",
tags: {
string: "string",
},
});
type: azure-native:maintenance:MaintenanceConfiguration
properties:
extensionProperties:
string: string
location: string
maintenanceScope: string
namespace: string
resourceGroupName: string
resourceName: string
tags:
string: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MaintenanceConfiguration resource accepts the following input properties:
- Resource
Group stringName - Resource Group Name
- Extension
Properties Dictionary<string, string> - Gets or sets extensionProperties of the maintenanceConfiguration. This is for future use only and would be a set of key value pairs for additional information e.g. whether to follow SDP etc.
- Location string
- Gets or sets location of the resource
- Maintenance
Scope string | Pulumi.Azure Native. Maintenance. Maintenance Scope - Gets or sets maintenanceScope of the configuration. It represent the impact area of the maintenance
- Namespace string
- Gets or sets namespace of the resource e.g. Microsoft.Maintenance or Microsoft.Sql
- Resource
Name string - Resource Identifier
- Dictionary<string, string>
- Gets or sets tags of the resource
- Resource
Group stringName - Resource Group Name
- Extension
Properties map[string]string - Gets or sets extensionProperties of the maintenanceConfiguration. This is for future use only and would be a set of key value pairs for additional information e.g. whether to follow SDP etc.
- Location string
- Gets or sets location of the resource
- Maintenance
Scope string | MaintenanceScope - Gets or sets maintenanceScope of the configuration. It represent the impact area of the maintenance
- Namespace string
- Gets or sets namespace of the resource e.g. Microsoft.Maintenance or Microsoft.Sql
- Resource
Name string - Resource Identifier
- map[string]string
- Gets or sets tags of the resource
- resource
Group StringName - Resource Group Name
- extension
Properties Map<String,String> - Gets or sets extensionProperties of the maintenanceConfiguration. This is for future use only and would be a set of key value pairs for additional information e.g. whether to follow SDP etc.
- location String
- Gets or sets location of the resource
- maintenance
Scope String | MaintenanceScope - Gets or sets maintenanceScope of the configuration. It represent the impact area of the maintenance
- namespace String
- Gets or sets namespace of the resource e.g. Microsoft.Maintenance or Microsoft.Sql
- resource
Name String - Resource Identifier
- Map<String,String>
- Gets or sets tags of the resource
- resource
Group stringName - Resource Group Name
- extension
Properties {[key: string]: string} - Gets or sets extensionProperties of the maintenanceConfiguration. This is for future use only and would be a set of key value pairs for additional information e.g. whether to follow SDP etc.
- location string
- Gets or sets location of the resource
- maintenance
Scope string | MaintenanceScope - Gets or sets maintenanceScope of the configuration. It represent the impact area of the maintenance
- namespace string
- Gets or sets namespace of the resource e.g. Microsoft.Maintenance or Microsoft.Sql
- resource
Name string - Resource Identifier
- {[key: string]: string}
- Gets or sets tags of the resource
- resource_
group_ strname - Resource Group Name
- extension_
properties Mapping[str, str] - Gets or sets extensionProperties of the maintenanceConfiguration. This is for future use only and would be a set of key value pairs for additional information e.g. whether to follow SDP etc.
- location str
- Gets or sets location of the resource
- maintenance_
scope str | MaintenanceScope - Gets or sets maintenanceScope of the configuration. It represent the impact area of the maintenance
- namespace str
- Gets or sets namespace of the resource e.g. Microsoft.Maintenance or Microsoft.Sql
- resource_
name str - Resource Identifier
- Mapping[str, str]
- Gets or sets tags of the resource
- resource
Group StringName - Resource Group Name
- extension
Properties Map<String> - Gets or sets extensionProperties of the maintenanceConfiguration. This is for future use only and would be a set of key value pairs for additional information e.g. whether to follow SDP etc.
- location String
- Gets or sets location of the resource
- maintenance
Scope String | "All" | "Host" | "Resource" | "InResource" - Gets or sets maintenanceScope of the configuration. It represent the impact area of the maintenance
- namespace String
- Gets or sets namespace of the resource e.g. Microsoft.Maintenance or Microsoft.Sql
- resource
Name String - Resource Identifier
- Map<String>
- Gets or sets tags of the resource
Outputs
All input properties are implicitly available as output properties. Additionally, the MaintenanceConfiguration resource produces the following output properties:
Supporting Types
MaintenanceScope, MaintenanceScopeArgs
- All
- All
- Host
- Host
- Resource
- Resource
- In
Resource - InResource
- Maintenance
Scope All - All
- Maintenance
Scope Host - Host
- Maintenance
Scope Resource - Resource
- Maintenance
Scope In Resource - InResource
- All
- All
- Host
- Host
- Resource
- Resource
- In
Resource - InResource
- All
- All
- Host
- Host
- Resource
- Resource
- In
Resource - InResource
- ALL
- All
- HOST
- Host
- RESOURCE
- Resource
- IN_RESOURCE
- InResource
- "All"
- All
- "Host"
- Host
- "Resource"
- Resource
- "In
Resource" - InResource
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:maintenance:MaintenanceConfiguration configuration1 /subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0