@aws-sdk/client-appsync 3.337.0 → 3.339.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 (270) hide show
  1. package/README.md +72 -0
  2. package/dist-cjs/AppSync.js +18 -0
  3. package/dist-cjs/AppSyncClient.js +2 -1
  4. package/dist-cjs/commands/AssociateApiCommand.js +2 -1
  5. package/dist-cjs/commands/AssociateMergedGraphqlApiCommand.js +46 -0
  6. package/dist-cjs/commands/AssociateSourceGraphqlApiCommand.js +46 -0
  7. package/dist-cjs/commands/CreateApiCacheCommand.js +2 -1
  8. package/dist-cjs/commands/CreateApiKeyCommand.js +2 -1
  9. package/dist-cjs/commands/CreateDataSourceCommand.js +2 -1
  10. package/dist-cjs/commands/CreateDomainNameCommand.js +2 -1
  11. package/dist-cjs/commands/CreateFunctionCommand.js +2 -1
  12. package/dist-cjs/commands/CreateGraphqlApiCommand.js +2 -1
  13. package/dist-cjs/commands/CreateResolverCommand.js +2 -1
  14. package/dist-cjs/commands/CreateTypeCommand.js +2 -1
  15. package/dist-cjs/commands/DeleteApiCacheCommand.js +2 -1
  16. package/dist-cjs/commands/DeleteApiKeyCommand.js +2 -1
  17. package/dist-cjs/commands/DeleteDataSourceCommand.js +2 -1
  18. package/dist-cjs/commands/DeleteDomainNameCommand.js +2 -1
  19. package/dist-cjs/commands/DeleteFunctionCommand.js +2 -1
  20. package/dist-cjs/commands/DeleteGraphqlApiCommand.js +2 -1
  21. package/dist-cjs/commands/DeleteResolverCommand.js +2 -1
  22. package/dist-cjs/commands/DeleteTypeCommand.js +2 -1
  23. package/dist-cjs/commands/DisassociateApiCommand.js +2 -1
  24. package/dist-cjs/commands/DisassociateMergedGraphqlApiCommand.js +46 -0
  25. package/dist-cjs/commands/DisassociateSourceGraphqlApiCommand.js +46 -0
  26. package/dist-cjs/commands/EvaluateCodeCommand.js +2 -1
  27. package/dist-cjs/commands/EvaluateMappingTemplateCommand.js +2 -1
  28. package/dist-cjs/commands/FlushApiCacheCommand.js +2 -1
  29. package/dist-cjs/commands/GetApiAssociationCommand.js +2 -1
  30. package/dist-cjs/commands/GetApiCacheCommand.js +2 -1
  31. package/dist-cjs/commands/GetDataSourceCommand.js +2 -1
  32. package/dist-cjs/commands/GetDomainNameCommand.js +2 -1
  33. package/dist-cjs/commands/GetFunctionCommand.js +2 -1
  34. package/dist-cjs/commands/GetGraphqlApiCommand.js +2 -1
  35. package/dist-cjs/commands/GetIntrospectionSchemaCommand.js +2 -1
  36. package/dist-cjs/commands/GetResolverCommand.js +2 -1
  37. package/dist-cjs/commands/GetSchemaCreationStatusCommand.js +2 -1
  38. package/dist-cjs/commands/GetSourceApiAssociationCommand.js +46 -0
  39. package/dist-cjs/commands/GetTypeCommand.js +2 -1
  40. package/dist-cjs/commands/ListApiKeysCommand.js +2 -1
  41. package/dist-cjs/commands/ListDataSourcesCommand.js +2 -1
  42. package/dist-cjs/commands/ListDomainNamesCommand.js +2 -1
  43. package/dist-cjs/commands/ListFunctionsCommand.js +2 -1
  44. package/dist-cjs/commands/ListGraphqlApisCommand.js +2 -1
  45. package/dist-cjs/commands/ListResolversByFunctionCommand.js +2 -1
  46. package/dist-cjs/commands/ListResolversCommand.js +2 -1
  47. package/dist-cjs/commands/ListSourceApiAssociationsCommand.js +46 -0
  48. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -1
  49. package/dist-cjs/commands/ListTypesByAssociationCommand.js +46 -0
  50. package/dist-cjs/commands/ListTypesCommand.js +2 -1
  51. package/dist-cjs/commands/StartSchemaCreationCommand.js +2 -1
  52. package/dist-cjs/commands/StartSchemaMergeCommand.js +46 -0
  53. package/dist-cjs/commands/TagResourceCommand.js +2 -1
  54. package/dist-cjs/commands/UntagResourceCommand.js +2 -1
  55. package/dist-cjs/commands/UpdateApiCacheCommand.js +2 -1
  56. package/dist-cjs/commands/UpdateApiKeyCommand.js +2 -1
  57. package/dist-cjs/commands/UpdateDataSourceCommand.js +2 -1
  58. package/dist-cjs/commands/UpdateDomainNameCommand.js +2 -1
  59. package/dist-cjs/commands/UpdateFunctionCommand.js +2 -1
  60. package/dist-cjs/commands/UpdateGraphqlApiCommand.js +2 -1
  61. package/dist-cjs/commands/UpdateResolverCommand.js +2 -1
  62. package/dist-cjs/commands/UpdateSourceApiAssociationCommand.js +46 -0
  63. package/dist-cjs/commands/UpdateTypeCommand.js +2 -1
  64. package/dist-cjs/commands/index.js +9 -0
  65. package/dist-cjs/index.js +1 -1
  66. package/dist-cjs/models/AppSyncServiceException.js +2 -1
  67. package/dist-cjs/models/models_0.js +35 -13
  68. package/dist-cjs/protocols/Aws_restJson1.js +652 -16
  69. package/dist-es/AppSync.js +18 -0
  70. package/dist-es/AppSyncClient.js +1 -0
  71. package/dist-es/commands/AssociateApiCommand.js +1 -0
  72. package/dist-es/commands/AssociateMergedGraphqlApiCommand.js +42 -0
  73. package/dist-es/commands/AssociateSourceGraphqlApiCommand.js +42 -0
  74. package/dist-es/commands/CreateApiCacheCommand.js +1 -0
  75. package/dist-es/commands/CreateApiKeyCommand.js +1 -0
  76. package/dist-es/commands/CreateDataSourceCommand.js +1 -0
  77. package/dist-es/commands/CreateDomainNameCommand.js +1 -0
  78. package/dist-es/commands/CreateFunctionCommand.js +1 -0
  79. package/dist-es/commands/CreateGraphqlApiCommand.js +1 -0
  80. package/dist-es/commands/CreateResolverCommand.js +1 -0
  81. package/dist-es/commands/CreateTypeCommand.js +1 -0
  82. package/dist-es/commands/DeleteApiCacheCommand.js +1 -0
  83. package/dist-es/commands/DeleteApiKeyCommand.js +1 -0
  84. package/dist-es/commands/DeleteDataSourceCommand.js +1 -0
  85. package/dist-es/commands/DeleteDomainNameCommand.js +1 -0
  86. package/dist-es/commands/DeleteFunctionCommand.js +1 -0
  87. package/dist-es/commands/DeleteGraphqlApiCommand.js +1 -0
  88. package/dist-es/commands/DeleteResolverCommand.js +1 -0
  89. package/dist-es/commands/DeleteTypeCommand.js +1 -0
  90. package/dist-es/commands/DisassociateApiCommand.js +1 -0
  91. package/dist-es/commands/DisassociateMergedGraphqlApiCommand.js +42 -0
  92. package/dist-es/commands/DisassociateSourceGraphqlApiCommand.js +42 -0
  93. package/dist-es/commands/EvaluateCodeCommand.js +1 -0
  94. package/dist-es/commands/EvaluateMappingTemplateCommand.js +1 -0
  95. package/dist-es/commands/FlushApiCacheCommand.js +1 -0
  96. package/dist-es/commands/GetApiAssociationCommand.js +1 -0
  97. package/dist-es/commands/GetApiCacheCommand.js +1 -0
  98. package/dist-es/commands/GetDataSourceCommand.js +1 -0
  99. package/dist-es/commands/GetDomainNameCommand.js +1 -0
  100. package/dist-es/commands/GetFunctionCommand.js +1 -0
  101. package/dist-es/commands/GetGraphqlApiCommand.js +1 -0
  102. package/dist-es/commands/GetIntrospectionSchemaCommand.js +1 -0
  103. package/dist-es/commands/GetResolverCommand.js +1 -0
  104. package/dist-es/commands/GetSchemaCreationStatusCommand.js +1 -0
  105. package/dist-es/commands/GetSourceApiAssociationCommand.js +42 -0
  106. package/dist-es/commands/GetTypeCommand.js +1 -0
  107. package/dist-es/commands/ListApiKeysCommand.js +1 -0
  108. package/dist-es/commands/ListDataSourcesCommand.js +1 -0
  109. package/dist-es/commands/ListDomainNamesCommand.js +1 -0
  110. package/dist-es/commands/ListFunctionsCommand.js +1 -0
  111. package/dist-es/commands/ListGraphqlApisCommand.js +1 -0
  112. package/dist-es/commands/ListResolversByFunctionCommand.js +1 -0
  113. package/dist-es/commands/ListResolversCommand.js +1 -0
  114. package/dist-es/commands/ListSourceApiAssociationsCommand.js +42 -0
  115. package/dist-es/commands/ListTagsForResourceCommand.js +1 -0
  116. package/dist-es/commands/ListTypesByAssociationCommand.js +42 -0
  117. package/dist-es/commands/ListTypesCommand.js +1 -0
  118. package/dist-es/commands/StartSchemaCreationCommand.js +1 -0
  119. package/dist-es/commands/StartSchemaMergeCommand.js +42 -0
  120. package/dist-es/commands/TagResourceCommand.js +1 -0
  121. package/dist-es/commands/UntagResourceCommand.js +1 -0
  122. package/dist-es/commands/UpdateApiCacheCommand.js +1 -0
  123. package/dist-es/commands/UpdateApiKeyCommand.js +1 -0
  124. package/dist-es/commands/UpdateDataSourceCommand.js +1 -0
  125. package/dist-es/commands/UpdateDomainNameCommand.js +1 -0
  126. package/dist-es/commands/UpdateFunctionCommand.js +1 -0
  127. package/dist-es/commands/UpdateGraphqlApiCommand.js +1 -0
  128. package/dist-es/commands/UpdateResolverCommand.js +1 -0
  129. package/dist-es/commands/UpdateSourceApiAssociationCommand.js +42 -0
  130. package/dist-es/commands/UpdateTypeCommand.js +1 -0
  131. package/dist-es/commands/index.js +9 -0
  132. package/dist-es/index.js +1 -1
  133. package/dist-es/models/AppSyncServiceException.js +1 -0
  134. package/dist-es/models/models_0.js +32 -10
  135. package/dist-es/protocols/Aws_restJson1.js +632 -14
  136. package/dist-types/AppSync.d.ts +63 -0
  137. package/dist-types/AppSyncClient.d.ts +14 -5
  138. package/dist-types/commands/AssociateApiCommand.d.ts +4 -0
  139. package/dist-types/commands/AssociateMergedGraphqlApiCommand.d.ts +113 -0
  140. package/dist-types/commands/AssociateSourceGraphqlApiCommand.d.ts +113 -0
  141. package/dist-types/commands/CreateApiCacheCommand.d.ts +4 -0
  142. package/dist-types/commands/CreateApiKeyCommand.d.ts +4 -0
  143. package/dist-types/commands/CreateDataSourceCommand.d.ts +4 -0
  144. package/dist-types/commands/CreateDomainNameCommand.d.ts +4 -0
  145. package/dist-types/commands/CreateFunctionCommand.d.ts +4 -0
  146. package/dist-types/commands/CreateGraphqlApiCommand.d.ts +11 -0
  147. package/dist-types/commands/CreateResolverCommand.d.ts +4 -0
  148. package/dist-types/commands/CreateTypeCommand.d.ts +4 -0
  149. package/dist-types/commands/DeleteApiCacheCommand.d.ts +4 -0
  150. package/dist-types/commands/DeleteApiKeyCommand.d.ts +4 -0
  151. package/dist-types/commands/DeleteDataSourceCommand.d.ts +4 -0
  152. package/dist-types/commands/DeleteDomainNameCommand.d.ts +4 -0
  153. package/dist-types/commands/DeleteFunctionCommand.d.ts +4 -0
  154. package/dist-types/commands/DeleteGraphqlApiCommand.d.ts +4 -0
  155. package/dist-types/commands/DeleteResolverCommand.d.ts +4 -0
  156. package/dist-types/commands/DeleteTypeCommand.d.ts +4 -0
  157. package/dist-types/commands/DisassociateApiCommand.d.ts +4 -0
  158. package/dist-types/commands/DisassociateMergedGraphqlApiCommand.d.ts +93 -0
  159. package/dist-types/commands/DisassociateSourceGraphqlApiCommand.d.ts +93 -0
  160. package/dist-types/commands/EvaluateCodeCommand.d.ts +4 -0
  161. package/dist-types/commands/EvaluateMappingTemplateCommand.d.ts +4 -0
  162. package/dist-types/commands/FlushApiCacheCommand.d.ts +4 -0
  163. package/dist-types/commands/GetApiAssociationCommand.d.ts +4 -0
  164. package/dist-types/commands/GetApiCacheCommand.d.ts +4 -0
  165. package/dist-types/commands/GetDataSourceCommand.d.ts +4 -0
  166. package/dist-types/commands/GetDomainNameCommand.d.ts +4 -0
  167. package/dist-types/commands/GetFunctionCommand.d.ts +4 -0
  168. package/dist-types/commands/GetGraphqlApiCommand.d.ts +8 -0
  169. package/dist-types/commands/GetIntrospectionSchemaCommand.d.ts +4 -0
  170. package/dist-types/commands/GetResolverCommand.d.ts +4 -0
  171. package/dist-types/commands/GetSchemaCreationStatusCommand.d.ts +4 -0
  172. package/dist-types/commands/GetSourceApiAssociationCommand.d.ts +102 -0
  173. package/dist-types/commands/GetTypeCommand.d.ts +4 -0
  174. package/dist-types/commands/ListApiKeysCommand.d.ts +4 -0
  175. package/dist-types/commands/ListDataSourcesCommand.d.ts +4 -0
  176. package/dist-types/commands/ListDomainNamesCommand.d.ts +4 -0
  177. package/dist-types/commands/ListFunctionsCommand.d.ts +4 -0
  178. package/dist-types/commands/ListGraphqlApisCommand.d.ts +10 -0
  179. package/dist-types/commands/ListResolversByFunctionCommand.d.ts +4 -0
  180. package/dist-types/commands/ListResolversCommand.d.ts +4 -0
  181. package/dist-types/commands/ListSourceApiAssociationsCommand.d.ts +100 -0
  182. package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -0
  183. package/dist-types/commands/ListTypesByAssociationCommand.d.ts +104 -0
  184. package/dist-types/commands/ListTypesCommand.d.ts +4 -0
  185. package/dist-types/commands/StartSchemaCreationCommand.d.ts +4 -0
  186. package/dist-types/commands/StartSchemaMergeCommand.d.ts +92 -0
  187. package/dist-types/commands/TagResourceCommand.d.ts +4 -0
  188. package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
  189. package/dist-types/commands/UpdateApiCacheCommand.d.ts +4 -0
  190. package/dist-types/commands/UpdateApiKeyCommand.d.ts +4 -0
  191. package/dist-types/commands/UpdateDataSourceCommand.d.ts +4 -0
  192. package/dist-types/commands/UpdateDomainNameCommand.d.ts +4 -0
  193. package/dist-types/commands/UpdateFunctionCommand.d.ts +4 -0
  194. package/dist-types/commands/UpdateGraphqlApiCommand.d.ts +10 -0
  195. package/dist-types/commands/UpdateResolverCommand.d.ts +4 -0
  196. package/dist-types/commands/UpdateSourceApiAssociationCommand.d.ts +110 -0
  197. package/dist-types/commands/UpdateTypeCommand.d.ts +4 -0
  198. package/dist-types/commands/index.d.ts +9 -0
  199. package/dist-types/index.d.ts +7 -1
  200. package/dist-types/models/AppSyncServiceException.d.ts +1 -0
  201. package/dist-types/models/models_0.d.ts +516 -39
  202. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  203. package/dist-types/ts3.4/AppSync.d.ts +153 -0
  204. package/dist-types/ts3.4/AppSyncClient.d.ts +57 -3
  205. package/dist-types/ts3.4/commands/AssociateApiCommand.d.ts +1 -0
  206. package/dist-types/ts3.4/commands/AssociateMergedGraphqlApiCommand.d.ts +42 -0
  207. package/dist-types/ts3.4/commands/AssociateSourceGraphqlApiCommand.d.ts +42 -0
  208. package/dist-types/ts3.4/commands/CreateApiCacheCommand.d.ts +1 -0
  209. package/dist-types/ts3.4/commands/CreateApiKeyCommand.d.ts +1 -0
  210. package/dist-types/ts3.4/commands/CreateDataSourceCommand.d.ts +1 -0
  211. package/dist-types/ts3.4/commands/CreateDomainNameCommand.d.ts +1 -0
  212. package/dist-types/ts3.4/commands/CreateFunctionCommand.d.ts +1 -0
  213. package/dist-types/ts3.4/commands/CreateGraphqlApiCommand.d.ts +1 -0
  214. package/dist-types/ts3.4/commands/CreateResolverCommand.d.ts +1 -0
  215. package/dist-types/ts3.4/commands/CreateTypeCommand.d.ts +1 -0
  216. package/dist-types/ts3.4/commands/DeleteApiCacheCommand.d.ts +1 -0
  217. package/dist-types/ts3.4/commands/DeleteApiKeyCommand.d.ts +1 -0
  218. package/dist-types/ts3.4/commands/DeleteDataSourceCommand.d.ts +1 -0
  219. package/dist-types/ts3.4/commands/DeleteDomainNameCommand.d.ts +1 -0
  220. package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +1 -0
  221. package/dist-types/ts3.4/commands/DeleteGraphqlApiCommand.d.ts +1 -0
  222. package/dist-types/ts3.4/commands/DeleteResolverCommand.d.ts +1 -0
  223. package/dist-types/ts3.4/commands/DeleteTypeCommand.d.ts +1 -0
  224. package/dist-types/ts3.4/commands/DisassociateApiCommand.d.ts +1 -0
  225. package/dist-types/ts3.4/commands/DisassociateMergedGraphqlApiCommand.d.ts +42 -0
  226. package/dist-types/ts3.4/commands/DisassociateSourceGraphqlApiCommand.d.ts +42 -0
  227. package/dist-types/ts3.4/commands/EvaluateCodeCommand.d.ts +1 -0
  228. package/dist-types/ts3.4/commands/EvaluateMappingTemplateCommand.d.ts +1 -0
  229. package/dist-types/ts3.4/commands/FlushApiCacheCommand.d.ts +1 -0
  230. package/dist-types/ts3.4/commands/GetApiAssociationCommand.d.ts +1 -0
  231. package/dist-types/ts3.4/commands/GetApiCacheCommand.d.ts +1 -0
  232. package/dist-types/ts3.4/commands/GetDataSourceCommand.d.ts +1 -0
  233. package/dist-types/ts3.4/commands/GetDomainNameCommand.d.ts +1 -0
  234. package/dist-types/ts3.4/commands/GetFunctionCommand.d.ts +1 -0
  235. package/dist-types/ts3.4/commands/GetGraphqlApiCommand.d.ts +1 -0
  236. package/dist-types/ts3.4/commands/GetIntrospectionSchemaCommand.d.ts +1 -0
  237. package/dist-types/ts3.4/commands/GetResolverCommand.d.ts +1 -0
  238. package/dist-types/ts3.4/commands/GetSchemaCreationStatusCommand.d.ts +1 -0
  239. package/dist-types/ts3.4/commands/GetSourceApiAssociationCommand.d.ts +42 -0
  240. package/dist-types/ts3.4/commands/GetTypeCommand.d.ts +1 -0
  241. package/dist-types/ts3.4/commands/ListApiKeysCommand.d.ts +1 -0
  242. package/dist-types/ts3.4/commands/ListDataSourcesCommand.d.ts +1 -0
  243. package/dist-types/ts3.4/commands/ListDomainNamesCommand.d.ts +1 -0
  244. package/dist-types/ts3.4/commands/ListFunctionsCommand.d.ts +1 -0
  245. package/dist-types/ts3.4/commands/ListGraphqlApisCommand.d.ts +1 -0
  246. package/dist-types/ts3.4/commands/ListResolversByFunctionCommand.d.ts +1 -0
  247. package/dist-types/ts3.4/commands/ListResolversCommand.d.ts +1 -0
  248. package/dist-types/ts3.4/commands/ListSourceApiAssociationsCommand.d.ts +42 -0
  249. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -0
  250. package/dist-types/ts3.4/commands/ListTypesByAssociationCommand.d.ts +42 -0
  251. package/dist-types/ts3.4/commands/ListTypesCommand.d.ts +1 -0
  252. package/dist-types/ts3.4/commands/StartSchemaCreationCommand.d.ts +1 -0
  253. package/dist-types/ts3.4/commands/StartSchemaMergeCommand.d.ts +38 -0
  254. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -0
  255. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -0
  256. package/dist-types/ts3.4/commands/UpdateApiCacheCommand.d.ts +1 -0
  257. package/dist-types/ts3.4/commands/UpdateApiKeyCommand.d.ts +1 -0
  258. package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +1 -0
  259. package/dist-types/ts3.4/commands/UpdateDomainNameCommand.d.ts +1 -0
  260. package/dist-types/ts3.4/commands/UpdateFunctionCommand.d.ts +1 -0
  261. package/dist-types/ts3.4/commands/UpdateGraphqlApiCommand.d.ts +1 -0
  262. package/dist-types/ts3.4/commands/UpdateResolverCommand.d.ts +1 -0
  263. package/dist-types/ts3.4/commands/UpdateSourceApiAssociationCommand.d.ts +42 -0
  264. package/dist-types/ts3.4/commands/UpdateTypeCommand.d.ts +1 -0
  265. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  266. package/dist-types/ts3.4/index.d.ts +1 -1
  267. package/dist-types/ts3.4/models/AppSyncServiceException.d.ts +1 -0
  268. package/dist-types/ts3.4/models/models_0.d.ts +163 -24
  269. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  270. package/package.json +28 -28
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, 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 "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { AppSyncServiceException as __BaseException } from "../models/AppSyncServiceException";
4
4
  import { AccessDeniedException, ApiKeyLimitExceededException, ApiKeyValidityOutOfBoundsException, ApiLimitExceededException, BadRequestException, ConcurrentModificationException, GraphQLSchemaException, InternalFailureException, LimitExceededException, NotFoundException, UnauthorizedException, } from "../models/models_0";
