Skip to content

EKS module#

Index > EKS

Auto-generated documentation for EKS type annotations stubs module mypy-boto3-eks.

How to install#

You can generate type annotations for boto3 package locally with mypy_boto3_builder. Use uv for build isolation.

  1. Run mypy-boto3-builder in your package root directory: uvx --with 'boto3==1.35.86' mypy_boto3_builder
  2. Select boto3-stubs AWS SDK.
  3. Add EKS service.
  4. Use provided commands to install generated packages.

VSCode extension#

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

Click Modify and select boto3 common and EKS.

From PyPI with pip#

Install boto3-stubs for EKS service.

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

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

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

How to uninstall#

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

Usage#

Code samples can be found in Examples.

EKSClient#

Type annotations and code completion for boto3.client("eks") as EKSClient boto3 documentation

# EKSClient usage example

from boto3.session import Session

from mypy_boto3_eks.client import EKSClient

def get_client() -> EKSClient:
    return Session().client("eks")

Paginators#

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

# DescribeAddonVersionsPaginator usage example

from boto3.session import Session

from mypy_boto3_eks.paginator import DescribeAddonVersionsPaginator

def get_describe_addon_versions_paginator() -> DescribeAddonVersionsPaginator:
    return Session().client("eks").get_paginator("describe_addon_versions"))

Waiters#

Type annotations and code completion for waiters from boto3.client("eks").get_waiter("...").

# AddonActiveWaiter usage example

from boto3.session import Session

from mypy_boto3_eks.waiter import AddonActiveWaiter

def get_addon_active_waiter() -> AddonActiveWaiter:
    return Session().client("eks").get_waiter("addon_active")

Literals#

Type annotations for literals used in methods and schema.

# AMITypesType usage example

from mypy_boto3_eks.literals import AMITypesType

def get_value() -> AMITypesType:
    return "AL2023_ARM_64_STANDARD"

Type definitions#

Type annotations for type definitions used in methods and schema.