Skip to content

ControlTower module#

Index > ControlTower

Auto-generated documentation for ControlTower type annotations stubs module types-aiobotocore-controltower.

How to install#

You can generate type annotations for aioboto3 package locally with mypy-boto3-builder. Use uv for build isolation.

  1. Run mypy-boto3-builder in your package root directory: uvx --with 'aioboto3==14.1.0' mypy-boto3-builder
  2. Select aioboto3 AWS SDK.
  3. Add ControlTower service.
  4. Use provided commands to install generated packages.

From PyPI with pip#

Install types-aioboto3 for ControlTower service.

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

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

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

How to uninstall#

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

Usage#

Code samples can be found in Examples.

ControlTowerClient#

Type annotations and code completion for session.client("controltower") as ControlTowerClient boto3 documentation

# ControlTowerClient usage example

from aioboto3.session import Session

from types_aiobotocore_controltower.client import ControlTowerClient


session = Session()
async with session.client("controltower") as client:
    client: ControlTowerClient

Paginators#

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

# ListBaselinesPaginator usage example

from types_aiobotocore_controltower.paginator import ListBaselinesPaginator

def get_list_baselines_paginator() -> ListBaselinesPaginator:
    return client.get_paginator("list_baselines"))

Literals#

Type annotations for literals used in methods and schema.

# BaselineOperationStatusType usage example

from types_aiobotocore_controltower.literals import BaselineOperationStatusType

def get_value() -> BaselineOperationStatusType:
    return "FAILED"

Type definitions#

Type annotations for type definitions used in methods and schema.