def get_security_group_id(event):
    """
    Pulls the security group ID from the event object passed to the lambda from EventBridge.

    Args:
        event: Event object passed to the lambda from EventBridge

    Returns:
        string: Security group ID
    """
    return event.get("detail").get("requestParameters").get("groupId")