create_request_validator
async
¶
create_request_validator(
rest_api_id: String,
*,
config_overrides: Optional[AsyncAPIGatewayClientConfig] = None,
name: Optional[String] = None,
validate_request_body: Optional[Boolean] = None,
validate_request_parameters: Optional[Boolean] = None,
) -> RequestValidator
Creates a RequestValidator of a given RestApi.
Parameters:
-
rest_api_id(String) –The string identifier of the associated RestApi.
-
name(Optional[String], default:None) –The name of the to-be-created RequestValidator.
-
validate_request_body(Optional[Boolean], default:None) –A Boolean flag to indicate whether to validate request body according to the configured model schema for the method (
true) or not (false). -
validate_request_parameters(Optional[Boolean], default:None) –A Boolean flag to indicate whether to validate request parameters,
true, or notfalse.
Raises:
-
BadRequestException–The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
LimitExceededException–The request exceeded the rate limit. Retry after the specified time period.
-
NotFoundException–The requested resource is not found. Make sure that the request URI is correct.
-
TooManyRequestsException–The request has reached its throttling limit. Retry after the specified time period.
-
UnauthorizedException–The request is denied because the caller has insufficient permissions.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_api_gateway/_services/async_api_gateway.py
1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 | |