getLookupTable method
Retrieves the full content of a lookup table, including the CSV data.
May throw AccessDeniedException.
May throw InvalidParameterException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
Parameter lookupTableArn :
The ARN of the lookup table to retrieve.
Implementation
Future<GetLookupTableResponse> getLookupTable({
required String lookupTableArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Logs_20140328.GetLookupTable'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'lookupTableArn': lookupTableArn,
},
);
return GetLookupTableResponse.fromJson(jsonResponse.body);
}