| 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 |
Amazonka.EC2.DeregisterImage
Description
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.
Constructors
| DeregisterImage' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeregisterImage |
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.
Constructors
| DeregisterImageResponse' | |
Instances
| Generic DeregisterImageResponse Source # | |
Defined in Amazonka.EC2.DeregisterImage Associated Types type Rep DeregisterImageResponse :: Type -> Type # Methods from :: DeregisterImageResponse -> Rep DeregisterImageResponse x # to :: Rep DeregisterImageResponse x -> DeregisterImageResponse # | |
| Read DeregisterImageResponse Source # | |
Defined in Amazonka.EC2.DeregisterImage | |
| Show DeregisterImageResponse Source # | |
Defined in Amazonka.EC2.DeregisterImage Methods showsPrec :: Int -> DeregisterImageResponse -> ShowS # show :: DeregisterImageResponse -> String # showList :: [DeregisterImageResponse] -> ShowS # | |
| NFData DeregisterImageResponse Source # | |
Defined in Amazonka.EC2.DeregisterImage Methods rnf :: DeregisterImageResponse -> () # | |
| Eq DeregisterImageResponse Source # | |
Defined in Amazonka.EC2.DeregisterImage Methods (==) :: DeregisterImageResponse -> DeregisterImageResponse -> Bool # (/=) :: DeregisterImageResponse -> DeregisterImageResponse -> Bool # | |
| 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.