Checks/Aws/Test-VpcVpnConnectionTunnelsUp.ps1

function Test-VpcVpnConnectionTunnelsUp {
    <#
    .SYNOPSIS
        AWS Site-to-Site VPN connection has both tunnels up

    .DESCRIPTION
        **AWS Site-to-Site VPN** connections have two IPsec tunnels. This evaluates tunnel status and detects when any tunnel is not `UP`, indicating whether both tunnels are concurrently available for high availability.

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

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