Examples#
Auto-generated documentation for ACMPCA type annotations stubs module mypy-boto3-acm-pca.
Client#
Implicit type annotations#
Can be used with boto3-stubs[acm-pca]
package installed.
Write your ACMPCA
code as usual,
type checking and code completion should work out of the box.
# ACMPCAClient usage example
from boto3.session import Session
session = Session()
client = session.client("acm-pca") # (1)
result = client.create_certificate_authority() # (2)
- client: ACMPCAClient
- result: CreateCertificateAuthorityResponseTypeDef
# ListCertificateAuthoritiesPaginator usage example
from boto3.session import Session
session = Session()
client = session.client("acm-pca") # (1)
paginator = client.get_paginator("list_certificate_authorities") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: ACMPCAClient
- paginator: ListCertificateAuthoritiesPaginator
- item: ListCertificateAuthoritiesResponseTypeDef
# AuditReportCreatedWaiter usage example
from boto3.session import Session
session = Session()
client = session.client("acm-pca") # (1)
waiter = client.get_waiter("audit_report_created") # (2)
waiter.wait()
- client: ACMPCAClient
- waiter: AuditReportCreatedWaiter
Explicit type annotations#
With boto3-stubs-lite[acm-pca]
or a standalone mypy_boto3_acm_pca
package, you have to explicitly specify client: ACMPCAClient
type annotation.
All other type annotations are optional, as types should be discovere