list_realtime_contact_analysis_segments_v2
async
¶
list_realtime_contact_analysis_segments_v2(
instance_id: InstanceId,
contact_id: ContactId,
output_type: RealTimeContactAnalysisOutputType,
segment_types: RealTimeContactAnalysisSegmentTypes,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
max_results: Optional[MaxResult100] = None,
next_token: Optional[LargeNextToken] = None,
list_filter: Optional[RealTimeContactAnalysisSegmentsFilter] = None,
) -> ListRealtimeContactAnalysisSegmentsV2Response
Provides a list of analysis segments for a real-time chat analysis session. This API supports CHAT channels only.
This API does not support VOICE. If you attempt to use it for VOICE, an InvalidRequestException occurs.
Parameters:
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
contact_id(ContactId) –The identifier of the contact in this instance of Connect Customer.
-
max_results(Optional[MaxResult100], default:None) –The maximum number of results to return per page.
-
next_token(Optional[LargeNextToken], default:None) –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.
-
output_type(RealTimeContactAnalysisOutputType) –The Contact Lens output type to be returned.
-
segment_types(RealTimeContactAnalysisSegmentTypes) –Enum with segment types . Each value corresponds to a segment type returned in the segments list of the API. Each segment type has its own structure. Different channels may have different sets of supported segment types.
-
list_filter(Optional[RealTimeContactAnalysisSegmentsFilter], default:None) –A filter that restricts the segments returned by the API. When
SegmentTypesincludesCategories, useCategoriesAttributeFilterto return only the category segments whose rules have tags that match the filter. This enforces tag-based access control on the categories a caller can view.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidRequestException–The request is not valid.
-
OutputTypeNotFoundException–Thrown for analyzed content when requested OutputType was not enabled for a given contact. For example, if an OutputType.Raw was requested for a contact that had `RedactedOnly` Redaction policy set in the flow.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 | |