From 5862f3843b3180b6d36f1630854277c6fbd1d783 Mon Sep 17 00:00:00 2001 From: Elad Ben-Israel Date: Mon, 24 Jun 2019 17:21:59 +0300 Subject: [PATCH] fix: align IRepository events to RepositoryBase Options are now not required in `onXxx` methods, but IRepository was not updated to that end. Related #2921 --- packages/@aws-cdk/aws-ecr/lib/repository.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@aws-cdk/aws-ecr/lib/repository.ts b/packages/@aws-cdk/aws-ecr/lib/repository.ts index 524f10c94d0a0..dcd7a6bb3a000 100644 --- a/packages/@aws-cdk/aws-ecr/lib/repository.ts +++ b/packages/@aws-cdk/aws-ecr/lib/repository.ts @@ -67,7 +67,7 @@ export interface IRepository extends IResource { * @param id The id of the rule * @param options Options for adding the rule */ - onCloudTrailEvent(id: string, options: events.OnEventOptions): events.Rule; + onCloudTrailEvent(id: string, options?: events.OnEventOptions): events.Rule; /** * Defines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this @@ -79,7 +79,7 @@ export interface IRepository extends IResource { * @param id The id of the rule * @param options Options for adding the rule */ - onCloudTrailImagePushed(id: string, options: OnCloudTrailImagePushedOptions): events.Rule; + onCloudTrailImagePushed(id: string, options?: OnCloudTrailImagePushedOptions): events.Rule; } /**