{"id":3040,"library":"mypy-boto3-cleanrooms","title":"mypy-boto3-cleanrooms Type Stubs","description":"mypy-boto3-cleanrooms provides type annotations for the boto3 CleanRoomsService. It enhances development experience by offering static type checking, auto-completion, and improved error detection for AWS CleanRooms operations using boto3. This library is generated by `mypy-boto3-builder` and is currently at version 1.42.52, with updates typically aligning with boto3 releases.","status":"active","version":"1.42.52","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["aws","boto3","mypy","type-stubs","cleanrooms","static-analysis","developer-tools"],"install":[{"cmd":"pip install mypy-boto3-cleanrooms boto3","lang":"bash","label":"Install with boto3"}],"dependencies":[{"reason":"Provides the actual runtime functionality for interacting with AWS services. `mypy-boto3-cleanrooms` only provides type stubs.","package":"boto3","optional":false}],"imports":[{"symbol":"CleanRoomsClient","correct":"from mypy_boto3_cleanrooms.client import CleanRoomsClient"},{"note":"TypeDef names were shortened in version 8.9.0 of mypy-boto3-builder.","wrong":"from mypy_boto3_cleanrooms.type_defs import CreateConfiguredTableRequestRequestTypeDef","symbol":"CreateConfiguredTableInputRequestTypeDef","correct":"from mypy_boto3_cleanrooms.type_defs import CreateConfiguredTableInputRequestTypeDef"},{"symbol":"Paginator","correct":"from mypy_boto3_cleanrooms.paginator import ListConfiguredTablesPaginator"},{"note":"Waiters are available for some services; import specific ones as needed.","symbol":"Waiter","correct":"from mypy_boto3_cleanrooms.waiter import ConfiguredTableReadyWaiter"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_cleanrooms.client import CleanRoomsClient\nfrom mypy_boto3_cleanrooms.type_defs import ListConfiguredTablesOutputTypeDef\nimport os\n\n# Initialize a CleanRooms client with type hints\ncleanrooms_client: CleanRoomsClient = boto3.client(\n    \"cleanrooms\",\n    region_name=os.environ.get(\"AWS_REGION\", \"us-east-1\")\n)\n\n# Use the client with type-checked parameters and responses\ntry:\n    response: ListConfiguredTablesOutputTypeDef = cleanrooms_client.list_configured_tables(\n        maxResults=10\n    )\n    print(\"Successfully listed configured tables:\")\n    for table in response.get(\"configuredTableSummaries\", []):\n        print(f\"  - {table['name']} ({table['id']})\")\nexcept Exception as e:\n    print(f\"Error listing configured tables: {e}\")\n\n# Example of using a specific type definition for input\n# from mypy_boto3_cleanrooms.type_defs import CreateConfiguredTableInputRequestTypeDef\n# create_table_input: CreateConfiguredTableInputRequestTypeDef = {\n#     \"name\": \"my-test-table\",\n#     \"description\": \"My configured table description\",\n#     \"tableReferences\": [{\"lambda\": {...}}],\n#     \"allowedColumns\": [\"id\", \"name\"]\n# }\n# cleanrooms_client.create_configured_table(**create_table_input)\n","lang":"python","description":"This quickstart demonstrates how to initialize a `boto3` CleanRooms client and perform a basic operation (`list_configured_tables`) with full type-hinting provided by `mypy-boto3-cleanrooms`. It highlights how `CleanRoomsClient` and `ListConfiguredTablesOutputTypeDef` enable static analysis and autocompletion."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or a newer version.","message":"Python 3.8 support has been removed. All `mypy-boto3-*` packages, including `mypy-boto3-cleanrooms`, now require Python 3.9 or newer.","severity":"breaking","affected_versions":"mypy-boto3-builder 8.12.0 and later (corresponds to mypy-boto3-cleanrooms 1.42.52 and later)"},{"fix":"Review and update specific `TypeDef` imports and annotations in your codebase to reflect the new shorter names.","message":"TypeDef naming conventions changed, shortening names (e.g., `CreateConfiguredTableRequestRequestTypeDef` to `CreateConfiguredTableInputRequestTypeDef`) and moving 'Extra' postfixes. This may break existing explicit type hints.","severity":"breaking","affected_versions":"mypy-boto3-builder 8.9.0 and later"},{"fix":"Ensure `boto3` is included in your project dependencies: `pip install boto3 mypy-boto3-cleanrooms`.","message":"This library provides only type stubs, not the runtime functionality of boto3. You must install `boto3` separately for your code to run.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Keep `mypy-boto3-cleanrooms` and `boto3` versions as closely aligned as possible for optimal type checking accuracy.","message":"The `mypy-boto3-cleanrooms` version aligns with the `boto3` version it provides stubs for. Significant mismatches between your installed `boto3` version and `mypy-boto3-cleanrooms` version can lead to incorrect or missing type hints.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Verify that your type checker (e.g., MyPy) correctly discovers the stubs after updating. Standard `pip install` usually handles this seamlessly.","message":"The builder migrated to PEP 561 compliance, which typically improves type checker discovery but might affect custom build or packaging setups that relied on older stub discovery mechanisms.","severity":"gotcha","affected_versions":"mypy-boto3-builder 8.12.0 and later (corresponds to mypy-boto3-cleanrooms 1.42.52 and later)"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}