Skip to content

EFS module#

Index > EFS

Auto-generated documentation for EFS type annotations stubs module mypy-boto3-efs.

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

From PyPI with pip#

Install boto3-stubs for EFS service.

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


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


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

How to uninstall#

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

Usage#

Code samples can be found in Examples.

EFSClient#

Type annotations and code completion for boto3.client("efs") as EFSClient boto3 documentation

# EFSClient usage example

from boto3.session import Session

from mypy_boto3_efs.client import EFSClient

def get_client() -> EFSClient:
    return Session().client("efs")

Paginators#

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

# DescribeAccessPointsPaginator usage example

from boto3.session import Session

from mypy_boto3_efs.paginator import DescribeAccessPointsPaginator

def get_describe_access_points_paginator() -> DescribeAccessPointsPaginator:
    return Session().client("efs").get_paginator("describe_access_points"))

Literals#

Type annotations for literals used in methods and schema.

# DescribeAccessPointsPaginatorName usage example

from mypy_boto3_efs.literals import DescribeAccessPointsPaginatorName

def get_value() -> DescribeAccessPointsPaginatorName:
    return "describe_access_points"

Type definitions#

Type annotations for type definitions used in methods and schema.