25 lines
742 B
Python
25 lines
742 B
Python
from .responses import IoTResponse
|
|
|
|
url_bases = [r"https?://iot\.(.+)\.amazonaws\.com"]
|
|
|
|
|
|
response = IoTResponse()
|
|
|
|
|
|
url_paths = {
|
|
#
|
|
# Paths for :class:`moto.core.models.MockAWS`
|
|
#
|
|
# This route requires special handling.
|
|
"{0}/attached-policies/(?P<target>.*)$": response.dispatch_attached_policies,
|
|
# The remaining routes can be handled by the default dispatcher.
|
|
"{0}/.*$": response.dispatch,
|
|
#
|
|
# (Flask) Paths for :class:`moto.core.models.ServerModeMockAWS`
|
|
#
|
|
# This route requires special handling.
|
|
"{0}/attached-policies/<path:target>$": response.dispatch_attached_policies,
|
|
# The remaining routes can be handled by the default dispatcher.
|
|
"{0}/<path:route>$": response.dispatch,
|
|
}
|