Skip to content

SimpleDBClient

Index > SimpleDB > SimpleDBClient

Auto-generated documentation for SimpleDB type annotations stubs module types-aiobotocore-sdb.

SimpleDBClient

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

Usage example
from aioboto3.session import Session
from types_aiobotocore_sdb.client import SimpleDBClient

session = Session()
async with session.client("sdb") as client:
    client: SimpleDBClient

Exceptions

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

Usage example
async with session.client("sdb") as client:
    try:
        do_something(client)
    except (
            client.AttributeDoesNotExist,
        client.ClientError,
        client.DuplicateItemName,
        client.InvalidNextToken,
        client.InvalidNumberPredicates,
        client.InvalidNumberValueTests,
        client.InvalidParameterValue,
        client.InvalidQueryExpression,
        client.MissingParameter,
        client.NoSuchDomain,
        client.NumberDomainAttributesExceeded,
        client.NumberDomainBytesExceeded,
        client.NumberDomainsExceeded,
        client.NumberItemAttributesExceeded,
        client.NumberSubmittedAttributesExceeded,
        client.NumberSubmittedItemsExceeded,
        client.RequestTimeout,
        client.TooManyRequestedAttributes,
    ) as e:
        print(e)
Type checking example
from types_aiobotocore_sdb.client import Exceptions

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

Methods

batch_delete_attributes

Performs multiple DeleteAttributes operations in a single call, which reduces round trips and latencies.

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

Method definition
await def batch_delete_attributes(
    self,
    *,
    DomainName: str,
    Items: Sequence[DeletableItemTypeDef],  # (1)
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See DeletableItemTypeDef
  2. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: BatchDeleteAttributesRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
    "Items": ...,
}

parent.batch_delete_attributes(**kwargs)
  1. See BatchDeleteAttributesRequestRequestTypeDef

batch_put_attributes

The BatchPutAttributes operation creates or replaces attributes within one or more items.

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

Method definition
await def batch_put_attributes(
    self,
    *,
    DomainName: str,
    Items: Sequence[ReplaceableItemTypeDef],  # (1)
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See ReplaceableItemTypeDef
  2. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: BatchPutAttributesRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
    "Items": ...,
}

parent.batch_put_attributes(**kwargs)
  1. See BatchPutAttributesRequestRequestTypeDef

can_paginate

Check if an operation can be paginated.

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

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

close

Closes underlying endpoint connections.

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

Method definition
await def close(
    self,
) -> None:
    ...

create_domain

The CreateDomain operation creates a new domain.

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

Method definition
await def create_domain(
    self,
    *,
    DomainName: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: CreateDomainRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
}

parent.create_domain(**kwargs)
  1. See CreateDomainRequestRequestTypeDef

delete_attributes

Deletes one or more attributes associated with an item.

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

Method definition
await def delete_attributes(
    self,
    *,
    DomainName: str,
    ItemName: str,
    Attributes: Sequence[AttributeTypeDef] = ...,  # (1)
    Expected: UpdateConditionTypeDef = ...,  # (2)
) -> EmptyResponseMetadataTypeDef:  # (3)
    ...
  1. See AttributeTypeDef
  2. See UpdateConditionTypeDef
  3. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteAttributesRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
    "ItemName": ...,
}

parent.delete_attributes(**kwargs)
  1. See DeleteAttributesRequestRequestTypeDef

delete_domain

The DeleteDomain operation deletes a domain.

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

Method definition
await def delete_domain(
    self,
    *,
    DomainName: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteDomainRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
}

parent.delete_domain(**kwargs)
  1. See DeleteDomainRequestRequestTypeDef

domain_metadata

Returns information about the domain, including when the domain was created, the number of items and attributes in the domain, and the size of the attribute names and values.

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

Method definition
await def domain_metadata(
    self,
    *,
    DomainName: str,
) -> DomainMetadataResultTypeDef:  # (1)
    ...
  1. See DomainMetadataResultTypeDef
Usage example with kwargs
kwargs: DomainMetadataRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
}

parent.domain_metadata(**kwargs)
  1. See DomainMetadataRequestRequestTypeDef

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

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

Method definition
await def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_attributes

Returns all of the attributes associated with the specified item.

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

Method definition
await def get_attributes(
    self,
    *,
    DomainName: str,
    ItemName: str,
    AttributeNames: Sequence[str] = ...,
    ConsistentRead: bool = ...,
) -> GetAttributesResultTypeDef:  # (1)
    ...
  1. See GetAttributesResultTypeDef
Usage example with kwargs
kwargs: GetAttributesRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
    "ItemName": ...,
}

parent.get_attributes(**kwargs)
  1. See GetAttributesRequestRequestTypeDef

list_domains

The ListDomains operation lists all domains associated with the Access Key ID.

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

Method definition
await def list_domains(
    self,
    *,
    MaxNumberOfDomains: int = ...,
    NextToken: str = ...,
) -> ListDomainsResultTypeDef:  # (1)
    ...
  1. See ListDomainsResultTypeDef
Usage example with kwargs
kwargs: ListDomainsRequestRequestTypeDef = {  # (1)
    "MaxNumberOfDomains": ...,
}

parent.list_domains(**kwargs)
  1. See ListDomainsRequestRequestTypeDef

put_attributes

The PutAttributes operation creates or replaces attributes in an item.

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

Method definition
await def put_attributes(
    self,
    *,
    DomainName: str,
    ItemName: str,
    Attributes: Sequence[ReplaceableAttributeTypeDef],  # (1)
    Expected: UpdateConditionTypeDef = ...,  # (2)
) -> EmptyResponseMetadataTypeDef:  # (3)
    ...
  1. See ReplaceableAttributeTypeDef
  2. See UpdateConditionTypeDef
  3. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: PutAttributesRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
    "ItemName": ...,
    "Attributes": ...,
}

parent.put_attributes(**kwargs)
  1. See PutAttributesRequestRequestTypeDef

select

The Select operation returns a set of attributes for ItemNames that match the select expression.

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

Method definition
await def select(
    self,
    *,
    SelectExpression: str,
    NextToken: str = ...,
    ConsistentRead: bool = ...,
) -> SelectResultTypeDef:  # (1)
    ...
  1. See SelectResultTypeDef
Usage example with kwargs
kwargs: SelectRequestRequestTypeDef = {  # (1)
    "SelectExpression": ...,
}

parent.select(**kwargs)
  1. See SelectRequestRequestTypeDef

__aenter__

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

Method definition
await def __aenter__(
    self,
) -> SimpleDBClient:
    ...

__aexit__

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

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

get_paginator

Type annotations and code completion for session.client("sdb").get_paginator method with overloads.