AutoSnapshotPolicyProps
Properties for defining a AutoSnapshotPolicy.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-autosnapshotpolicy
Initializer
import { AutoSnapshotPolicyProps } from '@alicloud/ros-cdk-ecs'
const autoSnapshotPolicyProps: AutoSnapshotPolicyProps = { ... }
Properties
| Name | Type | Description |
|---|---|---|
repeatWeekdays | @alicloud/ros-cdk-core.IResolvable | number | @alicloud/ros-cdk-core.IResolvable[] | Property repeatWeekdays: The automatic snapshot repetition dates. |
retentionDays | number | @alicloud/ros-cdk-core.IResolvable | Property retentionDays: The snapshot retention time, and the unit of measurement is day. |
timePoints | any[] | @alicloud/ros-cdk-core.IResolvable | Property timePoints: The automatic snapshot creation schedule, and the unit of measurement is hour. |
autoSnapshotPolicyName | string | @alicloud/ros-cdk-core.IResolvable | Property autoSnapshotPolicyName: The name of the automatic snapshot policy. |
copiedSnapshotsRetentionDays | number | @alicloud/ros-cdk-core.IResolvable | Property copiedSnapshotsRetentionDays: The retention period of the snapshot copy in the destination region. |
copyEncryptionConfiguration | @alicloud/ros-cdk-core.IResolvable | CopyEncryptionConfigurationProperty | Property copyEncryptionConfiguration: The encryption configuration for copied snapshots. |
diskIds | @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] | Property diskIds: The disk ID. |
enableCrossRegionCopy | boolean | @alicloud/ros-cdk-core.IResolvable | Property enableCrossRegionCopy: Whether to enable cross-region copying of snapshots. |
resourceGroupId | string | @alicloud/ros-cdk-core.IResolvable | Property resourceGroupId: Resource group id. |
tags | TagsProperty[] | Property tags: Tags to attach to instance. |
targetCopyRegions | @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] | Property targetCopyRegions: The target region of the snapshot is replicated across geographies. |
repeatWeekdaysRequired
public readonly repeatWeekdays: IResolvable | number | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | number | @alicloud/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 (,).
retentionDaysRequired
public readonly retentionDays: number | IResolvable;
- Type: number | @alicloud/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.
timePointsRequired
public readonly timePoints: any[] | IResolvable;
- Type: any[] | @alicloud/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 (,).
autoSnapshotPolicyNameOptional
public readonly autoSnapshotPolicyName: string | IResolvable;
- Type: string | @alicloud/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.
copiedSnapshotsRetentionDaysOptional
public readonly copiedSnapshotsRetentionDays: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property copiedSnapshotsRetentionDays: The retention period of the snapshot copy in the destination region.
Unit: days. Valid values: - -1: The snapshot copy is retained until it is deleted. - 1 to 65535: The snapshot copy is retained for the specified number of days. After the retention period of the snapshot copy expires, the snapshot copy is automatically deleted. Default value: -1.
copyEncryptionConfigurationOptional
public readonly copyEncryptionConfiguration: IResolvable | CopyEncryptionConfigurationProperty;
- Type: @alicloud/ros-cdk-core.IResolvable | CopyEncryptionConfigurationProperty
Property copyEncryptionConfiguration: The encryption configuration for copied snapshots.
diskIdsOptional
public readonly diskIds: IResolvable | string | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/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 (,).
enableCrossRegionCopyOptional
public readonly enableCrossRegionCopy: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property enableCrossRegionCopy: Whether to enable cross-region copying of snapshots.
resourceGroupIdOptional
public readonly resourceGroupId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property resourceGroupId: Resource group id.
tagsOptional
public readonly tags: TagsProperty[];
- Type: 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.
targetCopyRegionsOptional
public readonly targetCopyRegions: IResolvable | string | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]
Property targetCopyRegions: The target region of the snapshot is replicated across geographies.
Setting a target region is currently supported.