Type annotations for boto3.AccessAnalyzer 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-accessanalyzer
Type annotations for boto3.AccessAnalyzer 1.13.26 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.4.
More information can be found on boto3-stubs page.
How to use
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for AccessAnalyzer
service.
python -m pip install boto3-stubs[accessanalyzer]
Use boto3
with mypy_boto3_accessanalyzer
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_accessanalyzer import AccessAnalyzerClient
# Now mypy can check if your code is valid.
client: AccessAnalyzerClient = boto3.client("accessanalyzer")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: AccessAnalyzerClient = session.client("accessanalyzer")
# Annotated paginators are included as well
import mypy_boto3_accessanalyzer.paginator as accessanalyzer_paginators
list_analyzed_resources_paginator: accessanalyzer_paginators.ListAnalyzedResourcesPaginator = client.get_paginator("list_analyzed_resources")
list_analyzers_paginator: accessanalyzer_paginators.ListAnalyzersPaginator = client.get_paginator("list_analyzers")
list_archive_rules_paginator: accessanalyzer_paginators.ListArchiveRulesPaginator = client.get_paginator("list_archive_rules")
list_findings_paginator: accessanalyzer_paginators.ListFindingsPaginator = client.get_paginator("list_findings")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_accessanalyzer
and other installed services.
# Run this command after you add or remove service packages
python -m mypy_boto3
Generated type annotations provide overloads for boto3.client
and boto3.resource
,
boto3.Session.client
and boto3.Session.resource
functions,
so explicit type annotations are not needed.
mypy
supports function overloads as expectedPyCharm
also supports function overloads, but consumes a lot of RAM, use carefully if you have many services installedVSCode
does not currently support function overloads, use explicit type annotations
import boto3
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("accessanalyzer")
session_client = boto3.Session().client("accessanalyzer")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mypy-boto3-accessanalyzer-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 329d0d3b9bbad9a842b4ec9c4394ed8878734eb973cc90045f9698d769aab8b8 |
|
MD5 | 42084129a42aee856aea857bce67580d |
|
BLAKE2b-256 | 64cc05e314f3bb85bc3191d46ceb4907e640f50456f5948b41e7c06a228d60df |
Hashes for mypy_boto3_accessanalyzer-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ec0255fabfd467bd21e1e1090f330cb2ce373ee60131e690a562142eff62923 |
|
MD5 | dc93cfccbc302abe7dd05fd8ca50bfed |
|
BLAKE2b-256 | ea441b6103e6fa203fd93d8313ed8347840f8bc1f9228c5ab3e131c61e1c2796 |