SimpleDBv2 module#
Index > SimpleDBv2
Auto-generated documentation for SimpleDBv2 type annotations stubs module mypy-boto3-simpledbv2.
How to install#
Generate locally (recommended)#
You can generate type annotations for boto3 package locally with mypy-boto3-builder.
Use uv for build isolation.
- Run mypy-boto3-builder in your package root directory:
uvx --with 'boto3==1.42.66' mypy-boto3-builder - Select
boto3-stubsAWS SDK. - Add
SimpleDBv2service. - Use provided commands to install generated packages.
VSCode extension#
Add AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start command.
Click Modify and select boto3 common and SimpleDBv2.
From PyPI with pip#
Install boto3-stubs for SimpleDBv2 service.
# install with boto3 type annotations
python -m pip install 'boto3-stubs[simpledbv2]'
# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[simpledbv2]'
# standalone installation
python -m pip install mypy-boto3-simpledbv2
How to uninstall#
python -m pip uninstall -y mypy-boto3-simpledbv2
Usage#
Code samples can be found in Examples.
SimpleDBv2Client#
Type annotations and code completion for boto3.client("simpledbv2") as SimpleDBv2Client
boto3 documentation
# SimpleDBv2Client usage example
from boto3.session import Session
from mypy_boto3_simpledbv2.client import SimpleDBv2Client
def get_client() -> SimpleDBv2Client:
return Session().client("simpledbv2")
Paginators#
Type annotations and code completion for paginators
from boto3.client("simpledbv2").get_paginator("...").
# ListExportsPaginator usage example
from boto3.session import Session
from mypy_boto3_simpledbv2.paginator import ListExportsPaginator
def get_list_exports_paginator() -> ListExportsPaginator:
return Session().client("simpledbv2").get_paginator("list_exports"))
Waiters#
Type annotations and code completion for waiters
from boto3.client("simpledbv2").get_waiter("...").
# ExportSucceededWaiter usage example
from boto3.session import Session
from mypy_boto3_simpledbv2.waiter import ExportSucceededWaiter
def get_export_succeeded_waiter() -> ExportSucceededWaiter:
return Session().client("simpledbv2").get_waiter("export_succeeded")
Literals#
Type annotations for literals used in methods and schema.
# ExportStatusType usage example
from mypy_boto3_simpledbv2.literals import ExportStatusType
def get_value() -> ExportStatusType:
return "FAILED"
- ExportStatusType
- ExportSucceededWaiterName
- ListExportsPaginatorName
- S3SseAlgorithmType
- SimpleDBv2ServiceName
- ServiceName
- ResourceServiceName
- PaginatorName
- WaiterName
- RegionName
Type definitions#
Type annotations for type definitions used in methods and schema.
- ExportSummaryTypeDef
- GetExportRequestTypeDef
- WaiterConfigTypeDef
- ResponseMetadataTypeDef
- PaginatorConfigTypeDef
- ListExportsRequestTypeDef
- StartDomainExportRequestTypeDef
- GetExportRequestWaitTypeDef
- GetExportResponseTypeDef
- ListExportsResponseTypeDef
- StartDomainExportResponseTypeDef
- ListExportsRequestPaginateTypeDef