java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.synthetics.alpha.Code
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
Direct Known Subclasses:
AssetCode, InlineCode, S3Code

@Generated(value="jsii-pacmak/1.89.0 (build 2f74b3e)", date="2023-10-16T19:21:19.999Z") @Stability(Deprecated) @Deprecated public abstract class Code extends software.amazon.jsii.JsiiObject
Deprecated.
(deprecated) The code the canary should execute.

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_4_0)
         .environmentVariables(Map.of(
                 "stage", "prod"))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Deprecated.
    protected
    Code(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    Deprecated.
     
    protected
    Code(software.amazon.jsii.JsiiObjectRef objRef)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract CodeConfig
    bind(software.constructs.Construct scope, String handler, RuntimeFamily family)
    Deprecated.
    static AssetCode
    fromAsset(String assetPath)
    Deprecated.
    static AssetCode
    fromAsset(String assetPath, AssetOptions options)
    Deprecated.
    static S3Code
    fromBucket(IBucket bucket, String key)
    Deprecated.
    static S3Code
    fromBucket(IBucket bucket, String key, String objectVersion)
    Deprecated.
    static InlineCode
    Deprecated.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson