pulumi/tests/integration/aliases/nodejs/rename/step1/index.ts

13 lines
364 B
TypeScript

// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
import * as pulumi from "@pulumi/pulumi";
class Resource extends pulumi.ComponentResource {
constructor(name: string, opts?: pulumi.ComponentResourceOptions) {
super("my:module:Resource", name, {}, opts);
}
}
// Scenario #1 - rename a resource
const res1 = new Resource("res1");