Skip to content

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.

# SecurityIncidentResponseClient usage example

from boto3.session import Session


session = Session()

client = session.client("security-ir")  # (1)
result = client.batch_get_member_account_details()  # (2)
  1. client: SecurityIncidentResponseClient
  2. result: BatchGetMemberAccountDetailsResponseTypeDef
# 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)
  1. client: SecurityIncidentResponseClient
  2. paginator: ListCaseEditsPaginator
  3. 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.

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


session = Session()

client: SecurityIncidentResponseClient = session.client("security-ir")

kwargs: BatchGetMemberAccountDetailsRequestRequestTypeDef = {...}
result: BatchGetMemberAccountDetailsResponseTypeDef = client.batch_get_member_account_details(**kwargs)
# 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)