Skip to content

KMS module#

Index > KMS

Auto-generated documentation for KMS type annotations stubs module types-aiobotocore-kms.

How to install#

From PyPI with pip#

Install types-aiobotocore for KMS service.

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


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


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

How to uninstall#

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

Usage#

Code samples can be found in Examples.

KMSClient#

Type annotations and code completion for session.create_client("kms") as KMSClient boto3 documentation

# KMSClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_kms.client import KMSClient


session = get_session()
async with session.create_client("kms") as client:
    client: KMSClient

Paginators#

Type annotations and code completion for paginators from session.create_client("kms").get_paginator("...").

# DescribeCustomKeyStoresPaginator usage example

from types_aiobotocore_kms.paginator import DescribeCustomKeyStoresPaginator

def get_describe_custom_key_stores_paginator() -> DescribeCustomKeyStoresPaginator:
    return client.get_paginator("describe_custom_key_stores"))

Literals#

Type annotations for literals used in methods and schema.

# AlgorithmSpecType usage example

from types_aiobotocore_kms.literals import AlgorithmSpecType

def get_value() -> AlgorithmSpecType:
    return "RSAES_OAEP_SHA_1"

Type definitions#

Type annotations for type definitions used in methods and schema.