batch_modify_cluster_snapshots
¶
batch_modify_cluster_snapshots(
*,
config_overrides: Optional[RedshiftClientConfig] = None,
snapshot_identifier_list: Optional[SnapshotIdentifierList] = None,
manual_snapshot_retention_period: Optional[IntegerOptional] = None,
force: Optional[Boolean] = None,
) -> BatchModifyClusterSnapshotsOutputMessage
Modifies the settings for a set of cluster snapshots.
Parameters:
-
snapshot_identifier_list(Optional[SnapshotIdentifierList], default:None) –A list of snapshot identifiers you want to modify.
-
manual_snapshot_retention_period(Optional[IntegerOptional], default:None) –The number of days that a manual snapshot is retained. If you specify the value -1, the manual snapshot is retained indefinitely.
The number must be either -1 or an integer between 1 and 3,653.
If you decrease the manual snapshot retention period from its current value, existing manual snapshots that fall outside of the new retention period will return an error. If you want to suppress the errors and delete the snapshots, use the force option.
-
force(Optional[Boolean], default:None) –A boolean value indicating whether to override an exception if the retention period has passed.
Raises:
-
BatchModifyClusterSnapshotsLimitExceededFault–The maximum number for snapshot identifiers has been reached. The limit is 100.
-
InvalidRetentionPeriodFault–The retention period specified is either in the past or is not a valid value.
The value must be either -1 or an integer between 1 and 3,653.
-
UnknownServiceError–The service returned an error code this client does not model.