Checks/Aws/Test-ApigatewayRestapiCacheEncrypted.ps1

function Test-ApigatewayRestapiCacheEncrypted {
    <#
    .SYNOPSIS
        API Gateway REST API stage cache data is encrypted at rest

    .DESCRIPTION
        API Gateway REST API stages with caching have **cache data encrypted at rest**. The evaluation targets stages where caching is enabled and verifies that stored responses are protected via the `Encrypt cache data` setting.

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

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