aws ec2 describe-security-groups
Describes the specified security groups or all of your security groups. AWS CLI reference
6 options Its page in the AWS CLI reference
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--filtersThe filters.--group-idsThe IDs of the security groups.--group-names[Default VPC] The names of the security groups.--max-resultsThe maximum number of items to return for this request.--next-tokenThe token returned from a previous paginated request.