@@ -24,6 +24,54 @@ export const se_AssociateApiCommand = async (input, context) => {
24
24
  body,
25
25
  });
26
26
  };
27
+ export const se_AssociateMergedGraphqlApiCommand = async (input, context) => {
28
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
29
+ const headers = {
30
+ "content-type": "application/json",
31
+ };
32
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
33
+ "/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations";
34
+ resolvedPath = __resolvedPath(resolvedPath, input, "sourceApiIdentifier", () => input.sourceApiIdentifier, "{sourceApiIdentifier}", false);
35
+ let body;
36
+ body = JSON.stringify(take(input, {
37
+ description: [],
38
+ mergedApiIdentifier: [],
39
+ sourceApiAssociationConfig: (_) => _json(_),
40
+ }));
41
+ return new __HttpRequest({
42
+ protocol,
43
+ hostname,
44
+ port,
45
+ method: "POST",
46
+ headers,
47
+ path: resolvedPath,
48
+ body,
49
+ });
50
+ };
51
+ export const se_AssociateSourceGraphqlApiCommand = async (input, context) => {
52
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
53
+ const headers = {
54
+ "content-type": "application/json",
55
+ };
56
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
57
+ "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations";
58
+ resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
59
+ let body;
60
+ body = JSON.stringify(take(input, {
61
+ description: [],
62
+ sourceApiAssociationConfig: (_) => _json(_),
63
+ sourceApiIdentifier: [],
64
+ }));
65
+ return new __HttpRequest({
66
+ protocol,
67
+ hostname,
68
+ port,
69
+ method: "POST",
70
+ headers,
71
+ path: resolvedPath,
72
+ body,
73
+ });
74
+ };
27
75
  export const se_CreateApiCacheCommand = async (input, context) => {
28
76
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
29
77
  const headers = {
@@ -163,11 +211,14 @@ export const se_CreateGraphqlApiCommand = async (input, context) => {
163
211
  let body;
164
212
  body = JSON.stringify(take(input, {
165
213
  additionalAuthenticationProviders: (_) => _json(_),
214
+ apiType: [],
166
215
  authenticationType: [],
167
216
  lambdaAuthorizerConfig: (_) => _json(_),
168
217
  logConfig: (_) => _json(_),
218
+ mergedApiExecutionRoleArn: [],
169
219
  name: [],
170
220
  openIDConnectConfig: (_) => _json(_),
221
+ ownerContact: [],
171
222
  tags: (_) => _json(_),
172
223
  userPoolConfig: (_) => _json(_),
173
224
  visibility: [],
@@ -390,6 +441,42 @@ export const se_DisassociateApiCommand = async (input, context) => {
390
441
  body,
391
442
  });
392
443
  };
444
+ export const se_DisassociateMergedGraphqlApiCommand = async (input, context) => {
445
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
446
+ const headers = {};
447
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
448
+ "/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations/{associationId}";
449
+ resolvedPath = __resolvedPath(resolvedPath, input, "sourceApiIdentifier", () => input.sourceApiIdentifier, "{sourceApiIdentifier}", false);
450
+ resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
451
+ let body;
452
+ return new __HttpRequest({
453
+ protocol,
454
+ hostname,
455
+ port,
456
+ method: "DELETE",
457
+ headers,
458
+ path: resolvedPath,
459
+ body,
460
+ });
461
+ };
462
+ export const se_DisassociateSourceGraphqlApiCommand = async (input, context) => {
463
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
464
+ const headers = {};
465
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
466
+ "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}";
467
+ resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
468
+ resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
469
+ let body;
470
+ return new __HttpRequest({
471
+ protocol,
472
+ hostname,
473
+ port,
474
+ method: "DELETE",
475
+ headers,
476
+ path: resolvedPath,
477
+ body,
478
+ });
479
+ };
393
480
  export const se_EvaluateCodeCommand = async (input, context) => {
394
481
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
395
482
  const headers = {
@@ -605,6 +692,24 @@ export const se_GetSchemaCreationStatusCommand = async (input, context) => {
605
692
  body,
606
693
  });
607
694
  };
695
+ export const se_GetSourceApiAssociationCommand = async (input, context) => {
696
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
697
+ const headers = {};
698
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
699
+ "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}";
700
+ resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
701
+ resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
702
+ let body;
703
+ return new __HttpRequest({
704
+ protocol,
705
+ hostname,
706
+ port,
707
+ method: "GET",
708
+ headers,
709
+ path: resolvedPath,
710
+ body,
711
+ });
712
+ };
608
713
  export const se_GetTypeCommand = async (input, context) => {
609
714
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
610
715
  const headers = {};
@@ -716,6 +821,8 @@ export const se_ListGraphqlApisCommand = async (input, context) => {
716
821
  const query = map({
717
822
  nextToken: [, input.nextToken],
718
823
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
824
+ apiType: [, input.apiType],
825
+ owner: [, input.owner],
719
826
  });
720
827
  let body;
721
828
  return new __HttpRequest({
@@ -775,6 +882,27 @@ export const se_ListResolversByFunctionCommand = async (input, context) => {
775
882
  body,
776
883
  });
777
884
  };
885
+ export const se_ListSourceApiAssociationsCommand = async (input, context) => {
886
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
887
+ const headers = {};
888
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/sourceApiAssociations";
889
+ resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
890
+ const query = map({
891
+ nextToken: [, input.nextToken],
892
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
893
+ });
894
+ let body;
895
+ return new __HttpRequest({
896
+ protocol,
897
+ hostname,
898
+ port,
899
+ method: "GET",
900
+ headers,
901
+ path: resolvedPath,
902
+ query,
903
+ body,
904
+ });
905
+ };
778
906
  export const se_ListTagsForResourceCommand = async (input, context) => {
779
907
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
780
908
  const headers = {};
@@ -813,6 +941,30 @@ export const se_ListTypesCommand = async (input, context) => {
813
941
  body,
814
942
  });
815
943
  };
944
+ export const se_ListTypesByAssociationCommand = async (input, context) => {
945
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
946
+ const headers = {};
947
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
948
+ "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/types";
949
+ resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
950
+ resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
951
+ const query = map({
952
+ format: [, __expectNonNull(input.format, `format`)],
953
+ nextToken: [, input.nextToken],
954
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
955
+ });
956
+ let body;
957
+ return new __HttpRequest({
958
+ protocol,
959
+ hostname,
960
+ port,
961
+ method: "GET",
962
+ headers,
963
+ path: resolvedPath,
964
+ query,
965
+ body,
966
+ });
967
+ };
816
968
  export const se_StartSchemaCreationCommand = async (input, context) => {
817
969
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
818
970
  const headers = {
@@ -834,6 +986,24 @@ export const se_StartSchemaCreationCommand = async (input, context) => {
834
986
  body,
835
987
  });
836
988
  };
989
+ export const se_StartSchemaMergeCommand = async (input, context) => {
990
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
991
+ const headers = {};
992
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
993
+ "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/merge";
994
+ resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
995
+ resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
996
+ let body;
997
+ return new __HttpRequest({
998
+ protocol,
999
+ hostname,
1000
+ port,
1001
+ method: "POST",
1002
+ headers,
1003
+ path: resolvedPath,
1004
+ body,
1005
+ });
1006
+ };
837
1007
  export const se_TagResourceCommand = async (input, context) => {
838
1008
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
839
1009
  const headers = {
@@ -1020,8 +1190,10 @@ export const se_UpdateGraphqlApiCommand = async (input, context) => {
1020
1190
  authenticationType: [],
1021
1191
  lambdaAuthorizerConfig: (_) => _json(_),
1022
1192
  logConfig: (_) => _json(_),
1193
+ mergedApiExecutionRoleArn: [],
1023
1194
  name: [],
1024
1195
  openIDConnectConfig: (_) => _json(_),
1196
+ ownerContact: [],
1025
1197
  userPoolConfig: (_) => _json(_),
1026
1198
  xrayEnabled: [],
1027
1199
  }));
@@ -1068,6 +1240,30 @@ export const se_UpdateResolverCommand = async (input, context) => {
1068
1240
  body,
1069
1241
  });
1070
1242
  };
1243
+ export const se_UpdateSourceApiAssociationCommand = async (input, context) => {
1244
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1245
+ const headers = {
1246
+ "content-type": "application/json",
1247
+ };
1248
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1249
+ "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}";
1250
+ resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
1251
+ resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
1252
+ let body;
1253
+ body = JSON.stringify(take(input, {
1254
+ description: [],
1255
+ sourceApiAssociationConfig: (_) => _json(_),
1256
+ }));
1257
+ return new __HttpRequest({
1258
+ protocol,
1259
+ hostname,
1260
+ port,
1261
+ method: "POST",
1262
+ headers,
1263
+ path: resolvedPath,
1264
+ body,
1265
+ });
1266
+ };
1071
1267
  export const se_UpdateTypeCommand = async (input, context) => {
1072
1268
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1073
1269
  const headers = {
@@ -1133,6 +1329,102 @@ const de_AssociateApiCommandError = async (output, context) => {
1133
1329
  });
1134
1330
  }
1135
1331
  };
1332
+ export const de_AssociateMergedGraphqlApiCommand = async (output, context) => {
1333
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1334
+ return de_AssociateMergedGraphqlApiCommandError(output, context);
1335
+ }
1336
+ const contents = map({
1337
+ $metadata: deserializeMetadata(output),
1338
+ });
1339
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1340
+ const doc = take(data, {
1341
+ sourceApiAssociation: (_) => de_SourceApiAssociation(_, context),
1342
+ });
1343
+ Object.assign(contents, doc);
1344
+ return contents;
1345
+ };
1346
+ const de_AssociateMergedGraphqlApiCommandError = async (output, context) => {
1347
+ const parsedOutput = {
1348
+ ...output,
1349
+ body: await parseErrorBody(output.body, context),
1350
+ };
1351
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1352
+ switch (errorCode) {
1353
+ case "BadRequestException":
1354
+ case "com.amazonaws.appsync#BadRequestException":
1355
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1356
+ case "ConcurrentModificationException":
1357
+ case "com.amazonaws.appsync#ConcurrentModificationException":
1358
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1359
+ case "InternalFailureException":
1360
+ case "com.amazonaws.appsync#InternalFailureException":
1361
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1362
+ case "LimitExceededException":
1363
+ case "com.amazonaws.appsync#LimitExceededException":
1364
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1365
+ case "NotFoundException":
1366
+ case "com.amazonaws.appsync#NotFoundException":
1367
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1368
+ case "UnauthorizedException":
1369
+ case "com.amazonaws.appsync#UnauthorizedException":
1370
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1371
+ default:
1372
+ const parsedBody = parsedOutput.body;
1373
+ return throwDefaultError({
1374
+ output,
1375
+ parsedBody,
1376
+ errorCode,
1377
+ });
1378
+ }
1379
+ };
1380
+ export const de_AssociateSourceGraphqlApiCommand = async (output, context) => {
1381
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1382
+ return de_AssociateSourceGraphqlApiCommandError(output, context);
1383
+ }
1384
+ const contents = map({
1385
+ $metadata: deserializeMetadata(output),
1386
+ });
1387
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1388
+ const doc = take(data, {
1389
+ sourceApiAssociation: (_) => de_SourceApiAssociation(_, context),
1390
+ });
1391
+ Object.assign(contents, doc);
1392
+ return contents;
1393
+ };
1394
+ const de_AssociateSourceGraphqlApiCommandError = async (output, context) => {
1395
+ const parsedOutput = {
1396
+ ...output,
1397
+ body: await parseErrorBody(output.body, context),
1398
+ };
1399
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1400
+ switch (errorCode) {
1401
+ case "BadRequestException":
1402
+ case "com.amazonaws.appsync#BadRequestException":
1403
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1404
+ case "ConcurrentModificationException":
1405
+ case "com.amazonaws.appsync#ConcurrentModificationException":
1406
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1407
+ case "InternalFailureException":
1408
+ case "com.amazonaws.appsync#InternalFailureException":
1409
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1410
+ case "LimitExceededException":
1411
+ case "com.amazonaws.appsync#LimitExceededException":
1412
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1413
+ case "NotFoundException":
1414
+ case "com.amazonaws.appsync#NotFoundException":
1415
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1416
+ case "UnauthorizedException":
1417
+ case "com.amazonaws.appsync#UnauthorizedException":
1418
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1419
+ default:
1420
+ const parsedBody = parsedOutput.body;
1421
+ return throwDefaultError({
1422
+ output,
1423
+ parsedBody,
1424
+ errorCode,
1425
+ });
1426
+ }
1427
+ };
1136
1428
  export const de_CreateApiCacheCommand = async (output, context) => {
1137
1429
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1138
1430
  return de_CreateApiCacheCommandError(output, context);
@@ -1859,42 +2151,132 @@ const de_DisassociateApiCommandError = async (output, context) => {
1859
2151
  });
