Interface CustomTestOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CustomTestOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.471Z")
@Stability(Experimental)
public interface CustomTestOptions
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for specifying a test.
Example:
Canary canary = Canary.Builder.create(this, "MyCanary")
.schedule(Schedule.rate(Duration.minutes(5)))
.test(Test.custom(CustomTestOptions.builder()
.code(Code.fromAsset(join(__dirname, "canary")))
.handler("index.handler")
.build()))
.runtime(Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_1)
.environmentVariables(Map.of(
"stage", "prod"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCustomTestOptionsstatic final classAn implementation forCustomTestOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomTestOptions.Builderbuilder()getCode()(experimental) The code of the canary script.(experimental) The handler for the code.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCode
(experimental) The code of the canary script. -
getHandler
(experimental) The handler for the code.Must end with
.handler. -
builder
- Returns:
- a
CustomTestOptions.BuilderofCustomTestOptions
-