alicloud_dbfs_auto_snap_shot_policy
更新时间:
Provides a Dbfs Auto Snap Shot Policy resource.
For information about Dbfs Auto Snap Shot Policy and how to use it.
-> NOTE: Available since v1.202.0.
Example Usage
Basic Usage
provider "alicloud" {
region = "cn-hangzhou"
}
resource "alicloud_dbfs_auto_snap_shot_policy" "default" {
time_points = ["01"]
policy_name = "tf-example"
retention_days = 1
repeat_weekdays = ["2"]
}
Argument Reference
The following arguments are supported:
policy_name
- (Required) Automatic snapshot policy namerepeat_weekdays
- (Required) A collection of automatic snapshots performed on several days of the week. Value range: 1~7, for example,1
means Monday.retention_days
- (Required) Automatic snapshot retention days.time_points
- (Required) The set of times at which the snapshot is taken on the day the automatic snapshot is executed. Value range:00
to23
, representing 24 time points from 00:00 to 23:00, for example,01
indicates 01:00.
Attributes Reference
The following attributes are exported:
id
- Thekey
of the resource supplied above.applied_dbfs_number
- The number of database file systems set by the automatic snapshot policy.create_time
- The creation time of the resourcelast_modified
- Last modification time of automatic snapshot policypolicy_id
- Automatic snapshot policy IDstatus
- Automatic snapshot policy statusstatus_detail
- Automatic snapshot policy status details
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Auto Snap Shot Policy.delete
- (Defaults to 5 mins) Used when delete the Auto Snap Shot Policy.update
- (Defaults to 5 mins) Used when update the Auto Snap Shot Policy.
Import
Dbfs Auto Snap Shot Policy can be imported using the id, e.g.
$ terraform import alicloud_dbfs_auto_snap_shot_policy.example <id>
文档内容是否对您有帮助?