moto/moto/polly/urls.py
2019-10-31 10:36:05 -07:00

12 lines
348 B
Python

from __future__ import unicode_literals
from .responses import PollyResponse
url_bases = ["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,
}