### Prevent pulumi.OutputInstance in Template Literals (TypeScript) Source: https://github.com/pulumi/eslint-plugin-pulumi/blob/main/README.md Similar to `no-output-in-template-literal`, this rule prevents `pulumi.OutputInstance` objects from being directly used within template strings. It ensures that `pulumi.interpolate` is used to correctly resolve the underlying value of the `OutputInstance` before interpolation. ```typescript import * as pulumi from "@pulumi/pulumi"; const outputInstance: pulumi.OutputInstance = pulumi.output([ 1, 2, 3, ])[0]; const someInterpolatedString = `${outputInstance}`; ``` ```typescript import * as pulumi from "@pulumi/pulumi"; const outputInstance: pulumi.OutputInstance = pulumi.output([ 1, 2, 3, ])[0]; const someInterpolatedString = pulumi.interpolate`${outputInstance}`; ``` -------------------------------- ### Prevent pulumi.Output in Template Literals (TypeScript) Source: https://github.com/pulumi/eslint-plugin-pulumi/blob/main/README.md This rule prevents `pulumi.Output` objects from being directly embedded in template strings. Since `Output` values are not guaranteed to be resolved at the time of string interpolation, this rule enforces the use of `pulumi.interpolate` to ensure correct resolution and avoid runtime issues. ```typescript import * as pulumi from "@pulumi/pulumi"; import * as aws from "@pulumi/aws"; const myBucket = new aws.s3.Bucket("myBucket"); const bucketArn = myBucket.arn; const someInterpolatedString = `${bucketArn}`; ``` ```typescript import * as pulumi from "@pulumi/pulumi"; import * as aws from "@pulumi/aws"; const myBucket = new aws.s3.Bucket("myBucket"); const bucketArn = myBucket.arn; const someInterpolatedString = pulumi.interpolate`${bucketArn}`; ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.