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

Copyright(c) 2013-2017 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.StartInstances

Contents

Description

Starts an Amazon EBS-backed instance that you've previously stopped.

Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for instance usage. However, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. Every time you start your Windows instance, Amazon EC2 charges you for a full instance hour. If you stop and restart your Windows instance, a new instance hour begins and Amazon EC2 charges you for another full instance hour even if you are still within the same 60-minute period when it was stopped. Every time you start your Linux instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.

Performing this operation on an instance that uses an instance store as its root device returns an error.

For more information, see Stopping Instances in the Amazon Elastic Compute Cloud User Guide .

Synopsis

Creating a Request

startInstances :: StartInstances Source #

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

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

  • sAdditionalInfo - Reserved.
  • sDryRun - 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 .
  • sInstanceIds - One or more instance IDs.

data StartInstances Source #

Contains the parameters for StartInstances.

See: startInstances smart constructor.

Instances

Eq StartInstances Source # 
Data StartInstances Source # 

Methods

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

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

toConstr :: StartInstances -> Constr #

dataTypeOf :: StartInstances -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StartInstances Source # 
Show StartInstances Source # 
Generic StartInstances Source # 

Associated Types

type Rep StartInstances :: * -> * #

Hashable StartInstances Source # 
NFData StartInstances Source # 

Methods

rnf :: StartInstances -> () #

AWSRequest StartInstances Source # 
ToQuery StartInstances Source # 
ToPath StartInstances Source # 
ToHeaders StartInstances Source # 
type Rep StartInstances Source # 
type Rep StartInstances = D1 (MetaData "StartInstances" "Network.AWS.EC2.StartInstances" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "StartInstances'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_sAdditionalInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_sDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_sInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])))))
type Rs StartInstances Source # 

Request Lenses

sDryRun :: Lens' StartInstances (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 .

sInstanceIds :: Lens' StartInstances [Text] Source #

One or more instance IDs.

Destructuring the Response

startInstancesResponse Source #

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

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

data StartInstancesResponse Source #

Contains the output of StartInstances.

See: startInstancesResponse smart constructor.

Instances

Eq StartInstancesResponse Source # 
Data StartInstancesResponse Source # 

Methods

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

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

toConstr :: StartInstancesResponse -> Constr #

dataTypeOf :: StartInstancesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StartInstancesResponse Source # 
Show StartInstancesResponse Source # 
Generic StartInstancesResponse Source # 
NFData StartInstancesResponse Source # 

Methods

rnf :: StartInstancesResponse -> () #

type Rep StartInstancesResponse Source # 
type Rep StartInstancesResponse = D1 (MetaData "StartInstancesResponse" "Network.AWS.EC2.StartInstances" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "StartInstancesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_srsStartingInstances") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [InstanceStateChange]))) (S1 (MetaSel (Just Symbol "_srsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

srsStartingInstances :: Lens' StartInstancesResponse [InstanceStateChange] Source #

Information about one or more started instances.

srsResponseStatus :: Lens' StartInstancesResponse Int Source #

  • - | The response status code.