Checks/Aws/Test-ElbCrossZoneLoadBalancingEnabled.ps1

function Test-ElbCrossZoneLoadBalancingEnabled {
    <#
    .SYNOPSIS
        Classic Load Balancer has cross-zone load balancing enabled

    .DESCRIPTION
        Classic Load Balancer with **cross-zone load balancing** distributes requests across registered targets in all enabled Availability Zones.
        
        This evaluates whether that setting is `enabled`, instead of restricting distribution to targets within only the same zone.

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

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