Skip to content

SES module

Index > SES

Auto-generated documentation for SES type annotations stubs module mypy-boto3-ses.

How to install

VSCode extension

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and SES.

From PyPI with pip

Install boto3-stubs for SES service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[ses]'


# 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[ses]'


# standalone installation
python -m pip install mypy-boto3-ses

How to uninstall

python -m pip uninstall -y mypy-boto3-ses

Usage

Code samples can be found in Examples.

SESClient

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

Usage example
from boto3.session import Session

from mypy_boto3_ses.client import SESClient

def get_client() -> SESClient:
    return Session().client("ses")

Paginators

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

Usage example
from boto3.session import Session

from mypy_boto3_ses.paginator import ListConfigurationSetsPaginator

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

Waiters

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

Usage example
from boto3.session import Session

from mypy_boto3_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 schemas.

Usage example
from mypy_boto3_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 mypy_boto3_ses.type_defs import AddHeaderActionTypeDef

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