import * as pulumi from "@pulumi/pulumi"; /** * Manages a Resource Group. * * > **Note:** Azure automatically deletes any Resources nested within the Resource Group when a Resource Group is deleted. * * > **Note:** Version 2.72 and later of the Azure Provider include a Feature Toggle which can error if there are any Resources left within the Resource Group at deletion time. This Feature Toggle is disabled in 2.x but enabled by default from 3.0 onwards, and is intended to avoid the unintentional destruction of resources managed outside of Terraform (for example, provisioned by an ARM Template). See the Features block documentation for more information on Feature Toggles within Terraform. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example", * location: "West Europe", * }); * ``` * * ## Import * * Resource Groups can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:core/resourceGroup:ResourceGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1 * ``` */ export declare class ResourceGroup extends pulumi.CustomResource { /** * Get an existing ResourceGroup 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?: ResourceGroupState, opts?: pulumi.CustomResourceOptions): ResourceGroup; /** * Returns true if the given object is an instance of ResourceGroup. 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 ResourceGroup; /** * The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created. */ readonly location: pulumi.Output; /** * The ID of the resource or application that manages this Resource Group. */ readonly managedBy: pulumi.Output; /** * The Name which should be used for this Resource Group. Changing this forces a new Resource Group to be created. */ readonly name: pulumi.Output; /** * A mapping of tags which should be assigned to the Resource Group. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a ResourceGroup 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?: ResourceGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ResourceGroup resources. */ export interface ResourceGroupState { /** * The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created. */ location?: pulumi.Input; /** * The ID of the resource or application that manages this Resource Group. */ managedBy?: pulumi.Input; /** * The Name which should be used for this Resource Group. Changing this forces a new Resource Group to be created. */ name?: pulumi.Input; /** * A mapping of tags which should be assigned to the Resource Group. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a ResourceGroup resource. */ export interface ResourceGroupArgs { /** * The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created. */ location?: pulumi.Input; /** * The ID of the resource or application that manages this Resource Group. */ managedBy?: pulumi.Input; /** * The Name which should be used for this Resource Group. Changing this forces a new Resource Group to be created. */ name?: pulumi.Input; /** * A mapping of tags which should be assigned to the Resource Group. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }