QLDBClient
Auto-generated documentation for QLDB type annotations stubs module types-aiobotocore-qldb.
QLDBClient
Type annotations and code completion for session.client("qldb")
boto3 documentation
from aioboto3.session import Session
from types_aiobotocore_qldb.client import QLDBClient
session = Session()
async with session.client("qldb") as client:
client: QLDBClient
Exceptions
aioboto3
client exceptions are generated in runtime.
This class provides code completion for session.client("qldb").exceptions
structure.
async with session.client("qldb") as client:
try:
do_something(client)
except (
client.ClientError,
client.InvalidParameterException,
client.LimitExceededException,
client.ResourceAlreadyExistsException,
client.ResourceInUseException,
client.ResourceNotFoundException,
client.ResourcePreconditionNotMetException,
) as e:
print(e)
from types_aiobotocore_qldb.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for session.client("qldb").can_paginate
method.
boto3 documentation
cancel_journal_kinesis_stream
Ends a given Amazon QLDB journal stream.
Type annotations and code completion for session.client("qldb").cancel_journal_kinesis_stream
method.
boto3 documentation
await def cancel_journal_kinesis_stream(
self,
*,
LedgerName: str,
StreamId: str,
) -> CancelJournalKinesisStreamResponseTypeDef: # (1)
...
kwargs: CancelJournalKinesisStreamRequestRequestTypeDef = { # (1)
"LedgerName": ...,
"StreamId": ...,
}
parent.cancel_journal_kinesis_stream(**kwargs)
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("qldb").close
method.
boto3 documentation
create_ledger
Creates a new ledger in your Amazon Web Services account in the current Region.
Type annotations and code completion for session.client("qldb").create_ledger
method.
boto3 documentation
await def create_ledger(
self,
*,
Name: str,
PermissionsMode: PermissionsModeType, # (1)
Tags: Mapping[str, str] = ...,
DeletionProtection: bool = ...,
KmsKey: str = ...,
) -> CreateLedgerResponseTypeDef: # (2)
...
kwargs: CreateLedgerRequestRequestTypeDef = { # (1)
"Name": ...,
"PermissionsMode": ...,
}
parent.create_ledger(**kwargs)
delete_ledger
Deletes a ledger and all of its contents.
Type annotations and code completion for session.client("qldb").delete_ledger
method.
boto3 documentation
await def delete_ledger(
self,
*,
Name: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteLedgerRequestRequestTypeDef = { # (1)
"Name": ...,
}
parent.delete_ledger(**kwargs)
describe_journal_kinesis_stream
Returns detailed information about a given Amazon QLDB journal stream.
Type annotations and code completion for session.client("qldb").describe_journal_kinesis_stream
method.
boto3 documentation
await def describe_journal_kinesis_stream(
self,
*,
LedgerName: str,
StreamId: str,
) -> DescribeJournalKinesisStreamResponseTypeDef: # (1)
...
kwargs: DescribeJournalKinesisStreamRequestRequestTypeDef = { # (1)
"LedgerName": ...,
"StreamId": ...,
}
parent.describe_journal_kinesis_stream(**kwargs)
describe_journal_s3_export
Returns information about a journal export job, including the ledger name, export ID, creation time, current status, and the parameters of the original export creation request.
Type annotations and code completion for session.client("qldb").describe_journal_s3_export
method.
boto3 documentation
await def describe_journal_s3_export(
self,
*,
Name: str,
ExportId: str,
) -> DescribeJournalS3ExportResponseTypeDef: # (1)
...
kwargs: DescribeJournalS3ExportRequestRequestTypeDef = { # (1)
"Name": ...,
"ExportId": ...,
}
parent.describe_journal_s3_export(**kwargs)
describe_ledger
Returns information about a ledger, including its state, permissions mode, encryption at rest settings, and when it was created.
Type annotations and code completion for session.client("qldb").describe_ledger
method.
boto3 documentation
await def describe_ledger(
self,
*,
Name: str,
) -> DescribeLedgerResponseTypeDef: # (1)
...
kwargs: DescribeLedgerRequestRequestTypeDef = { # (1)
"Name": ...,
}
parent.describe_ledger(**kwargs)
export_journal_to_s3
Exports journal contents within a date and time range from a ledger into a specified Amazon Simple Storage Service (Amazon S3) bucket.
Type annotations and code completion for session.client("qldb").export_journal_to_s3
method.
boto3 documentation
await def export_journal_to_s3(
self,
*,
Name: str,
InclusiveStartTime: Union[datetime, str],
ExclusiveEndTime: Union[datetime, str],
S3ExportConfiguration: S3ExportConfigurationTypeDef, # (1)
RoleArn: str,
OutputFormat: OutputFormatType = ..., # (2)
) -> ExportJournalToS3ResponseTypeDef: # (3)
...
kwargs: ExportJournalToS3RequestRequestTypeDef = { # (1)
"Name": ...,
"InclusiveStartTime": ...,
"ExclusiveEndTime": ...,
"S3ExportConfiguration": ...,
"RoleArn": ...,
}
parent.export_journal_to_s3(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.client("qldb").generate_presigned_url
method.
boto3 documentation
await def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_block
Returns a block object at a specified address in a journal.
Type annotations and code completion for session.client("qldb").get_block
method.
boto3 documentation
await def get_block(
self,
*,
Name: str,
BlockAddress: ValueHolderTypeDef, # (1)
DigestTipAddress: ValueHolderTypeDef = ..., # (1)
) -> GetBlockResponseTypeDef: # (3)
...
kwargs: GetBlockRequestRequestTypeDef = { # (1)
"Name": ...,
"BlockAddress": ...,
}
parent.get_block(**kwargs)
get_digest
Returns the digest of a ledger at the latest committed block in the journal.
Type annotations and code completion for session.client("qldb").get_digest
method.
boto3 documentation
kwargs: GetDigestRequestRequestTypeDef = { # (1)
"Name": ...,
}
parent.get_digest(**kwargs)
get_revision
Returns a revision data object for a specified document ID and block address.
Type annotations and code completion for session.client("qldb").get_revision
method.
boto3 documentation
await def get_revision(
self,
*,
Name: str,
BlockAddress: ValueHolderTypeDef, # (1)
DocumentId: str,
DigestTipAddress: ValueHolderTypeDef = ..., # (1)
) -> GetRevisionResponseTypeDef: # (3)
...
kwargs: GetRevisionRequestRequestTypeDef = { # (1)
"Name": ...,
"BlockAddress": ...,
"DocumentId": ...,
}
parent.get_revision(**kwargs)
list_journal_kinesis_streams_for_ledger
Returns an array of all Amazon QLDB journal stream descriptors for a given ledger.
Type annotations and code completion for session.client("qldb").list_journal_kinesis_streams_for_ledger
method.
boto3 documentation
await def list_journal_kinesis_streams_for_ledger(
self,
*,
LedgerName: str,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListJournalKinesisStreamsForLedgerResponseTypeDef: # (1)
...
kwargs: ListJournalKinesisStreamsForLedgerRequestRequestTypeDef = { # (1)
"LedgerName": ...,
}
parent.list_journal_kinesis_streams_for_ledger(**kwargs)
list_journal_s3_exports
Returns an array of journal export job descriptions for all ledgers that are associated with the current Amazon Web Services account and Region.
Type annotations and code completion for session.client("qldb").list_journal_s3_exports
method.
boto3 documentation
await def list_journal_s3_exports(
self,
*,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListJournalS3ExportsResponseTypeDef: # (1)
...
kwargs: ListJournalS3ExportsRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.list_journal_s3_exports(**kwargs)
list_journal_s3_exports_for_ledger
Returns an array of journal export job descriptions for a specified ledger.
Type annotations and code completion for session.client("qldb").list_journal_s3_exports_for_ledger
method.
boto3 documentation
await def list_journal_s3_exports_for_ledger(
self,
*,
Name: str,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListJournalS3ExportsForLedgerResponseTypeDef: # (1)
...
kwargs: ListJournalS3ExportsForLedgerRequestRequestTypeDef = { # (1)
"Name": ...,
}
parent.list_journal_s3_exports_for_ledger(**kwargs)
list_ledgers
Returns an array of ledger summaries that are associated with the current Amazon Web Services account and Region.
Type annotations and code completion for session.client("qldb").list_ledgers
method.
boto3 documentation
await def list_ledgers(
self,
*,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListLedgersResponseTypeDef: # (1)
...
kwargs: ListLedgersRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.list_ledgers(**kwargs)
list_tags_for_resource
Returns all tags for a specified Amazon QLDB resource.
Type annotations and code completion for session.client("qldb").list_tags_for_resource
method.
boto3 documentation
await def list_tags_for_resource(
self,
*,
ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
stream_journal_to_kinesis
Creates a journal stream for a given Amazon QLDB ledger.
Type annotations and code completion for session.client("qldb").stream_journal_to_kinesis
method.
boto3 documentation
await def stream_journal_to_kinesis(
self,
*,
LedgerName: str,
RoleArn: str,
InclusiveStartTime: Union[datetime, str],
KinesisConfiguration: KinesisConfigurationTypeDef, # (1)
StreamName: str,
Tags: Mapping[str, str] = ...,
ExclusiveEndTime: Union[datetime, str] = ...,
) -> StreamJournalToKinesisResponseTypeDef: # (2)
...
kwargs: StreamJournalToKinesisRequestRequestTypeDef = { # (1)
"LedgerName": ...,
"RoleArn": ...,
"InclusiveStartTime": ...,
"KinesisConfiguration": ...,
"StreamName": ...,
}
parent.stream_journal_to_kinesis(**kwargs)
tag_resource
Adds one or more tags to a specified Amazon QLDB resource.
Type annotations and code completion for session.client("qldb").tag_resource
method.
boto3 documentation
await def tag_resource(
self,
*,
ResourceArn: str,
Tags: Mapping[str, str],
) -> Dict[str, Any]:
...
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"Tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource
Removes one or more tags from a specified Amazon QLDB resource.
Type annotations and code completion for session.client("qldb").untag_resource
method.
boto3 documentation
await def untag_resource(
self,
*,
ResourceArn: str,
TagKeys: Sequence[str],
) -> Dict[str, Any]:
...
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"TagKeys": ...,
}
parent.untag_resource(**kwargs)
update_ledger
Updates properties on a ledger.
Type annotations and code completion for session.client("qldb").update_ledger
method.
boto3 documentation
await def update_ledger(
self,
*,
Name: str,
DeletionProtection: bool = ...,
KmsKey: str = ...,
) -> UpdateLedgerResponseTypeDef: # (1)
...
kwargs: UpdateLedgerRequestRequestTypeDef = { # (1)
"Name": ...,
}
parent.update_ledger(**kwargs)
update_ledger_permissions_mode
Updates the permissions mode of a ledger.
Type annotations and code completion for session.client("qldb").update_ledger_permissions_mode
method.
boto3 documentation
await def update_ledger_permissions_mode(
self,
*,
Name: str,
PermissionsMode: PermissionsModeType, # (1)
) -> UpdateLedgerPermissionsModeResponseTypeDef: # (2)
...
kwargs: UpdateLedgerPermissionsModeRequestRequestTypeDef = { # (1)
"Name": ...,
"PermissionsMode": ...,
}
parent.update_ledger_permissions_mode(**kwargs)
__aenter__
Type annotations and code completion for session.client("qldb").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("qldb").__aexit__
method.
boto3 documentation