Class CustomTestOptions
Properties for specifying a test.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Synthetics
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CustomTestOptions : ICustomTestOptions
Syntax (vb)
Public Class CustomTestOptions 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
CustomTestOptions() | Properties for specifying a test. |
Properties
Code | The code of the canary script. |
Handler | The handler for the code. |
Constructors
CustomTestOptions()
Properties for specifying a test.
public CustomTestOptions()
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)
});
Properties
Code
The code of the canary script.
public Code Code { get; set; }
Property Value
Remarks
ExampleMetadata: infused
Handler
The handler for the code.
public string Handler { get; set; }
Property Value
Remarks
Must end with .handler
.