@aws-sdk/client-appintegrations 3.418.0 → 3.420.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 (66) hide show
  1. package/README.md +39 -7
  2. package/dist-cjs/AppIntegrations.js +8 -0
  3. package/dist-cjs/commands/CreateApplicationCommand.js +51 -0
  4. package/dist-cjs/commands/GetApplicationCommand.js +51 -0
  5. package/dist-cjs/commands/ListApplicationsCommand.js +51 -0
  6. package/dist-cjs/commands/UpdateApplicationCommand.js +51 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/index.js +1 -0
  9. package/dist-cjs/pagination/Interfaces.js +2 -0
  10. package/dist-cjs/pagination/ListApplicationsPaginator.js +29 -0
  11. package/dist-cjs/pagination/ListDataIntegrationAssociationsPaginator.js +29 -0
  12. package/dist-cjs/pagination/ListDataIntegrationsPaginator.js +29 -0
  13. package/dist-cjs/pagination/ListEventIntegrationAssociationsPaginator.js +29 -0
  14. package/dist-cjs/pagination/ListEventIntegrationsPaginator.js +29 -0
  15. package/dist-cjs/pagination/index.js +9 -0
  16. package/dist-cjs/protocols/Aws_restJson1.js +303 -1
  17. package/dist-es/AppIntegrations.js +8 -0
  18. package/dist-es/commands/CreateApplicationCommand.js +47 -0
  19. package/dist-es/commands/GetApplicationCommand.js +47 -0
  20. package/dist-es/commands/ListApplicationsCommand.js +47 -0
  21. package/dist-es/commands/UpdateApplicationCommand.js +47 -0
  22. package/dist-es/commands/index.js +4 -0
  23. package/dist-es/index.js +1 -0
  24. package/dist-es/pagination/Interfaces.js +1 -0
  25. package/dist-es/pagination/ListApplicationsPaginator.js +25 -0
  26. package/dist-es/pagination/ListDataIntegrationAssociationsPaginator.js +25 -0
  27. package/dist-es/pagination/ListDataIntegrationsPaginator.js +25 -0
  28. package/dist-es/pagination/ListEventIntegrationAssociationsPaginator.js +25 -0
  29. package/dist-es/pagination/ListEventIntegrationsPaginator.js +25 -0
  30. package/dist-es/pagination/index.js +6 -0
  31. package/dist-es/protocols/Aws_restJson1.js +295 -1
  32. package/dist-types/AppIntegrations.d.ts +28 -0
  33. package/dist-types/AppIntegrationsClient.d.ts +6 -2
  34. package/dist-types/commands/CreateApplicationCommand.d.ts +120 -0
  35. package/dist-types/commands/GetApplicationCommand.d.ts +119 -0
  36. package/dist-types/commands/ListApplicationsCommand.d.ts +97 -0
  37. package/dist-types/commands/UpdateApplicationCommand.d.ts +110 -0
  38. package/dist-types/commands/index.d.ts +4 -0
  39. package/dist-types/index.d.ts +1 -0
  40. package/dist-types/models/models_0.d.ts +370 -66
  41. package/dist-types/pagination/Interfaces.d.ts +8 -0
  42. package/dist-types/pagination/ListApplicationsPaginator.d.ts +7 -0
  43. package/dist-types/pagination/ListDataIntegrationAssociationsPaginator.d.ts +7 -0
  44. package/dist-types/pagination/ListDataIntegrationsPaginator.d.ts +7 -0
  45. package/dist-types/pagination/ListEventIntegrationAssociationsPaginator.d.ts +7 -0
  46. package/dist-types/pagination/ListEventIntegrationsPaginator.d.ts +7 -0
  47. package/dist-types/pagination/index.d.ts +6 -0
  48. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  49. package/dist-types/ts3.4/AppIntegrations.d.ts +68 -0
  50. package/dist-types/ts3.4/AppIntegrationsClient.d.ts +24 -0
  51. package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +39 -0
  52. package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +38 -0
  53. package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +38 -0
  54. package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +39 -0
  55. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  56. package/dist-types/ts3.4/index.d.ts +1 -0
  57. package/dist-types/ts3.4/models/models_0.d.ts +95 -24
  58. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  59. package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +11 -0
  60. package/dist-types/ts3.4/pagination/ListDataIntegrationAssociationsPaginator.d.ts +11 -0
  61. package/dist-types/ts3.4/pagination/ListDataIntegrationsPaginator.d.ts +11 -0
  62. package/dist-types/ts3.4/pagination/ListEventIntegrationAssociationsPaginator.d.ts +11 -0
  63. package/dist-types/ts3.4/pagination/ListEventIntegrationsPaginator.d.ts +11 -0
  64. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  65. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  66. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ import { AppIntegrationsClient } from "../AppIntegrationsClient";
