listContributorInsights method
Returns a list of ContributorInsightsSummary for a table and all its global secondary indexes.
May throw InternalServerError.
May throw ResourceNotFoundException.
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. You can also provide the Amazon Resource Name (ARN)
of the table in this parameter.
Implementation
Future<ListContributorInsightsOutput> listContributorInsights({
int? maxResults,
String? nextToken,
String? tableName,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
0,
100,
);
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,
},
endpoint: _resolveEndpoint(
resourceArn: tableName,
),
);
return ListContributorInsightsOutput.fromJson(jsonResponse.body);
}