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.
Source code in docs_src/capo_memorydb/_services/memory_db.py
358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 | |