2
+ import { ListDataIntegrationAssociationsCommand, } from "../commands/ListDataIntegrationAssociationsCommand";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListDataIntegrationAssociationsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListDataIntegrationAssociations(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof AppIntegrationsClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected AppIntegrations | AppIntegrationsClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { AppIntegrationsClient } from "../AppIntegrationsClient";
2
+ import { ListDataIntegrationsCommand, } from "../commands/ListDataIntegrationsCommand";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListDataIntegrationsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListDataIntegrations(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof AppIntegrationsClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected AppIntegrations | AppIntegrationsClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { AppIntegrationsClient } from "../AppIntegrationsClient";
2
+ import { ListEventIntegrationAssociationsCommand, } from "../commands/ListEventIntegrationAssociationsCommand";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListEventIntegrationAssociationsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListEventIntegrationAssociations(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof AppIntegrationsClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected AppIntegrations | AppIntegrationsClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { AppIntegrationsClient } from "../AppIntegrationsClient";
2
+ import { ListEventIntegrationsCommand, } from "../commands/ListEventIntegrationsCommand";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListEventIntegrationsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListEventIntegrations(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof AppIntegrationsClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected AppIntegrations | AppIntegrationsClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,6 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListApplicationsPaginator";
3
+ export * from "./ListDataIntegrationAssociationsPaginator";
4
+ export * from "./ListDataIntegrationsPaginator";
5
+ export * from "./ListEventIntegrationAssociationsPaginator";
6
+ export * from "./ListEventIntegrationsPaginator";
@@ -1,8 +1,35 @@
1
1
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { AppIntegrationsServiceException as __BaseException } from "../models/AppIntegrationsServiceException";
5
5
  import { AccessDeniedException, DuplicateResourceException, InternalServiceError, InvalidRequestException, ResourceNotFoundException, ResourceQuotaExceededException, ThrottlingException, } from "../models/models_0";
6
+ export const se_CreateApplicationCommand = async (input, context) => {
7
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
+ const headers = {
9
+ "content-type": "application/json",
10
+ };
11
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
12
+ let body;
13
+ body = JSON.stringify(take(input, {
14
+ ApplicationSourceConfig: (_) => _json(_),
15
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
16
+ Description: [],
17
+ Name: [],
18
+ Namespace: [],
19
+ Publications: (_) => _json(_),
20
+ Subscriptions: (_) => _json(_),
21
+ Tags: (_) => _json(_),
22
+ }));
23
+ return new __HttpRequest({
24
+ protocol,
25
+ hostname,
26
+ port,
27
+ method: "POST",
28
+ headers,
29
+ path: resolvedPath,
30
+ body,
31
+ });
32
+ };
6
33
  export const se_CreateDataIntegrationCommand = async (input, context) => {
7
34
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
35
  const headers = {
@@ -89,6 +116,22 @@ export const se_DeleteEventIntegrationCommand = async (input, context) => {
89
116
  body,
90
117
  });
91
118
  };
119
+ export const se_GetApplicationCommand = async (input, context) => {
120
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
+ const headers = {};
122
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{Arn}";
123
+ resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
124
+ let body;
125
+ return new __HttpRequest({
126
+ protocol,
127
+ hostname,
128
+ port,
129
+ method: "GET",
130
+ headers,
131
+ path: resolvedPath,
132
+ body,
133
+ });
134
+ };
92
135
  export const se_GetDataIntegrationCommand = async (input, context) => {
93
136
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
94
137
  const headers = {};
@@ -121,6 +164,26 @@ export const se_GetEventIntegrationCommand = async (input, context) => {
121
164
  body,
122
165
  });
123
166
  };
167
+ export const se_ListApplicationsCommand = async (input, context) => {
168
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
169
+ const headers = {};
170
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
171
+ const query = map({
172
+ nextToken: [, input.NextToken],
173
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
174
+ });
175
+ let body;
176
+ return new __HttpRequest({
177
+ protocol,
178
+ hostname,
179
+ port,
180
+ method: "GET",
181
+ headers,
182
+ path: resolvedPath,
183
+ query,
184
+ body,
185
+ });
186
+ };
124
187
  export const se_ListDataIntegrationAssociationsCommand = async (input, context) => {
125
188
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
126
189
  const headers = {};
@@ -265,6 +328,31 @@ export const se_UntagResourceCommand = async (input, context) => {
265
328
  body,
266
329
  });
267
330
  };
331
+ export const se_UpdateApplicationCommand = async (input, context) => {
332
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
333
+ const headers = {
334
+ "content-type": "application/json",
335
+ };
336
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{Arn}";
337
+ resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
338
+ let body;
339
+ body = JSON.stringify(take(input, {
340
+ ApplicationSourceConfig: (_) => _json(_),
341
+ Description: [],
342
+ Name: [],
343
+ Publications: (_) => _json(_),
344
+ Subscriptions: (_) => _json(_),
345
+ }));
346
+ return new __HttpRequest({
347
+ protocol,
348
+ hostname,
349
+ port,
350
+ method: "PATCH",
351
+ headers,
352
+ path: resolvedPath,
353
+ body,
354
+ });
355
+ };
268
356
  export const se_UpdateDataIntegrationCommand = async (input, context) => {
269
357
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
270
358
  const headers = {
@@ -308,6 +396,55 @@ export const se_UpdateEventIntegrationCommand = async (input, context) => {
308
396
  body,
309
397
  });
310
398
  };
399
+ export const de_CreateApplicationCommand = async (output, context) => {
400
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
401
+ return de_CreateApplicationCommandError(output, context);
402
+ }
403
+ const contents = map({
404
+ $metadata: deserializeMetadata(output),
405
+ });
406
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
407
+ const doc = take(data, {
408
+ Arn: __expectString,
409
+ Id: __expectString,
410
+ });
411
+ Object.assign(contents, doc);
412
+ return contents;
413
+ };
414
+ const de_CreateApplicationCommandError = async (output, context) => {
415
+ const parsedOutput = {
416
+ ...output,
417
+ body: await parseErrorBody(output.body, context),
418
+ };
419
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
420
+ switch (errorCode) {
421
+ case "AccessDeniedException":
422
+ case "com.amazonaws.appintegrations#AccessDeniedException":
423
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
424
+ case "DuplicateResourceException":
425
+ case "com.amazonaws.appintegrations#DuplicateResourceException":
426
+ throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
427
+ case "InternalServiceError":
428
+ case "com.amazonaws.appintegrations#InternalServiceError":
429
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
430
+ case "InvalidRequestException":
431
+ case "com.amazonaws.appintegrations#InvalidRequestException":
432
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
433
+ case "ResourceQuotaExceededException":
434
+ case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
435
+ throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
436
+ case "ThrottlingException":
437
+ case "com.amazonaws.appintegrations#ThrottlingException":
438
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
439
+ default:
440
+ const parsedBody = parsedOutput.body;
441
+ return throwDefaultError({
442
+ output,
443
+ parsedBody,
444
+ errorCode,
445
+ });
446
+ }
447
+ };
311
448
  export const de_CreateDataIntegrationCommand = async (output, context) => {
312
449
  if (output.statusCode !== 200 && output.statusCode >= 300) {
313
450
  return de_CreateDataIntegrationCommandError(output, context);
@@ -496,6 +633,61 @@ const de_DeleteEventIntegrationCommandError = async (output, context) => {
496
633
  });
497
634
  }
498
635
  };
