Skip to content

BackupPolicyProps

Properties for defining a BackupPolicy.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-adb-backuppolicy

Initializer

import ros_cdk_adb
ros_cdk_adb.BackupPolicyProps(
  db_cluster_id: typing.Union[str, IResolvable],
  preferred_backup_period: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]],
  preferred_backup_time: typing.Union[str, IResolvable],
  backup_retention_period: typing.Union[typing.Union[int, float], IResolvable] = None,
  enable_backup_log: typing.Union[str, IResolvable] = None,
  log_backup_retention_period: typing.Union[typing.Union[int, float], IResolvable] = None
)

Properties

Name Type Description
db_cluster_id typing.Union[str, ros_cdk_core.IResolvable] Property dbClusterId: The ID of the ADB cluster.
preferred_backup_period typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property preferredBackupPeriod: The preferred backup period.
preferred_backup_time typing.Union[str, ros_cdk_core.IResolvable] Property preferredBackupTime: The start time of the full backup within a time range.
backup_retention_period typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property backupRetentionPeriod: The number of days for which to retain full backup files.
enable_backup_log typing.Union[str, ros_cdk_core.IResolvable] Property enableBackupLog: Specifies whether to enable real-time log backup.
log_backup_retention_period typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property logBackupRetentionPeriod: The number of days for which to retain log backup files.

db_cluster_idRequired

db_cluster_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property dbClusterId: The ID of the ADB cluster.


preferred_backup_periodRequired

preferred_backup_period: 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 preferredBackupPeriod: The preferred backup period.

Valid values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.


preferred_backup_timeRequired

preferred_backup_time: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.


backup_retention_periodOptional

backup_retention_period: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], 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.


enable_backup_logOptional

enable_backup_log: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.


log_backup_retention_periodOptional

log_backup_retention_period: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], 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.