Skip to content

mgn module

Index > mgn

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

How to install

From PyPI with pip

Install types-aioboto3 for mgn service.

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


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


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

How to uninstall

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

Usage

Code samples can be found in Examples.

mgnClient

Type annotations and code completion for session.client("mgn") as mgnClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_mgn.client import mgnClient


session = Session()
async with session.client("mgn") as client:
    client: mgnClient

Paginators

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

Usage example
from types_aiobotocore_mgn.paginator import DescribeJobLogItemsPaginator

def get_describe_job_log_items_paginator() -> DescribeJobLogItemsPaginator:
    return client.get_paginator("describe_job_log_items"))

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_mgn.literals import BootModeType

def get_value() -> BootModeType:
    return "LEGACY_BIOS"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_mgn.type_defs import CPUTypeDef

def get_value() -> CPUTypeDef:
    return {
        "cores": ...,
    }