amazonka-ec2-1.6.0: 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.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 # 
Instance details

Defined in Network.AWS.EC2.PurchaseScheduledInstances

Data PurchaseScheduledInstances # 
Instance details

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

Defined in Network.AWS.EC2.PurchaseScheduledInstances

Show PurchaseScheduledInstances # 
Instance details

Defined in Network.AWS.EC2.PurchaseScheduledInstances

Generic PurchaseScheduledInstances # 
Instance details

Defined in Network.AWS.EC2.PurchaseScheduledInstances

Associated Types

type Rep PurchaseScheduledInstances :: * -> * #

Hashable PurchaseScheduledInstances # 
Instance details

Defined in Network.AWS.EC2.PurchaseScheduledInstances

AWSRequest PurchaseScheduledInstances # 
Instance details

Defined in Network.AWS.EC2.PurchaseScheduledInstances

Associated Types

type Rs PurchaseScheduledInstances :: * #

ToHeaders PurchaseScheduledInstances # 
Instance details

Defined in Network.AWS.EC2.PurchaseScheduledInstances

ToPath PurchaseScheduledInstances # 
Instance details

Defined in Network.AWS.EC2.PurchaseScheduledInstances

ToQuery PurchaseScheduledInstances # 
Instance details

Defined in Network.AWS.EC2.PurchaseScheduledInstances

NFData PurchaseScheduledInstances # 
Instance details

Defined in Network.AWS.EC2.PurchaseScheduledInstances

type Rep PurchaseScheduledInstances # 
Instance details

Defined in Network.AWS.EC2.PurchaseScheduledInstances

type Rep PurchaseScheduledInstances = D1 (MetaData "PurchaseScheduledInstances" "Network.AWS.EC2.PurchaseScheduledInstances" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "PurchaseScheduledInstances'" PrefixI True) (S1 (MetaSel (Just "_psiClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_psiDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_psiPurchaseRequests") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (List1 PurchaseRequest)))))
type Rs PurchaseScheduledInstances # 
Instance details

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

Defined in Network.AWS.EC2.PurchaseScheduledInstances

Data PurchaseScheduledInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.PurchaseScheduledInstances

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

Defined in Network.AWS.EC2.PurchaseScheduledInstances

Show PurchaseScheduledInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.PurchaseScheduledInstances

Generic PurchaseScheduledInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.PurchaseScheduledInstances

Associated Types

type Rep PurchaseScheduledInstancesResponse :: * -> * #

NFData PurchaseScheduledInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.PurchaseScheduledInstances

type Rep PurchaseScheduledInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.PurchaseScheduledInstances

type Rep PurchaseScheduledInstancesResponse = D1 (MetaData "PurchaseScheduledInstancesResponse" "Network.AWS.EC2.PurchaseScheduledInstances" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "PurchaseScheduledInstancesResponse'" PrefixI True) (S1 (MetaSel (Just "_psirsScheduledInstanceSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ScheduledInstance])) :*: S1 (MetaSel (Just "_psirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses