describeGlobalTable method
Returns information about the specified global table.
To determine which version you're using, see Determining the global table version you are using. To update existing global tables from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see Upgrading global tables.
May throw GlobalTableNotFoundException.
May throw InternalServerError.
May throw InvalidEndpointException.
Parameter globalTableName :
The name of the global table.
Implementation
Future<DescribeGlobalTableOutput> describeGlobalTable({
required String globalTableName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'DynamoDB_20120810.DescribeGlobalTable'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'GlobalTableName': globalTableName,
},
);
return DescribeGlobalTableOutput.fromJson(jsonResponse.body);
}