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 |
Cancels the deprecation of the specified AMI.
For more information, see Deprecate an AMI in the Amazon EC2 User Guide.
Synopsis
- data DisableImageDeprecation = DisableImageDeprecation' {}
- newDisableImageDeprecation :: Text -> DisableImageDeprecation
- disableImageDeprecation_dryRun :: Lens' DisableImageDeprecation (Maybe Bool)
- disableImageDeprecation_imageId :: Lens' DisableImageDeprecation Text
- data DisableImageDeprecationResponse = DisableImageDeprecationResponse' {
- return' :: Maybe Bool
- httpStatus :: Int
- newDisableImageDeprecationResponse :: Int -> DisableImageDeprecationResponse
- disableImageDeprecationResponse_return :: Lens' DisableImageDeprecationResponse (Maybe Bool)
- disableImageDeprecationResponse_httpStatus :: Lens' DisableImageDeprecationResponse Int
Creating a Request
data DisableImageDeprecation Source #
See: newDisableImageDeprecation
smart constructor.
DisableImageDeprecation' | |
|
Instances
newDisableImageDeprecation Source #
Create a value of DisableImageDeprecation
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:DisableImageDeprecation'
, disableImageDeprecation_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
.
DisableImageDeprecation
, disableImageDeprecation_imageId
- The ID of the AMI.
Request Lenses
disableImageDeprecation_dryRun :: Lens' DisableImageDeprecation (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
.
disableImageDeprecation_imageId :: Lens' DisableImageDeprecation Text Source #
The ID of the AMI.
Destructuring the Response
data DisableImageDeprecationResponse Source #
See: newDisableImageDeprecationResponse
smart constructor.
DisableImageDeprecationResponse' | |
|
Instances
Generic DisableImageDeprecationResponse Source # | |
Read DisableImageDeprecationResponse Source # | |
Show DisableImageDeprecationResponse Source # | |
Defined in Amazonka.EC2.DisableImageDeprecation | |
NFData DisableImageDeprecationResponse Source # | |
Defined in Amazonka.EC2.DisableImageDeprecation rnf :: DisableImageDeprecationResponse -> () # | |
Eq DisableImageDeprecationResponse Source # | |
type Rep DisableImageDeprecationResponse Source # | |
Defined in Amazonka.EC2.DisableImageDeprecation type Rep DisableImageDeprecationResponse = D1 ('MetaData "DisableImageDeprecationResponse" "Amazonka.EC2.DisableImageDeprecation" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DisableImageDeprecationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "return'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDisableImageDeprecationResponse Source #
Create a value of DisableImageDeprecationResponse
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':DisableImageDeprecationResponse'
, disableImageDeprecationResponse_return
- Returns true
if the request succeeds; otherwise, it returns an error.
$sel:httpStatus:DisableImageDeprecationResponse'
, disableImageDeprecationResponse_httpStatus
- The response's http status code.
Response Lenses
disableImageDeprecationResponse_return :: Lens' DisableImageDeprecationResponse (Maybe Bool) Source #
Returns true
if the request succeeds; otherwise, it returns an error.
disableImageDeprecationResponse_httpStatus :: Lens' DisableImageDeprecationResponse Int Source #
The response's http status code.