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.RunScheduledInstances

Contents

Description

Launches the specified Scheduled Instances.

Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances .

You must launch a Scheduled Instance during its scheduled time period. You can't stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes. For more information, see Scheduled Instances in the Amazon Elastic Compute Cloud User Guide .

Synopsis

Creating a Request

runScheduledInstances #

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

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

  • rsiClientToken - Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency .
  • rsiInstanceCount - The number of instances. Default: 1
  • rsiDryRun - 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 .
  • rsiScheduledInstanceId - The Scheduled Instance ID.
  • rsiLaunchSpecification - The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased.

data RunScheduledInstances #

Contains the parameters for RunScheduledInstances.

See: runScheduledInstances smart constructor.

Instances

Eq RunScheduledInstances # 
Data RunScheduledInstances # 

Methods

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

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

toConstr :: RunScheduledInstances -> Constr #

dataTypeOf :: RunScheduledInstances -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RunScheduledInstances # 
Show RunScheduledInstances # 
Generic RunScheduledInstances # 
Hashable RunScheduledInstances # 
NFData RunScheduledInstances # 

Methods

rnf :: RunScheduledInstances -> () #

AWSRequest RunScheduledInstances # 
ToQuery RunScheduledInstances # 
ToPath RunScheduledInstances # 
ToHeaders RunScheduledInstances # 
type Rep RunScheduledInstances # 
type Rep RunScheduledInstances = D1 (MetaData "RunScheduledInstances" "Network.AWS.EC2.RunScheduledInstances" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "RunScheduledInstances'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_rsiClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_rsiInstanceCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))) ((:*:) (S1 (MetaSel (Just Symbol "_rsiDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_rsiScheduledInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_rsiLaunchSpecification") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ScheduledInstancesLaunchSpecification))))))
type Rs RunScheduledInstances # 

Request Lenses

rsiClientToken :: Lens' RunScheduledInstances (Maybe Text) #

Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency .

rsiInstanceCount :: Lens' RunScheduledInstances (Maybe Int) #

The number of instances. Default: 1

rsiDryRun :: Lens' RunScheduledInstances (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 .

rsiLaunchSpecification :: Lens' RunScheduledInstances ScheduledInstancesLaunchSpecification #

The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased.

Destructuring the Response

runScheduledInstancesResponse #

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

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

data RunScheduledInstancesResponse #

Contains the output of RunScheduledInstances.

See: runScheduledInstancesResponse smart constructor.

Instances

Eq RunScheduledInstancesResponse # 
Data RunScheduledInstancesResponse # 

Methods

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

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

toConstr :: RunScheduledInstancesResponse -> Constr #

dataTypeOf :: RunScheduledInstancesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RunScheduledInstancesResponse # 
Show RunScheduledInstancesResponse # 
Generic RunScheduledInstancesResponse # 
NFData RunScheduledInstancesResponse # 
type Rep RunScheduledInstancesResponse # 
type Rep RunScheduledInstancesResponse = D1 (MetaData "RunScheduledInstancesResponse" "Network.AWS.EC2.RunScheduledInstances" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "RunScheduledInstancesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rrsInstanceIdSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_rrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

rrsInstanceIdSet :: Lens' RunScheduledInstancesResponse [Text] #

The IDs of the newly launched instances.