1860
2152
  }
1861
2153
  };
1862
- export const de_EvaluateCodeCommand = async (output, context) => {
2154
+ export const de_DisassociateMergedGraphqlApiCommand = async (output, context) => {
1863
2155
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1864
- return de_EvaluateCodeCommandError(output, context);
2156
+ return de_DisassociateMergedGraphqlApiCommandError(output, context);
1865
2157
  }
1866
2158
  const contents = map({
1867
2159
  $metadata: deserializeMetadata(output),
1868
2160
  });
1869
2161
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1870
2162
  const doc = take(data, {
1871
- error: _json,
1872
- evaluationResult: __expectString,
1873
- logs: _json,
2163
+ sourceApiAssociationStatus: __expectString,
1874
2164
  });
1875
2165
  Object.assign(contents, doc);
1876
2166
  return contents;
1877
2167
  };
1878
- const de_EvaluateCodeCommandError = async (output, context) => {
2168
+ const de_DisassociateMergedGraphqlApiCommandError = async (output, context) => {
1879
2169
  const parsedOutput = {
1880
2170
  ...output,
1881
2171
  body: await parseErrorBody(output.body, context),
1882
2172
  };
1883
2173
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1884
2174
  switch (errorCode) {
1885
- case "AccessDeniedException":
1886
- case "com.amazonaws.appsync#AccessDeniedException":
1887
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1888
2175
  case "BadRequestException":
1889
2176
  case "com.amazonaws.appsync#BadRequestException":
1890
2177
  throw await de_BadRequestExceptionRes(parsedOutput, context);
2178
+ case "ConcurrentModificationException":
2179
+ case "com.amazonaws.appsync#ConcurrentModificationException":
2180
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1891
2181
  case "InternalFailureException":
1892
2182
  case "com.amazonaws.appsync#InternalFailureException":
1893
2183
  throw await de_InternalFailureExceptionRes(parsedOutput, context);
1894
- default:
1895
- const parsedBody = parsedOutput.body;
1896
- return throwDefaultError({
1897
- output,
2184
+ case "NotFoundException":
2185
+ case "com.amazonaws.appsync#NotFoundException":
2186
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2187
+ case "UnauthorizedException":
2188
+ case "com.amazonaws.appsync#UnauthorizedException":
2189
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2190
+ default:
2191
+ const parsedBody = parsedOutput.body;
2192
+ return throwDefaultError({
2193
+ output,
2194
+ parsedBody,
2195
+ errorCode,
2196
+ });
2197
+ }
2198
+ };
2199
+ export const de_DisassociateSourceGraphqlApiCommand = async (output, context) => {
2200
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2201
+ return de_DisassociateSourceGraphqlApiCommandError(output, context);
2202
+ }
2203
+ const contents = map({
2204
+ $metadata: deserializeMetadata(output),
2205
+ });
2206
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2207
+ const doc = take(data, {
2208
+ sourceApiAssociationStatus: __expectString,
2209
+ });
2210
+ Object.assign(contents, doc);
2211
+ return contents;
2212
+ };
2213
+ const de_DisassociateSourceGraphqlApiCommandError = async (output, context) => {
2214
+ const parsedOutput = {
2215
+ ...output,
2216
+ body: await parseErrorBody(output.body, context),
2217
+ };
2218
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2219
+ switch (errorCode) {
2220
+ case "BadRequestException":
2221
+ case "com.amazonaws.appsync#BadRequestException":
2222
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2223
+ case "ConcurrentModificationException":
2224
+ case "com.amazonaws.appsync#ConcurrentModificationException":
2225
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
2226
+ case "InternalFailureException":
2227
+ case "com.amazonaws.appsync#InternalFailureException":
2228
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
2229
+ case "NotFoundException":
2230
+ case "com.amazonaws.appsync#NotFoundException":
2231
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2232
+ case "UnauthorizedException":
2233
+ case "com.amazonaws.appsync#UnauthorizedException":
2234
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2235
+ default:
2236
+ const parsedBody = parsedOutput.body;
2237
+ return throwDefaultError({
2238
+ output,
2239
+ parsedBody,
2240
+ errorCode,
2241
+ });
2242
+ }
2243
+ };
2244
+ export const de_EvaluateCodeCommand = async (output, context) => {
2245
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2246
+ return de_EvaluateCodeCommandError(output, context);
2247
+ }
2248
+ const contents = map({
2249
+ $metadata: deserializeMetadata(output),
2250
+ });
2251
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2252
+ const doc = take(data, {
2253
+ error: _json,
2254
+ evaluationResult: __expectString,
2255
+ logs: _json,
2256
+ });
2257
+ Object.assign(contents, doc);
2258
+ return contents;
2259
+ };
2260
+ const de_EvaluateCodeCommandError = async (output, context) => {
2261
+ const parsedOutput = {
2262
+ ...output,
2263
+ body: await parseErrorBody(output.body, context),
2264
+ };
2265
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2266
+ switch (errorCode) {
2267
+ case "AccessDeniedException":
2268
+ case "com.amazonaws.appsync#AccessDeniedException":
2269
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2270
+ case "BadRequestException":
2271
+ case "com.amazonaws.appsync#BadRequestException":
2272
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2273
+ case "InternalFailureException":
2274
+ case "com.amazonaws.appsync#InternalFailureException":
2275
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
2276
+ default:
2277
+ const parsedBody = parsedOutput.body;
2278
+ return throwDefaultError({
2279
+ output,
1898
2280
  parsedBody,
1899
2281
  errorCode,
1900
2282
  });
@@ -2361,6 +2743,48 @@ const de_GetSchemaCreationStatusCommandError = async (output, context) => {
2361
2743
  });
2362
2744
  }
2363
2745
  };
