Example
To create the AWS Security Groups Handler object with AWS credentials:Retrieves details of all security groups in your AWS account for the given region, including rules, VPCs, and attached resources.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
import os
from superagentx_handlers.aws.security_groups import AWSSecurityGroupsHandler
sg_handler = AWSSecurityGroupsHandler(
aws_access_key_id=os.getenv("AWS_ACCESS_KEY_ID"),
aws_secret_access_key=os.getenv("AWS_SECRET_ACCESS_KEY"),
region_name="us-east-1"
)
security_groups = await sg_handler.get_ec2_security_groups()
print(security_groups)
