describeGlobalTable method

Future<DescribeGlobalTableOutput> describeGlobalTable({
  1. required String globalTableName,
})

Returns information about the specified global table.

May throw InternalServerError. May throw GlobalTableNotFoundException.

Parameter globalTableName : The name of the global table.

Implementation

Future<DescribeGlobalTableOutput> describeGlobalTable({
  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.DescribeGlobalTable'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'GlobalTableName': globalTableName,
    },
  );

  return DescribeGlobalTableOutput.fromJson(jsonResponse.body);
}