Checks/Aws/Test-CloudwatchChangesToNetworkGatewaysAlarmConfigured.ps1

function Test-CloudwatchChangesToNetworkGatewaysAlarmConfigured {
    <#
    .SYNOPSIS
        CloudWatch Logs metric filter and alarm exist for changes to network gateways

    .DESCRIPTION
        CloudWatch log metric filters and alarms for **network gateway changes** are identified by matching CloudTrail events such as `CreateCustomerGateway`, `DeleteCustomerGateway`, `AttachInternetGateway`, `CreateInternetGateway`, `DeleteInternetGateway`, and `DetachInternetGateway` in log groups that receive trail logs.

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

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