Skip to content

Typed dictionaries

Index > Inspector2 > Typed dictionaries

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

SeverityCountsTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import SeverityCountsTypeDef

def get_value() -> SeverityCountsTypeDef:
    return {
        "all": ...,
    }
Definition
class SeverityCountsTypeDef(TypedDict):
    all: NotRequired[int],
    critical: NotRequired[int],
    high: NotRequired[int],
    medium: NotRequired[int],

AccountAggregationTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import AccountAggregationTypeDef

def get_value() -> AccountAggregationTypeDef:
    return {
        "findingType": ...,
    }
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

Usage Example
from mypy_boto3_inspector2.type_defs import StateTypeDef

def get_value() -> StateTypeDef:
    return {
        "errorCode": ...,
        "errorMessage": ...,
        "status": ...,
    }
Definition
class StateTypeDef(TypedDict):
    errorCode: ErrorCodeType,  # (1)
    errorMessage: str,
    status: StatusType,  # (2)
  1. See ErrorCodeType
  2. See StatusType

ResourceStatusTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ResourceStatusTypeDef

def get_value() -> ResourceStatusTypeDef:
    return {
        "ec2": ...,
        "ecr": ...,
    }
Definition
class ResourceStatusTypeDef(TypedDict):
    ec2: StatusType,  # (1)
    ecr: StatusType,  # (1)
  1. See StatusType
  2. See StatusType

FindingTypeAggregationTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import FindingTypeAggregationTypeDef

def get_value() -> FindingTypeAggregationTypeDef:
    return {
        "findingType": ...,
    }
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

Usage Example
from mypy_boto3_inspector2.type_defs import StringFilterTypeDef

def get_value() -> StringFilterTypeDef:
    return {
        "comparison": ...,
        "value": ...,
    }
Definition
class StringFilterTypeDef(TypedDict):
    comparison: StringComparisonType,  # (1)
    value: str,
  1. See StringComparisonType

AssociateMemberRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import AssociateMemberRequestRequestTypeDef

def get_value() -> AssociateMemberRequestRequestTypeDef:
    return {
        "accountId": ...,
    }
Definition
class AssociateMemberRequestRequestTypeDef(TypedDict):
    accountId: str,

ResponseMetadataTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }
Definition
class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

AutoEnableTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import AutoEnableTypeDef

def get_value() -> AutoEnableTypeDef:
    return {
        "ec2": ...,
        "ecr": ...,
    }
Definition
class AutoEnableTypeDef(TypedDict):
    ec2: bool,
    ecr: bool,

AwsEc2InstanceDetailsTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import AwsEc2InstanceDetailsTypeDef

def get_value() -> AwsEc2InstanceDetailsTypeDef:
    return {
        "iamInstanceProfileArn": ...,
    }
Definition
class AwsEc2InstanceDetailsTypeDef(TypedDict):
    iamInstanceProfileArn: NotRequired[str],
    imageId: NotRequired[str],
    ipV4Addresses: NotRequired[List[str]],
    ipV6Addresses: NotRequired[List[str]],
    keyName: NotRequired[str],
    launchedAt: NotRequired[datetime],
    platform: NotRequired[str],
    subnetId: NotRequired[str],
    type: NotRequired[str],
    vpcId: NotRequired[str],

AwsEcrContainerImageDetailsTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import AwsEcrContainerImageDetailsTypeDef

def get_value() -> AwsEcrContainerImageDetailsTypeDef:
    return {
        "imageHash": ...,
        "registry": ...,
        "repositoryName": ...,
    }
Definition
class AwsEcrContainerImageDetailsTypeDef(TypedDict):
    imageHash: str,
    registry: str,
    repositoryName: str,
    architecture: NotRequired[str],
    author: NotRequired[str],
    imageTags: NotRequired[List[str]],
    platform: NotRequired[str],
    pushedAt: NotRequired[datetime],

BatchGetAccountStatusRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import BatchGetAccountStatusRequestRequestTypeDef

def get_value() -> BatchGetAccountStatusRequestRequestTypeDef:
    return {
        "accountIds": ...,
    }
Definition
class BatchGetAccountStatusRequestRequestTypeDef(TypedDict):
    accountIds: NotRequired[Sequence[str]],

BatchGetFreeTrialInfoRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import BatchGetFreeTrialInfoRequestRequestTypeDef

def get_value() -> BatchGetFreeTrialInfoRequestRequestTypeDef:
    return {
        "accountIds": ...,
    }
Definition
class BatchGetFreeTrialInfoRequestRequestTypeDef(TypedDict):
    accountIds: Sequence[str],

FreeTrialInfoErrorTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import FreeTrialInfoErrorTypeDef

def get_value() -> FreeTrialInfoErrorTypeDef:
    return {
        "accountId": ...,
        "code": ...,
        "message": ...,
    }
Definition
class FreeTrialInfoErrorTypeDef(TypedDict):
    accountId: str,
    code: FreeTrialInfoErrorCodeType,  # (1)
    message: str,
  1. See FreeTrialInfoErrorCodeType

CancelFindingsReportRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import CancelFindingsReportRequestRequestTypeDef

def get_value() -> CancelFindingsReportRequestRequestTypeDef:
    return {
        "reportId": ...,
    }
Definition
class CancelFindingsReportRequestRequestTypeDef(TypedDict):
    reportId: str,

CountsTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import CountsTypeDef

def get_value() -> CountsTypeDef:
    return {
        "count": ...,
    }
Definition
class CountsTypeDef(TypedDict):
    count: NotRequired[int],
    groupKey: NotRequired[GroupKeyType],  # (1)
  1. See GroupKeyType

CoverageMapFilterTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import CoverageMapFilterTypeDef

def get_value() -> CoverageMapFilterTypeDef:
    return {
        "comparison": ...,
        "key": ...,
    }
Definition
class CoverageMapFilterTypeDef(TypedDict):
    comparison: CoverageMapComparisonType,  # (1)
    key: str,
    value: NotRequired[str],
  1. See CoverageMapComparisonType

CoverageStringFilterTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import CoverageStringFilterTypeDef

def get_value() -> CoverageStringFilterTypeDef:
    return {
        "comparison": ...,
        "value": ...,
    }
Definition
class CoverageStringFilterTypeDef(TypedDict):
    comparison: CoverageStringComparisonType,  # (1)
    value: str,
  1. See CoverageStringComparisonType

ScanStatusTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ScanStatusTypeDef

