moto/moto/eks/urls.py
2021-10-18 19:44:29 +00:00

19 lines
572 B
Python

from .responses import EKSResponse
url_bases = [
r"https?://eks\.(.+)\.amazonaws.com",
]
response = EKSResponse()
url_paths = {
"{0}/clusters$": response.dispatch,
"{0}/clusters/(?P<name>[^/]+)$": response.dispatch,
"{0}/clusters/(?P<name>[^/]+)/node-groups$": response.dispatch,
"{0}/clusters/(?P<name>[^/]+)/node-groups/(?P<nodegroupName>[^/]+)$": response.dispatch,
"{0}/clusters/(?P<name>[^/]+)/fargate-profiles$": response.dispatch,
"{0}/clusters/(?P<name>[^/]+)/fargate-profiles/(?P<fargateProfileName>[^/]+)$": response.dispatch,
}