copy_snapshot_and_update_volume
¶
copy_snapshot_and_update_volume(
*,
config_overrides: Optional[FSxClientConfig] = 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/f_sx.py
538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 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 | |