Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.EC2.DeregisterImage
Description
Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch new instances.
This command does not delete the AMI.
Creating a Request
Arguments
:: Text | |
-> DeregisterImage |
Creates a value of DeregisterImage
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DeregisterImage #
Contains the parameters for DeregisterImage.
See: deregisterImage
smart constructor.
Instances
Request Lenses
diDryRun :: Lens' DeregisterImage (Maybe Bool) #
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
.
diImageId :: Lens' DeregisterImage Text #
The ID of the AMI.
Destructuring the Response
deregisterImageResponse :: DeregisterImageResponse #
Creates a value of DeregisterImageResponse
with the minimum fields required to make a request.
data DeregisterImageResponse #
See: deregisterImageResponse
smart constructor.