Skip to content

Amplify module#

Index > Amplify

Auto-generated documentation for Amplify type annotations stubs module mypy-boto3-amplify.

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 Amplify.

From PyPI with pip#

Install boto3-stubs for Amplify service.

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


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


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

How to uninstall#

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

Usage#

Code samples can be found in Examples.

AmplifyClient#

Type annotations and code completion for boto3.client("amplify") as AmplifyClient boto3 documentation

# AmplifyClient usage example

from boto3.session import Session

from mypy_boto3_amplify.client import AmplifyClient

def get_client() -> AmplifyClient:
    return Session().client("amplify")

Paginators#

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

# ListAppsPaginator usage example

from boto3.session import Session

from mypy_boto3_amplify.paginator import ListAppsPaginator

def get_list_apps_paginator() -> ListAppsPaginator:
    return Session().client("amplify").get_paginator("list_apps"))

Literals#

Type annotations for literals used in methods and schema.

# CacheConfigTypeType usage example

from mypy_boto3_amplify.literals import CacheConfigTypeType

def get_value() -> CacheConfigTypeType:
    return "AMPLIFY_MANAGED"

Type definitions#

Type annotations for type definitions used in methods and schema.