Checks/Aws/Test-KmsCmkNotDeletedUnintentionally.ps1

function Test-KmsCmkNotDeletedUnintentionally {
    <#
    .SYNOPSIS
        AWS KMS customer managed key is not scheduled for deletion

    .DESCRIPTION
        **Customer-managed KMS keys** are evaluated for the `PendingDeletion` state, indicating a scheduled deletion during the mandatory waiting period.

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

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