Skip to content

SimpleDBClient#

Index > SimpleDB > SimpleDBClient

Auto-generated documentation for SimpleDB type annotations stubs module mypy-boto3-sdb.

SimpleDBClient#

Type annotations and code completion for boto3.client("sdb"). boto3 documentation

# SimpleDBClient usage example

from boto3.session import Session
from mypy_boto3_sdb.client import SimpleDBClient

def get_sdb_client() -> SimpleDBClient:
    return Session().client("sdb")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("sdb").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("sdb")

try:
    do_something(client)
except (
    client.exceptions.AttributeDoesNotExist,
    client.exceptions.ClientError,
    client.exceptions.DuplicateItemName,
    client.exceptions.InvalidNextToken,
    client.exceptions.InvalidNumberPredicates,
    client.exceptions.InvalidNumberValueTests,
    client.exceptions.InvalidParameterValue,
    client.exceptions.InvalidQueryExpression,
    client.exceptions.MissingParameter,
    client.exceptions.NoSuchDomain,
    client.exceptions.NumberDomainAttributesExceeded,
    client.exceptions.NumberDomainBytesExceeded,
    client.exceptions.NumberDomainsExceeded,
    client.exceptions.NumberItemAttributesExceeded,
    client.exceptions.NumberSubmittedAttributesExceeded,
    client.exceptions.NumberSubmittedItemsExceeded,
    client.exceptions.RequestTimeout,
    client.exceptions.TooManyRequestedAttributes,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_sdb.client import Exceptions

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

Methods#

can_paginate#

Type annotations and code completion for boto3.client("sdb").can_paginate method.