mypy-boto3-arc-region-switch Type Stubs

1.42.59 · active · verified Sat Apr 11

This library provides type annotations (stubs) for the `boto3` ARCRegionswitch service client, generated with `mypy-boto3-builder`. It enhances development experience by enabling static type checking for `boto3` code. The current version is 1.42.59, and it is actively maintained with frequent updates tied to `boto3` releases and `mypy-boto3-builder` improvements.

Warnings

Install

Imports

Quickstart

This example demonstrates how to initialize a `boto3` client and use the `ARCRegionswitchClient` type annotation for improved type checking with `mypy`.

import boto3
from mypy_boto3_arc_region_switch.client import ARCRegionswitchClient

def check_arc_config(client: ARCRegionswitchClient) -> None:
    try:
        # Example operation for ARCRegionswitch service
        response = client.get_arc_regionswitch_configuration()
        print(f"ARCRegionswitch configuration: {response}")
    except Exception as e:
        print(f"Error getting ARCRegionswitch configuration: {e}")

if __name__ == '__main__':
    # The actual client must be created from boto3
    # Ensure AWS credentials are configured (e.g., via AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY env vars)
    arc_client: ARCRegionswitchClient = boto3.client(
        'arc-regionswitch', 
        region_name=os.environ.get('AWS_REGION', 'us-east-1')
    )
    check_arc_config(arc_client)

view raw JSON →