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.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 .
  • rsiLaunchSpecification - The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased.
  • rsiScheduledInstanceId - The Scheduled Instance ID.

data RunScheduledInstances Source #

Contains the parameters for RunScheduledInstances.

See: runScheduledInstances smart constructor.

Instances
Eq RunScheduledInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

Data RunScheduledInstances Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

Show RunScheduledInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

Generic RunScheduledInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

Associated Types

type Rep RunScheduledInstances :: Type -> Type #

Hashable RunScheduledInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

AWSRequest RunScheduledInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

Associated Types

type Rs RunScheduledInstances :: Type #

ToHeaders RunScheduledInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

ToPath RunScheduledInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

ToQuery RunScheduledInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

NFData RunScheduledInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

Methods

rnf :: RunScheduledInstances -> () #

type Rep RunScheduledInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

type Rep RunScheduledInstances = D1 (MetaData "RunScheduledInstances" "Network.AWS.EC2.RunScheduledInstances" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "RunScheduledInstances'" PrefixI True) ((S1 (MetaSel (Just "_rsiClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rsiInstanceCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 (MetaSel (Just "_rsiDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_rsiLaunchSpecification") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ScheduledInstancesLaunchSpecification) :*: S1 (MetaSel (Just "_rsiScheduledInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs RunScheduledInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

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

Defined in Network.AWS.EC2.RunScheduledInstances

Data RunScheduledInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

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

Defined in Network.AWS.EC2.RunScheduledInstances

Show RunScheduledInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

Generic RunScheduledInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

Associated Types

type Rep RunScheduledInstancesResponse :: Type -> Type #

NFData RunScheduledInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

type Rep RunScheduledInstancesResponse Source # 
Instance details

Defined in Network.AWS.EC2.RunScheduledInstances

type Rep RunScheduledInstancesResponse = D1 (MetaData "RunScheduledInstancesResponse" "Network.AWS.EC2.RunScheduledInstances" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "RunScheduledInstancesResponse'" PrefixI True) (S1 (MetaSel (Just "_rrsInstanceIdSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_rrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

rrsInstanceIdSet :: Lens' RunScheduledInstancesResponse [Text] Source #

The IDs of the newly launched instances.