import * as pulumi from "@pulumi/pulumi"; /** * Manages a Azure Site Recovery replication policy for HyperV within a Recovery Vault. Replication policies define the frequency at which recovery points are created and how long they are stored. * * ## 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 vault = new azure.recoveryservices.Vault("vault", { * name: "example-recovery-vault", * location: example.location, * resourceGroupName: example.name, * sku: "Standard", * }); * const policy = new azure.siterecovery.HyperVReplicationPolicy("policy", { * name: "policy", * recoveryVaultId: vault.id, * recoveryPointRetentionInHours: 2, * applicationConsistentSnapshotFrequencyInHours: 1, * replicationIntervalInSeconds: 300, * }); * ``` * * ## 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/hyperVReplicationPolicy:HyperVReplicationPolicy mypolicy /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-group-name/providers/Microsoft.RecoveryServices/vaults/recovery-vault-name/replicationPolicies/policy-name * ``` */ export declare class HyperVReplicationPolicy extends pulumi.CustomResource { /** * Get an existing HyperVReplicationPolicy 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?: HyperVReplicationPolicyState, opts?: pulumi.CustomResourceOptions): HyperVReplicationPolicy; /** * Returns true if the given object is an instance of HyperVReplicationPolicy. 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 HyperVReplicationPolicy; /** * Specifies the frequency at which to create application consistent recovery points. */ readonly applicationConsistentSnapshotFrequencyInHours: pulumi.Output; /** * The name of the replication policy. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The duration in hours for which the recovery points need to be stored. */ readonly recoveryPointRetentionInHours: pulumi.Output; /** * The id of the vault that should be updated. Changing this forces a new resource to be created. */ readonly recoveryVaultId: pulumi.Output; /** * Specifies how frequently data should be synchronized between source and target locations. Possible values are `30` and `300`. */ readonly replicationIntervalInSeconds: pulumi.Output; /** * Create a HyperVReplicationPolicy 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: HyperVReplicationPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HyperVReplicationPolicy resources. */ export interface HyperVReplicationPolicyState { /** * Specifies the frequency at which to create application consistent recovery points. */ applicationConsistentSnapshotFrequencyInHours?: pulumi.Input; /** * The name of the replication policy. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The duration in hours for which the recovery points need to be stored. */ recoveryPointRetentionInHours?: pulumi.Input; /** * The id of the vault that should be updated. Changing this forces a new resource to be created. */ recoveryVaultId?: pulumi.Input; /** * Specifies how frequently data should be synchronized between source and target locations. Possible values are `30` and `300`. */ replicationIntervalInSeconds?: pulumi.Input; } /** * The set of arguments for constructing a HyperVReplicationPolicy resource. */ export interface HyperVReplicationPolicyArgs { /** * Specifies the frequency at which to create application consistent recovery points. */ applicationConsistentSnapshotFrequencyInHours: pulumi.Input; /** * The name of the replication policy. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The duration in hours for which the recovery points need to be stored. */ recoveryPointRetentionInHours: pulumi.Input; /** * The id of the vault that should be updated. Changing this forces a new resource to be created. */ recoveryVaultId: pulumi.Input; /** * Specifies how frequently data should be synchronized between source and target locations. Possible values are `30` and `300`. */ replicationIntervalInSeconds: pulumi.Input; }