java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.kinesis.analytics.flink.ApplicationCode
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.660Z") @Stability(Experimental) public abstract class ApplicationCode extends software.amazon.jsii.JsiiObject
(experimental) Code configuration providing the location to a Flink application JAR file.

Example:

 import path.*;
 import software.amazon.awscdk.core.*;
 import software.amazon.awscdk.services.kinesis.analytics.flink.*;
 import software.amazon.awscdk.services.cloudwatch.*;
 App app = new App();
 Stack stack = new Stack(app, "FlinkAppTest");
 Application flinkApp = Application.Builder.create(stack, "App")
         .code(ApplicationCode.fromAsset(join(__dirname, "code-asset")))
         .runtime(Runtime.FLINK_1_11)
         .build();
 Alarm.Builder.create(stack, "Alarm")
         .metric(flinkApp.metricFullRestarts())
         .evaluationPeriods(1)
         .threshold(3)
         .build();
 app.synth();
 
  • 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
     
    protected
    ApplicationCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    ApplicationCode(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(Construct scope)
    (experimental) A method to lazily bind asset resources to the parent FlinkApplication.
    (experimental) Reference code from a local directory containing a Flink JAR file.
    fromAsset(String path, AssetOptions options)
    (experimental) Reference code from a local directory containing a Flink JAR file.
    fromBucket(IBucket bucket, String fileKey)
    (experimental) Reference code from an S3 bucket.
    fromBucket(IBucket bucket, String fileKey, String objectVersion)
    (experimental) Reference code from an S3 bucket.

    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

    • ApplicationCode

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

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

      @Stability(Experimental) protected ApplicationCode()
  • Method Details

    • fromAsset

      @Stability(Experimental) @NotNull public static ApplicationCode fromAsset(@NotNull String path, @Nullable AssetOptions options)
      (experimental) Reference code from a local directory containing a Flink JAR file.

      Parameters:
      path -
      • a local directory path.
      This parameter is required.
      options -
    • fromAsset

      @Stability(Experimental) @NotNull public static ApplicationCode fromAsset(@NotNull String path)
      (experimental) Reference code from a local directory containing a Flink JAR file.

      Parameters:
      path -
      • a local directory path.
      This parameter is required.
    • fromBucket

      @Stability(Experimental) @NotNull public static ApplicationCode fromBucket(@NotNull IBucket bucket, @NotNull String fileKey, @Nullable String objectVersion)
      (experimental) Reference code from an S3 bucket.

      Parameters:
      bucket -
      • an s3 bucket.
      This parameter is required.
      fileKey -
      • a key pointing to a Flink JAR file.
      This parameter is required.
      objectVersion -
      • an optional version string for the provided fileKey.
    • fromBucket

      @Stability(Experimental) @NotNull public static ApplicationCode fromBucket(@NotNull IBucket bucket, @NotNull String fileKey)
      (experimental) Reference code from an S3 bucket.

      Parameters:
      bucket -
      • an s3 bucket.
      This parameter is required.
      fileKey -
      • a key pointing to a Flink JAR file.
      This parameter is required.
    • bind

      @Stability(Experimental) @NotNull public abstract ApplicationCodeConfig bind(@NotNull Construct scope)
      (experimental) A method to lazily bind asset resources to the parent FlinkApplication.

      Parameters:
      scope - This parameter is required.