@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:11.012Z") @Stability(value=Experimental) public interface ApplicationProps extends software.amazon.jsii.JsiiSerializable
Example:
Bucket bucket;
Application flinkApp = Application.Builder.create(this, "Application")
.propertyGroups(PropertyGroups.builder()
.FlinkApplicationProperties(Map.of(
"inputStreamName", "my-input-kinesis-stream",
"outputStreamName", "my-output-kinesis-stream"))
.build())
// ...
.runtime(Runtime.FLINK_1_13)
.code(ApplicationCode.fromBucket(bucket, "my-app.jar"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ApplicationProps.Builder
A builder for
ApplicationProps |
static class |
ApplicationProps.Jsii$Proxy
An implementation for
ApplicationProps |
| Modifier and Type | Method and Description |
|---|---|
static ApplicationProps.Builder |
builder() |
default String |
getApplicationName()
(experimental) A name for your Application that is unique to an AWS account.
|
default Boolean |
getAutoScalingEnabled()
(experimental) Whether the Kinesis Data Analytics service can increase the parallelism of the application in response to resource usage.
|
default Boolean |
getCheckpointingEnabled()
(experimental) Whether checkpointing is enabled while your application runs.
|
default Duration |
getCheckpointInterval()
(experimental) The interval between checkpoints.
|
ApplicationCode |
getCode()
(experimental) The Flink code asset to run.
|
default ILogGroup |
getLogGroup()
(experimental) The log group to send log entries to.
|
default LogLevel |
getLogLevel()
(experimental) The level of log verbosity from the Flink application.
|
default MetricsLevel |
getMetricsLevel()
(experimental) Describes the granularity of the CloudWatch metrics for an application.
|
default Duration |
getMinPauseBetweenCheckpoints()
(experimental) The minimum amount of time in to wait after a checkpoint finishes to start a new checkpoint.
|
default Number |
getParallelism()
(experimental) The initial parallelism for the application.
|
default Number |
getParallelismPerKpu()
(experimental) The Flink parallelism allowed per Kinesis Processing Unit (KPU).
|
default PropertyGroups |
getPropertyGroups()
(experimental) Configuration PropertyGroups.
|
default RemovalPolicy |
getRemovalPolicy()
(experimental) Provide a RemovalPolicy to override the default.
|
default IRole |
getRole()
(experimental) A role to use to grant permissions to your application.
|
Runtime |
getRuntime()
(experimental) The Flink version to use for this application.
|
default Boolean |
getSnapshotsEnabled()
(experimental) Determines if Flink snapshots are enabled.
|
@Stability(value=Experimental) @NotNull ApplicationCode getCode()
@Stability(value=Experimental) @NotNull Runtime getRuntime()
@Stability(value=Experimental) @Nullable default String getApplicationName()
Default: - CloudFormation-generated name
@Stability(value=Experimental) @Nullable default Boolean getAutoScalingEnabled()
Default: true
@Stability(value=Experimental) @Nullable default Boolean getCheckpointingEnabled()
Default: true
@Stability(value=Experimental) @Nullable default Duration getCheckpointInterval()
Default: 1 minute
@Stability(value=Experimental) @Nullable default ILogGroup getLogGroup()
Default: CDK's default LogGroup
@Stability(value=Experimental) @Nullable default LogLevel getLogLevel()
Default: FlinkLogLevel.INFO
@Stability(value=Experimental) @Nullable default MetricsLevel getMetricsLevel()
Use caution with Parallelism level metrics. Parallelism granularity logs metrics for each parallel thread and can quickly become expensive when parallelism is high (e.g. > 64).
Default: MetricsLevel.APPLICATION
@Stability(value=Experimental) @Nullable default Duration getMinPauseBetweenCheckpoints()
Default: 5 seconds
@Stability(value=Experimental) @Nullable default Number getParallelism()
Kinesis Data Analytics can stop the app, increase the parallelism, and start the app again if autoScalingEnabled is true (the default value).
Default: 1
@Stability(value=Experimental) @Nullable default Number getParallelismPerKpu()
Default: 1
@Stability(value=Experimental) @Nullable default PropertyGroups getPropertyGroups()
You can use these property groups to pass arbitrary runtime configuration values to your Flink app.
Default: No property group configuration provided to the Flink app
@Stability(value=Experimental) @Nullable default RemovalPolicy getRemovalPolicy()
Default: RemovalPolicy.DESTROY
@Stability(value=Experimental) @Nullable default IRole getRole()
Prefer omitting this property and using the default role.
Default: - a new Role will be created
@Stability(value=Experimental) @Nullable default Boolean getSnapshotsEnabled()
Default: true
@Stability(value=Experimental) static ApplicationProps.Builder builder()
ApplicationProps.Builder of ApplicationPropsCopyright © 2022. All rights reserved.