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

Description

Requests a reboot of the specified instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.

If an instance does not cleanly shut down within a few minutes, Amazon EC2 performs a hard reboot.

For more information about troubleshooting, see Troubleshoot an unreachable instance in the Amazon EC2 User Guide.

Synopsis

Creating a Request

data RebootInstances Source #

See: newRebootInstances smart constructor.

Constructors

RebootInstances' 

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.

  • instanceIds :: [Text]

    The instance IDs.

Instances

Instances details
ToHeaders RebootInstances Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

ToPath RebootInstances Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

ToQuery RebootInstances Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

AWSRequest RebootInstances Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

Associated Types

type AWSResponse RebootInstances #

Generic RebootInstances Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

Associated Types

type Rep RebootInstances :: Type -> Type #

Read RebootInstances Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

Show RebootInstances Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

NFData RebootInstances Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

Methods

rnf :: RebootInstances -> () #

Eq RebootInstances Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

Hashable RebootInstances Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

type AWSResponse RebootInstances Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

type Rep RebootInstances Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

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

newRebootInstances :: RebootInstances Source #

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

RebootInstances, rebootInstances_instanceIds - The instance IDs.

Request Lenses

rebootInstances_dryRun :: Lens' RebootInstances (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 RebootInstancesResponse Source #

See: newRebootInstancesResponse smart constructor.

Instances

Instances details
Generic RebootInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

Associated Types

type Rep RebootInstancesResponse :: Type -> Type #

Read RebootInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

Show RebootInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

NFData RebootInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

Methods

rnf :: RebootInstancesResponse -> () #

Eq RebootInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

type Rep RebootInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.RebootInstances

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

newRebootInstancesResponse :: RebootInstancesResponse Source #

Create a value of RebootInstancesResponse with all optional fields omitted.

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