This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::MediaTailor::Function
Defines reusable logic that MediaTailor executes at lifecycle hooks during ad insertion. The FunctionType determines the function's runtime behavior. For more information about functions, see Working with functions in the MediaTailor User Guide.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::MediaTailor::Function", "Properties" : { "CustomOutputConfiguration" :CustomOutputConfiguration, "Description" :String, "FunctionId" :String, "FunctionType" :String, "HttpRequestConfiguration" :HttpRequestConfiguration, "SequentialExecutorConfiguration" :SequentialExecutorConfiguration, "Tags" :[ Tag, ... ]} }
YAML
Type: AWS::MediaTailor::Function Properties: CustomOutputConfiguration:CustomOutputConfigurationDescription:StringFunctionId:StringFunctionType:StringHttpRequestConfiguration:HttpRequestConfigurationSequentialExecutorConfiguration:SequentialExecutorConfigurationTags:- Tag
Properties
CustomOutputConfiguration-
The configuration for a
CUSTOM_OUTPUTfunction.Required: No
Type: CustomOutputConfiguration
Update requires: No interruption
Description-
A description of the function.
Required: No
Type: String
Update requires: No interruption
FunctionId-
The identifier of the function.
Required: Yes
Type: String
Update requires: Replacement
FunctionType-
The type of the function.
Required: Yes
Type: String
Allowed values:
HTTP_REQUEST | CUSTOM_OUTPUT | SEQUENTIAL_EXECUTORUpdate requires: No interruption
HttpRequestConfiguration-
The configuration for an
HTTP_REQUESTfunction.Required: No
Type: HttpRequestConfiguration
Update requires: No interruption
SequentialExecutorConfiguration-
The configuration for a
SEQUENTIAL_EXECUTORfunction.Required: No
Type: SequentialExecutorConfiguration
Update requires: No interruption
-
The tags assigned to the function. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
Required: No
Type: Array of Tag
Update requires: No interruption
Return values
Ref
Fn::GetAtt
Arn-
The Amazon Resource Name (ARN) of the function.