Skip to content

SES module

Index > SES

Auto-generated documentation for SES type annotations stubs module types-aiobotocore-ses.

How to install

From PyPI with pip

Install types-aioboto3 for SES service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[ses]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aioboto3-lite[ses]'


# standalone installation
python -m pip install types-aiobotocore-ses

How to uninstall

python -m pip uninstall -y types-aiobotocore-ses

Usage

Code samples can be found in Examples.

SESClient

Type annotations and code completion for session.client("ses") as SESClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_ses.client import SESClient


session = Session()
async with session.client("ses") as client:
    client: SESClient

Paginators

Type annotations and code completion for paginators from session.client("ses").get_paginator("...").

Usage example
from types_aiobotocore_ses.paginator import ListConfigurationSetsPaginator

def get_list_configuration_sets_paginator() -> ListConfigurationSetsPaginator:
    return client.get_paginator("list_configuration_sets"))

Waiters

Type annotations and code completion for waiters from session.client("ses").get_waiter("...").

Usage example
from types_aiobotocore_ses.waiter import IdentityExistsWaiter

def get_identity_exists_waiter() -> IdentityExistsWaiter:
    return Session().client("ses").get_waiter("identity_exists")

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_ses.literals import BehaviorOnMXFailureType

def get_value() -> BehaviorOnMXFailureType:
    return "RejectMessage"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_ses.type_defs import AddHeaderActionTypeDef

def get_value() -> AddHeaderActionTypeDef:
    return {
        "HeaderName": ...,
        "HeaderValue": ...,
    }