We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29e0ccf commit 65ffc88Copy full SHA for 65ffc88
packages/@aws-cdk/example-construct-library/lib/example-resource.ts
@@ -201,7 +201,11 @@ abstract class ExampleResourceBase extends Resource implements IExampleResource
201
* as it simplifies the implementation code (less branching).
202
*/
203
public onEvent(id: string, options: events.OnEventOptions = {}): events.Rule {
204
- const rule = new events.Rule(this, id, options);
+ const rule = new events.Rule(this, id, {
205
+ description: options.description,
206
+ ruleName: options.ruleName,
207
+ crossStackScope: options.crossStackScope,
208
+ });
209
rule.addTarget(options.target);
210
rule.addEventPattern({
211
// obviously, you would put your resource-specific values here
0 commit comments