Where is the config parsing logic?

I found the conditional does not work for S3 Output, i' like to debug