Skip to content

MQ module

Index > MQ

Auto-generated documentation for MQ type annotations stubs module types-aiobotocore-mq.

How to install

From PyPI with pip

Install types-aioboto3 for MQ service.

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


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


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

How to uninstall

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

Usage

Code samples can be found in Examples.

MQClient

Type annotations and code completion for session.client("mq") as MQClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_mq.client import MQClient


session = Session()
async with session.client("mq") as client:
    client: MQClient

Paginators

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

Usage example
from types_aiobotocore_mq.paginator import ListBrokersPaginator

def get_list_brokers_paginator() -> ListBrokersPaginator:
    return client.get_paginator("list_brokers"))

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_mq.literals import AuthenticationStrategyType

def get_value() -> AuthenticationStrategyType:
    return "LDAP"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_mq.type_defs import ActionRequiredTypeDef

def get_value() -> ActionRequiredTypeDef:
    return {
        "ActionRequiredCode": ...,
    }