@aws-sdk/client-resource-groups 3.31.0 → 3.35.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 (289) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/{dist/cjs → dist-cjs}/ResourceGroups.js +1 -1
  3. package/dist-cjs/ResourceGroups.js.map +1 -0
  4. package/{dist/cjs → dist-cjs}/ResourceGroupsClient.js +14 -14
  5. package/dist-cjs/ResourceGroupsClient.js.map +1 -0
  6. package/{dist/cjs → dist-cjs}/commands/CreateGroupCommand.js +5 -5
  7. package/dist-cjs/commands/CreateGroupCommand.js.map +1 -0
  8. package/{dist/cjs → dist-cjs}/commands/DeleteGroupCommand.js +5 -5
  9. package/dist-cjs/commands/DeleteGroupCommand.js.map +1 -0
  10. package/{dist/cjs → dist-cjs}/commands/GetGroupCommand.js +5 -5
  11. package/dist-cjs/commands/GetGroupCommand.js.map +1 -0
  12. package/{dist/cjs → dist-cjs}/commands/GetGroupConfigurationCommand.js +5 -5
  13. package/dist-cjs/commands/GetGroupConfigurationCommand.js.map +1 -0
  14. package/{dist/cjs → dist-cjs}/commands/GetGroupQueryCommand.js +5 -5
  15. package/dist-cjs/commands/GetGroupQueryCommand.js.map +1 -0
  16. package/{dist/cjs → dist-cjs}/commands/GetTagsCommand.js +5 -5
  17. package/dist-cjs/commands/GetTagsCommand.js.map +1 -0
  18. package/{dist/cjs → dist-cjs}/commands/GroupResourcesCommand.js +5 -5
  19. package/dist-cjs/commands/GroupResourcesCommand.js.map +1 -0
  20. package/{dist/cjs → dist-cjs}/commands/ListGroupResourcesCommand.js +5 -5
  21. package/dist-cjs/commands/ListGroupResourcesCommand.js.map +1 -0
  22. package/{dist/cjs → dist-cjs}/commands/ListGroupsCommand.js +5 -5
  23. package/dist-cjs/commands/ListGroupsCommand.js.map +1 -0
  24. package/{dist/cjs → dist-cjs}/commands/PutGroupConfigurationCommand.js +5 -5
  25. package/dist-cjs/commands/PutGroupConfigurationCommand.js.map +1 -0
  26. package/{dist/cjs → dist-cjs}/commands/SearchResourcesCommand.js +5 -5
  27. package/dist-cjs/commands/SearchResourcesCommand.js.map +1 -0
  28. package/{dist/cjs → dist-cjs}/commands/TagCommand.js +5 -5
  29. package/dist-cjs/commands/TagCommand.js.map +1 -0
  30. package/{dist/cjs → dist-cjs}/commands/UngroupResourcesCommand.js +5 -5
  31. package/dist-cjs/commands/UngroupResourcesCommand.js.map +1 -0
  32. package/{dist/cjs → dist-cjs}/commands/UntagCommand.js +5 -5
  33. package/dist-cjs/commands/UntagCommand.js.map +1 -0
  34. package/{dist/cjs → dist-cjs}/commands/UpdateGroupCommand.js +5 -5
  35. package/dist-cjs/commands/UpdateGroupCommand.js.map +1 -0
  36. package/{dist/cjs → dist-cjs}/commands/UpdateGroupQueryCommand.js +5 -5
  37. package/dist-cjs/commands/UpdateGroupQueryCommand.js.map +1 -0
  38. package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
  39. package/dist-cjs/endpoints.js.map +1 -0
  40. package/dist-cjs/index.js +27 -0
  41. package/dist-cjs/index.js.map +1 -0
  42. package/{dist/cjs → dist-cjs}/models/index.js +1 -1
  43. package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
  44. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
  45. package/dist-cjs/models/models_0.js.map +1 -0
  46. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
  47. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
  48. package/{dist/cjs → dist-cjs}/pagination/ListGroupResourcesPaginator.js +1 -1
  49. package/dist-cjs/pagination/ListGroupResourcesPaginator.js.map +1 -0
  50. package/{dist/cjs → dist-cjs}/pagination/ListGroupsPaginator.js +1 -1
  51. package/dist-cjs/pagination/ListGroupsPaginator.js.map +1 -0
  52. package/{dist/cjs → dist-cjs}/pagination/SearchResourcesPaginator.js +1 -1
  53. package/dist-cjs/pagination/SearchResourcesPaginator.js.map +1 -0
  54. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +69 -69
  55. package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
  56. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
  57. package/dist-cjs/runtimeConfig.browser.js.map +1 -0
  58. package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
  59. package/dist-cjs/runtimeConfig.js.map +1 -0
  60. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
  61. package/dist-cjs/runtimeConfig.native.js.map +1 -0
  62. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
  63. package/dist-cjs/runtimeConfig.shared.js.map +1 -0
  64. package/{dist/es → dist-es}/ResourceGroups.js +2 -40
  65. package/dist-es/ResourceGroups.js.map +1 -0
  66. package/dist-es/ResourceGroupsClient.js +38 -0
  67. package/dist-es/ResourceGroupsClient.js.map +1 -0
  68. package/dist-es/commands/CreateGroupCommand.js +40 -0
  69. package/dist-es/commands/CreateGroupCommand.js.map +1 -0
  70. package/{dist/es → dist-es}/commands/DeleteGroupCommand.js +4 -41
  71. package/dist-es/commands/DeleteGroupCommand.js.map +1 -0
  72. package/{dist/es → dist-es}/commands/GetGroupCommand.js +4 -40
  73. package/dist-es/commands/GetGroupCommand.js.map +1 -0
  74. package/{dist/es → dist-es}/commands/GetGroupConfigurationCommand.js +4 -42
  75. package/dist-es/commands/GetGroupConfigurationCommand.js.map +1 -0
  76. package/{dist/es → dist-es}/commands/GetGroupQueryCommand.js +4 -42
  77. package/dist-es/commands/GetGroupQueryCommand.js.map +1 -0
  78. package/{dist/es → dist-es}/commands/GetTagsCommand.js +4 -41
  79. package/dist-es/commands/GetTagsCommand.js.map +1 -0
  80. package/{dist/es → dist-es}/commands/GroupResourcesCommand.js +4 -40
  81. package/dist-es/commands/GroupResourcesCommand.js.map +1 -0
  82. package/dist-es/commands/ListGroupResourcesCommand.js +40 -0
  83. package/dist-es/commands/ListGroupResourcesCommand.js.map +1 -0
  84. package/{dist/es → dist-es}/commands/ListGroupsCommand.js +4 -40
  85. package/dist-es/commands/ListGroupsCommand.js.map +1 -0
  86. package/{dist/es → dist-es}/commands/PutGroupConfigurationCommand.js +4 -42
  87. package/dist-es/commands/PutGroupConfigurationCommand.js.map +1 -0
  88. package/dist-es/commands/SearchResourcesCommand.js +40 -0
  89. package/dist-es/commands/SearchResourcesCommand.js.map +1 -0
  90. package/dist-es/commands/TagCommand.js +40 -0
  91. package/dist-es/commands/TagCommand.js.map +1 -0
  92. package/{dist/es → dist-es}/commands/UngroupResourcesCommand.js +4 -40
  93. package/dist-es/commands/UngroupResourcesCommand.js.map +1 -0
  94. package/{dist/es → dist-es}/commands/UntagCommand.js +4 -40
  95. package/dist-es/commands/UntagCommand.js.map +1 -0
  96. package/{dist/es → dist-es}/commands/UpdateGroupCommand.js +4 -41
  97. package/dist-es/commands/UpdateGroupCommand.js.map +1 -0
  98. package/{dist/es → dist-es}/commands/UpdateGroupQueryCommand.js +4 -41
  99. package/dist-es/commands/UpdateGroupQueryCommand.js.map +1 -0
  100. package/{dist/es → dist-es}/endpoints.js +1 -1
  101. package/dist-es/endpoints.js.map +1 -0
  102. package/{dist/es → dist-es}/index.js +0 -0
  103. package/dist-es/index.js.map +1 -0
  104. package/{dist/es → dist-es}/models/index.js +0 -0
  105. package/dist-es/models/index.js.map +1 -0
  106. package/{dist/es → dist-es}/models/models_0.js +0 -162
  107. package/dist-es/models/models_0.js.map +1 -0
  108. package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
  109. package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
  110. package/{dist/es → dist-es}/pagination/ListGroupResourcesPaginator.js +17 -29
  111. package/dist-es/pagination/ListGroupResourcesPaginator.js.map +1 -0
  112. package/{dist/es → dist-es}/pagination/ListGroupsPaginator.js +17 -29
  113. package/dist-es/pagination/ListGroupsPaginator.js.map +1 -0
  114. package/{dist/es → dist-es}/pagination/SearchResourcesPaginator.js +17 -29
  115. package/dist-es/pagination/SearchResourcesPaginator.js.map +1 -0
  116. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +531 -536
  117. package/dist-es/protocols/Aws_restJson1.js.map +1 -0
  118. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
  119. package/dist-es/runtimeConfig.browser.js.map +1 -0
  120. package/{dist/es → dist-es}/runtimeConfig.js +2 -5
  121. package/dist-es/runtimeConfig.js.map +1 -0
  122. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
  123. package/dist-es/runtimeConfig.native.js.map +1 -0
  124. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
  125. package/dist-es/runtimeConfig.shared.js.map +1 -0
  126. package/{dist/types → dist-types}/ResourceGroups.d.ts +2 -2
  127. package/{dist/types → dist-types}/ResourceGroupsClient.d.ts +8 -8
  128. package/{dist/types → dist-types}/commands/CreateGroupCommand.d.ts +3 -3
  129. package/{dist/types → dist-types}/commands/DeleteGroupCommand.d.ts +3 -3
  130. package/{dist/types → dist-types}/commands/GetGroupCommand.d.ts +3 -3
  131. package/{dist/types → dist-types}/commands/GetGroupConfigurationCommand.d.ts +3 -3
  132. package/{dist/types → dist-types}/commands/GetGroupQueryCommand.d.ts +3 -3
  133. package/{dist/types → dist-types}/commands/GetTagsCommand.d.ts +3 -3
  134. package/{dist/types → dist-types}/commands/GroupResourcesCommand.d.ts +3 -3
  135. package/{dist/types → dist-types}/commands/ListGroupResourcesCommand.d.ts +3 -3
  136. package/{dist/types → dist-types}/commands/ListGroupsCommand.d.ts +3 -3
  137. package/{dist/types → dist-types}/commands/PutGroupConfigurationCommand.d.ts +3 -3
  138. package/{dist/types → dist-types}/commands/SearchResourcesCommand.d.ts +3 -3
  139. package/{dist/types → dist-types}/commands/TagCommand.d.ts +3 -3
  140. package/{dist/types → dist-types}/commands/UngroupResourcesCommand.d.ts +3 -3
  141. package/{dist/types → dist-types}/commands/UntagCommand.d.ts +3 -3
  142. package/{dist/types → dist-types}/commands/UpdateGroupCommand.d.ts +3 -3
  143. package/{dist/types → dist-types}/commands/UpdateGroupQueryCommand.d.ts +3 -3
  144. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  145. package/{dist/types → dist-types}/index.d.ts +0 -0
  146. package/{dist/types → dist-types}/models/index.d.ts +0 -0
  147. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  148. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  149. package/{dist/types → dist-types}/pagination/ListGroupResourcesPaginator.d.ts +1 -1
  150. package/{dist/types → dist-types}/pagination/ListGroupsPaginator.d.ts +1 -1
  151. package/{dist/types → dist-types}/pagination/SearchResourcesPaginator.d.ts +1 -1
  152. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  153. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
  154. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  155. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  156. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  157. package/{dist/types → dist-types}/ts3.4/ResourceGroups.d.ts +2 -2
  158. package/{dist/types → dist-types}/ts3.4/ResourceGroupsClient.d.ts +8 -8
  159. package/{dist/types → dist-types}/ts3.4/commands/CreateGroupCommand.d.ts +3 -3
  160. package/{dist/types → dist-types}/ts3.4/commands/DeleteGroupCommand.d.ts +3 -3
  161. package/{dist/types → dist-types}/ts3.4/commands/GetGroupCommand.d.ts +3 -3
  162. package/{dist/types → dist-types}/ts3.4/commands/GetGroupConfigurationCommand.d.ts +3 -3
  163. package/{dist/types → dist-types}/ts3.4/commands/GetGroupQueryCommand.d.ts +3 -3
  164. package/{dist/types → dist-types}/ts3.4/commands/GetTagsCommand.d.ts +3 -3
  165. package/{dist/types → dist-types}/ts3.4/commands/GroupResourcesCommand.d.ts +3 -3
  166. package/{dist/types → dist-types}/ts3.4/commands/ListGroupResourcesCommand.d.ts +3 -3
  167. package/{dist/types → dist-types}/ts3.4/commands/ListGroupsCommand.d.ts +3 -3
  168. package/{dist/types → dist-types}/ts3.4/commands/PutGroupConfigurationCommand.d.ts +3 -3
  169. package/{dist/types → dist-types}/ts3.4/commands/SearchResourcesCommand.d.ts +3 -3
  170. package/{dist/types → dist-types}/ts3.4/commands/TagCommand.d.ts +3 -3
  171. package/{dist/types → dist-types}/ts3.4/commands/UngroupResourcesCommand.d.ts +3 -3
  172. package/{dist/types → dist-types}/ts3.4/commands/UntagCommand.d.ts +3 -3
  173. package/{dist/types → dist-types}/ts3.4/commands/UpdateGroupCommand.d.ts +3 -3
  174. package/{dist/types → dist-types}/ts3.4/commands/UpdateGroupQueryCommand.d.ts +3 -3
  175. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  176. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  177. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  178. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  179. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  180. package/{dist/types → dist-types}/ts3.4/pagination/ListGroupResourcesPaginator.d.ts +1 -1
  181. package/{dist/types → dist-types}/ts3.4/pagination/ListGroupsPaginator.d.ts +1 -1
  182. package/{dist/types → dist-types}/ts3.4/pagination/SearchResourcesPaginator.d.ts +1 -1
  183. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  184. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
  185. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  186. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  187. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  188. package/package.json +50 -50
  189. package/{ResourceGroups.ts → src/ResourceGroups.ts} +3 -2
  190. package/{ResourceGroupsClient.ts → src/ResourceGroupsClient.ts} +37 -36
  191. package/{commands → src/commands}/CreateGroupCommand.ts +8 -7
  192. package/{commands → src/commands}/DeleteGroupCommand.ts +8 -7
  193. package/{commands → src/commands}/GetGroupCommand.ts +8 -7
  194. package/{commands → src/commands}/GetGroupConfigurationCommand.ts +8 -7
  195. package/{commands → src/commands}/GetGroupQueryCommand.ts +8 -7
  196. package/{commands → src/commands}/GetTagsCommand.ts +8 -7
  197. package/{commands → src/commands}/GroupResourcesCommand.ts +8 -7
  198. package/{commands → src/commands}/ListGroupResourcesCommand.ts +8 -7
  199. package/{commands → src/commands}/ListGroupsCommand.ts +8 -7
  200. package/{commands → src/commands}/PutGroupConfigurationCommand.ts +8 -7
  201. package/{commands → src/commands}/SearchResourcesCommand.ts +8 -7
  202. package/{commands → src/commands}/TagCommand.ts +5 -4
  203. package/{commands → src/commands}/UngroupResourcesCommand.ts +8 -7
  204. package/{commands → src/commands}/UntagCommand.ts +5 -4
  205. package/{commands → src/commands}/UpdateGroupCommand.ts +8 -7
  206. package/{commands → src/commands}/UpdateGroupQueryCommand.ts +8 -7
  207. package/{endpoints.ts → src/endpoints.ts} +1 -1
  208. package/{index.ts → src/index.ts} +0 -0
  209. package/{models → src/models}/index.ts +0 -0
  210. package/{models → src/models}/models_0.ts +0 -0
  211. package/{pagination → src/pagination}/Interfaces.ts +2 -1
  212. package/{pagination → src/pagination}/ListGroupResourcesPaginator.ts +4 -3
  213. package/{pagination → src/pagination}/ListGroupsPaginator.ts +3 -2
  214. package/{pagination → src/pagination}/SearchResourcesPaginator.ts +4 -3
  215. package/{protocols → src/protocols}/Aws_restJson1.ts +46 -43
  216. package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
  217. package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
  218. package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
  219. package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
  220. package/tsconfig.es.json +1 -3
  221. package/tsconfig.json +7 -7
  222. package/tsconfig.types.json +9 -0
  223. package/dist/cjs/ResourceGroups.js.map +0 -1
  224. package/dist/cjs/ResourceGroupsClient.js.map +0 -1
  225. package/dist/cjs/commands/CreateGroupCommand.js.map +0 -1
  226. package/dist/cjs/commands/DeleteGroupCommand.js.map +0 -1
  227. package/dist/cjs/commands/GetGroupCommand.js.map +0 -1
  228. package/dist/cjs/commands/GetGroupConfigurationCommand.js.map +0 -1
  229. package/dist/cjs/commands/GetGroupQueryCommand.js.map +0 -1
  230. package/dist/cjs/commands/GetTagsCommand.js.map +0 -1
  231. package/dist/cjs/commands/GroupResourcesCommand.js.map +0 -1
  232. package/dist/cjs/commands/ListGroupResourcesCommand.js.map +0 -1
  233. package/dist/cjs/commands/ListGroupsCommand.js.map +0 -1
  234. package/dist/cjs/commands/PutGroupConfigurationCommand.js.map +0 -1
  235. package/dist/cjs/commands/SearchResourcesCommand.js.map +0 -1
  236. package/dist/cjs/commands/TagCommand.js.map +0 -1
  237. package/dist/cjs/commands/UngroupResourcesCommand.js.map +0 -1
  238. package/dist/cjs/commands/UntagCommand.js.map +0 -1
  239. package/dist/cjs/commands/UpdateGroupCommand.js.map +0 -1
  240. package/dist/cjs/commands/UpdateGroupQueryCommand.js.map +0 -1
  241. package/dist/cjs/endpoints.js.map +0 -1
  242. package/dist/cjs/index.js +0 -27
  243. package/dist/cjs/index.js.map +0 -1
  244. package/dist/cjs/models/models_0.js.map +0 -1
  245. package/dist/cjs/package.json +0 -91
  246. package/dist/cjs/pagination/ListGroupResourcesPaginator.js.map +0 -1
  247. package/dist/cjs/pagination/ListGroupsPaginator.js.map +0 -1
  248. package/dist/cjs/pagination/SearchResourcesPaginator.js.map +0 -1
  249. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  250. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  251. package/dist/cjs/runtimeConfig.js.map +0 -1
  252. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  253. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  254. package/dist/es/ResourceGroups.js.map +0 -1
  255. package/dist/es/ResourceGroupsClient.js +0 -81
  256. package/dist/es/ResourceGroupsClient.js.map +0 -1
  257. package/dist/es/commands/CreateGroupCommand.js +0 -80
  258. package/dist/es/commands/CreateGroupCommand.js.map +0 -1
  259. package/dist/es/commands/DeleteGroupCommand.js.map +0 -1
  260. package/dist/es/commands/GetGroupCommand.js.map +0 -1
  261. package/dist/es/commands/GetGroupConfigurationCommand.js.map +0 -1
  262. package/dist/es/commands/GetGroupQueryCommand.js.map +0 -1
  263. package/dist/es/commands/GetTagsCommand.js.map +0 -1
  264. package/dist/es/commands/GroupResourcesCommand.js.map +0 -1
  265. package/dist/es/commands/ListGroupResourcesCommand.js +0 -92
  266. package/dist/es/commands/ListGroupResourcesCommand.js.map +0 -1
  267. package/dist/es/commands/ListGroupsCommand.js.map +0 -1
  268. package/dist/es/commands/PutGroupConfigurationCommand.js.map +0 -1
  269. package/dist/es/commands/SearchResourcesCommand.js +0 -93
  270. package/dist/es/commands/SearchResourcesCommand.js.map +0 -1
  271. package/dist/es/commands/TagCommand.js +0 -83
  272. package/dist/es/commands/TagCommand.js.map +0 -1
  273. package/dist/es/commands/UngroupResourcesCommand.js.map +0 -1
  274. package/dist/es/commands/UntagCommand.js.map +0 -1
  275. package/dist/es/commands/UpdateGroupCommand.js.map +0 -1
  276. package/dist/es/commands/UpdateGroupQueryCommand.js.map +0 -1
  277. package/dist/es/endpoints.js.map +0 -1
  278. package/dist/es/index.js.map +0 -1
  279. package/dist/es/models/index.js.map +0 -1
  280. package/dist/es/models/models_0.js.map +0 -1
  281. package/dist/es/package.json +0 -91
  282. package/dist/es/pagination/ListGroupResourcesPaginator.js.map +0 -1
  283. package/dist/es/pagination/ListGroupsPaginator.js.map +0 -1
  284. package/dist/es/pagination/SearchResourcesPaginator.js.map +0 -1
  285. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  286. package/dist/es/runtimeConfig.browser.js.map +0 -1
  287. package/dist/es/runtimeConfig.js.map +0 -1
  288. package/dist/es/runtimeConfig.native.js.map +0 -1
  289. package/dist/es/runtimeConfig.shared.js.map +0 -1
