Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Explicitly sets the quantity of devices to renew for an offering,
starting from the effectiveDate
of the next period. 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
- data RenewOffering = RenewOffering' {
- offeringId :: Text
- quantity :: Int
- newRenewOffering :: Text -> Int -> RenewOffering
- renewOffering_offeringId :: Lens' RenewOffering Text
- renewOffering_quantity :: Lens' RenewOffering Int
- data RenewOfferingResponse = RenewOfferingResponse' {}
- newRenewOfferingResponse :: Int -> RenewOfferingResponse
- renewOfferingResponse_offeringTransaction :: Lens' RenewOfferingResponse (Maybe OfferingTransaction)
- renewOfferingResponse_httpStatus :: Lens' RenewOfferingResponse Int
Creating a Request
data RenewOffering Source #
A request that represents an offering renewal.
See: newRenewOffering
smart constructor.
RenewOffering' | |
|
Instances
Create a value of RenewOffering
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:offeringId:RenewOffering'
, renewOffering_offeringId
- The ID of a request to renew an offering.
$sel:quantity:RenewOffering'
, renewOffering_quantity
- The quantity requested in an offering renewal.
Request Lenses
renewOffering_offeringId :: Lens' RenewOffering Text Source #
The ID of a request to renew an offering.
renewOffering_quantity :: Lens' RenewOffering Int Source #
The quantity requested in an offering renewal.
Destructuring the Response
data RenewOfferingResponse Source #
The result of a renewal offering.
See: newRenewOfferingResponse
smart constructor.
RenewOfferingResponse' | |
|
Instances
newRenewOfferingResponse Source #
Create a value of RenewOfferingResponse
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:RenewOfferingResponse'
, renewOfferingResponse_offeringTransaction
- Represents the status of the offering transaction for the renewal.
$sel:httpStatus:RenewOfferingResponse'
, renewOfferingResponse_httpStatus
- The response's http status code.
Response Lenses
renewOfferingResponse_offeringTransaction :: Lens' RenewOfferingResponse (Maybe OfferingTransaction) Source #
Represents the status of the offering transaction for the renewal.
renewOfferingResponse_httpStatus :: Lens' RenewOfferingResponse Int Source #
The response's http status code.