mypy-boto3-arc-region-switch Type Stubs
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
- breaking Starting with `mypy-boto3-builder` version 8.12.0, support for Python 3.8 has been removed. If you are using generated stubs from this builder version or newer, you must upgrade your Python environment to 3.9 or higher.
- gotcha This package (`mypy-boto3-arc-region-switch`) provides only type stubs. For your application to run, you must install the `boto3` library separately. These stubs are used by static analysis tools like `mypy` for type checking, not for runtime execution.
- breaking TypeDef naming conventions were changed in `mypy-boto3-builder` 8.9.0. Specifically, packed method arguments and conflicting TypeDefs might have shorter names or 'Extra' postfix moved. If your code explicitly imports or references generated TypeDefs, these changes could introduce type errors.
- gotcha For the most accurate type checking, ensure that the version of your `mypy-boto3-*` stubs closely matches your installed `boto3` version. Significant version mismatches can lead to incorrect type errors or missed type checks, as service APIs evolve.
Install
-
pip install mypy-boto3-arc-region-switch boto3
Imports
- ARCRegionswitchClient
from mypy_boto3_arc_region_switch.client import ARCRegionswitchClient
- ARCRegionswitchServiceName
from mypy_boto3_arc_region_switch.type_defs import ARCRegionswitchServiceName
Quickstart
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)