Skip to content

Commit a485ff6

Browse files
committed
max throughput
1 parent ad67314 commit a485ff6

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

appservices/event_triggers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,4 +212,5 @@ type EventTriggerConfig struct {
212212
ClusterName string `json:"clusterName,omitempty"`
213213
TolerateResumeErrors *bool `json:"tolerate_resume_errors,omitempty"`
214214
SkipCatchupEvents *bool `json:"skip_catchup_events,omitempty"`
215+
MaximumThroughput *bool `json:"maximum_throughput,omitempty"`
215216
}

appservices/event_triggers_test.go

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ func TestEventTriggers_CreateDatabase(t *testing.T) {
128128
Project: `{"updateDescription.updatedFields.FieldA": 1, "operationType": 1}`,
129129
FullDocument: pointy.Bool(false),
130130
FullDocumentBeforeChange: pointy.Bool(false),
131-
TolerateResumeErrors: pointy.Bool(true),
132-
SkipCatchupEvents: pointy.Bool(false),
131+
TolerateResumeErrors: pointy.Bool(true),
132+
SkipCatchupEvents: pointy.Bool(true),
133+
MaximumThroughput: pointy.Bool(true),
133134
Unordered: pointy.Bool(false),
134135
},
135136
EventProcessors: map[string]interface{}{
@@ -162,7 +163,8 @@ func TestEventTriggers_CreateDatabase(t *testing.T) {
162163
"full_document_before_change": false,
163164
"unordered": false,
164165
"tolerate_resume_errors": true,
165-
"skip_catchup_events": false,
166+
"skip_catchup_events": true,
167+
"maximum_throughput": true,
166168
},
167169
"event_processors": map[string]interface{}{
168170
"AWS_EVENTBRIDGE": map[string]interface{}{
@@ -210,7 +212,8 @@ func TestEventTriggers_CreateDatabase(t *testing.T) {
210212
"full_document_before_change": false,
211213
"unordered": false,
212214
"tolerate_resume_errors": true,
213-
"skip_catchup_events": false
215+
"skip_catchup_events": true,
216+
"maximum_throughput": true
214217
},
215218
"event_processors": {
216219
"AWS_EVENTBRIDGE": {
@@ -254,8 +257,9 @@ func TestEventTriggers_CreateDatabase(t *testing.T) {
254257
FullDocument: pointy.Bool(false),
255258
FullDocumentBeforeChange: pointy.Bool(false),
256259
Unordered: pointy.Bool(false),
257-
TolerateResumeErrors: pointy.Bool(true),
258-
SkipCatchupEvents: pointy.Bool(false),
260+
TolerateResumeErrors: pointy.Bool(true),
261+
SkipCatchupEvents: pointy.Bool(true),
262+
MaximumThroughput: pointy.Bool(true),
259263
ClusterName: "cluster name",
260264
},
261265
EventProcessors: map[string]interface{}{

0 commit comments

Comments
 (0)