Test

class aws_cdk.aws_synthetics.Test(*args: Any, **kwargs)

Bases: object

(experimental) Specify a test that the canary should run.

Stability

experimental

Attributes

code

(experimental) The code that the canary should run.

Stability

experimental

Return type

Code

handler

(experimental) The handler of the canary.

Stability

experimental

Return type

str

Static Methods

classmethod custom(*, code, handler)

(experimental) Specify a custom test with your own code.

Parameters
  • code (Code) – (experimental) The code of the canary script.

  • handler (str) – (experimental) The handler for the code. Must end with .handler.

Return type

Test

Returns

Test associated with the specified Code object

Stability

experimental