amazonka-ec2-1.6.0: 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.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 #

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 #

Contains the parameters for StartInstances.

See: startInstances smart constructor.

Instances
Eq StartInstances # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Data StartInstances # 
Instance details

Defined in Network.AWS.EC2.StartInstances

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 # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Show StartInstances # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Generic StartInstances # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Associated Types

type Rep StartInstances :: * -> * #

Hashable StartInstances # 
Instance details

Defined in Network.AWS.EC2.StartInstances

AWSRequest StartInstances # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Associated Types

type Rs StartInstances :: * #

ToHeaders StartInstances # 
Instance details

Defined in Network.AWS.EC2.StartInstances

ToPath StartInstances # 
Instance details

Defined in Network.AWS.EC2.StartInstances

ToQuery StartInstances # 
Instance details

Defined in Network.AWS.EC2.StartInstances

NFData StartInstances # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Methods

rnf :: StartInstances -> () #

type Rep StartInstances # 
Instance details

Defined in Network.AWS.EC2.StartInstances

type Rep StartInstances = D1 (MetaData "StartInstances" "Network.AWS.EC2.StartInstances" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "StartInstances'" PrefixI True) (S1 (MetaSel (Just "_sAdditionalInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_sDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_sInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]))))
type Rs StartInstances # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Request Lenses

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

sInstanceIds :: Lens' StartInstances [Text] #

One or more instance IDs.

Destructuring the Response

startInstancesResponse #

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 #

Contains the output of StartInstances.

See: startInstancesResponse smart constructor.

Instances
Eq StartInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Data StartInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.StartInstances

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 # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Show StartInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Generic StartInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Associated Types

type Rep StartInstancesResponse :: * -> * #

NFData StartInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Methods

rnf :: StartInstancesResponse -> () #

type Rep StartInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.StartInstances

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

Response Lenses

srsStartingInstances :: Lens' StartInstancesResponse [InstanceStateChange] #

Information about one or more started instances.

srsResponseStatus :: Lens' StartInstancesResponse Int #

  • - | The response status code.