in private/aws-restjson-validation-server/src/server/RestJsonValidationService.ts [188:339]
async handle(request: __HttpRequest, context: Context): Promise<__HttpResponse> {
const target = this.mux.match(request);
if (target === undefined) {
return this.serializeFrameworkException(new __UnknownOperationException(), serdeContextBase);
}
switch (target.operation) {
case "MalformedEnum": {
return handle(
request,
context,
"MalformedEnum",
this.serializerFactory("MalformedEnum"),
this.service.MalformedEnum,
this.serializeFrameworkException,
MalformedEnumServerInput.validate,
this.validationCustomizer
);
}
case "MalformedLength": {
return handle(
request,
context,
"MalformedLength",
this.serializerFactory("MalformedLength"),
this.service.MalformedLength,
this.serializeFrameworkException,
MalformedLengthServerInput.validate,
this.validationCustomizer
);
}
case "MalformedLengthOverride": {
return handle(
request,
context,
"MalformedLengthOverride",
this.serializerFactory("MalformedLengthOverride"),
this.service.MalformedLengthOverride,
this.serializeFrameworkException,
MalformedLengthOverrideServerInput.validate,
this.validationCustomizer
);
}
case "MalformedLengthQueryString": {
return handle(
request,
context,
"MalformedLengthQueryString",
this.serializerFactory("MalformedLengthQueryString"),
this.service.MalformedLengthQueryString,
this.serializeFrameworkException,
MalformedLengthQueryStringServerInput.validate,
this.validationCustomizer
);
}
case "MalformedPattern": {
return handle(
request,
context,
"MalformedPattern",
this.serializerFactory("MalformedPattern"),
this.service.MalformedPattern,
this.serializeFrameworkException,
MalformedPatternServerInput.validate,
this.validationCustomizer
);
}
case "MalformedPatternOverride": {
return handle(
request,
context,
"MalformedPatternOverride",
this.serializerFactory("MalformedPatternOverride"),
this.service.MalformedPatternOverride,
this.serializeFrameworkException,
MalformedPatternOverrideServerInput.validate,
this.validationCustomizer
);
}
case "MalformedRange": {
return handle(
request,
context,
"MalformedRange",
this.serializerFactory("MalformedRange"),
this.service.MalformedRange,
this.serializeFrameworkException,
MalformedRangeServerInput.validate,
this.validationCustomizer
);
}
case "MalformedRangeOverride": {
return handle(
request,
context,
"MalformedRangeOverride",
this.serializerFactory("MalformedRangeOverride"),
this.service.MalformedRangeOverride,
this.serializeFrameworkException,
MalformedRangeOverrideServerInput.validate,
this.validationCustomizer
);
}
case "MalformedRequired": {
return handle(
request,
context,
"MalformedRequired",
this.serializerFactory("MalformedRequired"),
this.service.MalformedRequired,
this.serializeFrameworkException,
MalformedRequiredServerInput.validate,
this.validationCustomizer
);
}
case "MalformedUniqueItems": {
return handle(
request,
context,
"MalformedUniqueItems",
this.serializerFactory("MalformedUniqueItems"),
this.service.MalformedUniqueItems,
this.serializeFrameworkException,
MalformedUniqueItemsServerInput.validate,
this.validationCustomizer
);
}
case "RecursiveStructures": {
return handle(
request,
context,
"RecursiveStructures",
this.serializerFactory("RecursiveStructures"),
this.service.RecursiveStructures,
this.serializeFrameworkException,
RecursiveStructuresServerInput.validate,
this.validationCustomizer
);
}
case "SensitiveValidation": {
return handle(
request,
context,
"SensitiveValidation",
this.serializerFactory("SensitiveValidation"),
this.service.SensitiveValidation,
this.serializeFrameworkException,
SensitiveValidationServerInput.validate,
this.validationCustomizer
);
}
}
}