@@ -5,7 +5,7 @@ export var serializeAws_restJson1CreateGroupCommand = function (input, context)
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
6
6
  return __generator(this, function (_c) {
7
7
  switch (_c.label) {
8
- case 0: return [4 /*yield*/, context.endpoint()];
8
+ case 0: return [4, context.endpoint()];
9
9
  case 1:
10
10
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
11
11
  headers = {
@@ -19,7 +19,7 @@ export var serializeAws_restJson1CreateGroupCommand = function (input, context)
19
19
  input.ResourceQuery !== null && {
20
20
  ResourceQuery: serializeAws_restJson1ResourceQuery(input.ResourceQuery, context),
21
21
  })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
22
- return [2 /*return*/, new __HttpRequest({
22
+ return [2, new __HttpRequest({
23
23
  protocol: protocol,
24
24
  hostname: hostname,
25
25
  port: port,
@@ -35,7 +35,7 @@ export var serializeAws_restJson1DeleteGroupCommand = function (input, context)
35
35
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
36
36
  return __generator(this, function (_c) {
37
37
  switch (_c.label) {
38
- case 0: return [4 /*yield*/, context.endpoint()];
38
+ case 0: return [4, context.endpoint()];
39
39
  case 1:
40
40
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
41
41
  headers = {
@@ -43,7 +43,7 @@ export var serializeAws_restJson1DeleteGroupCommand = function (input, context)
43
43
  };
44
44
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delete-group";
45
45
  body = JSON.stringify(__assign(__assign({}, (input.Group !== undefined && input.Group !== null && { Group: input.Group })), (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })));
46
- return [2 /*return*/, new __HttpRequest({
46
+ return [2, new __HttpRequest({
47
47
  protocol: protocol,
48
48
  hostname: hostname,
49
49
  port: port,
@@ -59,7 +59,7 @@ export var serializeAws_restJson1GetGroupCommand = function (input, context) { r
59
59
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
60
60
  return __generator(this, function (_c) {
61
61
  switch (_c.label) {
62
- case 0: return [4 /*yield*/, context.endpoint()];
62
+ case 0: return [4, context.endpoint()];
63
63
  case 1:
64
64
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
65
65
  headers = {
@@ -67,7 +67,7 @@ export var serializeAws_restJson1GetGroupCommand = function (input, context) { r
67
67
  };
68
68
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-group";
69
69
  body = JSON.stringify(__assign(__assign({}, (input.Group !== undefined && input.Group !== null && { Group: input.Group })), (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })));
70
- return [2 /*return*/, new __HttpRequest({
70
+ return [2, new __HttpRequest({
71
71
  protocol: protocol,
72
72
  hostname: hostname,
73
73
  port: port,
@@ -83,7 +83,7 @@ export var serializeAws_restJson1GetGroupConfigurationCommand = function (input,
83
83
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
84
84
  return __generator(this, function (_c) {
85
85
  switch (_c.label) {
86
- case 0: return [4 /*yield*/, context.endpoint()];
86
+ case 0: return [4, context.endpoint()];
87
87
  case 1:
88
88
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
89
89
  headers = {
@@ -91,7 +91,7 @@ export var serializeAws_restJson1GetGroupConfigurationCommand = function (input,
91
91
  };
92
92
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-group-configuration";
93
93
  body = JSON.stringify(__assign({}, (input.Group !== undefined && input.Group !== null && { Group: input.Group })));
94
- return [2 /*return*/, new __HttpRequest({
94
+ return [2, new __HttpRequest({
95
95
  protocol: protocol,
96
96
  hostname: hostname,
97
97
  port: port,
@@ -107,7 +107,7 @@ export var serializeAws_restJson1GetGroupQueryCommand = function (input, context
107
107
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
108
108
  return __generator(this, function (_c) {
109
109
  switch (_c.label) {
110
- case 0: return [4 /*yield*/, context.endpoint()];
110
+ case 0: return [4, context.endpoint()];
111
111
  case 1:
112
112
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
113
113
  headers = {
@@ -115,7 +115,7 @@ export var serializeAws_restJson1GetGroupQueryCommand = function (input, context
115
115
  };
116
116
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-group-query";
117
117
  body = JSON.stringify(__assign(__assign({}, (input.Group !== undefined && input.Group !== null && { Group: input.Group })), (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })));
118
- return [2 /*return*/, new __HttpRequest({
118
+ return [2, new __HttpRequest({
119
119
  protocol: protocol,
120
120
  hostname: hostname,
121
121
  port: port,
@@ -131,7 +131,7 @@ export var serializeAws_restJson1GetTagsCommand = function (input, context) { re
131
131
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
132
132
  return __generator(this, function (_c) {
133
133
  switch (_c.label) {
134
- case 0: return [4 /*yield*/, context.endpoint()];
134
+ case 0: return [4, context.endpoint()];
135
135
  case 1:
136
136
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
137
137
  headers = {};
@@ -146,7 +146,7 @@ export var serializeAws_restJson1GetTagsCommand = function (input, context) { re
146
146
  else {
147
147
  throw new Error("No value provided for input HTTP label: Arn.");
148
148
  }
149
- return [2 /*return*/, new __HttpRequest({
149
+ return [2, new __HttpRequest({
150
150
  protocol: protocol,
151
151
  hostname: hostname,
152
152
  port: port,
@@ -162,7 +162,7 @@ export var serializeAws_restJson1GroupResourcesCommand = function (input, contex
162
162
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
163
163
  return __generator(this, function (_c) {
164
164
  switch (_c.label) {
165
- case 0: return [4 /*yield*/, context.endpoint()];
165
+ case 0: return [4, context.endpoint()];
166
166
  case 1:
167
167
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
168
168
  headers = {
@@ -173,7 +173,7 @@ export var serializeAws_restJson1GroupResourcesCommand = function (input, contex
173
173
  input.ResourceArns !== null && {
174
174
  ResourceArns: serializeAws_restJson1ResourceArnList(input.ResourceArns, context),
175
175
  })));
176
- return [2 /*return*/, new __HttpRequest({
176
+ return [2, new __HttpRequest({
177
177
  protocol: protocol,
178
178
  hostname: hostname,
179
179
  port: port,
@@ -189,7 +189,7 @@ export var serializeAws_restJson1ListGroupResourcesCommand = function (input, co
189
189
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
190
190
  return __generator(this, function (_c) {
191
191
  switch (_c.label) {
192
- case 0: return [4 /*yield*/, context.endpoint()];
192
+ case 0: return [4, context.endpoint()];
193
193
  case 1:
194
194
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
195
195
  headers = {
@@ -198,7 +198,7 @@ export var serializeAws_restJson1ListGroupResourcesCommand = function (input, co
198
198
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-group-resources";
199
199
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Filters !== undefined &&
200
200
  input.Filters !== null && { Filters: serializeAws_restJson1ResourceFilterList(input.Filters, context) })), (input.Group !== undefined && input.Group !== null && { Group: input.Group })), (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
201
- return [2 /*return*/, new __HttpRequest({
201
+ return [2, new __HttpRequest({
202
202
  protocol: protocol,
203
203
  hostname: hostname,
204
204
  port: port,
@@ -214,7 +214,7 @@ export var serializeAws_restJson1ListGroupsCommand = function (input, context) {
214
214
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
215
215
  return __generator(this, function (_c) {
216
216
  switch (_c.label) {
217
- case 0: return [4 /*yield*/, context.endpoint()];
217
+ case 0: return [4, context.endpoint()];
218
218
  case 1:
219
219
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
220
220
  headers = {
@@ -224,7 +224,7 @@ export var serializeAws_restJson1ListGroupsCommand = function (input, context) {
224
224
  query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
225
225
  body = JSON.stringify(__assign({}, (input.Filters !== undefined &&
226
226
  input.Filters !== null && { Filters: serializeAws_restJson1GroupFilterList(input.Filters, context) })));
227
- return [2 /*return*/, new __HttpRequest({
227
+ return [2, new __HttpRequest({
228
228
  protocol: protocol,
229
229
  hostname: hostname,
230
230
  port: port,
@@ -241,7 +241,7 @@ export var serializeAws_restJson1PutGroupConfigurationCommand = function (input,
241
241
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
242
242
  return __generator(this, function (_c) {
243
243
  switch (_c.label) {
244
- case 0: return [4 /*yield*/, context.endpoint()];
244
+ case 0: return [4, context.endpoint()];
245
245
  case 1:
246
246
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
247
247
  headers = {
@@ -252,7 +252,7 @@ export var serializeAws_restJson1PutGroupConfigurationCommand = function (input,
252
252
  input.Configuration !== null && {
253
253
  Configuration: serializeAws_restJson1GroupConfigurationList(input.Configuration, context),
254
254
  })), (input.Group !== undefined && input.Group !== null && { Group: input.Group })));
255
- return [2 /*return*/, new __HttpRequest({
255
+ return [2, new __HttpRequest({
256
256
  protocol: protocol,
257
257
  hostname: hostname,
258
258
  port: port,
@@ -268,7 +268,7 @@ export var serializeAws_restJson1SearchResourcesCommand = function (input, conte
268
268
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
269
269
  return __generator(this, function (_c) {
270
270
  switch (_c.label) {
271
- case 0: return [4 /*yield*/, context.endpoint()];
271
+ case 0: return [4, context.endpoint()];
272
272
  case 1:
273
273
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
274
274
  headers = {
@@ -279,7 +279,7 @@ export var serializeAws_restJson1SearchResourcesCommand = function (input, conte
279
279
  input.ResourceQuery !== null && {
280
280
  ResourceQuery: serializeAws_restJson1ResourceQuery(input.ResourceQuery, context),
281
281
  })));
282
- return [2 /*return*/, new __HttpRequest({
282
+ return [2, new __HttpRequest({
283
283
  protocol: protocol,
284
284
  hostname: hostname,
285
285
  port: port,
@@ -295,7 +295,7 @@ export var serializeAws_restJson1TagCommand = function (input, context) { return
295
295
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
296
296
  return __generator(this, function (_c) {
297
297
  switch (_c.label) {
298
- case 0: return [4 /*yield*/, context.endpoint()];
298
+ case 0: return [4, context.endpoint()];
299
299
  case 1:
300
300
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
301
301
  headers = {
@@ -313,7 +313,7 @@ export var serializeAws_restJson1TagCommand = function (input, context) { return
313
313
  throw new Error("No value provided for input HTTP label: Arn.");
314
314
  }
315
315
  body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
316
- return [2 /*return*/, new __HttpRequest({
316
+ return [2, new __HttpRequest({
317
317
  protocol: protocol,
318
318
  hostname: hostname,
319
319
  port: port,
@@ -329,7 +329,7 @@ export var serializeAws_restJson1UngroupResourcesCommand = function (input, cont
329
329
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
330
330
  return __generator(this, function (_c) {
331
331
  switch (_c.label) {
332
- case 0: return [4 /*yield*/, context.endpoint()];
332
+ case 0: return [4, context.endpoint()];
333
333
  case 1:
334
334
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
335
335
  headers = {
@@ -340,7 +340,7 @@ export var serializeAws_restJson1UngroupResourcesCommand = function (input, cont
340
340
  input.ResourceArns !== null && {
341
341
  ResourceArns: serializeAws_restJson1ResourceArnList(input.ResourceArns, context),
342
342
  })));
343
- return [2 /*return*/, new __HttpRequest({
343
+ return [2, new __HttpRequest({
344
344
  protocol: protocol,
345
345
  hostname: hostname,
346
346
  port: port,
@@ -356,7 +356,7 @@ export var serializeAws_restJson1UntagCommand = function (input, context) { retu
356
356
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
357
357
  return __generator(this, function (_c) {
358
358
  switch (_c.label) {
359
- case 0: return [4 /*yield*/, context.endpoint()];
359
+ case 0: return [4, context.endpoint()];
360
360
  case 1:
361
361
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
362
362
  headers = {
@@ -375,7 +375,7 @@ export var serializeAws_restJson1UntagCommand = function (input, context) { retu
375
375
  }
376
376
  body = JSON.stringify(__assign({}, (input.Keys !== undefined &&
377
377
  input.Keys !== null && { Keys: serializeAws_restJson1TagKeyList(input.Keys, context) })));
378
- return [2 /*return*/, new __HttpRequest({
378
+ return [2, new __HttpRequest({
379
379
  protocol: protocol,
380
380
  hostname: hostname,
381
381
  port: port,
@@ -391,7 +391,7 @@ export var serializeAws_restJson1UpdateGroupCommand = function (input, context)
391
391
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
392
392
  return __generator(this, function (_c) {
393
393
  switch (_c.label) {
394
- case 0: return [4 /*yield*/, context.endpoint()];
394
+ case 0: return [4, context.endpoint()];
395
395
  case 1:
396
396
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
397
397
  headers = {
@@ -399,7 +399,7 @@ export var serializeAws_restJson1UpdateGroupCommand = function (input, context)
399
399
  };
400
400
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-group";
401
401
  body = JSON.stringify(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Group !== undefined && input.Group !== null && { Group: input.Group })), (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })));
402
- return [2 /*return*/, new __HttpRequest({
402
+ return [2, new __HttpRequest({
403
403
  protocol: protocol,
404
404
  hostname: hostname,
405
405
  port: port,
@@ -415,7 +415,7 @@ export var serializeAws_restJson1UpdateGroupQueryCommand = function (input, cont
415
415
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
416
416
  return __generator(this, function (_c) {
417
417
  switch (_c.label) {
418
- case 0: return [4 /*yield*/, context.endpoint()];
418
+ case 0: return [4, context.endpoint()];
419
419
  case 1:
420
420
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
421
421
  headers = {
@@ -426,7 +426,7 @@ export var serializeAws_restJson1UpdateGroupQueryCommand = function (input, cont
426
426
  input.ResourceQuery !== null && {
427
427
  ResourceQuery: serializeAws_restJson1ResourceQuery(input.ResourceQuery, context),
428
428
  })));
429
- return [2 /*return*/, new __HttpRequest({
429
+ return [2, new __HttpRequest({
430
430
  protocol: protocol,
431
431
  hostname: hostname,
432
432
  port: port,
@@ -444,7 +444,7 @@ export var deserializeAws_restJson1CreateGroupCommand = function (output, contex
444
444
  switch (_c.label) {
445
445
  case 0:
446
446
  if (output.statusCode !== 200 && output.statusCode >= 300) {
447
- return [2 /*return*/, deserializeAws_restJson1CreateGroupCommandError(output, context)];
447
+ return [2, deserializeAws_restJson1CreateGroupCommandError(output, context)];
448
448
  }
449
449
  contents = {
450
450
  $metadata: deserializeMetadata(output),
@@ -455,7 +455,7 @@ export var deserializeAws_restJson1CreateGroupCommand = function (output, contex
455
455
  };
456
456
  _a = __expectNonNull;
457
457
  _b = __expectObject;
458
- return [4 /*yield*/, parseBody(output.body, context)];
458
+ return [4, parseBody(output.body, context)];
459
459
  case 1:
460
460
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
461
461
  if (data.Group !== undefined && data.Group !== null) {
@@ -470,7 +470,7 @@ export var deserializeAws_restJson1CreateGroupCommand = function (output, contex
470
470
  if (data.Tags !== undefined && data.Tags !== null) {
471
471
  contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
472
472
  }
473
- return [2 /*return*/, Promise.resolve(contents)];
473
+ return [2, Promise.resolve(contents)];
474
474
  }
475
475
  });
476
476
  }); };
@@ -482,55 +482,55 @@ var deserializeAws_restJson1CreateGroupCommandError = function (output, context)
482
482
  case 0:
483
483
  _a = [__assign({}, output)];
484
484
  _h = {};
485
- return [4 /*yield*/, parseBody(output.body, context)];
485
+ return [4, parseBody(output.body, context)];
486
486
  case 1:
487
487
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
488
488
  errorCode = "UnknownError";
489
489
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
490
490
  _b = errorCode;
491
491
  switch (_b) {
492
- case "BadRequestException": return [3 /*break*/, 2];
493
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
494
- case "ForbiddenException": return [3 /*break*/, 4];
495
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
496
- case "InternalServerErrorException": return [3 /*break*/, 6];
497
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
498
- case "MethodNotAllowedException": return [3 /*break*/, 8];
499
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
500
- case "TooManyRequestsException": return [3 /*break*/, 10];
501
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 10];
502
- }
503
- return [3 /*break*/, 12];
492
+ case "BadRequestException": return [3, 2];
493
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
494
+ case "ForbiddenException": return [3, 4];
495
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
496
+ case "InternalServerErrorException": return [3, 6];
497
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
498
+ case "MethodNotAllowedException": return [3, 8];
499
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
500
+ case "TooManyRequestsException": return [3, 10];
501
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 10];
502
+ }
503
+ return [3, 12];
504
504
  case 2:
505
505
  _c = [{}];
506
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
506
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
507
507
  case 3:
508
508
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
509
- return [3 /*break*/, 13];
509
+ return [3, 13];
510
510
  case 4:
511
511
  _d = [{}];
512
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
512
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
513
513
  case 5:
514
514
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
515
- return [3 /*break*/, 13];
515
+ return [3, 13];
516
516
  case 6:
517
517
  _e = [{}];
518
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
518
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
519
519
  case 7:
520
520
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
521
- return [3 /*break*/, 13];
521
+ return [3, 13];
522
522
  case 8:
523
523
  _f = [{}];
524
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
524
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
525
525
  case 9:
526
526
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
527
- return [3 /*break*/, 13];
527
+ return [3, 13];
528
528
  case 10:
529
529
  _g = [{}];
530
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
530
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
531
531
  case 11:
532
532
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
533
- return [3 /*break*/, 13];
533
+ return [3, 13];
534
534
  case 12:
535
535
  parsedBody = parsedOutput.body;
536
536
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -540,7 +540,7 @@ var deserializeAws_restJson1CreateGroupCommandError = function (output, context)
540
540
  message = response.message || response.Message || errorCode;
541
541
  response.message = message;
542
542
  delete response.Message;
543
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
543
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
544
544
  }
545
545
  });
546
546
  }); };
@@ -550,7 +550,7 @@ export var deserializeAws_restJson1DeleteGroupCommand = function (output, contex
550
550
  switch (_c.label) {
551
551
  case 0:
552
552
  if (output.statusCode !== 200 && output.statusCode >= 300) {
553
- return [2 /*return*/, deserializeAws_restJson1DeleteGroupCommandError(output, context)];
553
+ return [2, deserializeAws_restJson1DeleteGroupCommandError(output, context)];
554
554
  }
555
555
  contents = {
556
556
  $metadata: deserializeMetadata(output),
@@ -558,13 +558,13 @@ export var deserializeAws_restJson1DeleteGroupCommand = function (output, contex
558
558
  };
559
559
  _a = __expectNonNull;
560
560
  _b = __expectObject;
561
- return [4 /*yield*/, parseBody(output.body, context)];
561
+ return [4, parseBody(output.body, context)];
562
562
  case 1:
563
563
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
564
564
  if (data.Group !== undefined && data.Group !== null) {
565
565
  contents.Group = deserializeAws_restJson1Group(data.Group, context);
566
566
  }
567
- return [2 /*return*/, Promise.resolve(contents)];
567
+ return [2, Promise.resolve(contents)];
568
568
  }
569
569
  });
570
570
  }); };
@@ -576,63 +576,63 @@ var deserializeAws_restJson1DeleteGroupCommandError = function (output, context)
576
576
  case 0:
577
577
  _a = [__assign({}, output)];
578
578
  _j = {};
579
- return [4 /*yield*/, parseBody(output.body, context)];
579
+ return [4, parseBody(output.body, context)];
580
580
  case 1:
581
581
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
582
582
  errorCode = "UnknownError";
583
583
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
584
584
  _b = errorCode;
585
585
  switch (_b) {
586
- case "BadRequestException": return [3 /*break*/, 2];
587
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
588
- case "ForbiddenException": return [3 /*break*/, 4];
589
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
590
- case "InternalServerErrorException": return [3 /*break*/, 6];
591
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
592
- case "MethodNotAllowedException": return [3 /*break*/, 8];
593
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
594
- case "NotFoundException": return [3 /*break*/, 10];
595
- case "com.amazonaws.resourcegroups#NotFoundException": return [3 /*break*/, 10];
596
- case "TooManyRequestsException": return [3 /*break*/, 12];
597
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 12];
598
- }
599
- return [3 /*break*/, 14];
586
+ case "BadRequestException": return [3, 2];
587
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
588
+ case "ForbiddenException": return [3, 4];
589
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
590
+ case "InternalServerErrorException": return [3, 6];
591
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
592
+ case "MethodNotAllowedException": return [3, 8];
593
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
594
+ case "NotFoundException": return [3, 10];
595
+ case "com.amazonaws.resourcegroups#NotFoundException": return [3, 10];
596
+ case "TooManyRequestsException": return [3, 12];
597
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 12];
598
+ }
599
+ return [3, 14];
600
600
  case 2:
601
601
  _c = [{}];
602
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
602
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
603
603
  case 3:
604
604
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
605
- return [3 /*break*/, 15];
605
+ return [3, 15];
606
606
  case 4:
607
607
  _d = [{}];
608
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
608
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
609
609
  case 5:
610
610
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
611
- return [3 /*break*/, 15];
611
+ return [3, 15];
612
612
  case 6:
613
613
  _e = [{}];
614
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
614
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
615
615
  case 7:
616
616
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
617
- return [3 /*break*/, 15];
617
+ return [3, 15];
618
618
  case 8:
619
619
  _f = [{}];
620
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
620
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
621
621
  case 9:
622
622
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
623
- return [3 /*break*/, 15];
623
+ return [3, 15];
624
624
  case 10:
625
625
  _g = [{}];
626
- return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
626
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
627
627
  case 11:
628
628
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
629
- return [3 /*break*/, 15];
629
+ return [3, 15];
630
630
  case 12:
631
631
  _h = [{}];
632
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
632
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
633
633
  case 13:
634
634
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
635
- return [3 /*break*/, 15];
635
+ return [3, 15];
636
636
  case 14:
637
637
  parsedBody = parsedOutput.body;
638
638
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -642,7 +642,7 @@ var deserializeAws_restJson1DeleteGroupCommandError = function (output, context)
642
642
  message = response.message || response.Message || errorCode;
643
643
  response.message = message;
644
644
  delete response.Message;
645
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
645
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
646
646
  }
647
647
  });
648
648
  }); };
@@ -652,7 +652,7 @@ export var deserializeAws_restJson1GetGroupCommand = function (output, context)
652
652
  switch (_c.label) {
653
653
  case 0:
654
654
  if (output.statusCode !== 200 && output.statusCode >= 300) {
655
- return [2 /*return*/, deserializeAws_restJson1GetGroupCommandError(output, context)];
655
+ return [2, deserializeAws_restJson1GetGroupCommandError(output, context)];
656
656
  }
657
657
  contents = {
658
658
  $metadata: deserializeMetadata(output),
@@ -660,13 +660,13 @@ export var deserializeAws_restJson1GetGroupCommand = function (output, context)
660
660
  };
661
661
  _a = __expectNonNull;
662
662
  _b = __expectObject;
663
- return [4 /*yield*/, parseBody(output.body, context)];
663
+ return [4, parseBody(output.body, context)];
664
664
  case 1:
665
665
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
666
666
  if (data.Group !== undefined && data.Group !== null) {
667
667
  contents.Group = deserializeAws_restJson1Group(data.Group, context);
668
668
  }
669
- return [2 /*return*/, Promise.resolve(contents)];
669
+ return [2, Promise.resolve(contents)];
670
670
  }
671
671
  });
672
672
  }); };
@@ -678,63 +678,63 @@ var deserializeAws_restJson1GetGroupCommandError = function (output, context) {
678
678
  case 0:
679
679
  _a = [__assign({}, output)];
680
680
  _j = {};
681
- return [4 /*yield*/, parseBody(output.body, context)];
681
+ return [4, parseBody(output.body, context)];
682
682
  case 1:
683
683
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
684
684
  errorCode = "UnknownError";
685
685
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
686
686
  _b = errorCode;
687
687
  switch (_b) {
688
- case "BadRequestException": return [3 /*break*/, 2];
689
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
690
- case "ForbiddenException": return [3 /*break*/, 4];
691
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
692
- case "InternalServerErrorException": return [3 /*break*/, 6];
693
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
694
- case "MethodNotAllowedException": return [3 /*break*/, 8];
695
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
696
- case "NotFoundException": return [3 /*break*/, 10];
697
- case "com.amazonaws.resourcegroups#NotFoundException": return [3 /*break*/, 10];
698
- case "TooManyRequestsException": return [3 /*break*/, 12];
699
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 12];
700
- }
701
- return [3 /*break*/, 14];
688
+ case "BadRequestException": return [3, 2];
689
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
690
+ case "ForbiddenException": return [3, 4];
691
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
692
+ case "InternalServerErrorException": return [3, 6];
693
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
694
+ case "MethodNotAllowedException": return [3, 8];
695
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
696
+ case "NotFoundException": return [3, 10];
697
+ case "com.amazonaws.resourcegroups#NotFoundException": return [3, 10];
698
+ case "TooManyRequestsException": return [3, 12];
699
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 12];
700
+ }
701
+ return [3, 14];
702
702
  case 2:
703
703
  _c = [{}];
704
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
704
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
705
705
  case 3:
706
706
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
707
- return [3 /*break*/, 15];
707
+ return [3, 15];
708
708
  case 4:
709
709
  _d = [{}];
710
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
710
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
711
711
  case 5:
712
712
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
713
- return [3 /*break*/, 15];
713
+ return [3, 15];
714
714
  case 6:
715
715
  _e = [{}];
716
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
716
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
717
717
  case 7:
718
718
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
719
- return [3 /*break*/, 15];
719
+ return [3, 15];
720
720
  case 8:
721
721
  _f = [{}];
722
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
722
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
723
723
  case 9:
724
724
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
725
- return [3 /*break*/, 15];
725
+ return [3, 15];
726
726
  case 10:
727
727
  _g = [{}];
728
- return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
728
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
729
729
  case 11:
730
730
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
731
- return [3 /*break*/, 15];
731
+ return [3, 15];
732
732
  case 12:
733
733
  _h = [{}];
734
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
734
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
735
735
  case 13:
736
736
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
737
- return [3 /*break*/, 15];
737
+ return [3, 15];
738
738
  case 14:
739
739
  parsedBody = parsedOutput.body;
740
740
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -744,7 +744,7 @@ var deserializeAws_restJson1GetGroupCommandError = function (output, context) {
744
744
  message = response.message || response.Message || errorCode;
745
745
  response.message = message;
746
746
  delete response.Message;
747
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
747
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
748
748
  }
749
749
  });
750
750
  }); };
@@ -754,7 +754,7 @@ export var deserializeAws_restJson1GetGroupConfigurationCommand = function (outp
754
754
  switch (_c.label) {
755
755
  case 0:
756
756
  if (output.statusCode !== 200 && output.statusCode >= 300) {
757
- return [2 /*return*/, deserializeAws_restJson1GetGroupConfigurationCommandError(output, context)];
757
+ return [2, deserializeAws_restJson1GetGroupConfigurationCommandError(output, context)];
758
758
  }
759
759
  contents = {
760
760
  $metadata: deserializeMetadata(output),
@@ -762,13 +762,13 @@ export var deserializeAws_restJson1GetGroupConfigurationCommand = function (outp
762
762
  };
763
763
  _a = __expectNonNull;
764
764
  _b = __expectObject;
765
- return [4 /*yield*/, parseBody(output.body, context)];
765
+ return [4, parseBody(output.body, context)];
766
766
  case 1:
767
767
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
768
768
  if (data.GroupConfiguration !== undefined && data.GroupConfiguration !== null) {
769
769
  contents.GroupConfiguration = deserializeAws_restJson1GroupConfiguration(data.GroupConfiguration, context);
770
770
  }
771
- return [2 /*return*/, Promise.resolve(contents)];
771
+ return [2, Promise.resolve(contents)];
772
772
  }
773
773
  });
774
774
  }); };
@@ -780,63 +780,63 @@ var deserializeAws_restJson1GetGroupConfigurationCommandError = function (output
780
780
  case 0:
781
781
  _a = [__assign({}, output)];
782
782
  _j = {};
783
- return [4 /*yield*/, parseBody(output.body, context)];
783
+ return [4, parseBody(output.body, context)];
784
784
  case 1:
785
785
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
786
786
  errorCode = "UnknownError";
787
787
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
788
788
  _b = errorCode;
789
789
  switch (_b) {
790
- case "BadRequestException": return [3 /*break*/, 2];
791
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
792
- case "ForbiddenException": return [3 /*break*/, 4];
793
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
794
- case "InternalServerErrorException": return [3 /*break*/, 6];
795
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
796
- case "MethodNotAllowedException": return [3 /*break*/, 8];
797
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
798
- case "NotFoundException": return [3 /*break*/, 10];
799
- case "com.amazonaws.resourcegroups#NotFoundException": return [3 /*break*/, 10];
800
- case "TooManyRequestsException": return [3 /*break*/, 12];
801
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 12];
802
- }
803
- return [3 /*break*/, 14];
790
+ case "BadRequestException": return [3, 2];
791
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
792
+ case "ForbiddenException": return [3, 4];
793
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
794
+ case "InternalServerErrorException": return [3, 6];
795
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
796
+ case "MethodNotAllowedException": return [3, 8];
797
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
798
+ case "NotFoundException": return [3, 10];
799
+ case "com.amazonaws.resourcegroups#NotFoundException": return [3, 10];
800
+ case "TooManyRequestsException": return [3, 12];
801
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 12];
802
+ }
803
+ return [3, 14];
804
804
  case 2:
805
805
  _c = [{}];
806
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
806
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
807
807
  case 3:
808
808
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
809
- return [3 /*break*/, 15];
809
+ return [3, 15];
810
810
  case 4:
811
811
  _d = [{}];
812
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
812
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
813
813
  case 5:
814
814
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
815
- return [3 /*break*/, 15];
815
+ return [3, 15];
816
816
  case 6:
817
817
  _e = [{}];
818
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
818
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
819
819
  case 7:
820
820
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
821
- return [3 /*break*/, 15];
821
+ return [3, 15];
822
822
  case 8:
823
823
  _f = [{}];
824
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
824
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
825
825
  case 9:
826
826
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
827
- return [3 /*break*/, 15];
827
+ return [3, 15];
828
828
  case 10:
829
829
  _g = [{}];
830
- return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
830
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
831
831
  case 11:
832
832
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
833
- return [3 /*break*/, 15];
833
+ return [3, 15];
834
834
  case 12:
835
835
  _h = [{}];
836
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
836
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
837
837
  case 13:
838
838
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
839
- return [3 /*break*/, 15];
839
+ return [3, 15];
840
840
  case 14:
841
841
  parsedBody = parsedOutput.body;
842
842
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -846,7 +846,7 @@ var deserializeAws_restJson1GetGroupConfigurationCommandError = function (output
846
846
  message = response.message || response.Message || errorCode;
847
847
  response.message = message;
848
848
  delete response.Message;
849
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
849
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
850
850
  }
851
851
  });
852
852
  }); };
@@ -856,7 +856,7 @@ export var deserializeAws_restJson1GetGroupQueryCommand = function (output, cont
856
856
  switch (_c.label) {
857
857
  case 0:
858
858
  if (output.statusCode !== 200 && output.statusCode >= 300) {
859
- return [2 /*return*/, deserializeAws_restJson1GetGroupQueryCommandError(output, context)];
859
+ return [2, deserializeAws_restJson1GetGroupQueryCommandError(output, context)];
860
860
  }
861
861
  contents = {
862
862
  $metadata: deserializeMetadata(output),
@@ -864,13 +864,13 @@ export var deserializeAws_restJson1GetGroupQueryCommand = function (output, cont
864
864
  };
865
865
  _a = __expectNonNull;
866
866
  _b = __expectObject;
867
- return [4 /*yield*/, parseBody(output.body, context)];
867
+ return [4, parseBody(output.body, context)];
868
868
  case 1:
869
869
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
870
870
  if (data.GroupQuery !== undefined && data.GroupQuery !== null) {
871
871
  contents.GroupQuery = deserializeAws_restJson1GroupQuery(data.GroupQuery, context);
872
872
  }
873
- return [2 /*return*/, Promise.resolve(contents)];
873
+ return [2, Promise.resolve(contents)];
874
874
  }
875
875
  });
876
876
  }); };
@@ -882,63 +882,63 @@ var deserializeAws_restJson1GetGroupQueryCommandError = function (output, contex
882
882
  case 0:
883
883
  _a = [__assign({}, output)];
884
884
  _j = {};
885
- return [4 /*yield*/, parseBody(output.body, context)];
885
+ return [4, parseBody(output.body, context)];
886
886
  case 1:
887
887
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
888
888
  errorCode = "UnknownError";
889
889
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
890
890
  _b = errorCode;
891
891
  switch (_b) {
892
- case "BadRequestException": return [3 /*break*/, 2];
893
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
894
- case "ForbiddenException": return [3 /*break*/, 4];
895
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
896
- case "InternalServerErrorException": return [3 /*break*/, 6];
897
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
898
- case "MethodNotAllowedException": return [3 /*break*/, 8];
899
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
900
- case "NotFoundException": return [3 /*break*/, 10];
901
- case "com.amazonaws.resourcegroups#NotFoundException": return [3 /*break*/, 10];
902
- case "TooManyRequestsException": return [3 /*break*/, 12];
903
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 12];
904
- }
905
- return [3 /*break*/, 14];
892
+ case "BadRequestException": return [3, 2];
893
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
894
+ case "ForbiddenException": return [3, 4];
895
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
896
+ case "InternalServerErrorException": return [3, 6];
897
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
898
+ case "MethodNotAllowedException": return [3, 8];
899
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
900
+ case "NotFoundException": return [3, 10];
901
+ case "com.amazonaws.resourcegroups#NotFoundException": return [3, 10];
902
+ case "TooManyRequestsException": return [3, 12];
903
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 12];
904
+ }
905
+ return [3, 14];
906
906
  case 2:
907
907
  _c = [{}];
908
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
908
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
909
909
  case 3:
910
910
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
911
- return [3 /*break*/, 15];
911
+ return [3, 15];
912
912
  case 4:
913
913
  _d = [{}];
914
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
914
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
915
915
  case 5:
916
916
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
917
- return [3 /*break*/, 15];
917
+ return [3, 15];
918
918
  case 6:
919
919
  _e = [{}];
920
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
920
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
921
921
  case 7:
922
922
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
923
- return [3 /*break*/, 15];
923
+ return [3, 15];
924
924
  case 8:
925
925
  _f = [{}];
926
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
926
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
927
927
  case 9:
928
928
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
929
- return [3 /*break*/, 15];
929
+ return [3, 15];
930
930
  case 10:
931
931
  _g = [{}];
932
- return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
932
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
933
933
  case 11:
934
934
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
935
- return [3 /*break*/, 15];
935
+ return [3, 15];
936
936
  case 12:
937
937
  _h = [{}];
938
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
938
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
939
939
  case 13:
940
940
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
941
- return [3 /*break*/, 15];
941
+ return [3, 15];
942
942
  case 14:
943
943
  parsedBody = parsedOutput.body;
944
944
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -948,7 +948,7 @@ var deserializeAws_restJson1GetGroupQueryCommandError = function (output, contex
948
948
  message = response.message || response.Message || errorCode;
949
949
  response.message = message;
950
950
  delete response.Message;
951
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
951
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
952
952
  }
953
953
  });
954
954
  }); };
@@ -958,7 +958,7 @@ export var deserializeAws_restJson1GetTagsCommand = function (output, context) {
958
958
  switch (_c.label) {
959
959
  case 0:
960
960
  if (output.statusCode !== 200 && output.statusCode >= 300) {
961
- return [2 /*return*/, deserializeAws_restJson1GetTagsCommandError(output, context)];
961
+ return [2, deserializeAws_restJson1GetTagsCommandError(output, context)];
962
962
  }
963
963
  contents = {
964
964
  $metadata: deserializeMetadata(output),
@@ -967,7 +967,7 @@ export var deserializeAws_restJson1GetTagsCommand = function (output, context) {
967
967
  };
968
968
  _a = __expectNonNull;
969
969
  _b = __expectObject;
970
- return [4 /*yield*/, parseBody(output.body, context)];
970
+ return [4, parseBody(output.body, context)];
971
971
  case 1:
972
972
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
973
973
  if (data.Arn !== undefined && data.Arn !== null) {
@@ -976,7 +976,7 @@ export var deserializeAws_restJson1GetTagsCommand = function (output, context) {
976
976
  if (data.Tags !== undefined && data.Tags !== null) {
977
977
  contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
978
978
  }
979
- return [2 /*return*/, Promise.resolve(contents)];
979
+ return [2, Promise.resolve(contents)];
980
980
  }
981
981
  });
982
982
  }); };
@@ -988,63 +988,63 @@ var deserializeAws_restJson1GetTagsCommandError = function (output, context) { r
988
988
  case 0:
989
989
  _a = [__assign({}, output)];
990
990
  _j = {};
991
- return [4 /*yield*/, parseBody(output.body, context)];
991
+ return [4, parseBody(output.body, context)];
992
992
  case 1:
993
993
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
994
994
  errorCode = "UnknownError";
995
995
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
996
996
  _b = errorCode;
997
997
  switch (_b) {
998
- case "BadRequestException": return [3 /*break*/, 2];
999
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
1000
- case "ForbiddenException": return [3 /*break*/, 4];
1001
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
1002
- case "InternalServerErrorException": return [3 /*break*/, 6];
1003
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
1004
- case "MethodNotAllowedException": return [3 /*break*/, 8];
1005
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
1006
- case "NotFoundException": return [3 /*break*/, 10];
1007
- case "com.amazonaws.resourcegroups#NotFoundException": return [3 /*break*/, 10];
1008
- case "TooManyRequestsException": return [3 /*break*/, 12];
1009
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 12];
1010
- }
1011
- return [3 /*break*/, 14];
998
+ case "BadRequestException": return [3, 2];
999
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
1000
+ case "ForbiddenException": return [3, 4];
1001
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
1002
+ case "InternalServerErrorException": return [3, 6];
1003
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
1004
+ case "MethodNotAllowedException": return [3, 8];
1005
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
1006
+ case "NotFoundException": return [3, 10];
1007
+ case "com.amazonaws.resourcegroups#NotFoundException": return [3, 10];
1008
+ case "TooManyRequestsException": return [3, 12];
1009
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 12];
1010
+ }
1011
+ return [3, 14];
1012
1012
  case 2:
1013
1013
  _c = [{}];
1014
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1014
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1015
1015
  case 3:
1016
1016
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1017
- return [3 /*break*/, 15];
1017
+ return [3, 15];
1018
1018
  case 4:
1019
1019
  _d = [{}];
1020
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1020
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1021
1021
  case 5:
1022
1022
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1023
- return [3 /*break*/, 15];
1023
+ return [3, 15];
1024
1024
  case 6:
1025
1025
  _e = [{}];
1026
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1026
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1027
1027
  case 7:
1028
1028
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1029
- return [3 /*break*/, 15];
1029
+ return [3, 15];
1030
1030
  case 8:
1031
1031
  _f = [{}];
1032
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1032
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1033
1033
  case 9:
1034
1034
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1035
- return [3 /*break*/, 15];
1035
+ return [3, 15];
1036
1036
  case 10:
1037
1037
  _g = [{}];
1038
- return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
1038
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
1039
1039
  case 11:
1040
1040
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1041
- return [3 /*break*/, 15];
1041
+ return [3, 15];
1042
1042
  case 12:
1043
1043
  _h = [{}];
1044
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1044
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1045
1045
  case 13:
1046
1046
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1047
- return [3 /*break*/, 15];
1047
+ return [3, 15];
1048
1048
  case 14:
1049
1049
  parsedBody = parsedOutput.body;
1050
1050
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1054,7 +1054,7 @@ var deserializeAws_restJson1GetTagsCommandError = function (output, context) { r
1054
1054
  message = response.message || response.Message || errorCode;
1055
1055
  response.message = message;
1056
1056
  delete response.Message;
1057
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1057
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1058
1058
  }
1059
1059
  });
1060
1060
  }); };
@@ -1064,7 +1064,7 @@ export var deserializeAws_restJson1GroupResourcesCommand = function (output, con
1064
1064
  switch (_c.label) {
1065
1065
  case 0:
1066
1066
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1067
- return [2 /*return*/, deserializeAws_restJson1GroupResourcesCommandError(output, context)];
1067
+ return [2, deserializeAws_restJson1GroupResourcesCommandError(output, context)];
1068
1068
  }
1069
1069
  contents = {
1070
1070
  $metadata: deserializeMetadata(output),
@@ -1074,7 +1074,7 @@ export var deserializeAws_restJson1GroupResourcesCommand = function (output, con
1074
1074
  };
1075
1075
  _a = __expectNonNull;
1076
1076
  _b = __expectObject;
1077
- return [4 /*yield*/, parseBody(output.body, context)];
1077
+ return [4, parseBody(output.body, context)];
1078
1078
  case 1:
1079
1079
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1080
1080
  if (data.Failed !== undefined && data.Failed !== null) {
@@ -1086,7 +1086,7 @@ export var deserializeAws_restJson1GroupResourcesCommand = function (output, con
1086
1086
  if (data.Succeeded !== undefined && data.Succeeded !== null) {
1087
1087
  contents.Succeeded = deserializeAws_restJson1ResourceArnList(data.Succeeded, context);
1088
1088
  }
1089
- return [2 /*return*/, Promise.resolve(contents)];
1089
+ return [2, Promise.resolve(contents)];
1090
1090
  }
1091
1091
  });
1092
1092
  }); };
@@ -1098,63 +1098,63 @@ var deserializeAws_restJson1GroupResourcesCommandError = function (output, conte
1098
1098
  case 0:
1099
1099
  _a = [__assign({}, output)];
1100
1100
  _j = {};
1101
- return [4 /*yield*/, parseBody(output.body, context)];
1101
+ return [4, parseBody(output.body, context)];
1102
1102
  case 1:
1103
1103
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
1104
1104
  errorCode = "UnknownError";
1105
1105
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1106
1106
  _b = errorCode;
1107
1107
  switch (_b) {
1108
- case "BadRequestException": return [3 /*break*/, 2];
1109
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
1110
- case "ForbiddenException": return [3 /*break*/, 4];
1111
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
1112
- case "InternalServerErrorException": return [3 /*break*/, 6];
1113
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
1114
- case "MethodNotAllowedException": return [3 /*break*/, 8];
1115
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
1116
- case "NotFoundException": return [3 /*break*/, 10];
1117
- case "com.amazonaws.resourcegroups#NotFoundException": return [3 /*break*/, 10];
1118
- case "TooManyRequestsException": return [3 /*break*/, 12];
1119
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 12];
1120
- }
1121
- return [3 /*break*/, 14];
1108
+ case "BadRequestException": return [3, 2];
1109
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
1110
+ case "ForbiddenException": return [3, 4];
1111
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
1112
+ case "InternalServerErrorException": return [3, 6];
1113
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
1114
+ case "MethodNotAllowedException": return [3, 8];
1115
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
1116
+ case "NotFoundException": return [3, 10];
1117
+ case "com.amazonaws.resourcegroups#NotFoundException": return [3, 10];
1118
+ case "TooManyRequestsException": return [3, 12];
1119
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 12];
1120
+ }
1121
+ return [3, 14];
1122
1122
  case 2:
1123
1123
  _c = [{}];
1124
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1124
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1125
1125
  case 3:
1126
1126
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1127
- return [3 /*break*/, 15];
1127
+ return [3, 15];
1128
1128
  case 4:
1129
1129
  _d = [{}];
1130
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1130
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1131
1131
  case 5:
1132
1132
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1133
- return [3 /*break*/, 15];
1133
+ return [3, 15];
1134
1134
  case 6:
1135
1135
  _e = [{}];
1136
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1136
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1137
1137
  case 7:
1138
1138
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1139
- return [3 /*break*/, 15];
1139
+ return [3, 15];
1140
1140
  case 8:
1141
1141
  _f = [{}];
1142
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1142
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1143
1143
  case 9:
1144
1144
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1145
- return [3 /*break*/, 15];
1145
+ return [3, 15];
1146
1146
  case 10:
1147
1147
  _g = [{}];
1148
- return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
1148
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
1149
1149
  case 11:
1150
1150
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1151
- return [3 /*break*/, 15];
1151
+ return [3, 15];
1152
1152
  case 12:
1153
1153
  _h = [{}];
1154
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1154
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1155
1155
  case 13:
1156
1156
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1157
- return [3 /*break*/, 15];
1157
+ return [3, 15];
1158
1158
  case 14:
1159
1159
  parsedBody = parsedOutput.body;
1160
1160
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1164,7 +1164,7 @@ var deserializeAws_restJson1GroupResourcesCommandError = function (output, conte
1164
1164
  message = response.message || response.Message || errorCode;
1165
1165
  response.message = message;
1166
1166
  delete response.Message;
1167
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1167
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1168
1168
  }
1169
1169
  });
1170
1170
  }); };
@@ -1174,7 +1174,7 @@ export var deserializeAws_restJson1ListGroupResourcesCommand = function (output,
1174
1174
  switch (_c.label) {
1175
1175
  case 0:
1176
1176
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1177
- return [2 /*return*/, deserializeAws_restJson1ListGroupResourcesCommandError(output, context)];
1177
+ return [2, deserializeAws_restJson1ListGroupResourcesCommandError(output, context)];
1178
1178
  }
1179
1179
  contents = {
1180
1180
  $metadata: deserializeMetadata(output),
@@ -1185,7 +1185,7 @@ export var deserializeAws_restJson1ListGroupResourcesCommand = function (output,
1185
1185
  };
1186
1186
  _a = __expectNonNull;
1187
1187
  _b = __expectObject;
1188
- return [4 /*yield*/, parseBody(output.body, context)];
1188
+ return [4, parseBody(output.body, context)];
1189
1189
  case 1:
1190
1190
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1191
1191
  if (data.NextToken !== undefined && data.NextToken !== null) {
@@ -1200,7 +1200,7 @@ export var deserializeAws_restJson1ListGroupResourcesCommand = function (output,
1200
1200
  if (data.Resources !== undefined && data.Resources !== null) {
1201
1201
  contents.Resources = deserializeAws_restJson1ListGroupResourcesItemList(data.Resources, context);
1202
1202
  }
1203
- return [2 /*return*/, Promise.resolve(contents)];
1203
+ return [2, Promise.resolve(contents)];
1204
1204
  }
1205
1205
  });
1206
1206
  }); };
@@ -1212,71 +1212,71 @@ var deserializeAws_restJson1ListGroupResourcesCommandError = function (output, c
1212
1212
  case 0:
1213
1213
  _a = [__assign({}, output)];
1214
1214
  _k = {};
1215
- return [4 /*yield*/, parseBody(output.body, context)];
1215
+ return [4, parseBody(output.body, context)];
1216
1216
  case 1:
1217
1217
  parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
1218
1218
  errorCode = "UnknownError";
1219
1219
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1220
1220
  _b = errorCode;
1221
1221
  switch (_b) {
1222
- case "BadRequestException": return [3 /*break*/, 2];
1223
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
1224
- case "ForbiddenException": return [3 /*break*/, 4];
1225
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
1226
- case "InternalServerErrorException": return [3 /*break*/, 6];
1227
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
1228
- case "MethodNotAllowedException": return [3 /*break*/, 8];
1229
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
1230
- case "NotFoundException": return [3 /*break*/, 10];
1231
- case "com.amazonaws.resourcegroups#NotFoundException": return [3 /*break*/, 10];
1232
- case "TooManyRequestsException": return [3 /*break*/, 12];
1233
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 12];
1234
- case "UnauthorizedException": return [3 /*break*/, 14];
1235
- case "com.amazonaws.resourcegroups#UnauthorizedException": return [3 /*break*/, 14];
1236
- }
1237
- return [3 /*break*/, 16];
1222
+ case "BadRequestException": return [3, 2];
1223
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
1224
+ case "ForbiddenException": return [3, 4];
1225
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
1226
+ case "InternalServerErrorException": return [3, 6];
1227
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
1228
+ case "MethodNotAllowedException": return [3, 8];
1229
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
1230
+ case "NotFoundException": return [3, 10];
1231
+ case "com.amazonaws.resourcegroups#NotFoundException": return [3, 10];
1232
+ case "TooManyRequestsException": return [3, 12];
1233
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 12];
1234
+ case "UnauthorizedException": return [3, 14];
1235
+ case "com.amazonaws.resourcegroups#UnauthorizedException": return [3, 14];
1236
+ }
1237
+ return [3, 16];
1238
1238
  case 2:
1239
1239
  _c = [{}];
1240
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1240
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1241
1241
  case 3:
1242
1242
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1243
- return [3 /*break*/, 17];
1243
+ return [3, 17];
1244
1244
  case 4:
1245
1245
  _d = [{}];
1246
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1246
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1247
1247
  case 5:
1248
1248
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1249
- return [3 /*break*/, 17];
1249
+ return [3, 17];
1250
1250
  case 6:
1251
1251
  _e = [{}];
1252
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1252
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1253
1253
  case 7:
1254
1254
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1255
- return [3 /*break*/, 17];
1255
+ return [3, 17];
1256
1256
  case 8:
1257
1257
  _f = [{}];
1258
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1258
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1259
1259
  case 9:
1260
1260
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1261
- return [3 /*break*/, 17];
1261
+ return [3, 17];
1262
1262
  case 10:
1263
1263
  _g = [{}];
1264
- return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
1264
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
1265
1265
  case 11:
1266
1266
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1267
- return [3 /*break*/, 17];
1267
+ return [3, 17];
1268
1268
  case 12:
1269
1269
  _h = [{}];
1270
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1270
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1271
1271
  case 13:
1272
1272
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1273
- return [3 /*break*/, 17];
1273
+ return [3, 17];
1274
1274
  case 14:
1275
1275
  _j = [{}];
1276
- return [4 /*yield*/, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
1276
+ return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
1277
1277
  case 15:
1278
1278
  response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1279
- return [3 /*break*/, 17];
1279
+ return [3, 17];
1280
1280
  case 16:
1281
1281
  parsedBody = parsedOutput.body;
1282
1282
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1286,7 +1286,7 @@ var deserializeAws_restJson1ListGroupResourcesCommandError = function (output, c
1286
1286
  message = response.message || response.Message || errorCode;
1287
1287
  response.message = message;
1288
1288
  delete response.Message;
1289
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1289
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1290
1290
  }
1291
1291
  });
1292
1292
  }); };
@@ -1296,7 +1296,7 @@ export var deserializeAws_restJson1ListGroupsCommand = function (output, context
1296
1296
  switch (_c.label) {
1297
1297
  case 0:
1298
1298
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1299
- return [2 /*return*/, deserializeAws_restJson1ListGroupsCommandError(output, context)];
1299
+ return [2, deserializeAws_restJson1ListGroupsCommandError(output, context)];
1300
1300
  }
1301
1301
  contents = {
1302
1302
  $metadata: deserializeMetadata(output),
@@ -1306,7 +1306,7 @@ export var deserializeAws_restJson1ListGroupsCommand = function (output, context
1306
1306
  };
1307
1307
  _a = __expectNonNull;
1308
1308
  _b = __expectObject;
1309
- return [4 /*yield*/, parseBody(output.body, context)];
1309
+ return [4, parseBody(output.body, context)];
1310
1310
  case 1:
1311
1311
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1312
1312
  if (data.GroupIdentifiers !== undefined && data.GroupIdentifiers !== null) {
@@ -1318,7 +1318,7 @@ export var deserializeAws_restJson1ListGroupsCommand = function (output, context
1318
1318
  if (data.NextToken !== undefined && data.NextToken !== null) {
1319
1319
  contents.NextToken = __expectString(data.NextToken);
1320
1320
  }
1321
- return [2 /*return*/, Promise.resolve(contents)];
1321
+ return [2, Promise.resolve(contents)];
1322
1322
  }
1323
1323
  });
1324
1324
  }); };
@@ -1330,55 +1330,55 @@ var deserializeAws_restJson1ListGroupsCommandError = function (output, context)
1330
1330
  case 0:
1331
1331
  _a = [__assign({}, output)];
1332
1332
  _h = {};
1333
- return [4 /*yield*/, parseBody(output.body, context)];
1333
+ return [4, parseBody(output.body, context)];
1334
1334
  case 1:
1335
1335
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1336
1336
  errorCode = "UnknownError";
1337
1337
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1338
1338
  _b = errorCode;
1339
1339
  switch (_b) {
1340
- case "BadRequestException": return [3 /*break*/, 2];
1341
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
1342
- case "ForbiddenException": return [3 /*break*/, 4];
1343
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
1344
- case "InternalServerErrorException": return [3 /*break*/, 6];
1345
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
1346
- case "MethodNotAllowedException": return [3 /*break*/, 8];
1347
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
1348
- case "TooManyRequestsException": return [3 /*break*/, 10];
1349
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 10];
1350
- }
1351
- return [3 /*break*/, 12];
1340
+ case "BadRequestException": return [3, 2];
1341
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
1342
+ case "ForbiddenException": return [3, 4];
1343
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
1344
+ case "InternalServerErrorException": return [3, 6];
1345
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
1346
+ case "MethodNotAllowedException": return [3, 8];
1347
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
1348
+ case "TooManyRequestsException": return [3, 10];
1349
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 10];
1350
+ }
1351
+ return [3, 12];
1352
1352
  case 2:
1353
1353
  _c = [{}];
1354
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1354
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1355
1355
  case 3:
1356
1356
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1357
- return [3 /*break*/, 13];
1357
+ return [3, 13];
1358
1358
  case 4:
1359
1359
  _d = [{}];
1360
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1360
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1361
1361
  case 5:
1362
1362
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1363
- return [3 /*break*/, 13];
1363
+ return [3, 13];
1364
1364
  case 6:
1365
1365
  _e = [{}];
1366
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1366
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1367
1367
  case 7:
1368
1368
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1369
- return [3 /*break*/, 13];
1369
+ return [3, 13];
1370
1370
  case 8:
1371
1371
  _f = [{}];
1372
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1372
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1373
1373
  case 9:
1374
1374
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1375
- return [3 /*break*/, 13];
1375
+ return [3, 13];
1376
1376
  case 10:
1377
1377
  _g = [{}];
1378
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1378
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1379
1379
  case 11:
1380
1380
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1381
- return [3 /*break*/, 13];
1381
+ return [3, 13];
1382
1382
  case 12:
1383
1383
  parsedBody = parsedOutput.body;
1384
1384
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1388,7 +1388,7 @@ var deserializeAws_restJson1ListGroupsCommandError = function (output, context)
1388
1388
  message = response.message || response.Message || errorCode;
1389
1389
  response.message = message;
1390
1390
  delete response.Message;
1391
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1391
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1392
1392
  }
1393
1393
  });
1394
1394
  }); };
@@ -1398,15 +1398,15 @@ export var deserializeAws_restJson1PutGroupConfigurationCommand = function (outp
1398
1398
  switch (_a.label) {
1399
1399
  case 0:
1400
1400
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1401
- return [2 /*return*/, deserializeAws_restJson1PutGroupConfigurationCommandError(output, context)];
1401
+ return [2, deserializeAws_restJson1PutGroupConfigurationCommandError(output, context)];
1402
1402
  }
1403
1403
  contents = {
1404
1404
  $metadata: deserializeMetadata(output),
1405
1405
  };
1406
- return [4 /*yield*/, collectBody(output.body, context)];
1406
+ return [4, collectBody(output.body, context)];
1407
1407
  case 1:
1408
1408
  _a.sent();
1409
- return [2 /*return*/, Promise.resolve(contents)];
1409
+ return [2, Promise.resolve(contents)];
1410
1410
  }
1411
1411
  });
1412
1412
  }); };
@@ -1418,63 +1418,63 @@ var deserializeAws_restJson1PutGroupConfigurationCommandError = function (output
1418
1418
  case 0:
1419
1419
  _a = [__assign({}, output)];
1420
1420
  _j = {};
1421
- return [4 /*yield*/, parseBody(output.body, context)];
1421
+ return [4, parseBody(output.body, context)];
1422
1422
  case 1:
1423
1423
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
1424
1424
  errorCode = "UnknownError";
1425
1425
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1426
1426
  _b = errorCode;
1427
1427
  switch (_b) {
1428
- case "BadRequestException": return [3 /*break*/, 2];
1429
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
1430
- case "ForbiddenException": return [3 /*break*/, 4];
1431
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
1432
- case "InternalServerErrorException": return [3 /*break*/, 6];
1433
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
1434
- case "MethodNotAllowedException": return [3 /*break*/, 8];
1435
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
1436
- case "NotFoundException": return [3 /*break*/, 10];
1437
- case "com.amazonaws.resourcegroups#NotFoundException": return [3 /*break*/, 10];
1438
- case "TooManyRequestsException": return [3 /*break*/, 12];
1439
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 12];
1440
- }
1441
- return [3 /*break*/, 14];
1428
+ case "BadRequestException": return [3, 2];
1429
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
1430
+ case "ForbiddenException": return [3, 4];
1431
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
1432
+ case "InternalServerErrorException": return [3, 6];
1433
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
1434
+ case "MethodNotAllowedException": return [3, 8];
1435
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
1436
+ case "NotFoundException": return [3, 10];
1437
+ case "com.amazonaws.resourcegroups#NotFoundException": return [3, 10];
1438
+ case "TooManyRequestsException": return [3, 12];
1439
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 12];
1440
+ }
1441
+ return [3, 14];
1442
1442
  case 2:
1443
1443
  _c = [{}];
1444
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1444
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1445
1445
  case 3:
1446
1446
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1447
- return [3 /*break*/, 15];
1447
+ return [3, 15];
1448
1448
  case 4:
1449
1449
  _d = [{}];
1450
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1450
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1451
1451
  case 5:
1452
1452
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1453
- return [3 /*break*/, 15];
1453
+ return [3, 15];
1454
1454
  case 6:
1455
1455
  _e = [{}];
1456
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1456
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1457
1457
  case 7:
1458
1458
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1459
- return [3 /*break*/, 15];
1459
+ return [3, 15];
1460
1460
  case 8:
1461
1461
  _f = [{}];
1462
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1462
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1463
1463
  case 9:
1464
1464
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1465
- return [3 /*break*/, 15];
1465
+ return [3, 15];
1466
1466
  case 10:
1467
1467
  _g = [{}];
1468
- return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
1468
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
1469
1469
  case 11:
1470
1470
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1471
- return [3 /*break*/, 15];
1471
+ return [3, 15];
1472
1472
  case 12:
1473
1473
  _h = [{}];
1474
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1474
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1475
1475
  case 13:
1476
1476
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1477
- return [3 /*break*/, 15];
1477
+ return [3, 15];
1478
1478
  case 14:
1479
1479
  parsedBody = parsedOutput.body;
1480
1480
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1484,7 +1484,7 @@ var deserializeAws_restJson1PutGroupConfigurationCommandError = function (output
1484
1484
  message = response.message || response.Message || errorCode;
1485
1485
  response.message = message;
1486
1486
  delete response.Message;
1487
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1487
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1488
1488
  }
1489
1489
  });
1490
1490
  }); };
@@ -1494,7 +1494,7 @@ export var deserializeAws_restJson1SearchResourcesCommand = function (output, co
1494
1494
  switch (_c.label) {
1495
1495
  case 0:
1496
1496
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1497
- return [2 /*return*/, deserializeAws_restJson1SearchResourcesCommandError(output, context)];
1497
+ return [2, deserializeAws_restJson1SearchResourcesCommandError(output, context)];
1498
1498
  }
1499
1499
  contents = {
1500
1500
  $metadata: deserializeMetadata(output),
@@ -1504,7 +1504,7 @@ export var deserializeAws_restJson1SearchResourcesCommand = function (output, co
1504
1504
  };
1505
1505
  _a = __expectNonNull;
1506
1506
  _b = __expectObject;
1507
- return [4 /*yield*/, parseBody(output.body, context)];
1507
+ return [4, parseBody(output.body, context)];
1508
1508
  case 1:
1509
1509
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1510
1510
  if (data.NextToken !== undefined && data.NextToken !== null) {
@@ -1516,7 +1516,7 @@ export var deserializeAws_restJson1SearchResourcesCommand = function (output, co
1516
1516
  if (data.ResourceIdentifiers !== undefined && data.ResourceIdentifiers !== null) {
1517
1517
  contents.ResourceIdentifiers = deserializeAws_restJson1ResourceIdentifierList(data.ResourceIdentifiers, context);
1518
1518
  }
1519
- return [2 /*return*/, Promise.resolve(contents)];
1519
+ return [2, Promise.resolve(contents)];
1520
1520
  }
1521
1521
  });
1522
1522
  }); };
@@ -1528,63 +1528,63 @@ var deserializeAws_restJson1SearchResourcesCommandError = function (output, cont
1528
1528
  case 0:
1529
1529
  _a = [__assign({}, output)];
1530
1530
  _j = {};
1531
- return [4 /*yield*/, parseBody(output.body, context)];
1531
+ return [4, parseBody(output.body, context)];
1532
1532
  case 1:
1533
1533
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
1534
1534
  errorCode = "UnknownError";
1535
1535
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1536
1536
  _b = errorCode;
1537
1537
  switch (_b) {
1538
- case "BadRequestException": return [3 /*break*/, 2];
1539
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
1540
- case "ForbiddenException": return [3 /*break*/, 4];
1541
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
1542
- case "InternalServerErrorException": return [3 /*break*/, 6];
1543
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
1544
- case "MethodNotAllowedException": return [3 /*break*/, 8];
1545
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
1546
- case "TooManyRequestsException": return [3 /*break*/, 10];
1547
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 10];
1548
- case "UnauthorizedException": return [3 /*break*/, 12];
1549
- case "com.amazonaws.resourcegroups#UnauthorizedException": return [3 /*break*/, 12];
1550
- }
1551
- return [3 /*break*/, 14];
1538
+ case "BadRequestException": return [3, 2];
1539
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
1540
+ case "ForbiddenException": return [3, 4];
1541
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
1542
+ case "InternalServerErrorException": return [3, 6];
1543
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
1544
+ case "MethodNotAllowedException": return [3, 8];
1545
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
1546
+ case "TooManyRequestsException": return [3, 10];
1547
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 10];
1548
+ case "UnauthorizedException": return [3, 12];
1549
+ case "com.amazonaws.resourcegroups#UnauthorizedException": return [3, 12];
1550
+ }
1551
+ return [3, 14];
1552
1552
  case 2:
1553
1553
  _c = [{}];
1554
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1554
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1555
1555
  case 3:
1556
1556
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1557
- return [3 /*break*/, 15];
1557
+ return [3, 15];
1558
1558
  case 4:
1559
1559
  _d = [{}];
1560
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1560
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1561
1561
  case 5:
1562
1562
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1563
- return [3 /*break*/, 15];
1563
+ return [3, 15];
1564
1564
  case 6:
1565
1565
  _e = [{}];
1566
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1566
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1567
1567
  case 7:
1568
1568
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1569
- return [3 /*break*/, 15];
1569
+ return [3, 15];
1570
1570
  case 8:
1571
1571
  _f = [{}];
1572
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1572
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1573
1573
  case 9:
1574
1574
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1575
- return [3 /*break*/, 15];
1575
+ return [3, 15];
1576
1576
  case 10:
1577
1577
  _g = [{}];
1578
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1578
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1579
1579
  case 11:
1580
1580
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1581
- return [3 /*break*/, 15];
1581
+ return [3, 15];
1582
1582
  case 12:
1583
1583
  _h = [{}];
1584
- return [4 /*yield*/, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
1584
+ return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
1585
1585
  case 13:
1586
1586
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1587
- return [3 /*break*/, 15];
1587
+ return [3, 15];
1588
1588
  case 14:
1589
1589
  parsedBody = parsedOutput.body;
1590
1590
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1594,7 +1594,7 @@ var deserializeAws_restJson1SearchResourcesCommandError = function (output, cont
1594
1594
  message = response.message || response.Message || errorCode;
1595
1595
  response.message = message;
1596
1596
  delete response.Message;
1597
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1597
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1598
1598
  }
1599
1599
  });
1600
1600
  }); };
@@ -1604,7 +1604,7 @@ export var deserializeAws_restJson1TagCommand = function (output, context) { ret
1604
1604
  switch (_c.label) {
1605
1605
  case 0:
1606
1606
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1607
- return [2 /*return*/, deserializeAws_restJson1TagCommandError(output, context)];
1607
+ return [2, deserializeAws_restJson1TagCommandError(output, context)];
1608
1608
  }
1609
1609
  contents = {
1610
1610
  $metadata: deserializeMetadata(output),
@@ -1613,7 +1613,7 @@ export var deserializeAws_restJson1TagCommand = function (output, context) { ret
1613
1613
  };
1614
1614
  _a = __expectNonNull;
1615
1615
  _b = __expectObject;
1616
- return [4 /*yield*/, parseBody(output.body, context)];
1616
+ return [4, parseBody(output.body, context)];
1617
1617
  case 1:
1618
1618
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1619
1619
  if (data.Arn !== undefined && data.Arn !== null) {
@@ -1622,7 +1622,7 @@ export var deserializeAws_restJson1TagCommand = function (output, context) { ret
1622
1622
  if (data.Tags !== undefined && data.Tags !== null) {
1623
1623
  contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
1624
1624
  }
1625
- return [2 /*return*/, Promise.resolve(contents)];
1625
+ return [2, Promise.resolve(contents)];
1626
1626
  }
1627
1627
  });
1628
1628
  }); };
@@ -1634,63 +1634,63 @@ var deserializeAws_restJson1TagCommandError = function (output, context) { retur
1634
1634
  case 0:
1635
1635
  _a = [__assign({}, output)];
1636
1636
  _j = {};
1637
- return [4 /*yield*/, parseBody(output.body, context)];
1637
+ return [4, parseBody(output.body, context)];
1638
1638
  case 1:
1639
1639
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
1640
1640
  errorCode = "UnknownError";
1641
1641
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1642
1642
  _b = errorCode;
1643
1643
  switch (_b) {
1644
- case "BadRequestException": return [3 /*break*/, 2];
1645
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
1646
- case "ForbiddenException": return [3 /*break*/, 4];
1647
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
1648
- case "InternalServerErrorException": return [3 /*break*/, 6];
1649
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
1650
- case "MethodNotAllowedException": return [3 /*break*/, 8];
1651
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
1652
- case "NotFoundException": return [3 /*break*/, 10];
1653
- case "com.amazonaws.resourcegroups#NotFoundException": return [3 /*break*/, 10];
1654
- case "TooManyRequestsException": return [3 /*break*/, 12];
1655
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 12];
1656
- }
1657
- return [3 /*break*/, 14];
1644
+ case "BadRequestException": return [3, 2];
1645
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
1646
+ case "ForbiddenException": return [3, 4];
1647
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
1648
+ case "InternalServerErrorException": return [3, 6];
1649
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
1650
+ case "MethodNotAllowedException": return [3, 8];
1651
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
1652
+ case "NotFoundException": return [3, 10];
1653
+ case "com.amazonaws.resourcegroups#NotFoundException": return [3, 10];
1654
+ case "TooManyRequestsException": return [3, 12];
1655
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 12];
1656
+ }
1657
+ return [3, 14];
1658
1658
  case 2:
1659
1659
  _c = [{}];
1660
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1660
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1661
1661
  case 3:
1662
1662
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1663
- return [3 /*break*/, 15];
1663
+ return [3, 15];
1664
1664
  case 4:
1665
1665
  _d = [{}];
1666
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1666
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1667
1667
  case 5:
1668
1668
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1669
- return [3 /*break*/, 15];
1669
+ return [3, 15];
1670
1670
  case 6:
1671
1671
  _e = [{}];
1672
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1672
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1673
1673
  case 7:
1674
1674
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1675
- return [3 /*break*/, 15];
1675
+ return [3, 15];
1676
1676
  case 8:
1677
1677
  _f = [{}];
1678
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1678
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1679
1679
  case 9:
1680
1680
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1681
- return [3 /*break*/, 15];
1681
+ return [3, 15];
1682
1682
  case 10:
1683
1683
  _g = [{}];
1684
- return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
1684
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
1685
1685
  case 11:
1686
1686
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1687
- return [3 /*break*/, 15];
1687
+ return [3, 15];
1688
1688
  case 12:
1689
1689
  _h = [{}];
1690
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1690
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1691
1691
  case 13:
1692
1692
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1693
- return [3 /*break*/, 15];
1693
+ return [3, 15];
1694
1694
  case 14:
1695
1695
  parsedBody = parsedOutput.body;
1696
1696
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1700,7 +1700,7 @@ var deserializeAws_restJson1TagCommandError = function (output, context) { retur
1700
1700
  message = response.message || response.Message || errorCode;
1701
1701
  response.message = message;
1702
1702
  delete response.Message;
1703
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1703
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1704
1704
  }
1705
1705
  });
1706
1706
  }); };
@@ -1710,7 +1710,7 @@ export var deserializeAws_restJson1UngroupResourcesCommand = function (output, c
1710
1710
  switch (_c.label) {
1711
1711
  case 0:
1712
1712
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1713
- return [2 /*return*/, deserializeAws_restJson1UngroupResourcesCommandError(output, context)];
1713
+ return [2, deserializeAws_restJson1UngroupResourcesCommandError(output, context)];
1714
1714
  }
1715
1715
  contents = {
1716
1716
  $metadata: deserializeMetadata(output),
@@ -1720,7 +1720,7 @@ export var deserializeAws_restJson1UngroupResourcesCommand = function (output, c
1720
1720
  };
1721
1721
  _a = __expectNonNull;
1722
1722
  _b = __expectObject;
1723
- return [4 /*yield*/, parseBody(output.body, context)];
1723
+ return [4, parseBody(output.body, context)];
1724
1724
  case 1:
1725
1725
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1726
1726
  if (data.Failed !== undefined && data.Failed !== null) {
@@ -1732,7 +1732,7 @@ export var deserializeAws_restJson1UngroupResourcesCommand = function (output, c
1732
1732
  if (data.Succeeded !== undefined && data.Succeeded !== null) {
1733
1733
  contents.Succeeded = deserializeAws_restJson1ResourceArnList(data.Succeeded, context);
1734
1734
  }
1735
- return [2 /*return*/, Promise.resolve(contents)];
1735
+ return [2, Promise.resolve(contents)];
1736
1736
  }
1737
1737
  });
1738
1738
  }); };
@@ -1744,63 +1744,63 @@ var deserializeAws_restJson1UngroupResourcesCommandError = function (output, con
1744
1744
  case 0:
1745
1745
  _a = [__assign({}, output)];
1746
1746
  _j = {};
1747
- return [4 /*yield*/, parseBody(output.body, context)];
1747
+ return [4, parseBody(output.body, context)];
1748
1748
  case 1:
1749
1749
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
1750
1750
  errorCode = "UnknownError";
1751
1751
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1752
1752
  _b = errorCode;
1753
1753
  switch (_b) {
1754
- case "BadRequestException": return [3 /*break*/, 2];
1755
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
1756
- case "ForbiddenException": return [3 /*break*/, 4];
1757
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
1758
- case "InternalServerErrorException": return [3 /*break*/, 6];
1759
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
1760
- case "MethodNotAllowedException": return [3 /*break*/, 8];
1761
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
1762
- case "NotFoundException": return [3 /*break*/, 10];
1763
- case "com.amazonaws.resourcegroups#NotFoundException": return [3 /*break*/, 10];
1764
- case "TooManyRequestsException": return [3 /*break*/, 12];
1765
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 12];
1766
- }
1767
- return [3 /*break*/, 14];
1754
+ case "BadRequestException": return [3, 2];
1755
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
1756
+ case "ForbiddenException": return [3, 4];
1757
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
1758
+ case "InternalServerErrorException": return [3, 6];
1759
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
1760
+ case "MethodNotAllowedException": return [3, 8];
1761
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
1762
+ case "NotFoundException": return [3, 10];
1763
+ case "com.amazonaws.resourcegroups#NotFoundException": return [3, 10];
1764
+ case "TooManyRequestsException": return [3, 12];
1765
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 12];
1766
+ }
1767
+ return [3, 14];
1768
1768
  case 2:
1769
1769
  _c = [{}];
1770
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1770
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1771
1771
  case 3:
1772
1772
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1773
- return [3 /*break*/, 15];
1773
+ return [3, 15];
1774
1774
  case 4:
1775
1775
  _d = [{}];
1776
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1776
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1777
1777
  case 5:
1778
1778
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1779
- return [3 /*break*/, 15];
1779
+ return [3, 15];
1780
1780
  case 6:
1781
1781
  _e = [{}];
1782
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1782
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1783
1783
  case 7:
1784
1784
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1785
- return [3 /*break*/, 15];
1785
+ return [3, 15];
1786
1786
  case 8:
1787
1787
  _f = [{}];
1788
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1788
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1789
1789
  case 9:
1790
1790
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1791
- return [3 /*break*/, 15];
1791
+ return [3, 15];
1792
1792
  case 10:
1793
1793
  _g = [{}];
1794
- return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
1794
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
1795
1795
  case 11:
1796
1796
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1797
- return [3 /*break*/, 15];
1797
+ return [3, 15];
1798
1798
  case 12:
1799
1799
  _h = [{}];
1800
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1800
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1801
1801
  case 13:
1802
1802
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1803
- return [3 /*break*/, 15];
1803
+ return [3, 15];
1804
1804
  case 14:
1805
1805
  parsedBody = parsedOutput.body;
1806
1806
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1810,7 +1810,7 @@ var deserializeAws_restJson1UngroupResourcesCommandError = function (output, con
1810
1810
  message = response.message || response.Message || errorCode;
1811
1811
  response.message = message;
1812
1812
  delete response.Message;
1813
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1813
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1814
1814
  }
1815
1815
  });
1816
1816
  }); };
@@ -1820,7 +1820,7 @@ export var deserializeAws_restJson1UntagCommand = function (output, context) { r
1820
1820
  switch (_c.label) {
1821
1821
  case 0:
1822
1822
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1823
- return [2 /*return*/, deserializeAws_restJson1UntagCommandError(output, context)];
1823
+ return [2, deserializeAws_restJson1UntagCommandError(output, context)];
1824
1824
  }
1825
1825
  contents = {
1826
1826
  $metadata: deserializeMetadata(output),
@@ -1829,7 +1829,7 @@ export var deserializeAws_restJson1UntagCommand = function (output, context) { r
1829
1829
  };
1830
1830
  _a = __expectNonNull;
1831
1831
  _b = __expectObject;
1832
- return [4 /*yield*/, parseBody(output.body, context)];
1832
+ return [4, parseBody(output.body, context)];
1833
1833
  case 1:
1834
1834
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1835
1835
  if (data.Arn !== undefined && data.Arn !== null) {
@@ -1838,7 +1838,7 @@ export var deserializeAws_restJson1UntagCommand = function (output, context) { r
1838
1838
  if (data.Keys !== undefined && data.Keys !== null) {
1839
1839
  contents.Keys = deserializeAws_restJson1TagKeyList(data.Keys, context);
1840
1840
  }
1841
- return [2 /*return*/, Promise.resolve(contents)];
1841
+ return [2, Promise.resolve(contents)];
1842
1842
  }
1843
1843
  });
1844
1844
  }); };
@@ -1850,63 +1850,63 @@ var deserializeAws_restJson1UntagCommandError = function (output, context) { ret
1850
1850
  case 0:
1851
1851
  _a = [__assign({}, output)];
1852
1852
  _j = {};
1853
- return [4 /*yield*/, parseBody(output.body, context)];
1853
+ return [4, parseBody(output.body, context)];
1854
1854
  case 1:
1855
1855
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
1856
1856
  errorCode = "UnknownError";
1857
1857
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1858
1858
  _b = errorCode;
1859
1859
  switch (_b) {
1860
- case "BadRequestException": return [3 /*break*/, 2];
1861
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
1862
- case "ForbiddenException": return [3 /*break*/, 4];
1863
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
1864
- case "InternalServerErrorException": return [3 /*break*/, 6];
1865
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
1866
- case "MethodNotAllowedException": return [3 /*break*/, 8];
1867
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
1868
- case "NotFoundException": return [3 /*break*/, 10];
1869
- case "com.amazonaws.resourcegroups#NotFoundException": return [3 /*break*/, 10];
1870
- case "TooManyRequestsException": return [3 /*break*/, 12];
1871
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 12];
1872
- }
1873
- return [3 /*break*/, 14];
1860
+ case "BadRequestException": return [3, 2];
1861
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
1862
+ case "ForbiddenException": return [3, 4];
1863
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
1864
+ case "InternalServerErrorException": return [3, 6];
1865
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
1866
+ case "MethodNotAllowedException": return [3, 8];
1867
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
1868
+ case "NotFoundException": return [3, 10];
1869
+ case "com.amazonaws.resourcegroups#NotFoundException": return [3, 10];
1870
+ case "TooManyRequestsException": return [3, 12];
1871
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 12];
1872
+ }
1873
+ return [3, 14];
1874
1874
  case 2:
1875
1875
  _c = [{}];
1876
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1876
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1877
1877
  case 3:
1878
1878
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1879
- return [3 /*break*/, 15];
1879
+ return [3, 15];
1880
1880
  case 4:
1881
1881
  _d = [{}];
1882
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1882
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1883
1883
  case 5:
1884
1884
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1885
- return [3 /*break*/, 15];
1885
+ return [3, 15];
1886
1886
  case 6:
1887
1887
  _e = [{}];
1888
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1888
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1889
1889
  case 7:
1890
1890
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1891
- return [3 /*break*/, 15];
1891
+ return [3, 15];
1892
1892
  case 8:
1893
1893
  _f = [{}];
1894
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1894
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1895
1895
  case 9:
1896
1896
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1897
- return [3 /*break*/, 15];
1897
+ return [3, 15];
1898
1898
  case 10:
1899
1899
  _g = [{}];
1900
- return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
1900
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
1901
1901
  case 11:
1902
1902
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1903
- return [3 /*break*/, 15];
1903
+ return [3, 15];
1904
1904
  case 12:
1905
1905
  _h = [{}];
1906
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1906
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
1907
1907
  case 13:
1908
1908
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1909
- return [3 /*break*/, 15];
1909
+ return [3, 15];
1910
1910
  case 14:
1911
1911
  parsedBody = parsedOutput.body;
1912
1912
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1916,7 +1916,7 @@ var deserializeAws_restJson1UntagCommandError = function (output, context) { ret
1916
1916
  message = response.message || response.Message || errorCode;
1917
1917
  response.message = message;
1918
1918
  delete response.Message;
1919
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1919
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1920
1920
  }
1921
1921
  });
1922
1922
  }); };
@@ -1926,7 +1926,7 @@ export var deserializeAws_restJson1UpdateGroupCommand = function (output, contex
1926
1926
  switch (_c.label) {
1927
1927
  case 0:
1928
1928
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1929
- return [2 /*return*/, deserializeAws_restJson1UpdateGroupCommandError(output, context)];
1929
+ return [2, deserializeAws_restJson1UpdateGroupCommandError(output, context)];
1930
1930
  }
1931
1931
  contents = {
1932
1932
  $metadata: deserializeMetadata(output),
@@ -1934,13 +1934,13 @@ export var deserializeAws_restJson1UpdateGroupCommand = function (output, contex
1934
1934
  };
1935
1935
  _a = __expectNonNull;
1936
1936
  _b = __expectObject;
1937
- return [4 /*yield*/, parseBody(output.body, context)];
1937
+ return [4, parseBody(output.body, context)];
1938
1938
  case 1:
1939
1939
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1940
1940
  if (data.Group !== undefined && data.Group !== null) {
1941
1941
  contents.Group = deserializeAws_restJson1Group(data.Group, context);
1942
1942
  }
1943
- return [2 /*return*/, Promise.resolve(contents)];
1943
+ return [2, Promise.resolve(contents)];
1944
1944
  }
1945
1945
  });
1946
1946
  }); };
@@ -1952,63 +1952,63 @@ var deserializeAws_restJson1UpdateGroupCommandError = function (output, context)
1952
1952
  case 0:
1953
1953
  _a = [__assign({}, output)];
1954
1954
  _j = {};
1955
- return [4 /*yield*/, parseBody(output.body, context)];
1955
+ return [4, parseBody(output.body, context)];
1956
1956
  case 1:
1957
1957
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
1958
1958
  errorCode = "UnknownError";
1959
1959
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1960
1960
  _b = errorCode;
1961
1961
  switch (_b) {
1962
- case "BadRequestException": return [3 /*break*/, 2];
1963
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
1964
- case "ForbiddenException": return [3 /*break*/, 4];
1965
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
1966
- case "InternalServerErrorException": return [3 /*break*/, 6];
1967
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
1968
- case "MethodNotAllowedException": return [3 /*break*/, 8];
1969
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
1970
- case "NotFoundException": return [3 /*break*/, 10];
1971
- case "com.amazonaws.resourcegroups#NotFoundException": return [3 /*break*/, 10];
1972
- case "TooManyRequestsException": return [3 /*break*/, 12];
1973
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 12];
1974
- }
1975
- return [3 /*break*/, 14];
1962
+ case "BadRequestException": return [3, 2];
1963
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
1964
+ case "ForbiddenException": return [3, 4];
1965
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
1966
+ case "InternalServerErrorException": return [3, 6];
1967
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
1968
+ case "MethodNotAllowedException": return [3, 8];
1969
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
1970
+ case "NotFoundException": return [3, 10];
1971
+ case "com.amazonaws.resourcegroups#NotFoundException": return [3, 10];
1972
+ case "TooManyRequestsException": return [3, 12];
1973
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 12];
1974
+ }
1975
+ return [3, 14];
1976
1976
  case 2:
1977
1977
  _c = [{}];
1978
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1978
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1979
1979
  case 3:
1980
1980
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1981
- return [3 /*break*/, 15];
1981
+ return [3, 15];
1982
1982
  case 4:
1983
1983
  _d = [{}];
1984
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1984
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
1985
1985
  case 5:
1986
1986
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1987
- return [3 /*break*/, 15];
1987
+ return [3, 15];
1988
1988
  case 6:
1989
1989
  _e = [{}];
1990
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1990
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
1991
1991
  case 7:
1992
1992
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1993
- return [3 /*break*/, 15];
1993
+ return [3, 15];
1994
1994
  case 8:
1995
1995
  _f = [{}];
1996
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1996
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
1997
1997
  case 9:
1998
1998
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1999
- return [3 /*break*/, 15];
1999
+ return [3, 15];
2000
2000
  case 10:
2001
2001
  _g = [{}];
2002
- return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
2002
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
2003
2003
  case 11:
2004
2004
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2005
- return [3 /*break*/, 15];
2005
+ return [3, 15];
2006
2006
  case 12:
2007
2007
  _h = [{}];
2008
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
2008
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
2009
2009
  case 13:
2010
2010
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2011
- return [3 /*break*/, 15];
2011
+ return [3, 15];
2012
2012
  case 14:
2013
2013
  parsedBody = parsedOutput.body;
2014
2014
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2018,7 +2018,7 @@ var deserializeAws_restJson1UpdateGroupCommandError = function (output, context)
2018
2018
  message = response.message || response.Message || errorCode;
2019
2019
  response.message = message;
2020
2020
  delete response.Message;
2021
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2021
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2022
2022
  }
2023
2023
  });
2024
2024
  }); };
@@ -2028,7 +2028,7 @@ export var deserializeAws_restJson1UpdateGroupQueryCommand = function (output, c
2028
2028
  switch (_c.label) {
2029
2029
  case 0:
2030
2030
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2031
- return [2 /*return*/, deserializeAws_restJson1UpdateGroupQueryCommandError(output, context)];
2031
+ return [2, deserializeAws_restJson1UpdateGroupQueryCommandError(output, context)];
2032
2032
  }
2033
2033
  contents = {
2034
2034
  $metadata: deserializeMetadata(output),
@@ -2036,13 +2036,13 @@ export var deserializeAws_restJson1UpdateGroupQueryCommand = function (output, c
2036
2036
  };
2037
2037
  _a = __expectNonNull;
2038
2038
  _b = __expectObject;
2039
- return [4 /*yield*/, parseBody(output.body, context)];
2039
+ return [4, parseBody(output.body, context)];
2040
2040
  case 1:
2041
2041
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2042
2042
  if (data.GroupQuery !== undefined && data.GroupQuery !== null) {
2043
2043
  contents.GroupQuery = deserializeAws_restJson1GroupQuery(data.GroupQuery, context);
2044
2044
  }
2045
- return [2 /*return*/, Promise.resolve(contents)];
2045
+ return [2, Promise.resolve(contents)];
2046
2046
  }
2047
2047
  });
2048
2048
  }); };
