route-map match clause for existance of a BGP session?

Sorry for the non-operational content, but looking for some Cisco advice.

Does anyone happen to know a trick for a route map match clause that will
only match if a BGP session is established with a given peer? The idea
being to only redistribute a particular static route based on the
availability of the peer through which the next hop of the static would be
configured...

Thanks in advance,
Tim

Is there a reason why applying a custom route map to that peering session
only won't work? If you have a "standard" route map, just duplicate it,
rename it, and add the relevant match statement.

-Chris