2746
+ export const de_GetSourceApiAssociationCommand = async (output, context) => {
2747
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2748
+ return de_GetSourceApiAssociationCommandError(output, context);
2749
+ }
2750
+ const contents = map({
2751
+ $metadata: deserializeMetadata(output),
2752
+ });
2753
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2754
+ const doc = take(data, {
2755
+ sourceApiAssociation: (_) => de_SourceApiAssociation(_, context),
2756
+ });
2757
+ Object.assign(contents, doc);
2758
+ return contents;
2759
+ };
2760
+ const de_GetSourceApiAssociationCommandError = async (output, context) => {
2761
+ const parsedOutput = {
2762
+ ...output,
2763
+ body: await parseErrorBody(output.body, context),
2764
+ };
2765
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2766
+ switch (errorCode) {
2767
+ case "BadRequestException":
2768
+ case "com.amazonaws.appsync#BadRequestException":
2769
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2770
+ case "InternalFailureException":
2771
+ case "com.amazonaws.appsync#InternalFailureException":
2772
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
2773
+ case "NotFoundException":
2774
+ case "com.amazonaws.appsync#NotFoundException":
2775
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2776
+ case "UnauthorizedException":
2777
+ case "com.amazonaws.appsync#UnauthorizedException":
2778
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2779
+ default:
2780
+ const parsedBody = parsedOutput.body;
2781
+ return throwDefaultError({
2782
+ output,
2783
+ parsedBody,
2784
+ errorCode,
2785
+ });
2786
+ }
2787
+ };
2364
2788
  export const de_GetTypeCommand = async (output, context) => {
2365
2789
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2366
2790
  return de_GetTypeCommandError(output, context);
@@ -2701,6 +3125,49 @@ const de_ListResolversByFunctionCommandError = async (output, context) => {
2701
3125
  });
