Skip to content

AccessAnalyzer module#

Index > AccessAnalyzer

Auto-generated documentation for AccessAnalyzer type annotations stubs module mypy-boto3-accessanalyzer.

How to install#

VSCode extension#

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and AccessAnalyzer.

From PyPI with pip#

Install boto3-stubs for AccessAnalyzer service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[accessanalyzer]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[accessanalyzer]'


# standalone installation
python -m pip install mypy-boto3-accessanalyzer

How to uninstall#

python -m pip uninstall -y mypy-boto3-accessanalyzer

Usage#

Code samples can be found in Examples.

AccessAnalyzerClient#

Type annotations and code completion for boto3.client("accessanalyzer") as AccessAnalyzerClient boto3 documentation

# AccessAnalyzerClient usage example

from boto3.session import Session

from mypy_boto3_accessanalyzer.client import AccessAnalyzerClient

def get_client() -> AccessAnalyzerClient:
    return Session().client("accessanalyzer")

Paginators#

Type annotations and code completion for paginators from boto3.client("accessanalyzer").get_paginator("...").

# GetFindingV2Paginator usage example

from boto3.session import Session

from mypy_boto3_accessanalyzer.paginator import GetFindingV2Paginator

def get_get_finding_v2_paginator() -> GetFindingV2Paginator:
    return Session().client("accessanalyzer").get_paginator("get_finding_v2"))

Literals#

Type annotations for literals used in methods and schema.

# AccessCheckPolicyTypeType usage example

from mypy_boto3_accessanalyzer.literals import AccessCheckPolicyTypeType

def get_value() -> AccessCheckPolicyTypeType:
    return "IDENTITY_POLICY"

Type definitions#

Type annotations for type definitions used in methods and schema.