Interface CfnFunction.ConcurrentExecutorConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFunction.ConcurrentExecutorConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnFunction
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 software.amazon.awscdk.services.mediatailor.*;
ConcurrentExecutorConfigurationProperty concurrentExecutorConfigurationProperty = ConcurrentExecutorConfigurationProperty.builder()
.functionList(List.of(FunctionRefProperty.builder()
.alias("alias")
.functionId("functionId")
.runCondition("runCondition")
.build()))
.maxConcurrency(123)
.output(Map.of(
"outputKey", "output"))
.runtime("runtime")
.timeoutMilliseconds(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFunction.ConcurrentExecutorConfigurationPropertystatic final classAn implementation forCfnFunction.ConcurrentExecutorConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The list of 1 to 10 child functions that MediaTailor runs in parallel.The maximum number of child functions that MediaTailor runs simultaneously.A map of output bindings that controls which bindings the executor commits to the session state after all child functions complete.The expression language used to evaluate expressions in the function configuration.The maximum time, in milliseconds, for all child functions to complete.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFunctionList
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.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnFunction.FunctionRefProperty>- See Also:
-
getMaxConcurrency
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.
- See Also:
-
getOutput
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.
Returns union: either
IResolvableor Mapinvalid input: '<'String,String>- See Also:
-
getRuntime
The expression language used to evaluate expressions in the function configuration.Set this to JSONATA.
- See Also:
-
getTimeoutMilliseconds
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.
- See Also:
-
builder
-