Task Amazon EC2 - List Security Group
The Amazon EC2 - List security group Task returns a list of security groups according to the specified filter.

Connection
To use Amazon EC2 Tasks you need to create an Amazon Connection first. Click the Settings icon to open the Manage Connections dialog.
Filter
Filter for security groups.
Example
@{Name="vpc-id"; Values="vpc-1a2b3c4d"}