# ParallelismConfigurationProperty

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

For more information about parallelism, see [Parallel Execution](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/execution/parallel/) in the [Apache Flink Documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `autoScalingEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Describes whether the Managed Service for Apache Flink service can increase the parallelism of the application in response to increased throughput.

- `configurationType`: 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.

- `parallelism`: number — Describes the initial number of parallel tasks that a Java-based Kinesis Data Analytics application can perform.

  The Kinesis Data Analytics service can increase this number automatically if [ParallelismConfiguration:AutoScalingEnabled](https://docs.aws.amazon.com/managed-flink/latest/apiv2/API_ParallelismConfiguration.html#kinesisanalytics-Type-ParallelismConfiguration-AutoScalingEnabled.html) is set to `true` .

- `parallelismPerKpu`: number — 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](https://docs.aws.amazon.com/kinesis/data-analytics/pricing/) .