def get_value() -> ScanStatusTypeDef:
    return {
        "reason": ...,
        "statusCode": ...,
    }
Definition
class ScanStatusTypeDef(TypedDict):
    reason: ScanStatusReasonType,  # (1)
    statusCode: ScanStatusCodeType,  # (2)
  1. See ScanStatusReasonType
  2. See ScanStatusCodeType

DestinationTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import DestinationTypeDef

def get_value() -> DestinationTypeDef:
    return {
        "bucketName": ...,
        "kmsKeyArn": ...,
    }
Definition
class DestinationTypeDef(TypedDict):
    bucketName: str,
    kmsKeyArn: str,
    keyPrefix: NotRequired[str],

CvssScoreAdjustmentTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import CvssScoreAdjustmentTypeDef

def get_value() -> CvssScoreAdjustmentTypeDef:
    return {
        "metric": ...,
        "reason": ...,
    }
Definition
class CvssScoreAdjustmentTypeDef(TypedDict):
    metric: str,
    reason: str,

CvssScoreTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import CvssScoreTypeDef

def get_value() -> CvssScoreTypeDef:
    return {
        "baseScore": ...,
        "scoringVector": ...,
        "source": ...,
        "version": ...,
    }
Definition
class CvssScoreTypeDef(TypedDict):
    baseScore: float,
    scoringVector: str,
    source: str,
    version: str,

DateFilterTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import DateFilterTypeDef

def get_value() -> DateFilterTypeDef:
    return {
        "endInclusive": ...,
    }
Definition
class DateFilterTypeDef(TypedDict):
    endInclusive: NotRequired[Union[datetime, str]],
    startInclusive: NotRequired[Union[datetime, str]],

DelegatedAdminAccountTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import DelegatedAdminAccountTypeDef

def get_value() -> DelegatedAdminAccountTypeDef:
    return {
        "accountId": ...,
    }
Definition
class DelegatedAdminAccountTypeDef(TypedDict):
    accountId: NotRequired[str],
    status: NotRequired[DelegatedAdminStatusType],  # (1)
  1. See DelegatedAdminStatusType

DelegatedAdminTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import DelegatedAdminTypeDef

def get_value() -> DelegatedAdminTypeDef:
    return {
        "accountId": ...,
    }
Definition
class DelegatedAdminTypeDef(TypedDict):
    accountId: NotRequired[str],
    relationshipStatus: NotRequired[RelationshipStatusType],  # (1)
  1. See RelationshipStatusType

DeleteFilterRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import DeleteFilterRequestRequestTypeDef

def get_value() -> DeleteFilterRequestRequestTypeDef:
    return {
        "arn": ...,
    }
Definition
class DeleteFilterRequestRequestTypeDef(TypedDict):
    arn: str,

DisableDelegatedAdminAccountRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import DisableDelegatedAdminAccountRequestRequestTypeDef

def get_value() -> DisableDelegatedAdminAccountRequestRequestTypeDef:
    return {
        "delegatedAdminAccountId": ...,
    }
Definition
class DisableDelegatedAdminAccountRequestRequestTypeDef(TypedDict):
    delegatedAdminAccountId: str,

DisableRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import DisableRequestRequestTypeDef

def get_value() -> DisableRequestRequestTypeDef:
    return {
        "accountIds": ...,
    }
Definition
class DisableRequestRequestTypeDef(TypedDict):
    accountIds: NotRequired[Sequence[str]],
    resourceTypes: NotRequired[Sequence[ResourceScanTypeType]],  # (1)
  1. See ResourceScanTypeType

DisassociateMemberRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import DisassociateMemberRequestRequestTypeDef

def get_value() -> DisassociateMemberRequestRequestTypeDef:
    return {
        "accountId": ...,
    }
Definition
class DisassociateMemberRequestRequestTypeDef(TypedDict):
    accountId: str,

MapFilterTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import MapFilterTypeDef

def get_value() -> MapFilterTypeDef:
    return {
        "comparison": ...,
        "key": ...,
    }
Definition
class MapFilterTypeDef(TypedDict):
    comparison: MapComparisonType,  # (1)
    key: str,
    value: NotRequired[str],
  1. See MapComparisonType

Ec2MetadataTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import Ec2MetadataTypeDef

def get_value() -> Ec2MetadataTypeDef:
    return {
        "amiId": ...,
    }
Definition
class Ec2MetadataTypeDef(TypedDict):
    amiId: NotRequired[str],
    platform: NotRequired[Ec2PlatformType],  # (1)
    tags: NotRequired[Dict[str, str]],
  1. See Ec2PlatformType

EcrRescanDurationStateTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import EcrRescanDurationStateTypeDef

def get_value() -> EcrRescanDurationStateTypeDef:
    return {
        "rescanDuration": ...,
    }
Definition
class EcrRescanDurationStateTypeDef(TypedDict):
    rescanDuration: NotRequired[EcrRescanDurationType],  # (1)
    status: NotRequired[EcrRescanDurationStatusType],  # (2)
    updatedAt: NotRequired[datetime],
  1. See EcrRescanDurationType
  2. See EcrRescanDurationStatusType

EcrConfigurationTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import EcrConfigurationTypeDef

def get_value() -> EcrConfigurationTypeDef:
    return {
        "rescanDuration": ...,
    }
Definition
class EcrConfigurationTypeDef(TypedDict):
    rescanDuration: EcrRescanDurationType,  # (1)
  1. See EcrRescanDurationType

EcrContainerImageMetadataTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import EcrContainerImageMetadataTypeDef

def get_value() -> EcrContainerImageMetadataTypeDef:
    return {
        "tags": ...,
    }
Definition
class EcrContainerImageMetadataTypeDef(TypedDict):
    tags: NotRequired[List[str]],

EcrRepositoryMetadataTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import EcrRepositoryMetadataTypeDef

def get_value() -> EcrRepositoryMetadataTypeDef:
    return {
        "name": ...,
    }
Definition
class EcrRepositoryMetadataTypeDef(TypedDict):
    name: NotRequired[str],
    scanFrequency: NotRequired[EcrScanFrequencyType],  # (1)
  1. See EcrScanFrequencyType

EnableDelegatedAdminAccountRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import EnableDelegatedAdminAccountRequestRequestTypeDef

def get_value() -> EnableDelegatedAdminAccountRequestRequestTypeDef:
    return {
        "delegatedAdminAccountId": ...,
    }
