Class Test
(experimental) Specify a test that the canary should run.
Inheritance
Namespace: Amazon.CDK.AWS.Synthetics
Assembly: Amazon.CDK.AWS.Synthetics.dll
Syntax (csharp)
public class Test : DeputyBase
Syntax (vb)
Public Class Test
Inherits DeputyBase
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
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_3_1,
EnvironmentVariables = new Dictionary<string, string> {
{ "stage", "prod" }
}
});
Synopsis
Constructors
Test(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Test(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Code | (experimental) The code that the canary should run. |
Handler | (experimental) The handler of the canary. |
Methods
Custom(ICustomTestOptions) | (experimental) Specify a custom test with your own code. |
Constructors
Test(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Test(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Test(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Test(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Code
(experimental) The code that the canary should run.
public virtual Code Code { get; }
Property Value
Remarks
Stability: Experimental
Handler
(experimental) The handler of the canary.
public virtual string Handler { get; }
Property Value
System.String
Remarks
Stability: Experimental
Methods
Custom(ICustomTestOptions)
(experimental) Specify a custom test with your own code.
public static Test Custom(ICustomTestOptions options)
Parameters
- options ICustomTestOptions
The configuration options.
Returns
Test
associated with the specified Code object
Remarks
Stability: Experimental