636
+ export const de_GetApplicationCommand = async (output, context) => {
637
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
638
+ return de_GetApplicationCommandError(output, context);
639
+ }
640
+ const contents = map({
641
+ $metadata: deserializeMetadata(output),
642
+ });
643
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
644
+ const doc = take(data, {
645
+ ApplicationSourceConfig: _json,
646
+ Arn: __expectString,
647
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
648
+ Description: __expectString,
649
+ Id: __expectString,
650
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
651
+ Name: __expectString,
652
+ Namespace: __expectString,
653
+ Publications: _json,
654
+ Subscriptions: _json,
655
+ Tags: _json,
656
+ });
657
+ Object.assign(contents, doc);
658
+ return contents;
659
+ };
660
+ const de_GetApplicationCommandError = async (output, context) => {
661
+ const parsedOutput = {
662
+ ...output,
663
+ body: await parseErrorBody(output.body, context),
664
+ };
665
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
666
+ switch (errorCode) {
667
+ case "AccessDeniedException":
668
+ case "com.amazonaws.appintegrations#AccessDeniedException":
669
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
670
+ case "InternalServiceError":
671
+ case "com.amazonaws.appintegrations#InternalServiceError":
672
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
673
+ case "InvalidRequestException":
674
+ case "com.amazonaws.appintegrations#InvalidRequestException":
675
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
676
+ case "ResourceNotFoundException":
677
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
678
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
679
+ case "ThrottlingException":
680
+ case "com.amazonaws.appintegrations#ThrottlingException":
681
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
682
+ default:
683
+ const parsedBody = parsedOutput.body;
684
+ return throwDefaultError({
685
+ output,
686
+ parsedBody,
687
+ errorCode,
688
+ });
689
+ }
690
+ };
499
691
  export const de_GetDataIntegrationCommand = async (output, context) => {
500
692
  if (output.statusCode !== 200 && output.statusCode >= 300) {
501
693
  return de_GetDataIntegrationCommandError(output, context);
@@ -600,6 +792,49 @@ const de_GetEventIntegrationCommandError = async (output, context) => {
600
792
  });
601
793
  }
