Skip to content

STS module#

Index > STS

Auto-generated documentation for STS type annotations stubs module types-aiobotocore-sts.

How to install#

From PyPI with pip#

Install types-aiobotocore for STS service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[sts]'


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


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

How to uninstall#

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

Usage#

Code samples can be found in Examples.

STSClient#

Type annotations and code completion for session.create_client("sts") as STSClient boto3 documentation

# STSClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_sts.client import STSClient


session = get_session()
async with session.create_client("sts") as client:
    client: STSClient

Literals#

Type annotations for literals used in methods and schema.

# STSServiceName usage example

from types_aiobotocore_sts.literals import STSServiceName

def get_value() -> STSServiceName:
    return "sts"

Type definitions#

Type annotations for type definitions used in methods and schema.