Skip to content

EMR module

Index > EMR

Auto-generated documentation for EMR type annotations stubs module types-aiobotocore-emr.

How to install

From PyPI with pip

Install types-aioboto3 for EMR service.

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


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


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

How to uninstall

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

Usage

Code samples can be found in Examples.

EMRClient

Type annotations and code completion for session.client("emr") as EMRClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_emr.client import EMRClient


session = Session()
async with session.client("emr") as client:
    client: EMRClient

Paginators

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

Usage example
from types_aiobotocore_emr.paginator import ListBootstrapActionsPaginator

def get_list_bootstrap_actions_paginator() -> ListBootstrapActionsPaginator:
    return client.get_paginator("list_bootstrap_actions"))

Waiters

Type annotations and code completion for waiters from session.client("emr").get_waiter("...").

Usage example
from types_aiobotocore_emr.waiter import ClusterRunningWaiter

def get_cluster_running_waiter() -> ClusterRunningWaiter:
    return Session().client("emr").get_waiter("cluster_running")

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_emr.literals import ActionOnFailureType

def get_value() -> ActionOnFailureType:
    return "CANCEL_AND_WAIT"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_emr.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }