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 |
Submits a request to purchase an offering. If you already have an active reservation, you can't purchase another offering.
Synopsis
- data PurchaseOffering = PurchaseOffering' {
- offeringArn :: Text
- start :: Text
- reservationName :: Text
- newPurchaseOffering :: Text -> Text -> Text -> PurchaseOffering
- purchaseOffering_offeringArn :: Lens' PurchaseOffering Text
- purchaseOffering_start :: Lens' PurchaseOffering Text
- purchaseOffering_reservationName :: Lens' PurchaseOffering Text
- data PurchaseOfferingResponse = PurchaseOfferingResponse' {}
- newPurchaseOfferingResponse :: Int -> PurchaseOfferingResponse
- purchaseOfferingResponse_reservation :: Lens' PurchaseOfferingResponse (Maybe Reservation)
- purchaseOfferingResponse_httpStatus :: Lens' PurchaseOfferingResponse Int
Creating a Request
data PurchaseOffering Source #
A request to purchase a offering.
See: newPurchaseOffering
smart constructor.
PurchaseOffering' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> PurchaseOffering |
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:offeringArn:PurchaseOffering'
, purchaseOffering_offeringArn
- The Amazon Resource Name (ARN) of the offering.
$sel:start:PurchaseOffering'
, purchaseOffering_start
- The date and time that you want the reservation to begin, in Coordinated
Universal Time (UTC). You can specify any date and time between 12:00am
on the first day of the current month to the current time on today's
date, inclusive. Specify the start in a 24-hour notation. Use the
following format: YYYY-MM-DDTHH:mm:SSZ, where T and Z are literal
characters. For example, to specify 11:30pm on March 5, 2020, enter
2020-03-05T23:30:00Z.
$sel:reservationName:PurchaseOffering'
, purchaseOffering_reservationName
- The name that you want to use for the reservation.
Request Lenses
purchaseOffering_offeringArn :: Lens' PurchaseOffering Text Source #
The Amazon Resource Name (ARN) of the offering.
purchaseOffering_start :: Lens' PurchaseOffering Text Source #
The date and time that you want the reservation to begin, in Coordinated Universal Time (UTC). You can specify any date and time between 12:00am on the first day of the current month to the current time on today's date, inclusive. Specify the start in a 24-hour notation. Use the following format: YYYY-MM-DDTHH:mm:SSZ, where T and Z are literal characters. For example, to specify 11:30pm on March 5, 2020, enter 2020-03-05T23:30:00Z.
purchaseOffering_reservationName :: Lens' PurchaseOffering Text Source #
The name that you want to use for the reservation.
Destructuring the Response
data PurchaseOfferingResponse Source #
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.