Typed dictionaries
Index > ConnectContactLens > Typed dictionaries
Auto-generated documentation for ConnectContactLens type annotations stubs module mypy-boto3-connect-contact-lens.
PointOfInterestTypeDef
Usage Example
from mypy_boto3_connect_contact_lens.type_defs import PointOfInterestTypeDef
def get_value() -> PointOfInterestTypeDef:
return {
"BeginOffsetMillis": ...,
"EndOffsetMillis": ...,
}
CharacterOffsetsTypeDef
Usage Example
from mypy_boto3_connect_contact_lens.type_defs import CharacterOffsetsTypeDef
def get_value() -> CharacterOffsetsTypeDef:
return {
"BeginOffsetChar": ...,
"EndOffsetChar": ...,
}
ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef
Usage Example
from mypy_boto3_connect_contact_lens.type_defs import ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef
def get_value() -> ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef:
return {
"InstanceId": ...,
"ContactId": ...,
}
Definition
class ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef(TypedDict):
InstanceId: str,
ContactId: str,
MaxResults: NotRequired[int],
NextToken: NotRequired[str],
ResponseMetadataTypeDef
Usage Example
from mypy_boto3_connect_contact_lens.type_defs import ResponseMetadataTypeDef
def get_value() -> ResponseMetadataTypeDef:
return {
"RequestId": ...,
"HostId": ...,
"HTTPStatusCode": ...,
"HTTPHeaders": ...,
"RetryAttempts": ...,
}
Definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HostId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
CategoryDetailsTypeDef
Usage Example
from mypy_boto3_connect_contact_lens.type_defs import CategoryDetailsTypeDef
def get_value() -> CategoryDetailsTypeDef:
return {
"PointsOfInterest": ...,
}
Definition
class CategoryDetailsTypeDef(TypedDict):
PointsOfInterest: List[PointOfInterestTypeDef], # (1)
IssueDetectedTypeDef
Usage Example
from mypy_boto3_connect_contact_lens.type_defs import IssueDetectedTypeDef
def get_value() -> IssueDetectedTypeDef:
return {
"CharacterOffsets": ...,
}
CategoriesTypeDef
Usage Example
from mypy_boto3_connect_contact_lens.type_defs import CategoriesTypeDef
def get_value() -> CategoriesTypeDef:
return {
"MatchedCategories": ...,
"MatchedDetails": ...,
}
Definition
class CategoriesTypeDef(TypedDict):
MatchedCategories: List[str],
MatchedDetails: Dict[str, CategoryDetailsTypeDef], # (1)
TranscriptTypeDef
Usage Example
from mypy_boto3_connect_contact_lens.type_defs import TranscriptTypeDef
def get_value() -> TranscriptTypeDef:
return {
"Id": ...,
"ParticipantId": ...,
"ParticipantRole": ...,
"Content": ...,
"BeginOffsetMillis": ...,
"EndOffsetMillis": ...,
"Sentiment": ...,
}
Definition
class TranscriptTypeDef(TypedDict):
Id: str,
ParticipantId: str,
ParticipantRole: str,
Content: str,
BeginOffsetMillis: int,
EndOffsetMillis: int,
Sentiment: SentimentValueType, # (1)
IssuesDetected: NotRequired[List[IssueDetectedTypeDef]], # (2)
RealtimeContactAnalysisSegmentTypeDef
Usage Example
from mypy_boto3_connect_contact_lens.type_defs import RealtimeContactAnalysisSegmentTypeDef
def get_value() -> RealtimeContactAnalysisSegmentTypeDef:
return {
"Transcript": ...,
}
Definition
class RealtimeContactAnalysisSegmentTypeDef(TypedDict):
Transcript: NotRequired[TranscriptTypeDef], # (1)
Categories: NotRequired[CategoriesTypeDef], # (2)
- See TranscriptTypeDef
- See CategoriesTypeDef
ListRealtimeContactAnalysisSegmentsResponseTypeDef
Usage Example
from mypy_boto3_connect_contact_lens.type_defs import ListRealtimeContactAnalysisSegmentsResponseTypeDef
def get_value() -> ListRealtimeContactAnalysisSegmentsResponseTypeDef:
return {
"Segments": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}