Interface CustomTestOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CustomTestOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.89.0 (build 2f74b3e)",
date="2023-10-16T19:21:20.000Z")
@Stability(Deprecated)
@Deprecated
public interface CustomTestOptions
extends software.amazon.jsii.JsiiSerializable
Deprecated.
(deprecated) 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_4_0)
.environmentVariables(Map.of(
"stage", "prod"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classDeprecated.static final classDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomTestOptions.Builderbuilder()Deprecated.getCode()Deprecated.Deprecated.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCode
Deprecated.(deprecated) The code of the canary script. -
getHandler
Deprecated.(deprecated) The handler for the code.Must end with
.handler. -
builder
Deprecated.- Returns:
- a
CustomTestOptions.BuilderofCustomTestOptions
-