602
794
  };
795
+ export const de_ListApplicationsCommand = async (output, context) => {
796
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
797
+ return de_ListApplicationsCommandError(output, context);
798
+ }
799
+ const contents = map({
800
+ $metadata: deserializeMetadata(output),
801
+ });
802
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
803
+ const doc = take(data, {
804
+ Applications: (_) => de_ApplicationsList(_, context),
805
+ NextToken: __expectString,
806
+ });
807
+ Object.assign(contents, doc);
808
+ return contents;
809
+ };
810
+ const de_ListApplicationsCommandError = async (output, context) => {
811
+ const parsedOutput = {
812
+ ...output,
813
+ body: await parseErrorBody(output.body, context),
814
+ };
815
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
816
+ switch (errorCode) {
817
+ case "AccessDeniedException":
818
+ case "com.amazonaws.appintegrations#AccessDeniedException":
819
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
820
+ case "InternalServiceError":
821
+ case "com.amazonaws.appintegrations#InternalServiceError":
822
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
823
+ case "InvalidRequestException":
824
+ case "com.amazonaws.appintegrations#InvalidRequestException":
825
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
826
+ case "ThrottlingException":
827
+ case "com.amazonaws.appintegrations#ThrottlingException":
828
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
829
+ default:
830
+ const parsedBody = parsedOutput.body;
831
+ return throwDefaultError({
832
+ output,
833
+ parsedBody,
834
+ errorCode,
835
+ });
836
+ }
837
+ };
603
838
  export const de_ListDataIntegrationAssociationsCommand = async (output, context) => {
604
839
  if (output.statusCode !== 200 && output.statusCode >= 300) {
605
840
  return de_ListDataIntegrationAssociationsCommandError(output, context);
@@ -896,6 +1131,47 @@ const de_UntagResourceCommandError = async (output, context) => {
896
1131
  });
897
1132
  }
898
1133
  };
