Class ApplicationCode
(experimental) Code configuration providing the location to a Flink application JAR file.
Inheritance
Namespace: Amazon.CDK.AWS.KinesisAnalyticsFlink
Assembly: Amazon.CDK.AWS.KinesisAnalyticsFlink.dll
Syntax (csharp)
public abstract class ApplicationCode : DeputyBase
Syntax (vb)
Public MustInherit Class ApplicationCode
Inherits DeputyBase
Remarks
Stability: Experimental
ExampleMetadata: lit=test/integ.application.lit.ts ! show infused
Examples
using Path;
using Amazon.CDK;
using Amazon.CDK.AWS.KinesisAnalyticsFlink;
using Amazon.CDK.AWS.CloudWatch;
var app = new App();
var stack = new Stack(app, "FlinkAppTest");
var flinkApp = new Application(stack, "App", new ApplicationProps {
Code = ApplicationCode.FromAsset(Join(__dirname, "code-asset")),
Runtime = Runtime.FLINK_1_11
});
new Alarm(stack, "Alarm", new AlarmProps {
Metric = flinkApp.MetricFullRestarts(),
EvaluationPeriods = 1,
Threshold = 3
});
app.Synth();
Synopsis
Constructors
ApplicationCode() | |
ApplicationCode(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ApplicationCode(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct) | (experimental) A method to lazily bind asset resources to the parent FlinkApplication. |
FromAsset(String, IAssetOptions) | (experimental) Reference code from a local directory containing a Flink JAR file. |
FromBucket(IBucket, String, String) | (experimental) Reference code from an S3 bucket. |
Constructors
ApplicationCode()
protected ApplicationCode()
Remarks
Stability: Experimental
ApplicationCode(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ApplicationCode(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ApplicationCode(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ApplicationCode(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(Construct)
(experimental) A method to lazily bind asset resources to the parent FlinkApplication.
public abstract IApplicationCodeConfig Bind(Construct scope)
Parameters
- scope Construct
Returns
Remarks
Stability: Experimental
FromAsset(String, IAssetOptions)
(experimental) Reference code from a local directory containing a Flink JAR file.
public static ApplicationCode FromAsset(string path, IAssetOptions options = null)
Parameters
- path System.String
- a local directory path.
- options IAssetOptions
- a local directory path.
Returns
Remarks
Stability: Experimental
Parm: options - standard s3 AssetOptions
FromBucket(IBucket, String, String)
(experimental) Reference code from an S3 bucket.
public static ApplicationCode FromBucket(IBucket bucket, string fileKey, string objectVersion = null)
Parameters
- bucket IBucket
- an s3 bucket.
- fileKey System.String
- a key pointing to a Flink JAR file.
- objectVersion System.String
- an optional version string for the provided fileKey.
Returns
Remarks
Stability: Experimental