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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 #

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 #

Contains the parameters for RebootInstances.

See: rebootInstances smart constructor.

Instances

Eq RebootInstances # 
Data 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 # 
Show RebootInstances # 
Generic RebootInstances # 
Hashable RebootInstances # 
NFData RebootInstances # 

Methods

rnf :: RebootInstances -> () #

AWSRequest RebootInstances # 
ToQuery RebootInstances # 
ToPath RebootInstances # 
ToHeaders RebootInstances # 
type Rep RebootInstances # 
type Rep RebootInstances = D1 (MetaData "RebootInstances" "Network.AWS.EC2.RebootInstances" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "RebootInstances'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rebDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_rebInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]))))
type Rs RebootInstances # 

Request Lenses

rebDryRun :: Lens' RebootInstances (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 .

rebInstanceIds :: Lens' RebootInstances [Text] #

One or more instance IDs.

Destructuring the Response

rebootInstancesResponse :: RebootInstancesResponse #

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

data RebootInstancesResponse #

See: rebootInstancesResponse smart constructor.

Instances

Eq RebootInstancesResponse # 
Data RebootInstancesResponse # 

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 # 
Show RebootInstancesResponse # 
Generic RebootInstancesResponse # 
NFData RebootInstancesResponse # 

Methods

rnf :: RebootInstancesResponse -> () #

type Rep RebootInstancesResponse # 
type Rep RebootInstancesResponse = D1 (MetaData "RebootInstancesResponse" "Network.AWS.EC2.RebootInstances" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "RebootInstancesResponse'" PrefixI False) U1)