We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 14, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 14, 2026 by Pulumi
Resource Type definition for AWS::MediaTailor::Function
Create Function Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Function(name: string, args: FunctionArgs, opts?: CustomResourceOptions);@overload
def Function(resource_name: str,
args: FunctionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Function(resource_name: str,
opts: Optional[ResourceOptions] = None,
function_id: Optional[str] = None,
function_type: Optional[FunctionType] = None,
custom_output_configuration: Optional[FunctionCustomOutputConfigurationArgs] = None,
description: Optional[str] = None,
http_request_configuration: Optional[FunctionHttpRequestConfigurationArgs] = None,
sequential_executor_configuration: Optional[FunctionSequentialExecutorConfigurationArgs] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewFunction(ctx *Context, name string, args FunctionArgs, opts ...ResourceOption) (*Function, error)public Function(string name, FunctionArgs args, CustomResourceOptions? opts = null)
public Function(String name, FunctionArgs args)
public Function(String name, FunctionArgs args, CustomResourceOptions options)
type: aws-native:mediatailor:Function
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_mediatailor_function" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Function Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Function resource accepts the following input properties:
- Function
Id string - The unique identifier for the function.
- Function
Type Pulumi.Aws Native. Media Tailor. Function Type - The type of the function. Determines which configuration object is used.
- Custom
Output Pulumi.Configuration Aws Native. Media Tailor. Inputs. Function Custom Output Configuration - Description string
- A description of the function.
- Http
Request Pulumi.Configuration Aws Native. Media Tailor. Inputs. Function Http Request Configuration - Sequential
Executor Pulumi.Configuration Aws Native. Media Tailor. Inputs. Function Sequential Executor Configuration -
List<Pulumi.
Aws Native. Inputs. Tag> - The tags to assign to the function resource.
- Function
Id string - The unique identifier for the function.
- Function
Type FunctionType - The type of the function. Determines which configuration object is used.
- Custom
Output FunctionConfiguration Custom Output Configuration Args - Description string
- A description of the function.
- Http
Request FunctionConfiguration Http Request Configuration Args - Sequential
Executor FunctionConfiguration Sequential Executor Configuration Args -
Tag
Args - The tags to assign to the function resource.
- function_
id string - The unique identifier for the function.
- function_
type "HTTP_REQUEST" | "CUSTOM_OUTPUT" | "SEQUENTIAL_EXECUTOR" - The type of the function. Determines which configuration object is used.
- custom_
output_ objectconfiguration - description string
- A description of the function.
- http_
request_ objectconfiguration - sequential_
executor_ objectconfiguration - list(object)
- The tags to assign to the function resource.
- function
Id String - The unique identifier for the function.
- function
Type FunctionType - The type of the function. Determines which configuration object is used.
- custom
Output FunctionConfiguration Custom Output Configuration - description String
- A description of the function.
- http
Request FunctionConfiguration Http Request Configuration - sequential
Executor FunctionConfiguration Sequential Executor Configuration - List<Tag>
- The tags to assign to the function resource.
- function
Id string - The unique identifier for the function.
- function
Type FunctionType - The type of the function. Determines which configuration object is used.
- custom
Output FunctionConfiguration Custom Output Configuration - description string
- A description of the function.
- http
Request FunctionConfiguration Http Request Configuration - sequential
Executor FunctionConfiguration Sequential Executor Configuration - Tag[]
- The tags to assign to the function resource.
- function_
id str - The unique identifier for the function.
- function_
type FunctionType - The type of the function. Determines which configuration object is used.
- custom_
output_ Functionconfiguration Custom Output Configuration Args - description str
- A description of the function.
- http_
request_ Functionconfiguration Http Request Configuration Args - sequential_
executor_ Functionconfiguration Sequential Executor Configuration Args -
Sequence[Tag
Args] - The tags to assign to the function resource.
- function
Id String - The unique identifier for the function.
- function
Type "HTTP_REQUEST" | "CUSTOM_OUTPUT" | "SEQUENTIAL_EXECUTOR" - The type of the function. Determines which configuration object is used.
- custom
Output Property MapConfiguration - description String
- A description of the function.
- http
Request Property MapConfiguration - sequential
Executor Property MapConfiguration - List<Property Map>
- The tags to assign to the function resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Function resource produces the following output properties:
Supporting Types
FunctionCustomOutputConfiguration, FunctionCustomOutputConfigurationArgs
Configuration for custom output functions.- Runtime
Pulumi.
Aws Native. Media Tailor. Function Runtime Type - The runtime environment for the function expression language.
- Output Dictionary<string, string>
- A map of output key-value pairs that define the custom output.
- Runtime
Function
Runtime Type - The runtime environment for the function expression language.
- Output map[string]string
- A map of output key-value pairs that define the custom output.
- runtime
Function
Runtime Type - The runtime environment for the function expression language.
- output Map<String,String>
- A map of output key-value pairs that define the custom output.
- runtime
Function
Runtime Type - The runtime environment for the function expression language.
- output {[key: string]: string}
- A map of output key-value pairs that define the custom output.
- runtime
Function
Runtime Type - The runtime environment for the function expression language.
- output Mapping[str, str]
- A map of output key-value pairs that define the custom output.
FunctionHttpRequestConfiguration, FunctionHttpRequestConfigurationArgs
Configuration for HTTP request functions.- Method
Type Pulumi.Aws Native. Media Tailor. Function Method Type - The HTTP method type for the request.
- Request
Timeout intMilliseconds - The timeout in milliseconds for the HTTP request. Maximum value is 2000.
- Runtime
Pulumi.
Aws Native. Media Tailor. Function Runtime Type - The runtime environment for the function expression language.
- Url string
- The URL endpoint for the HTTP request.
- Body string
- The body of the HTTP request.
- Headers Dictionary<string, string>
- A map of HTTP headers to include in the request.
- Output Dictionary<string, string>
- A map of output key-value pairs. Keys must start with session., temp., avail., scte., or be a valid adsRequest directive.
- Method
Type FunctionMethod Type - The HTTP method type for the request.
- Request
Timeout intMilliseconds - The timeout in milliseconds for the HTTP request. Maximum value is 2000.
- Runtime
Function
Runtime Type - The runtime environment for the function expression language.
- Url string
- The URL endpoint for the HTTP request.
- Body string
- The body of the HTTP request.
- Headers map[string]string
- A map of HTTP headers to include in the request.
- Output map[string]string
- A map of output key-value pairs. Keys must start with session., temp., avail., scte., or be a valid adsRequest directive.
- method_
type "GET" | "POST" - The HTTP method type for the request.
- request_
timeout_ numbermilliseconds - The timeout in milliseconds for the HTTP request. Maximum value is 2000.
- runtime "JSONATA"
- The runtime environment for the function expression language.
- url string
- The URL endpoint for the HTTP request.
- body string
- The body of the HTTP request.
- headers map(string)
- A map of HTTP headers to include in the request.
- output map(string)
- A map of output key-value pairs. Keys must start with session., temp., avail., scte., or be a valid adsRequest directive.
- method
Type FunctionMethod Type - The HTTP method type for the request.
- request
Timeout IntegerMilliseconds - The timeout in milliseconds for the HTTP request. Maximum value is 2000.
- runtime
Function
Runtime Type - The runtime environment for the function expression language.
- url String
- The URL endpoint for the HTTP request.
- body String
- The body of the HTTP request.
- headers Map<String,String>
- A map of HTTP headers to include in the request.
- output Map<String,String>
- A map of output key-value pairs. Keys must start with session., temp., avail., scte., or be a valid adsRequest directive.
- method
Type FunctionMethod Type - The HTTP method type for the request.
- request
Timeout numberMilliseconds - The timeout in milliseconds for the HTTP request. Maximum value is 2000.
- runtime
Function
Runtime Type - The runtime environment for the function expression language.
- url string
- The URL endpoint for the HTTP request.
- body string
- The body of the HTTP request.
- headers {[key: string]: string}
- A map of HTTP headers to include in the request.
- output {[key: string]: string}
- A map of output key-value pairs. Keys must start with session., temp., avail., scte., or be a valid adsRequest directive.
- method_
type FunctionMethod Type - The HTTP method type for the request.
- request_
timeout_ intmilliseconds - The timeout in milliseconds for the HTTP request. Maximum value is 2000.
- runtime
Function
Runtime Type - The runtime environment for the function expression language.
- url str
- The URL endpoint for the HTTP request.
- body str
- The body of the HTTP request.
- headers Mapping[str, str]
- A map of HTTP headers to include in the request.
- output Mapping[str, str]
- A map of output key-value pairs. Keys must start with session., temp., avail., scte., or be a valid adsRequest directive.
- method
Type "GET" | "POST" - The HTTP method type for the request.
- request
Timeout NumberMilliseconds - The timeout in milliseconds for the HTTP request. Maximum value is 2000.
- runtime "JSONATA"
- The runtime environment for the function expression language.
- url String
- The URL endpoint for the HTTP request.
- body String
- The body of the HTTP request.
- headers Map<String>
- A map of HTTP headers to include in the request.
- output Map<String>
- A map of output key-value pairs. Keys must start with session., temp., avail., scte., or be a valid adsRequest directive.
FunctionMethodType, FunctionMethodTypeArgs
- Get
GET- Post
POST
- Function
Method Type Get GET- Function
Method Type Post POST
- "GET"
GET- "POST"
POST
- Get
GET- Post
POST
- Get
GET- Post
POST
- GET
GET- POST
POST
- "GET"
GET- "POST"
POST
FunctionRef, FunctionRefArgs
A reference to a function with an optional run condition.- Function
Id string - The identifier of the function to execute.
- Run
Condition string - A conditional expression that determines whether this function should execute.
- Function
Id string - The identifier of the function to execute.
- Run
Condition string - A conditional expression that determines whether this function should execute.
- function_
id string - The identifier of the function to execute.
- run_
condition string - A conditional expression that determines whether this function should execute.
- function
Id String - The identifier of the function to execute.
- run
Condition String - A conditional expression that determines whether this function should execute.
- function
Id string - The identifier of the function to execute.
- run
Condition string - A conditional expression that determines whether this function should execute.
- function_
id str - The identifier of the function to execute.
- run_
condition str - A conditional expression that determines whether this function should execute.
- function
Id String - The identifier of the function to execute.
- run
Condition String - A conditional expression that determines whether this function should execute.
FunctionRuntimeType, FunctionRuntimeTypeArgs
- Jsonata
JSONATA
- Function
Runtime Type Jsonata JSONATA
- "JSONATA"
JSONATA
- Jsonata
JSONATA
- Jsonata
JSONATA
- JSONATA
JSONATA
- "JSONATA"
JSONATA
FunctionSequentialExecutorConfiguration, FunctionSequentialExecutorConfigurationArgs
Configuration for sequential executor functions.- Function
List List<Pulumi.Aws Native. Media Tailor. Inputs. Function Ref> - The list of functions to execute sequentially.
- Runtime
Pulumi.
Aws Native. Media Tailor. Function Runtime Type - The runtime environment for the function expression language.
- Timeout
Milliseconds int - The timeout in milliseconds for the entire sequential execution chain.
- Output Dictionary<string, string>
- A map of output key-value pairs that define the final output from sequential execution.
- Function
List []FunctionRef - The list of functions to execute sequentially.
- Runtime
Function
Runtime Type - The runtime environment for the function expression language.
- Timeout
Milliseconds int - The timeout in milliseconds for the entire sequential execution chain.
- Output map[string]string
- A map of output key-value pairs that define the final output from sequential execution.
- function_
list list(object) - The list of functions to execute sequentially.
- runtime "JSONATA"
- The runtime environment for the function expression language.
- timeout_
milliseconds number - The timeout in milliseconds for the entire sequential execution chain.
- output map(string)
- A map of output key-value pairs that define the final output from sequential execution.
- function
List List<FunctionRef> - The list of functions to execute sequentially.
- runtime
Function
Runtime Type - The runtime environment for the function expression language.
- timeout
Milliseconds Integer - The timeout in milliseconds for the entire sequential execution chain.
- output Map<String,String>
- A map of output key-value pairs that define the final output from sequential execution.
- function
List FunctionRef[] - The list of functions to execute sequentially.
- runtime
Function
Runtime Type - The runtime environment for the function expression language.
- timeout
Milliseconds number - The timeout in milliseconds for the entire sequential execution chain.
- output {[key: string]: string}
- A map of output key-value pairs that define the final output from sequential execution.
- function_
list Sequence[FunctionRef] - The list of functions to execute sequentially.
- runtime
Function
Runtime Type - The runtime environment for the function expression language.
- timeout_
milliseconds int - The timeout in milliseconds for the entire sequential execution chain.
- output Mapping[str, str]
- A map of output key-value pairs that define the final output from sequential execution.
- function
List List<Property Map> - The list of functions to execute sequentially.
- runtime "JSONATA"
- The runtime environment for the function expression language.
- timeout
Milliseconds Number - The timeout in milliseconds for the entire sequential execution chain.
- output Map<String>
- A map of output key-value pairs that define the final output from sequential execution.
FunctionType, FunctionTypeArgs
- Http
Request HTTP_REQUEST- Custom
Output CUSTOM_OUTPUT- Sequential
Executor SEQUENTIAL_EXECUTOR
- Function
Type Http Request HTTP_REQUEST- Function
Type Custom Output CUSTOM_OUTPUT- Function
Type Sequential Executor SEQUENTIAL_EXECUTOR
- "HTTP_REQUEST"
HTTP_REQUEST- "CUSTOM_OUTPUT"
CUSTOM_OUTPUT- "SEQUENTIAL_EXECUTOR"
SEQUENTIAL_EXECUTOR
- Http
Request HTTP_REQUEST- Custom
Output CUSTOM_OUTPUT- Sequential
Executor SEQUENTIAL_EXECUTOR
- Http
Request HTTP_REQUEST- Custom
Output CUSTOM_OUTPUT- Sequential
Executor SEQUENTIAL_EXECUTOR
- HTTP_REQUEST
HTTP_REQUEST- CUSTOM_OUTPUT
CUSTOM_OUTPUT- SEQUENTIAL_EXECUTOR
SEQUENTIAL_EXECUTOR
- "HTTP_REQUEST"
HTTP_REQUEST- "CUSTOM_OUTPUT"
CUSTOM_OUTPUT- "SEQUENTIAL_EXECUTOR"
SEQUENTIAL_EXECUTOR
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 14, 2026 by Pulumi