Function output

  • [output] takes any Input value and converts it into an Output, deeply unwrapping nested Input values as necessary.

    The expected way to use this function is like so:

         var transformed = pulumi.output(someVal).apply(unwrapped => {
    // Do whatever you want now. 'unwrapped' will contain no outputs/promises inside
    // here, so you can easily do whatever sort of transformation is most convenient.

    // the result can be passed to another Resource. The dependency information will be
    // properly maintained.
    var someResource = new SomeResource(name, { data: transformed ... });

    Type Parameters

    • T


    Returns Output<Unwrap<T>>

  • Type Parameters

    • T


    Returns Output<Unwrap<T | undefined>>

Generated using TypeDoc