2702
3126
  }
2703
3127
  };
3128
+ export const de_ListSourceApiAssociationsCommand = async (output, context) => {
3129
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3130
+ return de_ListSourceApiAssociationsCommandError(output, context);
3131
+ }
3132
+ const contents = map({
3133
+ $metadata: deserializeMetadata(output),
3134
+ });
3135
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3136
+ const doc = take(data, {
3137
+ nextToken: __expectString,
3138
+ sourceApiAssociationSummaries: _json,
3139
+ });
3140
+ Object.assign(contents, doc);
3141
+ return contents;
3142
+ };
3143
+ const de_ListSourceApiAssociationsCommandError = async (output, context) => {
3144
+ const parsedOutput = {
3145
+ ...output,
3146
+ body: await parseErrorBody(output.body, context),
3147
+ };
3148
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3149
+ switch (errorCode) {
3150
+ case "BadRequestException":
3151
+ case "com.amazonaws.appsync#BadRequestException":
3152
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3153
+ case "InternalFailureException":
3154
+ case "com.amazonaws.appsync#InternalFailureException":
3155
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
3156
+ case "NotFoundException":
3157
+ case "com.amazonaws.appsync#NotFoundException":
3158
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
3159
+ case "UnauthorizedException":
3160
+ case "com.amazonaws.appsync#UnauthorizedException":
3161
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3162
+ default:
3163
+ const parsedBody = parsedOutput.body;
3164
+ return throwDefaultError({
3165
+ output,
3166
+ parsedBody,
3167
+ errorCode,
3168
+ });
3169
+ }
3170
+ };
2704
3171
  export const de_ListTagsForResourceCommand = async (output, context) => {
2705
3172
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2706
3173
  return de_ListTagsForResourceCommandError(output, context);
@@ -2795,6 +3262,52 @@ const de_ListTypesCommandError = async (output, context) => {
2795
3262
  });
