Function interpolate

  • [interpolate] is similar to [concat] but is designed to be used as a tagged template expression. i.e.:

         // 'server' and 'loadBalancer' are both resources that expose [Output] properties.
    let val: Output<string> = pulumi.interpolate `http://${server.hostname}:${loadBalancer.port}`

    As with [concat] the 'placeholders' between ${} can be any Inputs. i.e. they can be [Promise]s, [Output]s, or just plain JavaScript values.


    • literals: TemplateStringsArray
    • Rest ...placeholders: any[]

    Returns Output<string>

Generated using TypeDoc