@@ -2054,63 +2054,63 @@ var deserializeAws_restJson1UpdateGroupQueryCommandError = function (output, con
2054
2054
  case 0:
2055
2055
  _a = [__assign({}, output)];
2056
2056
  _j = {};
2057
- return [4 /*yield*/, parseBody(output.body, context)];
2057
+ return [4, parseBody(output.body, context)];
2058
2058
  case 1:
2059
2059
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
2060
2060
  errorCode = "UnknownError";
2061
2061
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2062
2062
  _b = errorCode;
2063
2063
  switch (_b) {
2064
- case "BadRequestException": return [3 /*break*/, 2];
2065
- case "com.amazonaws.resourcegroups#BadRequestException": return [3 /*break*/, 2];
2066
- case "ForbiddenException": return [3 /*break*/, 4];
2067
- case "com.amazonaws.resourcegroups#ForbiddenException": return [3 /*break*/, 4];
2068
- case "InternalServerErrorException": return [3 /*break*/, 6];
2069
- case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3 /*break*/, 6];
2070
- case "MethodNotAllowedException": return [3 /*break*/, 8];
2071
- case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3 /*break*/, 8];
2072
- case "NotFoundException": return [3 /*break*/, 10];
2073
- case "com.amazonaws.resourcegroups#NotFoundException": return [3 /*break*/, 10];
2074
- case "TooManyRequestsException": return [3 /*break*/, 12];
2075
- case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3 /*break*/, 12];
2076
- }
2077
- return [3 /*break*/, 14];
2064
+ case "BadRequestException": return [3, 2];
2065
+ case "com.amazonaws.resourcegroups#BadRequestException": return [3, 2];
2066
+ case "ForbiddenException": return [3, 4];
2067
+ case "com.amazonaws.resourcegroups#ForbiddenException": return [3, 4];
2068
+ case "InternalServerErrorException": return [3, 6];
2069
+ case "com.amazonaws.resourcegroups#InternalServerErrorException": return [3, 6];
2070
+ case "MethodNotAllowedException": return [3, 8];
2071
+ case "com.amazonaws.resourcegroups#MethodNotAllowedException": return [3, 8];
2072
+ case "NotFoundException": return [3, 10];
2073
+ case "com.amazonaws.resourcegroups#NotFoundException": return [3, 10];
2074
+ case "TooManyRequestsException": return [3, 12];
2075
+ case "com.amazonaws.resourcegroups#TooManyRequestsException": return [3, 12];
2076
+ }
2077
+ return [3, 14];
2078
2078
  case 2:
