import * as pulumi from "@pulumi/pulumi"; /** * Manages an Azure Site Recovery replication policy for HyperV within a Recovery Vault. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-rg", * location: "East US", * }); * const exampleVault = new azure.recoveryservices.Vault("example", { * name: "example-recovery-vault", * location: example.location, * resourceGroupName: example.name, * sku: "Standard", * }); * const exampleHyperVSite = new azure.siterecovery.HyperVSite("example", { * recoveryVaultId: exampleVault.id, * name: "example-site", * }); * const exampleHyperVReplicationPolicy = new azure.siterecovery.HyperVReplicationPolicy("example", { * name: "policy", * recoveryVaultId: exampleVault.id, * recoveryPointRetentionInHours: 2, * applicationConsistentSnapshotFrequencyInHours: 1, * replicationIntervalInSeconds: 300, * }); * const exampleHyperVReplicationPolicyAssociation = new azure.siterecovery.HyperVReplicationPolicyAssociation("example", { * name: "example-association", * hypervSiteId: exampleHyperVSite.id, * policyId: exampleHyperVReplicationPolicy.id, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.RecoveryServices` - 2024-04-01 * * ## Import * * Site Recovery Replication Policies can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:siterecovery/hyperVReplicationPolicyAssociation:HyperVReplicationPolicyAssociation mypolicy /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-group-name/providers/Microsoft.RecoveryServices/vaults/recovery-vault-name/replicationFabrics/site-name/replicationProtectionContainers/container-name/replicationProtectionContainerMappings/mapping-name * ``` */ export declare class HyperVReplicationPolicyAssociation extends pulumi.CustomResource { /** * Get an existing HyperVReplicationPolicyAssociation 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?: HyperVReplicationPolicyAssociationState, opts?: pulumi.CustomResourceOptions): HyperVReplicationPolicyAssociation; /** * Returns true if the given object is an instance of HyperVReplicationPolicyAssociation. 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 HyperVReplicationPolicyAssociation; /** * The ID of the HyperV site to which the policy should be associated. Changing this forces a new association to be created. */ readonly hypervSiteId: pulumi.Output; /** * The name of the replication policy association. Changing this forces a new association to be created. */ readonly name: pulumi.Output; /** * The ID of the HyperV replication policy which to be associated. Changing this forces a new association to be created. */ readonly policyId: pulumi.Output; /** * Create a HyperVReplicationPolicyAssociation 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: HyperVReplicationPolicyAssociationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HyperVReplicationPolicyAssociation resources. */ export interface HyperVReplicationPolicyAssociationState { /** * The ID of the HyperV site to which the policy should be associated. Changing this forces a new association to be created. */ hypervSiteId?: pulumi.Input; /** * The name of the replication policy association. Changing this forces a new association to be created. */ name?: pulumi.Input; /** * The ID of the HyperV replication policy which to be associated. Changing this forces a new association to be created. */ policyId?: pulumi.Input; } /** * The set of arguments for constructing a HyperVReplicationPolicyAssociation resource. */ export interface HyperVReplicationPolicyAssociationArgs { /** * The ID of the HyperV site to which the policy should be associated. Changing this forces a new association to be created. */ hypervSiteId: pulumi.Input; /** * The name of the replication policy association. Changing this forces a new association to be created. */ name?: pulumi.Input; /** * The ID of the HyperV replication policy which to be associated. Changing this forces a new association to be created. */ policyId: pulumi.Input; }