Use strongly typed mu.Stacks, not strings, for CloudFormation's dependsOn

This commit is contained in:
joeduffy 2016-12-12 18:56:37 -08:00
parent 832bb80b47
commit 1a3bfc182c
2 changed files with 2 additions and 2 deletions

View file

@ -17,6 +17,6 @@ export interface ResourceArgs {
// An optional list of properties to map.
readonly properties?: any /*actually, JSON-like*/;
// An optional list of other CloudFormation resources that this depends on.
readonly dependsOn?: string[];
readonly dependsOn?: mu.Stack[];
}

View file

@ -14,7 +14,7 @@ export class Route extends cloudformation.Resource {
super(ctx, {
resource: "AWS::EC2::Route",
dependsOn: [
"vpcGatewayAttachment",
args.vpcGatewayAttachment,
],
properties: args,
});