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 |
Purchase an offering and create a reservation.
Synopsis
- data PurchaseOffering' = PurchaseOffering'' {}
- newPurchaseOffering' :: Text -> Natural -> PurchaseOffering'
- purchaseOffering'_name :: Lens' PurchaseOffering' (Maybe Text)
- purchaseOffering'_renewalSettings :: Lens' PurchaseOffering' (Maybe RenewalSettings)
- purchaseOffering'_requestId :: Lens' PurchaseOffering' (Maybe Text)
- purchaseOffering'_start :: Lens' PurchaseOffering' (Maybe Text)
- purchaseOffering'_tags :: Lens' PurchaseOffering' (Maybe (HashMap Text Text))
- purchaseOffering'_offeringId :: Lens' PurchaseOffering' Text
- purchaseOffering'_count :: Lens' PurchaseOffering' Natural
- data PurchaseOfferingResponse = PurchaseOfferingResponse' {}
- newPurchaseOfferingResponse :: Int -> PurchaseOfferingResponse
- purchaseOfferingResponse_reservation :: Lens' PurchaseOfferingResponse (Maybe Reservation)
- purchaseOfferingResponse_httpStatus :: Lens' PurchaseOfferingResponse Int
Creating a Request
data PurchaseOffering' Source #
Placeholder documentation for PurchaseOfferingRequest
See: newPurchaseOffering'
smart constructor.
PurchaseOffering'' | |
|
Instances
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:
PurchaseOffering'
, purchaseOffering'_name
- Name for the new reservation
PurchaseOffering'
, purchaseOffering'_renewalSettings
- Renewal settings for the reservation
$sel:requestId:PurchaseOffering''
, purchaseOffering'_requestId
- Unique request ID to be specified. This is needed to prevent retries
from creating multiple resources.
PurchaseOffering'
, purchaseOffering'_start
- Requested reservation start time (UTC) in ISO-8601 format. The specified
time must be between the first day of the current month and one year
from now. If no value is given, the default is now.
PurchaseOffering'
, purchaseOffering'_tags
- A collection of key-value pairs
PurchaseOffering'
, purchaseOffering'_offeringId
- Offering to purchase, e.g. '87654321'
PurchaseOffering'
, purchaseOffering'_count
- Number of resources
Request Lenses
purchaseOffering'_name :: Lens' PurchaseOffering' (Maybe Text) Source #
Name for the new reservation
purchaseOffering'_renewalSettings :: Lens' PurchaseOffering' (Maybe RenewalSettings) Source #
Renewal settings for the reservation
purchaseOffering'_requestId :: Lens' PurchaseOffering' (Maybe Text) Source #
Unique request ID to be specified. This is needed to prevent retries from creating multiple resources.
purchaseOffering'_start :: Lens' PurchaseOffering' (Maybe Text) Source #
Requested reservation start time (UTC) in ISO-8601 format. The specified time must be between the first day of the current month and one year from now. If no value is given, the default is now.
purchaseOffering'_tags :: Lens' PurchaseOffering' (Maybe (HashMap Text Text)) Source #
A collection of key-value pairs
purchaseOffering'_offeringId :: Lens' PurchaseOffering' Text Source #
Offering to purchase, e.g. '87654321'
purchaseOffering'_count :: Lens' PurchaseOffering' Natural Source #
Number of resources
Destructuring the Response
data PurchaseOfferingResponse Source #
Placeholder documentation for PurchaseOfferingResponse
See: newPurchaseOfferingResponse
smart constructor.
PurchaseOfferingResponse' | |
|
Instances
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:reservation:PurchaseOfferingResponse'
, purchaseOfferingResponse_reservation
- Undocumented member.
$sel:httpStatus:PurchaseOfferingResponse'
, purchaseOfferingResponse_httpStatus
- The response's http status code.
Response Lenses
purchaseOfferingResponse_reservation :: Lens' PurchaseOfferingResponse (Maybe Reservation) Source #
Undocumented member.
purchaseOfferingResponse_httpStatus :: Lens' PurchaseOfferingResponse Int Source #
The response's http status code.