pulumi/sdk/nodejs/tests/runtime/langhost/cases/006.asset/index.js

14 lines
332 B
JavaScript

// This tests simple creation of assets.
let pulumi = require("../../../../../");
class FileResource extends pulumi.CustomResource {
constructor(name, data) {
super("test:index:FileResource", name, {
data: data,
});
}
}
new FileResource("file1", new pulumi.asset.FileAsset("./testdata.txt"));