Checks/Aws/Test-SnsSubscriptionNotUsingHttpEndpoints.ps1

function Test-SnsSubscriptionNotUsingHttpEndpoints {
    <#
    .SYNOPSIS
        SNS subscription uses an HTTPS endpoint

    .DESCRIPTION
        Amazon SNS subscriptions are evaluated for endpoint protocol. Subscriptions using `http` are identified, while **HTTPS** endpoints indicate encrypted delivery in transit.

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

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