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

Defined in Network.AWS.EC2.StartInstances

Data StartInstances Source # 
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 Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Show StartInstances Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Generic StartInstances Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Associated Types

type Rep StartInstances :: Type -> Type #

Hashable StartInstances Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

AWSRequest StartInstances Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Associated Types

type Rs StartInstances :: Type #

ToHeaders StartInstances Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

ToPath StartInstances Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

ToQuery StartInstances Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

NFData StartInstances Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Methods

rnf :: StartInstances -> () #

type Rep StartInstances Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

type Rep StartInstances = D1 (MetaData "StartInstances" "Network.AWS.EC2.StartInstances" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" 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 Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

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

Defined in Network.AWS.EC2.StartInstances

Data StartInstancesResponse Source # 
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 Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Show StartInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Generic StartInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Associated Types

type Rep StartInstancesResponse :: Type -> Type #

NFData StartInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

Methods

rnf :: StartInstancesResponse -> () #

type Rep StartInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.StartInstances

type Rep StartInstancesResponse = D1 (MetaData "StartInstancesResponse" "Network.AWS.EC2.StartInstances" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" 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] Source #

Information about one or more started instances.

srsResponseStatus :: Lens' StartInstancesResponse Int Source #

  • - | The response status code.