create_db_cluster_snapshot
¶
create_db_cluster_snapshot(
*,
config_overrides: Optional[RDSClientConfig] = None,
db_cluster_snapshot_identifier: Optional[String] = None,
db_cluster_identifier: Optional[String] = None,
tags: Optional[TagList] = None,
) -> CreateDBClusterSnapshotResult
Creates a snapshot of a DB cluster.
For more information on Amazon Aurora, see What is Amazon Aurora? in the Amazon Aurora User Guide.
For more information on Multi-AZ DB clusters, see Multi-AZ DB cluster deployments in the Amazon RDS User Guide.
Parameters:
-
db_cluster_snapshot_identifier(Optional[String], default:None) –The identifier of the DB cluster snapshot. This parameter is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 letters, numbers, or hyphens.
-
First character must be a letter.
-
Can't end with a hyphen or contain two consecutive hyphens.
Example:
my-cluster1-snapshot1 -
-
db_cluster_identifier(Optional[String], default:None) –The identifier of the DB cluster to create a snapshot for. This parameter isn't case-sensitive.
Constraints:
-
Must match the identifier of an existing DBCluster.
Example:
my-cluster1 -
-
tags(Optional[TagList], default:None) –The tags to be assigned to the DB cluster snapshot.
Raises:
-
DBClusterNotFoundFault–DBClusterIdentifierdoesn't refer to an existing DB cluster. -
DBClusterSnapshotAlreadyExistsFault–The user already has a DB cluster snapshot with the given identifier.
-
InvalidDBClusterSnapshotStateFault–The supplied value isn't a valid DB cluster snapshot state.
-
InvalidDBClusterStateFault–The requested operation can't be performed while the cluster is in this state.
-
SnapshotQuotaExceededFault–The request would result in the user exceeding the allowed number of DB snapshots.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To create a DB cluster snapshot The following example creates a DB cluster snapshot.
>>> client.create_db_cluster_snapshot(db_cluster_snapshot_identifier='mydbcluster', db_cluster_identifier='mydbclustersnapshot')
Source code in docs_src/capo_rds/_services/rds.py
2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 | |