Examples
Index > AuditManager > Examples
Auto-generated documentation for AuditManager type annotations stubs module types-aiobotocore-auditmanager.
Client
Implicit type annotations
Can be used with types-aioboto3[auditmanager]
package installed.
Write your AuditManager
code as usual,
type checking and code completion should work out of the box.
Explicit type annotations
With types-aioboto3-lite[auditmanager]
or a standalone types_aiobotocore_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.
Client usage example
from aioboto3.session import Session
from types_aiobotocore_auditmanager.client import AuditManagerClient
from types_aiobotocore_auditmanager.type_defs import BatchAssociateAssessmentReportEvidenceResponseTypeDef
from types_aiobotocore_auditmanager.type_defs import BatchAssociateAssessmentReportEvidenceRequestRequestTypeDef
session = Session()
client: AuditManagerClient
async with session.client("auditmanager") as client: # (1)
kwargs: BatchAssociateAssessmentReportEvidenceRequestRequestTypeDef = {...} # (2)
result: BatchAssociateAssessmentReportEvidenceResponseTypeDef = await client.batch_associate_assessment_report_evidence(**kwargs) # (3)