Skip to content

drs module#

Index > drs

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

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

From PyPI with pip#

Install boto3-stubs for drs service.

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

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

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

How to uninstall#

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


Code samples can be found in Examples.


Type annotations and code completion for boto3.client("drs") as drsClient boto3 documentation

# drsClient usage example

from boto3.session import Session

from mypy_boto3_drs.client import drsClient

def get_client() -> drsClient:
    return Session().client("drs")


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

# DescribeJobLogItemsPaginator usage example

from boto3.session import Session

from mypy_boto3_drs.paginator import DescribeJobLogItemsPaginator

def get_describe_job_log_items_paginator() -> DescribeJobLogItemsPaginator:
    return Session().client("drs").get_paginator("describe_job_log_items"))


Type annotations for literals used in methods and schemas.

# DataReplicationErrorStringType usage example

from mypy_boto3_drs.literals import DataReplicationErrorStringType

def get_value() -> DataReplicationErrorStringType:
    return "AGENT_NOT_SEEN"

Typed dictionaries#

Type annotations for typed dictionaries used in methods and schema.

# AccountTypeDef usage example

from mypy_boto3_drs.type_defs import AccountTypeDef

def get_value() -> AccountTypeDef:
    return {
        "accountID": ...,