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

Contents

Description

Purchases one or more Scheduled Instances with the specified schedule.

Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call DescribeScheduledInstanceAvailability to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call RunScheduledInstances during each scheduled time period.

After you purchase a Scheduled Instance, you can't cancel, modify, or resell your purchase.

Synopsis

Creating a Request

purchaseScheduledInstances #

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

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

  • psiClientToken - Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency .
  • psiDryRun - 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 .
  • psiPurchaseRequests - One or more purchase requests.

data PurchaseScheduledInstances #

Contains the parameters for PurchaseScheduledInstances.

See: purchaseScheduledInstances smart constructor.

Instances

Eq PurchaseScheduledInstances # 
Data PurchaseScheduledInstances # 

Methods

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

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

toConstr :: PurchaseScheduledInstances -> Constr #

dataTypeOf :: PurchaseScheduledInstances -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PurchaseScheduledInstances # 
Show PurchaseScheduledInstances # 
Generic PurchaseScheduledInstances # 
Hashable PurchaseScheduledInstances # 
NFData PurchaseScheduledInstances # 
AWSRequest PurchaseScheduledInstances # 
ToQuery PurchaseScheduledInstances # 
ToPath PurchaseScheduledInstances # 
ToHeaders PurchaseScheduledInstances # 
type Rep PurchaseScheduledInstances # 
type Rep PurchaseScheduledInstances = D1 (MetaData "PurchaseScheduledInstances" "Network.AWS.EC2.PurchaseScheduledInstances" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "PurchaseScheduledInstances'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_psiClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_psiDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_psiPurchaseRequests") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (List1 PurchaseRequest))))))
type Rs PurchaseScheduledInstances # 

Request Lenses

psiClientToken :: Lens' PurchaseScheduledInstances (Maybe Text) #

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

psiDryRun :: Lens' PurchaseScheduledInstances (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 .

Destructuring the Response

purchaseScheduledInstancesResponse #

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

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

data PurchaseScheduledInstancesResponse #

Contains the output of PurchaseScheduledInstances.

See: purchaseScheduledInstancesResponse smart constructor.

Instances

Eq PurchaseScheduledInstancesResponse # 
Data PurchaseScheduledInstancesResponse # 

Methods

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

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

toConstr :: PurchaseScheduledInstancesResponse -> Constr #

dataTypeOf :: PurchaseScheduledInstancesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Response Lenses