Checks/Aws/Test-GuarddutyLambdaProtectionEnabled.ps1

function Test-GuarddutyLambdaProtectionEnabled {
    <#
    .SYNOPSIS
        GuardDuty detector has Lambda Protection enabled

    .DESCRIPTION
        **Amazon GuardDuty detectors** with **Lambda Protection** enabled analyze **Lambda invocation network activity logs** across your account.
        
        Evaluation determines whether the detector has `Lambda Protection` turned on.

    .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: guardduty_lambda_protection_enabled

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