Skip to content

DirectoryService module#

Index > DirectoryService

Auto-generated documentation for DirectoryService type annotations stubs module types-aiobotocore-ds.

How to install#

From PyPI with pip#

Install types-aiobotocore for DirectoryService service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[ds]'


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


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

How to uninstall#

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

Usage#

Code samples can be found in Examples.

DirectoryServiceClient#

Type annotations and code completion for session.create_client("ds") as DirectoryServiceClient boto3 documentation

# DirectoryServiceClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_ds.client import DirectoryServiceClient


session = get_session()
async with session.create_client("ds") as client:
    client: DirectoryServiceClient

Paginators#

Type annotations and code completion for paginators from session.create_client("ds").get_paginator("...").

# DescribeClientAuthenticationSettingsPaginator usage example

from types_aiobotocore_ds.paginator import DescribeClientAuthenticationSettingsPaginator

def get_describe_client_authentication_settings_paginator() -> DescribeClientAuthenticationSettingsPaginator:
    return client.get_paginator("describe_client_authentication_settings"))

Literals#

Type annotations for literals used in methods and schema.

# CertificateStateType usage example

from types_aiobotocore_ds.literals import CertificateStateType

def get_value() -> CertificateStateType:
    return "DeregisterFailed"

Type definitions#

Type annotations for type definitions used in methods and schema.