Skip to content

DAX module#

Index > DAX

Auto-generated documentation for DAX type annotations stubs module mypy-boto3-dax.

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

From PyPI with pip#

Install boto3-stubs for DAX service.

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


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


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

How to uninstall#

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

Usage#

Code samples can be found in Examples.

DAXClient#

Type annotations and code completion for boto3.client("dax") as DAXClient boto3 documentation

# DAXClient usage example

from boto3.session import Session

from mypy_boto3_dax.client import DAXClient

def get_client() -> DAXClient:
    return Session().client("dax")

Paginators#

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

# DescribeClustersPaginator usage example

from boto3.session import Session

from mypy_boto3_dax.paginator import DescribeClustersPaginator

def get_describe_clusters_paginator() -> DescribeClustersPaginator:
    return Session().client("dax").get_paginator("describe_clusters"))

Literals#

Type annotations for literals used in methods and schema.

# ChangeTypeType usage example

from mypy_boto3_dax.literals import ChangeTypeType

def get_value() -> ChangeTypeType:
    return "IMMEDIATE"

Type definitions#

Type annotations for type definitions used in methods and schema.