Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
You can no longer purchase Scheduled Instances.
Purchases the 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
- data PurchaseScheduledInstances = PurchaseScheduledInstances' {}
- newPurchaseScheduledInstances :: NonEmpty PurchaseRequest -> PurchaseScheduledInstances
- purchaseScheduledInstances_clientToken :: Lens' PurchaseScheduledInstances (Maybe Text)
- purchaseScheduledInstances_dryRun :: Lens' PurchaseScheduledInstances (Maybe Bool)
- purchaseScheduledInstances_purchaseRequests :: Lens' PurchaseScheduledInstances (NonEmpty PurchaseRequest)
- data PurchaseScheduledInstancesResponse = PurchaseScheduledInstancesResponse' {}
- newPurchaseScheduledInstancesResponse :: Int -> PurchaseScheduledInstancesResponse
- purchaseScheduledInstancesResponse_scheduledInstanceSet :: Lens' PurchaseScheduledInstancesResponse (Maybe [ScheduledInstance])
- purchaseScheduledInstancesResponse_httpStatus :: Lens' PurchaseScheduledInstancesResponse Int
Creating a Request
data PurchaseScheduledInstances Source #
Contains the parameters for PurchaseScheduledInstances.
See: newPurchaseScheduledInstances
smart constructor.
PurchaseScheduledInstances' | |
|
Instances
newPurchaseScheduledInstances Source #
Create a value of PurchaseScheduledInstances
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
PurchaseScheduledInstances
, purchaseScheduledInstances_clientToken
- Unique, case-sensitive identifier that ensures the idempotency of the
request. For more information, see
Ensuring Idempotency.
$sel:dryRun:PurchaseScheduledInstances'
, purchaseScheduledInstances_dryRun
- 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
.
$sel:purchaseRequests:PurchaseScheduledInstances'
, purchaseScheduledInstances_purchaseRequests
- The purchase requests.
Request Lenses
purchaseScheduledInstances_clientToken :: Lens' PurchaseScheduledInstances (Maybe Text) Source #
Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.
purchaseScheduledInstances_dryRun :: 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
.
purchaseScheduledInstances_purchaseRequests :: Lens' PurchaseScheduledInstances (NonEmpty PurchaseRequest) Source #
The purchase requests.
Destructuring the Response
data PurchaseScheduledInstancesResponse Source #
Contains the output of PurchaseScheduledInstances.
See: newPurchaseScheduledInstancesResponse
smart constructor.
PurchaseScheduledInstancesResponse' | |
|
Instances
Generic PurchaseScheduledInstancesResponse Source # | |
Read PurchaseScheduledInstancesResponse Source # | |
Show PurchaseScheduledInstancesResponse Source # | |
NFData PurchaseScheduledInstancesResponse Source # | |
Defined in Amazonka.EC2.PurchaseScheduledInstances rnf :: PurchaseScheduledInstancesResponse -> () # | |
Eq PurchaseScheduledInstancesResponse Source # | |
type Rep PurchaseScheduledInstancesResponse Source # | |
Defined in Amazonka.EC2.PurchaseScheduledInstances type Rep PurchaseScheduledInstancesResponse = D1 ('MetaData "PurchaseScheduledInstancesResponse" "Amazonka.EC2.PurchaseScheduledInstances" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "PurchaseScheduledInstancesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "scheduledInstanceSet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ScheduledInstance])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPurchaseScheduledInstancesResponse Source #
Create a value of PurchaseScheduledInstancesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:scheduledInstanceSet:PurchaseScheduledInstancesResponse'
, purchaseScheduledInstancesResponse_scheduledInstanceSet
- Information about the Scheduled Instances.
$sel:httpStatus:PurchaseScheduledInstancesResponse'
, purchaseScheduledInstancesResponse_httpStatus
- The response's http status code.
Response Lenses
purchaseScheduledInstancesResponse_scheduledInstanceSet :: Lens' PurchaseScheduledInstancesResponse (Maybe [ScheduledInstance]) Source #
Information about the Scheduled Instances.
purchaseScheduledInstancesResponse_httpStatus :: Lens' PurchaseScheduledInstancesResponse Int Source #
The response's http status code.