package awscdksyntheticsalpha // Properties for specifying a test. // // Example: // canary := synthetics.NewCanary(this, jsii.String("MyCanary"), &CanaryProps{ // Schedule: synthetics.Schedule_Rate(awscdk.Duration_Minutes(jsii.Number(5))), // Test: synthetics.Test_Custom(&CustomTestOptions{ // Code: synthetics.Code_FromAsset(path.join(__dirname, jsii.String("canary"))), // Handler: jsii.String("index.handler"), // }), // Runtime: synthetics.Runtime_SYNTHETICS_NODEJS_PUPPETEER_4_0(), // EnvironmentVariables: map[string]*string{ // "stage": jsii.String("prod"), // }, // }) // // Experimental. type CustomTestOptions struct { // The code of the canary script. // Experimental. Code Code `field:"required" json:"code" yaml:"code"` // The handler for the code. // // Must end with `.handler`. // Experimental. Handler *string `field:"required" json:"handler" yaml:"handler"` }