Skip to content
v2.278.0

CheckpointConfigurationProperty Struct ​

Describes an application's checkpointing configuration.

Checkpointing is the process of persisting application state for fault tolerance. For more information, see Checkpoints for Fault Tolerance in the Apache Flink Documentation .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesisanalyticsv2 as kinesisanalyticsv2 } from 'aws-cdk-lib';
const checkpointConfigurationProperty: kinesisanalyticsv2.CfnApplication.CheckpointConfigurationProperty = {
  configurationType: 'configurationType',

  // the properties below are optional
  checkpointingEnabled: false,
  checkpointInterval: 123,
  minPauseBetweenCheckpoints: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_kinesisanalyticsv2 as kinesisanalyticsv2

checkpoint_configuration_property = kinesisanalyticsv2.CfnApplication.CheckpointConfigurationProperty(
    configuration_type="configurationType",

    # the properties below are optional
    checkpointing_enabled=False,
    checkpoint_interval=123,
    min_pause_between_checkpoints=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.kinesisanalyticsv2.*;

CheckpointConfigurationProperty checkpointConfigurationProperty = CheckpointConfigurationProperty.builder()
        .configurationType("configurationType")

        // the properties below are optional
        .checkpointingEnabled(false)
        .checkpointInterval(123)
        .minPauseBetweenCheckpoints(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.KinesisAnalyticsV2;

var checkpointConfigurationProperty = new CheckpointConfigurationProperty {
    ConfigurationType = "configurationType",

    // the properties below are optional
    CheckpointingEnabled = false,
    CheckpointInterval = 123,
    MinPauseBetweenCheckpoints = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

checkpointConfigurationProperty := &CheckpointConfigurationProperty{
	ConfigurationType: jsii.String("configurationType"),

	// the properties below are optional
	CheckpointingEnabled: jsii.Boolean(false),
	CheckpointInterval: jsii.Number(123),
	MinPauseBetweenCheckpoints: jsii.Number(123),
}

Properties ​

checkpointingEnabledoptionalboolean | IResolvablecheckpointing_enabledoptionaltyping.Union[bool, IResolvable]checkpointingEnabledoptionalBooleanCheckpointingEnabledoptionalboolCheckpointingEnabledoptionalinterface{} #
Describes whether checkpointing is enabled for a Managed Service for Apache Flink application.

If CheckpointConfiguration.ConfigurationType is DEFAULT , the application will use a CheckpointingEnabled value of true , even if this value is set to another value using this API or in application code.

checkpointIntervaloptionalnumbercheckpoint_intervaloptionalint | floatcheckpointIntervaloptionalNumberCheckpointIntervaloptionaldoubleCheckpointIntervaloptional*float64 #
Describes the interval in milliseconds between checkpoint operations.

If CheckpointConfiguration.ConfigurationType is DEFAULT , the application will use a CheckpointInterval value of 60000, even if this value is set to another value using this API or in application code.

configurationTypestringconfiguration_typestrconfigurationTypeStringConfigurationTypestringConfigurationType*string required #
Describes whether the application uses Managed Service for Apache Flink' default checkpointing behavior.
notes

You must set this property to CUSTOM in order to set the CheckpointingEnabled , CheckpointInterval , or MinPauseBetweenCheckpoints parameters.

If this value is set to DEFAULT , the application will use the following values, even if they are set to other values using APIs or application code:

  • CheckpointingEnabled: true
  • CheckpointInterval: 60000
  • MinPauseBetweenCheckpoints: 5000
minPauseBetweenCheckpointsoptionalnumbermin_pause_between_checkpointsoptionalint | floatminPauseBetweenCheckpointsoptionalNumberMinPauseBetweenCheckpointsoptionaldoubleMinPauseBetweenCheckpointsoptional*float64 #
Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start.
notes

If a checkpoint operation takes longer than the CheckpointInterval , the application otherwise performs continual checkpoint operations. For more information, see Tuning Checkpointing in the Apache Flink Documentation .

If CheckpointConfiguration.ConfigurationType is DEFAULT , the application will use a MinPauseBetweenCheckpoints value of 5000, even if this value is set using this API or in application code.