Show / Hide Table of Contents

Class CustomTestOptions

Properties for specifying a test.

Inheritance
object
CustomTestOptions
Implements
ICustomTestOptions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Synthetics
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CustomTestOptions : ICustomTestOptions
Syntax (vb)
Public Class CustomTestOptions Implements ICustomTestOptions
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK;


            var canary = new Canary(this, "MyCanary", new CanaryProps {
                Schedule = Schedule.Rate(Duration.Minutes(5)),
                Test = Test.Custom(new CustomTestOptions {
                    Code = Code.FromAsset(Join(__dirname, "canary")),
                    Handler = "index.handler"
                }),
                Runtime = Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2,
                Memory = Size.Mebibytes(1024)
            });

Synopsis

Constructors

CustomTestOptions()

Properties for specifying a test.

Properties

Code

The code of the canary script.

Handler

The handler for the code.

Constructors

CustomTestOptions()

Properties for specifying a test.

public CustomTestOptions()
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK;


            var canary = new Canary(this, "MyCanary", new CanaryProps {
                Schedule = Schedule.Rate(Duration.Minutes(5)),
                Test = Test.Custom(new CustomTestOptions {
                    Code = Code.FromAsset(Join(__dirname, "canary")),
                    Handler = "index.handler"
                }),
                Runtime = Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2,
                Memory = Size.Mebibytes(1024)
            });

Properties

Code

The code of the canary script.

public Code Code { get; set; }
Property Value

Code

Remarks

ExampleMetadata: infused

Handler

The handler for the code.

public string Handler { get; set; }
Property Value

string

Remarks

Must end with .handler.

Implements

ICustomTestOptions
Back to top Generated by DocFX