mypy-boto3-application-signals Type Stubs

1.42.76 · active · verified Sat Apr 11

mypy-boto3-application-signals provides static type annotations for the `boto3` AWS SDK specifically for the CloudWatchApplicationSignals service, currently at version 1.42.76. It is generated by `mypy-boto3-builder` and receives frequent updates, often aligning with `boto3` releases and `mypy-boto3-builder` enhancements, to ensure up-to-date type information for improved code quality and IDE support.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to obtain a type-hinted `CloudWatchApplicationSignalsClient` instance using `mypy-boto3-application-signals`. The `TYPE_CHECKING` guard is a common pattern to ensure `mypy-boto3` packages are only used during type checking, avoiding potential runtime dependencies.

import boto3
from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from mypy_boto3_application_signals.client import ApplicationSignalsClient

def get_application_signals_client() -> ApplicationSignalsClient:
    """Provides a type-hinted CloudWatchApplicationSignals client."""
    # boto3.client will be correctly type-hinted by mypy when mypy-boto3-application-signals is installed.
    return boto3.client("application-signals")

client = get_application_signals_client()
# Example usage with type-hinted client (methods and parameters will autocomplete)
response = client.list_service_dependencies(
    StartTime=1678886400, # Example timestamp
    EndTime=1678886400 + 3600 # Example timestamp
)

print(response)

view raw JSON →