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

Description

Modifies the recovery behavior of your instance to disable simplified automatic recovery or set the recovery behavior to default. The default configuration will not enable simplified automatic recovery for an unsupported instance type. For more information, see Simplified automatic recovery.

Synopsis

Creating a Request

data ModifyInstanceMaintenanceOptions Source #

See: newModifyInstanceMaintenanceOptions smart constructor.

Constructors

ModifyInstanceMaintenanceOptions' 

Fields

  • autoRecovery :: Maybe InstanceAutoRecoveryState

    Disables the automatic recovery behavior of your instance or sets it to default.

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

  • instanceId :: Text

    The ID of the instance.

Instances

Instances details
ToHeaders ModifyInstanceMaintenanceOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

ToPath ModifyInstanceMaintenanceOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

ToQuery ModifyInstanceMaintenanceOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

AWSRequest ModifyInstanceMaintenanceOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

Generic ModifyInstanceMaintenanceOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

Associated Types

type Rep ModifyInstanceMaintenanceOptions :: Type -> Type #

Read ModifyInstanceMaintenanceOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

Show ModifyInstanceMaintenanceOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

NFData ModifyInstanceMaintenanceOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

Eq ModifyInstanceMaintenanceOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

Hashable ModifyInstanceMaintenanceOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

type AWSResponse ModifyInstanceMaintenanceOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

type Rep ModifyInstanceMaintenanceOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

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

newModifyInstanceMaintenanceOptions Source #

Create a value of ModifyInstanceMaintenanceOptions 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:

ModifyInstanceMaintenanceOptions, modifyInstanceMaintenanceOptions_autoRecovery - Disables the automatic recovery behavior of your instance or sets it to default.

$sel:dryRun:ModifyInstanceMaintenanceOptions', modifyInstanceMaintenanceOptions_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.

ModifyInstanceMaintenanceOptions, modifyInstanceMaintenanceOptions_instanceId - The ID of the instance.

Request Lenses

modifyInstanceMaintenanceOptions_autoRecovery :: Lens' ModifyInstanceMaintenanceOptions (Maybe InstanceAutoRecoveryState) Source #

Disables the automatic recovery behavior of your instance or sets it to default.

modifyInstanceMaintenanceOptions_dryRun :: Lens' ModifyInstanceMaintenanceOptions (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 ModifyInstanceMaintenanceOptionsResponse Source #

Constructors

ModifyInstanceMaintenanceOptionsResponse' 

Fields

Instances

Instances details
Generic ModifyInstanceMaintenanceOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

Read ModifyInstanceMaintenanceOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

Show ModifyInstanceMaintenanceOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

NFData ModifyInstanceMaintenanceOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

Eq ModifyInstanceMaintenanceOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

type Rep ModifyInstanceMaintenanceOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceMaintenanceOptions

type Rep ModifyInstanceMaintenanceOptionsResponse = D1 ('MetaData "ModifyInstanceMaintenanceOptionsResponse" "Amazonka.EC2.ModifyInstanceMaintenanceOptions" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyInstanceMaintenanceOptionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "autoRecovery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceAutoRecoveryState)) :*: (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newModifyInstanceMaintenanceOptionsResponse Source #

Create a value of ModifyInstanceMaintenanceOptionsResponse 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:

ModifyInstanceMaintenanceOptions, modifyInstanceMaintenanceOptionsResponse_autoRecovery - Provides information on the current automatic recovery behavior of your instance.

ModifyInstanceMaintenanceOptions, modifyInstanceMaintenanceOptionsResponse_instanceId - The ID of the instance.

$sel:httpStatus:ModifyInstanceMaintenanceOptionsResponse', modifyInstanceMaintenanceOptionsResponse_httpStatus - The response's http status code.

Response Lenses

modifyInstanceMaintenanceOptionsResponse_autoRecovery :: Lens' ModifyInstanceMaintenanceOptionsResponse (Maybe InstanceAutoRecoveryState) Source #

Provides information on the current automatic recovery behavior of your instance.