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
2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 | |