BackupPolicyProps
Properties for defining a BackupPolicy.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-adb-backuppolicy
Initializer
import { BackupPolicyProps } from '@alicloud/ros-cdk-adb'
const backupPolicyProps: BackupPolicyProps = { ... }
Properties
| Name | Type | Description |
|---|---|---|
dbClusterId | string | @alicloud/ros-cdk-core.IResolvable | Property dbClusterId: The ID of the ADB cluster. |
preferredBackupPeriod | @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] | Property preferredBackupPeriod: The preferred backup period. |
preferredBackupTime | string | @alicloud/ros-cdk-core.IResolvable | Property preferredBackupTime: The start time of the full backup within a time range. |
backupRetentionPeriod | number | @alicloud/ros-cdk-core.IResolvable | Property backupRetentionPeriod: The number of days for which to retain full backup files. |
enableBackupLog | string | @alicloud/ros-cdk-core.IResolvable | Property enableBackupLog: Specifies whether to enable real-time log backup. |
logBackupRetentionPeriod | number | @alicloud/ros-cdk-core.IResolvable | Property logBackupRetentionPeriod: The number of days for which to retain log backup files. |
dbClusterIdRequired
public readonly dbClusterId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property dbClusterId: The ID of the ADB cluster.
preferredBackupPeriodRequired
public readonly preferredBackupPeriod: IResolvable | string | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]
Property preferredBackupPeriod: The preferred backup period.
Valid values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
preferredBackupTimeRequired
public readonly preferredBackupTime: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property preferredBackupTime: The start time of the full backup within a time range.
Specify the time range in the HH:mmZ-HH:mmZ format. The time must be in UTC.
The time range is 1 hour.
backupRetentionPeriodOptional
public readonly backupRetentionPeriod: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property backupRetentionPeriod: The number of days for which to retain full backup files.
Valid values: 7 to 730.
If you do not specify this parameter, the default value 7 is used.
enableBackupLogOptional
public readonly enableBackupLog: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property enableBackupLog: Specifies whether to enable real-time log backup.
Valid values: * Enable * Disable
If you leave this parameter empty, the default value Enable is used.
logBackupRetentionPeriodOptional
public readonly logBackupRetentionPeriod: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property logBackupRetentionPeriod: The number of days for which to retain log backup files.
Valid values: 7 to 730.
If you do not specify this parameter, the default value 7 is used.