import * as pulumi from "@pulumi/pulumi"; /** * Manages a Azure Site Recovery protection container. Protection containers serve as containers for replicated VMs and belong to a single region / recovery fabric. Protection containers can contain more than one replicated VM. To replicate a VM, a container must exist in both the source and target Azure regions. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const primary = new azure.core.ResourceGroup("primary", { * name: "tfex-network-mapping-primary", * location: "West US", * }); * const secondary = new azure.core.ResourceGroup("secondary", { * name: "tfex-network-mapping-secondary", * location: "East US", * }); * const vault = new azure.recoveryservices.Vault("vault", { * name: "example-recovery-vault", * location: secondary.location, * resourceGroupName: secondary.name, * sku: "Standard", * }); * const fabric = new azure.siterecovery.Fabric("fabric", { * name: "primary-fabric", * resourceGroupName: secondary.name, * recoveryVaultName: vault.name, * location: primary.location, * }); * const protection_container = new azure.siterecovery.ProtectionContainer("protection-container", { * name: "protection-container", * resourceGroupName: secondary.name, * recoveryVaultName: vault.name, * recoveryFabricName: fabric.name, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.RecoveryServices` - 2024-04-01 * * ## Import * * Site Recovery Protection Containers can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:siterecovery/protectionContainer:ProtectionContainer mycontainer /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-group-name/providers/Microsoft.RecoveryServices/vaults/recovery-vault-name/replicationFabrics/fabric-name/replicationProtectionContainers/protection-container-name * ``` */ export declare class ProtectionContainer extends pulumi.CustomResource { /** * Get an existing ProtectionContainer 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?: ProtectionContainerState, opts?: pulumi.CustomResourceOptions): ProtectionContainer; /** * Returns true if the given object is an instance of ProtectionContainer. 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 ProtectionContainer; /** * The name of the protection container. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Name of fabric that should contain this protection container. Changing this forces a new resource to be created. */ readonly recoveryFabricName: pulumi.Output; /** * The name of the vault that should be updated. Changing this forces a new resource to be created. */ readonly recoveryVaultName: pulumi.Output; /** * Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * Create a ProtectionContainer 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: ProtectionContainerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ProtectionContainer resources. */ export interface ProtectionContainerState { /** * The name of the protection container. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Name of fabric that should contain this protection container. Changing this forces a new resource to be created. */ recoveryFabricName?: pulumi.Input; /** * The name of the vault that should be updated. Changing this forces a new resource to be created. */ recoveryVaultName?: pulumi.Input; /** * Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; } /** * The set of arguments for constructing a ProtectionContainer resource. */ export interface ProtectionContainerArgs { /** * The name of the protection container. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Name of fabric that should contain this protection container. Changing this forces a new resource to be created. */ recoveryFabricName: pulumi.Input; /** * The name of the vault that should be updated. Changing this forces a new resource to be created. */ recoveryVaultName: pulumi.Input; /** * Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; }