Lambda.Url
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html
type cors = {
allow_credentials : bool option;
allow_origins : string list 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-lambda-url-cors.html
type properties = {
qualifier : string option;
invoke_mode : string option;
auth_type : string;
target_function_arn : string;
cors : cors option;
}
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html;
val make_properties :
?qualifier:string ->
?invoke_mode:string ->
auth_type:string ->
target_function_arn:string ->
?cors:cors ->
unit ->
properties
val make_cors :
?allow_credentials:bool ->
?allow_origins:string list ->
?expose_headers:string list ->
?allow_headers:string list ->
?max_age:int ->
?allow_methods:string list ->
unit ->
cors
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