copy_snapshot
¶
copy_snapshot(
source_snapshot_name: String,
target_snapshot_name: String,
*,
config_overrides: Optional[MemoryDBClientConfig] = None,
target_bucket: Optional[TargetBucket] = None,
kms_key_id: Optional[KmsKeyId] = None,
tags: Optional[TagList] = None,
) -> CopySnapshotResponse
Makes a copy of an existing snapshot.
Parameters:
-
source_snapshot_name(String) –The name of an existing snapshot from which to make a copy.
-
target_snapshot_name(String) –A name for the snapshot copy. MemoryDB does not permit overwriting a snapshot, therefore this name must be unique within its context - MemoryDB or an Amazon S3 bucket if exporting.
-
target_bucket(Optional[TargetBucket], default:None) –The Amazon S3 bucket to which the snapshot is exported. This parameter is used only when exporting a snapshot for external access. When using this parameter to export a snapshot, be sure MemoryDB has the needed permissions to this S3 bucket. For more information, see Step 2: Grant MemoryDB Access to Your Amazon S3 Bucket.
-
kms_key_id(Optional[KmsKeyId], default:None) –The ID of the KMS key used to encrypt the target snapshot.
-
tags(Optional[TagList], default:None) –A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
Raises:
-
InvalidParameterCombinationException–The specified parameter combination is not valid.
-
InvalidParameterValueException–The specified parameter value is not valid.
-
InvalidSnapshotStateFault–The snapshot is not in a valid state for the requested operation.
-
ServiceLinkedRoleNotFoundFault–The required service-linked role was not found.
-
SnapshotAlreadyExistsFault–A snapshot with the specified name already exists.
-
SnapshotNotFoundFault–The specified snapshot does not exist.
-
SnapshotQuotaExceededFault–The request cannot be processed because it would exceed the maximum number of snapshots allowed.
-
TagQuotaPerResourceExceeded–The request cannot be processed because it would exceed the maximum number of tags allowed per resource.
-
UnknownServiceError–The service returned an error code this client does not model.