Skip to content

Commit

Permalink
Fix compilation of custom resource example
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico Huijbers authored and rix0rrr committed Jun 13, 2018
1 parent 8eba865 commit 8ef1f03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/@aws-cdk/custom-resources/example/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { App, Construct, Output, Stack, StackProps, Token } from '@aws-cdk/core';
import { App, Construct, IDependable, Output, Stack, StackProps, Token } from '@aws-cdk/core';
import { LambdaInlineCode, LambdaRuntime } from '@aws-cdk/lambda';
import { s3 } from '@aws-cdk/resources';
import fs = require('fs');
Expand All @@ -16,7 +16,8 @@ interface DemoResourceProps {
failCreate?: boolean;
}

class DemoResource extends Construct {
class DemoResource extends Construct implements IDependable {
public readonly dependencyElements: IDependable[];
public readonly response: Token;

constructor(parent: Construct, name: string, props: DemoResourceProps) {
Expand All @@ -35,6 +36,7 @@ class DemoResource extends Construct {
});

this.response = resource.getAtt('Response');
this.dependencyElements = [resource];
}
}

Expand Down

0 comments on commit 8ef1f03

Please sign in to comment.