@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:51.504Z") @Stability(value=Experimental) public abstract class ApplicationCode extends software.amazon.jsii.JsiiObject
Example:
import path.*;
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.core.*;
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();
| Modifier | Constructor and Description |
|---|---|
protected |
ApplicationCode() |
protected |
ApplicationCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ApplicationCode(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract ApplicationCodeConfig |
bind(Construct scope)
(experimental) A method to lazily bind asset resources to the parent FlinkApplication.
|
static ApplicationCode |
fromAsset(String path)
(experimental) Reference code from a local directory containing a Flink JAR file.
|
static ApplicationCode |
fromAsset(String path,
AssetOptions options)
(experimental) Reference code from a local directory containing a Flink JAR file.
|
static ApplicationCode |
fromBucket(IBucket bucket,
String fileKey)
(experimental) Reference code from an S3 bucket.
|
static ApplicationCode |
fromBucket(IBucket bucket,
String fileKey,
String objectVersion)
(experimental) Reference code from an S3 bucket.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ApplicationCode(software.amazon.jsii.JsiiObjectRef objRef)
protected ApplicationCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) protected ApplicationCode()
@Stability(value=Experimental) @NotNull public static ApplicationCode fromAsset(@NotNull String path, @Nullable AssetOptions options)
path - - a local directory path. This parameter is required.options - @Stability(value=Experimental) @NotNull public static ApplicationCode fromAsset(@NotNull String path)
path - - a local directory path. This parameter is required.@Stability(value=Experimental) @NotNull public static ApplicationCode fromBucket(@NotNull IBucket bucket, @NotNull String fileKey, @Nullable String objectVersion)
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.@Stability(value=Experimental) @NotNull public static ApplicationCode fromBucket(@NotNull IBucket bucket, @NotNull String fileKey)
bucket - - an s3 bucket. This parameter is required.fileKey - - a key pointing to a Flink JAR file. This parameter is required.@Stability(value=Experimental) @NotNull public abstract ApplicationCodeConfig bind(@NotNull Construct scope)
scope - This parameter is required.Copyright © 2022. All rights reserved.