Skip to content

Commit 9ee2b4d

Browse files
committed
trigger changes
1 parent 9dda81c commit 9ee2b4d

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

API.md

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/l1-resources/trigger/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export interface CfnTriggerProps {
8383
* each value is an object that configures its corresponding
8484
* event processor. For an example configuration object, see
8585
* [Send Trigger Events to AWS
86-
* EventBridge](https://www.mongodb.com/docs/realm/triggers/examples/send-events-aws-eventbridge#std-label-event_processor_example).
86+
* EventBridge](https://www.mongodb.com/docs/atlas/app-services/triggers/aws-eventbridge/#std-label-event_processor_example).
8787
*
8888
* @schema CfnTriggerProps#EventProcessors
8989
*/
@@ -230,6 +230,13 @@ export interface DatabaseConfig {
230230
*/
231231
readonly tolerateResumeErrors?: boolean;
232232

233+
/**
234+
* If `true`, the trigger will use the maximize throughput option (https://www.mongodb.com/docs/atlas/app-services/triggers/database-triggers/#std-label-triggers-maximum-throughput).
235+
*
236+
* @schema DatabaseConfig#MaximumThroughput
237+
*/
238+
readonly maximumThroughput?: boolean;
239+
233240
/**
234241
* If `true`, event ordering is disabled and this Trigger
235242
* can process events in parallel. If `false`, event
@@ -262,6 +269,7 @@ export function toJson_DatabaseConfig(
262269
FullDocumentBeforeChange: obj.fullDocumentBeforeChange,
263270
SkipCatchupEvents: obj.skipCatchupEvents,
264271
TolerateResumeErrors: obj.tolerateResumeErrors,
272+
MaximumThroughput: obj.maximumThroughput,
265273
Unordered: obj.unordered,
266274
};
267275
// filter undefined values

0 commit comments

Comments
 (0)