@aws-sdk/client-notifications 3.730.0 → 3.731.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/README.md +115 -3
  2. package/dist-cjs/Notifications.js +28 -0
  3. package/dist-cjs/commands/AssociateManagedNotificationAccountContactCommand.js +26 -0
  4. package/dist-cjs/commands/AssociateManagedNotificationAdditionalChannelCommand.js +26 -0
  5. package/dist-cjs/commands/DisableNotificationsAccessForOrganizationCommand.js +26 -0
  6. package/dist-cjs/commands/DisassociateManagedNotificationAccountContactCommand.js +26 -0
  7. package/dist-cjs/commands/DisassociateManagedNotificationAdditionalChannelCommand.js +26 -0
  8. package/dist-cjs/commands/EnableNotificationsAccessForOrganizationCommand.js +26 -0
  9. package/dist-cjs/commands/GetManagedNotificationChildEventCommand.js +26 -0
  10. package/dist-cjs/commands/GetManagedNotificationConfigurationCommand.js +26 -0
  11. package/dist-cjs/commands/GetManagedNotificationEventCommand.js +26 -0
  12. package/dist-cjs/commands/GetNotificationsAccessForOrganizationCommand.js +26 -0
  13. package/dist-cjs/commands/ListManagedNotificationChannelAssociationsCommand.js +26 -0
  14. package/dist-cjs/commands/ListManagedNotificationChildEventsCommand.js +26 -0
  15. package/dist-cjs/commands/ListManagedNotificationConfigurationsCommand.js +26 -0
  16. package/dist-cjs/commands/ListManagedNotificationEventsCommand.js +26 -0
  17. package/dist-cjs/commands/index.js +14 -0
  18. package/dist-cjs/models/models_0.js +25 -4
  19. package/dist-cjs/pagination/ListManagedNotificationChannelAssociationsPaginator.js +7 -0
  20. package/dist-cjs/pagination/ListManagedNotificationChildEventsPaginator.js +7 -0
  21. package/dist-cjs/pagination/ListManagedNotificationConfigurationsPaginator.js +7 -0
  22. package/dist-cjs/pagination/ListManagedNotificationEventsPaginator.js +7 -0
  23. package/dist-cjs/pagination/index.js +4 -0
  24. package/dist-cjs/protocols/Aws_restJson1.js +475 -5
  25. package/dist-es/Notifications.js +28 -0
  26. package/dist-es/commands/AssociateManagedNotificationAccountContactCommand.js +22 -0
  27. package/dist-es/commands/AssociateManagedNotificationAdditionalChannelCommand.js +22 -0
  28. package/dist-es/commands/DisableNotificationsAccessForOrganizationCommand.js +22 -0
  29. package/dist-es/commands/DisassociateManagedNotificationAccountContactCommand.js +22 -0
  30. package/dist-es/commands/DisassociateManagedNotificationAdditionalChannelCommand.js +22 -0
  31. package/dist-es/commands/EnableNotificationsAccessForOrganizationCommand.js +22 -0
  32. package/dist-es/commands/GetManagedNotificationChildEventCommand.js +22 -0
  33. package/dist-es/commands/GetManagedNotificationConfigurationCommand.js +22 -0
  34. package/dist-es/commands/GetManagedNotificationEventCommand.js +22 -0
  35. package/dist-es/commands/GetNotificationsAccessForOrganizationCommand.js +22 -0
  36. package/dist-es/commands/ListManagedNotificationChannelAssociationsCommand.js +22 -0
  37. package/dist-es/commands/ListManagedNotificationChildEventsCommand.js +22 -0
  38. package/dist-es/commands/ListManagedNotificationConfigurationsCommand.js +22 -0
  39. package/dist-es/commands/ListManagedNotificationEventsCommand.js +22 -0
  40. package/dist-es/commands/index.js +14 -0
  41. package/dist-es/models/models_0.js +24 -3
  42. package/dist-es/pagination/ListManagedNotificationChannelAssociationsPaginator.js +4 -0
  43. package/dist-es/pagination/ListManagedNotificationChildEventsPaginator.js +4 -0
  44. package/dist-es/pagination/ListManagedNotificationConfigurationsPaginator.js +4 -0
  45. package/dist-es/pagination/ListManagedNotificationEventsPaginator.js +4 -0
  46. package/dist-es/pagination/index.js +4 -0
  47. package/dist-es/protocols/Aws_restJson1.js +445 -4
  48. package/dist-types/Notifications.d.ts +106 -3
  49. package/dist-types/NotificationsClient.d.ts +19 -5
  50. package/dist-types/commands/AssociateChannelCommand.d.ts +2 -2
  51. package/dist-types/commands/AssociateManagedNotificationAccountContactCommand.d.ts +91 -0
  52. package/dist-types/commands/AssociateManagedNotificationAdditionalChannelCommand.d.ts +92 -0
  53. package/dist-types/commands/CreateEventRuleCommand.d.ts +4 -1
  54. package/dist-types/commands/CreateNotificationConfigurationCommand.d.ts +1 -1
  55. package/dist-types/commands/DeleteEventRuleCommand.d.ts +1 -1
  56. package/dist-types/commands/DeleteNotificationConfigurationCommand.d.ts +1 -1
  57. package/dist-types/commands/DeregisterNotificationHubCommand.d.ts +5 -2
  58. package/dist-types/commands/DisableNotificationsAccessForOrganizationCommand.d.ts +88 -0
  59. package/dist-types/commands/DisassociateChannelCommand.d.ts +1 -1
  60. package/dist-types/commands/DisassociateManagedNotificationAccountContactCommand.d.ts +88 -0
  61. package/dist-types/commands/DisassociateManagedNotificationAdditionalChannelCommand.d.ts +86 -0
  62. package/dist-types/commands/EnableNotificationsAccessForOrganizationCommand.d.ts +88 -0
  63. package/dist-types/commands/GetEventRuleCommand.d.ts +1 -1
  64. package/dist-types/commands/GetManagedNotificationChildEventCommand.d.ts +130 -0
  65. package/dist-types/commands/GetManagedNotificationConfigurationCommand.d.ts +90 -0
  66. package/dist-types/commands/GetManagedNotificationEventCommand.d.ts +161 -0
  67. package/dist-types/commands/GetNotificationConfigurationCommand.d.ts +1 -1
  68. package/dist-types/commands/GetNotificationEventCommand.d.ts +42 -3
  69. package/dist-types/commands/GetNotificationsAccessForOrganizationCommand.d.ts +83 -0
  70. package/dist-types/commands/ListChannelsCommand.d.ts +1 -1
  71. package/dist-types/commands/ListEventRulesCommand.d.ts +1 -1
  72. package/dist-types/commands/ListManagedNotificationChannelAssociationsCommand.d.ts +95 -0
  73. package/dist-types/commands/ListManagedNotificationChildEventsCommand.d.ts +121 -0
  74. package/dist-types/commands/ListManagedNotificationConfigurationsCommand.d.ts +92 -0
  75. package/dist-types/commands/ListManagedNotificationEventsCommand.d.ts +155 -0
  76. package/dist-types/commands/ListNotificationConfigurationsCommand.d.ts +2 -1
  77. package/dist-types/commands/ListNotificationEventsCommand.d.ts +41 -2
  78. package/dist-types/commands/ListNotificationHubsCommand.d.ts +1 -1
  79. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
  80. package/dist-types/commands/RegisterNotificationHubCommand.d.ts +3 -2
  81. package/dist-types/commands/TagResourceCommand.d.ts +2 -2
  82. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  83. package/dist-types/commands/UpdateEventRuleCommand.d.ts +1 -1
  84. package/dist-types/commands/UpdateNotificationConfigurationCommand.d.ts +1 -1
  85. package/dist-types/commands/index.d.ts +14 -0
  86. package/dist-types/index.d.ts +3 -3
  87. package/dist-types/models/models_0.d.ts +1830 -578
  88. package/dist-types/pagination/ListManagedNotificationChannelAssociationsPaginator.d.ts +7 -0
  89. package/dist-types/pagination/ListManagedNotificationChildEventsPaginator.d.ts +7 -0
  90. package/dist-types/pagination/ListManagedNotificationConfigurationsPaginator.d.ts +7 -0
  91. package/dist-types/pagination/ListManagedNotificationEventsPaginator.d.ts +7 -0
  92. package/dist-types/pagination/index.d.ts +4 -0
  93. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  94. package/dist-types/ts3.4/Notifications.d.ts +309 -0
  95. package/dist-types/ts3.4/NotificationsClient.d.ts +84 -0
  96. package/dist-types/ts3.4/commands/AssociateManagedNotificationAccountContactCommand.d.ts +51 -0
  97. package/dist-types/ts3.4/commands/AssociateManagedNotificationAdditionalChannelCommand.d.ts +51 -0
  98. package/dist-types/ts3.4/commands/DisableNotificationsAccessForOrganizationCommand.d.ts +51 -0
  99. package/dist-types/ts3.4/commands/DisassociateManagedNotificationAccountContactCommand.d.ts +51 -0
  100. package/dist-types/ts3.4/commands/DisassociateManagedNotificationAdditionalChannelCommand.d.ts +51 -0
  101. package/dist-types/ts3.4/commands/EnableNotificationsAccessForOrganizationCommand.d.ts +51 -0
  102. package/dist-types/ts3.4/commands/GetManagedNotificationChildEventCommand.d.ts +51 -0
  103. package/dist-types/ts3.4/commands/GetManagedNotificationConfigurationCommand.d.ts +51 -0
  104. package/dist-types/ts3.4/commands/GetManagedNotificationEventCommand.d.ts +51 -0
  105. package/dist-types/ts3.4/commands/GetNotificationsAccessForOrganizationCommand.d.ts +51 -0
  106. package/dist-types/ts3.4/commands/ListManagedNotificationChannelAssociationsCommand.d.ts +51 -0
  107. package/dist-types/ts3.4/commands/ListManagedNotificationChildEventsCommand.d.ts +51 -0
  108. package/dist-types/ts3.4/commands/ListManagedNotificationConfigurationsCommand.d.ts +51 -0
  109. package/dist-types/ts3.4/commands/ListManagedNotificationEventsCommand.d.ts +51 -0
  110. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  111. package/dist-types/ts3.4/models/models_0.d.ts +288 -38
  112. package/dist-types/ts3.4/pagination/ListManagedNotificationChannelAssociationsPaginator.d.ts +11 -0
  113. package/dist-types/ts3.4/pagination/ListManagedNotificationChildEventsPaginator.d.ts +11 -0
  114. package/dist-types/ts3.4/pagination/ListManagedNotificationConfigurationsPaginator.d.ts +11 -0
  115. package/dist-types/ts3.4/pagination/ListManagedNotificationEventsPaginator.d.ts +11 -0
  116. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  117. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  118. package/package.json +12 -12
