@aws-sdk/client-appsync 3.682.0 → 3.683.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 (121) hide show
  1. package/README.md +90 -10
  2. package/dist-cjs/index.js +572 -0
  3. package/dist-es/AppSync.js +20 -0
  4. package/dist-es/commands/CreateApiCommand.js +22 -0
  5. package/dist-es/commands/CreateChannelNamespaceCommand.js +22 -0
  6. package/dist-es/commands/DeleteApiCommand.js +22 -0
  7. package/dist-es/commands/DeleteChannelNamespaceCommand.js +22 -0
  8. package/dist-es/commands/GetApiCommand.js +22 -0
  9. package/dist-es/commands/GetChannelNamespaceCommand.js +22 -0
  10. package/dist-es/commands/ListApisCommand.js +22 -0
  11. package/dist-es/commands/ListChannelNamespacesCommand.js +22 -0
  12. package/dist-es/commands/UpdateApiCommand.js +22 -0
  13. package/dist-es/commands/UpdateChannelNamespaceCommand.js +22 -0
  14. package/dist-es/commands/index.js +10 -0
  15. package/dist-es/models/models_0.js +31 -0
  16. package/dist-es/pagination/ListApisPaginator.js +4 -0
  17. package/dist-es/pagination/ListChannelNamespacesPaginator.js +4 -0
  18. package/dist-es/pagination/index.js +2 -0
  19. package/dist-es/protocols/Aws_restJson1.js +341 -2
  20. package/dist-types/AppSync.d.ts +73 -2
  21. package/dist-types/AppSyncClient.d.ts +14 -4
  22. package/dist-types/commands/AssociateApiCommand.d.ts +4 -3
  23. package/dist-types/commands/AssociateMergedGraphqlApiCommand.d.ts +8 -6
  24. package/dist-types/commands/AssociateSourceGraphqlApiCommand.d.ts +8 -6
  25. package/dist-types/commands/CreateApiCacheCommand.d.ts +6 -5
  26. package/dist-types/commands/CreateApiCommand.d.ts +192 -0
  27. package/dist-types/commands/CreateApiKeyCommand.d.ts +4 -3
  28. package/dist-types/commands/CreateChannelNamespaceCommand.d.ts +133 -0
  29. package/dist-types/commands/CreateDataSourceCommand.d.ts +6 -5
  30. package/dist-types/commands/CreateDomainNameCommand.d.ts +2 -2
  31. package/dist-types/commands/CreateFunctionCommand.d.ts +8 -6
  32. package/dist-types/commands/CreateGraphqlApiCommand.d.ts +5 -5
  33. package/dist-types/commands/CreateResolverCommand.d.ts +8 -7
  34. package/dist-types/commands/CreateTypeCommand.d.ts +6 -5
  35. package/dist-types/commands/DeleteApiCacheCommand.d.ts +6 -5
  36. package/dist-types/commands/DeleteApiCommand.d.ts +90 -0
  37. package/dist-types/commands/DeleteApiKeyCommand.d.ts +4 -3
  38. package/dist-types/commands/DeleteChannelNamespaceCommand.d.ts +91 -0
  39. package/dist-types/commands/DeleteDataSourceCommand.d.ts +6 -5
  40. package/dist-types/commands/DeleteDomainNameCommand.d.ts +6 -5
  41. package/dist-types/commands/DeleteFunctionCommand.d.ts +6 -5
  42. package/dist-types/commands/DeleteGraphqlApiCommand.d.ts +6 -5
  43. package/dist-types/commands/DeleteResolverCommand.d.ts +6 -5
  44. package/dist-types/commands/DeleteTypeCommand.d.ts +6 -5
  45. package/dist-types/commands/DisassociateApiCommand.d.ts +6 -5
  46. package/dist-types/commands/DisassociateMergedGraphqlApiCommand.d.ts +8 -7
  47. package/dist-types/commands/DisassociateSourceGraphqlApiCommand.d.ts +8 -7
  48. package/dist-types/commands/EvaluateCodeCommand.d.ts +8 -7
  49. package/dist-types/commands/EvaluateMappingTemplateCommand.d.ts +8 -7
  50. package/dist-types/commands/FlushApiCacheCommand.d.ts +6 -5
  51. package/dist-types/commands/GetApiAssociationCommand.d.ts +4 -3
  52. package/dist-types/commands/GetApiCacheCommand.d.ts +6 -5
  53. package/dist-types/commands/GetApiCommand.d.ts +144 -0
  54. package/dist-types/commands/GetChannelNamespaceCommand.d.ts +109 -0
  55. package/dist-types/commands/GetDataSourceCommand.d.ts +6 -5
  56. package/dist-types/commands/GetDataSourceIntrospectionCommand.d.ts +7 -6
  57. package/dist-types/commands/GetDomainNameCommand.d.ts +4 -3
  58. package/dist-types/commands/GetFunctionCommand.d.ts +4 -3
  59. package/dist-types/commands/GetGraphqlApiCommand.d.ts +4 -3
  60. package/dist-types/commands/GetGraphqlApiEnvironmentVariablesCommand.d.ts +6 -4
  61. package/dist-types/commands/GetIntrospectionSchemaCommand.d.ts +2 -1
  62. package/dist-types/commands/GetResolverCommand.d.ts +4 -3
  63. package/dist-types/commands/GetSchemaCreationStatusCommand.d.ts +4 -3
  64. package/dist-types/commands/GetSourceApiAssociationCommand.d.ts +4 -3
  65. package/dist-types/commands/GetTypeCommand.d.ts +6 -5
  66. package/dist-types/commands/ListApiKeysCommand.d.ts +8 -6
  67. package/dist-types/commands/ListApisCommand.d.ts +144 -0
  68. package/dist-types/commands/ListChannelNamespacesCommand.d.ts +114 -0
  69. package/dist-types/commands/ListDataSourcesCommand.d.ts +4 -3
  70. package/dist-types/commands/ListDomainNamesCommand.d.ts +2 -2
  71. package/dist-types/commands/ListFunctionsCommand.d.ts +4 -3
  72. package/dist-types/commands/ListGraphqlApisCommand.d.ts +2 -2
  73. package/dist-types/commands/ListResolversByFunctionCommand.d.ts +4 -3
  74. package/dist-types/commands/ListResolversCommand.d.ts +4 -3
  75. package/dist-types/commands/ListSourceApiAssociationsCommand.d.ts +4 -3
  76. package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -3
  77. package/dist-types/commands/ListTypesByAssociationCommand.d.ts +6 -5
  78. package/dist-types/commands/ListTypesCommand.d.ts +6 -5
  79. package/dist-types/commands/PutGraphqlApiEnvironmentVariablesCommand.d.ts +21 -17
  80. package/dist-types/commands/StartDataSourceIntrospectionCommand.d.ts +6 -5
  81. package/dist-types/commands/StartSchemaCreationCommand.d.ts +8 -7
  82. package/dist-types/commands/StartSchemaMergeCommand.d.ts +8 -6
  83. package/dist-types/commands/TagResourceCommand.d.ts +4 -3
  84. package/dist-types/commands/UntagResourceCommand.d.ts +4 -3
  85. package/dist-types/commands/UpdateApiCacheCommand.d.ts +6 -5
  86. package/dist-types/commands/UpdateApiCommand.d.ts +192 -0
  87. package/dist-types/commands/UpdateApiKeyCommand.d.ts +4 -3
  88. package/dist-types/commands/UpdateChannelNamespaceCommand.d.ts +124 -0
  89. package/dist-types/commands/UpdateDataSourceCommand.d.ts +6 -5
  90. package/dist-types/commands/UpdateDomainNameCommand.d.ts +6 -5
  91. package/dist-types/commands/UpdateFunctionCommand.d.ts +6 -5
  92. package/dist-types/commands/UpdateGraphqlApiCommand.d.ts +7 -6
  93. package/dist-types/commands/UpdateResolverCommand.d.ts +6 -5
  94. package/dist-types/commands/UpdateSourceApiAssociationCommand.d.ts +6 -5
  95. package/dist-types/commands/UpdateTypeCommand.d.ts +6 -5
  96. package/dist-types/commands/index.d.ts +10 -0
  97. package/dist-types/index.d.ts +2 -2
  98. package/dist-types/models/models_0.d.ts +1305 -629
  99. package/dist-types/pagination/ListApisPaginator.d.ts +7 -0
  100. package/dist-types/pagination/ListChannelNamespacesPaginator.d.ts +7 -0
  101. package/dist-types/pagination/index.d.ts +2 -0
  102. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  103. package/dist-types/ts3.4/AppSync.d.ts +171 -0
  104. package/dist-types/ts3.4/AppSyncClient.d.ts +60 -0
  105. package/dist-types/ts3.4/commands/CreateApiCommand.d.ts +47 -0
  106. package/dist-types/ts3.4/commands/CreateChannelNamespaceCommand.d.ts +51 -0
  107. package/dist-types/ts3.4/commands/DeleteApiCommand.d.ts +47 -0
  108. package/dist-types/ts3.4/commands/DeleteChannelNamespaceCommand.d.ts +51 -0
  109. package/dist-types/ts3.4/commands/GetApiCommand.d.ts +41 -0
  110. package/dist-types/ts3.4/commands/GetChannelNamespaceCommand.d.ts +51 -0
  111. package/dist-types/ts3.4/commands/ListApisCommand.d.ts +47 -0
  112. package/dist-types/ts3.4/commands/ListChannelNamespacesCommand.d.ts +51 -0
  113. package/dist-types/ts3.4/commands/UpdateApiCommand.d.ts +47 -0
  114. package/dist-types/ts3.4/commands/UpdateChannelNamespaceCommand.d.ts +51 -0
  115. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  116. package/dist-types/ts3.4/models/models_0.d.ts +148 -2
  117. package/dist-types/ts3.4/pagination/ListApisPaginator.d.ts +11 -0
  118. package/dist-types/ts3.4/pagination/ListChannelNamespacesPaginator.d.ts +11 -0
  119. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  120. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
  121. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { AppSyncServiceException as __BaseException } from "../models/AppSyncServiceException";
