getCapacityReservation method
Returns information about the capacity reservation with the specified name.
May throw InternalServerException.
May throw InvalidRequestException.
Parameter name :
The name of the capacity reservation.
Implementation
Future<GetCapacityReservationOutput> getCapacityReservation({
required String name,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonAthena.GetCapacityReservation'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
},
);
return GetCapacityReservationOutput.fromJson(jsonResponse.body);
}