describeEndpoints method

Future<DescribeEndpointsResponse> describeEndpoints()

Returns the regional endpoint information.

Implementation

Future<DescribeEndpointsResponse> describeEndpoints() async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'DynamoDB_20120810.DescribeEndpoints'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
  );

  return DescribeEndpointsResponse.fromJson(jsonResponse.body);
}