Skip to content

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.

Client method usage example#

# AuditManagerClient usage example

from boto3.session import Session


session = Session()

client = session.client("auditmanager")  # (1)
result = client.batch_associate_assessment_report_evidence()  # (2)
  1. client: AuditManagerClient
  2. result: BatchAssociateAssessmentReportEvidenceResponseTypeDef

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.

Client method usage example#

# 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 BatchAssociateAssessmentReportEvidenceRequestTypeDef


session = Session()

client: AuditManagerClient = session.client("auditmanager")

kwargs: BatchAssociateAssessmentReportEvidenceRequestTypeDef = {...}
result: BatchAssociateAssessmentReportEvidenceResponseTypeDef = client.batch_associate_assessment_report_evidence(**kwargs)