Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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. To get the current state of fast snapshot restores, use
DescribeFastSnapshotRestores. To disable fast snapshot restores, use
DisableFastSnapshotRestores.
For more information, see Amazon EBS fast snapshot restore in the Amazon Elastic Compute Cloud User Guide.
Synopsis
- data EnableFastSnapshotRestores = EnableFastSnapshotRestores' {
- dryRun :: Maybe Bool
- availabilityZones :: [Text]
- sourceSnapshotIds :: [Text]
- newEnableFastSnapshotRestores :: EnableFastSnapshotRestores
- enableFastSnapshotRestores_dryRun :: Lens' EnableFastSnapshotRestores (Maybe Bool)
- enableFastSnapshotRestores_availabilityZones :: Lens' EnableFastSnapshotRestores [Text]
- enableFastSnapshotRestores_sourceSnapshotIds :: Lens' EnableFastSnapshotRestores [Text]
- data EnableFastSnapshotRestoresResponse = EnableFastSnapshotRestoresResponse' {}
- newEnableFastSnapshotRestoresResponse :: Int -> EnableFastSnapshotRestoresResponse
- enableFastSnapshotRestoresResponse_successful :: Lens' EnableFastSnapshotRestoresResponse (Maybe [EnableFastSnapshotRestoreSuccessItem])
- enableFastSnapshotRestoresResponse_unsuccessful :: Lens' EnableFastSnapshotRestoresResponse (Maybe [EnableFastSnapshotRestoreErrorItem])
- enableFastSnapshotRestoresResponse_httpStatus :: Lens' EnableFastSnapshotRestoresResponse Int
Creating a Request
data EnableFastSnapshotRestores Source #
See: newEnableFastSnapshotRestores
smart constructor.
EnableFastSnapshotRestores' | |
|
Instances
newEnableFastSnapshotRestores :: EnableFastSnapshotRestores Source #
Create a value of EnableFastSnapshotRestores
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:EnableFastSnapshotRestores'
, enableFastSnapshotRestores_dryRun
- 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
.
EnableFastSnapshotRestores
, enableFastSnapshotRestores_availabilityZones
- One or more Availability Zones. For example, us-east-2a
.
$sel:sourceSnapshotIds:EnableFastSnapshotRestores'
, enableFastSnapshotRestores_sourceSnapshotIds
- 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.
Request Lenses
enableFastSnapshotRestores_dryRun :: Lens' EnableFastSnapshotRestores (Maybe Bool) Source #
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
.
enableFastSnapshotRestores_availabilityZones :: Lens' EnableFastSnapshotRestores [Text] Source #
One or more Availability Zones. For example, us-east-2a
.
enableFastSnapshotRestores_sourceSnapshotIds :: Lens' EnableFastSnapshotRestores [Text] Source #
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.
Destructuring the Response
data EnableFastSnapshotRestoresResponse Source #
See: newEnableFastSnapshotRestoresResponse
smart constructor.
EnableFastSnapshotRestoresResponse' | |
|
Instances
newEnableFastSnapshotRestoresResponse Source #
Create a value of EnableFastSnapshotRestoresResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:successful:EnableFastSnapshotRestoresResponse'
, enableFastSnapshotRestoresResponse_successful
- Information about the snapshots for which fast snapshot restores were
successfully enabled.
$sel:unsuccessful:EnableFastSnapshotRestoresResponse'
, enableFastSnapshotRestoresResponse_unsuccessful
- Information about the snapshots for which fast snapshot restores could
not be enabled.
$sel:httpStatus:EnableFastSnapshotRestoresResponse'
, enableFastSnapshotRestoresResponse_httpStatus
- The response's http status code.
Response Lenses
enableFastSnapshotRestoresResponse_successful :: Lens' EnableFastSnapshotRestoresResponse (Maybe [EnableFastSnapshotRestoreSuccessItem]) Source #
Information about the snapshots for which fast snapshot restores were successfully enabled.
enableFastSnapshotRestoresResponse_unsuccessful :: Lens' EnableFastSnapshotRestoresResponse (Maybe [EnableFastSnapshotRestoreErrorItem]) Source #
Information about the snapshots for which fast snapshot restores could not be enabled.
enableFastSnapshotRestoresResponse_httpStatus :: Lens' EnableFastSnapshotRestoresResponse Int Source #
The response's http status code.