Skip to content
v2.277.0

ParallelismConfigurationProperty Struct ​

Describes parameters for how a Flink-based Kinesis Data Analytics application executes multiple tasks simultaneously.

For more information about parallelism, see Parallel Execution 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 parallelismConfigurationProperty: kinesisanalyticsv2.CfnApplication.ParallelismConfigurationProperty = {
  configurationType: 'configurationType',

  // the properties below are optional
  autoScalingEnabled: false,
  parallelism: 123,
  parallelismPerKpu: 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

parallelism_configuration_property = kinesisanalyticsv2.CfnApplication.ParallelismConfigurationProperty(
    configuration_type="configurationType",

    # the properties below are optional
    auto_scaling_enabled=False,
    parallelism=123,
    parallelism_per_kpu=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.*;

ParallelismConfigurationProperty parallelismConfigurationProperty = ParallelismConfigurationProperty.builder()
        .configurationType("configurationType")

        // the properties below are optional
        .autoScalingEnabled(false)
        .parallelism(123)
        .parallelismPerKpu(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 parallelismConfigurationProperty = new ParallelismConfigurationProperty {
    ConfigurationType = "configurationType",

    // the properties below are optional
    AutoScalingEnabled = false,
    Parallelism = 123,
    ParallelismPerKpu = 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"

parallelismConfigurationProperty := &ParallelismConfigurationProperty{
	ConfigurationType: jsii.String("configurationType"),

	// the properties below are optional
	AutoScalingEnabled: jsii.Boolean(false),
	Parallelism: jsii.Number(123),
	ParallelismPerKpu: jsii.Number(123),
}

Properties ​

autoScalingEnabledoptionalboolean | IResolvableauto_scaling_enabledoptionaltyping.Union[bool, IResolvable]autoScalingEnabledoptionalBooleanAutoScalingEnabledoptionalboolAutoScalingEnabledoptionalinterface{} #
Describes whether the Managed Service for Apache Flink service can increase the parallelism of the application in response to increased throughput.
configurationTypestringconfiguration_typestrconfigurationTypeStringConfigurationTypestringConfigurationType*string required #
Describes whether the application uses the default parallelism for the Managed Service for Apache Flink service.

You must set this property to CUSTOM in order to change your application's AutoScalingEnabled , Parallelism , or ParallelismPerKPU properties.

parallelismoptionalnumberparallelismoptionalint | floatparallelismoptionalNumberParallelismoptionaldoubleParallelismoptional*float64 #
Describes the initial number of parallel tasks that a Java-based Kinesis Data Analytics application can perform.
notes

The Kinesis Data Analytics service can increase this number automatically if ParallelismConfiguration:AutoScalingEnabled is set to true .

parallelismPerKpuoptionalnumberparallelism_per_kpuoptionalint | floatparallelismPerKpuoptionalNumberParallelismPerKpuoptionaldoubleParallelismPerKpuoptional*float64 #
Describes the number of parallel tasks that a Java-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application.

For more information about KPUs, see Amazon Kinesis Data Analytics Pricing .