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

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

    Using getFunction

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getFunction(args: GetFunctionArgs, opts?: InvokeOptions): Promise<GetFunctionResult>
    function getFunctionOutput(args: GetFunctionOutputArgs, opts?: InvokeOutputOptions): Output<GetFunctionResult>
    def get_function(function_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetFunctionResult
    def get_function_output(function_id: pulumi.Input[Optional[str]] = None,
                     opts: Optional[InvokeOutputOptions] = None) -> Output[GetFunctionResult]
    func LookupFunction(ctx *Context, args *LookupFunctionArgs, opts ...InvokeOption) (*LookupFunctionResult, error)
    func LookupFunctionOutput(ctx *Context, args *LookupFunctionOutputArgs, opts ...InvokeOption) LookupFunctionResultOutput

    > Note: This function is named LookupFunction in the Go SDK.

    public static class GetFunction 
    {
        public static Task<GetFunctionResult> InvokeAsync(GetFunctionArgs args, InvokeOptions? opts = null)
        public static Output<GetFunctionResult> Invoke(GetFunctionInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetFunctionResult> Invoke(GetFunctionInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOptions options)
    public static Output<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOptions options)
    public static Output<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:mediatailor:getFunction
      arguments:
        # arguments dictionary
    data "aws-native_mediatailor_get_function" "name" {
        # arguments
    }

    The following arguments are supported:

    FunctionId string
    The unique identifier for the function.
    FunctionId string
    The unique identifier for the function.
    function_id string
    The unique identifier for the function.
    functionId String
    The unique identifier for the function.
    functionId string
    The unique identifier for the function.
    function_id str
    The unique identifier for the function.
    functionId String
    The unique identifier for the function.

    getFunction Result

    The following output properties are available:

    Arn string
    The ARN of the function.
    CustomOutputConfiguration FunctionCustomOutputConfiguration
    Description string
    A description of the function.
    FunctionType FunctionType
    The type of the function. Determines which configuration object is used.
    HttpRequestConfiguration FunctionHttpRequestConfiguration
    SequentialExecutorConfiguration FunctionSequentialExecutorConfiguration
    Tags Tag
    The tags to assign to the function resource.
    arn string
    The ARN of the function.
    custom_output_configuration object
    description string
    A description of the function.
    function_type "HTTP_REQUEST" | "CUSTOM_OUTPUT" | "SEQUENTIAL_EXECUTOR"
    The type of the function. Determines which configuration object is used.
    http_request_configuration object
    sequential_executor_configuration object
    tags list(object)
    The tags to assign to the function resource.
    arn String
    The ARN of the function.
    customOutputConfiguration FunctionCustomOutputConfiguration
    description String
    A description of the function.
    functionType FunctionType
    The type of the function. Determines which configuration object is used.
    httpRequestConfiguration FunctionHttpRequestConfiguration
    sequentialExecutorConfiguration FunctionSequentialExecutorConfiguration
    tags List<Tag>
    The tags to assign to the function resource.
    arn string
    The ARN of the function.
    customOutputConfiguration FunctionCustomOutputConfiguration
    description string
    A description of the function.
    functionType FunctionType
    The type of the function. Determines which configuration object is used.
    httpRequestConfiguration FunctionHttpRequestConfiguration
    sequentialExecutorConfiguration FunctionSequentialExecutorConfiguration
    tags Tag[]
    The tags to assign to the function resource.
    arn str
    The ARN of the function.
    custom_output_configuration FunctionCustomOutputConfiguration
    description str
    A description of the function.
    function_type FunctionType
    The type of the function. Determines which configuration object is used.
    http_request_configuration FunctionHttpRequestConfiguration
    sequential_executor_configuration FunctionSequentialExecutorConfiguration
    tags Sequence[root_Tag]
    The tags to assign to the function resource.
    arn String
    The ARN of the function.
    customOutputConfiguration Property Map
    description String
    A description of the function.
    functionType "HTTP_REQUEST" | "CUSTOM_OUTPUT" | "SEQUENTIAL_EXECUTOR"
    The type of the function. Determines which configuration object is used.
    httpRequestConfiguration Property Map
    sequentialExecutorConfiguration Property Map
    tags List<Property Map>
    The tags to assign to the function resource.

    Supporting Types

    FunctionCustomOutputConfiguration

    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

    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

    FunctionRef

    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

    FunctionSequentialExecutorConfiguration

    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

    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 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