Skip to content

CloudHSM module

Index > CloudHSM

Auto-generated documentation for CloudHSM type annotations stubs module types-aiobotocore-cloudhsm.

How to install

From PyPI with pip

Install types-aioboto3 for CloudHSM service.

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


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


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

How to uninstall

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

Usage

Code samples can be found in Examples.

CloudHSMClient

Type annotations and code completion for session.client("cloudhsm") as CloudHSMClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_cloudhsm.client import CloudHSMClient


session = Session()
async with session.client("cloudhsm") as client:
    client: CloudHSMClient

Paginators

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

Usage example
from types_aiobotocore_cloudhsm.paginator import ListHapgsPaginator

def get_list_hapgs_paginator() -> ListHapgsPaginator:
    return client.get_paginator("list_hapgs"))

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_cloudhsm.literals import ClientVersionType

def get_value() -> ClientVersionType:
    return "5.1"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_cloudhsm.type_defs import TagTypeDef

def get_value() -> TagTypeDef:
    return {
        "Key": ...,
        "Value": ...,
    }