Class InlineCode

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.synthetics.Code
software.amazon.awscdk.services.synthetics.InlineCode
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.472Z") @Stability(Experimental) public class InlineCode extends Code
(experimental) Canary code from an inline string.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.synthetics.*;
 InlineCode inlineCode = new InlineCode("code");
 
  • 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
    InlineCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    InlineCode(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(software.constructs.Construct _scope, String handler, RuntimeFamily _family)
    (experimental) Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.

    Methods inherited from class software.amazon.awscdk.services.synthetics.Code

    fromAsset, fromAsset, fromBucket, fromBucket, fromInline

    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
  • Constructor Details

    • InlineCode

      protected InlineCode(software.amazon.jsii.JsiiObjectRef objRef)
    • InlineCode

      protected InlineCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • InlineCode

      @Stability(Experimental) public InlineCode(@NotNull String code)
      Parameters:
      code - This parameter is required.
  • Method Details

    • bind

      @Stability(Experimental) @NotNull public CodeConfig bind(@NotNull software.constructs.Construct _scope, @NotNull String handler, @NotNull RuntimeFamily _family)
      (experimental) Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.

      Specified by:
      bind in class Code
      Parameters:
      _scope - This parameter is required.
      handler - This parameter is required.
      _family - This parameter is required.
      Returns:
      a bound CodeConfig.