1134
+ export const de_UpdateApplicationCommand = async (output, context) => {
1135
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1136
+ return de_UpdateApplicationCommandError(output, context);
1137
+ }
1138
+ const contents = map({
1139
+ $metadata: deserializeMetadata(output),
1140
+ });
1141
+ await collectBody(output.body, context);
1142
+ return contents;
1143
+ };
1144
+ const de_UpdateApplicationCommandError = async (output, context) => {
1145
+ const parsedOutput = {
1146
+ ...output,
1147
+ body: await parseErrorBody(output.body, context),
1148
+ };
1149
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1150
+ switch (errorCode) {
1151
+ case "AccessDeniedException":
1152
+ case "com.amazonaws.appintegrations#AccessDeniedException":
1153
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1154
+ case "InternalServiceError":
1155
+ case "com.amazonaws.appintegrations#InternalServiceError":
1156
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
1157
+ case "InvalidRequestException":
1158
+ case "com.amazonaws.appintegrations#InvalidRequestException":
1159
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1160
+ case "ResourceNotFoundException":
1161
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
1162
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1163
+ case "ThrottlingException":
1164
+ case "com.amazonaws.appintegrations#ThrottlingException":
1165
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1166
+ default:
1167
+ const parsedBody = parsedOutput.body;
1168
+ return throwDefaultError({
1169
+ output,
1170
+ parsedBody,
1171
+ errorCode,
1172
+ });
1173
+ }
1174
+ };
899
1175
  export const de_UpdateDataIntegrationCommand = async (output, context) => {
900
1176
  if (output.statusCode !== 200 && output.statusCode >= 300) {
901
1177
  return de_UpdateDataIntegrationCommandError(output, context);
@@ -1070,6 +1346,24 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1070
1346
  });
1071
1347
  return __decorateServiceException(exception, parsedOutput.body);
1072
1348
  };
