@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-14T16:25:29.544Z")
public interface CustomTestOptions
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.
|
java.lang.String |
getHandler()
(experimental) The handler for the code.
|
Code getCode()
java.lang.String getHandler()
Must end with .handler
.
static CustomTestOptions.Builder builder()
CustomTestOptions.Builder
of CustomTestOptions