@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:41.817Z") @Stability(value=Experimental) public interface CustomTestOptions extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CustomTestOptions.Builder
A builder for
CustomTestOptions |
static class |
CustomTestOptions.Jsii$Proxy
An implementation for
CustomTestOptions |
| Modifier and Type | Method and Description |
|---|---|
static CustomTestOptions.Builder |
builder() |
Code |
getCode()
(experimental) The code of the canary script.
|
String |
getHandler()
(experimental) The handler for the code.
|
@Stability(value=Experimental) @NotNull Code getCode()
@Stability(value=Experimental) @NotNull String getHandler()
Must end with .handler.
@Stability(value=Experimental) static CustomTestOptions.Builder builder()
CustomTestOptions.Builder of CustomTestOptionsCopyright © 2022. All rights reserved.