mirror of https://github.com/pulumi/pulumi.git
13 lines
364 B
TypeScript
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");
|