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


Code samples can be found in Examples.


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

Usage example
from boto3.session import Session

from mypy_boto3_efs.client import EFSClient

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


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

Usage example
from boto3.session import Session

from mypy_boto3_efs.paginator import DescribeFileSystemsPaginator

def get_describe_file_systems_paginator() -> DescribeFileSystemsPaginator:
    return Session().client("efs").get_paginator("describe_file_systems"))


Type annotations for literals used in methods and schemas.

Usage example
from mypy_boto3_efs.literals import DescribeFileSystemsPaginatorName

def get_value() -> DescribeFileSystemsPaginatorName:
    return "describe_file_systems"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from mypy_boto3_efs.type_defs import PosixUserTypeDef

def get_value() -> PosixUserTypeDef:
    return {
        "Uid": ...,
        "Gid": ...,