Examples#
Index > SecurityIncidentResponse > Examples
Auto-generated documentation for SecurityIncidentResponse type annotations stubs module types-boto3-security-ir.
Client#
Implicit type annotations#
Can be used with types-boto3[security-ir]
package installed.
Write your SecurityIncidentResponse
code as usual,
type checking and code completion should work out of the box.
Client method usage example#
# SecurityIncidentResponseClient usage example
from boto3.session import Session
session = Session()
client = session.client("security-ir") # (1)
result = client.batch_get_member_account_details() # (2)
Paginator usage example#
# ListCaseEditsPaginator usage example
from boto3.session import Session
session = Session()
client = session.client("security-ir") # (1)
paginator = client.get_paginator("list_case_edits") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: SecurityIncidentResponseClient
- paginator: ListCaseEditsPaginator
- item: ListCaseEditsResponseTypeDef
Explicit type annotations#
With types-boto3-lite[security-ir]
or a standalone types_boto3_security_ir
package, you have to explicitly specify client: SecurityIncidentResponseClient
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#
# SecurityIncidentResponseClient usage example with type annotations
from boto3.session import Session
from types_boto3_security_ir.client import SecurityIncidentResponseClient
from types_boto3_security_ir.type_defs import BatchGetMemberAccountDetailsResponseTypeDef
from types_boto3_security_ir.type_defs import BatchGetMemberAccountDetailsRequestTypeDef
session = Session()
client: SecurityIncidentResponseClient = session.client("security-ir")
kwargs: BatchGetMemberAccountDetailsRequestTypeDef = {...}
result: BatchGetMemberAccountDetailsResponseTypeDef = client.batch_get_member_account_details(**kwargs)
Paginator usage example#
# ListCaseEditsPaginator usage example with type annotations
from boto3.session import Session
from types_boto3_security_ir.client import SecurityIncidentResponseClient
from types_boto3_security_ir.paginator import ListCaseEditsPaginator
from types_boto3_security_ir.type_defs import ListCaseEditsResponseTypeDef
session = Session()
client: SecurityIncidentResponseClient = session.client("security-ir")
paginator: ListCaseEditsPaginator = client.get_paginator("list_case_edits")
for item in paginator.paginate(...):
item: ListCaseEditsResponseTypeDef
print(item)