pulumi/tests/testdata/codegen/interpolated-string-keys-pp/nodejs/interpolated-string-keys.ts

8 lines
228 B
TypeScript

import * as pulumi from "@pulumi/pulumi";
const config = new pulumi.Config();
const value = config.require("value");
const tags = config.getObject<Record<string, string>>("tags") || {
[`interpolated/${value}`]: "value",
};