moto/moto/polly/urls.py
2021-10-08 10:03:05 +00:00

12 lines
351 B
Python

from __future__ import unicode_literals
from .responses import PollyResponse
url_bases = [r"https?://polly\.(.+)\.amazonaws.com"]
url_paths = {
"{0}/v1/voices": PollyResponse.dispatch,
"{0}/v1/lexicons/(?P<lexicon>[^/]+)": PollyResponse.dispatch,
"{0}/v1/lexicons": PollyResponse.dispatch,
"{0}/v1/speech": PollyResponse.dispatch,
}