@aws-sdk/client-appsync 3.35.0 → 3.38.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 (320) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/AppSync.js +0 -5
  3. package/dist-cjs/AppSyncClient.js +0 -10
  4. package/dist-cjs/commands/CreateApiCacheCommand.js +0 -25
  5. package/dist-cjs/commands/CreateApiKeyCommand.js +0 -26
  6. package/dist-cjs/commands/CreateDataSourceCommand.js +0 -25
  7. package/dist-cjs/commands/CreateFunctionCommand.js +0 -27
  8. package/dist-cjs/commands/CreateGraphqlApiCommand.js +0 -25
  9. package/dist-cjs/commands/CreateResolverCommand.js +0 -27
  10. package/dist-cjs/commands/CreateTypeCommand.js +0 -25
  11. package/dist-cjs/commands/DeleteApiCacheCommand.js +0 -25
  12. package/dist-cjs/commands/DeleteApiKeyCommand.js +0 -25
  13. package/dist-cjs/commands/DeleteDataSourceCommand.js +0 -25
  14. package/dist-cjs/commands/DeleteFunctionCommand.js +0 -25
  15. package/dist-cjs/commands/DeleteGraphqlApiCommand.js +0 -25
  16. package/dist-cjs/commands/DeleteResolverCommand.js +0 -25
  17. package/dist-cjs/commands/DeleteTypeCommand.js +0 -25
  18. package/dist-cjs/commands/FlushApiCacheCommand.js +0 -25
  19. package/dist-cjs/commands/GetApiCacheCommand.js +0 -25
  20. package/dist-cjs/commands/GetDataSourceCommand.js +0 -25
  21. package/dist-cjs/commands/GetFunctionCommand.js +0 -25
  22. package/dist-cjs/commands/GetGraphqlApiCommand.js +0 -25
  23. package/dist-cjs/commands/GetIntrospectionSchemaCommand.js +0 -25
  24. package/dist-cjs/commands/GetResolverCommand.js +0 -25
  25. package/dist-cjs/commands/GetSchemaCreationStatusCommand.js +0 -25
  26. package/dist-cjs/commands/GetTypeCommand.js +0 -25
  27. package/dist-cjs/commands/ListApiKeysCommand.js +0 -31
  28. package/dist-cjs/commands/ListDataSourcesCommand.js +0 -25
  29. package/dist-cjs/commands/ListFunctionsCommand.js +0 -25
  30. package/dist-cjs/commands/ListGraphqlApisCommand.js +0 -25
  31. package/dist-cjs/commands/ListResolversByFunctionCommand.js +0 -25
  32. package/dist-cjs/commands/ListResolversCommand.js +0 -25
  33. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
  34. package/dist-cjs/commands/ListTypesCommand.js +0 -25
  35. package/dist-cjs/commands/StartSchemaCreationCommand.js +0 -27
  36. package/dist-cjs/commands/TagResourceCommand.js +0 -25
  37. package/dist-cjs/commands/UntagResourceCommand.js +0 -25
  38. package/dist-cjs/commands/UpdateApiCacheCommand.js +0 -25
  39. package/dist-cjs/commands/UpdateApiKeyCommand.js +0 -25
  40. package/dist-cjs/commands/UpdateDataSourceCommand.js +0 -25
  41. package/dist-cjs/commands/UpdateFunctionCommand.js +0 -25
  42. package/dist-cjs/commands/UpdateGraphqlApiCommand.js +0 -25
  43. package/dist-cjs/commands/UpdateResolverCommand.js +0 -25
  44. package/dist-cjs/commands/UpdateTypeCommand.js +0 -25
  45. package/dist-cjs/commands/index.js +44 -0
  46. package/dist-cjs/endpoints.js +1 -2
  47. package/dist-cjs/index.js +3 -44
  48. package/dist-cjs/models/index.js +0 -1
  49. package/dist-cjs/models/models_0.js +0 -361
  50. package/dist-cjs/protocols/Aws_restJson1.js +0 -6
  51. package/dist-cjs/runtimeConfig.browser.js +1 -6
  52. package/dist-cjs/runtimeConfig.js +2 -7
  53. package/dist-cjs/runtimeConfig.native.js +0 -4
  54. package/dist-cjs/runtimeConfig.shared.js +0 -4
  55. package/dist-es/AppSync.js +0 -1
  56. package/dist-es/AppSyncClient.js +0 -1
  57. package/dist-es/commands/CreateApiCacheCommand.js +0 -1
  58. package/dist-es/commands/CreateApiKeyCommand.js +0 -1
  59. package/dist-es/commands/CreateDataSourceCommand.js +0 -1
  60. package/dist-es/commands/CreateFunctionCommand.js +0 -1
  61. package/dist-es/commands/CreateGraphqlApiCommand.js +0 -1
  62. package/dist-es/commands/CreateResolverCommand.js +0 -1
  63. package/dist-es/commands/CreateTypeCommand.js +0 -1
  64. package/dist-es/commands/DeleteApiCacheCommand.js +0 -1
  65. package/dist-es/commands/DeleteApiKeyCommand.js +0 -1
  66. package/dist-es/commands/DeleteDataSourceCommand.js +0 -1
  67. package/dist-es/commands/DeleteFunctionCommand.js +0 -1
  68. package/dist-es/commands/DeleteGraphqlApiCommand.js +0 -1
  69. package/dist-es/commands/DeleteResolverCommand.js +0 -1
  70. package/dist-es/commands/DeleteTypeCommand.js +0 -1
  71. package/dist-es/commands/FlushApiCacheCommand.js +0 -1
  72. package/dist-es/commands/GetApiCacheCommand.js +0 -1
  73. package/dist-es/commands/GetDataSourceCommand.js +0 -1
  74. package/dist-es/commands/GetFunctionCommand.js +0 -1
  75. package/dist-es/commands/GetGraphqlApiCommand.js +0 -1
  76. package/dist-es/commands/GetIntrospectionSchemaCommand.js +0 -1
  77. package/dist-es/commands/GetResolverCommand.js +0 -1
  78. package/dist-es/commands/GetSchemaCreationStatusCommand.js +0 -1
  79. package/dist-es/commands/GetTypeCommand.js +0 -1
  80. package/dist-es/commands/ListApiKeysCommand.js +0 -1
  81. package/dist-es/commands/ListDataSourcesCommand.js +0 -1
  82. package/dist-es/commands/ListFunctionsCommand.js +0 -1
  83. package/dist-es/commands/ListGraphqlApisCommand.js +0 -1
  84. package/dist-es/commands/ListResolversByFunctionCommand.js +0 -1
  85. package/dist-es/commands/ListResolversCommand.js +0 -1
  86. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  87. package/dist-es/commands/ListTypesCommand.js +0 -1
  88. package/dist-es/commands/StartSchemaCreationCommand.js +0 -1
  89. package/dist-es/commands/TagResourceCommand.js +0 -1
  90. package/dist-es/commands/UntagResourceCommand.js +0 -1
  91. package/dist-es/commands/UpdateApiCacheCommand.js +0 -1
  92. package/dist-es/commands/UpdateApiKeyCommand.js +0 -1
  93. package/dist-es/commands/UpdateDataSourceCommand.js +0 -1
  94. package/dist-es/commands/UpdateFunctionCommand.js +0 -1
  95. package/dist-es/commands/UpdateGraphqlApiCommand.js +0 -1
  96. package/dist-es/commands/UpdateResolverCommand.js +0 -1
  97. package/dist-es/commands/UpdateTypeCommand.js +0 -1
  98. package/dist-es/commands/index.js +41 -0
  99. package/dist-es/endpoints.js +1 -2
  100. package/dist-es/index.js +3 -44
  101. package/dist-es/models/index.js +0 -1
  102. package/dist-es/models/models_0.js +0 -1
  103. package/dist-es/protocols/Aws_restJson1.js +0 -1
  104. package/dist-es/runtimeConfig.browser.js +1 -2
  105. package/dist-es/runtimeConfig.js +2 -3
  106. package/dist-es/runtimeConfig.native.js +0 -1
  107. package/dist-es/runtimeConfig.shared.js +0 -1
  108. package/dist-types/commands/index.d.ts +41 -0
  109. package/dist-types/index.d.ts +3 -43
  110. package/dist-types/ts3.4/AppSync.d.ts +42 -140
  111. package/dist-types/ts3.4/AppSyncClient.d.ts +24 -90
  112. package/dist-types/ts3.4/commands/CreateApiCacheCommand.d.ts +2 -20
  113. package/dist-types/ts3.4/commands/CreateApiKeyCommand.d.ts +2 -21
  114. package/dist-types/ts3.4/commands/CreateDataSourceCommand.d.ts +2 -20
  115. package/dist-types/ts3.4/commands/CreateFunctionCommand.d.ts +2 -22
  116. package/dist-types/ts3.4/commands/CreateGraphqlApiCommand.d.ts +2 -20
  117. package/dist-types/ts3.4/commands/CreateResolverCommand.d.ts +2 -22
  118. package/dist-types/ts3.4/commands/CreateTypeCommand.d.ts +2 -20
  119. package/dist-types/ts3.4/commands/DeleteApiCacheCommand.d.ts +2 -20
  120. package/dist-types/ts3.4/commands/DeleteApiKeyCommand.d.ts +2 -20
  121. package/dist-types/ts3.4/commands/DeleteDataSourceCommand.d.ts +2 -20
  122. package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +2 -20
  123. package/dist-types/ts3.4/commands/DeleteGraphqlApiCommand.d.ts +2 -20
  124. package/dist-types/ts3.4/commands/DeleteResolverCommand.d.ts +2 -20
  125. package/dist-types/ts3.4/commands/DeleteTypeCommand.d.ts +2 -20
  126. package/dist-types/ts3.4/commands/FlushApiCacheCommand.d.ts +2 -20
  127. package/dist-types/ts3.4/commands/GetApiCacheCommand.d.ts +2 -20
  128. package/dist-types/ts3.4/commands/GetDataSourceCommand.d.ts +2 -20
  129. package/dist-types/ts3.4/commands/GetFunctionCommand.d.ts +2 -20
  130. package/dist-types/ts3.4/commands/GetGraphqlApiCommand.d.ts +2 -20
  131. package/dist-types/ts3.4/commands/GetIntrospectionSchemaCommand.d.ts +2 -20
  132. package/dist-types/ts3.4/commands/GetResolverCommand.d.ts +2 -20
  133. package/dist-types/ts3.4/commands/GetSchemaCreationStatusCommand.d.ts +2 -20
  134. package/dist-types/ts3.4/commands/GetTypeCommand.d.ts +2 -20
  135. package/dist-types/ts3.4/commands/ListApiKeysCommand.d.ts +2 -26
  136. package/dist-types/ts3.4/commands/ListDataSourcesCommand.d.ts +2 -20
  137. package/dist-types/ts3.4/commands/ListFunctionsCommand.d.ts +2 -20
  138. package/dist-types/ts3.4/commands/ListGraphqlApisCommand.d.ts +2 -20
  139. package/dist-types/ts3.4/commands/ListResolversByFunctionCommand.d.ts +2 -20
  140. package/dist-types/ts3.4/commands/ListResolversCommand.d.ts +2 -20
  141. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  142. package/dist-types/ts3.4/commands/ListTypesCommand.d.ts +2 -20
  143. package/dist-types/ts3.4/commands/StartSchemaCreationCommand.d.ts +2 -22
  144. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
  145. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  146. package/dist-types/ts3.4/commands/UpdateApiCacheCommand.d.ts +2 -20
  147. package/dist-types/ts3.4/commands/UpdateApiKeyCommand.d.ts +2 -20
  148. package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +2 -20
  149. package/dist-types/ts3.4/commands/UpdateFunctionCommand.d.ts +2 -20
  150. package/dist-types/ts3.4/commands/UpdateGraphqlApiCommand.d.ts +2 -20
  151. package/dist-types/ts3.4/commands/UpdateResolverCommand.d.ts +2 -20
  152. package/dist-types/ts3.4/commands/UpdateTypeCommand.d.ts +2 -20
  153. package/dist-types/ts3.4/commands/index.d.ts +41 -0
  154. package/dist-types/ts3.4/index.d.ts +3 -43
  155. package/dist-types/ts3.4/models/models_0.d.ts +480 -2066
  156. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  157. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  158. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  159. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  160. package/package.json +33 -30
  161. package/dist-cjs/AppSync.js.map +0 -1
  162. package/dist-cjs/AppSyncClient.js.map +0 -1
  163. package/dist-cjs/commands/CreateApiCacheCommand.js.map +0 -1
  164. package/dist-cjs/commands/CreateApiKeyCommand.js.map +0 -1
  165. package/dist-cjs/commands/CreateDataSourceCommand.js.map +0 -1
  166. package/dist-cjs/commands/CreateFunctionCommand.js.map +0 -1
  167. package/dist-cjs/commands/CreateGraphqlApiCommand.js.map +0 -1
  168. package/dist-cjs/commands/CreateResolverCommand.js.map +0 -1
  169. package/dist-cjs/commands/CreateTypeCommand.js.map +0 -1
  170. package/dist-cjs/commands/DeleteApiCacheCommand.js.map +0 -1
  171. package/dist-cjs/commands/DeleteApiKeyCommand.js.map +0 -1
  172. package/dist-cjs/commands/DeleteDataSourceCommand.js.map +0 -1
  173. package/dist-cjs/commands/DeleteFunctionCommand.js.map +0 -1
  174. package/dist-cjs/commands/DeleteGraphqlApiCommand.js.map +0 -1
  175. package/dist-cjs/commands/DeleteResolverCommand.js.map +0 -1
  176. package/dist-cjs/commands/DeleteTypeCommand.js.map +0 -1
  177. package/dist-cjs/commands/FlushApiCacheCommand.js.map +0 -1
  178. package/dist-cjs/commands/GetApiCacheCommand.js.map +0 -1
  179. package/dist-cjs/commands/GetDataSourceCommand.js.map +0 -1
  180. package/dist-cjs/commands/GetFunctionCommand.js.map +0 -1
  181. package/dist-cjs/commands/GetGraphqlApiCommand.js.map +0 -1
  182. package/dist-cjs/commands/GetIntrospectionSchemaCommand.js.map +0 -1
  183. package/dist-cjs/commands/GetResolverCommand.js.map +0 -1
  184. package/dist-cjs/commands/GetSchemaCreationStatusCommand.js.map +0 -1
  185. package/dist-cjs/commands/GetTypeCommand.js.map +0 -1
  186. package/dist-cjs/commands/ListApiKeysCommand.js.map +0 -1
  187. package/dist-cjs/commands/ListDataSourcesCommand.js.map +0 -1
  188. package/dist-cjs/commands/ListFunctionsCommand.js.map +0 -1
  189. package/dist-cjs/commands/ListGraphqlApisCommand.js.map +0 -1
  190. package/dist-cjs/commands/ListResolversByFunctionCommand.js.map +0 -1
  191. package/dist-cjs/commands/ListResolversCommand.js.map +0 -1
  192. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  193. package/dist-cjs/commands/ListTypesCommand.js.map +0 -1
  194. package/dist-cjs/commands/StartSchemaCreationCommand.js.map +0 -1
  195. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  196. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  197. package/dist-cjs/commands/UpdateApiCacheCommand.js.map +0 -1
  198. package/dist-cjs/commands/UpdateApiKeyCommand.js.map +0 -1
  199. package/dist-cjs/commands/UpdateDataSourceCommand.js.map +0 -1
  200. package/dist-cjs/commands/UpdateFunctionCommand.js.map +0 -1
  201. package/dist-cjs/commands/UpdateGraphqlApiCommand.js.map +0 -1
  202. package/dist-cjs/commands/UpdateResolverCommand.js.map +0 -1
  203. package/dist-cjs/commands/UpdateTypeCommand.js.map +0 -1
  204. package/dist-cjs/endpoints.js.map +0 -1
  205. package/dist-cjs/index.js.map +0 -1
  206. package/dist-cjs/models/index.js.map +0 -1
  207. package/dist-cjs/models/models_0.js.map +0 -1
  208. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  209. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  210. package/dist-cjs/runtimeConfig.js.map +0 -1
  211. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  212. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  213. package/dist-es/AppSync.js.map +0 -1
  214. package/dist-es/AppSyncClient.js.map +0 -1
  215. package/dist-es/commands/CreateApiCacheCommand.js.map +0 -1
  216. package/dist-es/commands/CreateApiKeyCommand.js.map +0 -1
  217. package/dist-es/commands/CreateDataSourceCommand.js.map +0 -1
  218. package/dist-es/commands/CreateFunctionCommand.js.map +0 -1
  219. package/dist-es/commands/CreateGraphqlApiCommand.js.map +0 -1
  220. package/dist-es/commands/CreateResolverCommand.js.map +0 -1
  221. package/dist-es/commands/CreateTypeCommand.js.map +0 -1
  222. package/dist-es/commands/DeleteApiCacheCommand.js.map +0 -1
  223. package/dist-es/commands/DeleteApiKeyCommand.js.map +0 -1
  224. package/dist-es/commands/DeleteDataSourceCommand.js.map +0 -1
  225. package/dist-es/commands/DeleteFunctionCommand.js.map +0 -1
  226. package/dist-es/commands/DeleteGraphqlApiCommand.js.map +0 -1
  227. package/dist-es/commands/DeleteResolverCommand.js.map +0 -1
  228. package/dist-es/commands/DeleteTypeCommand.js.map +0 -1
  229. package/dist-es/commands/FlushApiCacheCommand.js.map +0 -1
  230. package/dist-es/commands/GetApiCacheCommand.js.map +0 -1
  231. package/dist-es/commands/GetDataSourceCommand.js.map +0 -1
  232. package/dist-es/commands/GetFunctionCommand.js.map +0 -1
  233. package/dist-es/commands/GetGraphqlApiCommand.js.map +0 -1
  234. package/dist-es/commands/GetIntrospectionSchemaCommand.js.map +0 -1
  235. package/dist-es/commands/GetResolverCommand.js.map +0 -1
  236. package/dist-es/commands/GetSchemaCreationStatusCommand.js.map +0 -1
  237. package/dist-es/commands/GetTypeCommand.js.map +0 -1
  238. package/dist-es/commands/ListApiKeysCommand.js.map +0 -1
  239. package/dist-es/commands/ListDataSourcesCommand.js.map +0 -1
  240. package/dist-es/commands/ListFunctionsCommand.js.map +0 -1
  241. package/dist-es/commands/ListGraphqlApisCommand.js.map +0 -1
  242. package/dist-es/commands/ListResolversByFunctionCommand.js.map +0 -1
  243. package/dist-es/commands/ListResolversCommand.js.map +0 -1
  244. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  245. package/dist-es/commands/ListTypesCommand.js.map +0 -1
  246. package/dist-es/commands/StartSchemaCreationCommand.js.map +0 -1
  247. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  248. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  249. package/dist-es/commands/UpdateApiCacheCommand.js.map +0 -1
  250. package/dist-es/commands/UpdateApiKeyCommand.js.map +0 -1
  251. package/dist-es/commands/UpdateDataSourceCommand.js.map +0 -1
  252. package/dist-es/commands/UpdateFunctionCommand.js.map +0 -1
  253. package/dist-es/commands/UpdateGraphqlApiCommand.js.map +0 -1
  254. package/dist-es/commands/UpdateResolverCommand.js.map +0 -1
  255. package/dist-es/commands/UpdateTypeCommand.js.map +0 -1
  256. package/dist-es/endpoints.js.map +0 -1
  257. package/dist-es/index.js.map +0 -1
  258. package/dist-es/models/index.js.map +0 -1
  259. package/dist-es/models/models_0.js.map +0 -1
  260. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  261. package/dist-es/runtimeConfig.browser.js.map +0 -1
  262. package/dist-es/runtimeConfig.js.map +0 -1
  263. package/dist-es/runtimeConfig.native.js.map +0 -1
  264. package/dist-es/runtimeConfig.shared.js.map +0 -1
  265. package/jest.config.js +0 -4
  266. package/src/AppSync.ts +0 -1430
  267. package/src/AppSyncClient.ts +0 -375
  268. package/src/commands/CreateApiCacheCommand.ts +0 -95
  269. package/src/commands/CreateApiKeyCommand.ts +0 -96
  270. package/src/commands/CreateDataSourceCommand.ts +0 -95
  271. package/src/commands/CreateFunctionCommand.ts +0 -97
  272. package/src/commands/CreateGraphqlApiCommand.ts +0 -95
  273. package/src/commands/CreateResolverCommand.ts +0 -97
  274. package/src/commands/CreateTypeCommand.ts +0 -95
  275. package/src/commands/DeleteApiCacheCommand.ts +0 -95
  276. package/src/commands/DeleteApiKeyCommand.ts +0 -95
  277. package/src/commands/DeleteDataSourceCommand.ts +0 -95
  278. package/src/commands/DeleteFunctionCommand.ts +0 -95
  279. package/src/commands/DeleteGraphqlApiCommand.ts +0 -95
  280. package/src/commands/DeleteResolverCommand.ts +0 -95
  281. package/src/commands/DeleteTypeCommand.ts +0 -95
  282. package/src/commands/FlushApiCacheCommand.ts +0 -95
  283. package/src/commands/GetApiCacheCommand.ts +0 -95
  284. package/src/commands/GetDataSourceCommand.ts +0 -95
  285. package/src/commands/GetFunctionCommand.ts +0 -95
  286. package/src/commands/GetGraphqlApiCommand.ts +0 -95
  287. package/src/commands/GetIntrospectionSchemaCommand.ts +0 -95
  288. package/src/commands/GetResolverCommand.ts +0 -95
  289. package/src/commands/GetSchemaCreationStatusCommand.ts +0 -95
  290. package/src/commands/GetTypeCommand.ts +0 -91
  291. package/src/commands/ListApiKeysCommand.ts +0 -101
  292. package/src/commands/ListDataSourcesCommand.ts +0 -95
  293. package/src/commands/ListFunctionsCommand.ts +0 -95
  294. package/src/commands/ListGraphqlApisCommand.ts +0 -95
  295. package/src/commands/ListResolversByFunctionCommand.ts +0 -95
  296. package/src/commands/ListResolversCommand.ts +0 -95
  297. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  298. package/src/commands/ListTypesCommand.ts +0 -95
  299. package/src/commands/StartSchemaCreationCommand.ts +0 -97
  300. package/src/commands/TagResourceCommand.ts +0 -95
  301. package/src/commands/UntagResourceCommand.ts +0 -95
  302. package/src/commands/UpdateApiCacheCommand.ts +0 -95
  303. package/src/commands/UpdateApiKeyCommand.ts +0 -95
  304. package/src/commands/UpdateDataSourceCommand.ts +0 -95
  305. package/src/commands/UpdateFunctionCommand.ts +0 -95
  306. package/src/commands/UpdateGraphqlApiCommand.ts +0 -95
  307. package/src/commands/UpdateResolverCommand.ts +0 -95
  308. package/src/commands/UpdateTypeCommand.ts +0 -95
  309. package/src/endpoints.ts +0 -57
  310. package/src/index.ts +0 -44
  311. package/src/models/index.ts +0 -1
  312. package/src/models/models_0.ts +0 -3799
  313. package/src/protocols/Aws_restJson1.ts +0 -6249
  314. package/src/runtimeConfig.browser.ts +0 -41
  315. package/src/runtimeConfig.native.ts +0 -17
  316. package/src/runtimeConfig.shared.ts +0 -17
  317. package/src/runtimeConfig.ts +0 -46
  318. package/tsconfig.es.json +0 -10
  319. package/tsconfig.json +0 -33
  320. package/tsconfig.types.json +0 -9
