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-aioboto3 for KMS service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[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-aioboto3-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.client("kms") as KMSClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_kms.client import KMSClient


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

Paginators

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

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.

Usage example
from types_aiobotocore_kms.literals import AlgorithmSpecType

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

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_kms.type_defs import AliasListEntryTypeDef

def get_value() -> AliasListEntryTypeDef:
    return {
        "AliasName": ...,
    }