@aws-sdk/client-appintegrations 3.928.0 → 3.930.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 (44) hide show
  1. package/dist-cjs/index.js +1016 -1008
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/AppIntegrationsClient.js +2 -0
  4. package/dist-es/commands/CreateApplicationCommand.js +3 -9
  5. package/dist-es/commands/CreateDataIntegrationAssociationCommand.js +3 -9
  6. package/dist-es/commands/CreateDataIntegrationCommand.js +3 -9
  7. package/dist-es/commands/CreateEventIntegrationCommand.js +3 -9
  8. package/dist-es/commands/DeleteApplicationCommand.js +3 -9
  9. package/dist-es/commands/DeleteDataIntegrationCommand.js +3 -9
  10. package/dist-es/commands/DeleteEventIntegrationCommand.js +3 -9
  11. package/dist-es/commands/GetApplicationCommand.js +3 -9
  12. package/dist-es/commands/GetDataIntegrationCommand.js +3 -9
  13. package/dist-es/commands/GetEventIntegrationCommand.js +3 -9
  14. package/dist-es/commands/ListApplicationAssociationsCommand.js +3 -9
  15. package/dist-es/commands/ListApplicationsCommand.js +3 -9
  16. package/dist-es/commands/ListDataIntegrationAssociationsCommand.js +3 -9
  17. package/dist-es/commands/ListDataIntegrationsCommand.js +3 -9
  18. package/dist-es/commands/ListEventIntegrationAssociationsCommand.js +3 -9
  19. package/dist-es/commands/ListEventIntegrationsCommand.js +3 -9
  20. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  21. package/dist-es/commands/TagResourceCommand.js +3 -9
  22. package/dist-es/commands/UntagResourceCommand.js +3 -9
  23. package/dist-es/commands/UpdateApplicationCommand.js +3 -9
  24. package/dist-es/commands/UpdateDataIntegrationAssociationCommand.js +3 -9
  25. package/dist-es/commands/UpdateDataIntegrationCommand.js +3 -9
  26. package/dist-es/commands/UpdateEventIntegrationCommand.js +3 -9
  27. package/dist-es/runtimeConfig.shared.js +2 -0
  28. package/dist-es/schemas/schemas_0.js +960 -0
  29. package/dist-types/AppIntegrationsClient.d.ts +10 -1
  30. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  31. package/dist-types/runtimeConfig.d.ts +1 -0
  32. package/dist-types/runtimeConfig.native.d.ts +1 -0
  33. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  34. package/dist-types/schemas/schemas_0.d.ts +117 -0
  35. package/dist-types/ts3.4/AppIntegrationsClient.d.ts +4 -0
  36. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  37. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  38. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  39. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  40. package/dist-types/ts3.4/schemas/schemas_0.d.ts +123 -0
  41. package/package.json +33 -34
  42. package/dist-es/protocols/Aws_restJson1.js +0 -829
  43. package/dist-types/protocols/Aws_restJson1.d.ts +0 -209
  44. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -281
