listRealtimeContactAnalysisSegments method
Provides a list of analysis segments for a real-time analysis session.
May throw AccessDeniedException.
May throw InternalServiceException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter contactId :
The identifier of the contact.
Parameter instanceId :
The identifier of the Amazon Connect instance.
Parameter maxResults :
The maximum number of results to return per page.
Parameter nextToken :
The token for the next set of results. Use the value returned in the
previous response in the next request to retrieve the next set of results.
Implementation
Future<ListRealtimeContactAnalysisSegmentsResponse>
listRealtimeContactAnalysisSegments({
required String contactId,
required String instanceId,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $payload = <String, dynamic>{
'ContactId': contactId,
'InstanceId': instanceId,
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/realtime-contact-analysis/analysis-segments',
exceptionFnMap: _exceptionFns,
);
return ListRealtimeContactAnalysisSegmentsResponse.fromJson(response);
}