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
9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 | |