mypy-boto3-verifiedpermissions type stubs

1.42.73 · active · verified Sat Apr 11

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.

Warnings

Install

Imports

Quickstart

Demonstrates how to initialize a `boto3` client for AWS Verified Permissions and apply the type hint provided by `mypy-boto3-verifiedpermissions`.

import boto3
from mypy_boto3_verifiedpermissions import VerifiedPermissionsClient

# Ensure boto3 is configured, e.g., via AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, etc.
# or an AWS credentials file.
# For a runnable example, we'll use a dummy client call that won't require real auth if the service is not used.

client: VerifiedPermissionsClient = boto3.client("verifiedpermissions")

try:
    # Example: Listing policy stores. This call requires actual AWS credentials and permissions.
    response = client.list_policy_stores()
    print(f"Successfully listed policy stores: {response.get('PolicyStores', [])}")
except Exception as e:
    print(f"Could not list policy stores (this is expected without proper AWS configuration or permissions): {e}")

view raw JSON →