1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. mediatailor
  6. Function

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.79.0
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:

    FunctionId string
    The unique identifier for the function.
    FunctionType FunctionType
    The type of the function. Determines which configuration object is used.
    CustomOutputConfiguration FunctionCustomOutputConfigurationArgs
    Description string
    A description of the function.
    HttpRequestConfiguration FunctionHttpRequestConfigurationArgs
    SequentialExecutorConfiguration FunctionSequentialExecutorConfigurationArgs
    Tags TagArgs
    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_configuration object
    description string
    A description of the function.
    http_request_configuration object
    sequential_executor_configuration object
    tags list(object)
    The tags to assign to the function resource.
    functionId String
    The unique identifier for the function.
    functionType FunctionType
    The type of the function. Determines which configuration object is used.
    customOutputConfiguration FunctionCustomOutputConfiguration
    description String
    A description of the function.
    httpRequestConfiguration FunctionHttpRequestConfiguration
    sequentialExecutorConfiguration FunctionSequentialExecutorConfiguration
    tags List<Tag>
    The tags to assign to the function resource.
    functionId string
    The unique identifier for the function.
    functionType FunctionType
    The type of the function. Determines which configuration object is used.
    customOutputConfiguration FunctionCustomOutputConfiguration
    description string
    A description of the function.
    httpRequestConfiguration FunctionHttpRequestConfiguration
    sequentialExecutorConfiguration FunctionSequentialExecutorConfiguration
    tags 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_configuration FunctionCustomOutputConfigurationArgs
    description str
    A description of the function.
    http_request_configuration FunctionHttpRequestConfigurationArgs
    sequential_executor_configuration FunctionSequentialExecutorConfigurationArgs
    tags Sequence[TagArgs]
    The tags to assign to the function resource.
    functionId String
    The unique identifier for the function.
    functionType "HTTP_REQUEST" | "CUSTOM_OUTPUT" | "SEQUENTIAL_EXECUTOR"
    The type of the function. Determines which configuration object is used.
    customOutputConfiguration Property Map
    description String
    A description of the function.
    httpRequestConfiguration Property Map
    sequentialExecutorConfiguration Property Map
    tags 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:

    Arn string
    The ARN of the function.
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    The ARN of the function.
    Id string
    The provider-assigned unique ID for this managed resource.
    arn string
    The ARN of the function.
    id string
    The provider-assigned unique ID for this managed resource.
    arn String
    The ARN of the function.
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    The ARN of the function.
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    The ARN of the function.
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    The ARN of the function.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    FunctionCustomOutputConfiguration, FunctionCustomOutputConfigurationArgs

    Configuration for custom output functions.
    Runtime Pulumi.AwsNative.MediaTailor.FunctionRuntimeType
    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 FunctionRuntimeType
    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 "JSONATA"
    The runtime environment for the function expression language.
    output map(string)
    A map of output key-value pairs that define the custom output.
    runtime FunctionRuntimeType
    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 FunctionRuntimeType
    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 FunctionRuntimeType
    The runtime environment for the function expression language.
    output Mapping[str, str]
    A map of output key-value pairs that define the custom output.
    runtime "JSONATA"
    The runtime environment for the function expression language.
    output Map<String>
    A map of output key-value pairs that define the custom output.

    FunctionHttpRequestConfiguration, FunctionHttpRequestConfigurationArgs

    Configuration for HTTP request functions.
    MethodType Pulumi.AwsNative.MediaTailor.FunctionMethodType
    The HTTP method type for the request.
    RequestTimeoutMilliseconds int
    The timeout in milliseconds for the HTTP request. Maximum value is 2000.
    Runtime Pulumi.AwsNative.MediaTailor.FunctionRuntimeType
    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.
    MethodType FunctionMethodType
    The HTTP method type for the request.
    RequestTimeoutMilliseconds int
    The timeout in milliseconds for the HTTP request. Maximum value is 2000.
    Runtime FunctionRuntimeType
    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_milliseconds number
    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.
    methodType FunctionMethodType
    The HTTP method type for the request.
    requestTimeoutMilliseconds Integer
    The timeout in milliseconds for the HTTP request. Maximum value is 2000.
    runtime FunctionRuntimeType
    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.
    methodType FunctionMethodType
    The HTTP method type for the request.
    requestTimeoutMilliseconds number
    The timeout in milliseconds for the HTTP request. Maximum value is 2000.
    runtime FunctionRuntimeType
    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 FunctionMethodType
    The HTTP method type for the request.
    request_timeout_milliseconds int
    The timeout in milliseconds for the HTTP request. Maximum value is 2000.
    runtime FunctionRuntimeType
    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.
    methodType "GET" | "POST"
    The HTTP method type for the request.
    requestTimeoutMilliseconds Number
    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
    FunctionMethodTypeGet
    GET
    FunctionMethodTypePost
    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.
    FunctionId string
    The identifier of the function to execute.
    RunCondition string
    A conditional expression that determines whether this function should execute.
    FunctionId string
    The identifier of the function to execute.
    RunCondition 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.
    functionId String
    The identifier of the function to execute.
    runCondition String
    A conditional expression that determines whether this function should execute.
    functionId string
    The identifier of the function to execute.
    runCondition 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.
    functionId String
    The identifier of the function to execute.
    runCondition String
    A conditional expression that determines whether this function should execute.

    FunctionRuntimeType, FunctionRuntimeTypeArgs

    Jsonata
    JSONATA
    FunctionRuntimeTypeJsonata
    JSONATA
    "JSONATA"
    JSONATA
    Jsonata
    JSONATA
    Jsonata
    JSONATA
    JSONATA
    JSONATA
    "JSONATA"
    JSONATA

    FunctionSequentialExecutorConfiguration, FunctionSequentialExecutorConfigurationArgs

    Configuration for sequential executor functions.
    FunctionList List<Pulumi.AwsNative.MediaTailor.Inputs.FunctionRef>
    The list of functions to execute sequentially.
    Runtime Pulumi.AwsNative.MediaTailor.FunctionRuntimeType
    The runtime environment for the function expression language.
    TimeoutMilliseconds 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.
    FunctionList []FunctionRef
    The list of functions to execute sequentially.
    Runtime FunctionRuntimeType
    The runtime environment for the function expression language.
    TimeoutMilliseconds 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.
    functionList List<FunctionRef>
    The list of functions to execute sequentially.
    runtime FunctionRuntimeType
    The runtime environment for the function expression language.
    timeoutMilliseconds 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.
    functionList FunctionRef[]
    The list of functions to execute sequentially.
    runtime FunctionRuntimeType
    The runtime environment for the function expression language.
    timeoutMilliseconds 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 FunctionRuntimeType
    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.
    functionList List<Property Map>
    The list of functions to execute sequentially.
    runtime "JSONATA"
    The runtime environment for the function expression language.
    timeoutMilliseconds 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

    HttpRequest
    HTTP_REQUEST
    CustomOutput
    CUSTOM_OUTPUT
    SequentialExecutor
    SEQUENTIAL_EXECUTOR
    FunctionTypeHttpRequest
    HTTP_REQUEST
    FunctionTypeCustomOutput
    CUSTOM_OUTPUT
    FunctionTypeSequentialExecutor
    SEQUENTIAL_EXECUTOR
    "HTTP_REQUEST"
    HTTP_REQUEST
    "CUSTOM_OUTPUT"
    CUSTOM_OUTPUT
    "SEQUENTIAL_EXECUTOR"
    SEQUENTIAL_EXECUTOR
    HttpRequest
    HTTP_REQUEST
    CustomOutput
    CUSTOM_OUTPUT
    SequentialExecutor
    SEQUENTIAL_EXECUTOR
    HttpRequest
    HTTP_REQUEST
    CustomOutput
    CUSTOM_OUTPUT
    SequentialExecutor
    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.
    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.79.0
    published on Monday, Sep 14, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial