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 |
Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch new instances.
If you deregister an AMI that matches a Recycle Bin retention rule, the AMI is retained in the Recycle Bin for the specified retention period. For more information, see Recycle Bin in the Amazon EC2 User Guide.
When you deregister an AMI, it doesn't affect any instances that you've already launched from the AMI. You'll continue to incur usage costs for those instances until you terminate them.
When you deregister an Amazon EBS-backed AMI, it doesn't affect the snapshot that was created for the root volume of the instance during the AMI creation process. When you deregister an instance store-backed AMI, it doesn't affect the files that you uploaded to Amazon S3 when you created the AMI.
Synopsis
- data DeregisterImage = DeregisterImage' {}
- newDeregisterImage :: Text -> DeregisterImage
- deregisterImage_dryRun :: Lens' DeregisterImage (Maybe Bool)
- deregisterImage_imageId :: Lens' DeregisterImage Text
- data DeregisterImageResponse = DeregisterImageResponse' {
- newDeregisterImageResponse :: DeregisterImageResponse
Creating a Request
data DeregisterImage Source #
Contains the parameters for DeregisterImage.
See: newDeregisterImage
smart constructor.
DeregisterImage' | |
|
Instances
Create a value of DeregisterImage
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:DeregisterImage'
, deregisterImage_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
.
DeregisterImage
, deregisterImage_imageId
- The ID of the AMI.
Request Lenses
deregisterImage_dryRun :: Lens' DeregisterImage (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
.
deregisterImage_imageId :: Lens' DeregisterImage Text Source #
The ID of the AMI.
Destructuring the Response
data DeregisterImageResponse Source #
See: newDeregisterImageResponse
smart constructor.
Instances
Generic DeregisterImageResponse Source # | |
Defined in Amazonka.EC2.DeregisterImage type Rep DeregisterImageResponse :: Type -> Type # | |
Read DeregisterImageResponse Source # | |
Show DeregisterImageResponse Source # | |
Defined in Amazonka.EC2.DeregisterImage showsPrec :: Int -> DeregisterImageResponse -> ShowS # show :: DeregisterImageResponse -> String # showList :: [DeregisterImageResponse] -> ShowS # | |
NFData DeregisterImageResponse Source # | |
Defined in Amazonka.EC2.DeregisterImage rnf :: DeregisterImageResponse -> () # | |
Eq DeregisterImageResponse Source # | |
Defined in Amazonka.EC2.DeregisterImage | |
type Rep DeregisterImageResponse Source # | |
newDeregisterImageResponse :: DeregisterImageResponse Source #
Create a value of DeregisterImageResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.