Skip to content

ConnectContactLensClient

Index > ConnectContactLens > ConnectContactLensClient

Auto-generated documentation for ConnectContactLens type annotations stubs module types-aiobotocore-connect-contact-lens.

ConnectContactLensClient

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

Usage example
from aioboto3.session import Session
from types_aiobotocore_connect_contact_lens.client import ConnectContactLensClient

session = Session()
async with session.client("connect-contact-lens") as client:
    client: ConnectContactLensClient

Exceptions

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

Usage example
async with session.client("connect-contact-lens") as client:
    try:
        do_something(client)
    except (
            client.AccessDeniedException,
        client.ClientError,
        client.InternalServiceException,
        client.InvalidRequestException,
        client.ResourceNotFoundException,
        client.ThrottlingException,
    ) as e:
        print(e)
Type checking example
from types_aiobotocore_connect_contact_lens.client import Exceptions

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

Methods

can_paginate

Check if an operation can be paginated.

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

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

close

Closes underlying endpoint connections.

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

Method definition
await def close(
    self,
) -> None:
    ...

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

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

Method definition
await 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 session.client("connect-contact-lens").list_realtime_contact_analysis_segments method. boto3 documentation

Method definition
await def list_realtime_contact_analysis_segments(
    self,
    *,
    InstanceId: str,
    ContactId: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListRealtimeContactAnalysisSegmentsResponseTypeDef:  # (1)
    ...
  1. See ListRealtimeContactAnalysisSegmentsResponseTypeDef
Usage example with kwargs
kwargs: ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "ContactId": ...,
}

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

__aenter__

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

Method definition
await def __aenter__(
    self,
) -> ConnectContactLensClient:
    ...

__aexit__

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

Method definition
await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...