2796
3263
  }
2797
3264
  };
3265
+ export const de_ListTypesByAssociationCommand = async (output, context) => {
3266
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3267
+ return de_ListTypesByAssociationCommandError(output, context);
3268
+ }
3269
+ const contents = map({
3270
+ $metadata: deserializeMetadata(output),
3271
+ });
3272
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3273
+ const doc = take(data, {
3274
+ nextToken: __expectString,
3275
+ types: _json,
3276
+ });
3277
+ Object.assign(contents, doc);
3278
+ return contents;
3279
+ };
3280
+ const de_ListTypesByAssociationCommandError = async (output, context) => {
3281
+ const parsedOutput = {
3282
+ ...output,
3283
+ body: await parseErrorBody(output.body, context),
3284
+ };
3285
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3286
+ switch (errorCode) {
3287
+ case "BadRequestException":
3288
+ case "com.amazonaws.appsync#BadRequestException":
3289
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3290
+ case "ConcurrentModificationException":
3291
+ case "com.amazonaws.appsync#ConcurrentModificationException":
3292
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3293
+ case "InternalFailureException":
3294
+ case "com.amazonaws.appsync#InternalFailureException":
3295
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
3296
+ case "NotFoundException":
3297
+ case "com.amazonaws.appsync#NotFoundException":
3298
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
3299
+ case "UnauthorizedException":
3300
+ case "com.amazonaws.appsync#UnauthorizedException":
3301
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3302
+ default:
3303
+ const parsedBody = parsedOutput.body;
3304
+ return throwDefaultError({
3305
+ output,
3306
+ parsedBody,
3307
+ errorCode,
3308
+ });
3309
+ }
3310
+ };
2798
3311
  export const de_StartSchemaCreationCommand = async (output, context) => {
2799
3312
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2800
3313
  return de_StartSchemaCreationCommandError(output, context);
@@ -2840,6 +3353,51 @@ const de_StartSchemaCreationCommandError = async (output, context) => {
2840
3353
  });
