Skip to content

Typed dictionaries#

Index > ConnectContactLens > Typed dictionaries

Auto-generated documentation for ConnectContactLens type annotations stubs module mypy-boto3-connect-contact-lens.

PointOfInterestTypeDef#

# PointOfInterestTypeDef usage example

from mypy_boto3_connect_contact_lens.type_defs import PointOfInterestTypeDef

def get_value() -> PointOfInterestTypeDef:
    return {
        "BeginOffsetMillis": ...,
        "EndOffsetMillis": ...,
    }
# PointOfInterestTypeDef definition

class PointOfInterestTypeDef(TypedDict):
    BeginOffsetMillis: int,
    EndOffsetMillis: int,

CharacterOffsetsTypeDef#

# CharacterOffsetsTypeDef usage example

from mypy_boto3_connect_contact_lens.type_defs import CharacterOffsetsTypeDef

def get_value() -> CharacterOffsetsTypeDef:
    return {
        "BeginOffsetChar": ...,
        "EndOffsetChar": ...,
    }
# CharacterOffsetsTypeDef definition

class CharacterOffsetsTypeDef(TypedDict):
    BeginOffsetChar: int,
    EndOffsetChar: int,

ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef#

# ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef usage example

from mypy_boto3_connect_contact_lens.type_defs import ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef

def get_value() -> ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef:
    return {
        "InstanceId": ...,
        "ContactId": ...,
    }
# ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef definition

class ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef(TypedDict):
    InstanceId: str,
    ContactId: str,
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef usage example

from mypy_boto3_connect_contact_lens.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }
# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

CategoryDetailsTypeDef#

# CategoryDetailsTypeDef usage example

from mypy_boto3_connect_contact_lens.type_defs import CategoryDetailsTypeDef

def get_value() -> CategoryDetailsTypeDef:
    return {
        "PointsOfInterest": ...,
    }
# CategoryDetailsTypeDef definition

class CategoryDetailsTypeDef(TypedDict):
    PointsOfInterest: List[PointOfInterestTypeDef],  # (1)
  1. See PointOfInterestTypeDef

IssueDetectedTypeDef#

# IssueDetectedTypeDef usage example

from mypy_boto3_connect_contact_lens.type_defs import IssueDetectedTypeDef

def get_value() -> IssueDetectedTypeDef:
    return {
        "CharacterOffsets": ...,
    }
# IssueDetectedTypeDef definition

class IssueDetectedTypeDef(TypedDict):
    CharacterOffsets: CharacterOffsetsTypeDef,  # (1)
  1. See CharacterOffsetsTypeDef

CategoriesTypeDef#

# CategoriesTypeDef usage example

from mypy_boto3_connect_contact_lens.type_defs import CategoriesTypeDef

def get_value() -> CategoriesTypeDef:
    return {
        "MatchedCategories": ...,
        "MatchedDetails": ...,
    }
# CategoriesTypeDef definition

class CategoriesTypeDef(TypedDict):
    MatchedCategories: List[str],
    MatchedDetails: Dict[str, CategoryDetailsTypeDef],  # (1)
  1. See CategoryDetailsTypeDef

TranscriptTypeDef#

# 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": ...,
    }
# TranscriptTypeDef definition

class TranscriptTypeDef(TypedDict):
    Id: str,
    ParticipantId: str,
    ParticipantRole: str,
    Content: str,
    BeginOffsetMillis: int,
    EndOffsetMillis: int,
    Sentiment: SentimentValueType,  # (1)
    IssuesDetected: NotRequired[List[IssueDetectedTypeDef]],  # (2)
  1. See SentimentValueType
  2. See IssueDetectedTypeDef

RealtimeContactAnalysisSegmentTypeDef#

# RealtimeContactAnalysisSegmentTypeDef usage example

from mypy_boto3_connect_contact_lens.type_defs import RealtimeContactAnalysisSegmentTypeDef

def get_value() -> RealtimeContactAnalysisSegmentTypeDef:
    return {
        "Transcript": ...,
    }
# RealtimeContactAnalysisSegmentTypeDef definition

class RealtimeContactAnalysisSegmentTypeDef(TypedDict):
    Transcript: NotRequired[TranscriptTypeDef],  # (1)
    Categories: NotRequired[CategoriesTypeDef],  # (2)
  1. See TranscriptTypeDef
  2. See CategoriesTypeDef

ListRealtimeContactAnalysisSegmentsResponseTypeDef#

# ListRealtimeContactAnalysisSegmentsResponseTypeDef usage example

from mypy_boto3_connect_contact_lens.type_defs import ListRealtimeContactAnalysisSegmentsResponseTypeDef

def get_value() -> ListRealtimeContactAnalysisSegmentsResponseTypeDef:
    return {
        "Segments": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
# ListRealtimeContactAnalysisSegmentsResponseTypeDef definition

class ListRealtimeContactAnalysisSegmentsResponseTypeDef(TypedDict):
    Segments: List[RealtimeContactAnalysisSegmentTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See RealtimeContactAnalysisSegmentTypeDef
  2. See ResponseMetadataTypeDef