Definition
class EnableDelegatedAdminAccountRequestRequestTypeDef(TypedDict):
    delegatedAdminAccountId: str,
    clientToken: NotRequired[str],

EnableRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import EnableRequestRequestTypeDef

def get_value() -> EnableRequestRequestTypeDef:
    return {
        "resourceTypes": ...,
    }
Definition
class EnableRequestRequestTypeDef(TypedDict):
    resourceTypes: Sequence[ResourceScanTypeType],  # (1)
    accountIds: NotRequired[Sequence[str]],
    clientToken: NotRequired[str],
  1. See ResourceScanTypeType

NumberFilterTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import NumberFilterTypeDef

def get_value() -> NumberFilterTypeDef:
    return {
        "lowerInclusive": ...,
    }
Definition
class NumberFilterTypeDef(TypedDict):
    lowerInclusive: NotRequired[float],
    upperInclusive: NotRequired[float],

PortRangeFilterTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import PortRangeFilterTypeDef

def get_value() -> PortRangeFilterTypeDef:
    return {
        "beginInclusive": ...,
    }
Definition
class PortRangeFilterTypeDef(TypedDict):
    beginInclusive: NotRequired[int],
    endInclusive: NotRequired[int],

FreeTrialInfoTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import FreeTrialInfoTypeDef

def get_value() -> FreeTrialInfoTypeDef:
    return {
        "end": ...,
        "start": ...,
        "status": ...,
        "type": ...,
    }
Definition
class FreeTrialInfoTypeDef(TypedDict):
    end: datetime,
    start: datetime,
    status: FreeTrialStatusType,  # (1)
    type: FreeTrialTypeType,  # (2)
  1. See FreeTrialStatusType
  2. See FreeTrialTypeType

GetFindingsReportStatusRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import GetFindingsReportStatusRequestRequestTypeDef

def get_value() -> GetFindingsReportStatusRequestRequestTypeDef:
    return {
        "reportId": ...,
    }
Definition
class GetFindingsReportStatusRequestRequestTypeDef(TypedDict):
    reportId: NotRequired[str],

GetMemberRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import GetMemberRequestRequestTypeDef

def get_value() -> GetMemberRequestRequestTypeDef:
    return {
        "accountId": ...,
    }
Definition
class GetMemberRequestRequestTypeDef(TypedDict):
    accountId: str,

MemberTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import MemberTypeDef

def get_value() -> MemberTypeDef:
    return {
        "accountId": ...,
    }
Definition
class MemberTypeDef(TypedDict):
    accountId: NotRequired[str],
    delegatedAdminAccountId: NotRequired[str],
    relationshipStatus: NotRequired[RelationshipStatusType],  # (1)
    updatedAt: NotRequired[datetime],
  1. See RelationshipStatusType

PaginatorConfigTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import PaginatorConfigTypeDef

def get_value() -> PaginatorConfigTypeDef:
    return {
        "MaxItems": ...,
    }
Definition
class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

ListAccountPermissionsRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListAccountPermissionsRequestRequestTypeDef

def get_value() -> ListAccountPermissionsRequestRequestTypeDef:
    return {
        "maxResults": ...,
    }
Definition
class ListAccountPermissionsRequestRequestTypeDef(TypedDict):
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],
    service: NotRequired[ServiceType],  # (1)
  1. See ServiceType

PermissionTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import PermissionTypeDef

def get_value() -> PermissionTypeDef:
    return {
        "operation": ...,
        "service": ...,
    }
Definition
class PermissionTypeDef(TypedDict):
    operation: OperationType,  # (1)
    service: ServiceType,  # (2)
  1. See OperationType
  2. See ServiceType

ListDelegatedAdminAccountsRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListDelegatedAdminAccountsRequestRequestTypeDef

def get_value() -> ListDelegatedAdminAccountsRequestRequestTypeDef:
    return {
        "maxResults": ...,
    }
Definition
class ListDelegatedAdminAccountsRequestRequestTypeDef(TypedDict):
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],

ListFiltersRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListFiltersRequestRequestTypeDef

def get_value() -> ListFiltersRequestRequestTypeDef:
    return {
        "action": ...,
    }
Definition
class ListFiltersRequestRequestTypeDef(TypedDict):
    action: NotRequired[FilterActionType],  # (1)
    arns: NotRequired[Sequence[str]],
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],
  1. See FilterActionType

SortCriteriaTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import SortCriteriaTypeDef

def get_value() -> SortCriteriaTypeDef:
    return {
        "field": ...,
        "sortOrder": ...,
    }
Definition
class SortCriteriaTypeDef(TypedDict):
    field: SortFieldType,  # (1)
    sortOrder: SortOrderType,  # (2)
  1. See SortFieldType
  2. See SortOrderType

ListMembersRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListMembersRequestRequestTypeDef

def get_value() -> ListMembersRequestRequestTypeDef:
    return {
        "maxResults": ...,
    }
Definition
class ListMembersRequestRequestTypeDef(TypedDict):
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],
    onlyAssociated: NotRequired[bool],

ListTagsForResourceRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListTagsForResourceRequestRequestTypeDef

def get_value() -> ListTagsForResourceRequestRequestTypeDef:
    return {
        "resourceArn": ...,
    }
Definition
class ListTagsForResourceRequestRequestTypeDef(TypedDict):
    resourceArn: str,

ListUsageTotalsRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListUsageTotalsRequestRequestTypeDef

def get_value() -> ListUsageTotalsRequestRequestTypeDef:
    return {
        "accountIds": ...,
    }
Definition
class ListUsageTotalsRequestRequestTypeDef(TypedDict):
    accountIds: NotRequired[Sequence[str]],
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],

StepTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import StepTypeDef

def get_value() -> StepTypeDef:
    return {
        "componentId": ...,
        "componentType": ...,
    }
Definition
class StepTypeDef(TypedDict):
    componentId: str,
    componentType: str,

PortRangeTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import PortRangeTypeDef

def get_value() -> PortRangeTypeDef:
    return {
        "begin": ...,
        "end": ...,
    }
Definition
class PortRangeTypeDef(TypedDict):
    begin: int,
    end: int,

VulnerablePackageTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import VulnerablePackageTypeDef

def get_value() -> VulnerablePackageTypeDef:
    return {
        "name": ...,
        "version": ...,
    }
