Checks/Aws/Test-DynamodbAcceleratorClusterEncryptionEnabled.ps1

function Test-DynamodbAcceleratorClusterEncryptionEnabled {
    <#
    .SYNOPSIS
        DynamoDB DAX cluster has encryption at rest enabled

    .DESCRIPTION
        **Amazon DynamoDB Accelerator (DAX) clusters** are evaluated for **server-side `encryption at rest`**. The finding indicates whether the cluster's on-disk cache, configuration, and logs are encrypted using service-managed keys.

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

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