BackupProps

class aws_cdk.aws_docdb.BackupProps(*, retention, preferred_window=None)

Bases: object

(experimental) Backup configuration for DocumentDB databases.

Parameters
Default

  • The retention period for automated backups is 1 day.

The preferred backup window will be a 30-minute window selected at random from an 8-hour block of time for each AWS Region.

See

https://docs.aws.amazon.com/documentdb/latest/developerguide/backup-restore.db-cluster-snapshots.html#backup-restore.backup-window

Stability

experimental

Attributes

preferred_window

(experimental) A daily time range in 24-hours UTC format in which backups preferably execute.

Must be at least 30 minutes long.

Example: ‘01:00-02:00’

Default

  • a 30-minute window selected at random from an 8-hour block of

time for each AWS Region. To see the time blocks available, see https://docs.aws.amazon.com/documentdb/latest/developerguide/backup-restore.db-cluster-snapshots.html#backup-restore.backup-window

Stability

experimental

Return type

Optional[str]

retention

(experimental) How many days to retain the backup.

Stability

experimental

Return type

Duration