libZSservicesZSamazonka-devicefarmZSamazonka-devicefarm
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.DeviceFarm.PurchaseOffering

Description

Immediately purchases offerings for an AWS account. Offerings renew with the latest total purchased quantity for an offering, unless the renewal was overridden. The API returns a NotEligible error if the user is not permitted to invoke the operation. If you must be able to invoke this operation, contact aws-devicefarm-support@amazon.com.

Synopsis

Creating a Request

data PurchaseOffering Source #

Represents a request for a purchase offering.

See: newPurchaseOffering smart constructor.

Constructors

PurchaseOffering' 

Fields

Instances

Instances details
Eq PurchaseOffering Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

Read PurchaseOffering Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

Show PurchaseOffering Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

Generic PurchaseOffering Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

Associated Types

type Rep PurchaseOffering :: Type -> Type #

NFData PurchaseOffering Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

Methods

rnf :: PurchaseOffering -> () #

Hashable PurchaseOffering Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

ToJSON PurchaseOffering Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

AWSRequest PurchaseOffering Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

Associated Types

type AWSResponse PurchaseOffering #

ToHeaders PurchaseOffering Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

ToPath PurchaseOffering Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

ToQuery PurchaseOffering Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

type Rep PurchaseOffering Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

type Rep PurchaseOffering = D1 ('MetaData "PurchaseOffering" "Amazonka.DeviceFarm.PurchaseOffering" "libZSservicesZSamazonka-devicefarmZSamazonka-devicefarm" 'False) (C1 ('MetaCons "PurchaseOffering'" 'PrefixI 'True) (S1 ('MetaSel ('Just "offeringPromotionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "offeringId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "quantity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))
type AWSResponse PurchaseOffering Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

newPurchaseOffering Source #

Create a value of PurchaseOffering 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:offeringPromotionId:PurchaseOffering', purchaseOffering_offeringPromotionId - The ID of the offering promotion to be applied to the purchase.

$sel:offeringId:PurchaseOffering', purchaseOffering_offeringId - The ID of the offering.

$sel:quantity:PurchaseOffering', purchaseOffering_quantity - The number of device slots to purchase in an offering request.

Request Lenses

purchaseOffering_offeringPromotionId :: Lens' PurchaseOffering (Maybe Text) Source #

The ID of the offering promotion to be applied to the purchase.

purchaseOffering_quantity :: Lens' PurchaseOffering Int Source #

The number of device slots to purchase in an offering request.

Destructuring the Response

data PurchaseOfferingResponse Source #

The result of the purchase offering (for example, success or failure).

See: newPurchaseOfferingResponse smart constructor.

Constructors

PurchaseOfferingResponse' 

Fields

Instances

Instances details
Eq PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

Read PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

Show PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

Generic PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

Associated Types

type Rep PurchaseOfferingResponse :: Type -> Type #

NFData PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

type Rep PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.PurchaseOffering

type Rep PurchaseOfferingResponse = D1 ('MetaData "PurchaseOfferingResponse" "Amazonka.DeviceFarm.PurchaseOffering" "libZSservicesZSamazonka-devicefarmZSamazonka-devicefarm" 'False) (C1 ('MetaCons "PurchaseOfferingResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "offeringTransaction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OfferingTransaction)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPurchaseOfferingResponse Source #

Create a value of PurchaseOfferingResponse 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:offeringTransaction:PurchaseOfferingResponse', purchaseOfferingResponse_offeringTransaction - Represents the offering transaction for the purchase result.

$sel:httpStatus:PurchaseOfferingResponse', purchaseOfferingResponse_httpStatus - The response's http status code.

Response Lenses

purchaseOfferingResponse_offeringTransaction :: Lens' PurchaseOfferingResponse (Maybe OfferingTransaction) Source #

Represents the offering transaction for the purchase result.