2841
3354
  }
2842
3355
  };
3356
+ export const de_StartSchemaMergeCommand = async (output, context) => {
3357
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3358
+ return de_StartSchemaMergeCommandError(output, context);
3359
+ }
3360
+ const contents = map({
3361
+ $metadata: deserializeMetadata(output),
3362
+ });
3363
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3364
+ const doc = take(data, {
3365
+ sourceApiAssociationStatus: __expectString,
3366
+ });
3367
+ Object.assign(contents, doc);
3368
+ return contents;
3369
+ };
3370
+ const de_StartSchemaMergeCommandError = async (output, context) => {
3371
+ const parsedOutput = {
3372
+ ...output,
3373
+ body: await parseErrorBody(output.body, context),
3374
+ };
3375
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3376
+ switch (errorCode) {
3377
+ case "BadRequestException":
3378
+ case "com.amazonaws.appsync#BadRequestException":
3379
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3380
+ case "ConcurrentModificationException":
3381
+ case "com.amazonaws.appsync#ConcurrentModificationException":
3382
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3383
+ case "InternalFailureException":
3384
+ case "com.amazonaws.appsync#InternalFailureException":
3385
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
3386
+ case "NotFoundException":
3387
+ case "com.amazonaws.appsync#NotFoundException":
3388
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
3389
+ case "UnauthorizedException":
3390
+ case "com.amazonaws.appsync#UnauthorizedException":
3391
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3392
+ default:
3393
+ const parsedBody = parsedOutput.body;
3394
+ return throwDefaultError({
3395
+ output,
3396
+ parsedBody,
3397
+ errorCode,
3398
+ });
3399
+ }
3400
+ };
2843
3401
  export const de_TagResourceCommand = async (output, context) => {
2844
3402
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2845
3403
  return de_TagResourceCommandError(output, context);
@@ -3246,6 +3804,51 @@ const de_UpdateResolverCommandError = async (output, context) => {
3246
3804
  });
