modify_cluster_snapshot
async
¶
modify_cluster_snapshot(
*,
config_overrides: Optional[AsyncRedshiftClientConfig] = None,
snapshot_identifier: Optional[String] = None,
manual_snapshot_retention_period: Optional[IntegerOptional] = None,
force: Optional[Boolean] = None,
) -> ModifyClusterSnapshotResult
Modifies the settings for a snapshot.
This exanmple modifies the manual retention period setting for a cluster snapshot.
Parameters:
-
snapshot_identifier(Optional[String], default:None) –The identifier of the snapshot whose setting you want to modify.
-
manual_snapshot_retention_period(Optional[IntegerOptional], default:None) –The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
If the manual snapshot falls outside of the new retention period, you can specify the force option to immediately delete the snapshot.
The value must be either -1 or an integer between 1 and 3,653.
-
force(Optional[Boolean], default:None) –A Boolean option to override an exception if the retention period has already passed.
Raises:
-
ClusterSnapshotNotFoundFault–The snapshot identifier does not refer to an existing cluster snapshot.
-
InvalidClusterSnapshotStateFault–The specified cluster snapshot is not in the
availablestate, or other accounts are authorized to access the snapshot. -
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.
Source code in docs_src/capo_redshift/_services/async_redshift.py
9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 | |