{"id":3162,"library":"mypy-boto3-verifiedpermissions","title":"mypy-boto3-verifiedpermissions type stubs","description":"mypy-boto3-verifiedpermissions provides type annotations for the boto3 VerifiedPermissions service. It is part of the `mypy-boto3-builder` ecosystem, which generates type stubs for all boto3 services. The current version is 1.42.73, and releases are frequent, aligning with boto3 and AWS service updates, typically several times a month.","status":"active","version":"1.42.73","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["aws","boto3","mypy","type-stubs","verifiedpermissions","typing"],"install":[{"cmd":"pip install mypy-boto3-verifiedpermissions boto3","lang":"bash","label":"Install with boto3"}],"dependencies":[{"reason":"Provides the actual runtime functionality for AWS API calls. This library only provides type stubs.","package":"boto3","optional":false},{"reason":"The static type checker this library is designed for.","package":"mypy","optional":true}],"imports":[{"note":"Used for type-hinting the boto3 client object.","symbol":"VerifiedPermissionsClient","correct":"from mypy_boto3_verifiedpermissions import VerifiedPermissionsClient"},{"note":"Specific TypeDefs are typically found in the `type_defs` submodule, not directly under the package root.","wrong":"from mypy_boto3_verifiedpermissions import PolicyStoreItemTypeDef","symbol":"PolicyStoreItemTypeDef","correct":"from mypy_boto3_verifiedpermissions.type_defs import PolicyStoreItemTypeDef"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_verifiedpermissions import VerifiedPermissionsClient\n\n# Ensure boto3 is configured, e.g., via AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, etc.\n# or an AWS credentials file.\n# For a runnable example, we'll use a dummy client call that won't require real auth if the service is not used.\n\nclient: VerifiedPermissionsClient = boto3.client(\"verifiedpermissions\")\n\ntry:\n    # Example: Listing policy stores. This call requires actual AWS credentials and permissions.\n    response = client.list_policy_stores()\n    print(f\"Successfully listed policy stores: {response.get('PolicyStores', [])}\")\nexcept Exception as e:\n    print(f\"Could not list policy stores (this is expected without proper AWS configuration or permissions): {e}\")","lang":"python","description":"Demonstrates how to initialize a `boto3` client for AWS Verified Permissions and apply the type hint provided by `mypy-boto3-verifiedpermissions`."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or later.","message":"Python 3.8 support has been removed. All `mypy-boto3` packages now require Python 3.9 or newer.","severity":"breaking","affected_versions":"mypy-boto3-builder 8.12.0+"},{"fix":"Review your code for imports of specific TypeDefs and update their names according to the new convention (e.g., `CreateDistributionRequestTypeDef`).","message":"TypeDef names for method arguments (e.g., `CreateDistributionRequestRequestTypeDef`) were shortened, and conflicting TypeDef `Extra` postfixes were reordered. This might break direct imports or references to these specific TypeDefs.","severity":"breaking","affected_versions":"mypy-boto3-builder 8.9.0+"},{"fix":"Ensure `boto3` is included in your project's `install_requires` or `requirements.txt`.","message":"This package provides only type stubs; it does not include `boto3` itself. `boto3` must be installed separately for your application to function at runtime.","severity":"gotcha","affected_versions":"All"},{"fix":"Consult the `mypy-boto3-builder` release notes for other services you use to stay informed about potential renames or deprecations.","message":"While not directly affecting `verifiedpermissions`, the `sms-voice` service stub was removed and replaced by `pinpoint-sms-voice` (as of builder v8.11.0). Be aware that other AWS service names or structures might change in future `mypy-boto3-builder` updates.","severity":"deprecated","affected_versions":"mypy-boto3-builder 8.11.0+"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}