@@ -17,6 +17,34 @@ export const se_AssociateChannelCommand = async (input, context) => {
17
17
  b.m("POST").h(headers).b(body);
18
18
  return b.build();
19
19
  };
20
+ export const se_AssociateManagedNotificationAccountContactCommand = async (input, context) => {
21
+ const b = rb(input, context);
22
+ const headers = {
23
+ "content-type": "application/json",
24
+ };
25
+ b.bp("/contacts/associate-managed-notification/{contactIdentifier}");
26
+ b.p("contactIdentifier", () => input.contactIdentifier, "{contactIdentifier}", false);
27
+ let body;
28
+ body = JSON.stringify(take(input, {
29
+ managedNotificationConfigurationArn: [],
30
+ }));
31
+ b.m("PUT").h(headers).b(body);
32
+ return b.build();
33
+ };
34
+ export const se_AssociateManagedNotificationAdditionalChannelCommand = async (input, context) => {
35
+ const b = rb(input, context);
36
+ const headers = {
37
+ "content-type": "application/json",
38
+ };
39
+ b.bp("/channels/associate-managed-notification/{channelArn}");
40
+ b.p("channelArn", () => input.channelArn, "{channelArn}", false);
41
+ let body;
42
+ body = JSON.stringify(take(input, {
43
+ managedNotificationConfigurationArn: [],
44
+ }));
45
+ b.m("PUT").h(headers).b(body);
46
+ return b.build();
47
+ };
20
48
  export const se_CreateEventRuleCommand = async (input, context) => {
21
49
  const b = rb(input, context);
22
50
  const headers = {
@@ -77,6 +105,14 @@ export const se_DeregisterNotificationHubCommand = async (input, context) => {
77
105
  b.m("DELETE").h(headers).b(body);
78
106
  return b.build();
79
107
  };
108
+ export const se_DisableNotificationsAccessForOrganizationCommand = async (input, context) => {
109
+ const b = rb(input, context);
110
+ const headers = {};
111
+ b.bp("/organization/access");
112
+ let body;
113
+ b.m("DELETE").h(headers).b(body);
114
+ return b.build();
115
+ };
80
116
  export const se_DisassociateChannelCommand = async (input, context) => {
81
117
  const b = rb(input, context);
82
118
  const headers = {
@@ -91,6 +127,42 @@ export const se_DisassociateChannelCommand = async (input, context) => {
91
127
  b.m("POST").h(headers).b(body);
92
128
  return b.build();
93
129
  };
130
+ export const se_DisassociateManagedNotificationAccountContactCommand = async (input, context) => {
131
+ const b = rb(input, context);
132
+ const headers = {
133
+ "content-type": "application/json",
134
+ };
135
+ b.bp("/contacts/disassociate-managed-notification/{contactIdentifier}");
136
+ b.p("contactIdentifier", () => input.contactIdentifier, "{contactIdentifier}", false);
137
+ let body;
138
+ body = JSON.stringify(take(input, {
139
+ managedNotificationConfigurationArn: [],
140
+ }));
141
+ b.m("PUT").h(headers).b(body);
142
+ return b.build();
143
+ };
144
+ export const se_DisassociateManagedNotificationAdditionalChannelCommand = async (input, context) => {
145
+ const b = rb(input, context);
146
+ const headers = {
147
+ "content-type": "application/json",
148
+ };
149
+ b.bp("/channels/disassociate-managed-notification/{channelArn}");
150
+ b.p("channelArn", () => input.channelArn, "{channelArn}", false);
151
+ let body;
152
+ body = JSON.stringify(take(input, {
153
+ managedNotificationConfigurationArn: [],
154
+ }));
155
+ b.m("PUT").h(headers).b(body);
156
+ return b.build();
157
+ };
158
+ export const se_EnableNotificationsAccessForOrganizationCommand = async (input, context) => {
159
+ const b = rb(input, context);
160
+ const headers = {};
161
+ b.bp("/organization/access");
162
+ let body;
163
+ b.m("POST").h(headers).b(body);
164
+ return b.build();
165
+ };
94
166
  export const se_GetEventRuleCommand = async (input, context) => {
95
167
  const b = rb(input, context);
96
168
  const headers = {};
@@ -100,6 +172,39 @@ export const se_GetEventRuleCommand = async (input, context) => {
100
172
  b.m("GET").h(headers).b(body);
101
173
  return b.build();
102
174
  };
175
+ export const se_GetManagedNotificationChildEventCommand = async (input, context) => {
176
+ const b = rb(input, context);
177
+ const headers = {};
178
+ b.bp("/managed-notification-child-events/{arn}");
179
+ b.p("arn", () => input.arn, "{arn}", false);
180
+ const query = map({
181
+ [_l]: [, input[_l]],
182
+ });
183
+ let body;
184
+ b.m("GET").h(headers).q(query).b(body);
185
+ return b.build();
186
+ };
187
+ export const se_GetManagedNotificationConfigurationCommand = async (input, context) => {
188
+ const b = rb(input, context);
189
+ const headers = {};
190
+ b.bp("/managed-notification-configurations/{arn}");
191
+ b.p("arn", () => input.arn, "{arn}", false);
192
+ let body;
193
+ b.m("GET").h(headers).b(body);
194
+ return b.build();
195
+ };
196
+ export const se_GetManagedNotificationEventCommand = async (input, context) => {
197
+ const b = rb(input, context);
198
+ const headers = {};
199
+ b.bp("/managed-notification-events/{arn}");
200
+ b.p("arn", () => input.arn, "{arn}", false);
201
+ const query = map({
202
+ [_l]: [, input[_l]],
203
+ });
204
+ let body;
205
+ b.m("GET").h(headers).q(query).b(body);
206
+ return b.build();
207
+ };
103
208
  export const se_GetNotificationConfigurationCommand = async (input, context) => {
104
209
  const b = rb(input, context);
105
210
  const headers = {};
@@ -121,6 +226,14 @@ export const se_GetNotificationEventCommand = async (input, context) => {
121
226
  b.m("GET").h(headers).q(query).b(body);
122
227
  return b.build();
123
228
  };
229
+ export const se_GetNotificationsAccessForOrganizationCommand = async (input, context) => {
230
+ const b = rb(input, context);
231
+ const headers = {};
232
+ b.bp("/organization/access");
233
+ let body;
234
+ b.m("GET").h(headers).b(body);
235
+ return b.build();
236
+ };
124
237
  export const se_ListChannelsCommand = async (input, context) => {
125
238
  const b = rb(input, context);
126
239
  const headers = {};
@@ -147,6 +260,68 @@ export const se_ListEventRulesCommand = async (input, context) => {
147
260
  b.m("GET").h(headers).q(query).b(body);
148
261
  return b.build();
149
262
  };
263
+ export const se_ListManagedNotificationChannelAssociationsCommand = async (input, context) => {
264
+ const b = rb(input, context);
265
+ const headers = {};
266
+ b.bp("/channels/list-managed-notification-channel-associations");
267
+ const query = map({
268
+ [_mNCA]: [, __expectNonNull(input[_mNCA], `managedNotificationConfigurationArn`)],
269
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
270
+ [_nT]: [, input[_nT]],
271
+ });
272
+ let body;
273
+ b.m("GET").h(headers).q(query).b(body);
274
+ return b.build();
275
+ };
276
+ export const se_ListManagedNotificationChildEventsCommand = async (input, context) => {
277
+ const b = rb(input, context);
278
+ const headers = {};
279
+ b.bp("/list-managed-notification-child-events/{aggregateManagedNotificationEventArn}");
280
+ b.p("aggregateManagedNotificationEventArn", () => input.aggregateManagedNotificationEventArn, "{aggregateManagedNotificationEventArn}", false);
281
+ const query = map({
282
+ [_sT]: [() => input.startTime !== void 0, () => __serializeDateTime(input[_sT]).toString()],
283
+ [_eT]: [() => input.endTime !== void 0, () => __serializeDateTime(input[_eT]).toString()],
284
+ [_l]: [, input[_l]],
285
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
286
+ [_rA]: [, input[_rA]],
287
+ [_oUI]: [, input[_oUI]],
288
+ [_nT]: [, input[_nT]],
289
+ });
290
+ let body;
291
+ b.m("GET").h(headers).q(query).b(body);
292
+ return b.build();
293
+ };
294
+ export const se_ListManagedNotificationConfigurationsCommand = async (input, context) => {
295
+ const b = rb(input, context);
296
+ const headers = {};
297
+ b.bp("/managed-notification-configurations");
298
+ const query = map({
299
+ [_cI]: [, input[_cI]],
300
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
301
+ [_nT]: [, input[_nT]],
302
+ });
303
+ let body;
304
+ b.m("GET").h(headers).q(query).b(body);
305
+ return b.build();
306
+ };
307
+ export const se_ListManagedNotificationEventsCommand = async (input, context) => {
308
+ const b = rb(input, context);
309
+ const headers = {};
310
+ b.bp("/managed-notification-events");
311
+ const query = map({
312
+ [_sT]: [() => input.startTime !== void 0, () => __serializeDateTime(input[_sT]).toString()],
313
+ [_eT]: [() => input.endTime !== void 0, () => __serializeDateTime(input[_eT]).toString()],
314
+ [_l]: [, input[_l]],
315
+ [_s]: [, input[_s]],
316
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
317
+ [_nT]: [, input[_nT]],
318
+ [_oUI]: [, input[_oUI]],
319
+ [_rA]: [, input[_rA]],
320
+ });
321
+ let body;
322
+ b.m("GET").h(headers).q(query).b(body);
323
+ return b.build();
324
+ };
150
325
  export const se_ListNotificationConfigurationsCommand = async (input, context) => {
151
326
  const b = rb(input, context);
152
327
  const headers = {};
@@ -154,7 +329,7 @@ export const se_ListNotificationConfigurationsCommand = async (input, context) =
154
329
  const query = map({
155
330
  [_eRS]: [, input[_eRS]],
156
331
  [_cA]: [, input[_cA]],
157
- [_s]: [, input[_s]],
332
+ [_st]: [, input[_st]],
158
333
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
159
334
  [_nT]: [, input[_nT]],
160
335
  });
@@ -170,7 +345,7 @@ export const se_ListNotificationEventsCommand = async (input, context) => {
170
345
  [_sT]: [() => input.startTime !== void 0, () => __serializeDateTime(input[_sT]).toString()],
171
346
  [_eT]: [() => input.endTime !== void 0, () => __serializeDateTime(input[_eT]).toString()],
172
347
  [_l]: [, input[_l]],
173
- [_so]: [, input[_so]],
348
+ [_s]: [, input[_s]],
174
349
  [_iCE]: [() => input.includeChildEvents !== void 0, () => input[_iCE].toString()],
175
350
  [_aNEA]: [, input[_aNEA]],
176
351
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
@@ -281,6 +456,26 @@ export const de_AssociateChannelCommand = async (output, context) => {
281
456
  await collectBody(output.body, context);
282
457
  return contents;
283
458
  };
459
+ export const de_AssociateManagedNotificationAccountContactCommand = async (output, context) => {
460
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
461
+ return de_CommandError(output, context);
462
+ }
463
+ const contents = map({
464
+ $metadata: deserializeMetadata(output),
465
+ });
466
+ await collectBody(output.body, context);
467
+ return contents;
468
+ };
469
+ export const de_AssociateManagedNotificationAdditionalChannelCommand = async (output, context) => {
470
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
471
+ return de_CommandError(output, context);
472
+ }
473
+ const contents = map({
474
+ $metadata: deserializeMetadata(output),
475
+ });
476
+ await collectBody(output.body, context);
477
+ return contents;
478
+ };
284
479
  export const de_CreateEventRuleCommand = async (output, context) => {
285
480
  if (output.statusCode !== 201 && output.statusCode >= 300) {
286
481
  return de_CommandError(output, context);
@@ -347,6 +542,16 @@ export const de_DeregisterNotificationHubCommand = async (output, context) => {
347
542
  Object.assign(contents, doc);
348
543
  return contents;
349
544
  };
545
+ export const de_DisableNotificationsAccessForOrganizationCommand = async (output, context) => {
546
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
547
+ return de_CommandError(output, context);
548
+ }
549
+ const contents = map({
550
+ $metadata: deserializeMetadata(output),
551
+ });
552
+ await collectBody(output.body, context);
553
+ return contents;
554
+ };
350
555
  export const de_DisassociateChannelCommand = async (output, context) => {
351
556
  if (output.statusCode !== 200 && output.statusCode >= 300) {
352
557
  return de_CommandError(output, context);
@@ -357,6 +562,36 @@ export const de_DisassociateChannelCommand = async (output, context) => {
357
562
  await collectBody(output.body, context);
358
563
  return contents;
359
564
  };
565
+ export const de_DisassociateManagedNotificationAccountContactCommand = async (output, context) => {
566
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
567
+ return de_CommandError(output, context);
568
+ }
569
+ const contents = map({
570
+ $metadata: deserializeMetadata(output),
571
+ });
572
+ await collectBody(output.body, context);
573
+ return contents;
574
+ };
575
+ export const de_DisassociateManagedNotificationAdditionalChannelCommand = async (output, context) => {
576
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
577
+ return de_CommandError(output, context);
578
+ }
579
+ const contents = map({
580
+ $metadata: deserializeMetadata(output),
581
+ });
582
+ await collectBody(output.body, context);
583
+ return contents;
584
+ };
585
+ export const de_EnableNotificationsAccessForOrganizationCommand = async (output, context) => {
586
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
587
+ return de_CommandError(output, context);
588
+ }
589
+ const contents = map({
590
+ $metadata: deserializeMetadata(output),
591
+ });
592
+ await collectBody(output.body, context);
593
+ return contents;
594
+ };
360
595
  export const de_GetEventRuleCommand = async (output, context) => {
361
596
  if (output.statusCode !== 200 && output.statusCode >= 300) {
362
597
  return de_CommandError(output, context);
@@ -379,6 +614,58 @@ export const de_GetEventRuleCommand = async (output, context) => {
379
614
  Object.assign(contents, doc);
380
615
  return contents;
381
616
  };
617
+ export const de_GetManagedNotificationChildEventCommand = async (output, context) => {
618
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
619
+ return de_CommandError(output, context);
620
+ }
621
+ const contents = map({
622
+ $metadata: deserializeMetadata(output),
623
+ });
624
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
625
+ const doc = take(data, {
626
+ arn: __expectString,
627
+ content: (_) => de_ManagedNotificationChildEvent(_, context),
628
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
629
+ managedNotificationConfigurationArn: __expectString,
630
+ });
631
+ Object.assign(contents, doc);
632
+ return contents;
633
+ };
634
+ export const de_GetManagedNotificationConfigurationCommand = async (output, context) => {
635
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
636
+ return de_CommandError(output, context);
637
+ }
638
+ const contents = map({
639
+ $metadata: deserializeMetadata(output),
640
+ });
641
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
642
+ const doc = take(data, {
643
+ arn: __expectString,
644
+ category: __expectString,
645
+ description: __expectString,
646
+ name: __expectString,
647
+ subCategory: __expectString,
648
+ });
649
+ Object.assign(contents, doc);
650
+ return contents;
651
+ };
652
+ export const de_GetManagedNotificationEventCommand = async (output, context) => {
653
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
654
+ return de_CommandError(output, context);
655
+ }
656
+ const contents = map({
657
+ $metadata: deserializeMetadata(output),
658
+ });
659
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
660
+ const doc = take(data, {
661
+ arn: __expectString,
662
+ content: (_) => de_ManagedNotificationEvent(_, context),
663
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
664
+ managedNotificationConfigurationArn: __expectString,
665
+ });
666
+ Object.assign(contents, doc);
667
+ return contents;
668
+ };
382
669
  export const de_GetNotificationConfigurationCommand = async (output, context) => {
383
670
  if (output.statusCode !== 200 && output.statusCode >= 300) {
384
671
  return de_CommandError(output, context);
@@ -415,6 +702,20 @@ export const de_GetNotificationEventCommand = async (output, context) => {
415
702
  Object.assign(contents, doc);
416
703
  return contents;
417
704
  };
705
+ export const de_GetNotificationsAccessForOrganizationCommand = async (output, context) => {
706
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
707
+ return de_CommandError(output, context);
708
+ }
709
+ const contents = map({
710
+ $metadata: deserializeMetadata(output),
711
+ });
712
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
713
+ const doc = take(data, {
714
+ notificationsAccessForOrganization: _json,
715
+ });
716
+ Object.assign(contents, doc);
717
+ return contents;
718
+ };
418
719
  export const de_ListChannelsCommand = async (output, context) => {
419
720
  if (output.statusCode !== 200 && output.statusCode >= 300) {
420
721
  return de_CommandError(output, context);
@@ -445,6 +746,66 @@ export const de_ListEventRulesCommand = async (output, context) => {
445
746
  Object.assign(contents, doc);
446
747
  return contents;
447
748
  };
749
+ export const de_ListManagedNotificationChannelAssociationsCommand = async (output, context) => {
750
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
751
+ return de_CommandError(output, context);
752
+ }
753
+ const contents = map({
754
+ $metadata: deserializeMetadata(output),
755
+ });
756
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
757
+ const doc = take(data, {
758
+ channelAssociations: _json,
759
+ nextToken: __expectString,
760
+ });
761
+ Object.assign(contents, doc);
762
+ return contents;
763
+ };
764
+ export const de_ListManagedNotificationChildEventsCommand = async (output, context) => {
765
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
766
+ return de_CommandError(output, context);
767
+ }
768
+ const contents = map({
769
+ $metadata: deserializeMetadata(output),
770
+ });
771
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
772
+ const doc = take(data, {
773
+ managedNotificationChildEvents: (_) => de_ManagedNotificationChildEvents(_, context),
774
+ nextToken: __expectString,
775
+ });
776
+ Object.assign(contents, doc);
777
+ return contents;
778
+ };
779
+ export const de_ListManagedNotificationConfigurationsCommand = async (output, context) => {
780
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
781
+ return de_CommandError(output, context);
782
+ }
783
+ const contents = map({
784
+ $metadata: deserializeMetadata(output),
785
+ });
786
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
787
+ const doc = take(data, {
788
+ managedNotificationConfigurations: _json,
789
+ nextToken: __expectString,
790
+ });
791
+ Object.assign(contents, doc);
792
+ return contents;
793
+ };
794
+ export const de_ListManagedNotificationEventsCommand = async (output, context) => {
795
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
796
+ return de_CommandError(output, context);
797
+ }
798
+ const contents = map({
799
+ $metadata: deserializeMetadata(output),
800
+ });
801
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
802
+ const doc = take(data, {
803
+ managedNotificationEvents: (_) => de_ManagedNotificationEvents(_, context),
804
+ nextToken: __expectString,
805
+ });
806
+ Object.assign(contents, doc);
807
+ return contents;
808
+ };
448
809
  export const de_ListNotificationConfigurationsCommand = async (output, context) => {
449
810
  if (output.statusCode !== 200 && output.statusCode >= 300) {
450
811
  return de_CommandError(output, context);
@@ -733,6 +1094,80 @@ const de_EventRuleStructure = (output, context) => {
733
1094
  statusSummaryByRegion: _json,
734
1095
  });
735
1096
  };
1097
+ const de_ManagedNotificationChildEvent = (output, context) => {
1098
+ return take(output, {
1099
+ aggregateManagedNotificationEventArn: __expectString,
1100
+ aggregationDetail: _json,
1101
+ endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1102
+ eventStatus: __expectString,
1103
+ id: __expectString,
1104
+ messageComponents: _json,
1105
+ notificationType: __expectString,
1106
+ organizationalUnitId: __expectString,
1107
+ schemaVersion: __expectString,
1108
+ sourceEventDetailUrl: __expectString,
1109
+ sourceEventDetailUrlDisplayText: __expectString,
1110
+ startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1111
+ textParts: _json,
1112
+ });
1113
+ };
1114
+ const de_ManagedNotificationChildEventOverview = (output, context) => {
1115
+ return take(output, {
1116
+ aggregateManagedNotificationEventArn: __expectString,
1117
+ arn: __expectString,
1118
+ childEvent: _json,
1119
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1120
+ managedNotificationConfigurationArn: __expectString,
1121
+ organizationalUnitId: __expectString,
1122
+ relatedAccount: __expectString,
1123
+ });
1124
+ };
1125
+ const de_ManagedNotificationChildEvents = (output, context) => {
1126
+ const retVal = (output || [])
1127
+ .filter((e) => e != null)
1128
+ .map((entry) => {
1129
+ return de_ManagedNotificationChildEventOverview(entry, context);
1130
+ });
1131
+ return retVal;
1132
+ };
1133
+ const de_ManagedNotificationEvent = (output, context) => {
1134
+ return take(output, {
1135
+ aggregationEventType: __expectString,
1136
+ aggregationSummary: _json,
1137
+ endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1138
+ eventStatus: __expectString,
1139
+ id: __expectString,
1140
+ messageComponents: _json,
1141
+ notificationType: __expectString,
1142
+ organizationalUnitId: __expectString,
1143
+ schemaVersion: __expectString,
1144
+ sourceEventDetailUrl: __expectString,
1145
+ sourceEventDetailUrlDisplayText: __expectString,
1146
+ startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1147
+ textParts: _json,
1148
+ });
1149
+ };
1150
+ const de_ManagedNotificationEventOverview = (output, context) => {
1151
+ return take(output, {
1152
+ aggregatedNotificationRegions: _json,
1153
+ aggregationEventType: __expectString,
1154
+ aggregationSummary: _json,
1155
+ arn: __expectString,
1156
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1157
+ managedNotificationConfigurationArn: __expectString,
1158
+ notificationEvent: _json,
1159
+ organizationalUnitId: __expectString,
1160
+ relatedAccount: __expectString,
1161
+ });
1162
+ };
1163
+ const de_ManagedNotificationEvents = (output, context) => {
1164
+ const retVal = (output || [])
1165
+ .filter((e) => e != null)
1166
+ .map((entry) => {
1167
+ return de_ManagedNotificationEventOverview(entry, context);
1168
+ });
1169
+ return retVal;
1170
+ };
736
1171
  const de_NotificationConfigurations = (output, context) => {
737
1172
  const retVal = (output || [])
738
1173
  .filter((e) => e != null)
@@ -755,6 +1190,7 @@ const de_NotificationEventOverview = (output, context) => {
755
1190
  return take(output, {
756
1191
  aggregateNotificationEventArn: __expectString,
757
1192
  aggregationEventType: __expectString,
1193
+ aggregationSummary: _json,
758
1194
  arn: __expectString,
759
1195
  creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
760
1196
  notificationConfigurationArn: __expectString,
@@ -774,6 +1210,7 @@ const de_NotificationEventSchema = (output, context) => {
774
1210
  return take(output, {
775
1211
  aggregateNotificationEventArn: __expectString,
776
1212
  aggregationEventType: __expectString,
1213
+ aggregationSummary: _json,
777
1214
  endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
778
1215
  eventStatus: __expectString,
779
1216
  id: __expectString,
@@ -825,16 +1262,20 @@ const deserializeMetadata = (output) => ({
825
1262
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
826
1263
  const _aNEA = "aggregateNotificationEventArn";
827
1264
  const _cA = "channelArn";
1265
+ const _cI = "channelIdentifier";
828
1266
  const _eRS = "eventRuleSource";
829
1267
  const _eT = "endTime";
830
1268
  const _iCE = "includeChildEvents";
831
1269
  const _l = "locale";
1270
+ const _mNCA = "managedNotificationConfigurationArn";
832
1271
  const _mR = "maxResults";
833
1272
  const _nCA = "notificationConfigurationArn";
834
1273
  const _nT = "nextToken";
1274
+ const _oUI = "organizationalUnitId";
1275
+ const _rA = "relatedAccount";
835
1276
  const _rAS = "retryAfterSeconds";
836
1277
  const _ra = "retry-after";
837
- const _s = "status";
1278
+ const _s = "source";
838
1279
  const _sT = "startTime";
839
- const _so = "source";
1280
+ const _st = "status";
840
1281
  const _tK = "tagKeys";