Module Values.CanaryCodeOutputSource

This structure contains information about the canary's Lambda handler and where its code is stored by CloudWatch Synthetics.

Sourcetype nonrec t = {
  1. sourceLocationArn : String_.t option;
    (*

    The ARN of the Lambda layer where Synthetics stores the canary script code.

    *)
  2. handler : String_.t option;
    (*

    The entry point to use for the source code when running the canary. This field is required when you don't specify BlueprintTypes and is not allowed when you specify BlueprintTypes.

    *)
  3. blueprintTypes : BlueprintTypes.t option;
    (*

    BlueprintTypes is a list of templates that enable simplified canary creation. You can create canaries for common monitoring scenarios by providing only a JSON configuration file instead of writing custom scripts. The only supported value is multi-checks. Multi-checks monitors HTTP/DNS/SSL/TCP endpoints with built-in authentication schemes (Basic, API Key, OAuth, SigV4) and assertion capabilities. When you specify BlueprintTypes, the Handler field cannot be specified since the blueprint provides a pre-defined entry point. BlueprintTypes is supported only on canaries for syn-nodejs-3.0 runtime or later.

    *)
  4. dependencies : Dependencies.t option;
    (*

    A list of dependencies that are used for running this canary. The dependencies are specified as a key-value pair, where the key is the type of dependency and the value is the dependency reference.

    *)
}
Sourceval make : ?sourceLocationArn:??? -> ?handler:??? -> ?blueprintTypes:??? -> ?dependencies:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `String of BlueprintType.t | `Structure of (string * [> `Enum of string | `String of String_.t ]) list ] list | `String of String_.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t