Checks/Aws/Test-Ec2SecuritygroupFromLaunchWizard.ps1

function Test-Ec2SecuritygroupFromLaunchWizard {
    <#
    .SYNOPSIS
        Security group not created using the EC2 Launch Wizard

    .DESCRIPTION
        **EC2 security groups** whose names include `launch-wizard` are identified as created by the **EC2 Launch Wizard**, distinguishing auto-generated groups from curated, baseline-controlled groups.

    .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_securitygroup_from_launch_wizard

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