enable_fast_snapshot_restores
¶
enable_fast_snapshot_restores(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
41157 41158 41159 41160 41161 41162 41163 41164 41165 41166 41167 41168 41169 41170 41171 41172 41173 41174 41175 41176 41177 41178 41179 41180 41181 41182 41183 41184 41185 41186 41187 41188 41189 41190 41191 41192 41193 41194 41195 41196 41197 41198 41199 41200 41201 41202 41203 41204 41205 41206 41207 41208 41209 41210 41211 41212 41213 41214 41215 41216 41217 | |