amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data DeregisterImage Source #

Contains the parameters for DeregisterImage.

See: newDeregisterImage smart constructor.

Constructors

DeregisterImage' 

Fields

  • dryRun :: 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.

  • imageId :: Text

    The ID of the AMI.

Instances

Instances details
ToHeaders DeregisterImage Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

ToPath DeregisterImage Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

ToQuery DeregisterImage Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

AWSRequest DeregisterImage Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

Associated Types

type AWSResponse DeregisterImage #

Generic DeregisterImage Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

Associated Types

type Rep DeregisterImage :: Type -> Type #

Read DeregisterImage Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

Show DeregisterImage Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

NFData DeregisterImage Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

Methods

rnf :: DeregisterImage -> () #

Eq DeregisterImage Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

Hashable DeregisterImage Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

type AWSResponse DeregisterImage Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

type Rep DeregisterImage Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

type Rep DeregisterImage = D1 ('MetaData "DeregisterImage" "Amazonka.EC2.DeregisterImage" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeregisterImage'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "imageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeregisterImage Source #

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.

Destructuring the Response

data DeregisterImageResponse Source #

See: newDeregisterImageResponse smart constructor.

Instances

Instances details
Generic DeregisterImageResponse Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

Associated Types

type Rep DeregisterImageResponse :: Type -> Type #

Read DeregisterImageResponse Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

Show DeregisterImageResponse Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

NFData DeregisterImageResponse Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

Methods

rnf :: DeregisterImageResponse -> () #

Eq DeregisterImageResponse Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

type Rep DeregisterImageResponse Source # 
Instance details

Defined in Amazonka.EC2.DeregisterImage

type Rep DeregisterImageResponse = D1 ('MetaData "DeregisterImageResponse" "Amazonka.EC2.DeregisterImage" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeregisterImageResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeregisterImageResponse :: DeregisterImageResponse Source #

Create a value of DeregisterImageResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.