Lambda.Function
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html
type logging_config = {
log_format : string option;
application_log_level : string option;
log_group : string option;
system_log_level : string option;
}
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-loggingconfig.html
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-deadletterconfig.html
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html
and vpc_config = {
ipv6_allowed_for_dual_stack : bool option;
security_group_ids : string list option;
subnet_ids : string list option;
}
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-snapstart.html
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-filesystemconfig.html
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-imageconfig.html
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-tracingconfig.html
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-snapstartresponse.html
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-ephemeralstorage.html
and code = {
s3_object_version : string option;
s3_bucket : string option;
zip_file : string option;
s3_key : string option;
image_uri : string option;
}
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-runtimemanagementconfig.html
type properties = {
description : string option;
tracing_config : tracing_config option;
vpc_config : vpc_config option;
runtime_management_config : runtime_management_config option;
reserved_concurrent_executions : int option;
snap_start : snap_start option;
file_system_configs : file_system_config list option;
function_name : string option;
runtime : string option;
kms_key_arn : string option;
package_type : string option;
code_signing_config_arn : string option;
layers : string list option;
image_config : image_config option;
memory_size : int option;
dead_letter_config : dead_letter_config option;
timeout : int option;
handler : string option;
code : code;
role : string;
logging_config : logging_config option;
environment : environment option;
ephemeral_storage : ephemeral_storage option;
architectures : string list option;
}
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html;
val make_properties :
?description:string ->
?tracing_config:tracing_config ->
?vpc_config:vpc_config ->
?runtime_management_config:runtime_management_config ->
?reserved_concurrent_executions:int ->
?snap_start:snap_start ->
?file_system_configs:file_system_config list ->
?function_name:string ->
?runtime:string ->
?kms_key_arn:string ->
?package_type:string ->
?code_signing_config_arn:string ->
?layers:string list ->
?tags:tag list ->
?image_config:image_config ->
?memory_size:int ->
?dead_letter_config:dead_letter_config ->
?timeout:int ->
?handler:string ->
code:code ->
role:string ->
?logging_config:logging_config ->
?environment:environment ->
?ephemeral_storage:ephemeral_storage ->
?architectures:string list ->
unit ->
properties
val make_logging_config :
?log_format:string ->
?application_log_level:string ->
?log_group:string ->
?system_log_level:string ->
unit ->
logging_config
val make_dead_letter_config : ?target_arn:string -> unit -> dead_letter_config
val make_tag : value:string -> key:string -> unit -> tag
val make_vpc_config :
?ipv6_allowed_for_dual_stack:bool ->
?security_group_ids:string list ->
?subnet_ids:string list ->
unit ->
vpc_config
val make_snap_start : apply_on:string -> unit -> snap_start
val make_file_system_config :
arn:string ->
local_mount_path:string ->
unit ->
file_system_config
val make_image_config :
?working_directory:string ->
?command:string list ->
?entry_point:string list ->
unit ->
image_config
val make_tracing_config : ?mode:string -> unit -> tracing_config
val make_snap_start_response :
?optimization_status:string ->
?apply_on:string ->
unit ->
snap_start_response
val make_ephemeral_storage : size:int -> unit -> ephemeral_storage
val make_code :
?s3_object_version:string ->
?s3_bucket:string ->
?zip_file:string ->
?s3_key:string ->
?image_uri:string ->
unit ->
code
val make_environment :
?variables:string Stdlib__Map.Make(Stdlib.String).t ->
unit ->
environment
val make_runtime_management_config :
update_runtime_on:string ->
?runtime_version_arn:string ->
unit ->
runtime_management_config
val yojson_of_logging_config :
logging_config ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_dead_letter_config :
dead_letter_config ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_tag : tag -> [> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_vpc_config :
vpc_config ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_snap_start :
snap_start ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_file_system_config :
file_system_config ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_image_config :
image_config ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_tracing_config :
tracing_config ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_snap_start_response :
snap_start_response ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_ephemeral_storage :
ephemeral_storage ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_code : code -> [> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_environment :
environment ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_runtime_management_config :
runtime_management_config ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_properties :
properties ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val create_attributes : string -> attributes