I have several comments and suggestions.
- you have configured your 2 BGP peers with different AS numbers so we are dealing with EBGP.
- you are applying an AS path list inbound to control what advertisement from your EBGP peers you will accept. That path list permits only ^$ and no advertisement from those peers will meet that condition. So you will accept no advertisement from those peers.
- you are applying an AS path list outbound to control what you will advertise to those peers. That path list permits only ^$ and that is the effective way to prevent your AS becoming a transit AS between those EBGP neighbors. So this is a good thing in your config.
- you want to advertise only a single network to one EBGP peer and a different network to the other EBGP peer. Your comment is that you are trying prefix lists for this but there are no prefix lists in what you posted. Prefix lists that permit only 20.20.20.0 and permit only 20.20.30.0 applied to outbound advertisements would be an effective way to accomplish your objective.
HTH
Rick
HTH
Rick