Skip to content

ServiceDiscovery module

Index > ServiceDiscovery

Auto-generated documentation for ServiceDiscovery type annotations stubs module types-aiobotocore-servicediscovery.

How to install

From PyPI with pip

Install types-aioboto3 for ServiceDiscovery service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[servicediscovery]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aioboto3-lite[servicediscovery]'


# standalone installation
python -m pip install types-aiobotocore-servicediscovery

How to uninstall

python -m pip uninstall -y types-aiobotocore-servicediscovery

Usage

Code samples can be found in Examples.

ServiceDiscoveryClient

Type annotations and code completion for session.client("servicediscovery") as ServiceDiscoveryClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_servicediscovery.client import ServiceDiscoveryClient


session = Session()
async with session.client("servicediscovery") as client:
    client: ServiceDiscoveryClient

Paginators

Type annotations and code completion for paginators from session.client("servicediscovery").get_paginator("...").

Usage example
from types_aiobotocore_servicediscovery.paginator import ListInstancesPaginator

def get_list_instances_paginator() -> ListInstancesPaginator:
    return client.get_paginator("list_instances"))

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_servicediscovery.literals import CustomHealthStatusType

def get_value() -> CustomHealthStatusType:
    return "HEALTHY"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_servicediscovery.type_defs import TagTypeDef

def get_value() -> TagTypeDef:
    return {
        "Key": ...,
        "Value": ...,
    }