CfnFunctionProps Struct
Properties for defining a CfnFunction.
| Source | |
|---|---|
| Type last changed |
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 cfnFunctionProps: mediatailor.CfnFunctionProps = {
functionId: 'functionId',
functionType: 'functionType',
// the properties below are optional
awsServiceRequestConfiguration: {
methodType: 'methodType',
requestTimeoutMilliseconds: 123,
runtime: 'runtime',
targetRegion: 'targetRegion',
targetService: 'targetService',
url: 'url',
// the properties below are optional
body: 'body',
cache: {
ttlMaximumSeconds: 123,
ttlMinimumSeconds: 123,
// the properties below are optional
key: 'key',
},
headers: {
headersKey: 'headers',
},
output: {
outputKey: 'output',
},
},
concurrentExecutorConfiguration: {
functionList: [{
alias: 'alias',
functionId: 'functionId',
runCondition: 'runCondition',
}],
maxConcurrency: 123,
output: {
outputKey: 'output',
},
runtime: 'runtime',
timeoutMilliseconds: 123,
},
customOutputConfiguration: {
runtime: 'runtime',
// the properties below are optional
output: {
outputKey: 'output',
},
},
description: 'description',
httpRequestConfiguration: {
methodType: 'methodType',
requestTimeoutMilliseconds: 123,
runtime: 'runtime',
url: 'url',
// the properties below are optional
body: 'body',
cache: {
ttlMaximumSeconds: 123,
ttlMinimumSeconds: 123,
// the properties below are optional
key: 'key',
},
headers: {
headersKey: 'headers',
},
output: {
outputKey: 'output',
},
},
sequentialExecutorConfiguration: {
functionList: [{
alias: 'alias',
functionId: 'functionId',
runCondition: 'runCondition',
}],
runtime: 'runtime',
timeoutMilliseconds: 123,
// the properties below are optional
output: {
outputKey: 'output',
},
},
tags: [{
key: 'key',
value: 'value',
}],
vastRequestConfiguration: {
methodType: 'methodType',
requestTimeoutMilliseconds: 123,
runtime: 'runtime',
url: 'url',
// the properties below are optional
body: 'body',
cache: {
ttlMaximumSeconds: 123,
ttlMinimumSeconds: 123,
// the properties below are optional
key: 'key',
},
headers: {
headersKey: 'headers',
},
output: {
outputKey: 'output',
},
},
};
from aws_cdk import CfnTag
# 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
cfn_function_props = mediatailor.CfnFunctionProps(
function_id="functionId",
function_type="functionType",
# the properties below are optional
aws_service_request_configuration=mediatailor.CfnFunction.AwsServiceRequestConfigurationProperty(
method_type="methodType",
request_timeout_milliseconds=123,
runtime="runtime",
target_region="targetRegion",
target_service="targetService",
url="url",
# the properties below are optional
body="body",
cache=mediatailor.CfnFunction.HttpRequestCacheConfigurationProperty(
ttl_maximum_seconds=123,
ttl_minimum_seconds=123,
# the properties below are optional
key="key"
),
headers={
"headers_key": "headers"
},
output={
"output_key": "output"
}
),
concurrent_executor_configuration=mediatailor.CfnFunction.ConcurrentExecutorConfigurationProperty(
function_list=[mediatailor.CfnFunction.FunctionRefProperty(
alias="alias",
function_id="functionId",
run_condition="runCondition"
)],
max_concurrency=123,
output={
"output_key": "output"
},
runtime="runtime",
timeout_milliseconds=123
),
custom_output_configuration=mediatailor.CfnFunction.CustomOutputConfigurationProperty(
runtime="runtime",
# the properties below are optional
output={
"output_key": "output"
}
),
description="description",
http_request_configuration=mediatailor.CfnFunction.HttpRequestConfigurationProperty(
method_type="methodType",
request_timeout_milliseconds=123,
runtime="runtime",
url="url",
# the properties below are optional
body="body",
cache=mediatailor.CfnFunction.HttpRequestCacheConfigurationProperty(
ttl_maximum_seconds=123,
ttl_minimum_seconds=123,
# the properties below are optional
key="key"
),
headers={
"headers_key": "headers"
},
output={
"output_key": "output"
}
),
sequential_executor_configuration=mediatailor.CfnFunction.SequentialExecutorConfigurationProperty(
function_list=[mediatailor.CfnFunction.FunctionRefProperty(
alias="alias",
function_id="functionId",
run_condition="runCondition"
)],
runtime="runtime",
timeout_milliseconds=123,
# the properties below are optional
output={
"output_key": "output"
}
),
tags=[CfnTag(
key="key",
value="value"
)],
vast_request_configuration=mediatailor.CfnFunction.VastRequestConfigurationProperty(
method_type="methodType",
request_timeout_milliseconds=123,
runtime="runtime",
url="url",
# the properties below are optional
body="body",
cache=mediatailor.CfnFunction.HttpRequestCacheConfigurationProperty(
ttl_maximum_seconds=123,
ttl_minimum_seconds=123,
# the properties below are optional
key="key"
),
headers={
"headers_key": "headers"
},
output={
"output_key": "output"
}
)
)
// 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.*;
CfnFunctionProps cfnFunctionProps = CfnFunctionProps.builder()
.functionId("functionId")
.functionType("functionType")
// the properties below are optional
.awsServiceRequestConfiguration(AwsServiceRequestConfigurationProperty.builder()
.methodType("methodType")
.requestTimeoutMilliseconds(123)
.runtime("runtime")
.targetRegion("targetRegion")
.targetService("targetService")
.url("url")
// the properties below are optional
.body("body")
.cache(HttpRequestCacheConfigurationProperty.builder()
.ttlMaximumSeconds(123)
.ttlMinimumSeconds(123)
// the properties below are optional
.key("key")
.build())
.headers(Map.of(
"headersKey", "headers"))
.output(Map.of(
"outputKey", "output"))
.build())
.concurrentExecutorConfiguration(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())
.customOutputConfiguration(CustomOutputConfigurationProperty.builder()
.runtime("runtime")
// the properties below are optional
.output(Map.of(
"outputKey", "output"))
.build())
.description("description")
.httpRequestConfiguration(HttpRequestConfigurationProperty.builder()
.methodType("methodType")
.requestTimeoutMilliseconds(123)
.runtime("runtime")
.url("url")
// the properties below are optional
.body("body")
.cache(HttpRequestCacheConfigurationProperty.builder()
.ttlMaximumSeconds(123)
.ttlMinimumSeconds(123)
// the properties below are optional
.key("key")
.build())
.headers(Map.of(
"headersKey", "headers"))
.output(Map.of(
"outputKey", "output"))
.build())
.sequentialExecutorConfiguration(SequentialExecutorConfigurationProperty.builder()
.functionList(List.of(FunctionRefProperty.builder()
.alias("alias")
.functionId("functionId")
.runCondition("runCondition")
.build()))
.runtime("runtime")
.timeoutMilliseconds(123)
// the properties below are optional
.output(Map.of(
"outputKey", "output"))
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vastRequestConfiguration(VastRequestConfigurationProperty.builder()
.methodType("methodType")
.requestTimeoutMilliseconds(123)
.runtime("runtime")
.url("url")
// the properties below are optional
.body("body")
.cache(HttpRequestCacheConfigurationProperty.builder()
.ttlMaximumSeconds(123)
.ttlMinimumSeconds(123)
// the properties below are optional
.key("key")
.build())
.headers(Map.of(
"headersKey", "headers"))
.output(Map.of(
"outputKey", "output"))
.build())
.build();
// 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 cfnFunctionProps = new CfnFunctionProps {
FunctionId = "functionId",
FunctionType = "functionType",
// the properties below are optional
AwsServiceRequestConfiguration = new AwsServiceRequestConfigurationProperty {
MethodType = "methodType",
RequestTimeoutMilliseconds = 123,
Runtime = "runtime",
TargetRegion = "targetRegion",
TargetService = "targetService",
Url = "url",
// the properties below are optional
Body = "body",
Cache = new HttpRequestCacheConfigurationProperty {
TtlMaximumSeconds = 123,
TtlMinimumSeconds = 123,
// the properties below are optional
Key = "key"
},
Headers = new Dictionary<string, string> {
{ "headersKey", "headers" }
},
Output = new Dictionary<string, string> {
{ "outputKey", "output" }
}
},
ConcurrentExecutorConfiguration = new ConcurrentExecutorConfigurationProperty {
FunctionList = new [] { new FunctionRefProperty {
Alias = "alias",
FunctionId = "functionId",
RunCondition = "runCondition"
} },
MaxConcurrency = 123,
Output = new Dictionary<string, string> {
{ "outputKey", "output" }
},
Runtime = "runtime",
TimeoutMilliseconds = 123
},
CustomOutputConfiguration = new CustomOutputConfigurationProperty {
Runtime = "runtime",
// the properties below are optional
Output = new Dictionary<string, string> {
{ "outputKey", "output" }
}
},
Description = "description",
HttpRequestConfiguration = new HttpRequestConfigurationProperty {
MethodType = "methodType",
RequestTimeoutMilliseconds = 123,
Runtime = "runtime",
Url = "url",
// the properties below are optional
Body = "body",
Cache = new HttpRequestCacheConfigurationProperty {
TtlMaximumSeconds = 123,
TtlMinimumSeconds = 123,
// the properties below are optional
Key = "key"
},
Headers = new Dictionary<string, string> {
{ "headersKey", "headers" }
},
Output = new Dictionary<string, string> {
{ "outputKey", "output" }
}
},
SequentialExecutorConfiguration = new SequentialExecutorConfigurationProperty {
FunctionList = new [] { new FunctionRefProperty {
Alias = "alias",
FunctionId = "functionId",
RunCondition = "runCondition"
} },
Runtime = "runtime",
TimeoutMilliseconds = 123,
// the properties below are optional
Output = new Dictionary<string, string> {
{ "outputKey", "output" }
}
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VastRequestConfiguration = new VastRequestConfigurationProperty {
MethodType = "methodType",
RequestTimeoutMilliseconds = 123,
Runtime = "runtime",
Url = "url",
// the properties below are optional
Body = "body",
Cache = new HttpRequestCacheConfigurationProperty {
TtlMaximumSeconds = 123,
TtlMinimumSeconds = 123,
// the properties below are optional
Key = "key"
},
Headers = new Dictionary<string, string> {
{ "headersKey", "headers" }
},
Output = new Dictionary<string, string> {
{ "outputKey", "output" }
}
}
};
// 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"
cfnFunctionProps := &CfnFunctionProps{
FunctionId: jsii.String("functionId"),
FunctionType: jsii.String("functionType"),
// the properties below are optional
AwsServiceRequestConfiguration: &AwsServiceRequestConfigurationProperty{
MethodType: jsii.String("methodType"),
RequestTimeoutMilliseconds: jsii.Number(123),
Runtime: jsii.String("runtime"),
TargetRegion: jsii.String("targetRegion"),
TargetService: jsii.String("targetService"),
Url: jsii.String("url"),
// the properties below are optional
Body: jsii.String("body"),
Cache: &HttpRequestCacheConfigurationProperty{
TtlMaximumSeconds: jsii.Number(123),
TtlMinimumSeconds: jsii.Number(123),
// the properties below are optional
Key: jsii.String("key"),
},
Headers: map[string]*string{
"headersKey": jsii.String("headers"),
},
Output: map[string]*string{
"outputKey": jsii.String("output"),
},
},
ConcurrentExecutorConfiguration: &ConcurrentExecutorConfigurationProperty{
FunctionList: []interface{}{
&FunctionRefProperty{
Alias: jsii.String("alias"),
FunctionId: jsii.String("functionId"),
RunCondition: jsii.String("runCondition"),
},
},
MaxConcurrency: jsii.Number(123),
Output: map[string]*string{
"outputKey": jsii.String("output"),
},
Runtime: jsii.String("runtime"),
TimeoutMilliseconds: jsii.Number(123),
},
CustomOutputConfiguration: &CustomOutputConfigurationProperty{
Runtime: jsii.String("runtime"),
// the properties below are optional
Output: map[string]*string{
"outputKey": jsii.String("output"),
},
},
Description: jsii.String("description"),
HttpRequestConfiguration: &HttpRequestConfigurationProperty{
MethodType: jsii.String("methodType"),
RequestTimeoutMilliseconds: jsii.Number(123),
Runtime: jsii.String("runtime"),
Url: jsii.String("url"),
// the properties below are optional
Body: jsii.String("body"),
Cache: &HttpRequestCacheConfigurationProperty{
TtlMaximumSeconds: jsii.Number(123),
TtlMinimumSeconds: jsii.Number(123),
// the properties below are optional
Key: jsii.String("key"),
},
Headers: map[string]*string{
"headersKey": jsii.String("headers"),
},
Output: map[string]*string{
"outputKey": jsii.String("output"),
},
},
SequentialExecutorConfiguration: &SequentialExecutorConfigurationProperty{
FunctionList: []interface{}{
&FunctionRefProperty{
Alias: jsii.String("alias"),
FunctionId: jsii.String("functionId"),
RunCondition: jsii.String("runCondition"),
},
},
Runtime: jsii.String("runtime"),
TimeoutMilliseconds: jsii.Number(123),
// the properties below are optional
Output: map[string]*string{
"outputKey": jsii.String("output"),
},
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
VastRequestConfiguration: &VastRequestConfigurationProperty{
MethodType: jsii.String("methodType"),
RequestTimeoutMilliseconds: jsii.Number(123),
Runtime: jsii.String("runtime"),
Url: jsii.String("url"),
// the properties below are optional
Body: jsii.String("body"),
Cache: &HttpRequestCacheConfigurationProperty{
TtlMaximumSeconds: jsii.Number(123),
TtlMinimumSeconds: jsii.Number(123),
// the properties below are optional
Key: jsii.String("key"),
},
Headers: map[string]*string{
"headersKey": jsii.String("headers"),
},
Output: map[string]*string{
"outputKey": jsii.String("output"),
},
},
}
Properties
awsServiceRequestConfigurationoptionalIResolvable | CfnFunction.aws_service_request_configurationoptionaltyping.Union[IResolvable, AwsServiceRequestConfigurationProperty]awsServiceRequestConfigurationoptionalIResolvableAwsServiceRequestConfigurationoptionalIResolvableAwsServiceRequestConfigurationoptionalinterface{} #notes
Contains the target service, target Region, and request parameters that the function uses to call an AWS service API. For more information, see AWS_SERVICE_REQUEST (https://docs.aws.amazon.com/mediatailor/latest/ug/monetization-functions-types-aws-service-request.html) in the MediaTailor User Guide.
concurrentExecutorConfigurationoptionalIResolvable | CfnFunction.concurrent_executor_configurationoptionaltyping.Union[IResolvable, ConcurrentExecutorConfigurationProperty]concurrentExecutorConfigurationoptionalIResolvableConcurrentExecutorConfigurationoptionalIResolvableConcurrentExecutorConfigurationoptionalinterface{} #notes
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.
customOutputConfigurationoptionalIResolvable | CfnFunction.custom_output_configurationoptionaltyping.Union[IResolvable, CustomOutputConfigurationProperty]customOutputConfigurationoptionalIResolvableCustomOutputConfigurationoptionalIResolvableCustomOutputConfigurationoptionalinterface{} #descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #functionTypestringfunction_typestrfunctionTypeStringFunctionTypestringFunctionType*string required #httpRequestConfigurationoptionalIResolvable | CfnFunction.http_request_configurationoptionaltyping.Union[IResolvable, HttpRequestConfigurationProperty]httpRequestConfigurationoptionalIResolvableHttpRequestConfigurationoptionalIResolvableHttpRequestConfigurationoptionalinterface{} #sequentialExecutorConfigurationoptionalIResolvable | CfnFunction.sequential_executor_configurationoptionaltyping.Union[IResolvable, SequentialExecutorConfigurationProperty]sequentialExecutorConfigurationoptionalIResolvableSequentialExecutorConfigurationoptionalIResolvableSequentialExecutorConfigurationoptionalinterface{} #notes
A SEQUENTIAL_EXECUTOR runs an ordered list of child functions one at a time, passing data between them. 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.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #vastRequestConfigurationoptionalIResolvable | CfnFunction.vast_request_configurationoptionaltyping.Union[IResolvable, VastRequestConfigurationProperty]vastRequestConfigurationoptionalIResolvableVastRequestConfigurationoptionalIResolvableVastRequestConfigurationoptionalinterface{} #notes
Specifies the HTTP method, URL, headers, body, timeout, and output expressions for a request to a VAST endpoint. MediaTailor parses the response as VAST and resolves wrapper redirects, then makes the parsed ads available to the function's output expressions. For more information, see Function types and composition (https://docs.aws.amazon.com/mediatailor/latest/ug/monetization-functions-types.html) in the MediaTailor User Guide.