Checks/Aws/Test-Ec2EbsPublicSnapshot.ps1

function Test-Ec2EbsPublicSnapshot {
    <#
    .SYNOPSIS
        EBS snapshot is not public

    .DESCRIPTION
        **EBS snapshots** with **public sharing** permissions (accessible by all AWS accounts) are identified, as opposed to snapshots shared privately with specific accounts.

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

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