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.DisableImageDeprecation

Description

Cancels the deprecation of the specified AMI.

For more information, see Deprecate an AMI in the Amazon EC2 User Guide.

Synopsis

Creating a Request

data DisableImageDeprecation Source #

See: newDisableImageDeprecation smart constructor.

Constructors

DisableImageDeprecation' 

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 DisableImageDeprecation Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

ToPath DisableImageDeprecation Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

ToQuery DisableImageDeprecation Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

AWSRequest DisableImageDeprecation Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

Generic DisableImageDeprecation Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

Associated Types

type Rep DisableImageDeprecation :: Type -> Type #

Read DisableImageDeprecation Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

Show DisableImageDeprecation Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

NFData DisableImageDeprecation Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

Methods

rnf :: DisableImageDeprecation -> () #

Eq DisableImageDeprecation Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

Hashable DisableImageDeprecation Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

type AWSResponse DisableImageDeprecation Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

type Rep DisableImageDeprecation Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

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

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.

Destructuring the Response

data DisableImageDeprecationResponse Source #

See: newDisableImageDeprecationResponse smart constructor.

Constructors

DisableImageDeprecationResponse' 

Fields

Instances

Instances details
Generic DisableImageDeprecationResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

Associated Types

type Rep DisableImageDeprecationResponse :: Type -> Type #

Read DisableImageDeprecationResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

Show DisableImageDeprecationResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

NFData DisableImageDeprecationResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

Eq DisableImageDeprecationResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableImageDeprecation

type Rep DisableImageDeprecationResponse Source # 
Instance details

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.