CanaryCodeArgs

data class CanaryCodeArgs(val handler: Output<String>, val s3Bucket: Output<String>? = null, val s3Key: Output<String>? = null, val s3ObjectVersion: Output<String>? = null, val script: Output<String>? = null, val sourceLocationArn: Output<String>? = null) : ConvertibleToJava<CanaryCodeArgs>

Constructors

Link copied to clipboard
constructor(handler: Output<String>, s3Bucket: Output<String>? = null, s3Key: Output<String>? = null, s3ObjectVersion: Output<String>? = null, script: Output<String>? = null, sourceLocationArn: Output<String>? = null)

Properties

Link copied to clipboard
val handler: Output<String>

The entry point to use for the source code when running the canary. For canaries that use the syn-python-selenium-1.0 runtime or a syn-nodejs.puppeteer runtime earlier than syn-nodejs.puppeteer-3.4 , the handler must be specified as *fileName* .handler . For syn-python-selenium-1.1 , syn-nodejs.puppeteer-3.4 , and later runtimes, the handler can be specified as *fileName* . *functionName* , or you can specify a folder where canary scripts reside as *folder* / *fileName* . *functionName* .

Link copied to clipboard
val s3Bucket: Output<String>? = null

If your canary script is located in S3, specify the bucket name here. The bucket must already exist.

Link copied to clipboard
val s3Key: Output<String>? = null

The S3 key of your script. For more information, see Working with Amazon S3 Objects .

Link copied to clipboard
val s3ObjectVersion: Output<String>? = null

The S3 version ID of your script.

Link copied to clipboard
val script: Output<String>? = null

If you input your canary script directly into the canary instead of referring to an S3 location, the value of this parameter is the script in plain text. It can be up to 5 MB.

Link copied to clipboard
val sourceLocationArn: Output<String>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): CanaryCodeArgs