Multiple AWS_IOT_BROKER_HOST_NAME

I have a IoT design that needs to support multiple AWS service endpoints, depending on which region the device is operating or which SIM is being used.  For example, ao3k4sem2hoef-ats.iot.ca-central-1.amazonaws.com or ao3k4sem2hoef-ats.iot.ap-east-1.amazonaws.com, etc.  The design works fine when I have the endpoint preset with CONFIG_AWS_IOT_BROKER_HOST_NAME in the prj.conf.  Is it possible to have an endpoint picked automatically based on a parameter found during run time?  

Thank you.

Related