enable_fast_snapshot_restores
async
¶
enable_fast_snapshot_restores(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
availability_zones: Optional[AvailabilityZoneStringList] = None,
availability_zone_ids: Optional[AvailabilityZoneIdStringList] = None,
source_snapshot_ids: Optional[SnapshotIdStringList] = None,
dry_run: Optional[Boolean] = None,
) -> EnableFastSnapshotRestoresResult
Enables fast snapshot restores for the specified snapshots in the specified Availability Zones.
You get the full benefit of fast snapshot restores after they enter the enabled state.
For more information, see Amazon EBS fast snapshot restore in the Amazon EBS User Guide.
Parameters:
-
availability_zones(Optional[AvailabilityZoneStringList], default:None) –One or more Availability Zones. For example,
us-east-2a.Either
AvailabilityZoneorAvailabilityZoneIdmust be specified in the request, but not both. -
availability_zone_ids(Optional[AvailabilityZoneIdStringList], default:None) –One or more Availability Zone IDs. For example,
use2-az1.Either
AvailabilityZoneorAvailabilityZoneIdmust be specified in the request, but not both. -
source_snapshot_ids(Optional[SnapshotIdStringList], default:None) –The IDs of one or more snapshots. For example,
snap-1234567890abcdef0. You can specify a snapshot that was shared with you from another Amazon Web Services account. -
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
41715 41716 41717 41718 41719 41720 41721 41722 41723 41724 41725 41726 41727 41728 41729 41730 41731 41732 41733 41734 41735 41736 41737 41738 41739 41740 41741 41742 41743 41744 41745 41746 41747 41748 41749 41750 41751 41752 41753 41754 41755 41756 41757 41758 41759 41760 41761 41762 41763 41764 41765 41766 41767 41768 41769 41770 41771 41772 41773 41774 41775 41776 | |