Skip to content

Commit 3dd8ca1

Browse files
committed
update per comments
1 parent 9d49d1f commit 3dd8ca1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

internal/services/dataprotection/data_protection_backup_policy_data_lake_storage_resource_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ func (r DataProtectionBackupPolicyDataLakeStorageResource) requiresImport(data a
117117
resource "azurerm_data_protection_backup_policy_data_lake_storage" "import" {
118118
name = azurerm_data_protection_backup_policy_data_lake_storage.test.name
119119
data_protection_backup_vault_id = azurerm_data_protection_backup_policy_data_lake_storage.test.data_protection_backup_vault_id
120-
backup_schedule = ["R/2021-05-23T02:30:00+00:00/P1W"]
121-
default_retention_duration = "P4M"
120+
backup_schedule = azurerm_data_protection_backup_policy_data_lake_storage.test.backup_schedule
121+
default_retention_duration = azurerm_data_protection_backup_policy_data_lake_storage.test.default_retention_duration
122122
}
123123
`, r.basic(data))
124124
}

website/docs/r/data_protection_backup_policy_data_lake_storage.html.markdown

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,17 @@ A `retention_rule` block supports the following:
8585

8686
* `duration` - (Required) The retention duration up to which the backups are to be retained in the data stores. It should follow `ISO 8601` duration format. Changing this forces a new resource to be created.
8787

88-
* `absolute_criteria` - (Optional) Possible values are `AllBackup`, `FirstOfDay`, `FirstOfWeek`, `FirstOfMonth` and `FirstOfYear`. These values mean the first successful backup of the day/week/month/year. Changing this forces a new resource to be created.
88+
* `absolute_criteria` - (Optional) Specifies the absolute criteria for the retention rule. Possible values include `AllBackup`, `FirstOfDay`, `FirstOfWeek`, `FirstOfMonth`, and `FirstOfYear`. These values mean the first successful backup of the day/week/month/year. Changing this forces a new resource to be created.
8989

90-
* `days_of_week` - (Optional) Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new resource to be created.
90+
* `days_of_week` - (Optional) Specifies a list of days of the week on which the retention rule applies. Possible values include `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, and `Sunday`. Changing this forces a new resource to be created.
9191

92-
* `weeks_of_month` - (Optional) Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new resource to be created.
92+
* `weeks_of_month` - (Optional) Specifies a list of weeks of the month on which the retention rule applies. Possible values include `First`, `Second`, `Third`, `Fourth`, and `Last`. Changing this forces a new resource to be created.
9393

94-
* `months_of_year` - (Optional) Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Changing this forces a new resource to be created.
94+
* `months_of_year` - (Optional) Specifies a list of months of the year on which the retention rule applies. Possible values include `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November`, and `December`. Changing this forces a new resource to be created.
9595

9696
* `scheduled_backup_times` - (Optional) Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new resource to be created.
9797

98-
-> **Note:** At lease one of `absolute_criteria` or `days_of_week` must be used. `weeks_of_month` and `months_of_year` are optional, both can be supplied together. Multiple intervals may be set using multiple `retention_rule` blocks.
98+
~> **Note:** At least one of `absolute_criteria` or `days_of_week` must be specified. `weeks_of_month` and `months_of_year` are optional and can be supplied together. Multiple intervals may be set using multiple `retention_rule` blocks.
9999

100100
## Attributes Reference
101101

0 commit comments

Comments
 (0)