1349
+ const de_ApplicationsList = (output, context) => {
1350
+ const retVal = (output || [])
1351
+ .filter((e) => e != null)
1352
+ .map((entry) => {
1353
+ return de_ApplicationSummary(entry, context);
1354
+ });
1355
+ return retVal;
1356
+ };
1357
+ const de_ApplicationSummary = (output, context) => {
1358
+ return take(output, {
1359
+ Arn: __expectString,
1360
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1361
+ Id: __expectString,
1362
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1363
+ Name: __expectString,
1364
+ Namespace: __expectString,
1365
+ });
1366
+ };
1073
1367
  const deserializeMetadata = (output) => ({
1074
1368
  httpStatusCode: output.statusCode,
1075
1369
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -1,11 +1,14 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { AppIntegrationsClient } from "./AppIntegrationsClient";
3
+ import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
3
4
  import { CreateDataIntegrationCommandInput, CreateDataIntegrationCommandOutput } from "./commands/CreateDataIntegrationCommand";
4
5
  import { CreateEventIntegrationCommandInput, CreateEventIntegrationCommandOutput } from "./commands/CreateEventIntegrationCommand";
5
6
  import { DeleteDataIntegrationCommandInput, DeleteDataIntegrationCommandOutput } from "./commands/DeleteDataIntegrationCommand";
6
7
  import { DeleteEventIntegrationCommandInput, DeleteEventIntegrationCommandOutput } from "./commands/DeleteEventIntegrationCommand";
8
+ import { GetApplicationCommandInput, GetApplicationCommandOutput } from "./commands/GetApplicationCommand";
7
9
  import { GetDataIntegrationCommandInput, GetDataIntegrationCommandOutput } from "./commands/GetDataIntegrationCommand";
8
10
  import { GetEventIntegrationCommandInput, GetEventIntegrationCommandOutput } from "./commands/GetEventIntegrationCommand";
11
+ import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
9
12
  import { ListDataIntegrationAssociationsCommandInput, ListDataIntegrationAssociationsCommandOutput } from "./commands/ListDataIntegrationAssociationsCommand";
10
13
  import { ListDataIntegrationsCommandInput, ListDataIntegrationsCommandOutput } from "./commands/ListDataIntegrationsCommand";
11
14
  import { ListEventIntegrationAssociationsCommandInput, ListEventIntegrationAssociationsCommandOutput } from "./commands/ListEventIntegrationAssociationsCommand";
@@ -13,9 +16,16 @@ import { ListEventIntegrationsCommandInput, ListEventIntegrationsCommandOutput }
13
16
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
14
17
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
15
18
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
19
+ import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "./commands/UpdateApplicationCommand";
16
20
  import { UpdateDataIntegrationCommandInput, UpdateDataIntegrationCommandOutput } from "./commands/UpdateDataIntegrationCommand";
17
21
  import { UpdateEventIntegrationCommandInput, UpdateEventIntegrationCommandOutput } from "./commands/UpdateEventIntegrationCommand";
18
22
  export interface AppIntegrations {
23
+ /**
24
+ * @see {@link CreateApplicationCommand}
25
+ */
26
+ createApplication(args: CreateApplicationCommandInput, options?: __HttpHandlerOptions): Promise<CreateApplicationCommandOutput>;
27
+ createApplication(args: CreateApplicationCommandInput, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
28
+ createApplication(args: CreateApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
19
29
  /**
20
30
  * @see {@link CreateDataIntegrationCommand}
21
31
  */
@@ -40,6 +50,12 @@ export interface AppIntegrations {
40
50
  deleteEventIntegration(args: DeleteEventIntegrationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEventIntegrationCommandOutput>;
41
51
  deleteEventIntegration(args: DeleteEventIntegrationCommandInput, cb: (err: any, data?: DeleteEventIntegrationCommandOutput) => void): void;
42
52
  deleteEventIntegration(args: DeleteEventIntegrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEventIntegrationCommandOutput) => void): void;
53
+ /**
54
+ * @see {@link GetApplicationCommand}
55
+ */
56
+ getApplication(args: GetApplicationCommandInput, options?: __HttpHandlerOptions): Promise<GetApplicationCommandOutput>;
57
+ getApplication(args: GetApplicationCommandInput, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
58
+ getApplication(args: GetApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
43
59
  /**
44
60
  * @see {@link GetDataIntegrationCommand}
45
61
  */
@@ -52,6 +68,12 @@ export interface AppIntegrations {
52
68
  getEventIntegration(args: GetEventIntegrationCommandInput, options?: __HttpHandlerOptions): Promise<GetEventIntegrationCommandOutput>;
53
69
  getEventIntegration(args: GetEventIntegrationCommandInput, cb: (err: any, data?: GetEventIntegrationCommandOutput) => void): void;
54
70
  getEventIntegration(args: GetEventIntegrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEventIntegrationCommandOutput) => void): void;
71
+ /**
72
+ * @see {@link ListApplicationsCommand}
73
+ */
74
+ listApplications(args: ListApplicationsCommandInput, options?: __HttpHandlerOptions): Promise<ListApplicationsCommandOutput>;
75
+ listApplications(args: ListApplicationsCommandInput, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
76
+ listApplications(args: ListApplicationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
55
77
  /**
56
78
  * @see {@link ListDataIntegrationAssociationsCommand}
57
79
  */
@@ -94,6 +116,12 @@ export interface AppIntegrations {
94
116
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
95
117
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
96
118
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
119
+ /**
120
+ * @see {@link UpdateApplicationCommand}
121
+ */
122
+ updateApplication(args: UpdateApplicationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateApplicationCommandOutput>;
123
+ updateApplication(args: UpdateApplicationCommandInput, cb: (err: any, data?: UpdateApplicationCommandOutput) => void): void;
124
+ updateApplication(args: UpdateApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateApplicationCommandOutput) => void): void;
97
125
  /**
98
126
  * @see {@link UpdateDataIntegrationCommand}
99
127
  */
@@ -8,12 +8,15 @@ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry"
8
8
  import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
9
9
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
10
10
  import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
11
+ import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
11
12
  import { CreateDataIntegrationCommandInput, CreateDataIntegrationCommandOutput } from "./commands/CreateDataIntegrationCommand";
12
13
  import { CreateEventIntegrationCommandInput, CreateEventIntegrationCommandOutput } from "./commands/CreateEventIntegrationCommand";
13
14
  import { DeleteDataIntegrationCommandInput, DeleteDataIntegrationCommandOutput } from "./commands/DeleteDataIntegrationCommand";
14
15
  import { DeleteEventIntegrationCommandInput, DeleteEventIntegrationCommandOutput } from "./commands/DeleteEventIntegrationCommand";
16
+ import { GetApplicationCommandInput, GetApplicationCommandOutput } from "./commands/GetApplicationCommand";
15
17
  import { GetDataIntegrationCommandInput, GetDataIntegrationCommandOutput } from "./commands/GetDataIntegrationCommand";
16
18
  import { GetEventIntegrationCommandInput, GetEventIntegrationCommandOutput } from "./commands/GetEventIntegrationCommand";
19
+ import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
17
20
  import { ListDataIntegrationAssociationsCommandInput, ListDataIntegrationAssociationsCommandOutput } from "./commands/ListDataIntegrationAssociationsCommand";
18
21
  import { ListDataIntegrationsCommandInput, ListDataIntegrationsCommandOutput } from "./commands/ListDataIntegrationsCommand";
19
22
  import { ListEventIntegrationAssociationsCommandInput, ListEventIntegrationAssociationsCommandOutput } from "./commands/ListEventIntegrationAssociationsCommand";
@@ -21,6 +24,7 @@ import { ListEventIntegrationsCommandInput, ListEventIntegrationsCommandOutput }
21
24
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
22
25
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
23
26
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
27
+ import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "./commands/UpdateApplicationCommand";
24
28
  import { UpdateDataIntegrationCommandInput, UpdateDataIntegrationCommandOutput } from "./commands/UpdateDataIntegrationCommand";
25
29
  import { UpdateEventIntegrationCommandInput, UpdateEventIntegrationCommandOutput } from "./commands/UpdateEventIntegrationCommand";
26
30
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
@@ -29,11 +33,11 @@ export { __Client };
29
33
  /**
30
34
  * @public
31
35
  */
32
- export type ServiceInputTypes = CreateDataIntegrationCommandInput | CreateEventIntegrationCommandInput | DeleteDataIntegrationCommandInput | DeleteEventIntegrationCommandInput | GetDataIntegrationCommandInput | GetEventIntegrationCommandInput | ListDataIntegrationAssociationsCommandInput | ListDataIntegrationsCommandInput | ListEventIntegrationAssociationsCommandInput | ListEventIntegrationsCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDataIntegrationCommandInput | UpdateEventIntegrationCommandInput;
36
+ export type ServiceInputTypes = CreateApplicationCommandInput | CreateDataIntegrationCommandInput | CreateEventIntegrationCommandInput | DeleteDataIntegrationCommandInput | DeleteEventIntegrationCommandInput | GetApplicationCommandInput | GetDataIntegrationCommandInput | GetEventIntegrationCommandInput | ListApplicationsCommandInput | ListDataIntegrationAssociationsCommandInput | ListDataIntegrationsCommandInput | ListEventIntegrationAssociationsCommandInput | ListEventIntegrationsCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateDataIntegrationCommandInput | UpdateEventIntegrationCommandInput;
33
37
  /**
34
38
  * @public
35
39
  */
36
- export type ServiceOutputTypes = CreateDataIntegrationCommandOutput | CreateEventIntegrationCommandOutput | DeleteDataIntegrationCommandOutput | DeleteEventIntegrationCommandOutput | GetDataIntegrationCommandOutput | GetEventIntegrationCommandOutput | ListDataIntegrationAssociationsCommandOutput | ListDataIntegrationsCommandOutput | ListEventIntegrationAssociationsCommandOutput | ListEventIntegrationsCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDataIntegrationCommandOutput | UpdateEventIntegrationCommandOutput;
40
+ export type ServiceOutputTypes = CreateApplicationCommandOutput | CreateDataIntegrationCommandOutput | CreateEventIntegrationCommandOutput | DeleteDataIntegrationCommandOutput | DeleteEventIntegrationCommandOutput | GetApplicationCommandOutput | GetDataIntegrationCommandOutput | GetEventIntegrationCommandOutput | ListApplicationsCommandOutput | ListDataIntegrationAssociationsCommandOutput | ListDataIntegrationsCommandOutput | ListEventIntegrationAssociationsCommandOutput | ListEventIntegrationsCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateDataIntegrationCommandOutput | UpdateEventIntegrationCommandOutput;
37
41
  /**
38
42
  * @public
39
43
  */