Registry /
type-stubs / mypy-boto3-arc-zonal-shift
Install & Compatibility
Where this runs
tested against v1.43.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.602s · 116.5MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 5.9s · import 0.574s · 114MB
114MB installed
● package 114MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ARCZonalShiftClient
✓ from mypy_boto3_arc_zonal_shift import ARCZonalShiftClient
This is the primary type hint for the ARC Zonal Shift service client obtained from boto3.client().
GetManagedResourceResponseTypeDef
✓ from mypy_boto3_arc_zonal_shift.type_defs import GetManagedResourceResponseTypeDef
Imports type definitions for service responses, typically TypedDicts, for detailed type checking.
ARCZonalShiftServiceName
✓ from mypy_boto3_arc_zonal_shift.literals import ARCZonalShiftServiceName
Literal type for the service name, useful for strict type checking of service names passed to boto3.client().
This quickstart demonstrates how to initialize a type-hinted `ARCZonalShiftClient` using `boto3` and perform a basic `list_managed_resources` call, applying the type stubs for improved code completion and static analysis. It also includes an example for `get_managed_resource`, noting the need for a valid ARN.
import boto3
import os
from mypy_boto3_arc_zonal_shift import ARCZonalShiftClient
from mypy_boto3_arc_zonal_shift.type_defs import (
GetManagedResourceResponseTypeDef,
ListManagedResourcesResponseTypeDef,
)
# Initialize a typed client for the ARC Zonal Shift service
# Ensure AWS credentials are configured (e.g., via AWS CLI, environment variables)
client: ARCZonalShiftClient = boto3.client("arc-zonal-shift")
print("\n--- Listing Managed Resources ---")
try:
# Using type hints for the response object
response: ListManagedResourcesResponseTypeDef = client.list_managed_resources(
MaxResults=5 # Example optional parameter
)
if "Items" in response:
print(f"Found {len(response['Items'])} managed resources:")
for resource in response["Items"]:
print(f" - ARN: {resource.get('ResourceArn')}, Name: {resource.get('ResourceName')}")
else:
print("No managed resources found.")
except client.exceptions.AccessDeniedException as e:
print(f"Error: Access denied. Please check your AWS credentials and permissions. {e}")
except Exception as e:
print(f"An unexpected error occurred: {e}")
# Example: Getting details for a specific managed resource (requires a valid ARN)
# Replace with an actual ARN from your AWS environment if you want to test this part.
# For a runnable example, we'll use a placeholder and warn the user.
example_resource_identifier = os.environ.get(
"ARC_ZONAL_SHIFT_TEST_RESOURCE_ID",
"arn:aws:arc-zonal-shift:us-east-1:123456789012:resource/example-123"
)
if "example-123" not in example_resource_identifier: # Avoid running with placeholder
print(f"\n--- Getting Details for Resource: {example_resource_identifier} ---")
try:
resource_details: GetManagedResourceResponseTypeDef = client.get_managed_resource(
ResourceIdentifier=example_resource_identifier
)
print(f"Details for {example_resource_identifier}: {resource_details}")
except client.exceptions.ResourceNotFoundException:
print(f"Resource '{example_resource_identifier}' not found.")
except Exception as e:
print(f"Error getting resource details: {e}")
else:
print(f"\nSkipping 'Get Managed Resource' example. Set ARC_ZONAL_SHIFT_TEST_RESOURCE_ID environment variable with a valid ARN to run it.")
Debug
Known issues
breakingPython 3.8 support was removed for all `mypy-boto3` packages, including `mypy-boto3-arc-zonal-shift`, starting with `mypy-boto3-builder` version 8.12.0. The `requires_python` specifier is now `>=3.9`.fixUpgrade your Python environment to 3.9 or newer. If you must use Python 3.8, you will need to pin `mypy-boto3-arc-zonal-shift` to an older version (e.g., `<1.42.0`) or use an older `mypy-boto3-builder` if generating custom stubs.
affects: mypy-boto3-arc-zonal-shift >= 1.42.0 (and other mypy-boto3 packages generated by builder 8.12.0+)
breakingSome TypeDef names for method arguments and responses might have changed in `mypy-boto3-builder` version 8.9.0 to be shorter or to resolve naming conflicts. This can cause `mypy` errors if your code explicitly references these TypeDefs.fixIf you encounter 'Name 'X' is not defined' or 'cannot find name 'X'' errors for TypeDefs after upgrading, consult the generated `type_defs.pyi` file within the package (e.g., `site-packages/mypy_boto3_arc_zonal_shift/type_defs.pyi`) for the updated names and adjust your imports/references accordingly.
affects: mypy-boto3-arc-zonal-shift >= 1.39.0 (and other mypy-boto3 packages generated by builder 8.9.0+)
gotchaThis package provides *type stubs only*. It does not replace the `boto3` library itself. `boto3` must be installed and available at runtime for your application to function. These stubs merely add type-checking capabilities for `boto3` interactions.fixEnsure `boto3` is included in your project's runtime dependencies (`pip install boto3`). The `mypy-boto3` package is a development/type-checking dependency.
affects: All versions
gotchaAWS service names passed to `boto3.client()` (e.g., 'arc-zonal-shift') are case-sensitive and must exactly match the expected service identifier. Mismatches will lead to `UnknownServiceError` at runtime and may not be caught by `mypy` if not using literal types.fixAlways refer to the official `boto3` documentation or `mypy_boto3_arc_zonal_shift.literals.ARCZonalShiftServiceName` for the correct service name. For this service, it is 'arc-zonal-shift'.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the runtime AWS SDK functionality that these stubs type-check. Required for execution.
mypyrequiredThe static type checker that utilizes these stubs. Required for type checking.