Checks/Aws/Test-EksClusterDeletionProtectionEnabled.ps1

function Test-EksClusterDeletionProtectionEnabled {
    <#
    .SYNOPSIS
        EKS cluster has deletion protection enabled

    .DESCRIPTION
        **Amazon EKS clusters** have **deletion protection** enabled blocking cluster removal until protection is explicitly disabled.

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

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