Skip to content

QLDBSessionClient#

Index > QLDBSession > QLDBSessionClient

Auto-generated documentation for QLDBSession type annotations stubs module types-aiobotocore-qldb-session.

QLDBSessionClient#

Type annotations and code completion for session.create_client("qldb-session") boto3 documentation

QLDBSessionClient usage example

from aiobotocore.session import get_session
from types_aiobotocore_qldb_session.client import QLDBSessionClient

session = get_session()
async with session.create_client("qldb-session") as client:
    client: QLDBSessionClient

Exceptions#

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

QLDBSessionClient.exceptions usage example

async with session.create_client("qldb-session") as client:
    try:
        do_something(client)
    except (
            client.BadRequestException,
        client.CapacityExceededException,
        client.ClientError,
        client.InvalidSessionException,
        client.LimitExceededException,
        client.OccConflictException,
        client.RateExceededException,
    ) as e:
        print(e)
QLDBSessionClient usage type checking example

from types_aiobotocore_qldb_session.client import Exceptions

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

Methods#

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for session.create_client("qldb-session").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("qldb-session").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("qldb-session").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:
    ...

send_command#

Sends a command to an Amazon QLDB ledger.

Type annotations and code completion for session.create_client("qldb-session").send_command method. boto3 documentation

# send_command method definition

await def send_command(
    self,
    *,
    SessionToken: str = ...,
    StartSession: StartSessionRequestTypeDef = ...,  # (1)
    StartTransaction: Mapping[str, Any] = ...,
    EndSession: Mapping[str, Any] = ...,
    CommitTransaction: CommitTransactionRequestTypeDef = ...,  # (2)
    AbortTransaction: Mapping[str, Any] = ...,
    ExecuteStatement: ExecuteStatementRequestTypeDef = ...,  # (3)
    FetchPage: FetchPageRequestTypeDef = ...,  # (4)
) -> SendCommandResultTypeDef:  # (5)
    ...
  1. See StartSessionRequestTypeDef
  2. See CommitTransactionRequestTypeDef
  3. See ExecuteStatementRequestTypeDef
  4. See FetchPageRequestTypeDef
  5. See SendCommandResultTypeDef
# send_command method usage example with argument unpacking

kwargs: SendCommandRequestRequestTypeDef = {  # (1)
    "SessionToken": ...,
}

parent.send_command(**kwargs)
  1. See SendCommandRequestRequestTypeDef

__aenter__#

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

# __aenter__ method definition

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

__aexit__#

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

# __aexit__ method definition

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