mirror of https://github.com/pulumi/pulumi.git
13 lines
408 B
TypeScript
13 lines
408 B
TypeScript
// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
|
|
|
|
import { Resource } from "./resource";
|
|
|
|
// Base depends on nothing.
|
|
const a = new Resource("base", { uniqueKey: 1, state: 42 });
|
|
|
|
// Dependent depends on Base.
|
|
const b = new Resource("dependent", { state: a.state });
|
|
|
|
// Dependent-2 depends on Base and Dependent.
|
|
const c = new Resource("dependent-2", { state: 99 }, { dependsOn: [a, b] });
|