2079
2079
  _c = [{}];
2080
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2080
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2081
2081
  case 3:
2082
2082
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2083
- return [3 /*break*/, 15];
2083
+ return [3, 15];
2084
2084
  case 4:
2085
2085
  _d = [{}];
2086
- return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
2086
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
2087
2087
  case 5:
2088
2088
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2089
- return [3 /*break*/, 15];
2089
+ return [3, 15];
2090
2090
  case 6:
2091
2091
  _e = [{}];
2092
- return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
2092
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
2093
2093
  case 7:
2094
2094
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2095
- return [3 /*break*/, 15];
2095
+ return [3, 15];
2096
2096
  case 8:
2097
2097
  _f = [{}];
2098
- return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
2098
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
2099
2099
  case 9:
2100
2100
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2101
- return [3 /*break*/, 15];
2101
+ return [3, 15];
2102
2102
  case 10:
2103
2103
  _g = [{}];
2104
- return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
2104
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
2105
2105
  case 11:
2106
2106
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2107
- return [3 /*break*/, 15];
2107
+ return [3, 15];
2108
2108
  case 12:
2109
2109
  _h = [{}];
2110
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
2110
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
2111
2111
  case 13:
2112
2112
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2113
- return [3 /*break*/, 15];
2113
+ return [3, 15];
2114
2114
  case 14:
