Skip to content

EC2  >  Operations  >  enable_fast_snapshot_restores

enable_fast_snapshot_restores

Operation

enable_fast_snapshot_restores async

enable_fast_snapshot_restores(request: EnableFastSnapshotRestoresInput | EnableFastSnapshotRestoresInputDict, /, *, plugins: list[Plugin] | None = None) -> EnableFastSnapshotRestoresOutput
enable_fast_snapshot_restores(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[EnableFastSnapshotRestoresInputDict]) -> EnableFastSnapshotRestoresOutput

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:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
EnableFastSnapshotRestoresOutput

An instance of EnableFastSnapshotRestoresOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

EnableFastSnapshotRestoresInput dataclass

Bases: _SerdeShape

Dataclass for EnableFastSnapshotRestoresInput structure.

Attributes
availability_zone_ids class-attribute instance-attribute
availability_zone_ids: list[str] | None = ...

One or more Availability Zone IDs. For example, use2-az1.

Either AvailabilityZone or AvailabilityZoneId must be specified in the request, but not both.

availability_zones class-attribute instance-attribute
availability_zones: list[str] | None = ...

One or more Availability Zones. For example, us-east-2a.

Either AvailabilityZone or AvailabilityZoneId must be specified in the request, but not both.

dry_run class-attribute instance-attribute
dry_run: bool | 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 is UnauthorizedOperation.

source_snapshot_ids class-attribute instance-attribute
source_snapshot_ids: list[str] | 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.

Dictionaries

EnableFastSnapshotRestoresInputDict

Bases: TypedDict

Dictionary form of EnableFastSnapshotRestoresInput.

Attributes
availability_zone_ids instance-attribute
availability_zone_ids: Sequence[str] | None

One or more Availability Zone IDs. For example, use2-az1.

Either AvailabilityZone or AvailabilityZoneId must be specified in the request, but not both.

availability_zones instance-attribute
availability_zones: Sequence[str] | None

One or more Availability Zones. For example, us-east-2a.

Either AvailabilityZone or AvailabilityZoneId must be specified in the request, but not both.

dry_run instance-attribute
dry_run: bool | 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 is UnauthorizedOperation.

source_snapshot_ids instance-attribute
source_snapshot_ids: Required[Sequence[str]]

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.

Output

EnableFastSnapshotRestoresOutput dataclass

Bases: _SerdeShape

Dataclass for EnableFastSnapshotRestoresOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

successful class-attribute instance-attribute
successful: list[EnableFastSnapshotRestoreSuccessItem] | None = ...

Information about the snapshots for which fast snapshot restores were successfully enabled.

unsuccessful class-attribute instance-attribute
unsuccessful: list[EnableFastSnapshotRestoreErrorItem] | None = ...

Information about the snapshots for which fast snapshot restores could not be enabled.