BackupProps

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

Bases: object

Backup configuration for RDS 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/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_rds as rds

backup_props = rds.BackupProps(
    retention=cdk.Duration.minutes(30),

    # the properties below are optional
    preferred_window="preferredWindow"
)

Attributes

preferred_window

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/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow

retention

How many days to retain the backup.