describeGlobalTableSettings method
Future<DescribeGlobalTableSettingsOutput>
describeGlobalTableSettings({
- required String globalTableName,
Describes Region-specific settings for a global table.
May throw GlobalTableNotFoundException. May throw InternalServerError.
Parameter globalTableName
:
The name of the global table to describe.
Implementation
Future<DescribeGlobalTableSettingsOutput> describeGlobalTableSettings({
required String globalTableName,
}) async {
ArgumentError.checkNotNull(globalTableName, 'globalTableName');
_s.validateStringLength(
'globalTableName',
globalTableName,
3,
255,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'DynamoDB_20120810.DescribeGlobalTableSettings'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'GlobalTableName': globalTableName,
},
);
return DescribeGlobalTableSettingsOutput.fromJson(jsonResponse.body);
}