AutoSnapshotPolicyProps
Properties for defining a AutoSnapshotPolicy
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-autosnapshotpolicy
Initializer
import ros_cdk_ecs
ros_cdk_ecs.AutoSnapshotPolicyProps(
repeat_weekdays: typing.Union[IResolvable, typing.List[typing.Union[typing.Union[int, float], IResolvable]]],
retention_days: typing.Union[typing.Union[int, float], IResolvable],
time_points: typing.Union[typing.List[typing.Any], IResolvable],
auto_snapshot_policy_name: typing.Union[str, IResolvable] = None,
disk_ids: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
resource_group_id: typing.Union[str, IResolvable] = None,
tags: typing.List[TagsProperty] = None
)
Properties
Name | Type | Description |
---|---|---|
repeat_weekdays |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]]] |
Property repeatWeekdays: The automatic snapshot repetition dates. |
retention_days |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property retentionDays: The snapshot retention time, and the unit of measurement is day. |
time_points |
typing.Union[typing.List[typing.Any], ros_cdk_core.IResolvable] |
Property timePoints: The automatic snapshot creation schedule, and the unit of measurement is hour. |
auto_snapshot_policy_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property autoSnapshotPolicyName: The name of the automatic snapshot policy. |
disk_ids |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] |
Property diskIds: The disk ID. |
resource_group_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property resourceGroupId: Resource group id. |
tags |
typing.List[TagsProperty] |
Property tags: Tags to attach to instance. |
repeat_weekdays
Required
repeat_weekdays: typing.Union[IResolvable, typing.List[typing.Union[typing.Union[int, float], IResolvable]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]]]
Property repeatWeekdays: The automatic snapshot repetition dates.
The unit of measurement is day and the repeating cycle is a week. Value range: [1, 7], which represents days starting from Monday to Sunday, for example 1 indicates Monday. When you want to schedule multiple automatic snapshot tasks for a disk in a week, you can set the RepeatWeekdays to an array. A maximum of seven time points can be selected. The format is a list of [1, 2, ..., 7] and the time points are separated by commas (,).
retention_days
Required
retention_days: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property retentionDays: The snapshot retention time, and the unit of measurement is day.
Optional values: -1: The automatic snapshots are retained permanently. [1, 65536]: The number of days retained. Default value: -1.
time_points
Required
time_points: typing.Union[typing.List[typing.Any], IResolvable]
- Type: typing.Union[typing.List[typing.Any], ros_cdk_core.IResolvable]
Property timePoints: The automatic snapshot creation schedule, and the unit of measurement is hour.
Value range: [0, 23], which represents from 00:00 to 24:00, for example 1 indicates 01:00. When you want to schedule multiple automatic snapshot tasks for a disk in a day, you can set the TimePoints to an array. A maximum of 24 time points can be selected. The format is a list of [0, 1, ..., 23] and the time points are separated by commas (,).
auto_snapshot_policy_name
Optional
auto_snapshot_policy_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property autoSnapshotPolicyName: The name of the automatic snapshot policy.
It can consist of [2, 128] English or Chinese characters. Must begin with an uppercase or lowercase letter or a Chinese character. Can contain numbers, periods (.), colons (:), underscores (_), and hyphens (-). Cannot start with http:// or https://. Default value: null.
disk_ids
Optional
disk_ids: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]
Property diskIds: The disk ID.
When you want to apply the automatic snapshot policy to multiple disks, you can set the DiskIds to an array. The format is list of ["d-xxxxxxxxx", "d-yyyyyyyyy", ..., "d-zzzzzzzzz"] and the IDs are separated by commas (,).
resource_group_id
Optional
resource_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property resourceGroupId: Resource group id.
tags
Optional
tags: typing.List[TagsProperty]
- Type: typing.List[TagsProperty]
Property tags: Tags to attach to instance.
Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.