Definition
class VulnerablePackageTypeDef(TypedDict):
    name: str,
    version: str,
    arch: NotRequired[str],
    epoch: NotRequired[int],
    filePath: NotRequired[str],
    fixedInVersion: NotRequired[str],
    packageManager: NotRequired[PackageManagerType],  # (1)
    release: NotRequired[str],
    remediation: NotRequired[str],
    sourceLayerHash: NotRequired[str],
  1. See PackageManagerType

RecommendationTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import RecommendationTypeDef

def get_value() -> RecommendationTypeDef:
    return {
        "Url": ...,
    }
Definition
class RecommendationTypeDef(TypedDict):
    Url: NotRequired[str],
    text: NotRequired[str],

TagResourceRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import TagResourceRequestRequestTypeDef

def get_value() -> TagResourceRequestRequestTypeDef:
    return {
        "resourceArn": ...,
        "tags": ...,
    }
Definition
class TagResourceRequestRequestTypeDef(TypedDict):
    resourceArn: str,
    tags: Mapping[str, str],

UntagResourceRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import UntagResourceRequestRequestTypeDef

def get_value() -> UntagResourceRequestRequestTypeDef:
    return {
        "resourceArn": ...,
        "tagKeys": ...,
    }
Definition
class UntagResourceRequestRequestTypeDef(TypedDict):
    resourceArn: str,
    tagKeys: Sequence[str],

UsageTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import UsageTypeDef

def get_value() -> UsageTypeDef:
    return {
        "currency": ...,
    }
Definition
class UsageTypeDef(TypedDict):
    currency: NotRequired[CurrencyType],  # (1)
    estimatedMonthlyCost: NotRequired[float],
    total: NotRequired[float],
    type: NotRequired[UsageTypeType],  # (2)
  1. See CurrencyType
  2. See UsageTypeType

AccountAggregationResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import AccountAggregationResponseTypeDef

def get_value() -> AccountAggregationResponseTypeDef:
    return {
        "accountId": ...,
    }
Definition
class AccountAggregationResponseTypeDef(TypedDict):
    accountId: NotRequired[str],
    severityCounts: NotRequired[SeverityCountsTypeDef],  # (1)
  1. See SeverityCountsTypeDef

AmiAggregationResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import AmiAggregationResponseTypeDef

def get_value() -> AmiAggregationResponseTypeDef:
    return {
        "ami": ...,
    }
Definition
class AmiAggregationResponseTypeDef(TypedDict):
    ami: str,
    accountId: NotRequired[str],
    affectedInstances: NotRequired[int],
    severityCounts: NotRequired[SeverityCountsTypeDef],  # (1)
  1. See SeverityCountsTypeDef

AwsEcrContainerAggregationResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import AwsEcrContainerAggregationResponseTypeDef

def get_value() -> AwsEcrContainerAggregationResponseTypeDef:
    return {
        "resourceId": ...,
    }
Definition
class AwsEcrContainerAggregationResponseTypeDef(TypedDict):
    resourceId: str,
    accountId: NotRequired[str],
    architecture: NotRequired[str],
    imageSha: NotRequired[str],
    imageTags: NotRequired[List[str]],
    repository: NotRequired[str],
    severityCounts: NotRequired[SeverityCountsTypeDef],  # (1)
  1. See SeverityCountsTypeDef

Ec2InstanceAggregationResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import Ec2InstanceAggregationResponseTypeDef

def get_value() -> Ec2InstanceAggregationResponseTypeDef:
    return {
        "instanceId": ...,
    }
Definition
class Ec2InstanceAggregationResponseTypeDef(TypedDict):
    instanceId: str,
    accountId: NotRequired[str],
    ami: NotRequired[str],
    instanceTags: NotRequired[Dict[str, str]],
    networkFindings: NotRequired[int],
    operatingSystem: NotRequired[str],
    severityCounts: NotRequired[SeverityCountsTypeDef],  # (1)
  1. See SeverityCountsTypeDef

FindingTypeAggregationResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import FindingTypeAggregationResponseTypeDef

def get_value() -> FindingTypeAggregationResponseTypeDef:
    return {
        "accountId": ...,
    }
Definition
class FindingTypeAggregationResponseTypeDef(TypedDict):
    accountId: NotRequired[str],
    severityCounts: NotRequired[SeverityCountsTypeDef],  # (1)
  1. See SeverityCountsTypeDef

ImageLayerAggregationResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ImageLayerAggregationResponseTypeDef

def get_value() -> ImageLayerAggregationResponseTypeDef:
    return {
        "accountId": ...,
        "layerHash": ...,
        "repository": ...,
        "resourceId": ...,
    }
Definition
class ImageLayerAggregationResponseTypeDef(TypedDict):
    accountId: str,
    layerHash: str,
    repository: str,
    resourceId: str,
    severityCounts: NotRequired[SeverityCountsTypeDef],  # (1)
  1. See SeverityCountsTypeDef

PackageAggregationResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import PackageAggregationResponseTypeDef

def get_value() -> PackageAggregationResponseTypeDef:
    return {
        "packageName": ...,
    }
Definition
class PackageAggregationResponseTypeDef(TypedDict):
    packageName: str,
    accountId: NotRequired[str],
    severityCounts: NotRequired[SeverityCountsTypeDef],  # (1)
  1. See SeverityCountsTypeDef

RepositoryAggregationResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import RepositoryAggregationResponseTypeDef

def get_value() -> RepositoryAggregationResponseTypeDef:
    return {
        "repository": ...,
    }
Definition
class RepositoryAggregationResponseTypeDef(TypedDict):
    repository: str,
    accountId: NotRequired[str],
    affectedImages: NotRequired[int],
    severityCounts: NotRequired[SeverityCountsTypeDef],  # (1)
  1. See SeverityCountsTypeDef

TitleAggregationResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import TitleAggregationResponseTypeDef

def get_value() -> TitleAggregationResponseTypeDef:
    return {
        "title": ...,
    }
Definition
class TitleAggregationResponseTypeDef(TypedDict):
    title: str,
    accountId: NotRequired[str],
    severityCounts: NotRequired[SeverityCountsTypeDef],  # (1)
    vulnerabilityId: NotRequired[str],
  1. See SeverityCountsTypeDef

ResourceStateTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ResourceStateTypeDef

def get_value() -> ResourceStateTypeDef:
    return {
        "ec2": ...,
        "ecr": ...,
    }
Definition
class ResourceStateTypeDef(TypedDict):
    ec2: StateTypeDef,  # (1)
    ecr: StateTypeDef,  # (1)
  1. See StateTypeDef
  2. See StateTypeDef

AccountTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import AccountTypeDef

def get_value() -> AccountTypeDef:
    return {
        "accountId": ...,
        "resourceStatus": ...,
        "status": ...,
    }
Definition
class AccountTypeDef(TypedDict):
    accountId: str,
    resourceStatus: ResourceStatusTypeDef,  # (1)
    status: StatusType,  # (2)
  1. See ResourceStatusTypeDef
  2. See StatusType

FailedAccountTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import FailedAccountTypeDef

def get_value() -> FailedAccountTypeDef:
    return {
        "accountId": ...,
        "errorCode": ...,
        "errorMessage": ...,
    }
Definition
class FailedAccountTypeDef(TypedDict):
    accountId: str,
    errorCode: ErrorCodeType,  # (1)
    errorMessage: str,
    resourceStatus: NotRequired[ResourceStatusTypeDef],  # (2)
    status: NotRequired[StatusType],  # (3)
  1. See ErrorCodeType
  2. See ResourceStatusTypeDef
  3. See StatusType

AmiAggregationTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import AmiAggregationTypeDef

def get_value() -> AmiAggregationTypeDef:
    return {
        "amis": ...,
    }
Definition
class AmiAggregationTypeDef(TypedDict):
    amis: NotRequired[Sequence[StringFilterTypeDef]],  # (1)
    sortBy: NotRequired[AmiSortByType],  # (2)
    sortOrder: NotRequired[SortOrderType],  # (3)
  1. See StringFilterTypeDef
  2. See AmiSortByType
  3. See SortOrderType

AwsEcrContainerAggregationTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import AwsEcrContainerAggregationTypeDef

def get_value() -> AwsEcrContainerAggregationTypeDef:
    return {
        "architectures": ...,
    }
Definition
class AwsEcrContainerAggregationTypeDef(TypedDict):
    architectures: NotRequired[Sequence[StringFilterTypeDef]],  # (1)
    imageShas: NotRequired[Sequence[StringFilterTypeDef]],  # (1)
    imageTags: NotRequired[Sequence[StringFilterTypeDef]],  # (1)
    repositories: NotRequired[Sequence[StringFilterTypeDef]],  # (1)
    resourceIds: NotRequired[Sequence[StringFilterTypeDef]],  # (1)
    sortBy: NotRequired[AwsEcrContainerSortByType],  # (6)
    sortOrder: NotRequired[SortOrderType],  # (7)
  1. See StringFilterTypeDef
  2. See StringFilterTypeDef
  3. See StringFilterTypeDef
  4. See StringFilterTypeDef
  5. See StringFilterTypeDef
  6. See AwsEcrContainerSortByType
  7. See SortOrderType

ImageLayerAggregationTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ImageLayerAggregationTypeDef

def get_value() -> ImageLayerAggregationTypeDef:
    return {
        "layerHashes": ...,
    }
Definition
class ImageLayerAggregationTypeDef(TypedDict):
    layerHashes: NotRequired[Sequence[StringFilterTypeDef]],  # (1)
    repositories: NotRequired[Sequence[StringFilterTypeDef]],  # (1)
    resourceIds: NotRequired[Sequence[StringFilterTypeDef]],  # (1)
    sortBy: NotRequired[ImageLayerSortByType],  # (4)
    sortOrder: NotRequired[SortOrderType],  # (5)
  1. See StringFilterTypeDef
  2. See StringFilterTypeDef
  3. See StringFilterTypeDef
  4. See ImageLayerSortByType
  5. See SortOrderType

PackageAggregationTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import PackageAggregationTypeDef

def get_value() -> PackageAggregationTypeDef:
    return {
        "packageNames": ...,
    }
Definition
class PackageAggregationTypeDef(TypedDict):
    packageNames: NotRequired[Sequence[StringFilterTypeDef]],  # (1)
    sortBy: NotRequired[PackageSortByType],  # (2)
    sortOrder: NotRequired[SortOrderType],  # (3)
  1. See StringFilterTypeDef
  2. See PackageSortByType
  3. See SortOrderType

RepositoryAggregationTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import RepositoryAggregationTypeDef

def get_value() -> RepositoryAggregationTypeDef:
    return {
        "repositories": ...,
    }
Definition
class RepositoryAggregationTypeDef(TypedDict):
    repositories: NotRequired[Sequence[StringFilterTypeDef]],  # (1)
    sortBy: NotRequired[RepositorySortByType],  # (2)
    sortOrder: NotRequired[SortOrderType],  # (3)
  1. See StringFilterTypeDef
  2. See RepositorySortByType
  3. See SortOrderType

TitleAggregationTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import TitleAggregationTypeDef

def get_value() -> TitleAggregationTypeDef:
    return {
        "resourceType": ...,
    }
Definition
class TitleAggregationTypeDef(TypedDict):
    resourceType: NotRequired[AggregationResourceTypeType],  # (1)
    sortBy: NotRequired[TitleSortByType],  # (2)
    sortOrder: NotRequired[SortOrderType],  # (3)
    titles: NotRequired[Sequence[StringFilterTypeDef]],  # (4)
    vulnerabilityIds: NotRequired[Sequence[StringFilterTypeDef]],  # (4)
  1. See AggregationResourceTypeType
  2. See TitleSortByType
  3. See SortOrderType
  4. See StringFilterTypeDef
  5. See StringFilterTypeDef

AssociateMemberResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import AssociateMemberResponseTypeDef

def get_value() -> AssociateMemberResponseTypeDef:
    return {
        "accountId": ...,
        "ResponseMetadata": ...,
    }
Definition
class AssociateMemberResponseTypeDef(TypedDict):
    accountId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

CancelFindingsReportResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import CancelFindingsReportResponseTypeDef

def get_value() -> CancelFindingsReportResponseTypeDef:
    return {
        "reportId": ...,
        "ResponseMetadata": ...,
    }
Definition
class CancelFindingsReportResponseTypeDef(TypedDict):
    reportId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

CreateFilterResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import CreateFilterResponseTypeDef

def get_value() -> CreateFilterResponseTypeDef:
    return {
        "arn": ...,
        "ResponseMetadata": ...,
    }
Definition
class CreateFilterResponseTypeDef(TypedDict):
    arn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

CreateFindingsReportResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import CreateFindingsReportResponseTypeDef

