I have an almost exact copy of this example [1] in...
# general
f
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
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