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

Description

Resets an attribute of an instance to its default value. To reset the kernel or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck, the instance can be either running or stopped.

The sourceDestCheck attribute controls whether source/destination checking is enabled. The default value is true, which means checking is enabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon VPC User Guide.

Synopsis

Creating a Request

data ResetInstanceAttribute Source #

See: newResetInstanceAttribute smart constructor.

Constructors

ResetInstanceAttribute' 

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 :: InstanceAttributeName

    The attribute to reset.

    You can only reset the following attributes: kernel | ramdisk | sourceDestCheck.

  • instanceId :: Text

    The ID of the instance.

Instances

Instances details
ToHeaders ResetInstanceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

ToPath ResetInstanceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

ToQuery ResetInstanceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

AWSRequest ResetInstanceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

Associated Types

type AWSResponse ResetInstanceAttribute #

Generic ResetInstanceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

Associated Types

type Rep ResetInstanceAttribute :: Type -> Type #

Read ResetInstanceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

Show ResetInstanceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

NFData ResetInstanceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

Methods

rnf :: ResetInstanceAttribute -> () #

Eq ResetInstanceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

Hashable ResetInstanceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

type AWSResponse ResetInstanceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

type Rep ResetInstanceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

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

newResetInstanceAttribute Source #

Create a value of ResetInstanceAttribute 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:ResetInstanceAttribute', resetInstanceAttribute_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:ResetInstanceAttribute', resetInstanceAttribute_attribute - The attribute to reset.

You can only reset the following attributes: kernel | ramdisk | sourceDestCheck.

ResetInstanceAttribute, resetInstanceAttribute_instanceId - The ID of the instance.

Request Lenses

resetInstanceAttribute_dryRun :: Lens' ResetInstanceAttribute (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.

resetInstanceAttribute_attribute :: Lens' ResetInstanceAttribute InstanceAttributeName Source #

The attribute to reset.

You can only reset the following attributes: kernel | ramdisk | sourceDestCheck.

Destructuring the Response

data ResetInstanceAttributeResponse Source #

See: newResetInstanceAttributeResponse smart constructor.

Instances

Instances details
Generic ResetInstanceAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

Associated Types

type Rep ResetInstanceAttributeResponse :: Type -> Type #

Read ResetInstanceAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

Show ResetInstanceAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

NFData ResetInstanceAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

Eq ResetInstanceAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

type Rep ResetInstanceAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetInstanceAttribute

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

newResetInstanceAttributeResponse :: ResetInstanceAttributeResponse Source #

Create a value of ResetInstanceAttributeResponse with all optional fields omitted.

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