2115
2115
  parsedBody = parsedOutput.body;
2116
2116
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2120,7 +2120,7 @@ var deserializeAws_restJson1UpdateGroupQueryCommandError = function (output, con
2120
2120
  message = response.message || response.Message || errorCode;
2121
2121
  response.message = message;
2122
2122
  delete response.Message;
2123
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2123
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2124
2124
  }
2125
2125
  });
2126
2126
  }); };
@@ -2137,7 +2137,7 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
2137
2137
  if (data.Message !== undefined && data.Message !== null) {
2138
2138
  contents.Message = __expectString(data.Message);
2139
2139
  }
2140
- return [2 /*return*/, contents];
2140
+ return [2, contents];
2141
2141
  });
2142
2142
  }); };
2143
2143
  var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2153,7 +2153,7 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
2153
2153
  if (data.Message !== undefined && data.Message !== null) {
2154
2154
  contents.Message = __expectString(data.Message);
2155
2155
  }
2156
- return [2 /*return*/, contents];
2156
+ return [2, contents];
2157
2157
  });
2158
2158
  }); };
2159
2159
  var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2169,7 +2169,7 @@ var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (par
2169
2169
  if (data.Message !== undefined && data.Message !== null) {
2170
2170
  contents.Message = __expectString(data.Message);
2171
2171
  }
2172
- return [2 /*return*/, contents];
2172
+ return [2, contents];
2173
2173
  });
