Data Source: azurermSiteRecoveryReplicationPolicy
Use this data source to access information about an existing Azure Site Recovery replication policy.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.dataAzurermSiteRecoveryReplicationPolicy.DataAzurermSiteRecoveryReplicationPolicy(
this,
"policy",
{
name: "replication-policy",
recovery_vault_name: "tfex-recovery_vault",
resource_group_name: "tfex-resource_group",
}
);
Argument Reference
The following arguments are supported:
-
name
- (Required) Specifies the name of the Azure Site Recovery replication policy. -
recoveryVaultName
- (Required) The name of the Recovery Services Vault that the Azure Site Recovery replication policy is associated witth. -
resourceGroupName
- (Required) The name of the resource group in which the associated Azure Site Recovery replication policy resides.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
-
id
- The ID of the Azure Site Recovery replication policy. -
recoveryPointRetentionInMinutes
- The duration in minutes for which the recovery points need to be stored. -
applicationConsistentSnapshotFrequencyInMinutes
- Specifies the frequency (in minutes) at which to create application consistent recovery.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Recovery Services Vault.