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

Description

Resets an attribute of an AMI to its default value.

Synopsis

Creating a Request

data ResetImageAttribute Source #

Contains the parameters for ResetImageAttribute.

See: newResetImageAttribute smart constructor.

Constructors

ResetImageAttribute' 

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.

  • attribute :: ResetImageAttributeName

    The attribute to reset (currently you can only reset the launch permission attribute).

  • imageId :: Text

    The ID of the AMI.

Instances

Instances details
ToHeaders ResetImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

ToPath ResetImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

ToQuery ResetImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

AWSRequest ResetImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

Associated Types

type AWSResponse ResetImageAttribute #

Generic ResetImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

Associated Types

type Rep ResetImageAttribute :: Type -> Type #

Read ResetImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

Show ResetImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

NFData ResetImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

Methods

rnf :: ResetImageAttribute -> () #

Eq ResetImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

Hashable ResetImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

type AWSResponse ResetImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

type Rep ResetImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

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

newResetImageAttribute Source #

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

$sel:attribute:ResetImageAttribute', resetImageAttribute_attribute - The attribute to reset (currently you can only reset the launch permission attribute).

ResetImageAttribute, resetImageAttribute_imageId - The ID of the AMI.

Request Lenses

resetImageAttribute_dryRun :: Lens' ResetImageAttribute (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.

resetImageAttribute_attribute :: Lens' ResetImageAttribute ResetImageAttributeName Source #

The attribute to reset (currently you can only reset the launch permission attribute).

Destructuring the Response

data ResetImageAttributeResponse Source #

See: newResetImageAttributeResponse smart constructor.

Instances

Instances details
Generic ResetImageAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

Associated Types

type Rep ResetImageAttributeResponse :: Type -> Type #

Read ResetImageAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

Show ResetImageAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

NFData ResetImageAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

Eq ResetImageAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

type Rep ResetImageAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetImageAttribute

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

newResetImageAttributeResponse :: ResetImageAttributeResponse Source #

Create a value of ResetImageAttributeResponse with all optional fields omitted.

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