2174
2174
  }); };
2175
2175
  var deserializeAws_restJson1MethodNotAllowedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2185,7 +2185,7 @@ var deserializeAws_restJson1MethodNotAllowedExceptionResponse = function (parsed
2185
2185
  if (data.Message !== undefined && data.Message !== null) {
2186
2186
  contents.Message = __expectString(data.Message);
2187
2187
  }
2188
- return [2 /*return*/, contents];
2188
+ return [2, contents];
2189
2189
  });
2190
2190
  }); };
2191
2191
  var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2201,7 +2201,7 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
2201
2201
  if (data.Message !== undefined && data.Message !== null) {
2202
2202
  contents.Message = __expectString(data.Message);
2203
2203
  }
2204
- return [2 /*return*/, contents];
2204
+ return [2, contents];
2205
2205
  });
2206
2206
  }); };
2207
2207
  var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2217,7 +2217,7 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
2217
2217
  if (data.Message !== undefined && data.Message !== null) {
2218
2218
  contents.Message = __expectString(data.Message);
2219
2219
  }
2220
- return [2 /*return*/, contents];
2220
+ return [2, contents];
2221
2221
  });
2222
2222
  }); };
2223
2223
  var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2233,7 +2233,7 @@ var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutp
2233
2233
  if (data.Message !== undefined && data.Message !== null) {
2234
2234
  contents.Message = __expectString(data.Message);
2235
2235
  }
