getReservationOffering method
Returns the reservation offering. The offering determines the payment schedule for the reservation.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter offeringId :
The identifier for the offering..
Implementation
Future<GetReservationOfferingResponse> getReservationOffering({
required String offeringId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'RedshiftServerless.GetReservationOffering'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'offeringId': offeringId,
},
);
return GetReservationOfferingResponse.fromJson(jsonResponse.body);
}