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.create_client("connect-contact-lens") boto3 documentation

ConnectContactLensClient usage example

from aiobotocore.session import get_session
from types_aiobotocore_connect_contact_lens.client import ConnectContactLensClient

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

Exceptions#

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

ConnectContactLensClient.exceptions usage example

async with session.create_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)
ConnectContactLensClient usage 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.create_client("connect-contact-lens").can_paginate method. boto3 documentation

# can_paginate method definition

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

close#

Closes underlying endpoint connections.

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

# close 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.create_client("connect-contact-lens").generate_presigned_url method. boto3 documentation

# generate_presigned_url 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.create_client("connect-contact-lens").list_realtime_contact_analysis_segments method. boto3 documentation

# list_realtime_contact_analysis_segments method definition

await 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

__aenter__#

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

# __aenter__ method definition

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

__aexit__#

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

# __aexit__ method definition

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