listContributorInsights method
Returns a list of ContributorInsightsSummary for a table and all its global secondary indexes.
May throw ResourceNotFoundException. May throw InternalServerError.
Parameter maxResults
:
Maximum number of results to return per page.
Parameter nextToken
:
A token to for the desired page, if there is one.
Parameter tableName
:
The name of the table.
Implementation
Future<ListContributorInsightsOutput> listContributorInsights({
int? maxResults,
String? nextToken,
String? tableName,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
0,
100,
);
_s.validateStringLength(
'tableName',
tableName,
3,
255,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'DynamoDB_20120810.ListContributorInsights'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
if (tableName != null) 'TableName': tableName,
},
);
return ListContributorInsightsOutput.fromJson(jsonResponse.body);
}