copy_snapshot_and_update_volume
async
¶
copy_snapshot_and_update_volume(
*,
config_overrides: Optional[AsyncFSxClientConfig] = None,
client_request_token: Optional[ClientRequestToken] = None,
volume_id: Optional[VolumeId] = None,
source_snapshot_arn: Optional[ResourceARN] = None,
copy_strategy: Optional[OpenZFSCopyStrategy] = None,
options: Optional[UpdateOpenZFSVolumeOptions] = None,
) -> CopySnapshotAndUpdateVolumeResponse
Updates an existing volume by using a snapshot from another Amazon FSx for OpenZFS file system. For more information, see on-demand data replication in the Amazon FSx for OpenZFS User Guide.
Parameters:
-
volume_id(Optional[VolumeId], default:None) –Specifies the ID of the volume that you are copying the snapshot to.
-
copy_strategy(Optional[OpenZFSCopyStrategy], default:None) –Specifies the strategy to use when copying data from a snapshot to the volume.
-
FULL_COPY- Copies all data from the snapshot to the volume. -
INCREMENTAL_COPY- Copies only the snapshot data that's changed since the previous replication.
CLONEisn't a valid copy strategy option for theCopySnapshotAndUpdateVolumeoperation. -
-
options(Optional[UpdateOpenZFSVolumeOptions], default:None) –Confirms that you want to delete data on the destination volume that wasn’t there during the previous snapshot replication.
Your replication will fail if you don’t include an option for a specific type of data and that data is on your destination. For example, if you don’t include
DELETE_INTERMEDIATE_SNAPSHOTSand there are intermediate snapshots on the destination, you can’t copy the snapshot.-
DELETE_INTERMEDIATE_SNAPSHOTS- Deletes snapshots on the destination volume that aren’t on the source volume. -
DELETE_CLONED_VOLUMES- Deletes snapshot clones on the destination volume that aren't on the source volume. -
DELETE_INTERMEDIATE_DATA- Overwrites snapshots on the destination volume that don’t match the source snapshot that you’re copying.
-
Raises:
-
BadRequest–A generic error indicating a failure with a client request.
-
IncompatibleParameterError–The error returned when a second request is received with the same client request token but different parameters settings. A client request token should always uniquely identify a single request.
-
InternalServerError–A generic error indicating a server-side failure.
-
ServiceLimitExceeded–An error indicating that a particular service limit was exceeded. You can increase some service limits by contacting Amazon Web Services Support.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_fsx/_services/async_f_sx.py
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 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 | |