amazonka-lightsail-1.6.0: Amazon Lightsail 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.Lightsail.RebootInstance

Contents

Description

Restarts a specific instance. When your Amazon Lightsail instance is finished rebooting, Lightsail assigns a new public IP address. To use the same IP address after restarting, create a static IP address and attach it to the instance.

Synopsis

Creating a Request

rebootInstance Source #

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

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

data RebootInstance Source #

See: rebootInstance smart constructor.

Instances

Eq RebootInstance Source # 
Data RebootInstance Source # 

Methods

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

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

toConstr :: RebootInstance -> Constr #

dataTypeOf :: RebootInstance -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RebootInstance Source # 
Show RebootInstance Source # 
Generic RebootInstance Source # 

Associated Types

type Rep RebootInstance :: * -> * #

Hashable RebootInstance Source # 
ToJSON RebootInstance Source # 
NFData RebootInstance Source # 

Methods

rnf :: RebootInstance -> () #

AWSRequest RebootInstance Source # 
ToHeaders RebootInstance Source # 
ToPath RebootInstance Source # 
ToQuery RebootInstance Source # 
type Rep RebootInstance Source # 
type Rep RebootInstance = D1 * (MetaData "RebootInstance" "Network.AWS.Lightsail.RebootInstance" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" True) (C1 * (MetaCons "RebootInstance'" PrefixI True) (S1 * (MetaSel (Just Symbol "_riInstanceName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs RebootInstance Source # 

Request Lenses

riInstanceName :: Lens' RebootInstance Text Source #

The name of the instance to reboot.

Destructuring the Response

rebootInstanceResponse Source #

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

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

data RebootInstanceResponse Source #

See: rebootInstanceResponse smart constructor.

Instances

Eq RebootInstanceResponse Source # 
Data RebootInstanceResponse Source # 

Methods

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

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

toConstr :: RebootInstanceResponse -> Constr #

dataTypeOf :: RebootInstanceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RebootInstanceResponse Source # 
Show RebootInstanceResponse Source # 
Generic RebootInstanceResponse Source # 
NFData RebootInstanceResponse Source # 

Methods

rnf :: RebootInstanceResponse -> () #

type Rep RebootInstanceResponse Source # 
type Rep RebootInstanceResponse = D1 * (MetaData "RebootInstanceResponse" "Network.AWS.Lightsail.RebootInstance" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" False) (C1 * (MetaCons "RebootInstanceResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_rirsOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Operation]))) (S1 * (MetaSel (Just Symbol "_rirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

rirsOperations :: Lens' RebootInstanceResponse [Operation] Source #

An array of key-value pairs containing information about the request operations.

rirsResponseStatus :: Lens' RebootInstanceResponse Int Source #

  • - | The response status code.