Skip to content

Type definitions#

Index > QLDBSession > Type definitions

Auto-generated documentation for QLDBSession type annotations stubs module mypy-boto3-qldb-session.

BlobTypeDef#

# BlobTypeDef definition

BlobTypeDef = Union[
    str,
    bytes,
    IO[Any],
    StreamingBody,
]

TimingInformationTypeDef#

# TimingInformationTypeDef definition

class TimingInformationTypeDef(TypedDict):
    ProcessingTimeMilliseconds: NotRequired[int],

IOUsageTypeDef#

# IOUsageTypeDef definition

class IOUsageTypeDef(TypedDict):
    ReadIOs: NotRequired[int],
    WriteIOs: NotRequired[int],

FetchPageRequestTypeDef#

# FetchPageRequestTypeDef definition

class FetchPageRequestTypeDef(TypedDict):
    TransactionId: str,
    NextPageToken: str,

ValueHolderOutputTypeDef#

# ValueHolderOutputTypeDef definition

class ValueHolderOutputTypeDef(TypedDict):
    IonBinary: NotRequired[bytes],
    IonText: NotRequired[str],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

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

StartSessionRequestTypeDef#

# StartSessionRequestTypeDef definition

class StartSessionRequestTypeDef(TypedDict):
    LedgerName: str,

AbortTransactionResultTypeDef#

# AbortTransactionResultTypeDef definition

class AbortTransactionResultTypeDef(TypedDict):
    TimingInformation: NotRequired[TimingInformationTypeDef],  # (1)
  1. See TimingInformationTypeDef

EndSessionResultTypeDef#

# EndSessionResultTypeDef definition

class EndSessionResultTypeDef(TypedDict):
    TimingInformation: NotRequired[TimingInformationTypeDef],  # (1)
  1. See TimingInformationTypeDef

StartSessionResultTypeDef#

# StartSessionResultTypeDef definition

class StartSessionResultTypeDef(TypedDict):
    SessionToken: NotRequired[str],
    TimingInformation: NotRequired[TimingInformationTypeDef],  # (1)
  1. See TimingInformationTypeDef

StartTransactionResultTypeDef#

# StartTransactionResultTypeDef definition

class StartTransactionResultTypeDef(TypedDict):
    TransactionId: NotRequired[str],
    TimingInformation: NotRequired[TimingInformationTypeDef],  # (1)
  1. See TimingInformationTypeDef

CommitTransactionRequestTypeDef#

# CommitTransactionRequestTypeDef definition

class CommitTransactionRequestTypeDef(TypedDict):
    TransactionId: str,
    CommitDigest: Union[str, bytes, IO[Any], StreamingBody],

ValueHolderTypeDef#

# ValueHolderTypeDef definition

class ValueHolderTypeDef(TypedDict):
    IonBinary: NotRequired[Union[str, bytes, IO[Any], StreamingBody]],
    IonText: NotRequired[str],

CommitTransactionResultTypeDef#

# CommitTransactionResultTypeDef definition

class CommitTransactionResultTypeDef(TypedDict):
    TransactionId: NotRequired[str],
    CommitDigest: NotRequired[bytes],
    TimingInformation: NotRequired[TimingInformationTypeDef],  # (1)
    ConsumedIOs: NotRequired[IOUsageTypeDef],  # (2)
  1. See TimingInformationTypeDef
  2. See IOUsageTypeDef

PageTypeDef#

# PageTypeDef definition

class PageTypeDef(TypedDict):
    Values: NotRequired[List[ValueHolderOutputTypeDef]],  # (1)
    NextPageToken: NotRequired[str],
  1. See ValueHolderOutputTypeDef

ExecuteStatementRequestTypeDef#

# ExecuteStatementRequestTypeDef definition

class ExecuteStatementRequestTypeDef(TypedDict):
    TransactionId: str,
    Statement: str,
    Parameters: NotRequired[Sequence[ValueHolderTypeDef]],  # (1)
  1. See ValueHolderTypeDef

ExecuteStatementResultTypeDef#

# ExecuteStatementResultTypeDef definition

class ExecuteStatementResultTypeDef(TypedDict):
    FirstPage: NotRequired[PageTypeDef],  # (1)
    TimingInformation: NotRequired[TimingInformationTypeDef],  # (2)
    ConsumedIOs: NotRequired[IOUsageTypeDef],  # (3)
  1. See PageTypeDef
  2. See TimingInformationTypeDef
  3. See IOUsageTypeDef

FetchPageResultTypeDef#

# FetchPageResultTypeDef definition

class FetchPageResultTypeDef(TypedDict):
    Page: NotRequired[PageTypeDef],  # (1)
    TimingInformation: NotRequired[TimingInformationTypeDef],  # (2)
    ConsumedIOs: NotRequired[IOUsageTypeDef],  # (3)
  1. See PageTypeDef
  2. See TimingInformationTypeDef
  3. See IOUsageTypeDef

SendCommandRequestRequestTypeDef#

# SendCommandRequestRequestTypeDef definition

class SendCommandRequestRequestTypeDef(TypedDict):
    SessionToken: NotRequired[str],
    StartSession: NotRequired[StartSessionRequestTypeDef],  # (1)
    StartTransaction: NotRequired[Mapping[str, Any]],
    EndSession: NotRequired[Mapping[str, Any]],
    CommitTransaction: NotRequired[CommitTransactionRequestTypeDef],  # (2)
    AbortTransaction: NotRequired[Mapping[str, Any]],
    ExecuteStatement: NotRequired[ExecuteStatementRequestTypeDef],  # (3)
    FetchPage: NotRequired[FetchPageRequestTypeDef],  # (4)
  1. See StartSessionRequestTypeDef
  2. See CommitTransactionRequestTypeDef
  3. See ExecuteStatementRequestTypeDef
  4. See FetchPageRequestTypeDef

SendCommandResultTypeDef#

# SendCommandResultTypeDef definition

class SendCommandResultTypeDef(TypedDict):
    StartSession: StartSessionResultTypeDef,  # (1)
    StartTransaction: StartTransactionResultTypeDef,  # (2)
    EndSession: EndSessionResultTypeDef,  # (3)
    CommitTransaction: CommitTransactionResultTypeDef,  # (4)
    AbortTransaction: AbortTransactionResultTypeDef,  # (5)
    ExecuteStatement: ExecuteStatementResultTypeDef,  # (6)
    FetchPage: FetchPageResultTypeDef,  # (7)
    ResponseMetadata: ResponseMetadataTypeDef,  # (8)
  1. See StartSessionResultTypeDef
  2. See StartTransactionResultTypeDef
  3. See EndSessionResultTypeDef
  4. See CommitTransactionResultTypeDef
  5. See AbortTransactionResultTypeDef
  6. See ExecuteStatementResultTypeDef
  7. See FetchPageResultTypeDef
  8. See ResponseMetadataTypeDef