Type annotations for boto3.ACMPCA 1.13.26 service, generated by mypy-boto3-buider 2.0.3
Project description
mypy-boto3-acm-pca
Type annotations for boto3.ACMPCA 1.13.26 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.3.
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 ACMPCA
service.
python -m pip install boto3-stubs[acm-pca]
# update installed packages index for automated type discovery
python -m mypy_boto3
Use boto3
with mypy_boto3_acm_pca
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_acm_pca import ACMPCAClient
# Now mypy can check if your code is valid.
client: ACMPCAClient = boto3.client("acm-pca")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: ACMPCAClient = session.client("acm-pca")
# Waiters are also supported
import mypy_boto3_acm_pca.waiter as acm_pca_waiters
audit_report_created_waiter: acm_pca_waiters.AuditReportCreatedWaiter = client.get_waiter("audit_report_created")
certificate_authority_csr_created_waiter: acm_pca_waiters.CertificateAuthorityCSRCreatedWaiter = client.get_waiter("certificate_authority_csr_created")
certificate_issued_waiter: acm_pca_waiters.CertificateIssuedWaiter = client.get_waiter("certificate_issued")
# Annotated paginators are included as well
import mypy_boto3_acm_pca.paginator as acm_pca_paginators
list_certificate_authorities_paginator: acm_pca_paginators.ListCertificateAuthoritiesPaginator = client.get_paginator("list_certificate_authorities")
list_permissions_paginator: acm_pca_paginators.ListPermissionsPaginator = client.get_paginator("list_permissions")
list_tags_paginator: acm_pca_paginators.ListTagsPaginator = client.get_paginator("list_tags")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_acm_pca
and other installed services.
# Run this command when you add or remove service packages
python -m mypy_boto3
Generated index provides overloads for boto3.client
and boto3.service
,
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 carefullyVSCode
does not currently support function overloads
Also, generated index allows you to import types from mypy_boto3
:
# you can replace imports
import mypy_boto3_acm_pca as acm_pca
from mypy_boto3_acm_pca import ACMPCAClient
# with these
from mypy_boto3 import acm_pca
from mypy_boto3.acm_pca import ACMPCAClient
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-acm-pca-1.13.26.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | abeb06452a42fc091606aca886070d37092a62c314bfe8ec3de1adfff93673f2 |
|
MD5 | a5a22f4dcd078fad1983075e1cfd92d3 |
|
BLAKE2b-256 | 8919c833e007339750f17be804fa08563775c35fe64ef1f3e425f3b1b6c6c125 |
Hashes for mypy_boto3_acm_pca-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bcb23bbce38d7e9f1734772ea4e420aaf6603752f510ae8f28863c208b06d4b |
|
MD5 | 8ea8beb170ed2d840dbb7b46fc58835b |
|
BLAKE2b-256 | 5e262980469f80df78e165e88daed93a43ce7347b6d6f7b4d80eea2d9f6888a4 |