def get_value() -> CreateFindingsReportResponseTypeDef:
    return {
        "reportId": ...,
        "ResponseMetadata": ...,
    }
Definition
class CreateFindingsReportResponseTypeDef(TypedDict):
    reportId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeleteFilterResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import DeleteFilterResponseTypeDef

def get_value() -> DeleteFilterResponseTypeDef:
    return {
        "arn": ...,
        "ResponseMetadata": ...,
    }
Definition
class DeleteFilterResponseTypeDef(TypedDict):
    arn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DisableDelegatedAdminAccountResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import DisableDelegatedAdminAccountResponseTypeDef

def get_value() -> DisableDelegatedAdminAccountResponseTypeDef:
    return {
        "delegatedAdminAccountId": ...,
        "ResponseMetadata": ...,
    }
Definition
class DisableDelegatedAdminAccountResponseTypeDef(TypedDict):
    delegatedAdminAccountId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DisassociateMemberResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import DisassociateMemberResponseTypeDef

def get_value() -> DisassociateMemberResponseTypeDef:
    return {
        "accountId": ...,
        "ResponseMetadata": ...,
    }
Definition
class DisassociateMemberResponseTypeDef(TypedDict):
    accountId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

EnableDelegatedAdminAccountResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import EnableDelegatedAdminAccountResponseTypeDef

def get_value() -> EnableDelegatedAdminAccountResponseTypeDef:
    return {
        "delegatedAdminAccountId": ...,
        "ResponseMetadata": ...,
    }
Definition
class EnableDelegatedAdminAccountResponseTypeDef(TypedDict):
    delegatedAdminAccountId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ListTagsForResourceResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListTagsForResourceResponseTypeDef

