Skip to content

ConnectContactLensClient#

Index > ConnectContactLens > ConnectContactLensClient

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

ConnectContactLensClient#

Type annotations and code completion for boto3.client("connect-contact-lens"). boto3 documentation

# ConnectContactLensClient usage example

from boto3.session import Session
from mypy_boto3_connect_contact_lens.client import ConnectContactLensClient

def get_connect-contact-lens_client() -> ConnectContactLensClient:
    return Session().client("connect-contact-lens")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("connect-contact-lens").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("connect-contact-lens")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.InternalServiceException,
    client.exceptions.InvalidRequestException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ThrottlingException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_connect_contact_lens.client import Exceptions

def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...

Methods#

can_paginate#

Type annotations and code completion for boto3.client("connect-contact-lens").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

generate_presigned_url#

Type annotations and code completion for boto3.client("connect-contact-lens").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

list_realtime_contact_analysis_segments#

Provides a list of analysis segments for a real-time analysis session.

Type annotations and code completion for boto3.client("connect-contact-lens").list_realtime_contact_analysis_segments method. boto3 documentation

# list_realtime_contact_analysis_segments method definition

def list_realtime_contact_analysis_segments(
    self,
    *,
    InstanceId: str,
    ContactId: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListRealtimeContactAnalysisSegmentsResponseTypeDef:  # (1)
    ...
  1. See ListRealtimeContactAnalysisSegmentsResponseTypeDef
# list_realtime_contact_analysis_segments method usage example with argument unpacking

kwargs: ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "ContactId": ...,
}

parent.list_realtime_contact_analysis_segments(**kwargs)
  1. See ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef