{"id":3584,"library":"mypy-boto3-gameliftstreams","title":"mypy-boto3-gameliftstreams","description":"mypy-boto3-gameliftstreams provides type annotations for the boto3 GameLiftStreams service. It enhances static analysis for boto3 client calls related to GameLift Streams, offering improved autocompletion and error checking in IDEs and with type checkers like Mypy. The library is actively maintained, with releases tied to upstream boto3 updates and its generator, mypy-boto3-builder.","status":"active","version":"1.42.68","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["type-checking","aws","boto3","gameliftstreams","mypy","stubs"],"install":[{"cmd":"pip install mypy-boto3-gameliftstreams","lang":"bash","label":"Direct installation"},{"cmd":"pip install 'boto3-stubs[gameliftstreams]'","lang":"bash","label":"As part of boto3-stubs"}],"dependencies":[{"reason":"Required runtime library for AWS SDK functionality.","package":"boto3"},{"reason":"Type checker required to utilize the annotations.","package":"mypy","optional":true},{"reason":"May be required for full functionality on older Python versions, though typically handled by environment.","package":"typing-extensions","optional":true}],"imports":[{"note":"Import the typed client for full type-checking benefits.","symbol":"GameLiftStreamsClient","correct":"from mypy_boto3_gameliftstreams.client import GameLiftStreamsClient"},{"note":"Import the literal type for service name arguments.","symbol":"GameLiftStreamsServiceName","correct":"from mypy_boto3_gameliftstreams.literals import GameLiftStreamsServiceName"}],"quickstart":{"code":"import os\nfrom typing import TYPE_CHECKING\nfrom boto3.session import Session\n\n# These imports are for type-checking only\nif TYPE_CHECKING:\n    from mypy_boto3_gameliftstreams.client import GameLiftStreamsClient\n    from mypy_boto3_gameliftstreams.type_defs import ListStreamsOutputTypeDef\n\n# Configure AWS credentials if not using environment variables/profile\n# os.environ['AWS_ACCESS_KEY_ID'] = os.environ.get('AWS_ACCESS_KEY_ID', 'YOUR_ACCESS_KEY')\n# os.environ['AWS_SECRET_ACCESS_KEY'] = os.environ.get('AWS_SECRET_ACCESS_KEY', 'YOUR_SECRET_KEY')\n# os.environ['AWS_REGION'] = os.environ.get('AWS_REGION', 'us-east-1')\n\ndef get_gamelift_streams_client() -> \"GameLiftStreamsClient\":\n    session = Session()\n    client: GameLiftStreamsClient = session.client(\"gamelift-streams\")\n    return client\n\ndef list_gamelift_streams():\n    client = get_gamelift_streams_client()\n    try:\n        # Example: List GameLift Streams (replace with actual method if 'list_streams' is not relevant or requires args)\n        response: ListStreamsOutputTypeDef = client.list_streams()\n        print(\"Successfully listed GameLift Streams.\")\n        # Process response here\n        # For example, if there were a 'Streams' key with a list of stream data:\n        # for stream in response.get('Streams', []):\n        #     print(f\"  Stream ARN: {stream.get('StreamArn')}\")\n        print(response)\n    except client.exceptions.ClientError as e:\n        print(f\"Error listing GameLift Streams: {e}\")\n\nif __name__ == \"__main__\":\n    list_gamelift_streams()","lang":"python","description":"This quickstart demonstrates how to obtain a type-checked GameLiftStreams client from a boto3 session and call a basic operation like `list_streams`. The `TYPE_CHECKING` block ensures that type-specific imports are only active during static analysis, avoiding runtime dependencies on `mypy-boto3-gameliftstreams`."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or newer.","message":"Starting with `mypy-boto3-builder` version 8.12.0 (which generated this stub), support for Python 3.8 has been removed across all `mypy-boto3` packages. Users on Python 3.8 will need to upgrade to Python 3.9 or newer to use this and subsequent versions.","severity":"breaking","affected_versions":"mypy-boto3-builder >=8.12.0"},{"fix":"Review and update explicit TypeDef annotations in your codebase according to the new naming conventions.","message":"Type definition names (TypeDefs) for packed method arguments and those with conflicting names were changed in `mypy-boto3-builder` version 8.9.0. For example, `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`, and `CreateDistributionExtraRequestTypeDef` changed to `CreateDistributionRequestExtraTypeDef`. This may break existing explicit type annotations.","severity":"breaking","affected_versions":"mypy-boto3-builder >=8.9.0"},{"fix":"If experiencing performance issues in PyCharm, try using `boto3-stubs-lite` or ensure your PyCharm and Python plugin versions are up to date.","message":"PyCharm users might experience slow performance with `mypy-boto3` due to its handling of Literal overloads (PyCharm issue PY-40997). For large projects or if performance is an issue, consider using the `*-lite` versions (e.g., `boto3-stubs-lite[gameliftstreams]`) which offer a more RAM-friendly experience at the cost of requiring more explicit type annotations.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Align `mypy-boto3-gameliftstreams` and `boto3` versions, ideally by installing `boto3-stubs` with the `[boto3]` extra (e.g., `pip install 'boto3-stubs[boto3]'`) or by manually matching versions.","message":"The functionality and accuracy of type annotations are tightly coupled to the underlying `boto3` library version. Ensure that your `mypy-boto3-gameliftstreams` version closely matches your installed `boto3` version to avoid inconsistencies in type hints.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}