Skip to content

Commit

Permalink
chore(kms): overridden validate method must be portected
Browse files Browse the repository at this point in the history
  • Loading branch information
NetaNir committed Aug 12, 2020
1 parent 38aad67 commit bb60851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-kms/lib/key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ abstract class KeyBase extends Resource implements IKey {
return { statementAdded: true, policyDependable: this.policy };
}

public validate(): string[] {
protected validate(): string[] {
const errors = super.validate();
errors.push(...this.policy?.validateForResourcePolicy() || []);
return errors;
Expand Down

0 comments on commit bb60851

Please sign in to comment.