@@ -1,829 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { AppIntegrationsServiceException as __BaseException } from "../models/AppIntegrationsServiceException";
6
- import { AccessDeniedException, DuplicateResourceException, InternalServiceError, InvalidRequestException, ResourceNotFoundException, ResourceQuotaExceededException, ThrottlingException, UnsupportedOperationException, } from "../models/models_0";
7
- export const se_CreateApplicationCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {
10
- "content-type": "application/json",
11
- };
12
- b.bp("/applications");
13
- let body;
14
- body = JSON.stringify(take(input, {
15
- ApplicationConfig: (_) => _json(_),
16
- ApplicationSourceConfig: (_) => _json(_),
17
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
18
- Description: [],
19
- IframeConfig: (_) => _json(_),
20
- InitializationTimeout: [],
21
- IsService: [],
22
- Name: [],
23
- Namespace: [],
24
- Permissions: (_) => _json(_),
25
- Publications: (_) => _json(_),
26
- Subscriptions: (_) => _json(_),
27
- Tags: (_) => _json(_),
28
- }));
29
- b.m("POST").h(headers).b(body);
30
- return b.build();
31
- };
32
- export const se_CreateDataIntegrationCommand = async (input, context) => {
33
- const b = rb(input, context);
34
- const headers = {
35
- "content-type": "application/json",
36
- };
37
- b.bp("/dataIntegrations");
38
- let body;
39
- body = JSON.stringify(take(input, {
40
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
41
- Description: [],
42
- FileConfiguration: (_) => _json(_),
43
- KmsKey: [],
44
- Name: [],
45
- ObjectConfiguration: (_) => _json(_),
46
- ScheduleConfig: (_) => _json(_),
47
- SourceURI: [],
48
- Tags: (_) => _json(_),
49
- }));
50
- b.m("POST").h(headers).b(body);
51
- return b.build();
52
- };
53
- export const se_CreateDataIntegrationAssociationCommand = async (input, context) => {
54
- const b = rb(input, context);
55
- const headers = {
56
- "content-type": "application/json",
57
- };
58
- b.bp("/dataIntegrations/{DataIntegrationIdentifier}/associations");
59
- b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
60
- let body;
61
- body = JSON.stringify(take(input, {
62
- ClientAssociationMetadata: (_) => _json(_),
63
- ClientId: [],
64
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
65
- DestinationURI: [],
66
- ExecutionConfiguration: (_) => _json(_),
67
- ObjectConfiguration: (_) => _json(_),
68
- }));
69
- b.m("POST").h(headers).b(body);
70
- return b.build();
71
- };
72
- export const se_CreateEventIntegrationCommand = async (input, context) => {
73
- const b = rb(input, context);
74
- const headers = {
75
- "content-type": "application/json",
76
- };
77
- b.bp("/eventIntegrations");
78
- let body;
79
- body = JSON.stringify(take(input, {
80
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
81
- Description: [],
82
- EventBridgeBus: [],
83
- EventFilter: (_) => _json(_),
84
- Name: [],
85
- Tags: (_) => _json(_),
86
- }));
87
- b.m("POST").h(headers).b(body);
88
- return b.build();
89
- };
90
- export const se_DeleteApplicationCommand = async (input, context) => {
91
- const b = rb(input, context);
92
- const headers = {};
93
- b.bp("/applications/{Arn}");
94
- b.p("Arn", () => input.Arn, "{Arn}", false);
95
- let body;
96
- b.m("DELETE").h(headers).b(body);
97
- return b.build();
98
- };
99
- export const se_DeleteDataIntegrationCommand = async (input, context) => {
100
- const b = rb(input, context);
101
- const headers = {};
102
- b.bp("/dataIntegrations/{DataIntegrationIdentifier}");
103
- b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
104
- let body;
105
- b.m("DELETE").h(headers).b(body);
106
- return b.build();
107
- };
108
- export const se_DeleteEventIntegrationCommand = async (input, context) => {
109
- const b = rb(input, context);
110
- const headers = {};
111
- b.bp("/eventIntegrations/{Name}");
112
- b.p("Name", () => input.Name, "{Name}", false);
113
- let body;
114
- b.m("DELETE").h(headers).b(body);
115
- return b.build();
116
- };
117
- export const se_GetApplicationCommand = async (input, context) => {
118
- const b = rb(input, context);
119
- const headers = {};
120
- b.bp("/applications/{Arn}");
121
- b.p("Arn", () => input.Arn, "{Arn}", false);
122
- let body;
123
- b.m("GET").h(headers).b(body);
124
- return b.build();
125
- };
126
- export const se_GetDataIntegrationCommand = async (input, context) => {
127
- const b = rb(input, context);
128
- const headers = {};
129
- b.bp("/dataIntegrations/{Identifier}");
130
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
131
- let body;
132
- b.m("GET").h(headers).b(body);
133
- return b.build();
134
- };
135
- export const se_GetEventIntegrationCommand = async (input, context) => {
136
- const b = rb(input, context);
137
- const headers = {};
138
- b.bp("/eventIntegrations/{Name}");
139
- b.p("Name", () => input.Name, "{Name}", false);
140
- let body;
141
- b.m("GET").h(headers).b(body);
142
- return b.build();
143
- };
144
- export const se_ListApplicationAssociationsCommand = async (input, context) => {
145
- const b = rb(input, context);
146
- const headers = {};
147
- b.bp("/applications/{ApplicationId}/associations");
148
- b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
149
- const query = map({
150
- [_nT]: [, input[_NT]],
151
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
152
- });
153
- let body;
154
- b.m("GET").h(headers).q(query).b(body);
155
- return b.build();
156
- };
157
- export const se_ListApplicationsCommand = async (input, context) => {
158
- const b = rb(input, context);
159
- const headers = {};
160
- b.bp("/applications");
161
- const query = map({
162
- [_nT]: [, input[_NT]],
163
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
164
- });
165
- let body;
166
- b.m("GET").h(headers).q(query).b(body);
167
- return b.build();
168
- };
169
- export const se_ListDataIntegrationAssociationsCommand = async (input, context) => {
170
- const b = rb(input, context);
171
- const headers = {};
172
- b.bp("/dataIntegrations/{DataIntegrationIdentifier}/associations");
173
- b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
174
- const query = map({
175
- [_nT]: [, input[_NT]],
176
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
177
- });
178
- let body;
179
- b.m("GET").h(headers).q(query).b(body);
180
- return b.build();
181
- };
182
- export const se_ListDataIntegrationsCommand = async (input, context) => {
183
- const b = rb(input, context);
184
- const headers = {};
185
- b.bp("/dataIntegrations");
186
- const query = map({
187
- [_nT]: [, input[_NT]],
188
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
189
- });
190
- let body;
191
- b.m("GET").h(headers).q(query).b(body);
192
- return b.build();
193
- };
194
- export const se_ListEventIntegrationAssociationsCommand = async (input, context) => {
195
- const b = rb(input, context);
196
- const headers = {};
197
- b.bp("/eventIntegrations/{EventIntegrationName}/associations");
198
- b.p("EventIntegrationName", () => input.EventIntegrationName, "{EventIntegrationName}", false);
199
- const query = map({
200
- [_nT]: [, input[_NT]],
201
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
202
- });
203
- let body;
204
- b.m("GET").h(headers).q(query).b(body);
205
- return b.build();
206
- };
207
- export const se_ListEventIntegrationsCommand = async (input, context) => {
208
- const b = rb(input, context);
209
- const headers = {};
210
- b.bp("/eventIntegrations");
211
- const query = map({
212
- [_nT]: [, input[_NT]],
213
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
214
- });
215
- let body;
216
- b.m("GET").h(headers).q(query).b(body);
217
- return b.build();
218
- };
219
- export const se_ListTagsForResourceCommand = async (input, context) => {
220
- const b = rb(input, context);
221
- const headers = {};
222
- b.bp("/tags/{resourceArn}");
223
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
224
- let body;
225
- b.m("GET").h(headers).b(body);
226
- return b.build();
227
- };
228
- export const se_TagResourceCommand = async (input, context) => {
229
- const b = rb(input, context);
230
- const headers = {
231
- "content-type": "application/json",
232
- };
233
- b.bp("/tags/{resourceArn}");
234
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
235
- let body;
236
- body = JSON.stringify(take(input, {
237
- tags: (_) => _json(_),
238
- }));
239
- b.m("POST").h(headers).b(body);
240
- return b.build();
241
- };
242
- export const se_UntagResourceCommand = async (input, context) => {
243
- const b = rb(input, context);
244
- const headers = {};
245
- b.bp("/tags/{resourceArn}");
246
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
247
- const query = map({
248
- [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
249
- });
250
- let body;
251
- b.m("DELETE").h(headers).q(query).b(body);
252
- return b.build();
253
- };
254
- export const se_UpdateApplicationCommand = async (input, context) => {
255
- const b = rb(input, context);
256
- const headers = {
257
- "content-type": "application/json",
258
- };
259
- b.bp("/applications/{Arn}");
260
- b.p("Arn", () => input.Arn, "{Arn}", false);
261
- let body;
262
- body = JSON.stringify(take(input, {
263
- ApplicationConfig: (_) => _json(_),
264
- ApplicationSourceConfig: (_) => _json(_),
265
- Description: [],
266
- IframeConfig: (_) => _json(_),
267
- InitializationTimeout: [],
268
- IsService: [],
269
- Name: [],
270
- Permissions: (_) => _json(_),
271
- Publications: (_) => _json(_),
272
- Subscriptions: (_) => _json(_),
273
- }));
274
- b.m("PATCH").h(headers).b(body);
275
- return b.build();
276
- };
277
- export const se_UpdateDataIntegrationCommand = async (input, context) => {
278
- const b = rb(input, context);
279
- const headers = {
280
- "content-type": "application/json",
281
- };
282
- b.bp("/dataIntegrations/{Identifier}");
283
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
284
- let body;
285
- body = JSON.stringify(take(input, {
286
- Description: [],
287
- Name: [],
288
- }));
289
- b.m("PATCH").h(headers).b(body);
290
- return b.build();
291
- };
292
- export const se_UpdateDataIntegrationAssociationCommand = async (input, context) => {
293
- const b = rb(input, context);
294
- const headers = {
295
- "content-type": "application/json",
296
- };
297
- b.bp("/dataIntegrations/{DataIntegrationIdentifier}/associations/{DataIntegrationAssociationIdentifier}");
298
- b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
299
- b.p("DataIntegrationAssociationIdentifier", () => input.DataIntegrationAssociationIdentifier, "{DataIntegrationAssociationIdentifier}", false);
300
- let body;
301
- body = JSON.stringify(take(input, {
302
- ExecutionConfiguration: (_) => _json(_),
303
- }));
304
- b.m("PATCH").h(headers).b(body);
305
- return b.build();
306
- };
307
- export const se_UpdateEventIntegrationCommand = async (input, context) => {
308
- const b = rb(input, context);
309
- const headers = {
310
- "content-type": "application/json",
311
- };
312
- b.bp("/eventIntegrations/{Name}");
313
- b.p("Name", () => input.Name, "{Name}", false);
314
- let body;
315
- body = JSON.stringify(take(input, {
316
- Description: [],
317
- }));
318
- b.m("PATCH").h(headers).b(body);
319
- return b.build();
320
- };
321
- export const de_CreateApplicationCommand = async (output, context) => {
322
- if (output.statusCode !== 200 && output.statusCode >= 300) {
323
- return de_CommandError(output, context);
324
- }
325
- const contents = map({
326
- $metadata: deserializeMetadata(output),
327
- });
328
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
329
- const doc = take(data, {
330
- Arn: __expectString,
331
- Id: __expectString,
332
- });
333
- Object.assign(contents, doc);
334
- return contents;
335
- };
336
- export const de_CreateDataIntegrationCommand = async (output, context) => {
337
- if (output.statusCode !== 200 && output.statusCode >= 300) {
338
- return de_CommandError(output, context);
339
- }
340
- const contents = map({
341
- $metadata: deserializeMetadata(output),
342
- });
343
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
344
- const doc = take(data, {
345
- Arn: __expectString,
346
- ClientToken: __expectString,
347
- Description: __expectString,
348
- FileConfiguration: _json,
349
- Id: __expectString,
350
- KmsKey: __expectString,
351
- Name: __expectString,
352
- ObjectConfiguration: _json,
353
- ScheduleConfiguration: _json,
354
- SourceURI: __expectString,
355
- Tags: _json,
356
- });
357
- Object.assign(contents, doc);
358
- return contents;
359
- };
360
- export const de_CreateDataIntegrationAssociationCommand = async (output, context) => {
361
- if (output.statusCode !== 200 && output.statusCode >= 300) {
362
- return de_CommandError(output, context);
363
- }
364
- const contents = map({
365
- $metadata: deserializeMetadata(output),
366
- });
367
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
368
- const doc = take(data, {
369
- DataIntegrationArn: __expectString,
370
- DataIntegrationAssociationId: __expectString,
371
- });
372
- Object.assign(contents, doc);
373
- return contents;
374
- };
375
- export const de_CreateEventIntegrationCommand = async (output, context) => {
376
- if (output.statusCode !== 200 && output.statusCode >= 300) {
377
- return de_CommandError(output, context);
378
- }
379
- const contents = map({
380
- $metadata: deserializeMetadata(output),
381
- });
382
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
383
- const doc = take(data, {
384
- EventIntegrationArn: __expectString,
385
- });
386
- Object.assign(contents, doc);
387
- return contents;
388
- };
389
- export const de_DeleteApplicationCommand = async (output, context) => {
390
- if (output.statusCode !== 200 && output.statusCode >= 300) {
391
- return de_CommandError(output, context);
392
- }
393
- const contents = map({
394
- $metadata: deserializeMetadata(output),
395
- });
396
- await collectBody(output.body, context);
397
- return contents;
398
- };
399
- export const de_DeleteDataIntegrationCommand = async (output, context) => {
400
- if (output.statusCode !== 200 && output.statusCode >= 300) {
401
- return de_CommandError(output, context);
402
- }
403
- const contents = map({
404
- $metadata: deserializeMetadata(output),
405
- });
406
- await collectBody(output.body, context);
407
- return contents;
408
- };
409
- export const de_DeleteEventIntegrationCommand = async (output, context) => {
410
- if (output.statusCode !== 200 && output.statusCode >= 300) {
411
- return de_CommandError(output, context);
412
- }
413
- const contents = map({
414
- $metadata: deserializeMetadata(output),
415
- });
416
- await collectBody(output.body, context);
417
- return contents;
418
- };
419
- export const de_GetApplicationCommand = async (output, context) => {
420
- if (output.statusCode !== 200 && output.statusCode >= 300) {
421
- return de_CommandError(output, context);
422
- }
423
- const contents = map({
424
- $metadata: deserializeMetadata(output),
425
- });
426
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
427
- const doc = take(data, {
428
- ApplicationConfig: _json,
429
- ApplicationSourceConfig: _json,
430
- Arn: __expectString,
431
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
432
- Description: __expectString,
433
- Id: __expectString,
434
- IframeConfig: _json,
435
- InitializationTimeout: __expectInt32,
436
- IsService: __expectBoolean,
437
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
438
- Name: __expectString,
439
- Namespace: __expectString,
440
- Permissions: _json,
441
- Publications: _json,
442
- Subscriptions: _json,
443
- Tags: _json,
444
- });
445
- Object.assign(contents, doc);
446
- return contents;
447
- };
448
- export const de_GetDataIntegrationCommand = async (output, context) => {
449
- if (output.statusCode !== 200 && output.statusCode >= 300) {
450
- return de_CommandError(output, context);
451
- }
452
- const contents = map({
453
- $metadata: deserializeMetadata(output),
454
- });
455
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
456
- const doc = take(data, {
457
- Arn: __expectString,
458
- Description: __expectString,
459
- FileConfiguration: _json,
460
- Id: __expectString,
461
- KmsKey: __expectString,
462
- Name: __expectString,
463
- ObjectConfiguration: _json,
464
- ScheduleConfiguration: _json,
465
- SourceURI: __expectString,
466
- Tags: _json,
467
- });
468
- Object.assign(contents, doc);
469
- return contents;
470
- };
471
- export const de_GetEventIntegrationCommand = async (output, context) => {
472
- if (output.statusCode !== 200 && output.statusCode >= 300) {
473
- return de_CommandError(output, context);
474
- }
475
- const contents = map({
476
- $metadata: deserializeMetadata(output),
477
- });
478
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
479
- const doc = take(data, {
480
- Description: __expectString,
481
- EventBridgeBus: __expectString,
482
- EventFilter: _json,
483
- EventIntegrationArn: __expectString,
484
- Name: __expectString,
485
- Tags: _json,
486
- });
487
- Object.assign(contents, doc);
488
- return contents;
489
- };
490
- export const de_ListApplicationAssociationsCommand = async (output, context) => {
491
- if (output.statusCode !== 200 && output.statusCode >= 300) {
492
- return de_CommandError(output, context);
493
- }
494
- const contents = map({
495
- $metadata: deserializeMetadata(output),
496
- });
497
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
498
- const doc = take(data, {
499
- ApplicationAssociations: _json,
500
- NextToken: __expectString,
501
- });
502
- Object.assign(contents, doc);
503
- return contents;
504
- };
505
- export const de_ListApplicationsCommand = async (output, context) => {
506
- if (output.statusCode !== 200 && output.statusCode >= 300) {
507
- return de_CommandError(output, context);
508
- }
509
- const contents = map({
510
- $metadata: deserializeMetadata(output),
511
- });
512
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
513
- const doc = take(data, {
514
- Applications: (_) => de_ApplicationsList(_, context),
515
- NextToken: __expectString,
516
- });
517
- Object.assign(contents, doc);
518
- return contents;
519
- };
520
- export const de_ListDataIntegrationAssociationsCommand = async (output, context) => {
521
- if (output.statusCode !== 200 && output.statusCode >= 300) {
522
- return de_CommandError(output, context);
523
- }
524
- const contents = map({
525
- $metadata: deserializeMetadata(output),
526
- });
527
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
528
- const doc = take(data, {
529
- DataIntegrationAssociations: _json,
530
- NextToken: __expectString,
531
- });
532
- Object.assign(contents, doc);
533
- return contents;
534
- };
535
- export const de_ListDataIntegrationsCommand = async (output, context) => {
536
- if (output.statusCode !== 200 && output.statusCode >= 300) {
537
- return de_CommandError(output, context);
538
- }
539
- const contents = map({
540
- $metadata: deserializeMetadata(output),
541
- });
542
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
543
- const doc = take(data, {
544
- DataIntegrations: _json,
545
- NextToken: __expectString,
546
- });
547
- Object.assign(contents, doc);
548
- return contents;
549
- };
550
- export const de_ListEventIntegrationAssociationsCommand = async (output, context) => {
551
- if (output.statusCode !== 200 && output.statusCode >= 300) {
552
- return de_CommandError(output, context);
553
- }
554
- const contents = map({
555
- $metadata: deserializeMetadata(output),
556
- });
557
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
558
- const doc = take(data, {
559
- EventIntegrationAssociations: _json,
560
- NextToken: __expectString,
561
- });
562
- Object.assign(contents, doc);
563
- return contents;
564
- };
565
- export const de_ListEventIntegrationsCommand = 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
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
573
- const doc = take(data, {
574
- EventIntegrations: _json,
575
- NextToken: __expectString,
576
- });
577
- Object.assign(contents, doc);
578
- return contents;
579
- };
580
- export const de_ListTagsForResourceCommand = async (output, context) => {
581
- if (output.statusCode !== 200 && output.statusCode >= 300) {
582
- return de_CommandError(output, context);
583
- }
584
- const contents = map({
585
- $metadata: deserializeMetadata(output),
586
- });
587
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
588
- const doc = take(data, {
589
- tags: _json,
590
- });
591
- Object.assign(contents, doc);
592
- return contents;
593
- };
594
- export const de_TagResourceCommand = async (output, context) => {
595
- if (output.statusCode !== 200 && output.statusCode >= 300) {
596
- return de_CommandError(output, context);
597
- }
598
- const contents = map({
599
- $metadata: deserializeMetadata(output),
600
- });
601
- await collectBody(output.body, context);
602
- return contents;
603
- };
604
- export const de_UntagResourceCommand = async (output, context) => {
605
- if (output.statusCode !== 200 && output.statusCode >= 300) {
606
- return de_CommandError(output, context);
607
- }
608
- const contents = map({
609
- $metadata: deserializeMetadata(output),
610
- });
611
- await collectBody(output.body, context);
612
- return contents;
613
- };
614
- export const de_UpdateApplicationCommand = async (output, context) => {
615
- if (output.statusCode !== 200 && output.statusCode >= 300) {
616
- return de_CommandError(output, context);
617
- }
618
- const contents = map({
619
- $metadata: deserializeMetadata(output),
620
- });
621
- await collectBody(output.body, context);
622
- return contents;
623
- };
624
- export const de_UpdateDataIntegrationCommand = async (output, context) => {
625
- if (output.statusCode !== 200 && output.statusCode >= 300) {
626
- return de_CommandError(output, context);
627
- }
628
- const contents = map({
629
- $metadata: deserializeMetadata(output),
630
- });
631
- await collectBody(output.body, context);
632
- return contents;
633
- };
634
- export const de_UpdateDataIntegrationAssociationCommand = 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
- await collectBody(output.body, context);
642
- return contents;
643
- };
644
- export const de_UpdateEventIntegrationCommand = async (output, context) => {
645
- if (output.statusCode !== 200 && output.statusCode >= 300) {
646
- return de_CommandError(output, context);
647
- }
648
- const contents = map({
649
- $metadata: deserializeMetadata(output),
650
- });
651
- await collectBody(output.body, context);
652
- return contents;
653
- };
654
- const de_CommandError = async (output, context) => {
655
- const parsedOutput = {
656
- ...output,
657
- body: await parseErrorBody(output.body, context),
658
- };
659
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
660
- switch (errorCode) {
661
- case "AccessDeniedException":
662
- case "com.amazonaws.appintegrations#AccessDeniedException":
663
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
664
- case "DuplicateResourceException":
665
- case "com.amazonaws.appintegrations#DuplicateResourceException":
666
- throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
667
- case "InternalServiceError":
668
- case "com.amazonaws.appintegrations#InternalServiceError":
669
- throw await de_InternalServiceErrorRes(parsedOutput, context);
670
- case "InvalidRequestException":
671
- case "com.amazonaws.appintegrations#InvalidRequestException":
672
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
673
- case "ResourceQuotaExceededException":
674
- case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
675
- throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
676
- case "ThrottlingException":
677
- case "com.amazonaws.appintegrations#ThrottlingException":
678
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
679
- case "UnsupportedOperationException":
680
- case "com.amazonaws.appintegrations#UnsupportedOperationException":
681
- throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
682
- case "ResourceNotFoundException":
683
- case "com.amazonaws.appintegrations#ResourceNotFoundException":
684
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
685
- default:
686
- const parsedBody = parsedOutput.body;
687
- return throwDefaultError({
688
- output,
689
- parsedBody,
690
- errorCode,
691
- });
692
- }
693
- };
694
- const throwDefaultError = withBaseException(__BaseException);
695
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
696
- const contents = map({});
697
- const data = parsedOutput.body;
698
- const doc = take(data, {
699
- Message: __expectString,
700
- });
701
- Object.assign(contents, doc);
702
- const exception = new AccessDeniedException({
703
- $metadata: deserializeMetadata(parsedOutput),
704
- ...contents,
705
- });
706
- return __decorateServiceException(exception, parsedOutput.body);
707
- };
708
- const de_DuplicateResourceExceptionRes = async (parsedOutput, context) => {
709
- const contents = map({});
710
- const data = parsedOutput.body;
711
- const doc = take(data, {
712
- Message: __expectString,
713
- });
714
- Object.assign(contents, doc);
715
- const exception = new DuplicateResourceException({
716
- $metadata: deserializeMetadata(parsedOutput),
717
- ...contents,
718
- });
719
- return __decorateServiceException(exception, parsedOutput.body);
720
- };
721
- const de_InternalServiceErrorRes = async (parsedOutput, context) => {
722
- const contents = map({});
723
- const data = parsedOutput.body;
724
- const doc = take(data, {
725
- Message: __expectString,
726
- });
727
- Object.assign(contents, doc);
728
- const exception = new InternalServiceError({
729
- $metadata: deserializeMetadata(parsedOutput),
730
- ...contents,
731
- });
732
- return __decorateServiceException(exception, parsedOutput.body);
733
- };
734
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
735
- const contents = map({});
736
- const data = parsedOutput.body;
737
- const doc = take(data, {
738
- Message: __expectString,
739
- });
740
- Object.assign(contents, doc);
741
- const exception = new InvalidRequestException({
742
- $metadata: deserializeMetadata(parsedOutput),
743
- ...contents,
744
- });
745
- return __decorateServiceException(exception, parsedOutput.body);
746
- };
747
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
748
- const contents = map({});
749
- const data = parsedOutput.body;
750
- const doc = take(data, {
751
- Message: __expectString,
752
- });
753
- Object.assign(contents, doc);
754
- const exception = new ResourceNotFoundException({
755
- $metadata: deserializeMetadata(parsedOutput),
756
- ...contents,
757
- });
758
- return __decorateServiceException(exception, parsedOutput.body);
759
- };
760
- const de_ResourceQuotaExceededExceptionRes = async (parsedOutput, context) => {
761
- const contents = map({});
762
- const data = parsedOutput.body;
763
- const doc = take(data, {
764
- Message: __expectString,
765
- });
766
- Object.assign(contents, doc);
767
- const exception = new ResourceQuotaExceededException({
768
- $metadata: deserializeMetadata(parsedOutput),
769
- ...contents,
770
- });
771
- return __decorateServiceException(exception, parsedOutput.body);
772
- };
773
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
774
- const contents = map({});
775
- const data = parsedOutput.body;
776
- const doc = take(data, {
777
- Message: __expectString,
778
- });
779
- Object.assign(contents, doc);
780
- const exception = new ThrottlingException({
781
- $metadata: deserializeMetadata(parsedOutput),
782
- ...contents,
783
- });
784
- return __decorateServiceException(exception, parsedOutput.body);
785
- };
786
- const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
787
- const contents = map({});
788
- const data = parsedOutput.body;
789
- const doc = take(data, {
790
- Message: __expectString,
791
- });
792
- Object.assign(contents, doc);
793
- const exception = new UnsupportedOperationException({
794
- $metadata: deserializeMetadata(parsedOutput),
795
- ...contents,
796
- });
797
- return __decorateServiceException(exception, parsedOutput.body);
798
- };
799
- const de_ApplicationsList = (output, context) => {
800
- const retVal = (output || [])
801
- .filter((e) => e != null)
802
- .map((entry) => {
803
- return de_ApplicationSummary(entry, context);
804
- });
805
- return retVal;
806
- };
807
- const de_ApplicationSummary = (output, context) => {
808
- return take(output, {
809
- Arn: __expectString,
810
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
811
- Id: __expectString,
812
- IsService: __expectBoolean,
813
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
814
- Name: __expectString,
815
- Namespace: __expectString,
816
- });
817
- };
818
- const deserializeMetadata = (output) => ({
819
- httpStatusCode: output.statusCode,
820
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
821
- extendedRequestId: output.headers["x-amz-id-2"],
822
- cfId: output.headers["x-amz-cf-id"],
823
- });
824
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
825
- const _MR = "MaxResults";
826
- const _NT = "NextToken";
827
- const _mR = "maxResults";
828
- const _nT = "nextToken";
829
- const _tK = "tagKeys";