Class CustomTestOptions
Properties for specifying a test.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Synthetics
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CustomTestOptions : Object, ICustomTestOptions
Syntax (vb)
Public Class CustomTestOptions
Inherits Object
Implements ICustomTestOptions
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK;
var canary = new Canary(this, "MyCanary", new CanaryProps {
Schedule = Schedule.Rate(Duration.Minutes(5)),
Test = Test.Custom(new CustomTestOptions {
Code = Code.FromAsset(Join(__dirname, "canary")),
Handler = "index.handler"
}),
Runtime = Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2,
Memory = Size.Mebibytes(1024)
});
Synopsis
Constructors
Custom |
Properties
Code | The code of the canary script. |
Handler | The handler for the code. |
Constructors
CustomTestOptions()
public CustomTestOptions()
Properties
Code
Handler
The handler for the code.
public string Handler { get; set; }
Property Value
System.
Remarks
Must end with .handler
.