Skip to content

ApplicationDiscoveryService module#

Index > ApplicationDiscoveryService

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

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

From PyPI with pip#

Install boto3-stubs for ApplicationDiscoveryService service.

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

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

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

How to uninstall#

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


Code samples can be found in Examples.


Type annotations and code completion for boto3.client("discovery") as ApplicationDiscoveryServiceClient boto3 documentation

# ApplicationDiscoveryServiceClient usage example

from boto3.session import Session

from mypy_boto3_discovery.client import ApplicationDiscoveryServiceClient

def get_client() -> ApplicationDiscoveryServiceClient:
    return Session().client("discovery")


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

# DescribeAgentsPaginator usage example

from boto3.session import Session

from mypy_boto3_discovery.paginator import DescribeAgentsPaginator

def get_describe_agents_paginator() -> DescribeAgentsPaginator:
    return Session().client("discovery").get_paginator("describe_agents"))


Type annotations for literals used in methods and schemas.

# AgentStatusType usage example

from mypy_boto3_discovery.literals import AgentStatusType

def get_value() -> AgentStatusType:
    return "BLACKLISTED"

Typed dictionaries#

Type annotations for typed dictionaries used in methods and schema.

# AgentConfigurationStatusTypeDef usage example

from mypy_boto3_discovery.type_defs import AgentConfigurationStatusTypeDef

def get_value() -> AgentConfigurationStatusTypeDef:
    return {
        "agentId": ...,