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

Description

Restores an AMI from the Recycle Bin. For more information, see Recycle Bin in the Amazon EC2 User Guide.

Synopsis

Creating a Request

data RestoreImageFromRecycleBin Source #

See: newRestoreImageFromRecycleBin smart constructor.

Constructors

RestoreImageFromRecycleBin' 

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 to restore.

Instances

Instances details
ToHeaders RestoreImageFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

ToPath RestoreImageFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

ToQuery RestoreImageFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

AWSRequest RestoreImageFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

Generic RestoreImageFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

Associated Types

type Rep RestoreImageFromRecycleBin :: Type -> Type #

Read RestoreImageFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

Show RestoreImageFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

NFData RestoreImageFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

Eq RestoreImageFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

Hashable RestoreImageFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

type AWSResponse RestoreImageFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

type Rep RestoreImageFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

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

newRestoreImageFromRecycleBin Source #

Create a value of RestoreImageFromRecycleBin 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:RestoreImageFromRecycleBin', restoreImageFromRecycleBin_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.

RestoreImageFromRecycleBin, restoreImageFromRecycleBin_imageId - The ID of the AMI to restore.

Request Lenses

restoreImageFromRecycleBin_dryRun :: Lens' RestoreImageFromRecycleBin (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 RestoreImageFromRecycleBinResponse Source #

Constructors

RestoreImageFromRecycleBinResponse' 

Fields

Instances

Instances details
Generic RestoreImageFromRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

Associated Types

type Rep RestoreImageFromRecycleBinResponse :: Type -> Type #

Read RestoreImageFromRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

Show RestoreImageFromRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

NFData RestoreImageFromRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

Eq RestoreImageFromRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

type Rep RestoreImageFromRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreImageFromRecycleBin

type Rep RestoreImageFromRecycleBinResponse = D1 ('MetaData "RestoreImageFromRecycleBinResponse" "Amazonka.EC2.RestoreImageFromRecycleBin" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "RestoreImageFromRecycleBinResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "return'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newRestoreImageFromRecycleBinResponse Source #

Create a value of RestoreImageFromRecycleBinResponse 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':RestoreImageFromRecycleBinResponse', restoreImageFromRecycleBinResponse_return - Returns true if the request succeeds; otherwise, it returns an error.

$sel:httpStatus:RestoreImageFromRecycleBinResponse', restoreImageFromRecycleBinResponse_httpStatus - The response's http status code.

Response Lenses

restoreImageFromRecycleBinResponse_return :: Lens' RestoreImageFromRecycleBinResponse (Maybe Bool) Source #

Returns true if the request succeeds; otherwise, it returns an error.