3247
3805
  }
3248
3806
  };
3807
+ export const de_UpdateSourceApiAssociationCommand = async (output, context) => {
3808
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3809
+ return de_UpdateSourceApiAssociationCommandError(output, context);
3810
+ }
3811
+ const contents = map({
3812
+ $metadata: deserializeMetadata(output),
3813
+ });
3814
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3815
+ const doc = take(data, {
3816
+ sourceApiAssociation: (_) => de_SourceApiAssociation(_, context),
3817
+ });
3818
+ Object.assign(contents, doc);
3819
+ return contents;
3820
+ };
3821
+ const de_UpdateSourceApiAssociationCommandError = async (output, context) => {
3822
+ const parsedOutput = {
3823
+ ...output,
3824
+ body: await parseErrorBody(output.body, context),
3825
+ };
3826
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3827
+ switch (errorCode) {
3828
+ case "BadRequestException":
3829
+ case "com.amazonaws.appsync#BadRequestException":
3830
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3831
+ case "ConcurrentModificationException":
3832
+ case "com.amazonaws.appsync#ConcurrentModificationException":
3833
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3834
+ case "InternalFailureException":
3835
+ case "com.amazonaws.appsync#InternalFailureException":
3836
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
3837
+ case "NotFoundException":
3838
+ case "com.amazonaws.appsync#NotFoundException":
3839
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
3840
+ case "UnauthorizedException":
3841
+ case "com.amazonaws.appsync#UnauthorizedException":
3842
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3843
+ default:
3844
+ const parsedBody = parsedOutput.body;
3845
+ return throwDefaultError({
3846
+ output,
3847
+ parsedBody,
3848
+ errorCode,
3849
+ });
3850
+ }
3851
+ };
3249
3852
  export const de_UpdateTypeCommand = async (output, context) => {
3250
3853
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3251
3854
  return de_UpdateTypeCommandError(output, context);
@@ -3437,6 +4040,21 @@ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
3437
4040
  });
3438
4041
  return __decorateServiceException(exception, parsedOutput.body);
3439
4042
  };
4043
+ const de_SourceApiAssociation = (output, context) => {
4044
+ return take(output, {
4045
+ associationArn: __expectString,
4046
+ associationId: __expectString,
4047
+ description: __expectString,
4048
+ lastSuccessfulMergeDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4049
+ mergedApiArn: __expectString,
4050
+ mergedApiId: __expectString,
4051
+ sourceApiArn: __expectString,
4052
+ sourceApiAssociationConfig: _json,
4053
+ sourceApiAssociationStatus: __expectString,
4054
+ sourceApiAssociationStatusDetail: __expectString,
4055
+ sourceApiId: __expectString,
4056
+ });
4057
+ };
3440
4058
  const deserializeMetadata = (output) => ({
3441
4059
  httpStatusCode: output.statusCode,
3442
4060
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],