5
- import { AccessDeniedException, ApiKeyLimitExceededException, ApiKeyValidityOutOfBoundsException, ApiLimitExceededException, BadRequestException, ConcurrentModificationException, GraphQLSchemaException, InternalFailureException, LimitExceededException, NotFoundException, UnauthorizedException, } from "../models/models_0";
5
+ import { AccessDeniedException, ApiKeyLimitExceededException, ApiKeyValidityOutOfBoundsException, ApiLimitExceededException, BadRequestException, ConcurrentModificationException, ConflictException, GraphQLSchemaException, InternalFailureException, LimitExceededException, NotFoundException, ServiceQuotaExceededException, UnauthorizedException, } from "../models/models_0";
6
6
  export const se_AssociateApiCommand = async (input, context) => {
7
7
  const b = rb(input, context);
8
8
  const headers = {
@@ -49,6 +49,22 @@ export const se_AssociateSourceGraphqlApiCommand = async (input, context) => {
49
49
  b.m("POST").h(headers).b(body);
50
50
  return b.build();
51
51
  };
52
+ export const se_CreateApiCommand = async (input, context) => {
53
+ const b = rb(input, context);
54
+ const headers = {
55
+ "content-type": "application/json",
56
+ };
57
+ b.bp("/v2/apis");
58
+ let body;
59
+ body = JSON.stringify(take(input, {
60
+ eventConfig: (_) => _json(_),
61
+ name: [],
62
+ ownerContact: [],
63
+ tags: (_) => _json(_),
64
+ }));
65
+ b.m("POST").h(headers).b(body);
66
+ return b.build();
67
+ };
52
68
  export const se_CreateApiCacheCommand = async (input, context) => {
53
69
  const b = rb(input, context);
54
70
  const headers = {
@@ -83,6 +99,24 @@ export const se_CreateApiKeyCommand = async (input, context) => {
83
99
  b.m("POST").h(headers).b(body);
84
100
  return b.build();
85
101
  };
102
+ export const se_CreateChannelNamespaceCommand = async (input, context) => {
103
+ const b = rb(input, context);
104
+ const headers = {
105
+ "content-type": "application/json",
106
+ };
107
+ b.bp("/v2/apis/{apiId}/channelNamespaces");
108
+ b.p("apiId", () => input.apiId, "{apiId}", false);
109
+ let body;
110
+ body = JSON.stringify(take(input, {
111
+ codeHandlers: [],
112
+ name: [],
113
+ publishAuthModes: (_) => _json(_),
114
+ subscribeAuthModes: (_) => _json(_),
115
+ tags: (_) => _json(_),
116
+ }));
117
+ b.m("POST").h(headers).b(body);
118
+ return b.build();
119
+ };
86
120
  export const se_CreateDataSourceCommand = async (input, context) => {
87
121
  const b = rb(input, context);
88
122
  const headers = {
@@ -216,6 +250,15 @@ export const se_CreateTypeCommand = async (input, context) => {
216
250
  b.m("POST").h(headers).b(body);
217
251
  return b.build();
218
252
  };
253
+ export const se_DeleteApiCommand = async (input, context) => {
254
+ const b = rb(input, context);
255
+ const headers = {};
256
+ b.bp("/v2/apis/{apiId}");
257
+ b.p("apiId", () => input.apiId, "{apiId}", false);
258
+ let body;
259
+ b.m("DELETE").h(headers).b(body);
260
+ return b.build();
261
+ };
219
262
  export const se_DeleteApiCacheCommand = async (input, context) => {
220
263
  const b = rb(input, context);
221
264
  const headers = {};
@@ -235,6 +278,16 @@ export const se_DeleteApiKeyCommand = async (input, context) => {
235
278
  b.m("DELETE").h(headers).b(body);
236
279
  return b.build();
237
280
  };
281
+ export const se_DeleteChannelNamespaceCommand = async (input, context) => {
282
+ const b = rb(input, context);
283
+ const headers = {};
284
+ b.bp("/v2/apis/{apiId}/channelNamespaces/{name}");
285
+ b.p("apiId", () => input.apiId, "{apiId}", false);
286
+ b.p("name", () => input.name, "{name}", false);
287
+ let body;
288
+ b.m("DELETE").h(headers).b(body);
289
+ return b.build();
290
+ };
238
291
  export const se_DeleteDataSourceCommand = async (input, context) => {
239
292
  const b = rb(input, context);
240
293
  const headers = {};
@@ -362,6 +415,15 @@ export const se_FlushApiCacheCommand = async (input, context) => {
362
415
  b.m("DELETE").h(headers).b(body);
363
416
  return b.build();
364
417
  };
418
+ export const se_GetApiCommand = async (input, context) => {
419
+ const b = rb(input, context);
420
+ const headers = {};
421
+ b.bp("/v2/apis/{apiId}");
422
+ b.p("apiId", () => input.apiId, "{apiId}", false);
423
+ let body;
424
+ b.m("GET").h(headers).b(body);
425
+ return b.build();
426
+ };
365
427
  export const se_GetApiAssociationCommand = async (input, context) => {
366
428
  const b = rb(input, context);
367
429
  const headers = {};
@@ -380,6 +442,16 @@ export const se_GetApiCacheCommand = async (input, context) => {
380
442
  b.m("GET").h(headers).b(body);
381
443
  return b.build();
382
444
  };
445
+ export const se_GetChannelNamespaceCommand = async (input, context) => {
446
+ const b = rb(input, context);
447
+ const headers = {};
448
+ b.bp("/v2/apis/{apiId}/channelNamespaces/{name}");
449
+ b.p("apiId", () => input.apiId, "{apiId}", false);
450
+ b.p("name", () => input.name, "{name}", false);
451
+ let body;
452
+ b.m("GET").h(headers).b(body);
453
+ return b.build();
454
+ };
383
455
  export const se_GetDataSourceCommand = async (input, context) => {
384
456
  const b = rb(input, context);
385
457
  const headers = {};
@@ -510,6 +582,31 @@ export const se_ListApiKeysCommand = async (input, context) => {
510
582
  b.m("GET").h(headers).q(query).b(body);
511
583
  return b.build();
512
584
  };
585
+ export const se_ListApisCommand = async (input, context) => {
586
+ const b = rb(input, context);
587
+ const headers = {};
588
+ b.bp("/v2/apis");
589
+ const query = map({
590
+ [_nT]: [, input[_nT]],
591
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
592
+ });
593
+ let body;
594
+ b.m("GET").h(headers).q(query).b(body);
595
+ return b.build();
596
+ };
597
+ export const se_ListChannelNamespacesCommand = async (input, context) => {
598
+ const b = rb(input, context);
599
+ const headers = {};
600
+ b.bp("/v2/apis/{apiId}/channelNamespaces");
601
+ b.p("apiId", () => input.apiId, "{apiId}", false);
602
+ const query = map({
603
+ [_nT]: [, input[_nT]],
604
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
605
+ });
606
+ let body;
607
+ b.m("GET").h(headers).q(query).b(body);
608
+ return b.build();
609
+ };
513
610
  export const se_ListDataSourcesCommand = async (input, context) => {
514
611
  const b = rb(input, context);
515
612
  const headers = {};
@@ -718,6 +815,22 @@ export const se_UntagResourceCommand = async (input, context) => {
718
815
  b.m("DELETE").h(headers).q(query).b(body);
719
816
  return b.build();
720
817
  };
818
+ export const se_UpdateApiCommand = async (input, context) => {
819
+ const b = rb(input, context);
820
+ const headers = {
821
+ "content-type": "application/json",
822
+ };
823
+ b.bp("/v2/apis/{apiId}");
824
+ b.p("apiId", () => input.apiId, "{apiId}", false);
825
+ let body;
826
+ body = JSON.stringify(take(input, {
827
+ eventConfig: (_) => _json(_),
828
+ name: [],
829
+ ownerContact: [],
830
+ }));
831
+ b.m("POST").h(headers).b(body);
832
+ return b.build();
833
+ };
721
834
  export const se_UpdateApiCacheCommand = async (input, context) => {
722
835
  const b = rb(input, context);
723
836
  const headers = {
@@ -751,6 +864,23 @@ export const se_UpdateApiKeyCommand = async (input, context) => {
751
864
  b.m("POST").h(headers).b(body);
752
865
  return b.build();
753
866
  };
867
+ export const se_UpdateChannelNamespaceCommand = async (input, context) => {
868
+ const b = rb(input, context);
869
+ const headers = {
870
+ "content-type": "application/json",
871
+ };
872
+ b.bp("/v2/apis/{apiId}/channelNamespaces/{name}");
873
+ b.p("apiId", () => input.apiId, "{apiId}", false);
874
+ b.p("name", () => input.name, "{name}", false);
875
+ let body;
876
+ body = JSON.stringify(take(input, {
877
+ codeHandlers: [],
878
+ publishAuthModes: (_) => _json(_),
879
+ subscribeAuthModes: (_) => _json(_),
880
+ }));
881
+ b.m("POST").h(headers).b(body);
882
+ return b.build();
883
+ };
754
884
  export const se_UpdateDataSourceCommand = async (input, context) => {
755
885
  const b = rb(input, context);
756
886
  const headers = {
@@ -941,6 +1071,20 @@ export const de_AssociateSourceGraphqlApiCommand = async (output, context) => {
941
1071
  Object.assign(contents, doc);
942
1072
  return contents;
943
1073
  };
1074
+ export const de_CreateApiCommand = async (output, context) => {
1075
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1076
+ return de_CommandError(output, context);
1077
+ }
1078
+ const contents = map({
1079
+ $metadata: deserializeMetadata(output),
1080
+ });
1081
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1082
+ const doc = take(data, {
1083
+ api: (_) => de_Api(_, context),
1084
+ });
1085
+ Object.assign(contents, doc);
1086
+ return contents;
1087
+ };
944
1088
  export const de_CreateApiCacheCommand = async (output, context) => {
945
1089
  if (output.statusCode !== 200 && output.statusCode >= 300) {
946
1090
  return de_CommandError(output, context);
@@ -969,6 +1113,20 @@ export const de_CreateApiKeyCommand = async (output, context) => {
969
1113
  Object.assign(contents, doc);
970
1114
  return contents;
971
1115
  };
1116
+ export const de_CreateChannelNamespaceCommand = async (output, context) => {
1117
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1118
+ return de_CommandError(output, context);
1119
+ }
1120
+ const contents = map({
1121
+ $metadata: deserializeMetadata(output),
1122
+ });
1123
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1124
+ const doc = take(data, {
1125
+ channelNamespace: (_) => de_ChannelNamespace(_, context),
1126
+ });
1127
+ Object.assign(contents, doc);
1128
+ return contents;
1129
+ };
972
1130
  export const de_CreateDataSourceCommand = async (output, context) => {
973
1131
  if (output.statusCode !== 200 && output.statusCode >= 300) {
974
1132
  return de_CommandError(output, context);
@@ -1053,6 +1211,16 @@ export const de_CreateTypeCommand = async (output, context) => {
1053
1211
  Object.assign(contents, doc);
1054
1212
  return contents;
1055
1213
  };
1214
+ export const de_DeleteApiCommand = async (output, context) => {
1215
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1216
+ return de_CommandError(output, context);
1217
+ }
1218
+ const contents = map({
1219
+ $metadata: deserializeMetadata(output),
1220
+ });
1221
+ await collectBody(output.body, context);
1222
+ return contents;
1223
+ };
1056
1224
  export const de_DeleteApiCacheCommand = async (output, context) => {
1057
1225
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1058
1226
  return de_CommandError(output, context);
@@ -1073,6 +1241,16 @@ export const de_DeleteApiKeyCommand = async (output, context) => {
1073
1241
  await collectBody(output.body, context);
1074
1242
  return contents;
1075
1243
  };
1244
+ export const de_DeleteChannelNamespaceCommand = async (output, context) => {
1245
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1246
+ return de_CommandError(output, context);
1247
+ }
1248
+ const contents = map({
1249
+ $metadata: deserializeMetadata(output),
1250
+ });
1251
+ await collectBody(output.body, context);
1252
+ return contents;
1253
+ };
1076
1254
  export const de_DeleteDataSourceCommand = async (output, context) => {
1077
1255
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1078
1256
  return de_CommandError(output, context);
@@ -1213,6 +1391,20 @@ export const de_FlushApiCacheCommand = async (output, context) => {
1213
1391
  await collectBody(output.body, context);
1214
1392
  return contents;
1215
1393
  };
1394
+ export const de_GetApiCommand = async (output, context) => {
1395
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1396
+ return de_CommandError(output, context);
1397
+ }
1398
+ const contents = map({
1399
+ $metadata: deserializeMetadata(output),
1400
+ });
1401
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1402
+ const doc = take(data, {
1403
+ api: (_) => de_Api(_, context),
1404
+ });
1405
+ Object.assign(contents, doc);
1406
+ return contents;
1407
+ };
1216
1408
  export const de_GetApiAssociationCommand = async (output, context) => {
1217
1409
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1218
1410
  return de_CommandError(output, context);
@@ -1241,6 +1433,20 @@ export const de_GetApiCacheCommand = async (output, context) => {
1241
1433
  Object.assign(contents, doc);
1242
1434
  return contents;
1243
1435
  };
1436
+ export const de_GetChannelNamespaceCommand = async (output, context) => {
1437
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1438
+ return de_CommandError(output, context);
1439
+ }
1440
+ const contents = map({
1441
+ $metadata: deserializeMetadata(output),
1442
+ });
1443
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1444
+ const doc = take(data, {
1445
+ channelNamespace: (_) => de_ChannelNamespace(_, context),
1446
+ });
1447
+ Object.assign(contents, doc);
1448
+ return contents;
1449
+ };
1244
1450
  export const de_GetDataSourceCommand = async (output, context) => {
1245
1451
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1246
1452
  return de_CommandError(output, context);
@@ -1411,6 +1617,36 @@ export const de_ListApiKeysCommand = async (output, context) => {
1411
1617
  Object.assign(contents, doc);
1412
1618
  return contents;
1413
1619
  };
1620
+ export const de_ListApisCommand = async (output, context) => {
1621
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1622
+ return de_CommandError(output, context);
1623
+ }
1624
+ const contents = map({
1625
+ $metadata: deserializeMetadata(output),
1626
+ });
1627
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1628
+ const doc = take(data, {
1629
+ apis: (_) => de_Apis(_, context),
1630
+ nextToken: __expectString,
1631
+ });
1632
+ Object.assign(contents, doc);
1633
+ return contents;
1634
+ };
1635
+ export const de_ListChannelNamespacesCommand = async (output, context) => {
1636
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1637
+ return de_CommandError(output, context);
1638
+ }
1639
+ const contents = map({
1640
+ $metadata: deserializeMetadata(output),
1641
+ });
1642
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1643
+ const doc = take(data, {
1644
+ channelNamespaces: (_) => de_ChannelNamespaces(_, context),
1645
+ nextToken: __expectString,
1646
+ });
1647
+ Object.assign(contents, doc);
1648
+ return contents;
1649
+ };
1414
1650
  export const de_ListDataSourcesCommand = async (output, context) => {
1415
1651
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1416
1652
  return de_CommandError(output, context);
@@ -1638,6 +1874,20 @@ export const de_UntagResourceCommand = async (output, context) => {
1638
1874
  await collectBody(output.body, context);
1639
1875
  return contents;
1640
1876
  };
1877
+ export const de_UpdateApiCommand = async (output, context) => {
1878
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1879
+ return de_CommandError(output, context);
1880
+ }
1881
+ const contents = map({
1882
+ $metadata: deserializeMetadata(output),
1883
+ });
1884
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1885
+ const doc = take(data, {
1886
+ api: (_) => de_Api(_, context),
1887
+ });
1888
+ Object.assign(contents, doc);
1889
+ return contents;
1890
+ };
1641
1891
  export const de_UpdateApiCacheCommand = async (output, context) => {
1642
1892
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1643
1893
  return de_CommandError(output, context);
@@ -1666,6 +1916,20 @@ export const de_UpdateApiKeyCommand = async (output, context) => {
1666
1916
  Object.assign(contents, doc);
1667
1917
  return contents;
1668
1918
  };
1919
+ export const de_UpdateChannelNamespaceCommand = async (output, context) => {
1920
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1921
+ return de_CommandError(output, context);
1922
+ }
1923
+ const contents = map({
1924
+ $metadata: deserializeMetadata(output),
1925
+ });
1926
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1927
+ const doc = take(data, {
1928
+ channelNamespace: (_) => de_ChannelNamespace(_, context),
1929
+ });
1930
+ Object.assign(contents, doc);
1931
+ return contents;
1932
+ };
1669
1933
  export const de_UpdateDataSourceCommand = async (output, context) => {
1670
1934
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1671
1935
  return de_CommandError(output, context);
@@ -1792,12 +2056,18 @@ const de_CommandError = async (output, context) => {
1792
2056
  case "UnauthorizedException":
1793
2057
  case "com.amazonaws.appsync#UnauthorizedException":
1794
2058
  throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2059
+ case "ServiceQuotaExceededException":
2060
+ case "com.amazonaws.appsync#ServiceQuotaExceededException":
2061
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1795
2062
  case "ApiKeyLimitExceededException":
1796
2063
  case "com.amazonaws.appsync#ApiKeyLimitExceededException":
1797
2064
  throw await de_ApiKeyLimitExceededExceptionRes(parsedOutput, context);
1798
2065
  case "ApiKeyValidityOutOfBoundsException":
1799
2066
  case "com.amazonaws.appsync#ApiKeyValidityOutOfBoundsException":
1800
2067
  throw await de_ApiKeyValidityOutOfBoundsExceptionRes(parsedOutput, context);
2068
+ case "ConflictException":
2069
+ case "com.amazonaws.appsync#ConflictException":
2070
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1801
2071
  case "ApiLimitExceededException":
1802
2072
  case "com.amazonaws.appsync#ApiLimitExceededException":
1803
2073
  throw await de_ApiLimitExceededExceptionRes(parsedOutput, context);
@@ -1894,6 +2164,19 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
1894
2164
  });
1895
2165
  return __decorateServiceException(exception, parsedOutput.body);
1896
2166
  };
2167
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
2168
+ const contents = map({});
2169
+ const data = parsedOutput.body;
2170
+ const doc = take(data, {
2171
+ message: __expectString,
2172
+ });
2173
+ Object.assign(contents, doc);
2174
+ const exception = new ConflictException({
2175
+ $metadata: deserializeMetadata(parsedOutput),
2176
+ ...contents,
2177
+ });
2178
+ return __decorateServiceException(exception, parsedOutput.body);
2179
+ };
1897
2180
  const de_GraphQLSchemaExceptionRes = async (parsedOutput, context) => {
1898
2181
  const contents = map({});
1899
2182
  const data = parsedOutput.body;
@@ -1946,6 +2229,19 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1946
2229
  });
1947
2230
  return __decorateServiceException(exception, parsedOutput.body);
1948
2231
  };
2232
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2233
+ const contents = map({});
2234
+ const data = parsedOutput.body;
2235
+ const doc = take(data, {
2236
+ message: __expectString,
2237
+ });
2238
+ Object.assign(contents, doc);
2239
+ const exception = new ServiceQuotaExceededException({
2240
+ $metadata: deserializeMetadata(parsedOutput),
2241
+ ...contents,
2242
+ });
2243
+ return __decorateServiceException(exception, parsedOutput.body);
2244
+ };
1949
2245
  const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
1950
2246
  const contents = map({});
1951
2247
  const data = parsedOutput.body;
@@ -1959,6 +2255,49 @@ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
1959
2255
  });
1960
2256
  return __decorateServiceException(exception, parsedOutput.body);
1961
2257
  };
2258
+ const de_Api = (output, context) => {
2259
+ return take(output, {
2260
+ apiArn: __expectString,
2261
+ apiId: __expectString,
2262
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2263
+ dns: _json,
2264
+ eventConfig: _json,
2265
+ name: __expectString,
2266
+ ownerContact: __expectString,
2267
+ tags: _json,
2268
+ wafWebAclArn: __expectString,
2269
+ xrayEnabled: __expectBoolean,
2270
+ });
2271
+ };
2272
+ const de_Apis = (output, context) => {
2273
+ const retVal = (output || [])
2274
+ .filter((e) => e != null)
2275
+ .map((entry) => {
2276
+ return de_Api(entry, context);
2277
+ });
2278
+ return retVal;
2279
+ };
2280
+ const de_ChannelNamespace = (output, context) => {
2281
+ return take(output, {
2282
+ apiId: __expectString,
2283
+ channelNamespaceArn: __expectString,
2284
+ codeHandlers: __expectString,
2285
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2286
+ lastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2287
+ name: __expectString,
2288
+ publishAuthModes: _json,
2289
+ subscribeAuthModes: _json,
2290
+ tags: _json,
2291
+ });
2292
+ };
2293
+ const de_ChannelNamespaces = (output, context) => {
2294
+ const retVal = (output || [])
2295
+ .filter((e) => e != null)
2296
+ .map((entry) => {
2297
+ return de_ChannelNamespace(entry, context);
2298
+ });
2299
+ return retVal;
2300
+ };
1962
2301
  const de_DataSourceIntrospectionModel = (output, context) => {
1963
2302
  return take(output, {
1964
2303
  fields: (_) => de_DataSourceIntrospectionModelFields(_, context),