Checks/Aws/Test-Inspector2ActiveFindingsExist.ps1

function Test-Inspector2ActiveFindingsExist {
    <#
    .SYNOPSIS
        Inspector2 is enabled with no active findings

    .DESCRIPTION
        **Amazon Inspector2** active findings are assessed across eligible resources when the service is `ENABLED`.
        
        Indicates whether any findings remain in the **Active** state versus none.

    .PARAMETER Check
        CIEMCheck object containing check metadata.
    #>

    [CmdletBinding()]
    [OutputType([PSCustomObject[]])]
    param(
        [Parameter(Mandatory)]
        [CIEMCheck]$Check
    )

    $ErrorActionPreference = 'Stop'

    # TODO: Implement check logic based on Prowler check: inspector2_active_findings_exist

    [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check inspector2_active_findings_exist for reference.', 'N/A', 'inspector2 Resources')
}