amazonka-ec2-1.4.0: 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.

Synopsis

Creating a Request

purchaseScheduledInstances Source

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:

Request Lenses

psiClientToken :: Lens' PurchaseScheduledInstances (Maybe Text) Source

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

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

Destructuring the Response

purchaseScheduledInstancesResponse Source

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:

Response Lenses