import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a maintenance configuration. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleConfiguration = new azure.maintenance.Configuration("example", { * name: "example-mc", * resourceGroupName: example.name, * location: example.location, * scope: "SQLDB", * tags: { * Env: "prod", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Maintenance` - 2023-04-01 * * ## Import * * Maintenance Configuration can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:maintenance/configuration:Configuration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Maintenance/maintenanceConfigurations/example-mc * ``` */ export declare class Configuration extends pulumi.CustomResource { /** * Get an existing Configuration resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ConfigurationState, opts?: pulumi.CustomResourceOptions): Configuration; /** * Returns true if the given object is an instance of Configuration. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Configuration; /** * The in guest user patch mode. Possible values are `Platform` or `User`. Must be specified when `scope` is `InGuestPatch`. */ readonly inGuestUserPatchMode: pulumi.Output; /** * An `installPatches` block as defined below. * * > **Note:** `installPatches` must be specified when `scope` is `InGuestPatch`. */ readonly installPatches: pulumi.Output; /** * Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * A mapping of properties to assign to the resource. */ readonly properties: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * The scope of the Maintenance Configuration. Possible values are `Extension`, `Host`, `InGuestPatch`, `OSImage`, `SQLDB` or `SQLManagedInstance`. */ readonly scope: pulumi.Output; /** * A mapping of tags to assign to the resource. The key could not contain upper case letter. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The visibility of the Maintenance Configuration. The only allowable value is `Custom`. Defaults to `Custom`. */ readonly visibility: pulumi.Output; /** * A `window` block as defined below. */ readonly window: pulumi.Output; /** * Create a Configuration resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ConfigurationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Configuration resources. */ export interface ConfigurationState { /** * The in guest user patch mode. Possible values are `Platform` or `User`. Must be specified when `scope` is `InGuestPatch`. */ inGuestUserPatchMode?: pulumi.Input; /** * An `installPatches` block as defined below. * * > **Note:** `installPatches` must be specified when `scope` is `InGuestPatch`. */ installPatches?: pulumi.Input; /** * Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A mapping of properties to assign to the resource. */ properties?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * The scope of the Maintenance Configuration. Possible values are `Extension`, `Host`, `InGuestPatch`, `OSImage`, `SQLDB` or `SQLManagedInstance`. */ scope?: pulumi.Input; /** * A mapping of tags to assign to the resource. The key could not contain upper case letter. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The visibility of the Maintenance Configuration. The only allowable value is `Custom`. Defaults to `Custom`. */ visibility?: pulumi.Input; /** * A `window` block as defined below. */ window?: pulumi.Input; } /** * The set of arguments for constructing a Configuration resource. */ export interface ConfigurationArgs { /** * The in guest user patch mode. Possible values are `Platform` or `User`. Must be specified when `scope` is `InGuestPatch`. */ inGuestUserPatchMode?: pulumi.Input; /** * An `installPatches` block as defined below. * * > **Note:** `installPatches` must be specified when `scope` is `InGuestPatch`. */ installPatches?: pulumi.Input; /** * Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A mapping of properties to assign to the resource. */ properties?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * The scope of the Maintenance Configuration. Possible values are `Extension`, `Host`, `InGuestPatch`, `OSImage`, `SQLDB` or `SQLManagedInstance`. */ scope: pulumi.Input; /** * A mapping of tags to assign to the resource. The key could not contain upper case letter. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The visibility of the Maintenance Configuration. The only allowable value is `Custom`. Defaults to `Custom`. */ visibility?: pulumi.Input; /** * A `window` block as defined below. */ window?: pulumi.Input; }