interface ConcurrentExecutorConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaTailor.CfnFunction.ConcurrentExecutorConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsmediatailor#CfnFunction_ConcurrentExecutorConfigurationProperty |
Java | software.amazon.awscdk.services.mediatailor.CfnFunction.ConcurrentExecutorConfigurationProperty |
Python | aws_cdk.aws_mediatailor.CfnFunction.ConcurrentExecutorConfigurationProperty |
TypeScript | aws-cdk-lib » aws_mediatailor » CfnFunction » ConcurrentExecutorConfigurationProperty |
The configuration for a CONCURRENT_EXECUTOR function.
A CONCURRENT_EXECUTOR runs a set of child functions in parallel, up to a maximum concurrency, and combines their output when all functions complete. For more information about functions, see Working with functions (https://docs.aws.amazon.com/mediatailor/latest/ug/monetization-functions.html) in the MediaTailor User Guide.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediatailor as mediatailor } from 'aws-cdk-lib';
const concurrentExecutorConfigurationProperty: mediatailor.CfnFunction.ConcurrentExecutorConfigurationProperty = {
functionList: [{
alias: 'alias',
functionId: 'functionId',
runCondition: 'runCondition',
}],
maxConcurrency: 123,
output: {
outputKey: 'output',
},
runtime: 'runtime',
timeoutMilliseconds: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| function | IResolvable | (IResolvable | Function)[] | The list of 1 to 10 child functions that MediaTailor runs in parallel. |
| max | number | The maximum number of child functions that MediaTailor runs simultaneously. |
| output | IResolvable | { [string]: string } | A map of output bindings that controls which bindings the executor commits to the session state after all child functions complete. |
| runtime | string | The expression language used to evaluate expressions in the function configuration. |
| timeout | number | The maximum time, in milliseconds, for all child functions to complete. |
functionList
Type:
IResolvable | (IResolvable | Function)[]
The list of 1 to 10 child functions that MediaTailor runs in parallel.
Each entry specifies a child function to execute and an optional run condition expression that controls whether the function runs. Child functions cannot themselves be executors, and each child function's resolved namespace must be unique across the list.
maxConcurrency
Type:
number
The maximum number of child functions that MediaTailor runs simultaneously.
When the list contains more functions than MaxConcurrency, MediaTailor starts additional functions as running ones complete, so that no more than MaxConcurrency functions run at the same time. Valid values are 1 to 2.
output
Type:
IResolvable | { [string]: string }
A map of output bindings that controls which bindings the executor commits to the session state after all child functions complete.
Each key is a namespaced output path, and each value is an expression that MediaTailor evaluates against the combined results of the child functions.
runtime
Type:
string
The expression language used to evaluate expressions in the function configuration.
Set this to JSONATA.
timeoutMilliseconds
Type:
number
The maximum time, in milliseconds, for all child functions to complete.
This timeout covers every function in the list, including any HTTP calls the child functions make. If the executor exceeds this timeout, MediaTailor discards all output from the executor and proceeds with default behavior. Valid values are 100 to 2000.

.NET
Go
Java
Python
TypeScript