| 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 |
Amazonka.MediaLive.PurchaseOffering
Description
Purchase an offering and create a reservation.
Synopsis
- data PurchaseOffering' = PurchaseOffering'' {}
- newPurchaseOffering' :: Text -> Natural -> PurchaseOffering'
- purchaseOffering'_requestId :: Lens' PurchaseOffering' (Maybe Text)
- purchaseOffering'_start :: Lens' PurchaseOffering' (Maybe Text)
- purchaseOffering'_name :: 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.
Constructors
| PurchaseOffering'' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Natural | |
| -> 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:requestId:PurchaseOffering'', purchaseOffering'_requestId - Unique request ID to be specified. This is needed to prevent retries
from creating multiple resources.
$sel:start: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.
$sel:name:PurchaseOffering'', purchaseOffering'_name - Name for the new reservation
$sel:tags:PurchaseOffering'', purchaseOffering'_tags - A collection of key-value pairs
$sel:offeringId:PurchaseOffering'', purchaseOffering'_offeringId - Offering to purchase, e.g. '87654321'
$sel:count:PurchaseOffering'', purchaseOffering'_count - Number of resources
Request Lenses
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'_name :: Lens' PurchaseOffering' (Maybe Text) Source #
Name for the new reservation
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.
Constructors
| PurchaseOfferingResponse' | |
Fields
| |
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.