Values.CreateRouteResultSourceCreates a Route for an API.
type nonrec t = {apiGatewayManaged : bool option;Specifies whether a route is managed by API Gateway. If you created an API using quick create, the $default route is managed by API Gateway. You can't modify the $default route key.
*)apiKeyRequired : bool option;Specifies whether an API key is required for this route. Supported only for WebSocket APIs.
*)modelSelectionExpression : SelectionExpression.t option;The model selection expression for the route. Supported only for WebSocket APIs.
*)operationName : StringWithLengthBetween1And64.t option;The operation name for the route.
*)requestModels : RouteModels.t option;The request models for the route. Supported only for WebSocket APIs.
*)requestParameters : RouteParameters.t option;The request parameters for the route. Supported only for WebSocket APIs.
*)routeId : Id.t option;The route ID.
*)routeKey : SelectionKey.t option;The route key for the route.
*)routeResponseSelectionExpression : SelectionExpression.t option;The route response selection expression for the route. Supported only for WebSocket APIs.
*)target : StringWithLengthBetween1And128.t option;The target for the route.
*)}type nonrec error = [ | `BadRequestException of BadRequestException.t| `ConflictException of ConflictException.t| `NotFoundException of NotFoundException.t| `TooManyRequestsException of TooManyRequestsException.t| `Unknown_operation_error of string * string option ]val make :
?apiGatewayManaged:bool ->
?apiKeyRequired:bool ->
?authorizationScopes:AuthorizationScopes.t ->
?authorizationType:AuthorizationType.t ->
?authorizerId:Id.t ->
?modelSelectionExpression:SelectionExpression.t ->
?operationName:StringWithLengthBetween1And64.t ->
?requestModels:RouteModels.t ->
?requestParameters:RouteParameters.t ->
?routeId:Id.t ->
?routeKey:SelectionKey.t ->
?routeResponseSelectionExpression:SelectionExpression.t ->
?target:StringWithLengthBetween1And128.t ->
unit ->
tval error_of_json :
string ->
Yojson.Safe.t ->
[> `BadRequestException of BadRequestException.t
| `ConflictException of ConflictException.t
| `NotFoundException of NotFoundException.t
| `TooManyRequestsException of TooManyRequestsException.t
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `BadRequestException of BadRequestException.t
| `ConflictException of ConflictException.t
| `NotFoundException of NotFoundException.t
| `TooManyRequestsException of TooManyRequestsException.t
| `Unknown_operation_error of string * string option ]val to_value :
t ->
[> `Structure of
(string
* [> `Boolean of bool
| `Enum of string
| `List of [> `String of StringWithLengthBetween1And64.t ] list
| `Map of
([> `String of string ]
* [> `String of StringWithLengthBetween1And128.t
| `Structure of (string * [> `Boolean of bool ]) list ])
list
| `String of Id.t ])
list ]