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 an AMI from the Recycle Bin. For more information, see Recycle Bin in the Amazon EC2 User Guide.
Synopsis
- data RestoreImageFromRecycleBin = RestoreImageFromRecycleBin' {}
- newRestoreImageFromRecycleBin :: Text -> RestoreImageFromRecycleBin
- restoreImageFromRecycleBin_dryRun :: Lens' RestoreImageFromRecycleBin (Maybe Bool)
- restoreImageFromRecycleBin_imageId :: Lens' RestoreImageFromRecycleBin Text
- data RestoreImageFromRecycleBinResponse = RestoreImageFromRecycleBinResponse' {
- return' :: Maybe Bool
- httpStatus :: Int
- newRestoreImageFromRecycleBinResponse :: Int -> RestoreImageFromRecycleBinResponse
- restoreImageFromRecycleBinResponse_return :: Lens' RestoreImageFromRecycleBinResponse (Maybe Bool)
- restoreImageFromRecycleBinResponse_httpStatus :: Lens' RestoreImageFromRecycleBinResponse Int
Creating a Request
data RestoreImageFromRecycleBin Source #
See: newRestoreImageFromRecycleBin
smart constructor.
RestoreImageFromRecycleBin' | |
|
Instances
newRestoreImageFromRecycleBin Source #
Create a value of RestoreImageFromRecycleBin
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:RestoreImageFromRecycleBin'
, restoreImageFromRecycleBin_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
.
RestoreImageFromRecycleBin
, restoreImageFromRecycleBin_imageId
- The ID of the AMI to restore.
Request Lenses
restoreImageFromRecycleBin_dryRun :: Lens' RestoreImageFromRecycleBin (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
.
restoreImageFromRecycleBin_imageId :: Lens' RestoreImageFromRecycleBin Text Source #
The ID of the AMI to restore.
Destructuring the Response
data RestoreImageFromRecycleBinResponse Source #
See: newRestoreImageFromRecycleBinResponse
smart constructor.
RestoreImageFromRecycleBinResponse' | |
|
Instances
Generic RestoreImageFromRecycleBinResponse Source # | |
Read RestoreImageFromRecycleBinResponse Source # | |
Show RestoreImageFromRecycleBinResponse Source # | |
NFData RestoreImageFromRecycleBinResponse Source # | |
Defined in Amazonka.EC2.RestoreImageFromRecycleBin rnf :: RestoreImageFromRecycleBinResponse -> () # | |
Eq RestoreImageFromRecycleBinResponse Source # | |
type Rep RestoreImageFromRecycleBinResponse Source # | |
Defined in Amazonka.EC2.RestoreImageFromRecycleBin type Rep RestoreImageFromRecycleBinResponse = D1 ('MetaData "RestoreImageFromRecycleBinResponse" "Amazonka.EC2.RestoreImageFromRecycleBin" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "RestoreImageFromRecycleBinResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "return'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newRestoreImageFromRecycleBinResponse Source #
Create a value of RestoreImageFromRecycleBinResponse
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:return':RestoreImageFromRecycleBinResponse'
, restoreImageFromRecycleBinResponse_return
- Returns true
if the request succeeds; otherwise, it returns an error.
$sel:httpStatus:RestoreImageFromRecycleBinResponse'
, restoreImageFromRecycleBinResponse_httpStatus
- The response's http status code.
Response Lenses
restoreImageFromRecycleBinResponse_return :: Lens' RestoreImageFromRecycleBinResponse (Maybe Bool) Source #
Returns true
if the request succeeds; otherwise, it returns an error.
restoreImageFromRecycleBinResponse_httpStatus :: Lens' RestoreImageFromRecycleBinResponse Int Source #
The response's http status code.