amazonka-ec2-1.6.1: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.RebootInstances

Contents

Description

Requests a reboot of one or more 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 four minutes, Amazon EC2 performs a hard reboot.

For more information about troubleshooting, see Getting Console Output and Rebooting Instances in the Amazon Elastic Compute Cloud User Guide .

Synopsis

Creating a Request

rebootInstances :: RebootInstances Source #

Creates a value of RebootInstances with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • rebDryRun - 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 .
  • rebInstanceIds - One or more instance IDs.

data RebootInstances Source #

Contains the parameters for RebootInstances.

See: rebootInstances smart constructor.

Instances
Eq RebootInstances Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

Data RebootInstances Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RebootInstances -> c RebootInstances #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RebootInstances #

toConstr :: RebootInstances -> Constr #

dataTypeOf :: RebootInstances -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RebootInstances) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RebootInstances) #

gmapT :: (forall b. Data b => b -> b) -> RebootInstances -> RebootInstances #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RebootInstances -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RebootInstances -> r #

gmapQ :: (forall d. Data d => d -> u) -> RebootInstances -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RebootInstances -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RebootInstances -> m RebootInstances #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RebootInstances -> m RebootInstances #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RebootInstances -> m RebootInstances #

Read RebootInstances Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

Show RebootInstances Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

Generic RebootInstances Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

Associated Types

type Rep RebootInstances :: Type -> Type #

Hashable RebootInstances Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

AWSRequest RebootInstances Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

Associated Types

type Rs RebootInstances :: Type #

ToHeaders RebootInstances Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

ToPath RebootInstances Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

ToQuery RebootInstances Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

NFData RebootInstances Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

Methods

rnf :: RebootInstances -> () #

type Rep RebootInstances Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

type Rep RebootInstances = D1 (MetaData "RebootInstances" "Network.AWS.EC2.RebootInstances" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "RebootInstances'" PrefixI True) (S1 (MetaSel (Just "_rebDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_rebInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])))
type Rs RebootInstances Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

Request Lenses

rebDryRun :: 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 .

rebInstanceIds :: Lens' RebootInstances [Text] Source #

One or more instance IDs.

Destructuring the Response

rebootInstancesResponse :: RebootInstancesResponse Source #

Creates a value of RebootInstancesResponse with the minimum fields required to make a request.

data RebootInstancesResponse Source #

See: rebootInstancesResponse smart constructor.

Instances
Eq RebootInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

Data RebootInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RebootInstancesResponse -> c RebootInstancesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RebootInstancesResponse #

toConstr :: RebootInstancesResponse -> Constr #

dataTypeOf :: RebootInstancesResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RebootInstancesResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RebootInstancesResponse) #

gmapT :: (forall b. Data b => b -> b) -> RebootInstancesResponse -> RebootInstancesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RebootInstancesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RebootInstancesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> RebootInstancesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RebootInstancesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RebootInstancesResponse -> m RebootInstancesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RebootInstancesResponse -> m RebootInstancesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RebootInstancesResponse -> m RebootInstancesResponse #

Read RebootInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

Show RebootInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

Generic RebootInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

Associated Types

type Rep RebootInstancesResponse :: Type -> Type #

NFData RebootInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

Methods

rnf :: RebootInstancesResponse -> () #

type Rep RebootInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.RebootInstances

type Rep RebootInstancesResponse = D1 (MetaData "RebootInstancesResponse" "Network.AWS.EC2.RebootInstances" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "RebootInstancesResponse'" PrefixI False) (U1 :: Type -> Type))