pulumi/tests/integration/delete_before_create/step1/index.ts

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] });