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 |
Restores a snapshot from the Recycle Bin. For more information, see Restore snapshots from the Recycle Bin in the Amazon Elastic Compute Cloud User Guide.
Synopsis
- data RestoreSnapshotFromRecycleBin = RestoreSnapshotFromRecycleBin' {
- dryRun :: Maybe Bool
- snapshotId :: Text
- newRestoreSnapshotFromRecycleBin :: Text -> RestoreSnapshotFromRecycleBin
- restoreSnapshotFromRecycleBin_dryRun :: Lens' RestoreSnapshotFromRecycleBin (Maybe Bool)
- restoreSnapshotFromRecycleBin_snapshotId :: Lens' RestoreSnapshotFromRecycleBin Text
- data RestoreSnapshotFromRecycleBinResponse = RestoreSnapshotFromRecycleBinResponse' {}
- newRestoreSnapshotFromRecycleBinResponse :: Int -> RestoreSnapshotFromRecycleBinResponse
- restoreSnapshotFromRecycleBinResponse_description :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Text)
- restoreSnapshotFromRecycleBinResponse_encrypted :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Bool)
- restoreSnapshotFromRecycleBinResponse_outpostArn :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Text)
- restoreSnapshotFromRecycleBinResponse_ownerId :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Text)
- restoreSnapshotFromRecycleBinResponse_progress :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Text)
- restoreSnapshotFromRecycleBinResponse_snapshotId :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Text)
- restoreSnapshotFromRecycleBinResponse_startTime :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe UTCTime)
- restoreSnapshotFromRecycleBinResponse_state :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe SnapshotState)
- restoreSnapshotFromRecycleBinResponse_volumeId :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Text)
- restoreSnapshotFromRecycleBinResponse_volumeSize :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Int)
- restoreSnapshotFromRecycleBinResponse_httpStatus :: Lens' RestoreSnapshotFromRecycleBinResponse Int
Creating a Request
data RestoreSnapshotFromRecycleBin Source #
See: newRestoreSnapshotFromRecycleBin
smart constructor.
RestoreSnapshotFromRecycleBin' | |
|
Instances
newRestoreSnapshotFromRecycleBin Source #
Create a value of RestoreSnapshotFromRecycleBin
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:RestoreSnapshotFromRecycleBin'
, restoreSnapshotFromRecycleBin_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
.
RestoreSnapshotFromRecycleBin
, restoreSnapshotFromRecycleBin_snapshotId
- The ID of the snapshot to restore.
Request Lenses
restoreSnapshotFromRecycleBin_dryRun :: Lens' RestoreSnapshotFromRecycleBin (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
.
restoreSnapshotFromRecycleBin_snapshotId :: Lens' RestoreSnapshotFromRecycleBin Text Source #
The ID of the snapshot to restore.
Destructuring the Response
data RestoreSnapshotFromRecycleBinResponse Source #
See: newRestoreSnapshotFromRecycleBinResponse
smart constructor.
RestoreSnapshotFromRecycleBinResponse' | |
|
Instances
newRestoreSnapshotFromRecycleBinResponse Source #
Create a value of RestoreSnapshotFromRecycleBinResponse
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:
RestoreSnapshotFromRecycleBinResponse
, restoreSnapshotFromRecycleBinResponse_description
- The description for the snapshot.
RestoreSnapshotFromRecycleBinResponse
, restoreSnapshotFromRecycleBinResponse_encrypted
- Indicates whether the snapshot is encrypted.
RestoreSnapshotFromRecycleBinResponse
, restoreSnapshotFromRecycleBinResponse_outpostArn
- The ARN of the Outpost on which the snapshot is stored. For more
information, see
Amazon EBS local snapshots on Outposts
in the Amazon Elastic Compute Cloud User Guide.
RestoreSnapshotFromRecycleBinResponse
, restoreSnapshotFromRecycleBinResponse_ownerId
- The ID of the Amazon Web Services account that owns the EBS snapshot.
RestoreSnapshotFromRecycleBinResponse
, restoreSnapshotFromRecycleBinResponse_progress
- The progress of the snapshot, as a percentage.
RestoreSnapshotFromRecycleBin
, restoreSnapshotFromRecycleBinResponse_snapshotId
- The ID of the snapshot.
RestoreSnapshotFromRecycleBinResponse
, restoreSnapshotFromRecycleBinResponse_startTime
- The time stamp when the snapshot was initiated.
RestoreSnapshotFromRecycleBinResponse
, restoreSnapshotFromRecycleBinResponse_state
- The state of the snapshot.
RestoreSnapshotFromRecycleBinResponse
, restoreSnapshotFromRecycleBinResponse_volumeId
- The ID of the volume that was used to create the snapshot.
RestoreSnapshotFromRecycleBinResponse
, restoreSnapshotFromRecycleBinResponse_volumeSize
- The size of the volume, in GiB.
$sel:httpStatus:RestoreSnapshotFromRecycleBinResponse'
, restoreSnapshotFromRecycleBinResponse_httpStatus
- The response's http status code.
Response Lenses
restoreSnapshotFromRecycleBinResponse_description :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Text) Source #
The description for the snapshot.
restoreSnapshotFromRecycleBinResponse_encrypted :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Bool) Source #
Indicates whether the snapshot is encrypted.
restoreSnapshotFromRecycleBinResponse_outpostArn :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Text) Source #
The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.
restoreSnapshotFromRecycleBinResponse_ownerId :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Text) Source #
The ID of the Amazon Web Services account that owns the EBS snapshot.
restoreSnapshotFromRecycleBinResponse_progress :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Text) Source #
The progress of the snapshot, as a percentage.
restoreSnapshotFromRecycleBinResponse_snapshotId :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Text) Source #
The ID of the snapshot.
restoreSnapshotFromRecycleBinResponse_startTime :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe UTCTime) Source #
The time stamp when the snapshot was initiated.
restoreSnapshotFromRecycleBinResponse_state :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe SnapshotState) Source #
The state of the snapshot.
restoreSnapshotFromRecycleBinResponse_volumeId :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Text) Source #
The ID of the volume that was used to create the snapshot.
restoreSnapshotFromRecycleBinResponse_volumeSize :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Int) Source #
The size of the volume, in GiB.
restoreSnapshotFromRecycleBinResponse_httpStatus :: Lens' RestoreSnapshotFromRecycleBinResponse Int Source #
The response's http status code.