@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-02-09T02:01:26.363Z") @Stability(value=Experimental) public class Test extends software.amazon.jsii.JsiiObject
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_8)
.environmentVariables(Map.of(
"stage", "prod"))
.build();
| Modifier | Constructor and Description |
|---|---|
protected |
Test(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Test(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static Test |
custom(CustomTestOptions options)
(experimental) Specify a custom test with your own code.
|
Code |
getCode()
(experimental) The code that the canary should run.
|
String |
getHandler()
(experimental) The handler of the canary.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Test(software.amazon.jsii.JsiiObjectRef objRef)
protected Test(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static Test custom(@NotNull CustomTestOptions options)
options - The configuration options. This parameter is required.@Stability(value=Experimental) @NotNull public Code getCode()
@Stability(value=Experimental) @NotNull public String getHandler()
Copyright © 2023. All rights reserved.