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-aiobotocore for mgn service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[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-aiobotocore-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.create_client("mgn") as mgnClient boto3 documentation

# mgnClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_mgn.client import mgnClient


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

Paginators#

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

# DescribeJobLogItemsPaginator 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.

# ActionCategoryType usage example

from types_aiobotocore_mgn.literals import ActionCategoryType

def get_value() -> ActionCategoryType:
    return "BACKUP"

Type definitions#

Type annotations for type definitions used in methods and schema.