2236
- return [2 /*return*/, contents];
2236
+ return [2, contents];
2237
2237
  });
2238
2238
  }); };
2239
2239
  var serializeAws_restJson1GroupConfigurationItem = function (input, context) {
@@ -2590,7 +2590,6 @@ var deserializeMetadata = function (output) {
2590
2590
  cfId: output.headers["x-amz-cf-id"],
2591
2591
  });
2592
2592
  };
2593
- // Collect low-level response body stream to Uint8Array.
2594
2593
  var collectBody = function (streamBody, context) {
2595
2594
  if (streamBody === void 0) { streamBody = new Uint8Array(); }
2596
2595
  if (streamBody instanceof Uint8Array) {
@@ -2598,7 +2597,6 @@ var collectBody = function (streamBody, context) {
2598
2597
  }
2599
2598
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2600
2599
  };
2601
- // Encode Uint8Array data into string with utf-8.
2602
2600
  var collectBodyString = function (streamBody, context) {
2603
2601
  return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
2604
2602
  };
@@ -2617,9 +2615,6 @@ var parseBody = function (streamBody, context) {
2617
2615
  return {};
2618
2616
  });
2619
2617
  };
2620
- /**
2621
- * Load an error code for the aws.rest-json-1.1 protocol.
2622
- */
2623
2618
  var loadRestJsonErrorCode = function (output, data) {
2624
2619
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
2625
2620
  var sanitizeErrorCode = function (rawValue) {