def get_value() -> ListTagsForResourceResponseTypeDef:
    return {
        "tags": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListTagsForResourceResponseTypeDef(TypedDict):
    tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

UpdateFilterResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import UpdateFilterResponseTypeDef

def get_value() -> UpdateFilterResponseTypeDef:
    return {
        "arn": ...,
        "ResponseMetadata": ...,
    }
Definition
class UpdateFilterResponseTypeDef(TypedDict):
    arn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DescribeOrganizationConfigurationResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import DescribeOrganizationConfigurationResponseTypeDef

def get_value() -> DescribeOrganizationConfigurationResponseTypeDef:
    return {
        "autoEnable": ...,
        "maxAccountLimitReached": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribeOrganizationConfigurationResponseTypeDef(TypedDict):
    autoEnable: AutoEnableTypeDef,  # (1)
    maxAccountLimitReached: bool,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See AutoEnableTypeDef
  2. See ResponseMetadataTypeDef

UpdateOrganizationConfigurationRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import UpdateOrganizationConfigurationRequestRequestTypeDef

def get_value() -> UpdateOrganizationConfigurationRequestRequestTypeDef:
    return {
        "autoEnable": ...,
    }
Definition
class UpdateOrganizationConfigurationRequestRequestTypeDef(TypedDict):
    autoEnable: AutoEnableTypeDef,  # (1)
  1. See AutoEnableTypeDef

UpdateOrganizationConfigurationResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import UpdateOrganizationConfigurationResponseTypeDef

def get_value() -> UpdateOrganizationConfigurationResponseTypeDef:
    return {
        "autoEnable": ...,
        "ResponseMetadata": ...,
    }
Definition
class UpdateOrganizationConfigurationResponseTypeDef(TypedDict):
    autoEnable: AutoEnableTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See AutoEnableTypeDef
  2. See ResponseMetadataTypeDef

ResourceDetailsTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ResourceDetailsTypeDef

def get_value() -> ResourceDetailsTypeDef:
    return {
        "awsEc2Instance": ...,
    }
Definition
class ResourceDetailsTypeDef(TypedDict):
    awsEc2Instance: NotRequired[AwsEc2InstanceDetailsTypeDef],  # (1)
    awsEcrContainerImage: NotRequired[AwsEcrContainerImageDetailsTypeDef],  # (2)
  1. See AwsEc2InstanceDetailsTypeDef
  2. See AwsEcrContainerImageDetailsTypeDef

ListCoverageStatisticsResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListCoverageStatisticsResponseTypeDef

def get_value() -> ListCoverageStatisticsResponseTypeDef:
    return {
        "countsByGroup": ...,
        "nextToken": ...,
        "totalCounts": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListCoverageStatisticsResponseTypeDef(TypedDict):
    countsByGroup: List[CountsTypeDef],  # (1)
    nextToken: str,
    totalCounts: int,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See CountsTypeDef
  2. See ResponseMetadataTypeDef

CoverageFilterCriteriaTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import CoverageFilterCriteriaTypeDef

def get_value() -> CoverageFilterCriteriaTypeDef:
    return {
        "accountId": ...,
    }
Definition
class CoverageFilterCriteriaTypeDef(TypedDict):
    accountId: NotRequired[Sequence[CoverageStringFilterTypeDef]],  # (1)
    ec2InstanceTags: NotRequired[Sequence[CoverageMapFilterTypeDef]],  # (2)
    ecrImageTags: NotRequired[Sequence[CoverageStringFilterTypeDef]],  # (1)
    ecrRepositoryName: NotRequired[Sequence[CoverageStringFilterTypeDef]],  # (1)
    resourceId: NotRequired[Sequence[CoverageStringFilterTypeDef]],  # (1)
    resourceType: NotRequired[Sequence[CoverageStringFilterTypeDef]],  # (1)
    scanStatusCode: NotRequired[Sequence[CoverageStringFilterTypeDef]],  # (1)
    scanStatusReason: NotRequired[Sequence[CoverageStringFilterTypeDef]],  # (1)
    scanType: NotRequired[Sequence[CoverageStringFilterTypeDef]],  # (1)
  1. See CoverageStringFilterTypeDef
  2. See CoverageMapFilterTypeDef
  3. See CoverageStringFilterTypeDef
  4. See CoverageStringFilterTypeDef
  5. See CoverageStringFilterTypeDef
  6. See CoverageStringFilterTypeDef
  7. See CoverageStringFilterTypeDef
  8. See CoverageStringFilterTypeDef
  9. See CoverageStringFilterTypeDef

CvssScoreDetailsTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import CvssScoreDetailsTypeDef

def get_value() -> CvssScoreDetailsTypeDef:
    return {
        "score": ...,
        "scoreSource": ...,
        "scoringVector": ...,
        "version": ...,
    }
Definition
class CvssScoreDetailsTypeDef(TypedDict):
    score: float,
    scoreSource: str,
    scoringVector: str,
    version: str,
    adjustments: NotRequired[List[CvssScoreAdjustmentTypeDef]],  # (1)
    cvssSource: NotRequired[str],
  1. See CvssScoreAdjustmentTypeDef

ListDelegatedAdminAccountsResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListDelegatedAdminAccountsResponseTypeDef

def get_value() -> ListDelegatedAdminAccountsResponseTypeDef:
    return {
        "delegatedAdminAccounts": ...,
        "nextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListDelegatedAdminAccountsResponseTypeDef(TypedDict):
    delegatedAdminAccounts: List[DelegatedAdminAccountTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See DelegatedAdminAccountTypeDef
  2. See ResponseMetadataTypeDef

GetDelegatedAdminAccountResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import GetDelegatedAdminAccountResponseTypeDef

def get_value() -> GetDelegatedAdminAccountResponseTypeDef:
    return {
        "delegatedAdmin": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetDelegatedAdminAccountResponseTypeDef(TypedDict):
    delegatedAdmin: DelegatedAdminTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See DelegatedAdminTypeDef
  2. See ResponseMetadataTypeDef

Ec2InstanceAggregationTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import Ec2InstanceAggregationTypeDef

def get_value() -> Ec2InstanceAggregationTypeDef:
    return {
        "amis": ...,
    }
Definition
class Ec2InstanceAggregationTypeDef(TypedDict):
    amis: NotRequired[Sequence[StringFilterTypeDef]],  # (1)
    instanceIds: NotRequired[Sequence[StringFilterTypeDef]],  # (1)
    instanceTags: NotRequired[Sequence[MapFilterTypeDef]],  # (3)
    operatingSystems: NotRequired[Sequence[StringFilterTypeDef]],  # (1)
    sortBy: NotRequired[Ec2InstanceSortByType],  # (5)
    sortOrder: NotRequired[SortOrderType],  # (6)
  1. See StringFilterTypeDef
  2. See StringFilterTypeDef
  3. See MapFilterTypeDef
  4. See StringFilterTypeDef
  5. See Ec2InstanceSortByType
  6. See SortOrderType

EcrConfigurationStateTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import EcrConfigurationStateTypeDef

def get_value() -> EcrConfigurationStateTypeDef:
    return {
        "rescanDurationState": ...,
    }
Definition
class EcrConfigurationStateTypeDef(TypedDict):
    rescanDurationState: NotRequired[EcrRescanDurationStateTypeDef],  # (1)
  1. See EcrRescanDurationStateTypeDef

UpdateConfigurationRequestRequestTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import UpdateConfigurationRequestRequestTypeDef

def get_value() -> UpdateConfigurationRequestRequestTypeDef:
    return {
        "ecrConfiguration": ...,
    }
Definition
class UpdateConfigurationRequestRequestTypeDef(TypedDict):
    ecrConfiguration: EcrConfigurationTypeDef,  # (1)
  1. See EcrConfigurationTypeDef

ResourceScanMetadataTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ResourceScanMetadataTypeDef

def get_value() -> ResourceScanMetadataTypeDef:
    return {
        "ec2": ...,
    }
Definition
class ResourceScanMetadataTypeDef(TypedDict):
    ec2: NotRequired[Ec2MetadataTypeDef],  # (1)
    ecrImage: NotRequired[EcrContainerImageMetadataTypeDef],  # (2)
    ecrRepository: NotRequired[EcrRepositoryMetadataTypeDef],  # (3)
  1. See Ec2MetadataTypeDef
  2. See EcrContainerImageMetadataTypeDef
  3. See EcrRepositoryMetadataTypeDef

PackageFilterTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import PackageFilterTypeDef

def get_value() -> PackageFilterTypeDef:
    return {
        "architecture": ...,
    }
Definition
class PackageFilterTypeDef(TypedDict):
    architecture: NotRequired[StringFilterTypeDef],  # (1)
    epoch: NotRequired[NumberFilterTypeDef],  # (2)
    name: NotRequired[StringFilterTypeDef],  # (1)
    release: NotRequired[StringFilterTypeDef],  # (1)
    sourceLayerHash: NotRequired[StringFilterTypeDef],  # (1)
    version: NotRequired[StringFilterTypeDef],  # (1)
  1. See StringFilterTypeDef
  2. See NumberFilterTypeDef
  3. See StringFilterTypeDef
  4. See StringFilterTypeDef
  5. See StringFilterTypeDef
  6. See StringFilterTypeDef

FreeTrialAccountInfoTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import FreeTrialAccountInfoTypeDef

def get_value() -> FreeTrialAccountInfoTypeDef:
    return {
        "accountId": ...,
        "freeTrialInfo": ...,
    }
Definition
class FreeTrialAccountInfoTypeDef(TypedDict):
    accountId: str,
    freeTrialInfo: List[FreeTrialInfoTypeDef],  # (1)
  1. See FreeTrialInfoTypeDef

GetMemberResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import GetMemberResponseTypeDef

def get_value() -> GetMemberResponseTypeDef:
    return {
        "member": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetMemberResponseTypeDef(TypedDict):
    member: MemberTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See MemberTypeDef
  2. See ResponseMetadataTypeDef

ListMembersResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListMembersResponseTypeDef

def get_value() -> ListMembersResponseTypeDef:
    return {
        "members": ...,
        "nextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListMembersResponseTypeDef(TypedDict):
    members: List[MemberTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See MemberTypeDef
  2. See ResponseMetadataTypeDef

ListAccountPermissionsRequestListAccountPermissionsPaginateTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListAccountPermissionsRequestListAccountPermissionsPaginateTypeDef

def get_value() -> ListAccountPermissionsRequestListAccountPermissionsPaginateTypeDef:
    return {
        "service": ...,
    }
Definition
class ListAccountPermissionsRequestListAccountPermissionsPaginateTypeDef(TypedDict):
    service: NotRequired[ServiceType],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See ServiceType
  2. See PaginatorConfigTypeDef

ListDelegatedAdminAccountsRequestListDelegatedAdminAccountsPaginateTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListDelegatedAdminAccountsRequestListDelegatedAdminAccountsPaginateTypeDef

def get_value() -> ListDelegatedAdminAccountsRequestListDelegatedAdminAccountsPaginateTypeDef:
    return {
        "PaginationConfig": ...,
    }
Definition
class ListDelegatedAdminAccountsRequestListDelegatedAdminAccountsPaginateTypeDef(TypedDict):
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListFiltersRequestListFiltersPaginateTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListFiltersRequestListFiltersPaginateTypeDef

def get_value() -> ListFiltersRequestListFiltersPaginateTypeDef:
    return {
        "action": ...,
    }
Definition
class ListFiltersRequestListFiltersPaginateTypeDef(TypedDict):
    action: NotRequired[FilterActionType],  # (1)
    arns: NotRequired[Sequence[str]],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See FilterActionType
  2. See PaginatorConfigTypeDef

ListMembersRequestListMembersPaginateTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListMembersRequestListMembersPaginateTypeDef

def get_value() -> ListMembersRequestListMembersPaginateTypeDef:
    return {
        "onlyAssociated": ...,
    }
Definition
class ListMembersRequestListMembersPaginateTypeDef(TypedDict):
    onlyAssociated: NotRequired[bool],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListUsageTotalsRequestListUsageTotalsPaginateTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListUsageTotalsRequestListUsageTotalsPaginateTypeDef

def get_value() -> ListUsageTotalsRequestListUsageTotalsPaginateTypeDef:
    return {
        "accountIds": ...,
    }
Definition
class ListUsageTotalsRequestListUsageTotalsPaginateTypeDef(TypedDict):
    accountIds: NotRequired[Sequence[str]],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListAccountPermissionsResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import ListAccountPermissionsResponseTypeDef

def get_value() -> ListAccountPermissionsResponseTypeDef:
    return {
        "nextToken": ...,
        "permissions": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListAccountPermissionsResponseTypeDef(TypedDict):
    nextToken: str,
    permissions: List[PermissionTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See PermissionTypeDef
  2. See ResponseMetadataTypeDef

NetworkPathTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import NetworkPathTypeDef

def get_value() -> NetworkPathTypeDef:
    return {
        "steps": ...,
    }
Definition
class NetworkPathTypeDef(TypedDict):
    steps: NotRequired[List[StepTypeDef]],  # (1)
  1. See StepTypeDef

PackageVulnerabilityDetailsTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import PackageVulnerabilityDetailsTypeDef

def get_value() -> PackageVulnerabilityDetailsTypeDef:
    return {
        "source": ...,
        "vulnerabilityId": ...,
    }
Definition
class PackageVulnerabilityDetailsTypeDef(TypedDict):
    source: str,
    vulnerabilityId: str,
    cvss: NotRequired[List[CvssScoreTypeDef]],  # (1)
    referenceUrls: NotRequired[List[str]],
    relatedVulnerabilities: NotRequired[List[str]],
    sourceUrl: NotRequired[str],
    vendorCreatedAt: NotRequired[datetime],
    vendorSeverity: NotRequired[str],
    vendorUpdatedAt: NotRequired[datetime],
    vulnerablePackages: NotRequired[List[VulnerablePackageTypeDef]],  # (2)
  1. See CvssScoreTypeDef
  2. See VulnerablePackageTypeDef

RemediationTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import RemediationTypeDef

def get_value() -> RemediationTypeDef:
    return {
        "recommendation": ...,
    }
Definition
class RemediationTypeDef(TypedDict):
    recommendation: NotRequired[RecommendationTypeDef],  # (1)
  1. See RecommendationTypeDef

UsageTotalTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import UsageTotalTypeDef

def get_value() -> UsageTotalTypeDef:
    return {
        "accountId": ...,
    }
Definition
class UsageTotalTypeDef(TypedDict):
    accountId: NotRequired[str],
    usage: NotRequired[List[UsageTypeDef]],  # (1)
  1. See UsageTypeDef

AggregationResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import AggregationResponseTypeDef

def get_value() -> AggregationResponseTypeDef:
    return {
        "accountAggregation": ...,
    }
Definition
class AggregationResponseTypeDef(TypedDict):
    accountAggregation: NotRequired[AccountAggregationResponseTypeDef],  # (1)
    amiAggregation: NotRequired[AmiAggregationResponseTypeDef],  # (2)
    awsEcrContainerAggregation: NotRequired[AwsEcrContainerAggregationResponseTypeDef],  # (3)
    ec2InstanceAggregation: NotRequired[Ec2InstanceAggregationResponseTypeDef],  # (4)
    findingTypeAggregation: NotRequired[FindingTypeAggregationResponseTypeDef],  # (5)
    imageLayerAggregation: NotRequired[ImageLayerAggregationResponseTypeDef],  # (6)
    packageAggregation: NotRequired[PackageAggregationResponseTypeDef],  # (7)
    repositoryAggregation: NotRequired[RepositoryAggregationResponseTypeDef],  # (8)
    titleAggregation: NotRequired[TitleAggregationResponseTypeDef],  # (9)
  1. See AccountAggregationResponseTypeDef
  2. See AmiAggregationResponseTypeDef
  3. See AwsEcrContainerAggregationResponseTypeDef
  4. See Ec2InstanceAggregationResponseTypeDef
  5. See FindingTypeAggregationResponseTypeDef
  6. See ImageLayerAggregationResponseTypeDef
  7. See PackageAggregationResponseTypeDef
  8. See RepositoryAggregationResponseTypeDef
  9. See TitleAggregationResponseTypeDef

AccountStateTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import AccountStateTypeDef

def get_value() -> AccountStateTypeDef:
    return {
        "accountId": ...,
        "resourceState": ...,
        "state": ...,
    }
Definition
class AccountStateTypeDef(TypedDict):
    accountId: str,
    resourceState: ResourceStateTypeDef,  # (1)
    state: StateTypeDef,  # (2)
  1. See ResourceStateTypeDef
  2. See StateTypeDef

DisableResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import DisableResponseTypeDef

def get_value() -> DisableResponseTypeDef:
    return {
        "accounts": ...,
        "failedAccounts": ...,
        "ResponseMetadata": ...,
    }
Definition
class DisableResponseTypeDef(TypedDict):
    accounts: List[AccountTypeDef],  # (1)
    failedAccounts: List[FailedAccountTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See AccountTypeDef
  2. See FailedAccountTypeDef
  3. See ResponseMetadataTypeDef

EnableResponseTypeDef

Usage Example
from mypy_boto3_inspector2.type_defs import EnableResponseTypeDef

def get_value() -> EnableResponseTypeDef:
    return {