Amazon Redshift provides a facility to defer the weekly maintenance window Managing Clusters Using the Console - Amazon Redshift. The documentation shows how to do it via AWS Management Console.

Is there a way we can defer the maintenance window using Python Boto3 or AWS CLI?

1 Answers

2
John Rotenstein On Best Solutions

From modify_cluster_maintenance():

response = client.modify_cluster_maintenance(
    ClusterIdentifier='string',
    DeferMaintenance=True|False,
    DeferMaintenanceIdentifier='string',
    DeferMaintenanceStartTime=datetime(2015, 1, 1),
    DeferMaintenanceEndTime=datetime(2015, 1, 1),
    DeferMaintenanceDuration=123
)