create_db_cluster_snapshot
async
¶
create_db_cluster_snapshot(
*,
config_overrides: Optional[AsyncRDSClientConfig] = 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.
>>> await client.create_db_cluster_snapshot(db_cluster_snapshot_identifier='mydbcluster', db_cluster_identifier='mydbclustersnapshot')
Source code in docs_src/capo_rds/_services/async_rds.py
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 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 | |