Skip to content

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-aiobotocore[auditmanager] package installed.

Write your AuditManager code as usual, type checking and code completion should work out of the box.

# AuditManagerClient usage example

from aiobotocore.session import get_session


session = get_session()

async with session.create_client("auditmanager") as client:  # (1)
    result = await client.batch_associate_assessment_report_evidence()  # (2)
  1. client: AuditManagerClient
  2. result: BatchAssociateAssessmentReportEvidenceResponseTypeDef

Explicit type annotations#

With types-aiobotocore-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.

# AuditManagerClient usage example with type annotations

from aiobotocore.session import get_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 = get_session()

async with session.create_client("auditmanager") as client:
    client: AuditManagerClient
    kwargs: BatchAssociateAssessmentReportEvidenceRequestRequestTypeDef = {...}
    result: BatchAssociateAssessmentReportEvidenceResponseTypeDef = await client.batch_associate_assessment_report_evidence(**kwargs)