getDataCatalog method
Returns the specified data catalog.
May throw InternalServerException.
May throw InvalidRequestException.
Parameter name :
The name of the data catalog to return.
Parameter workGroup :
The name of the workgroup. Required if making an IAM Identity Center
request.
Implementation
Future<GetDataCatalogOutput> getDataCatalog({
required String name,
String? workGroup,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonAthena.GetDataCatalog'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
if (workGroup != null) 'WorkGroup': workGroup,
},
);
return GetDataCatalogOutput.fromJson(jsonResponse.body);
}