Skip to content
v2.278.0

FunctionRefProperty Struct ​

A reference to a child function within an executor function.

Example ​

ts
// 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 functionRefProperty: mediatailor.CfnFunction.FunctionRefProperty = {
  alias: 'alias',
  functionId: 'functionId',
  runCondition: 'runCondition',
};
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_mediatailor as mediatailor

function_ref_property = mediatailor.CfnFunction.FunctionRefProperty(
    alias="alias",
    function_id="functionId",
    run_condition="runCondition"
)
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.mediatailor.*;

FunctionRefProperty functionRefProperty = FunctionRefProperty.builder()
        .alias("alias")
        .functionId("functionId")
        .runCondition("runCondition")
        .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.MediaTailor;

var functionRefProperty = new FunctionRefProperty {
    Alias = "alias",
    FunctionId = "functionId",
    RunCondition = "runCondition"
};
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"

functionRefProperty := &FunctionRefProperty{
	Alias: jsii.String("alias"),
	FunctionId: jsii.String("functionId"),
	RunCondition: jsii.String("runCondition"),
}

Properties ​

aliasoptionalstringaliasoptionalstraliasoptionalStringAliasoptionalstringAliasoptional*string #
An optional alternate name for the child function within the executor.

MediaTailor uses this value as the namespace for the child function's output. If omitted, MediaTailor uses the function identifier. The resolved namespace must be unique across all child functions in the list.

functionIdoptionalstringfunction_idoptionalstrfunctionIdoptionalStringFunctionIdoptionalstringFunctionIdoptional*string #
The identifier of the child function to execute.
runConditionoptionalstringrun_conditionoptionalstrrunConditionoptionalStringRunConditionoptionalstringRunConditionoptional*string #
An optional expression that evaluates to a boolean.
notes

MediaTailor evaluates this expression immediately before running the child function, using the accumulated state at that point. If the expression evaluates to false, MediaTailor skips the child function. If omitted, the child function always runs.