Class CfnFunction.ConcurrentExecutorConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediatailor.CfnFunction.ConcurrentExecutorConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunction.ConcurrentExecutorConfigurationProperty>
- Enclosing interface:
CfnFunction.ConcurrentExecutorConfigurationProperty
@Stability(Stable)
public static final class CfnFunction.ConcurrentExecutorConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunction.ConcurrentExecutorConfigurationProperty>
A builder for
CfnFunction.ConcurrentExecutorConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.functionList(List<? extends Object> functionList) Sets the value ofCfnFunction.ConcurrentExecutorConfigurationProperty.getFunctionList()functionList(IResolvable functionList) Sets the value ofCfnFunction.ConcurrentExecutorConfigurationProperty.getFunctionList()maxConcurrency(Number maxConcurrency) Sets the value ofCfnFunction.ConcurrentExecutorConfigurationProperty.getMaxConcurrency()Sets the value ofCfnFunction.ConcurrentExecutorConfigurationProperty.getOutput()output(IResolvable output) Sets the value ofCfnFunction.ConcurrentExecutorConfigurationProperty.getOutput()Sets the value ofCfnFunction.ConcurrentExecutorConfigurationProperty.getRuntime()timeoutMilliseconds(Number timeoutMilliseconds)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
functionList
@Stability(Stable) public CfnFunction.ConcurrentExecutorConfigurationProperty.Builder functionList(IResolvable functionList) Sets the value ofCfnFunction.ConcurrentExecutorConfigurationProperty.getFunctionList()- Parameters:
functionList- The list of 1 to 10 child functions that MediaTailor runs in parallel. This parameter is required. 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:
this
-
functionList
@Stability(Stable) public CfnFunction.ConcurrentExecutorConfigurationProperty.Builder functionList(List<? extends Object> functionList) Sets the value ofCfnFunction.ConcurrentExecutorConfigurationProperty.getFunctionList()- Parameters:
functionList- The list of 1 to 10 child functions that MediaTailor runs in parallel. This parameter is required. 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:
this
-
maxConcurrency
@Stability(Stable) public CfnFunction.ConcurrentExecutorConfigurationProperty.Builder maxConcurrency(Number maxConcurrency) Sets the value ofCfnFunction.ConcurrentExecutorConfigurationProperty.getMaxConcurrency()- Parameters:
maxConcurrency- The maximum number of child functions that MediaTailor runs simultaneously. This parameter is required. 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.- Returns:
this
-
output
@Stability(Stable) public CfnFunction.ConcurrentExecutorConfigurationProperty.Builder output(IResolvable output) Sets the value ofCfnFunction.ConcurrentExecutorConfigurationProperty.getOutput()- Parameters:
output- A map of output bindings that controls which bindings the executor commits to the session state after all child functions complete. This parameter is required. 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:
this
-
output
@Stability(Stable) public CfnFunction.ConcurrentExecutorConfigurationProperty.Builder output(Map<String, String> output) Sets the value ofCfnFunction.ConcurrentExecutorConfigurationProperty.getOutput()- Parameters:
output- A map of output bindings that controls which bindings the executor commits to the session state after all child functions complete. This parameter is required. 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:
this
-
runtime
@Stability(Stable) public CfnFunction.ConcurrentExecutorConfigurationProperty.Builder runtime(String runtime) Sets the value ofCfnFunction.ConcurrentExecutorConfigurationProperty.getRuntime()- Parameters:
runtime- The expression language used to evaluate expressions in the function configuration. This parameter is required. Set this to JSONATA.- Returns:
this
-
timeoutMilliseconds
@Stability(Stable) public CfnFunction.ConcurrentExecutorConfigurationProperty.Builder timeoutMilliseconds(Number timeoutMilliseconds) - Parameters:
timeoutMilliseconds- The maximum time, in milliseconds, for all child functions to complete. This parameter is required. 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunction.ConcurrentExecutorConfigurationProperty>- Returns:
- a new instance of
CfnFunction.ConcurrentExecutorConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-