Registry / type-stubs / mypy-boto3-security-ir

mypy-boto3-security-ir

JSON →
library1.43.0pypypi✓ verified 22d ago

This library provides type annotations (stubs) for the `boto3` AWS Security Incident Response service client. It enhances development experience by enabling static type checking with tools like MyPy, catching potential errors early. Currently at version 1.42.3, this package is part of the `mypy-boto3` ecosystem, which generates new versions frequently to keep up with AWS service updates and `boto3` releases.

pip install boto3 mypy-boto3-security-ir
INSTALL
IMPORT
SIG · MYPY-BOTO3-SECURIT
M
mypy-boto3-security-ir
type-stubspythonv1.43.0
Install
3.8s avg
Import
585ms
Disk
50MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.608s · 51.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.8s · import 0.562s · 52MB
50MB installed
● package 50MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SecurityIncidentResponseClient
from mypy_boto3_security_ir.client import SecurityIncidentResponseClient
from mypy_boto3_security_ir import SecurityIncidentResponseClient
Client types are nested under the 'client' submodule.
SecurityIncidentResponseServiceName
from mypy_boto3_security_ir.type_defs import SecurityIncidentResponseServiceName
import mypy_boto3_security_ir.type_defs
Service names and TypeDefs are commonly imported directly from their respective submodules for clarity and type hinting.
ListIncidentRecordsOutputTypeDef
from mypy_boto3_security_ir.type_defs import ListIncidentRecordsOutputTypeDef
from mypy_boto3_security_ir.client import ListIncidentRecordsOutputTypeDef
Request and response TypeDefs reside in the 'type_defs' submodule, not 'client'.

This quickstart demonstrates how to initialize a `boto3` client for AWS Security Incident Response and type-hint it using `mypy-boto3-security-ir`. It then calls `list_incident_records` with its return type hinted. For actual usage, ensure valid AWS credentials and region are configured.

import boto3 from mypy_boto3_security_ir.client import SecurityIncidentResponseClient from mypy_boto3_security_ir.type_defs import ListIncidentRecordsOutputTypeDef import os # Ensure boto3 is configured, e.g., via environment variables or ~/.aws/credentials # For demonstration, we'll use a dummy client, but in real-world, provide credentials. # Boto3 client initialization with type hint client: SecurityIncidentResponseClient = boto3.client( "security-incident-response", region_name=os.environ.get('AWS_REGION', 'us-east-1'), aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID', 'dummy'), aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY', 'dummy'), ) # Call a method and type hint its output try: response: ListIncidentRecordsOutputTypeDef = client.list_incident_records() print("Successfully listed incident records (or empty list if none):", response.get('incidentRecords')) except Exception as e: print(f"An error occurred: {e}") print("Please ensure your AWS credentials and region are correctly configured and you have permissions.")
Debug
Known issues
breakingPython 3.8 support has been removed since `mypy-boto3-builder` version 8.12.0. All generated stubs, including `mypy-boto3-security-ir`, now require Python 3.9 or newer.
fix
Upgrade your Python environment to 3.9 or higher. If you need Python 3.8 support, pin `mypy-boto3-builder` to an earlier version (e.g., `<8.12.0`) and regenerate/use older stub versions if available.
affects: >=8.12.0 of mypy-boto3-builder (corresponds to mypy-boto3-security-ir ~1.42.0)
breakingAll `mypy-boto3` packages migrated to PEP 561 packaging (namespace packages) in `mypy-boto3-builder` 8.12.0. This change affects how MyPy might locate packages, especially in complex project structures.
fix
Ensure your `sys.path` and MyPy configuration (`mypy.ini` or `pyproject.toml`) correctly resolve namespace packages. Typically, installing via pip handles this, but custom setups might need adjustment. Verify MyPy can find the stubs by running it after the update.
affects: >=8.12.0 of mypy-boto3-builder (corresponds to mypy-boto3-security-ir ~1.42.0)
gotcha`mypy-boto3-security-ir` provides *only* type stubs. For runtime functionality, the `boto3` library itself must be installed alongside the stub package.
fix
Always install `boto3` in addition to `mypy-boto3-security-ir` using `pip install boto3 mypy-boto3-security-ir`.
affects: All versions
gotchaThe service name passed to `boto3.client()` must exactly match the expected string, which is `'security-incident-response'` for this service. Mismatches will result in runtime errors from `boto3` and potentially incorrect type hints if a different stub package is inadvertently used.
fix
Always use `boto3.client("security-incident-response")` when interacting with the Security Incident Response service.
affects: All versions
breakingTypeDef naming conventions changed in `mypy-boto3-builder` 8.9.0. Specifically, `RequestRequestTypeDef` was shortened to `RequestTypeDef`, and `ExtraRequestTypeDef` became `RequestExtraTypeDef`. If you directly import or refer to these generated TypeDef names, your code might break.
fix
Review your code for direct imports or references to generated TypeDef names and update them according to the new naming conventions. Consult the `mypy-boto3-security-ir` source for the exact TypeDef names.
affects: >=8.9.0 of mypy-boto3-builder (corresponds to mypy-boto3-security-ir ~1.39.0)
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredThis package provides type stubs for boto3, so boto3 must be installed to provide the runtime functionality.
Agent activity
14 hits · last 30 days
node
10
OpenAI (training)
2
Amazon
1
Resources
mypy-boto3-security-ir — pip install mypy-boto3-security-ir · libregistry