ApiGatewayV2.Api
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-api-bodys3location.html
and cors = {
allow_origins : string list option;
allow_credentials : bool option;
expose_headers : string list option;
allow_headers : string list option;
max_age : int option;
allow_methods : string list option;
}
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-api-cors.html
type properties = {
route_selection_expression : string option;
body_s3_location : body_s3_location option;
description : string option;
base_path : string option;
fail_on_warnings : bool option;
disable_execute_api_endpoint : bool option;
disable_schema_validation : bool option;
name : string option;
target : string option;
credentials_arn : string option;
cors_configuration : cors option;
version : string option;
protocol_type : string option;
route_key : string option;
body : Yojson.Safe.t option;
api_key_selection_expression : string option;
}
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html;
val make_properties :
?route_selection_expression:string ->
?body_s3_location:body_s3_location ->
?description:string ->
?base_path:string ->
?fail_on_warnings:bool ->
?disable_execute_api_endpoint:bool ->
?disable_schema_validation:bool ->
?name:string ->
?target:string ->
?credentials_arn:string ->
?cors_configuration:cors ->
?version:string ->
?protocol_type:string ->
?route_key:string ->
?body:Yojson.Safe.t ->
?tags:string Stdlib__Map.Make(Stdlib.String).t ->
?api_key_selection_expression:string ->
unit ->
properties
val make_body_s3_location :
?etag:string ->
?bucket:string ->
?version:string ->
?key:string ->
unit ->
body_s3_location
val make_cors :
?allow_origins:string list ->
?allow_credentials:bool ->
?expose_headers:string list ->
?allow_headers:string list ->
?max_age:int ->
?allow_methods:string list ->
unit ->
cors
val yojson_of_body_s3_location :
body_s3_location ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_cors : cors -> [> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_properties :
properties ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val create_attributes : string -> attributes