Examples#
Index > AuditManager > Examples
Auto-generated documentation for AuditManager type annotations stubs module types-boto3-auditmanager.
Client#
Implicit type annotations#
Can be used with types-boto3[auditmanager]
package installed.
Write your AuditManager
code as usual,
type checking and code completion should work out of the box.
# AuditManagerClient usage example
from boto3.session import Session
session = Session()
client = session.client("auditmanager") # (1)
result = client.batch_associate_assessment_report_evidence() # (2)
Explicit type annotations#
With types-boto3-lite[auditmanager]
or a standalone types_boto3_auditmanager
package, you have to explicitly specify client: AuditManagerClient
type annotation.
All other type annotations are optional, as types should be discovered automatically. However, these type annotations can be helpful in your functions and methods.
# AuditManagerClient usage example with type annotations
from boto3.session import Session
from types_boto3_auditmanager.client import AuditManagerClient
from types_boto3_auditmanager.type_defs import BatchAssociateAssessmentReportEvidenceResponseTypeDef
from types_boto3_auditmanager.type_defs import BatchAssociateAssessmentReportEvidenceRequestRequestTypeDef
session = Session()
client: AuditManagerClient = session.client("auditmanager")
kwargs: BatchAssociateAssessmentReportEvidenceRequestRequestTypeDef = {...}
result: BatchAssociateAssessmentReportEvidenceResponseTypeDef = client.batch_associate_assessment_report_evidence(**kwargs)