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 Source #

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 Source #

Contains the parameters for RunScheduledInstances.

See: runScheduledInstances smart constructor.

Instances

Eq RunScheduledInstances Source # 
Data RunScheduledInstances Source # 

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 Source # 
Show RunScheduledInstances Source # 
Generic RunScheduledInstances Source # 
Hashable RunScheduledInstances Source # 
NFData RunScheduledInstances Source # 

Methods

rnf :: RunScheduledInstances -> () #

AWSRequest RunScheduledInstances Source # 
ToPath RunScheduledInstances Source # 
ToHeaders RunScheduledInstances Source # 
ToQuery RunScheduledInstances Source # 
type Rep RunScheduledInstances Source # 
type Rep RunScheduledInstances = D1 (MetaData "RunScheduledInstances" "Network.AWS.EC2.RunScheduledInstances" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" 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 Source # 

Request Lenses

rsiClientToken :: Lens' RunScheduledInstances (Maybe Text) Source #

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

rsiInstanceCount :: Lens' RunScheduledInstances (Maybe Int) Source #

The number of instances. Default: 1

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

rsiLaunchSpecification :: Lens' RunScheduledInstances ScheduledInstancesLaunchSpecification Source #

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

Destructuring the Response

runScheduledInstancesResponse Source #

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 Source #

Contains the output of RunScheduledInstances.

See: runScheduledInstancesResponse smart constructor.

Instances

Eq RunScheduledInstancesResponse Source # 
Data RunScheduledInstancesResponse Source # 

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 Source # 
Show RunScheduledInstancesResponse Source # 
Generic RunScheduledInstancesResponse Source # 
NFData RunScheduledInstancesResponse Source # 
type Rep RunScheduledInstancesResponse Source # 
type Rep RunScheduledInstancesResponse = D1 (MetaData "RunScheduledInstancesResponse" "Network.AWS.EC2.RunScheduledInstances" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" 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] Source #

The IDs of the newly launched instances.