Type annotations for boto3 SystemsManagerQuickSetup service

1.42.3 · active · verified Sat Apr 11

mypy-boto3-ssm-quicksetup provides type annotations for the `boto3` Systems Manager Quick Setup (SSM Quick Setup) service client, enabling static type checking with tools like `mypy` and enhancing IDE auto-completion. This package is part of the `mypy-boto3-builder` ecosystem, which generates stubs for all `boto3` services. It is currently at version 1.42.3 and generally aligns its major version with the corresponding `boto3` release, while the `mypy-boto3-builder` itself has its own release cadence.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to obtain a type-hinted `SystemsManagerQuickSetupClient` using `boto3` and its type stubs. It includes an example of a service call, with the input and output types also annotated. Run this code with `mypy` to verify type correctness.

import boto3
from boto3.session import Session
from mypy_boto3_ssm_quicksetup.client import SystemsManagerQuickSetupClient
from mypy_boto3_ssm_quicksetup.type_defs import ListQuickSetupActionsResponseTypeDef


def get_ssm_quicksetup_client() -> SystemsManagerQuickSetupClient:
    """Returns a type-hinted SSM Quick Setup client."""
    session: Session = boto3.session.Session()
    client: SystemsManagerQuickSetupClient = session.client("ssm-quicksetup")
    return client


if __name__ == "__main__":
    ssm_qs_client = get_ssm_quicksetup_client()
    
    # Example: List Quick Setup Actions (dummy call for demonstration)
    # In a real scenario, you would provide actual parameters.
    try:
        response: ListQuickSetupActionsResponseTypeDef = ssm_qs_client.list_quick_setup_actions()
        print("Successfully retrieved Quick Setup actions (type-checked).")
        # print(response)
    except Exception as e:
        print(f"An error occurred: {e}")

view raw JSON →