Skip to content

Type definitions#

Index > Inspector2 > Type definitions

Auto-generated documentation for Inspector2 type annotations stubs module mypy-boto3-inspector2.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

SeverityCountsTypeDef#

# SeverityCountsTypeDef definition

class SeverityCountsTypeDef(TypedDict):
    all: NotRequired[int],
    critical: NotRequired[int],
    high: NotRequired[int],
    medium: NotRequired[int],

AccountAggregationTypeDef#

# AccountAggregationTypeDef definition

class AccountAggregationTypeDef(TypedDict):
    findingType: NotRequired[AggregationFindingTypeType],  # (1)
    resourceType: NotRequired[AggregationResourceTypeType],  # (2)
    sortBy: NotRequired[AccountSortByType],  # (3)
    sortOrder: NotRequired[SortOrderType],  # (4)
  1. See AggregationFindingTypeType
  2. See AggregationResourceTypeType
  3. See AccountSortByType
  4. See SortOrderType

StateTypeDef#

# StateTypeDef definition

class StateTypeDef(TypedDict):
    errorCode: ErrorCodeType,  # (1)
    errorMessage: str,
    status: StatusType,  # (2)
  1. See ErrorCodeType
  2. See StatusType

ResourceStatusTypeDef#

# ResourceStatusTypeDef definition

class ResourceStatusTypeDef(TypedDict):
    ec2: StatusType,  # (1)
    ecr: StatusType,  # (1)
    lambda: NotRequired[StatusType],  # (1)
    lambdaCode: NotRequired[StatusType],  # (1)
  1. See StatusType
  2. See StatusType
  3. See StatusType
  4. See StatusType

FindingTypeAggregationTypeDef#

# FindingTypeAggregationTypeDef definition

class FindingTypeAggregationTypeDef(TypedDict):
    findingType: NotRequired[AggregationFindingTypeType],  # (1)
    resourceType: NotRequired[AggregationResourceTypeType],  # (2)
    sortBy: NotRequired[FindingTypeSortByType],  # (3)
    sortOrder: NotRequired[SortOrderType],  # (4)
  1. See AggregationFindingTypeType
  2. See AggregationResourceTypeType
  3. See FindingTypeSortByType
  4. See SortOrderType

StringFilterTypeDef#

# StringFilterTypeDef definition

class StringFilterTypeDef(TypedDict):
    comparison: StringComparisonType,  # (1)
    value: str,
  1. See StringComparisonType

AssociateMemberRequestRequestTypeDef#

# AssociateMemberRequestRequestTypeDef definition

class AssociateMemberRequestRequestTypeDef(TypedDict):
    accountId: str,

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

AtigDataTypeDef#