@@ -1,3799 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
-
3
- /**
4
- * <p>You do not have access to perform this operation on this resource.</p>
5
- */
6
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
7
- name: "AccessDeniedException";
8
- $fault: "client";
9
- message?: string;
10
- }
11
-
12
- export namespace AccessDeniedException {
13
- /**
14
- * @internal
15
- */
16
- export const filterSensitiveLog = (obj: AccessDeniedException): any => ({
17
- ...obj,
18
- });
19
- }
20
-
21
- export enum AuthenticationType {
22
- AMAZON_COGNITO_USER_POOLS = "AMAZON_COGNITO_USER_POOLS",
23
- API_KEY = "API_KEY",
24
- AWS_IAM = "AWS_IAM",
25
- AWS_LAMBDA = "AWS_LAMBDA",
26
- OPENID_CONNECT = "OPENID_CONNECT",
27
- }
28
-
29
- /**
30
- * <p>A <code>LambdaAuthorizerConfig</code> holds configuration on how to authorize AppSync
31
- * API access when using the <code>AWS_LAMBDA</code> authorizer mode. Be aware that an AppSync
32
- * API may have only one Lambda authorizer configured at a time.</p>
33
- */
34
- export interface LambdaAuthorizerConfig {
35
- /**
36
- * <p>The number of seconds a response should be cached for. The default is 5 minutes (300
37
- * seconds). The Lambda function can override this by returning a <code>ttlOverride</code> key
38
- * in its response. A value of 0 disables caching of responses.</p>
39
- */
40
- authorizerResultTtlInSeconds?: number;
41
-
42
- /**
43
- * <p>The ARN of the Lambda function to be called for authorization. This may be a standard
44
- * Lambda ARN, a version ARN (<code>.../v3</code>) or alias ARN. </p>
45
- * <p>
46
- * <i>Note</i>: This Lambda function must have the following resource-based
47
- * policy assigned to it. When configuring Lambda authorizers in the Console, this is done for
48
- * you. To do so with the Amazon Web Services CLI, run the following:</p>
49
- * <p>
50
- * <code>aws lambda add-permission --function-name
51
- * "arn:aws:lambda:us-east-2:111122223333:function:my-function" --statement-id "appsync"
52
- * --principal appsync.amazonaws.com --action lambda:InvokeFunction</code>
53
- * </p>
54
- */
55
- authorizerUri: string | undefined;
56
-
57
- /**
58
- * <p>A regular expression for validation of tokens before the Lambda function is
59
- * called.</p>
60
- */
61
- identityValidationExpression?: string;
62
- }
63
-
64
- export namespace LambdaAuthorizerConfig {
65
- /**
66
- * @internal
67
- */
68
- export const filterSensitiveLog = (obj: LambdaAuthorizerConfig): any => ({
69
- ...obj,
70
- });
71
- }
72
-
73
- /**
74
- * <p>Describes an OpenID Connect configuration.</p>
75
- */
76
- export interface OpenIDConnectConfig {
77
- /**
78
- * <p>The issuer for the OpenID Connect configuration. The issuer returned by discovery must
79
- * exactly match the value of <code>iss</code> in the ID token.</p>
80
- */
81
- issuer: string | undefined;
82
-
83
- /**
84
- * <p>The client identifier of the Relying party at the OpenID identity provider. This
85
- * identifier is typically obtained when the Relying party is registered with the OpenID
86
- * identity provider. You can specify a regular expression so the AppSync can
87
- * validate against multiple client identifiers at a time.</p>
88
- */
89
- clientId?: string;
90
-
91
- /**
92
- * <p>The number of milliseconds a token is valid after being issued to a user.</p>
93
- */
94
- iatTTL?: number;
95
-
96
- /**
97
- * <p>The number of milliseconds a token is valid after being authenticated.</p>
98
- */
99
- authTTL?: number;
100
- }
101
-
102
- export namespace OpenIDConnectConfig {
103
- /**
104
- * @internal
105
- */
106
- export const filterSensitiveLog = (obj: OpenIDConnectConfig): any => ({
107
- ...obj,
108
- });
109
- }
110
-
111
- /**
112
- * <p>Describes an Amazon Cognito user pool configuration.</p>
113
- */
114
- export interface CognitoUserPoolConfig {
115
- /**
116
- * <p>The user pool ID.</p>
117
- */
118
- userPoolId: string | undefined;
119
-
120
- /**
121
- * <p>The Amazon Web Services Region in which the user pool was created.</p>
122
- */
123
- awsRegion: string | undefined;
124
-
125
- /**
126
- * <p>A regular expression for validating the incoming Amazon Cognito user pool app client
127
- * ID.</p>
128
- */
129
- appIdClientRegex?: string;
130
- }
131
-
132
- export namespace CognitoUserPoolConfig {
133
- /**
134
- * @internal
135
- */
136
- export const filterSensitiveLog = (obj: CognitoUserPoolConfig): any => ({
137
- ...obj,
138
- });
139
- }
140
-
141
- /**
142
- * <p>Describes an additional authentication provider.</p>
143
- */
144
- export interface AdditionalAuthenticationProvider {
145
- /**
146
- * <p>The authentication type: API key, Identity and Access Management, OIDC, Amazon Cognito user
147
- * pools, or Amazon Web Services Lambda.</p>
148
- */
149
- authenticationType?: AuthenticationType | string;
150
-
151
- /**
152
- * <p>The OpenID Connect configuration.</p>
153
- */
154
- openIDConnectConfig?: OpenIDConnectConfig;
155
-
156
- /**
157
- * <p>The Amazon Cognito user pool configuration.</p>
158
- */
159
- userPoolConfig?: CognitoUserPoolConfig;
160
-
161
- /**
162
- * <p>Configuration for Amazon Web Services Lambda function authorization.</p>
163
- */
164
- lambdaAuthorizerConfig?: LambdaAuthorizerConfig;
165
- }
166
-
167
- export namespace AdditionalAuthenticationProvider {
168
- /**
169
- * @internal
170
- */
171
- export const filterSensitiveLog = (obj: AdditionalAuthenticationProvider): any => ({
172
- ...obj,
173
- });
174
- }
175
-
176
- export enum ApiCachingBehavior {
177
- FULL_REQUEST_CACHING = "FULL_REQUEST_CACHING",
178
- PER_RESOLVER_CACHING = "PER_RESOLVER_CACHING",
179
- }
180
-
181
- export enum ApiCacheStatus {
182
- AVAILABLE = "AVAILABLE",
183
- CREATING = "CREATING",
184
- DELETING = "DELETING",
185
- FAILED = "FAILED",
186
- MODIFYING = "MODIFYING",
187
- }
188
-
189
- export enum ApiCacheType {
190
- LARGE = "LARGE",
191
- LARGE_12X = "LARGE_12X",
192
- LARGE_2X = "LARGE_2X",
193
- LARGE_4X = "LARGE_4X",
194
- LARGE_8X = "LARGE_8X",
195
- MEDIUM = "MEDIUM",
196
- R4_2XLARGE = "R4_2XLARGE",
197
- R4_4XLARGE = "R4_4XLARGE",
198
- R4_8XLARGE = "R4_8XLARGE",
199
- R4_LARGE = "R4_LARGE",
200
- R4_XLARGE = "R4_XLARGE",
201
- SMALL = "SMALL",
202
- T2_MEDIUM = "T2_MEDIUM",
203
- T2_SMALL = "T2_SMALL",
204
- XLARGE = "XLARGE",
205
- }
206
-
207
- /**
208
- * <p>The <code>ApiCache</code> object.</p>
209
- */
210
- export interface ApiCache {
211
- /**
212
- * <p>TTL in seconds for cache entries.</p>
213
- * <p>Valid values are between 1 and 3600 seconds.</p>
214
- */
215
- ttl?: number;
216
-
217
- /**
218
- * <p>Caching behavior.</p>
219
- * <ul>
220
- * <li>
221
- * <p>
222
- * <b>FULL_REQUEST_CACHING</b>: All requests are fully
223
- * cached.</p>
224
- * </li>
225
- * <li>
226
- * <p>
227
- * <b>PER_RESOLVER_CACHING</b>: Individual resolvers
228
- * that you specify are cached.</p>
229
- * </li>
230
- * </ul>
231
- */
232
- apiCachingBehavior?: ApiCachingBehavior | string;
233
-
234
- /**
235
- * <p>Transit encryption flag when connecting to cache. This setting cannot be updated after
236
- * creation.</p>
237
- */
238
- transitEncryptionEnabled?: boolean;
239
-
240
- /**
241
- * <p>At rest encryption flag for cache. This setting cannot be updated after creation.</p>
242
- */
243
- atRestEncryptionEnabled?: boolean;
244
-
245
- /**
246
- * <p>The cache instance type. Valid values are </p>
247
- * <ul>
248
- * <li>
249
- * <p>
250
- * <code>SMALL</code>
251
- * </p>
252
- * </li>
253
- * <li>
254
- * <p>
255
- * <code>MEDIUM</code>
256
- * </p>
257
- * </li>
258
- * <li>
259
- * <p>
260
- * <code>LARGE</code>
261
- * </p>
262
- * </li>
263
- * <li>
264
- * <p>
265
- * <code>XLARGE</code>
266
- * </p>
267
- * </li>
268
- * <li>
269
- * <p>
270
- * <code>LARGE_2X</code>
271
- * </p>
272
- * </li>
273
- * <li>
274
- * <p>
275
- * <code>LARGE_4X</code>
276
- * </p>
277
- * </li>
278
- * <li>
279
- * <p>
280
- * <code>LARGE_8X</code> (not available in all regions)</p>
281
- * </li>
282
- * <li>
283
- * <p>
284
- * <code>LARGE_12X</code>
285
- * </p>
286
- * </li>
287
- * </ul>
288
- * <p>Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.</p>
289
- * <p>The following legacy instance types are available, but their use is discouraged:</p>
290
- * <ul>
291
- * <li>
292
- * <p>
293
- * <b>T2_SMALL</b>: A t2.small instance type.</p>
294
- * </li>
295
- * <li>
296
- * <p>
297
- * <b>T2_MEDIUM</b>: A t2.medium instance type.</p>
298
- * </li>
299
- * <li>
300
- * <p>
301
- * <b>R4_LARGE</b>: A r4.large instance type.</p>
302
- * </li>
303
- * <li>
304
- * <p>
305
- * <b>R4_XLARGE</b>: A r4.xlarge instance type.</p>
306
- * </li>
307
- * <li>
308
- * <p>
309
- * <b>R4_2XLARGE</b>: A r4.2xlarge instance type.</p>
310
- * </li>
311
- * <li>
312
- * <p>
313
- * <b>R4_4XLARGE</b>: A r4.4xlarge instance type.</p>
314
- * </li>
315
- * <li>
316
- * <p>
317
- * <b>R4_8XLARGE</b>: A r4.8xlarge instance type.</p>
318
- * </li>
319
- * </ul>
320
- */
321
- type?: ApiCacheType | string;
322
-
323
- /**
324
- * <p>The cache instance status.</p>
325
- * <ul>
326
- * <li>
327
- * <p>
328
- * <b>AVAILABLE</b>: The instance is available for
329
- * use.</p>
330
- * </li>
331
- * <li>
332
- * <p>
333
- * <b>CREATING</b>: The instance is currently
334
- * creating.</p>
335
- * </li>
336
- * <li>
337
- * <p>
338
- * <b>DELETING</b>: The instance is currently
339
- * deleting.</p>
340
- * </li>
341
- * <li>
342
- * <p>
343
- * <b>MODIFYING</b>: The instance is currently
344
- * modifying.</p>
345
- * </li>
346
- * <li>
347
- * <p>
348
- * <b>FAILED</b>: The instance has failed
349
- * creation.</p>
350
- * </li>
351
- * </ul>
352
- */
353
- status?: ApiCacheStatus | string;
354
- }
355
-
356
- export namespace ApiCache {
357
- /**
358
- * @internal
359
- */
360
- export const filterSensitiveLog = (obj: ApiCache): any => ({
361
- ...obj,
362
- });
363
- }
364
-
365
- /**
366
- * <p>Describes an API key.</p>
367
- * <p>Customers invoke AppSync GraphQL API operations with API keys as an
368
- * identity mechanism. There are two key versions:</p>
369
- * <p>
370
- * <b>da1</b>: This version was introduced at launch in November
371
- * 2017. These keys always expire after 7 days. Key expiration is managed by Amazon DynamoDB
372
- * TTL. The keys ceased to be valid after February 21, 2018 and should not be used after that
373
- * date.</p>
374
- * <ul>
375
- * <li>
376
- * <p>
377
- * <code>ListApiKeys</code> returns the expiration time in milliseconds.</p>
378
- * </li>
379
- * <li>
380
- * <p>
381
- * <code>CreateApiKey</code> returns the expiration time in
382
- * milliseconds.</p>
383
- * </li>
384
- * <li>
385
- * <p>
386
- * <code>UpdateApiKey</code> is not available for this key version.</p>
387
- * </li>
388
- * <li>
389
- * <p>
390
- * <code>DeleteApiKey</code> deletes the item from the table.</p>
391
- * </li>
392
- * <li>
393
- * <p>Expiration is stored in Amazon DynamoDB as milliseconds. This results in a bug
394
- * where keys are not automatically deleted because DynamoDB expects the TTL to be
395
- * stored in seconds. As a one-time action, we will delete these keys from the table
396
- * after February 21, 2018.</p>
397
- * </li>
398
- * </ul>
399
- * <p>
400
- * <b>da2</b>: This version was introduced in February 2018 when
401
- * AppSync added support to extend key expiration.</p>
402
- * <ul>
403
- * <li>
404
- * <p>
405
- * <code>ListApiKeys</code> returns the expiration time and deletion time in
406
- * seconds.</p>
407
- * </li>
408
- * <li>
409
- * <p>
410
- * <code>CreateApiKey</code> returns the expiration time and deletion time in
411
- * seconds and accepts a user-provided expiration time in seconds.</p>
412
- * </li>
413
- * <li>
414
- * <p>
415
- * <code>UpdateApiKey</code> returns the expiration time and and deletion time in
416
- * seconds and accepts a user-provided expiration time in seconds. Expired API keys are
417
- * kept for 60 days after the expiration time. Key expiration time can be updated while
418
- * the key is not deleted. </p>
419
- * </li>
420
- * <li>
421
- * <p>
422
- * <code>DeleteApiKey</code> deletes the item from the table.</p>
423
- * </li>
424
- * <li>
425
- * <p>Expiration is stored in Amazon DynamoDB as seconds. After the expiration time,
426
- * using the key to authenticate will fail. But the key can be reinstated before
427
- * deletion.</p>
428
- * </li>
429
- * <li>
430
- * <p>Deletion is stored in Amazon DynamoDB as seconds. The key will be deleted after
431
- * deletion time. </p>
432
- * </li>
433
- * </ul>
434
- */
435
- export interface ApiKey {
436
- /**
437
- * <p>The API key ID.</p>
438
- */
439
- id?: string;
440
-
441
- /**
442
- * <p>A description of the purpose of the API key.</p>
443
- */
444
- description?: string;
445
-
446
- /**
447
- * <p>The time after which the API key expires. The date is represented as seconds since the
448
- * epoch, rounded down to the nearest hour.</p>
449
- */
450
- expires?: number;
451
-
452
- /**
453
- * <p>The time after which the API key is deleted. The date is represented as seconds since
454
- * the epoch, rounded down to the nearest hour.</p>
455
- */
456
- deletes?: number;
457
- }
458
-
459
- export namespace ApiKey {
460
- /**
461
- * @internal
462
- */
463
- export const filterSensitiveLog = (obj: ApiKey): any => ({
464
- ...obj,
465
- });
466
- }
467
-
468
- /**
469
- * <p>The API key exceeded a limit. Try your request again.</p>
470
- */
471
- export interface ApiKeyLimitExceededException extends __SmithyException, $MetadataBearer {
472
- name: "ApiKeyLimitExceededException";
473
- $fault: "client";
474
- message?: string;
475
- }
476
-
477
- export namespace ApiKeyLimitExceededException {
478
- /**
479
- * @internal
480
- */
481
- export const filterSensitiveLog = (obj: ApiKeyLimitExceededException): any => ({
482
- ...obj,
483
- });
484
- }
485
-
486
- /**
487
- * <p>The API key expiration must be set to a value between 1 and 365 days from creation (for
488
- * <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>).</p>
489
- */
490
- export interface ApiKeyValidityOutOfBoundsException extends __SmithyException, $MetadataBearer {
491
- name: "ApiKeyValidityOutOfBoundsException";
492
- $fault: "client";
493
- message?: string;
494
- }
495
-
496
- export namespace ApiKeyValidityOutOfBoundsException {
497
- /**
498
- * @internal
499
- */
500
- export const filterSensitiveLog = (obj: ApiKeyValidityOutOfBoundsException): any => ({
501
- ...obj,
502
- });
503
- }
504
-
505
- /**
506
- * <p>The GraphQL API exceeded a limit. Try your request again.</p>
507
- */
508
- export interface ApiLimitExceededException extends __SmithyException, $MetadataBearer {
509
- name: "ApiLimitExceededException";
510
- $fault: "client";
511
- message?: string;
512
- }
513
-
514
- export namespace ApiLimitExceededException {
515
- /**
516
- * @internal
517
- */
518
- export const filterSensitiveLog = (obj: ApiLimitExceededException): any => ({
519
- ...obj,
520
- });
521
- }
522
-
523
- export enum AuthorizationType {
524
- AWS_IAM = "AWS_IAM",
525
- }
526
-
527
- /**
528
- * <p>The Identity and Access Management configuration.</p>
529
- */
530
- export interface AwsIamConfig {
531
- /**
532
- * <p>The signing region for Identity and Access Management authorization.</p>
533
- */
534
- signingRegion?: string;
535
-
536
- /**
537
- * <p>The signing service name for Identity and Access Management authorization.</p>
538
- */
539
- signingServiceName?: string;
540
- }
541
-
542
- export namespace AwsIamConfig {
543
- /**
544
- * @internal
545
- */
546
- export const filterSensitiveLog = (obj: AwsIamConfig): any => ({
547
- ...obj,
548
- });
549
- }
550
-
551
- /**
552
- * <p>The authorization config in case the HTTP endpoint requires authorization.</p>
553
- */
554
- export interface AuthorizationConfig {
555
- /**
556
- * <p>The authorization type required by the HTTP endpoint.</p>
557
- * <ul>
558
- * <li>
559
- * <p>
560
- * <b>AWS_IAM</b>: The authorization type is
561
- * Sigv4.</p>
562
- * </li>
563
- * </ul>
564
- */
565
- authorizationType: AuthorizationType | string | undefined;
566
-
567
- /**
568
- * <p>The Identity and Access Management settings.</p>
569
- */
570
- awsIamConfig?: AwsIamConfig;
571
- }
572
-
573
- export namespace AuthorizationConfig {
574
- /**
575
- * @internal
576
- */
577
- export const filterSensitiveLog = (obj: AuthorizationConfig): any => ({
578
- ...obj,
579
- });
580
- }
581
-
582
- /**
583
- * <p>The request is not well formed. For example, a value is invalid or a required field is
584
- * missing. Check the field values, and then try again. </p>
585
- */
586
- export interface BadRequestException extends __SmithyException, $MetadataBearer {
587
- name: "BadRequestException";
588
- $fault: "client";
589
- message?: string;
590
- }
591
-
592
- export namespace BadRequestException {
593
- /**
594
- * @internal
595
- */
596
- export const filterSensitiveLog = (obj: BadRequestException): any => ({
597
- ...obj,
598
- });
599
- }
600
-
601
- /**
602
- * <p>Another modification is in progress at this time and it must complete before you can
603
- * make your change. </p>
604
- */
605
- export interface ConcurrentModificationException extends __SmithyException, $MetadataBearer {
606
- name: "ConcurrentModificationException";
607
- $fault: "client";
608
- message?: string;
609
- }
610
-
611
- export namespace ConcurrentModificationException {
612
- /**
613
- * @internal
614
- */
615
- export const filterSensitiveLog = (obj: ConcurrentModificationException): any => ({
616
- ...obj,
617
- });
618
- }
619
-
620
- /**
621
- * <p>Represents the input of a <code>CreateApiCache</code> operation.</p>
622
- */
623
- export interface CreateApiCacheRequest {
624
- /**
625
- * <p>The GraphQL API Id.</p>
626
- */
627
- apiId: string | undefined;
628
-
629
- /**
630
- * <p>TTL in seconds for cache entries.</p>
631
- * <p>Valid values are between 1 and 3600 seconds.</p>
632
- */
633
- ttl: number | undefined;
634
-
635
- /**
636
- * <p>Transit encryption flag when connecting to cache. This setting cannot be updated after
637
- * creation.</p>
638
- */
639
- transitEncryptionEnabled?: boolean;
640
-
641
- /**
642
- * <p>At rest encryption flag for cache. This setting cannot be updated after creation.</p>
643
- */
644
- atRestEncryptionEnabled?: boolean;
645
-
646
- /**
647
- * <p>Caching behavior.</p>
648
- * <ul>
649
- * <li>
650
- * <p>
651
- * <b>FULL_REQUEST_CACHING</b>: All requests are fully
652
- * cached.</p>
653
- * </li>
654
- * <li>
655
- * <p>
656
- * <b>PER_RESOLVER_CACHING</b>: Individual resolvers
657
- * that you specify are cached.</p>
658
- * </li>
659
- * </ul>
660
- */
661
- apiCachingBehavior: ApiCachingBehavior | string | undefined;
662
-
663
- /**
664
- * <p>The cache instance type. Valid values are </p>
665
- * <ul>
666
- * <li>
667
- * <p>
668
- * <code>SMALL</code>
669
- * </p>
670
- * </li>
671
- * <li>
672
- * <p>
673
- * <code>MEDIUM</code>
674
- * </p>
675
- * </li>
676
- * <li>
677
- * <p>
678
- * <code>LARGE</code>
679
- * </p>
680
- * </li>
681
- * <li>
682
- * <p>
683
- * <code>XLARGE</code>
684
- * </p>
685
- * </li>
686
- * <li>
687
- * <p>
688
- * <code>LARGE_2X</code>
689
- * </p>
690
- * </li>
691
- * <li>
692
- * <p>
693
- * <code>LARGE_4X</code>
694
- * </p>
695
- * </li>
696
- * <li>
697
- * <p>
698
- * <code>LARGE_8X</code> (not available in all regions)</p>
699
- * </li>
700
- * <li>
701
- * <p>
702
- * <code>LARGE_12X</code>
703
- * </p>
704
- * </li>
705
- * </ul>
706
- * <p>Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.</p>
707
- * <p>The following legacy instance types are available, but their use is discouraged:</p>
708
- * <ul>
709
- * <li>
710
- * <p>
711
- * <b>T2_SMALL</b>: A t2.small instance type.</p>
712
- * </li>
713
- * <li>
714
- * <p>
715
- * <b>T2_MEDIUM</b>: A t2.medium instance type.</p>
716
- * </li>
717
- * <li>
718
- * <p>
719
- * <b>R4_LARGE</b>: A r4.large instance type.</p>
720
- * </li>
721
- * <li>
722
- * <p>
723
- * <b>R4_XLARGE</b>: A r4.xlarge instance type.</p>
724
- * </li>
725
- * <li>
726
- * <p>
727
- * <b>R4_2XLARGE</b>: A r4.2xlarge instance type.</p>
728
- * </li>
729
- * <li>
730
- * <p>
731
- * <b>R4_4XLARGE</b>: A r4.4xlarge instance type.</p>
732
- * </li>
733
- * <li>
734
- * <p>
735
- * <b>R4_8XLARGE</b>: A r4.8xlarge instance type.</p>
736
- * </li>
737
- * </ul>
738
- */
739
- type: ApiCacheType | string | undefined;
740
- }
741
-
742
- export namespace CreateApiCacheRequest {
743
- /**
744
- * @internal
745
- */
746
- export const filterSensitiveLog = (obj: CreateApiCacheRequest): any => ({
747
- ...obj,
748
- });
749
- }
750
-
751
- /**
752
- * <p>Represents the output of a <code>CreateApiCache</code> operation.</p>
753
- */
754
- export interface CreateApiCacheResponse {
755
- /**
756
- * <p>The <code>ApiCache</code> object.</p>
757
- */
758
- apiCache?: ApiCache;
759
- }
760
-
761
- export namespace CreateApiCacheResponse {
762
- /**
763
- * @internal
764
- */
765
- export const filterSensitiveLog = (obj: CreateApiCacheResponse): any => ({
766
- ...obj,
767
- });
768
- }
769
-
770
- /**
771
- * <p>An internal AppSync error occurred. Try your request again.</p>
772
- */
773
- export interface InternalFailureException extends __SmithyException, $MetadataBearer {
774
- name: "InternalFailureException";
775
- $fault: "server";
776
- message?: string;
777
- }
778
-
779
- export namespace InternalFailureException {
780
- /**
781
- * @internal
782
- */
783
- export const filterSensitiveLog = (obj: InternalFailureException): any => ({
784
- ...obj,
785
- });
786
- }
787
-
788
- /**
789
- * <p>The resource specified in the request was not found. Check the resource, and then try
790
- * again.</p>
791
- */
792
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
793
- name: "NotFoundException";
794
- $fault: "client";
795
- message?: string;
796
- }
797
-
798
- export namespace NotFoundException {
799
- /**
800
- * @internal
801
- */
802
- export const filterSensitiveLog = (obj: NotFoundException): any => ({
803
- ...obj,
804
- });
805
- }
806
-
807
- /**
808
- * <p>You are not authorized to perform this operation.</p>
809
- */
810
- export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
811
- name: "UnauthorizedException";
812
- $fault: "client";
813
- message?: string;
814
- }
815
-
816
- export namespace UnauthorizedException {
817
- /**
818
- * @internal
819
- */
820
- export const filterSensitiveLog = (obj: UnauthorizedException): any => ({
821
- ...obj,
822
- });
823
- }
824
-
825
- export interface CreateApiKeyRequest {
826
- /**
827
- * <p>The ID for your GraphQL API.</p>
828
- */
829
- apiId: string | undefined;
830
-
831
- /**
832
- * <p>A description of the purpose of the API key.</p>
833
- */
834
- description?: string;
835
-
836
- /**
837
- * <p>The time from creation time after which the API key expires. The date is represented as
838
- * seconds since the epoch, rounded down to the nearest hour. The default value for this
839
- * parameter is 7 days from creation time. For more information, see .</p>
840
- */
841
- expires?: number;
842
- }
843
-
844
- export namespace CreateApiKeyRequest {
845
- /**
846
- * @internal
847
- */
848
- export const filterSensitiveLog = (obj: CreateApiKeyRequest): any => ({
849
- ...obj,
850
- });
851
- }
852
-
853
- export interface CreateApiKeyResponse {
854
- /**
855
- * <p>The API key.</p>
856
- */
857
- apiKey?: ApiKey;
858
- }
859
-
860
- export namespace CreateApiKeyResponse {
861
- /**
862
- * @internal
863
- */
864
- export const filterSensitiveLog = (obj: CreateApiKeyResponse): any => ({
865
- ...obj,
866
- });
867
- }
868
-
869
- /**
870
- * <p>The request exceeded a limit. Try your request again.</p>
871
- */
872
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
873
- name: "LimitExceededException";
874
- $fault: "client";
875
- message?: string;
876
- }
877
-
878
- export namespace LimitExceededException {
879
- /**
880
- * @internal
881
- */
882
- export const filterSensitiveLog = (obj: LimitExceededException): any => ({
883
- ...obj,
884
- });
885
- }
886
-
887
- /**
888
- * <p>Describes a Delta Sync configuration.</p>
889
- */
890
- export interface DeltaSyncConfig {
891
- /**
892
- * <p>The number of minutes an Item is stored in the datasource.</p>
893
- */
894
- baseTableTTL?: number;
895
-
896
- /**
897
- * <p>The Delta Sync table name.</p>
898
- */
899
- deltaSyncTableName?: string;
900
-
901
- /**
902
- * <p>The number of minutes a Delta Sync log entry is stored in the Delta Sync table.</p>
903
- */
904
- deltaSyncTableTTL?: number;
905
- }
906
-
907
- export namespace DeltaSyncConfig {
908
- /**
909
- * @internal
910
- */
911
- export const filterSensitiveLog = (obj: DeltaSyncConfig): any => ({
912
- ...obj,
913
- });
914
- }
915
-
916
- /**
917
- * <p>Describes an Amazon DynamoDB data source configuration.</p>
918
- */
919
- export interface DynamodbDataSourceConfig {
920
- /**
921
- * <p>The table name.</p>
922
- */
923
- tableName: string | undefined;
924
-
925
- /**
926
- * <p>The Amazon Web Services Region.</p>
927
- */
928
- awsRegion: string | undefined;
929
-
930
- /**
931
- * <p>Set to TRUE to use Amazon Cognito credentials with this data source.</p>
932
- */
933
- useCallerCredentials?: boolean;
934
-
935
- /**
936
- * <p>The <code>DeltaSyncConfig</code> for a versioned datasource.</p>
937
- */
938
- deltaSyncConfig?: DeltaSyncConfig;
939
-
940
- /**
941
- * <p>Set to TRUE to use Conflict Detection and Resolution with this data source.</p>
942
- */
943
- versioned?: boolean;
944
- }
945
-
946
- export namespace DynamodbDataSourceConfig {
947
- /**
948
- * @internal
949
- */
950
- export const filterSensitiveLog = (obj: DynamodbDataSourceConfig): any => ({
951
- ...obj,
952
- });
953
- }
954
-
955
- /**
956
- * <p>Describes an OpenSearch data source configuration.</p>
957
- * <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This
958
- * configuration is deprecated. For new data sources, use <a>OpenSearchServiceDataSourceConfig</a> to specify an OpenSearch data
959
- * source.</p>
960
- */
961
- export interface ElasticsearchDataSourceConfig {
962
- /**
963
- * <p>The endpoint.</p>
964
- */
965
- endpoint: string | undefined;
966
-
967
- /**
968
- * <p>The Amazon Web Services Region.</p>
969
- */
970
- awsRegion: string | undefined;
971
- }
972
-
973
- export namespace ElasticsearchDataSourceConfig {
974
- /**
975
- * @internal
976
- */
977
- export const filterSensitiveLog = (obj: ElasticsearchDataSourceConfig): any => ({
978
- ...obj,
979
- });
980
- }
981
-
982
- /**
983
- * <p>Describes an HTTP data source configuration.</p>
984
- */
985
- export interface HttpDataSourceConfig {
986
- /**
987
- * <p>The HTTP URL endpoint. You can either specify the domain name or IP, and port
988
- * combination, and the URL scheme must be HTTP or HTTPS. If the port is not specified,
989
- * AppSync uses the default port 80 for the HTTP endpoint and port 443 for
990
- * HTTPS endpoints.</p>
991
- */
992
- endpoint?: string;
993
-
994
- /**
995
- * <p>The authorization config in case the HTTP endpoint requires authorization.</p>
996
- */
997
- authorizationConfig?: AuthorizationConfig;
998
- }
999
-
1000
- export namespace HttpDataSourceConfig {
1001
- /**
1002
- * @internal
1003
- */
1004
- export const filterSensitiveLog = (obj: HttpDataSourceConfig): any => ({
1005
- ...obj,
1006
- });
1007
- }
1008
-
1009
- /**
1010
- * <p>Describes an Amazon Web Services Lambda data source configuration.</p>
1011
- */
1012
- export interface LambdaDataSourceConfig {
1013
- /**
1014
- * <p>The ARN for the Lambda function.</p>
1015
- */
1016
- lambdaFunctionArn: string | undefined;
1017
- }
1018
-
1019
- export namespace LambdaDataSourceConfig {
1020
- /**
1021
- * @internal
1022
- */
1023
- export const filterSensitiveLog = (obj: LambdaDataSourceConfig): any => ({
1024
- ...obj,
1025
- });
1026
- }
1027
-
1028
- /**
1029
- * <p>Describes an OpenSearch data source configuration.</p>
1030
- */
1031
- export interface OpenSearchServiceDataSourceConfig {
1032
- /**
1033
- * <p>The endpoint.</p>
1034
- */
1035
- endpoint: string | undefined;
1036
-
1037
- /**
1038
- * <p>The Amazon Web Services Region.</p>
1039
- */
1040
- awsRegion: string | undefined;
1041
- }
1042
-
1043
- export namespace OpenSearchServiceDataSourceConfig {
1044
- /**
1045
- * @internal
1046
- */
1047
- export const filterSensitiveLog = (obj: OpenSearchServiceDataSourceConfig): any => ({
1048
- ...obj,
1049
- });
1050
- }
1051
-
1052
- /**
1053
- * <p>The Amazon RDS HTTP endpoint configuration.</p>
1054
- */
1055
- export interface RdsHttpEndpointConfig {
1056
- /**
1057
- * <p>Amazon Web Services Region for RDS HTTP endpoint.</p>
1058
- */
1059
- awsRegion?: string;
1060
-
1061
- /**
1062
- * <p>Amazon RDS cluster ARN.</p>
1063
- */
1064
- dbClusterIdentifier?: string;
1065
-
1066
- /**
1067
- * <p>Logical database name.</p>
1068
- */
1069
- databaseName?: string;
1070
-
1071
- /**
1072
- * <p>Logical schema name.</p>
1073
- */
1074
- schema?: string;
1075
-
1076
- /**
1077
- * <p>Amazon Web Services secret store ARN for database credentials.</p>
1078
- */
1079
- awsSecretStoreArn?: string;
1080
- }
1081
-
1082
- export namespace RdsHttpEndpointConfig {
1083
- /**
1084
- * @internal
1085
- */
1086
- export const filterSensitiveLog = (obj: RdsHttpEndpointConfig): any => ({
1087
- ...obj,
1088
- });
1089
- }
1090
-
1091
- export enum RelationalDatabaseSourceType {
1092
- RDS_HTTP_ENDPOINT = "RDS_HTTP_ENDPOINT",
1093
- }
1094
-
1095
- /**
1096
- * <p>Describes a relational database data source configuration.</p>
1097
- */
1098
- export interface RelationalDatabaseDataSourceConfig {
1099
- /**
1100
- * <p>Source type for the relational database.</p>
1101
- * <ul>
1102
- * <li>
1103
- * <p>
1104
- * <b>RDS_HTTP_ENDPOINT</b>: The relational database
1105
- * source type is an Amazon RDS HTTP endpoint.</p>
1106
- * </li>
1107
- * </ul>
1108
- */
1109
- relationalDatabaseSourceType?: RelationalDatabaseSourceType | string;
1110
-
1111
- /**
1112
- * <p>Amazon RDS HTTP endpoint settings.</p>
1113
- */
1114
- rdsHttpEndpointConfig?: RdsHttpEndpointConfig;
1115
- }
1116
-
1117
- export namespace RelationalDatabaseDataSourceConfig {
1118
- /**
1119
- * @internal
1120
- */
1121
- export const filterSensitiveLog = (obj: RelationalDatabaseDataSourceConfig): any => ({
1122
- ...obj,
1123
- });
1124
- }
1125
-
1126
- export enum DataSourceType {
1127
- AMAZON_DYNAMODB = "AMAZON_DYNAMODB",
1128
- AMAZON_ELASTICSEARCH = "AMAZON_ELASTICSEARCH",
1129
- AMAZON_OPENSEARCH_SERVICE = "AMAZON_OPENSEARCH_SERVICE",
1130
- AWS_LAMBDA = "AWS_LAMBDA",
1131
- HTTP = "HTTP",
1132
- NONE = "NONE",
1133
- RELATIONAL_DATABASE = "RELATIONAL_DATABASE",
1134
- }
1135
-
1136
- export interface CreateDataSourceRequest {
1137
- /**
1138
- * <p>The API ID for the GraphQL API for the <code>DataSource</code>.</p>
1139
- */
1140
- apiId: string | undefined;
1141
-
1142
- /**
1143
- * <p>A user-supplied name for the <code>DataSource</code>.</p>
1144
- */
1145
- name: string | undefined;
1146
-
1147
- /**
1148
- * <p>A description of the <code>DataSource</code>.</p>
1149
- */
1150
- description?: string;
1151
-
1152
- /**
1153
- * <p>The type of the <code>DataSource</code>.</p>
1154
- */
1155
- type: DataSourceType | string | undefined;
1156
-
1157
- /**
1158
- * <p>The Identity and Access Management service role ARN for the data source. The system assumes this
1159
- * role when accessing the data source.</p>
1160
- */
1161
- serviceRoleArn?: string;
1162
-
1163
- /**
1164
- * <p>Amazon DynamoDB settings.</p>
1165
- */
1166
- dynamodbConfig?: DynamodbDataSourceConfig;
1167
-
1168
- /**
1169
- * <p>Amazon Web Services Lambda settings.</p>
1170
- */
1171
- lambdaConfig?: LambdaDataSourceConfig;
1172
-
1173
- /**
1174
- * <p>Amazon OpenSearch Service settings.</p>
1175
- * <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This
1176
- * configuration is deprecated. For new data sources, use <a>CreateDataSourceRequest$openSearchServiceConfig</a> to create an OpenSearch data source.</p>
1177
- */
1178
- elasticsearchConfig?: ElasticsearchDataSourceConfig;
1179
-
1180
- /**
1181
- * <p>Amazon OpenSearch Service settings.</p>
1182
- */
1183
- openSearchServiceConfig?: OpenSearchServiceDataSourceConfig;
1184
-
1185
- /**
1186
- * <p>HTTP endpoint settings.</p>
1187
- */
1188
- httpConfig?: HttpDataSourceConfig;
1189
-
1190
- /**
1191
- * <p>Relational database settings.</p>
1192
- */
1193
- relationalDatabaseConfig?: RelationalDatabaseDataSourceConfig;
1194
- }
1195
-
1196
- export namespace CreateDataSourceRequest {
1197
- /**
1198
- * @internal
1199
- */
1200
- export const filterSensitiveLog = (obj: CreateDataSourceRequest): any => ({
1201
- ...obj,
1202
- });
1203
- }
1204
-
1205
- /**
1206
- * <p>Describes a data source.</p>
1207
- */
1208
- export interface DataSource {
1209
- /**
1210
- * <p>The data source ARN.</p>
1211
- */
1212
- dataSourceArn?: string;
1213
-
1214
- /**
1215
- * <p>The name of the data source.</p>
1216
- */
1217
- name?: string;
1218
-
1219
- /**
1220
- * <p>The description of the data source.</p>
1221
- */
1222
- description?: string;
1223
-
1224
- /**
1225
- * <p>The type of the data source.</p>
1226
- * <ul>
1227
- * <li>
1228
- * <p>
1229
- * <b>AWS_LAMBDA</b>: The data source is an Amazon Web Services Lambda function.</p>
1230
- * </li>
1231
- * <li>
1232
- * <p>
1233
- * <b>AMAZON_DYNAMODB</b>: The data source is an Amazon
1234
- * DynamoDB table.</p>
1235
- * </li>
1236
- * <li>
1237
- * <p>
1238
- * <b>AMAZON_ELASTICSEARCH</b>: The data source is an
1239
- * Amazon OpenSearch Service domain.</p>
1240
- * </li>
1241
- * <li>
1242
- * <p>
1243
- * <b>AMAZON_OPENSEARCH_SERVICE</b>: The data source is
1244
- * an Amazon OpenSearch Service domain.</p>
1245
- * </li>
1246
- * <li>
1247
- * <p>
1248
- * <b>NONE</b>: There is no data source. This type is
1249
- * used when you wish to invoke a GraphQL operation without connecting to a data source,
1250
- * such as performing data transformation with resolvers or triggering a subscription to
1251
- * be invoked from a mutation.</p>
1252
- * </li>
1253
- * <li>
1254
- * <p>
1255
- * <b>HTTP</b>: The data source is an HTTP
1256
- * endpoint.</p>
1257
- * </li>
1258
- * <li>
1259
- * <p>
1260
- * <b>RELATIONAL_DATABASE</b>: The data source is a
1261
- * relational database.</p>
1262
- * </li>
1263
- * </ul>
1264
- */
1265
- type?: DataSourceType | string;
1266
-
1267
- /**
1268
- * <p>The Identity and Access Management service role ARN for the data source. The system assumes this
1269
- * role when accessing the data source.</p>
1270
- */
1271
- serviceRoleArn?: string;
1272
-
1273
- /**
1274
- * <p>Amazon DynamoDB settings.</p>
1275
- */
1276
- dynamodbConfig?: DynamodbDataSourceConfig;
1277
-
1278
- /**
1279
- * <p>Amazon Web Services Lambda settings.</p>
1280
- */
1281
- lambdaConfig?: LambdaDataSourceConfig;
1282
-
1283
- /**
1284
- * <p>Amazon OpenSearch Service settings.</p>
1285
- */
1286
- elasticsearchConfig?: ElasticsearchDataSourceConfig;
1287
-
1288
- /**
1289
- * <p>Amazon OpenSearch Service settings.</p>
1290
- */
1291
- openSearchServiceConfig?: OpenSearchServiceDataSourceConfig;
1292
-
1293
- /**
1294
- * <p>HTTP endpoint settings.</p>
1295
- */
1296
- httpConfig?: HttpDataSourceConfig;
1297
-
1298
- /**
1299
- * <p>Relational database settings.</p>
1300
- */
1301
- relationalDatabaseConfig?: RelationalDatabaseDataSourceConfig;
1302
- }
1303
-
1304
- export namespace DataSource {
1305
- /**
1306
- * @internal
1307
- */
1308
- export const filterSensitiveLog = (obj: DataSource): any => ({
1309
- ...obj,
1310
- });
1311
- }
1312
-
1313
- export interface CreateDataSourceResponse {
1314
- /**
1315
- * <p>The <code>DataSource</code> object.</p>
1316
- */
1317
- dataSource?: DataSource;
1318
- }
1319
-
1320
- export namespace CreateDataSourceResponse {
1321
- /**
1322
- * @internal
1323
- */
1324
- export const filterSensitiveLog = (obj: CreateDataSourceResponse): any => ({
1325
- ...obj,
1326
- });
1327
- }
1328
-
1329
- export enum ConflictDetectionType {
1330
- NONE = "NONE",
1331
- VERSION = "VERSION",
1332
- }
1333
-
1334
- export enum ConflictHandlerType {
1335
- AUTOMERGE = "AUTOMERGE",
1336
- LAMBDA = "LAMBDA",
1337
- NONE = "NONE",
1338
- OPTIMISTIC_CONCURRENCY = "OPTIMISTIC_CONCURRENCY",
1339
- }
1340
-
1341
- /**
1342
- * <p>The <code>LambdaConflictHandlerConfig</code> object when configuring LAMBDA as the
1343
- * Conflict Handler.</p>
1344
- */
1345
- export interface LambdaConflictHandlerConfig {
1346
- /**
1347
- * <p>The Arn for the Lambda function to use as the Conflict Handler.</p>
1348
- */
1349
- lambdaConflictHandlerArn?: string;
1350
- }
1351
-
1352
- export namespace LambdaConflictHandlerConfig {
1353
- /**
1354
- * @internal
1355
- */
1356
- export const filterSensitiveLog = (obj: LambdaConflictHandlerConfig): any => ({
1357
- ...obj,
1358
- });
1359
- }
1360
-
1361
- /**
1362
- * <p>Describes a Sync configuration for a resolver.</p>
1363
- * <p>Contains information on which Conflict Detection as well as Resolution strategy should
1364
- * be performed when the resolver is invoked.</p>
1365
- */
1366
- export interface SyncConfig {
1367
- /**
1368
- * <p>The Conflict Resolution strategy to perform in the event of a conflict.</p>
1369
- * <ul>
1370
- * <li>
1371
- * <p>
1372
- * <b>OPTIMISTIC_CONCURRENCY</b>: Resolve conflicts by
1373
- * rejecting mutations when versions do not match the latest version at the
1374
- * server.</p>
1375
- * </li>
1376
- * <li>
1377
- * <p>
1378
- * <b>AUTOMERGE</b>: Resolve conflicts with the
1379
- * Automerge conflict resolution strategy.</p>
1380
- * </li>
1381
- * <li>
1382
- * <p>
1383
- * <b>LAMBDA</b>: Resolve conflicts with a Lambda
1384
- * function supplied in the LambdaConflictHandlerConfig.</p>
1385
- * </li>
1386
- * </ul>
1387
- */
1388
- conflictHandler?: ConflictHandlerType | string;
1389
-
1390
- /**
1391
- * <p>The Conflict Detection strategy to use.</p>
1392
- * <ul>
1393
- * <li>
1394
- * <p>
1395
- * <b>VERSION</b>: Detect conflicts based on object
1396
- * versions for this resolver.</p>
1397
- * </li>
1398
- * <li>
1399
- * <p>
1400
- * <b>NONE</b>: Do not detect conflicts when executing
1401
- * this resolver.</p>
1402
- * </li>
1403
- * </ul>
1404
- */
1405
- conflictDetection?: ConflictDetectionType | string;
1406
-
1407
- /**
1408
- * <p>The <code>LambdaConflictHandlerConfig</code> when configuring LAMBDA as the Conflict
1409
- * Handler.</p>
1410
- */
1411
- lambdaConflictHandlerConfig?: LambdaConflictHandlerConfig;
1412
- }
1413
-
1414
- export namespace SyncConfig {
1415
- /**
1416
- * @internal
1417
- */
1418
- export const filterSensitiveLog = (obj: SyncConfig): any => ({
1419
- ...obj,
1420
- });
1421
- }
1422
-
1423
- export interface CreateFunctionRequest {
1424
- /**
1425
- * <p>The GraphQL API ID.</p>
1426
- */
1427
- apiId: string | undefined;
1428
-
1429
- /**
1430
- * <p>The <code>Function</code> name. The function name does not have to be unique.</p>
1431
- */
1432
- name: string | undefined;
1433
-
1434
- /**
1435
- * <p>The <code>Function</code> description.</p>
1436
- */
1437
- description?: string;
1438
-
1439
- /**
1440
- * <p>The <code>Function</code>
1441
- * <code>DataSource</code> name.</p>
1442
- */
1443
- dataSourceName: string | undefined;
1444
-
1445
- /**
1446
- * <p>The <code>Function</code> request mapping template. Functions support only the
1447
- * 2018-05-29 version of the request mapping template.</p>
1448
- */
1449
- requestMappingTemplate?: string;
1450
-
1451
- /**
1452
- * <p>The <code>Function</code> response mapping template. </p>
1453
- */
1454
- responseMappingTemplate?: string;
1455
-
1456
- /**
1457
- * <p>The <code>version</code> of the request mapping template. Currently the supported value
1458
- * is 2018-05-29. </p>
1459
- */
1460
- functionVersion: string | undefined;
1461
-
1462
- /**
1463
- * <p>Describes a Sync configuration for a resolver.</p>
1464
- * <p>Contains information on which Conflict Detection as well as Resolution strategy should
1465
- * be performed when the resolver is invoked.</p>
1466
- */
1467
- syncConfig?: SyncConfig;
1468
- }
1469
-
1470
- export namespace CreateFunctionRequest {
1471
- /**
1472
- * @internal
1473
- */
1474
- export const filterSensitiveLog = (obj: CreateFunctionRequest): any => ({
1475
- ...obj,
1476
- });
1477
- }
1478
-
1479
- /**
1480
- * <p>A function is a reusable entity. Multiple functions can be used to compose the resolver
1481
- * logic.</p>
1482
- */
1483
- export interface FunctionConfiguration {
1484
- /**
1485
- * <p>A unique ID representing the <code>Function</code> object.</p>
1486
- */
1487
- functionId?: string;
1488
-
1489
- /**
1490
- * <p>The ARN of the <code>Function</code> object.</p>
1491
- */
1492
- functionArn?: string;
1493
-
1494
- /**
1495
- * <p>The name of the <code>Function</code> object.</p>
1496
- */
1497
- name?: string;
1498
-
1499
- /**
1500
- * <p>The <code>Function</code> description.</p>
1501
- */
1502
- description?: string;
1503
-
1504
- /**
1505
- * <p>The name of the <code>DataSource</code>.</p>
1506
- */
1507
- dataSourceName?: string;
1508
-
1509
- /**
1510
- * <p>The <code>Function</code> request mapping template. Functions support only the
1511
- * 2018-05-29 version of the request mapping template.</p>
1512
- */
1513
- requestMappingTemplate?: string;
1514
-
1515
- /**
1516
- * <p>The <code>Function</code> response mapping template.</p>
1517
- */
1518
- responseMappingTemplate?: string;
1519
-
1520
- /**
1521
- * <p>The version of the request mapping template. Currently only the 2018-05-29 version of
1522
- * the template is supported.</p>
1523
- */
1524
- functionVersion?: string;
1525
-
1526
- /**
1527
- * <p>Describes a Sync configuration for a resolver.</p>
1528
- * <p>Contains information on which Conflict Detection as well as Resolution strategy should
1529
- * be performed when the resolver is invoked.</p>
1530
- */
1531
- syncConfig?: SyncConfig;
1532
- }
1533
-
1534
- export namespace FunctionConfiguration {
1535
- /**
1536
- * @internal
1537
- */
1538
- export const filterSensitiveLog = (obj: FunctionConfiguration): any => ({
1539
- ...obj,
1540
- });
1541
- }
1542
-
1543
- export interface CreateFunctionResponse {
1544
- /**
1545
- * <p>The <code>Function</code> object.</p>
1546
- */
1547
- functionConfiguration?: FunctionConfiguration;
1548
- }
1549
-
1550
- export namespace CreateFunctionResponse {
1551
- /**
1552
- * @internal
1553
- */
1554
- export const filterSensitiveLog = (obj: CreateFunctionResponse): any => ({
1555
- ...obj,
1556
- });
1557
- }
1558
-
1559
- export enum FieldLogLevel {
1560
- ALL = "ALL",
1561
- ERROR = "ERROR",
1562
- NONE = "NONE",
1563
- }
1564
-
1565
- /**
1566
- * <p>The CloudWatch Logs configuration.</p>
1567
- */
1568
- export interface LogConfig {
1569
- /**
1570
- * <p>The field logging level. Values can be NONE, ERROR, or ALL. </p>
1571
- * <ul>
1572
- * <li>
1573
- * <p>
1574
- * <b>NONE</b>: No field-level logs are
1575
- * captured.</p>
1576
- * </li>
1577
- * <li>
1578
- * <p>
1579
- * <b>ERROR</b>: Logs the following information only for
1580
- * the fields that are in error:</p>
1581
- * <ul>
1582
- * <li>
1583
- * <p>The error section in the server response.</p>
1584
- * </li>
1585
- * <li>
1586
- * <p>Field-level errors.</p>
1587
- * </li>
1588
- * <li>
1589
- * <p>The generated request/response functions that got resolved for error
1590
- * fields.</p>
1591
- * </li>
1592
- * </ul>
1593
- * </li>
1594
- * <li>
1595
- * <p>
1596
- * <b>ALL</b>: The following information is logged for
1597
- * all fields in the query:</p>
1598
- * <ul>
1599
- * <li>
1600
- * <p>Field-level tracing information.</p>
1601
- * </li>
1602
- * <li>
1603
- * <p>The generated request/response functions that got resolved for each
1604
- * field.</p>
1605
- * </li>
1606
- * </ul>
1607
- * </li>
1608
- * </ul>
1609
- */
1610
- fieldLogLevel: FieldLogLevel | string | undefined;
1611
-
1612
- /**
1613
- * <p>The service role that AppSync will assume to publish to Amazon
1614
- * CloudWatch logs in your account. </p>
1615
- */
1616
- cloudWatchLogsRoleArn: string | undefined;
1617
-
1618
- /**
1619
- * <p>Set to TRUE to exclude sections that contain information such as headers, context, and
1620
- * evaluated mapping templates, regardless of logging level.</p>
1621
- */
1622
- excludeVerboseContent?: boolean;
1623
- }
1624
-
1625
- export namespace LogConfig {
1626
- /**
1627
- * @internal
1628
- */
1629
- export const filterSensitiveLog = (obj: LogConfig): any => ({
1630
- ...obj,
1631
- });
1632
- }
1633
-
1634
- export enum DefaultAction {
1635
- ALLOW = "ALLOW",
1636
- DENY = "DENY",
1637
- }
1638
-
1639
- /**
1640
- * <p>Describes an Amazon Cognito user pool configuration.</p>
1641
- */
1642
- export interface UserPoolConfig {
1643
- /**
1644
- * <p>The user pool ID.</p>
1645
- */
1646
- userPoolId: string | undefined;
1647
-
1648
- /**
1649
- * <p>The Amazon Web Services Region in which the user pool was created.</p>
1650
- */
1651
- awsRegion: string | undefined;
1652
-
1653
- /**
1654
- * <p>The action that you want your GraphQL API to take when a request that uses Amazon
1655
- * Cognito user pool authentication doesn't match the Amazon Cognito user pool
1656
- * configuration.</p>
1657
- */
1658
- defaultAction: DefaultAction | string | undefined;
1659
-
1660
- /**
1661
- * <p>A regular expression for validating the incoming Amazon Cognito user pool app client
1662
- * ID.</p>
1663
- */
1664
- appIdClientRegex?: string;
1665
- }
1666
-
1667
- export namespace UserPoolConfig {
1668
- /**
1669
- * @internal
1670
- */
1671
- export const filterSensitiveLog = (obj: UserPoolConfig): any => ({
1672
- ...obj,
1673
- });
1674
- }
1675
-
1676
- export interface CreateGraphqlApiRequest {
1677
- /**
1678
- * <p>A user-supplied name for the <code>GraphqlApi</code>.</p>
1679
- */
1680
- name: string | undefined;
1681
-
1682
- /**
1683
- * <p>The Amazon CloudWatch Logs configuration.</p>
1684
- */
1685
- logConfig?: LogConfig;
1686
-
1687
- /**
1688
- * <p>The authentication type: API key, Identity and Access Management, OIDC, Amazon Cognito user
1689
- * pools, or Amazon Web Services Lambda.</p>
1690
- */
1691
- authenticationType: AuthenticationType | string | undefined;
1692
-
1693
- /**
1694
- * <p>The Amazon Cognito user pool configuration.</p>
1695
- */
1696
- userPoolConfig?: UserPoolConfig;
1697
-
1698
- /**
1699
- * <p>The OpenID Connect configuration.</p>
1700
- */
1701
- openIDConnectConfig?: OpenIDConnectConfig;
1702
-
1703
- /**
1704
- * <p>A <code>TagMap</code> object.</p>
1705
- */
1706
- tags?: { [key: string]: string };
1707
-
1708
- /**
1709
- * <p>A list of additional authentication providers for the <code>GraphqlApi</code>
1710
- * API.</p>
1711
- */
1712
- additionalAuthenticationProviders?: AdditionalAuthenticationProvider[];
1713
-
1714
- /**
1715
- * <p>A flag indicating whether to enable X-Ray tracing for the
1716
- * <code>GraphqlApi</code>.</p>
1717
- */
1718
- xrayEnabled?: boolean;
1719
-
1720
- /**
1721
- * <p>Configuration for Amazon Web Services Lambda function authorization.</p>
1722
- */
1723
- lambdaAuthorizerConfig?: LambdaAuthorizerConfig;
1724
- }
1725
-
1726
- export namespace CreateGraphqlApiRequest {
1727
- /**
1728
- * @internal
1729
- */
1730
- export const filterSensitiveLog = (obj: CreateGraphqlApiRequest): any => ({
1731
- ...obj,
1732
- });
1733
- }
1734
-
1735
- /**
1736
- * <p>Describes a GraphQL API.</p>
1737
- */
1738
- export interface GraphqlApi {
1739
- /**
1740
- * <p>The API name.</p>
1741
- */
1742
- name?: string;
1743
-
1744
- /**
1745
- * <p>The API ID.</p>
1746
- */
1747
- apiId?: string;
1748
-
1749
- /**
1750
- * <p>The authentication type.</p>
1751
- */
1752
- authenticationType?: AuthenticationType | string;
1753
-
1754
- /**
1755
- * <p>The Amazon CloudWatch Logs configuration.</p>
1756
- */
1757
- logConfig?: LogConfig;
1758
-
1759
- /**
1760
- * <p>The Amazon Cognito user pool configuration.</p>
1761
- */
1762
- userPoolConfig?: UserPoolConfig;
1763
-
1764
- /**
1765
- * <p>The OpenID Connect configuration.</p>
1766
- */
1767
- openIDConnectConfig?: OpenIDConnectConfig;
1768
-
1769
- /**
1770
- * <p>The ARN.</p>
1771
- */
1772
- arn?: string;
1773
-
1774
- /**
1775
- * <p>The URIs.</p>
1776
- */
1777
- uris?: { [key: string]: string };
1778
-
1779
- /**
1780
- * <p>The tags.</p>
1781
- */
1782
- tags?: { [key: string]: string };
1783
-
1784
- /**
1785
- * <p>A list of additional authentication providers for the <code>GraphqlApi</code>
1786
- * API.</p>
1787
- */
1788
- additionalAuthenticationProviders?: AdditionalAuthenticationProvider[];
1789
-
1790
- /**
1791
- * <p>A flag representing whether X-Ray tracing is enabled for this
1792
- * <code>GraphqlApi</code>.</p>
1793
- */
1794
- xrayEnabled?: boolean;
1795
-
1796
- /**
1797
- * <p>The ARN of the WAF ACL associated with this <code>GraphqlApi</code>,
1798
- * if one exists.</p>
1799
- */
1800
- wafWebAclArn?: string;
1801
-
1802
- /**
1803
- * <p>Configuration for Amazon Web Services Lambda function authorization.</p>
1804
- */
1805
- lambdaAuthorizerConfig?: LambdaAuthorizerConfig;
1806
- }
1807
-
1808
- export namespace GraphqlApi {
1809
- /**
1810
- * @internal
1811
- */
1812
- export const filterSensitiveLog = (obj: GraphqlApi): any => ({
1813
- ...obj,
1814
- });
1815
- }
1816
-
1817
- export interface CreateGraphqlApiResponse {
1818
- /**
1819
- * <p>The <code>GraphqlApi</code>.</p>
1820
- */
1821
- graphqlApi?: GraphqlApi;
1822
- }
1823
-
1824
- export namespace CreateGraphqlApiResponse {
1825
- /**
1826
- * @internal
1827
- */
1828
- export const filterSensitiveLog = (obj: CreateGraphqlApiResponse): any => ({
1829
- ...obj,
1830
- });
1831
- }
1832
-
1833
- /**
1834
- * <p>The caching configuration for a resolver that has caching enabled.</p>
1835
- */
1836
- export interface CachingConfig {
1837
- /**
1838
- * <p>The TTL in seconds for a resolver that has caching enabled.</p>
1839
- * <p>Valid values are between 1 and 3600 seconds.</p>
1840
- */
1841
- ttl?: number;
1842
-
1843
- /**
1844
- * <p>The caching keys for a resolver that has caching enabled.</p>
1845
- * <p>Valid values are entries from the <code>$context.arguments</code>,
1846
- * <code>$context.source</code>, and <code>$context.identity</code> maps.</p>
1847
- */
1848
- cachingKeys?: string[];
1849
- }
1850
-
1851
- export namespace CachingConfig {
1852
- /**
1853
- * @internal
1854
- */
1855
- export const filterSensitiveLog = (obj: CachingConfig): any => ({
1856
- ...obj,
1857
- });
1858
- }
1859
-
1860
- export enum ResolverKind {
1861
- PIPELINE = "PIPELINE",
1862
- UNIT = "UNIT",
1863
- }
1864
-
1865
- /**
1866
- * <p>The pipeline configuration for a resolver of kind <code>PIPELINE</code>.</p>
1867
- */
1868
- export interface PipelineConfig {
1869
- /**
1870
- * <p>A list of <code>Function</code> objects.</p>
1871
- */
1872
- functions?: string[];
1873
- }
1874
-
1875
- export namespace PipelineConfig {
1876
- /**
1877
- * @internal
1878
- */
1879
- export const filterSensitiveLog = (obj: PipelineConfig): any => ({
1880
- ...obj,
1881
- });
1882
- }
1883
-
1884
- export interface CreateResolverRequest {
1885
- /**
1886
- * <p>The ID for the GraphQL API for which the resolver is being created.</p>
1887
- */
1888
- apiId: string | undefined;
1889
-
1890
- /**
1891
- * <p>The name of the <code>Type</code>.</p>
1892
- */
1893
- typeName: string | undefined;
1894
-
1895
- /**
1896
- * <p>The name of the field to attach the resolver to.</p>
1897
- */
1898
- fieldName: string | undefined;
1899
-
1900
- /**
1901
- * <p>The name of the data source for which the resolver is being created.</p>
1902
- */
1903
- dataSourceName?: string;
1904
-
1905
- /**
1906
- * <p>The mapping template to be used for requests.</p>
1907
- * <p>A resolver uses a request mapping template to convert a GraphQL expression into a format
1908
- * that a data source can understand. Mapping templates are written in Apache Velocity
1909
- * Template Language (VTL).</p>
1910
- * <p>VTL request mapping templates are optional when using a Lambda data source. For all
1911
- * other data sources, VTL request and response mapping templates are required.</p>
1912
- */
1913
- requestMappingTemplate?: string;
1914
-
1915
- /**
1916
- * <p>The mapping template to be used for responses from the data source.</p>
1917
- */
1918
- responseMappingTemplate?: string;
1919
-
1920
- /**
1921
- * <p>The resolver type.</p>
1922
- * <ul>
1923
- * <li>
1924
- * <p>
1925
- * <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is
1926
- * the default resolver type. A UNIT resolver enables you to execute a GraphQL query
1927
- * against a single data source.</p>
1928
- * </li>
1929
- * <li>
1930
- * <p>
1931
- * <b>PIPELINE</b>: A PIPELINE resolver type. A PIPELINE
1932
- * resolver enables you to execute a series of <code>Function</code> in a serial manner.
1933
- * You can use a pipeline resolver to execute a GraphQL query against multiple data
1934
- * sources.</p>
1935
- * </li>
1936
- * </ul>
1937
- */
1938
- kind?: ResolverKind | string;
1939
-
1940
- /**
1941
- * <p>The <code>PipelineConfig</code>.</p>
1942
- */
1943
- pipelineConfig?: PipelineConfig;
1944
-
1945
- /**
1946
- * <p>The <code>SyncConfig</code> for a resolver attached to a versioned datasource.</p>
1947
- */
1948
- syncConfig?: SyncConfig;
1949
-
1950
- /**
1951
- * <p>The caching configuration for the resolver.</p>
1952
- */
1953
- cachingConfig?: CachingConfig;
1954
- }
1955
-
1956
- export namespace CreateResolverRequest {
1957
- /**
1958
- * @internal
1959
- */
1960
- export const filterSensitiveLog = (obj: CreateResolverRequest): any => ({
1961
- ...obj,
1962
- });
1963
- }
1964
-
1965
- /**
1966
- * <p>Describes a resolver.</p>
1967
- */
1968
- export interface Resolver {
1969
- /**
1970
- * <p>The resolver type name.</p>
1971
- */
1972
- typeName?: string;
1973
-
1974
- /**
1975
- * <p>The resolver field name.</p>
1976
- */
1977
- fieldName?: string;
1978
-
1979
- /**
1980
- * <p>The resolver data source name.</p>
1981
- */
1982
- dataSourceName?: string;
1983
-
1984
- /**
1985
- * <p>The resolver ARN.</p>
1986
- */
1987
- resolverArn?: string;
1988
-
1989
- /**
1990
- * <p>The request mapping template.</p>
1991
- */
1992
- requestMappingTemplate?: string;
1993
-
1994
- /**
1995
- * <p>The response mapping template.</p>
1996
- */
1997
- responseMappingTemplate?: string;
1998
-
1999
- /**
2000
- * <p>The resolver type.</p>
2001
- * <ul>
2002
- * <li>
2003
- * <p>
2004
- * <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is
2005
- * the default resolver type. A UNIT resolver enables you to execute a GraphQL query
2006
- * against a single data source.</p>
2007
- * </li>
2008
- * <li>
2009
- * <p>
2010
- * <b>PIPELINE</b>: A PIPELINE resolver type. A PIPELINE
2011
- * resolver enables you to execute a series of <code>Function</code> in a serial manner.
2012
- * You can use a pipeline resolver to execute a GraphQL query against multiple data
2013
- * sources.</p>
2014
- * </li>
2015
- * </ul>
2016
- */
2017
- kind?: ResolverKind | string;
2018
-
2019
- /**
2020
- * <p>The <code>PipelineConfig</code>.</p>
2021
- */
2022
- pipelineConfig?: PipelineConfig;
2023
-
2024
- /**
2025
- * <p>The <code>SyncConfig</code> for a resolver attached to a versioned datasource.</p>
2026
- */
2027
- syncConfig?: SyncConfig;
2028
-
2029
- /**
2030
- * <p>The caching configuration for the resolver.</p>
2031
- */
2032
- cachingConfig?: CachingConfig;
2033
- }
2034
-
2035
- export namespace Resolver {
2036
- /**
2037
- * @internal
2038
- */
2039
- export const filterSensitiveLog = (obj: Resolver): any => ({
2040
- ...obj,
2041
- });
2042
- }
2043
-
2044
- export interface CreateResolverResponse {
2045
- /**
2046
- * <p>The <code>Resolver</code> object.</p>
2047
- */
2048
- resolver?: Resolver;
2049
- }
2050
-
2051
- export namespace CreateResolverResponse {
2052
- /**
2053
- * @internal
2054
- */
2055
- export const filterSensitiveLog = (obj: CreateResolverResponse): any => ({
2056
- ...obj,
2057
- });
2058
- }
2059
-
2060
- export enum TypeDefinitionFormat {
2061
- JSON = "JSON",
2062
- SDL = "SDL",
2063
- }
2064
-
2065
- export interface CreateTypeRequest {
2066
- /**
2067
- * <p>The API ID.</p>
2068
- */
2069
- apiId: string | undefined;
2070
-
2071
- /**
2072
- * <p>The type definition, in GraphQL Schema Definition Language (SDL) format.</p>
2073
- * <p>For more information, see the <a href="http://graphql.org/learn/schema/">GraphQL SDL
2074
- * documentation</a>.</p>
2075
- */
2076
- definition: string | undefined;
2077
-
2078
- /**
2079
- * <p>The type format: SDL or JSON.</p>
2080
- */
2081
- format: TypeDefinitionFormat | string | undefined;
2082
- }
2083
-
2084
- export namespace CreateTypeRequest {
2085
- /**
2086
- * @internal
2087
- */
2088
- export const filterSensitiveLog = (obj: CreateTypeRequest): any => ({
2089
- ...obj,
2090
- });
2091
- }
2092
-
2093
- /**
2094
- * <p>Describes a type.</p>
2095
- */
2096
- export interface Type {
2097
- /**
2098
- * <p>The type name.</p>
2099
- */
2100
- name?: string;
2101
-
2102
- /**
2103
- * <p>The type description.</p>
2104
- */
2105
- description?: string;
2106
-
2107
- /**
2108
- * <p>The type ARN.</p>
2109
- */
2110
- arn?: string;
2111
-
2112
- /**
2113
- * <p>The type definition.</p>
2114
- */
2115
- definition?: string;
2116
-
2117
- /**
2118
- * <p>The type format: SDL or JSON.</p>
2119
- */
2120
- format?: TypeDefinitionFormat | string;
2121
- }
2122
-
2123
- export namespace Type {
2124
- /**
2125
- * @internal
2126
- */
2127
- export const filterSensitiveLog = (obj: Type): any => ({
2128
- ...obj,
2129
- });
2130
- }
2131
-
2132
- export interface CreateTypeResponse {
2133
- /**
2134
- * <p>The <code>Type</code> object.</p>
2135
- */
2136
- type?: Type;
2137
- }
2138
-
2139
- export namespace CreateTypeResponse {
2140
- /**
2141
- * @internal
2142
- */
2143
- export const filterSensitiveLog = (obj: CreateTypeResponse): any => ({
2144
- ...obj,
2145
- });
2146
- }
2147
-
2148
- /**
2149
- * <p>Represents the input of a <code>DeleteApiCache</code> operation.</p>
2150
- */
2151
- export interface DeleteApiCacheRequest {
2152
- /**
2153
- * <p>The API ID.</p>
2154
- */
2155
- apiId: string | undefined;
2156
- }
2157
-
2158
- export namespace DeleteApiCacheRequest {
2159
- /**
2160
- * @internal
2161
- */
2162
- export const filterSensitiveLog = (obj: DeleteApiCacheRequest): any => ({
2163
- ...obj,
2164
- });
2165
- }
2166
-
2167
- /**
2168
- * <p>Represents the output of a <code>DeleteApiCache</code> operation.</p>
2169
- */
2170
- export interface DeleteApiCacheResponse {}
2171
-
2172
- export namespace DeleteApiCacheResponse {
2173
- /**
2174
- * @internal
2175
- */
2176
- export const filterSensitiveLog = (obj: DeleteApiCacheResponse): any => ({
2177
- ...obj,
2178
- });
2179
- }
2180
-
2181
- export interface DeleteApiKeyRequest {
2182
- /**
2183
- * <p>The API ID.</p>
2184
- */
2185
- apiId: string | undefined;
2186
-
2187
- /**
2188
- * <p>The ID for the API key.</p>
2189
- */
2190
- id: string | undefined;
2191
- }
2192
-
2193
- export namespace DeleteApiKeyRequest {
2194
- /**
2195
- * @internal
2196
- */
2197
- export const filterSensitiveLog = (obj: DeleteApiKeyRequest): any => ({
2198
- ...obj,
2199
- });
2200
- }
2201
-
2202
- export interface DeleteApiKeyResponse {}
2203
-
2204
- export namespace DeleteApiKeyResponse {
2205
- /**
2206
- * @internal
2207
- */
2208
- export const filterSensitiveLog = (obj: DeleteApiKeyResponse): any => ({
2209
- ...obj,
2210
- });
2211
- }
2212
-
2213
- export interface DeleteDataSourceRequest {
2214
- /**
2215
- * <p>The API ID.</p>
2216
- */
2217
- apiId: string | undefined;
2218
-
2219
- /**
2220
- * <p>The name of the data source.</p>
2221
- */
2222
- name: string | undefined;
2223
- }
2224
-
2225
- export namespace DeleteDataSourceRequest {
2226
- /**
2227
- * @internal
2228
- */
2229
- export const filterSensitiveLog = (obj: DeleteDataSourceRequest): any => ({
2230
- ...obj,
2231
- });
2232
- }
2233
-
2234
- export interface DeleteDataSourceResponse {}
2235
-
2236
- export namespace DeleteDataSourceResponse {
2237
- /**
2238
- * @internal
2239
- */
2240
- export const filterSensitiveLog = (obj: DeleteDataSourceResponse): any => ({
2241
- ...obj,
2242
- });
2243
- }
2244
-
2245
- export interface DeleteFunctionRequest {
2246
- /**
2247
- * <p>The GraphQL API ID.</p>
2248
- */
2249
- apiId: string | undefined;
2250
-
2251
- /**
2252
- * <p>The <code>Function</code> ID.</p>
2253
- */
2254
- functionId: string | undefined;
2255
- }
2256
-
2257
- export namespace DeleteFunctionRequest {
2258
- /**
2259
- * @internal
2260
- */
2261
- export const filterSensitiveLog = (obj: DeleteFunctionRequest): any => ({
2262
- ...obj,
2263
- });
2264
- }
2265
-
2266
- export interface DeleteFunctionResponse {}
2267
-
2268
- export namespace DeleteFunctionResponse {
2269
- /**
2270
- * @internal
2271
- */
2272
- export const filterSensitiveLog = (obj: DeleteFunctionResponse): any => ({
2273
- ...obj,
2274
- });
2275
- }
2276
-
2277
- export interface DeleteGraphqlApiRequest {
2278
- /**
2279
- * <p>The API ID.</p>
2280
- */
2281
- apiId: string | undefined;
2282
- }
2283
-
2284
- export namespace DeleteGraphqlApiRequest {
2285
- /**
2286
- * @internal
2287
- */
2288
- export const filterSensitiveLog = (obj: DeleteGraphqlApiRequest): any => ({
2289
- ...obj,
2290
- });
2291
- }
2292
-
2293
- export interface DeleteGraphqlApiResponse {}
2294
-
2295
- export namespace DeleteGraphqlApiResponse {
2296
- /**
2297
- * @internal
2298
- */
2299
- export const filterSensitiveLog = (obj: DeleteGraphqlApiResponse): any => ({
2300
- ...obj,
2301
- });
2302
- }
2303
-
2304
- export interface DeleteResolverRequest {
2305
- /**
2306
- * <p>The API ID.</p>
2307
- */
2308
- apiId: string | undefined;
2309
-
2310
- /**
2311
- * <p>The name of the resolver type.</p>
2312
- */
2313
- typeName: string | undefined;
2314
-
2315
- /**
2316
- * <p>The resolver field name.</p>
2317
- */
2318
- fieldName: string | undefined;
2319
- }
2320
-
2321
- export namespace DeleteResolverRequest {
2322
- /**
2323
- * @internal
2324
- */
2325
- export const filterSensitiveLog = (obj: DeleteResolverRequest): any => ({
2326
- ...obj,
2327
- });
2328
- }
2329
-
2330
- export interface DeleteResolverResponse {}
2331
-
2332
- export namespace DeleteResolverResponse {
2333
- /**
2334
- * @internal
2335
- */
2336
- export const filterSensitiveLog = (obj: DeleteResolverResponse): any => ({
2337
- ...obj,
2338
- });
2339
- }
2340
-
2341
- export interface DeleteTypeRequest {
2342
- /**
2343
- * <p>The API ID.</p>
2344
- */
2345
- apiId: string | undefined;
2346
-
2347
- /**
2348
- * <p>The type name.</p>
2349
- */
2350
- typeName: string | undefined;
2351
- }
2352
-
2353
- export namespace DeleteTypeRequest {
2354
- /**
2355
- * @internal
2356
- */
2357
- export const filterSensitiveLog = (obj: DeleteTypeRequest): any => ({
2358
- ...obj,
2359
- });
2360
- }
2361
-
2362
- export interface DeleteTypeResponse {}
2363
-
2364
- export namespace DeleteTypeResponse {
2365
- /**
2366
- * @internal
2367
- */
2368
- export const filterSensitiveLog = (obj: DeleteTypeResponse): any => ({
2369
- ...obj,
2370
- });
2371
- }
2372
-
2373
- /**
2374
- * <p>Represents the input of a <code>FlushApiCache</code> operation.</p>
2375
- */
2376
- export interface FlushApiCacheRequest {
2377
- /**
2378
- * <p>The API ID.</p>
2379
- */
2380
- apiId: string | undefined;
2381
- }
2382
-
2383
- export namespace FlushApiCacheRequest {
2384
- /**
2385
- * @internal
2386
- */
2387
- export const filterSensitiveLog = (obj: FlushApiCacheRequest): any => ({
2388
- ...obj,
2389
- });
2390
- }
2391
-
2392
- /**
2393
- * <p>Represents the output of a <code>FlushApiCache</code> operation.</p>
2394
- */
2395
- export interface FlushApiCacheResponse {}
2396
-
2397
- export namespace FlushApiCacheResponse {
2398
- /**
2399
- * @internal
2400
- */
2401
- export const filterSensitiveLog = (obj: FlushApiCacheResponse): any => ({
2402
- ...obj,
2403
- });
2404
- }
2405
-
2406
- /**
2407
- * <p>Represents the input of a <code>GetApiCache</code> operation.</p>
2408
- */
2409
- export interface GetApiCacheRequest {
2410
- /**
2411
- * <p>The API ID.</p>
2412
- */
2413
- apiId: string | undefined;
2414
- }
2415
-
2416
- export namespace GetApiCacheRequest {
2417
- /**
2418
- * @internal
2419
- */
2420
- export const filterSensitiveLog = (obj: GetApiCacheRequest): any => ({
2421
- ...obj,
2422
- });
2423
- }
2424
-
2425
- /**
2426
- * <p>Represents the output of a <code>GetApiCache</code> operation.</p>
2427
- */
2428
- export interface GetApiCacheResponse {
2429
- /**
2430
- * <p>The <code>ApiCache</code> object.</p>
2431
- */
2432
- apiCache?: ApiCache;
2433
- }
2434
-
2435
- export namespace GetApiCacheResponse {
2436
- /**
2437
- * @internal
2438
- */
2439
- export const filterSensitiveLog = (obj: GetApiCacheResponse): any => ({
2440
- ...obj,
2441
- });
2442
- }
2443
-
2444
- export interface GetDataSourceRequest {
2445
- /**
2446
- * <p>The API ID.</p>
2447
- */
2448
- apiId: string | undefined;
2449
-
2450
- /**
2451
- * <p>The name of the data source.</p>
2452
- */
2453
- name: string | undefined;
2454
- }
2455
-
2456
- export namespace GetDataSourceRequest {
2457
- /**
2458
- * @internal
2459
- */
2460
- export const filterSensitiveLog = (obj: GetDataSourceRequest): any => ({
2461
- ...obj,
2462
- });
2463
- }
2464
-
2465
- export interface GetDataSourceResponse {
2466
- /**
2467
- * <p>The <code>DataSource</code> object.</p>
2468
- */
2469
- dataSource?: DataSource;
2470
- }
2471
-
2472
- export namespace GetDataSourceResponse {
2473
- /**
2474
- * @internal
2475
- */
2476
- export const filterSensitiveLog = (obj: GetDataSourceResponse): any => ({
2477
- ...obj,
2478
- });
2479
- }
2480
-
2481
- export interface GetFunctionRequest {
2482
- /**
2483
- * <p>The GraphQL API ID.</p>
2484
- */
2485
- apiId: string | undefined;
2486
-
2487
- /**
2488
- * <p>The <code>Function</code> ID.</p>
2489
- */
2490
- functionId: string | undefined;
2491
- }
2492
-
2493
- export namespace GetFunctionRequest {
2494
- /**
2495
- * @internal
2496
- */
2497
- export const filterSensitiveLog = (obj: GetFunctionRequest): any => ({
2498
- ...obj,
2499
- });
2500
- }
2501
-
2502
- export interface GetFunctionResponse {
2503
- /**
2504
- * <p>The <code>Function</code> object.</p>
2505
- */
2506
- functionConfiguration?: FunctionConfiguration;
2507
- }
2508
-
2509
- export namespace GetFunctionResponse {
2510
- /**
2511
- * @internal
2512
- */
2513
- export const filterSensitiveLog = (obj: GetFunctionResponse): any => ({
2514
- ...obj,
2515
- });
2516
- }
2517
-
2518
- export interface GetGraphqlApiRequest {
2519
- /**
2520
- * <p>The API ID for the GraphQL API.</p>
2521
- */
2522
- apiId: string | undefined;
2523
- }
2524
-
2525
- export namespace GetGraphqlApiRequest {
2526
- /**
2527
- * @internal
2528
- */
2529
- export const filterSensitiveLog = (obj: GetGraphqlApiRequest): any => ({
2530
- ...obj,
2531
- });
2532
- }
2533
-
2534
- export interface GetGraphqlApiResponse {
2535
- /**
2536
- * <p>The <code>GraphqlApi</code> object.</p>
2537
- */
2538
- graphqlApi?: GraphqlApi;
2539
- }
2540
-
2541
- export namespace GetGraphqlApiResponse {
2542
- /**
2543
- * @internal
2544
- */
2545
- export const filterSensitiveLog = (obj: GetGraphqlApiResponse): any => ({
2546
- ...obj,
2547
- });
2548
- }
2549
-
2550
- export enum OutputType {
2551
- JSON = "JSON",
2552
- SDL = "SDL",
2553
- }
2554
-
2555
- export interface GetIntrospectionSchemaRequest {
2556
- /**
2557
- * <p>The API ID.</p>
2558
- */
2559
- apiId: string | undefined;
2560
-
2561
- /**
2562
- * <p>The schema format: SDL or JSON.</p>
2563
- */
2564
- format: OutputType | string | undefined;
2565
-
2566
- /**
2567
- * <p>A flag that specifies whether the schema introspection should contain directives.</p>
2568
- */
2569
- includeDirectives?: boolean;
2570
- }
2571
-
2572
- export namespace GetIntrospectionSchemaRequest {
2573
- /**
2574
- * @internal
2575
- */
2576
- export const filterSensitiveLog = (obj: GetIntrospectionSchemaRequest): any => ({
2577
- ...obj,
2578
- });
2579
- }
2580
-
2581
- export interface GetIntrospectionSchemaResponse {
2582
- /**
2583
- * <p>The schema, in GraphQL Schema Definition Language (SDL) format.</p>
2584
- * <p>For more information, see the <a href="http://graphql.org/learn/schema/">GraphQL SDL
2585
- * documentation</a>.</p>
2586
- */
2587
- schema?: Uint8Array;
2588
- }
2589
-
2590
- export namespace GetIntrospectionSchemaResponse {
2591
- /**
2592
- * @internal
2593
- */
2594
- export const filterSensitiveLog = (obj: GetIntrospectionSchemaResponse): any => ({
2595
- ...obj,
2596
- });
2597
- }
2598
-
2599
- /**
2600
- * <p>The GraphQL schema is not valid.</p>
2601
- */
2602
- export interface GraphQLSchemaException extends __SmithyException, $MetadataBearer {
2603
- name: "GraphQLSchemaException";
2604
- $fault: "client";
2605
- message?: string;
2606
- }
2607
-
2608
- export namespace GraphQLSchemaException {
2609
- /**
2610
- * @internal
2611
- */
2612
- export const filterSensitiveLog = (obj: GraphQLSchemaException): any => ({
2613
- ...obj,
2614
- });
2615
- }
2616
-
2617
- export interface GetResolverRequest {
2618
- /**
2619
- * <p>The API ID.</p>
2620
- */
2621
- apiId: string | undefined;
2622
-
2623
- /**
2624
- * <p>The resolver type name.</p>
2625
- */
2626
- typeName: string | undefined;
2627
-
2628
- /**
2629
- * <p>The resolver field name.</p>
2630
- */
2631
- fieldName: string | undefined;
2632
- }
2633
-
2634
- export namespace GetResolverRequest {
2635
- /**
2636
- * @internal
2637
- */
2638
- export const filterSensitiveLog = (obj: GetResolverRequest): any => ({
2639
- ...obj,
2640
- });
2641
- }
2642
-
2643
- export interface GetResolverResponse {
2644
- /**
2645
- * <p>The <code>Resolver</code> object.</p>
2646
- */
2647
- resolver?: Resolver;
2648
- }
2649
-
2650
- export namespace GetResolverResponse {
2651
- /**
2652
- * @internal
2653
- */
2654
- export const filterSensitiveLog = (obj: GetResolverResponse): any => ({
2655
- ...obj,
2656
- });
2657
- }
2658
-
2659
- export interface GetSchemaCreationStatusRequest {
2660
- /**
2661
- * <p>The API ID.</p>
2662
- */
2663
- apiId: string | undefined;
2664
- }
2665
-
2666
- export namespace GetSchemaCreationStatusRequest {
2667
- /**
2668
- * @internal
2669
- */
2670
- export const filterSensitiveLog = (obj: GetSchemaCreationStatusRequest): any => ({
2671
- ...obj,
2672
- });
2673
- }
2674
-
2675
- export enum SchemaStatus {
2676
- Active = "ACTIVE",
2677
- Deleting = "DELETING",
2678
- Failed = "FAILED",
2679
- NotApplicable = "NOT_APPLICABLE",
2680
- Processing = "PROCESSING",
2681
- Success = "SUCCESS",
2682
- }
2683
-
2684
- export interface GetSchemaCreationStatusResponse {
2685
- /**
2686
- * <p>The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When
2687
- * the schema is in the ACTIVE state, you can add data.</p>
2688
- */
2689
- status?: SchemaStatus | string;
2690
-
2691
- /**
2692
- * <p>Detailed information about the status of the schema creation operation.</p>
2693
- */
2694
- details?: string;
2695
- }
2696
-
2697
- export namespace GetSchemaCreationStatusResponse {
2698
- /**
2699
- * @internal
2700
- */
2701
- export const filterSensitiveLog = (obj: GetSchemaCreationStatusResponse): any => ({
2702
- ...obj,
2703
- });
2704
- }
2705
-
2706
- export interface GetTypeRequest {
2707
- /**
2708
- * <p>The API ID.</p>
2709
- */
2710
- apiId: string | undefined;
2711
-
2712
- /**
2713
- * <p>The type name.</p>
2714
- */
2715
- typeName: string | undefined;
2716
-
2717
- /**
2718
- * <p>The type format: SDL or JSON.</p>
2719
- */
2720
- format: TypeDefinitionFormat | string | undefined;
2721
- }
2722
-
2723
- export namespace GetTypeRequest {
2724
- /**
2725
- * @internal
2726
- */
2727
- export const filterSensitiveLog = (obj: GetTypeRequest): any => ({
2728
- ...obj,
2729
- });
2730
- }
2731
-
2732
- export interface GetTypeResponse {
2733
- /**
2734
- * <p>The <code>Type</code> object.</p>
2735
- */
2736
- type?: Type;
2737
- }
2738
-
2739
- export namespace GetTypeResponse {
2740
- /**
2741
- * @internal
2742
- */
2743
- export const filterSensitiveLog = (obj: GetTypeResponse): any => ({
2744
- ...obj,
2745
- });
2746
- }
2747
-
2748
- export interface ListApiKeysRequest {
2749
- /**
2750
- * <p>The API ID.</p>
2751
- */
2752
- apiId: string | undefined;
2753
-
2754
- /**
2755
- * <p>An identifier that was returned from the previous call to this operation, which can be
2756
- * used to return the next set of items in the list.</p>
2757
- */
2758
- nextToken?: string;
2759
-
2760
- /**
2761
- * <p>The maximum number of results you want the request to return.</p>
2762
- */
2763
- maxResults?: number;
2764
- }
2765
-
2766
- export namespace ListApiKeysRequest {
2767
- /**
2768
- * @internal
2769
- */
2770
- export const filterSensitiveLog = (obj: ListApiKeysRequest): any => ({
2771
- ...obj,
2772
- });
2773
- }
2774
-
2775
- export interface ListApiKeysResponse {
2776
- /**
2777
- * <p>The <code>ApiKey</code> objects.</p>
2778
- */
2779
- apiKeys?: ApiKey[];
2780
-
2781
- /**
2782
- * <p>An identifier to be passed in the next request to this operation to return the next set
2783
- * of items in the list.</p>
2784
- */
2785
- nextToken?: string;
2786
- }
2787
-
2788
- export namespace ListApiKeysResponse {
2789
- /**
2790
- * @internal
2791
- */
2792
- export const filterSensitiveLog = (obj: ListApiKeysResponse): any => ({
2793
- ...obj,
2794
- });
2795
- }
2796
-
2797
- export interface ListDataSourcesRequest {
2798
- /**
2799
- * <p>The API ID.</p>
2800
- */
2801
- apiId: string | undefined;
2802
-
2803
- /**
2804
- * <p>An identifier that was returned from the previous call to this operation, which can be
2805
- * used to return the next set of items in the list. </p>
2806
- */
2807
- nextToken?: string;
2808
-
2809
- /**
2810
- * <p>The maximum number of results you want the request to return.</p>
2811
- */
2812
- maxResults?: number;
2813
- }
2814
-
2815
- export namespace ListDataSourcesRequest {
2816
- /**
2817
- * @internal
2818
- */
2819
- export const filterSensitiveLog = (obj: ListDataSourcesRequest): any => ({
2820
- ...obj,
2821
- });
2822
- }
2823
-
2824
- export interface ListDataSourcesResponse {
2825
- /**
2826
- * <p>The <code>DataSource</code> objects.</p>
2827
- */
2828
- dataSources?: DataSource[];
2829
-
2830
- /**
2831
- * <p>An identifier to be passed in the next request to this operation to return the next set
2832
- * of items in the list.</p>
2833
- */
2834
- nextToken?: string;
2835
- }
2836
-
2837
- export namespace ListDataSourcesResponse {
2838
- /**
2839
- * @internal
2840
- */
2841
- export const filterSensitiveLog = (obj: ListDataSourcesResponse): any => ({
2842
- ...obj,
2843
- });
2844
- }
2845
-
2846
- export interface ListFunctionsRequest {
2847
- /**
2848
- * <p>The GraphQL API ID.</p>
2849
- */
2850
- apiId: string | undefined;
2851
-
2852
- /**
2853
- * <p>An identifier that was returned from the previous call to this operation, which can be
2854
- * used to return the next set of items in the list.</p>
2855
- */
2856
- nextToken?: string;
2857
-
2858
- /**
2859
- * <p>The maximum number of results you want the request to return.</p>
2860
- */
2861
- maxResults?: number;
2862
- }
2863
-
2864
- export namespace ListFunctionsRequest {
2865
- /**
2866
- * @internal
2867
- */
2868
- export const filterSensitiveLog = (obj: ListFunctionsRequest): any => ({
2869
- ...obj,
2870
- });
2871
- }
2872
-
2873
- export interface ListFunctionsResponse {
2874
- /**
2875
- * <p>A list of <code>Function</code> objects.</p>
2876
- */
2877
- functions?: FunctionConfiguration[];
2878
-
2879
- /**
2880
- * <p>An identifier that was returned from the previous call to this operation, which can be
2881
- * used to return the next set of items in the list.</p>
2882
- */
2883
- nextToken?: string;
2884
- }
2885
-
2886
- export namespace ListFunctionsResponse {
2887
- /**
2888
- * @internal
2889
- */
2890
- export const filterSensitiveLog = (obj: ListFunctionsResponse): any => ({
2891
- ...obj,
2892
- });
2893
- }
2894
-
2895
- export interface ListGraphqlApisRequest {
2896
- /**
2897
- * <p>An identifier that was returned from the previous call to this operation, which can be
2898
- * used to return the next set of items in the list. </p>
2899
- */
2900
- nextToken?: string;
2901
-
2902
- /**
2903
- * <p>The maximum number of results you want the request to return.</p>
2904
- */
2905
- maxResults?: number;
2906
- }
2907
-
2908
- export namespace ListGraphqlApisRequest {
2909
- /**
2910
- * @internal
2911
- */
2912
- export const filterSensitiveLog = (obj: ListGraphqlApisRequest): any => ({
2913
- ...obj,
2914
- });
2915
- }
2916
-
2917
- export interface ListGraphqlApisResponse {
2918
- /**
2919
- * <p>The <code>GraphqlApi</code> objects.</p>
2920
- */
2921
- graphqlApis?: GraphqlApi[];
2922
-
2923
- /**
2924
- * <p>An identifier to be passed in the next request to this operation to return the next set
2925
- * of items in the list.</p>
2926
- */
2927
- nextToken?: string;
2928
- }
2929
-
2930
- export namespace ListGraphqlApisResponse {
2931
- /**
2932
- * @internal
2933
- */
2934
- export const filterSensitiveLog = (obj: ListGraphqlApisResponse): any => ({
2935
- ...obj,
2936
- });
2937
- }
2938
-
2939
- export interface ListResolversRequest {
2940
- /**
2941
- * <p>The API ID.</p>
2942
- */
2943
- apiId: string | undefined;
2944
-
2945
- /**
2946
- * <p>The type name.</p>
2947
- */
2948
- typeName: string | undefined;
2949
-
2950
- /**
2951
- * <p>An identifier that was returned from the previous call to this operation, which can be
2952
- * used to return the next set of items in the list. </p>
2953
- */
2954
- nextToken?: string;
2955
-
2956
- /**
2957
- * <p>The maximum number of results you want the request to return.</p>
2958
- */
2959
- maxResults?: number;
2960
- }
2961
-
2962
- export namespace ListResolversRequest {
2963
- /**
2964
- * @internal
2965
- */
2966
- export const filterSensitiveLog = (obj: ListResolversRequest): any => ({
2967
- ...obj,
2968
- });
2969
- }
2970
-
2971
- export interface ListResolversResponse {
2972
- /**
2973
- * <p>The <code>Resolver</code> objects.</p>
2974
- */
2975
- resolvers?: Resolver[];
2976
-
2977
- /**
2978
- * <p>An identifier to be passed in the next request to this operation to return the next set
2979
- * of items in the list.</p>
2980
- */
2981
- nextToken?: string;
2982
- }
2983
-
2984
- export namespace ListResolversResponse {
2985
- /**
2986
- * @internal
2987
- */
2988
- export const filterSensitiveLog = (obj: ListResolversResponse): any => ({
2989
- ...obj,
2990
- });
2991
- }
2992
-
2993
- export interface ListResolversByFunctionRequest {
2994
- /**
2995
- * <p>The API ID.</p>
2996
- */
2997
- apiId: string | undefined;
2998
-
2999
- /**
3000
- * <p>The Function ID.</p>
3001
- */
3002
- functionId: string | undefined;
3003
-
3004
- /**
3005
- * <p>An identifier that was returned from the previous call to this operation, which you can
3006
- * use to return the next set of items in the list.</p>
3007
- */
3008
- nextToken?: string;
3009
-
3010
- /**
3011
- * <p>The maximum number of results you want the request to return.</p>
3012
- */
3013
- maxResults?: number;
3014
- }
3015
-
3016
- export namespace ListResolversByFunctionRequest {
3017
- /**
3018
- * @internal
3019
- */
3020
- export const filterSensitiveLog = (obj: ListResolversByFunctionRequest): any => ({
3021
- ...obj,
3022
- });
3023
- }
3024
-
3025
- export interface ListResolversByFunctionResponse {
3026
- /**
3027
- * <p>The list of resolvers.</p>
3028
- */
3029
- resolvers?: Resolver[];
3030
-
3031
- /**
3032
- * <p>An identifier that can be used to return the next set of items in the list.</p>
3033
- */
3034
- nextToken?: string;
3035
- }
3036
-
3037
- export namespace ListResolversByFunctionResponse {
3038
- /**
3039
- * @internal
3040
- */
3041
- export const filterSensitiveLog = (obj: ListResolversByFunctionResponse): any => ({
3042
- ...obj,
3043
- });
3044
- }
3045
-
3046
- export interface ListTagsForResourceRequest {
3047
- /**
3048
- * <p>The <code>GraphqlApi</code> ARN.</p>
3049
- */
3050
- resourceArn: string | undefined;
3051
- }
3052
-
3053
- export namespace ListTagsForResourceRequest {
3054
- /**
3055
- * @internal
3056
- */
3057
- export const filterSensitiveLog = (obj: ListTagsForResourceRequest): any => ({
3058
- ...obj,
3059
- });
3060
- }
3061
-
3062
- export interface ListTagsForResourceResponse {
3063
- /**
3064
- * <p>A <code>TagMap</code> object.</p>
3065
- */
3066
- tags?: { [key: string]: string };
3067
- }
3068
-
3069
- export namespace ListTagsForResourceResponse {
3070
- /**
3071
- * @internal
3072
- */
3073
- export const filterSensitiveLog = (obj: ListTagsForResourceResponse): any => ({
3074
- ...obj,
3075
- });
3076
- }
3077
-
3078
- export interface ListTypesRequest {
3079
- /**
3080
- * <p>The API ID.</p>
3081
- */
3082
- apiId: string | undefined;
3083
-
3084
- /**
3085
- * <p>The type format: SDL or JSON.</p>
3086
- */
3087
- format: TypeDefinitionFormat | string | undefined;
3088
-
3089
- /**
3090
- * <p>An identifier that was returned from the previous call to this operation, which can be
3091
- * used to return the next set of items in the list. </p>
3092
- */
3093
- nextToken?: string;
3094
-
3095
- /**
3096
- * <p>The maximum number of results you want the request to return.</p>
3097
- */
3098
- maxResults?: number;
3099
- }
3100
-
3101
- export namespace ListTypesRequest {
3102
- /**
3103
- * @internal
3104
- */
3105
- export const filterSensitiveLog = (obj: ListTypesRequest): any => ({
3106
- ...obj,
3107
- });
3108
- }
3109
-
3110
- export interface ListTypesResponse {
3111
- /**
3112
- * <p>The <code>Type</code> objects.</p>
3113
- */
3114
- types?: Type[];
3115
-
3116
- /**
3117
- * <p>An identifier to be passed in the next request to this operation to return the next set
3118
- * of items in the list.</p>
3119
- */
3120
- nextToken?: string;
3121
- }
3122
-
3123
- export namespace ListTypesResponse {
3124
- /**
3125
- * @internal
3126
- */
3127
- export const filterSensitiveLog = (obj: ListTypesResponse): any => ({
3128
- ...obj,
3129
- });
3130
- }
3131
-
3132
- export interface StartSchemaCreationRequest {
3133
- /**
3134
- * <p>The API ID.</p>
3135
- */
3136
- apiId: string | undefined;
3137
-
3138
- /**
3139
- * <p>The schema definition, in GraphQL schema language format.</p>
3140
- */
3141
- definition: Uint8Array | undefined;
3142
- }
3143
-
3144
- export namespace StartSchemaCreationRequest {
3145
- /**
3146
- * @internal
3147
- */
3148
- export const filterSensitiveLog = (obj: StartSchemaCreationRequest): any => ({
3149
- ...obj,
3150
- });
3151
- }
3152
-
3153
- export interface StartSchemaCreationResponse {
3154
- /**
3155
- * <p>The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When
3156
- * the schema is in the ACTIVE state, you can add data.</p>
3157
- */
3158
- status?: SchemaStatus | string;
3159
- }
3160
-
3161
- export namespace StartSchemaCreationResponse {
3162
- /**
3163
- * @internal
3164
- */
3165
- export const filterSensitiveLog = (obj: StartSchemaCreationResponse): any => ({
3166
- ...obj,
3167
- });
3168
- }
3169
-
3170
- export interface TagResourceRequest {
3171
- /**
3172
- * <p>The <code>GraphqlApi</code> ARN.</p>
3173
- */
3174
- resourceArn: string | undefined;
3175
-
3176
- /**
3177
- * <p>A <code>TagMap</code> object.</p>
3178
- */
3179
- tags: { [key: string]: string } | undefined;
3180
- }
3181
-
3182
- export namespace TagResourceRequest {
3183
- /**
3184
- * @internal
3185
- */
3186
- export const filterSensitiveLog = (obj: TagResourceRequest): any => ({
3187
- ...obj,
3188
- });
3189
- }
3190
-
3191
- export interface TagResourceResponse {}
3192
-
3193
- export namespace TagResourceResponse {
3194
- /**
3195
- * @internal
3196
- */
3197
- export const filterSensitiveLog = (obj: TagResourceResponse): any => ({
3198
- ...obj,
3199
- });
3200
- }
3201
-
3202
- export interface UntagResourceRequest {
3203
- /**
3204
- * <p>The <code>GraphqlApi</code> ARN.</p>
3205
- */
3206
- resourceArn: string | undefined;
3207
-
3208
- /**
3209
- * <p>A list of <code>TagKey</code> objects.</p>
3210
- */
3211
- tagKeys: string[] | undefined;
3212
- }
3213
-
3214
- export namespace UntagResourceRequest {
3215
- /**
3216
- * @internal
3217
- */
3218
- export const filterSensitiveLog = (obj: UntagResourceRequest): any => ({
3219
- ...obj,
3220
- });
3221
- }
3222
-
3223
- export interface UntagResourceResponse {}
3224
-
3225
- export namespace UntagResourceResponse {
3226
- /**
3227
- * @internal
3228
- */
3229
- export const filterSensitiveLog = (obj: UntagResourceResponse): any => ({
3230
- ...obj,
3231
- });
3232
- }
3233
-
3234
- /**
3235
- * <p>Represents the input of a <code>UpdateApiCache</code> operation.</p>
3236
- */
3237
- export interface UpdateApiCacheRequest {
3238
- /**
3239
- * <p>The GraphQL API Id.</p>
3240
- */
3241
- apiId: string | undefined;
3242
-
3243
- /**
3244
- * <p>TTL in seconds for cache entries.</p>
3245
- * <p>Valid values are between 1 and 3600 seconds.</p>
3246
- */
3247
- ttl: number | undefined;
3248
-
3249
- /**
3250
- * <p>Caching behavior.</p>
3251
- * <ul>
3252
- * <li>
3253
- * <p>
3254
- * <b>FULL_REQUEST_CACHING</b>: All requests are fully
3255
- * cached.</p>
3256
- * </li>
3257
- * <li>
3258
- * <p>
3259
- * <b>PER_RESOLVER_CACHING</b>: Individual resolvers
3260
- * that you specify are cached.</p>
3261
- * </li>
3262
- * </ul>
3263
- */
3264
- apiCachingBehavior: ApiCachingBehavior | string | undefined;
3265
-
3266
- /**
3267
- * <p>The cache instance type. Valid values are </p>
3268
- * <ul>
3269
- * <li>
3270
- * <p>
3271
- * <code>SMALL</code>
3272
- * </p>
3273
- * </li>
3274
- * <li>
3275
- * <p>
3276
- * <code>MEDIUM</code>
3277
- * </p>
3278
- * </li>
3279
- * <li>
3280
- * <p>
3281
- * <code>LARGE</code>
3282
- * </p>
3283
- * </li>
3284
- * <li>
3285
- * <p>
3286
- * <code>XLARGE</code>
3287
- * </p>
3288
- * </li>
3289
- * <li>
3290
- * <p>
3291
- * <code>LARGE_2X</code>
3292
- * </p>
3293
- * </li>
3294
- * <li>
3295
- * <p>
3296
- * <code>LARGE_4X</code>
3297
- * </p>
3298
- * </li>
3299
- * <li>
3300
- * <p>
3301
- * <code>LARGE_8X</code> (not available in all regions)</p>
3302
- * </li>
3303
- * <li>
3304
- * <p>
3305
- * <code>LARGE_12X</code>
3306
- * </p>
3307
- * </li>
3308
- * </ul>
3309
- * <p>Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.</p>
3310
- * <p>The following legacy instance types are available, but their use is discouraged:</p>
3311
- * <ul>
3312
- * <li>
3313
- * <p>
3314
- * <b>T2_SMALL</b>: A t2.small instance type.</p>
3315
- * </li>
3316
- * <li>
3317
- * <p>
3318
- * <b>T2_MEDIUM</b>: A t2.medium instance type.</p>
3319
- * </li>
3320
- * <li>
3321
- * <p>
3322
- * <b>R4_LARGE</b>: A r4.large instance type.</p>
3323
- * </li>
3324
- * <li>
3325
- * <p>
3326
- * <b>R4_XLARGE</b>: A r4.xlarge instance type.</p>
3327
- * </li>
3328
- * <li>
3329
- * <p>
3330
- * <b>R4_2XLARGE</b>: A r4.2xlarge instance type.</p>
3331
- * </li>
3332
- * <li>
3333
- * <p>
3334
- * <b>R4_4XLARGE</b>: A r4.4xlarge instance type.</p>
3335
- * </li>
3336
- * <li>
3337
- * <p>
3338
- * <b>R4_8XLARGE</b>: A r4.8xlarge instance type.</p>
3339
- * </li>
3340
- * </ul>
3341
- */
3342
- type: ApiCacheType | string | undefined;
3343
- }
3344
-
3345
- export namespace UpdateApiCacheRequest {
3346
- /**
3347
- * @internal
3348
- */
3349
- export const filterSensitiveLog = (obj: UpdateApiCacheRequest): any => ({
3350
- ...obj,
3351
- });
3352
- }
3353
-
3354
- /**
3355
- * <p>Represents the output of a <code>UpdateApiCache</code> operation.</p>
3356
- */
3357
- export interface UpdateApiCacheResponse {
3358
- /**
3359
- * <p>The <code>ApiCache</code> object.</p>
3360
- */
3361
- apiCache?: ApiCache;
3362
- }
3363
-
3364
- export namespace UpdateApiCacheResponse {
3365
- /**
3366
- * @internal
3367
- */
3368
- export const filterSensitiveLog = (obj: UpdateApiCacheResponse): any => ({
3369
- ...obj,
3370
- });
3371
- }
3372
-
3373
- export interface UpdateApiKeyRequest {
3374
- /**
3375
- * <p>The ID for the GraphQL API.</p>
3376
- */
3377
- apiId: string | undefined;
3378
-
3379
- /**
3380
- * <p>The API key ID.</p>
3381
- */
3382
- id: string | undefined;
3383
-
3384
- /**
3385
- * <p>A description of the purpose of the API key.</p>
3386
- */
3387
- description?: string;
3388
-
3389
- /**
3390
- * <p>The time from update time after which the API key expires. The date is represented as
3391
- * seconds since the epoch. For more information, see .</p>
3392
- */
3393
- expires?: number;
3394
- }
3395
-
3396
- export namespace UpdateApiKeyRequest {
3397
- /**
3398
- * @internal
3399
- */
3400
- export const filterSensitiveLog = (obj: UpdateApiKeyRequest): any => ({
3401
- ...obj,
3402
- });
3403
- }
3404
-
3405
- export interface UpdateApiKeyResponse {
3406
- /**
3407
- * <p>The API key.</p>
3408
- */
3409
- apiKey?: ApiKey;
3410
- }
3411
-
3412
- export namespace UpdateApiKeyResponse {
3413
- /**
3414
- * @internal
3415
- */
3416
- export const filterSensitiveLog = (obj: UpdateApiKeyResponse): any => ({
3417
- ...obj,
3418
- });
3419
- }
3420
-
3421
- export interface UpdateDataSourceRequest {
3422
- /**
3423
- * <p>The API ID.</p>
3424
- */
3425
- apiId: string | undefined;
3426
-
3427
- /**
3428
- * <p>The new name for the data source.</p>
3429
- */
3430
- name: string | undefined;
3431
-
3432
- /**
3433
- * <p>The new description for the data source.</p>
3434
- */
3435
- description?: string;
3436
-
3437
- /**
3438
- * <p>The new data source type.</p>
3439
- */
3440
- type: DataSourceType | string | undefined;
3441
-
3442
- /**
3443
- * <p>The new service role ARN for the data source.</p>
3444
- */
3445
- serviceRoleArn?: string;
3446
-
3447
- /**
3448
- * <p>The new Amazon DynamoDB configuration.</p>
3449
- */
3450
- dynamodbConfig?: DynamodbDataSourceConfig;
3451
-
3452
- /**
3453
- * <p>The new Amazon Web Services Lambda configuration.</p>
3454
- */
3455
- lambdaConfig?: LambdaDataSourceConfig;
3456
-
3457
- /**
3458
- * <p>The new OpenSearch configuration.</p>
3459
- * <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This
3460
- * configuration is deprecated. Instead, use <a>UpdateDataSourceRequest$openSearchServiceConfig</a> to update an OpenSearch data source.</p>
3461
- */
3462
- elasticsearchConfig?: ElasticsearchDataSourceConfig;
3463
-
3464
- /**
3465
- * <p>The new OpenSearch configuration.</p>
3466
- */
3467
- openSearchServiceConfig?: OpenSearchServiceDataSourceConfig;
3468
-
3469
- /**
3470
- * <p>The new HTTP endpoint configuration.</p>
3471
- */
3472
- httpConfig?: HttpDataSourceConfig;
3473
-
3474
- /**
3475
- * <p>The new relational database configuration.</p>
3476
- */
3477
- relationalDatabaseConfig?: RelationalDatabaseDataSourceConfig;
3478
- }
3479
-
3480
- export namespace UpdateDataSourceRequest {
3481
- /**
3482
- * @internal
3483
- */
3484
- export const filterSensitiveLog = (obj: UpdateDataSourceRequest): any => ({
3485
- ...obj,
3486
- });
3487
- }
3488
-
3489
- export interface UpdateDataSourceResponse {
3490
- /**
3491
- * <p>The updated <code>DataSource</code> object.</p>
3492
- */
3493
- dataSource?: DataSource;
3494
- }
3495
-
3496
- export namespace UpdateDataSourceResponse {
3497
- /**
3498
- * @internal
3499
- */
3500
- export const filterSensitiveLog = (obj: UpdateDataSourceResponse): any => ({
3501
- ...obj,
3502
- });
3503
- }
3504
-
3505
- export interface UpdateFunctionRequest {
3506
- /**
3507
- * <p>The GraphQL API ID.</p>
3508
- */
3509
- apiId: string | undefined;
3510
-
3511
- /**
3512
- * <p>The <code>Function</code> name.</p>
3513
- */
3514
- name: string | undefined;
3515
-
3516
- /**
3517
- * <p>The <code>Function</code> description.</p>
3518
- */
3519
- description?: string;
3520
-
3521
- /**
3522
- * <p>The function ID.</p>
3523
- */
3524
- functionId: string | undefined;
3525
-
3526
- /**
3527
- * <p>The <code>Function</code>
3528
- * <code>DataSource</code> name.</p>
3529
- */
3530
- dataSourceName: string | undefined;
3531
-
3532
- /**
3533
- * <p>The <code>Function</code> request mapping template. Functions support only the
3534
- * 2018-05-29 version of the request mapping template.</p>
3535
- */
3536
- requestMappingTemplate?: string;
3537
-
3538
- /**
3539
- * <p>The <code>Function</code> request mapping template. </p>
3540
- */
3541
- responseMappingTemplate?: string;
3542
-
3543
- /**
3544
- * <p>The <code>version</code> of the request mapping template. Currently the supported value
3545
- * is 2018-05-29. </p>
3546
- */
3547
- functionVersion: string | undefined;
3548
-
3549
- /**
3550
- * <p>Describes a Sync configuration for a resolver.</p>
3551
- * <p>Contains information on which Conflict Detection as well as Resolution strategy should
3552
- * be performed when the resolver is invoked.</p>
3553
- */
3554
- syncConfig?: SyncConfig;
3555
- }
3556
-
3557
- export namespace UpdateFunctionRequest {
3558
- /**
3559
- * @internal
3560
- */
3561
- export const filterSensitiveLog = (obj: UpdateFunctionRequest): any => ({
3562
- ...obj,
3563
- });
3564
- }
3565
-
3566
- export interface UpdateFunctionResponse {
3567
- /**
3568
- * <p>The <code>Function</code> object.</p>
3569
- */
3570
- functionConfiguration?: FunctionConfiguration;
3571
- }
3572
-
3573
- export namespace UpdateFunctionResponse {
3574
- /**
3575
- * @internal
3576
- */
3577
- export const filterSensitiveLog = (obj: UpdateFunctionResponse): any => ({
3578
- ...obj,
3579
- });
3580
- }
3581
-
3582
- export interface UpdateGraphqlApiRequest {
3583
- /**
3584
- * <p>The API ID.</p>
3585
- */
3586
- apiId: string | undefined;
3587
-
3588
- /**
3589
- * <p>The new name for the <code>GraphqlApi</code> object.</p>
3590
- */
3591
- name: string | undefined;
3592
-
3593
- /**
3594
- * <p>The Amazon CloudWatch Logs configuration for the <code>GraphqlApi</code> object.</p>
3595
- */
3596
- logConfig?: LogConfig;
3597
-
3598
- /**
3599
- * <p>The new authentication type for the <code>GraphqlApi</code> object.</p>
3600
- */
3601
- authenticationType?: AuthenticationType | string;
3602
-
3603
- /**
3604
- * <p>The new Amazon Cognito user pool configuration for the <code>GraphqlApi</code>
3605
- * object.</p>
3606
- */
3607
- userPoolConfig?: UserPoolConfig;
3608
-
3609
- /**
3610
- * <p>The OpenID Connect configuration for the <code>GraphqlApi</code> object.</p>
3611
- */
3612
- openIDConnectConfig?: OpenIDConnectConfig;
3613
-
3614
- /**
3615
- * <p>A list of additional authentication providers for the <code>GraphqlApi</code>
3616
- * API.</p>
3617
- */
3618
- additionalAuthenticationProviders?: AdditionalAuthenticationProvider[];
3619
-
3620
- /**
3621
- * <p>A flag indicating whether to enable X-Ray tracing for the
3622
- * <code>GraphqlApi</code>.</p>
3623
- */
3624
- xrayEnabled?: boolean;
3625
-
3626
- /**
3627
- * <p>Configuration for Amazon Web Services Lambda function authorization.</p>
3628
- */
3629
- lambdaAuthorizerConfig?: LambdaAuthorizerConfig;
3630
- }
3631
-
3632
- export namespace UpdateGraphqlApiRequest {
3633
- /**
3634
- * @internal
3635
- */
3636
- export const filterSensitiveLog = (obj: UpdateGraphqlApiRequest): any => ({
3637
- ...obj,
3638
- });
3639
- }
3640
-
3641
- export interface UpdateGraphqlApiResponse {
3642
- /**
3643
- * <p>The updated <code>GraphqlApi</code> object.</p>
3644
- */
3645
- graphqlApi?: GraphqlApi;
3646
- }
3647
-
3648
- export namespace UpdateGraphqlApiResponse {
3649
- /**
3650
- * @internal
3651
- */
3652
- export const filterSensitiveLog = (obj: UpdateGraphqlApiResponse): any => ({
3653
- ...obj,
3654
- });
3655
- }
3656
-
3657
- export interface UpdateResolverRequest {
3658
- /**
3659
- * <p>The API ID.</p>
3660
- */
3661
- apiId: string | undefined;
3662
-
3663
- /**
3664
- * <p>The new type name.</p>
3665
- */
3666
- typeName: string | undefined;
3667
-
3668
- /**
3669
- * <p>The new field name.</p>
3670
- */
3671
- fieldName: string | undefined;
3672
-
3673
- /**
3674
- * <p>The new data source name.</p>
3675
- */
3676
- dataSourceName?: string;
3677
-
3678
- /**
3679
- * <p>The new request mapping template.</p>
3680
- * <p>A resolver uses a request mapping template to convert a GraphQL expression into a format
3681
- * that a data source can understand. Mapping templates are written in Apache Velocity
3682
- * Template Language (VTL).</p>
3683
- * <p>VTL request mapping templates are optional when using a Lambda data source. For all
3684
- * other data sources, VTL request and response mapping templates are required.</p>
3685
- */
3686
- requestMappingTemplate?: string;
3687
-
3688
- /**
3689
- * <p>The new response mapping template.</p>
3690
- */
3691
- responseMappingTemplate?: string;
3692
-
3693
- /**
3694
- * <p>The resolver type.</p>
3695
- * <ul>
3696
- * <li>
3697
- * <p>
3698
- * <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is
3699
- * the default resolver type. A UNIT resolver enables you to execute a GraphQL query
3700
- * against a single data source.</p>
3701
- * </li>
3702
- * <li>
3703
- * <p>
3704
- * <b>PIPELINE</b>: A PIPELINE resolver type. A PIPELINE
3705
- * resolver enables you to execute a series of <code>Function</code> in a serial manner.
3706
- * You can use a pipeline resolver to execute a GraphQL query against multiple data
3707
- * sources.</p>
3708
- * </li>
3709
- * </ul>
3710
- */
3711
- kind?: ResolverKind | string;
3712
-
3713
- /**
3714
- * <p>The <code>PipelineConfig</code>.</p>
3715
- */
3716
- pipelineConfig?: PipelineConfig;
3717
-
3718
- /**
3719
- * <p>The <code>SyncConfig</code> for a resolver attached to a versioned datasource.</p>
3720
- */
3721
- syncConfig?: SyncConfig;
3722
-
3723
- /**
3724
- * <p>The caching configuration for the resolver.</p>
3725
- */
3726
- cachingConfig?: CachingConfig;
3727
- }
3728
-
3729
- export namespace UpdateResolverRequest {
3730
- /**
3731
- * @internal
3732
- */
3733
- export const filterSensitiveLog = (obj: UpdateResolverRequest): any => ({
3734
- ...obj,
3735
- });
3736
- }
3737
-
3738
- export interface UpdateResolverResponse {
3739
- /**
3740
- * <p>The updated <code>Resolver</code> object.</p>
3741
- */
3742
- resolver?: Resolver;
3743
- }
3744
-
3745
- export namespace UpdateResolverResponse {
3746
- /**
3747
- * @internal
3748
- */
3749
- export const filterSensitiveLog = (obj: UpdateResolverResponse): any => ({
3750
- ...obj,
3751
- });
3752
- }
3753
-
3754
- export interface UpdateTypeRequest {
3755
- /**
3756
- * <p>The API ID.</p>
3757
- */
3758
- apiId: string | undefined;
3759
-
3760
- /**
3761
- * <p>The new type name.</p>
3762
- */
3763
- typeName: string | undefined;
3764
-
3765
- /**
3766
- * <p>The new definition.</p>
3767
- */
3768
- definition?: string;
3769
-
3770
- /**
3771
- * <p>The new type format: SDL or JSON.</p>
3772
- */
3773
- format: TypeDefinitionFormat | string | undefined;
3774
- }
3775
-
3776
- export namespace UpdateTypeRequest {
3777
- /**
3778
- * @internal
3779
- */
3780
- export const filterSensitiveLog = (obj: UpdateTypeRequest): any => ({
3781
- ...obj,
3782
- });
3783
- }
3784
-
3785
- export interface UpdateTypeResponse {
3786
- /**
3787
- * <p>The updated <code>Type</code> object.</p>
3788
- */
3789
- type?: Type;
3790
- }
3791
-
3792
- export namespace UpdateTypeResponse {
3793
- /**
3794
- * @internal
3795
- */
3796
- export const filterSensitiveLog = (obj: UpdateTypeResponse): any => ({
3797
- ...obj,
3798
- });
3799
- }