copy_db_cluster_snapshot
¶
copy_db_cluster_snapshot(
*,
config_overrides: Optional[NeptuneClientConfig] = None,
source_db_cluster_snapshot_identifier: Optional[String] = None,
target_db_cluster_snapshot_identifier: Optional[String] = None,
kms_key_id: Optional[String] = None,
pre_signed_url: Optional[String] = None,
copy_tags: Optional[BooleanOptional] = None,
tags: Optional[TagList] = None,
) -> CopyDBClusterSnapshotResult
Copies a snapshot of a DB cluster.
To copy a DB cluster snapshot from a shared manual DB cluster snapshot, SourceDBClusterSnapshotIdentifier must be the Amazon Resource Name (ARN) of the shared DB cluster snapshot.
Parameters:
-
source_db_cluster_snapshot_identifier(Optional[String], default:None) –The identifier of the DB cluster snapshot to copy. This parameter is not case-sensitive. If the source DB cluster snapshot is in a different region or owned by another account, specify the snapshot ARN.
Constraints:
-
Must specify a valid system snapshot in the "available" state.
-
Specify a valid DB snapshot identifier.
Example:
my-cluster-snapshot1 -
-
target_db_cluster_snapshot_identifier(Optional[String], default:None) –The identifier of the new DB cluster snapshot to create from the source DB cluster snapshot. This parameter is not case-sensitive.
Constraints:
-
Must contain from 1 to 63 letters, numbers, or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example:
my-cluster-snapshot2 -
-
kms_key_id(Optional[String], default:None) –The Amazon KMS key ID for an encrypted DB cluster snapshot. The KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS encryption key.
If you copy an encrypted DB cluster snapshot from your Amazon account, you can specify a value for
KmsKeyIdto encrypt the copy with a new KMS encryption key. If you don't specify a value forKmsKeyId, then the copy of the DB cluster snapshot is encrypted with the same KMS key as the source DB cluster snapshot.If you copy an encrypted DB cluster snapshot that is shared from another Amazon account, then you must specify a value for
KmsKeyId.KMS encryption keys are specific to the Amazon Region that they are created in, and you can't use encryption keys from one Amazon Region in another Amazon Region.
You cannot encrypt an unencrypted DB cluster snapshot when you copy it. If you try to copy an unencrypted DB cluster snapshot and specify a value for the KmsKeyId parameter, an error is returned.
-
pre_signed_url(Optional[String], default:None) –Not currently supported.
-
copy_tags(Optional[BooleanOptional], default:None) –True to copy all tags from the source DB cluster snapshot to the target DB cluster snapshot, and otherwise false. The default is false.
-
tags(Optional[TagList], default:None) –The tags to assign to the new DB cluster snapshot copy.
Raises:
-
DBClusterSnapshotAlreadyExistsFault–User already has a DB cluster snapshot with the given identifier.
-
DBClusterSnapshotNotFoundFault–DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot.
-
InvalidDBClusterSnapshotStateFault–The supplied value is not a valid DB cluster snapshot state.
-
InvalidDBClusterStateFault–The DB cluster is not in a valid state.
-
KMSKeyNotAccessibleFault–Error accessing KMS key.
-
SnapshotQuotaExceededFault–Request would result in user exceeding the allowed number of DB snapshots.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_neptune/_services/neptune.py
590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 | |