https://pulumi.com logo
#general
Title
# general
f

full-dress-10026

11/27/2018, 8:40 PM
I have an almost exact copy of this example [1] in my code, only the argument
lambdaArn
to
swaggerSpec
is a type
Output
. What is the correct way to write a function like
swaggerSpec
to operate on `Output`s? [1] https://github.com/pulumi/examples/blob/6852169b91da1d9de6912656fead3a355d6c57a3/aws-ts-serverless-raw/index.ts#L73-L82
w

white-balloon-205

11/27/2018, 8:42 PM
The easies way is to do what that code sample does - keep the function as-is, and just use it inside an `apply`: https://github.com/pulumi/examples/blob/6852169b91da1d9de6912656fead3a355d6c57a3/aws-ts-serverless-raw/index.ts#L100-L102
👍 1