amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.PurchaseScheduledInstances

Description

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

Creating a Request

data PurchaseScheduledInstances Source #

Contains the parameters for PurchaseScheduledInstances.

See: newPurchaseScheduledInstances smart constructor.

Constructors

PurchaseScheduledInstances' 

Fields

  • clientToken :: Maybe Text

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

  • dryRun :: 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.

  • purchaseRequests :: NonEmpty PurchaseRequest

    The purchase requests.

Instances

Instances details
ToHeaders PurchaseScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

ToPath PurchaseScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

ToQuery PurchaseScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

AWSRequest PurchaseScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

Generic PurchaseScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

Associated Types

type Rep PurchaseScheduledInstances :: Type -> Type #

Read PurchaseScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

Show PurchaseScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

NFData PurchaseScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

Eq PurchaseScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

Hashable PurchaseScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

type AWSResponse PurchaseScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

type Rep PurchaseScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

type Rep PurchaseScheduledInstances = D1 ('MetaData "PurchaseScheduledInstances" "Amazonka.EC2.PurchaseScheduledInstances" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "PurchaseScheduledInstances'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "purchaseRequests") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty PurchaseRequest)))))

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.

Destructuring the Response

data PurchaseScheduledInstancesResponse Source #

Contains the output of PurchaseScheduledInstances.

See: newPurchaseScheduledInstancesResponse smart constructor.

Constructors

PurchaseScheduledInstancesResponse' 

Fields

Instances

Instances details
Generic PurchaseScheduledInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

Associated Types

type Rep PurchaseScheduledInstancesResponse :: Type -> Type #

Read PurchaseScheduledInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

Show PurchaseScheduledInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

NFData PurchaseScheduledInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

Eq PurchaseScheduledInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.PurchaseScheduledInstances

type Rep PurchaseScheduledInstancesResponse Source # 
Instance details

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