Skip to content

ImportExport module#

Index > ImportExport

Auto-generated documentation for ImportExport type annotations stubs module mypy-boto3-importexport.

How to install#

VSCode extension#

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and ImportExport.

From PyPI with pip#

Install boto3-stubs for ImportExport service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[importexport]'

# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[importexport]'

# standalone installation
python -m pip install mypy-boto3-importexport

How to uninstall#

python -m pip uninstall -y mypy-boto3-importexport


Code samples can be found in Examples.


Type annotations and code completion for boto3.client("importexport") as ImportExportClient boto3 documentation

# ImportExportClient usage example

from boto3.session import Session

from mypy_boto3_importexport.client import ImportExportClient

def get_client() -> ImportExportClient:
    return Session().client("importexport")


Type annotations and code completion for paginators from boto3.client("importexport").get_paginator("...").

# ListJobsPaginator usage example

from boto3.session import Session

from mypy_boto3_importexport.paginator import ListJobsPaginator

def get_list_jobs_paginator() -> ListJobsPaginator:
    return Session().client("importexport").get_paginator("list_jobs"))


Type annotations for literals used in methods and schemas.

# JobTypeType usage example

from mypy_boto3_importexport.literals import JobTypeType

def get_value() -> JobTypeType:
    return "Export"

Typed dictionaries#

Type annotations for typed dictionaries used in methods and schema.

# ArtifactTypeDef usage example

from mypy_boto3_importexport.type_defs import ArtifactTypeDef

def get_value() -> ArtifactTypeDef:
    return {
        "Description": ...,