@aws-sdk/client-finspace 3.32.0 → 3.36.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 (140) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/{dist/cjs → dist-cjs}/Finspace.js +1 -2
  3. package/{dist/cjs → dist-cjs}/FinspaceClient.js +8 -9
  4. package/{dist/cjs → dist-cjs}/commands/CreateEnvironmentCommand.js +2 -3
  5. package/{dist/cjs → dist-cjs}/commands/DeleteEnvironmentCommand.js +2 -3
  6. package/{dist/cjs → dist-cjs}/commands/GetEnvironmentCommand.js +2 -3
  7. package/{dist/cjs → dist-cjs}/commands/ListEnvironmentsCommand.js +2 -3
  8. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
  9. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
  10. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
  11. package/{dist/cjs → dist-cjs}/commands/UpdateEnvironmentCommand.js +2 -3
  12. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  13. package/{dist/cjs → dist-cjs}/index.js +0 -1
  14. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  15. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
  16. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +2 -3
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  18. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  19. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  20. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  21. package/{dist/es → dist-es}/Finspace.js +2 -7
  22. package/{dist/es → dist-es}/FinspaceClient.js +2 -12
  23. package/{dist/es → dist-es}/commands/CreateEnvironmentCommand.js +4 -30
  24. package/{dist/es → dist-es}/commands/DeleteEnvironmentCommand.js +4 -30
  25. package/{dist/es → dist-es}/commands/GetEnvironmentCommand.js +4 -30
  26. package/{dist/es → dist-es}/commands/ListEnvironmentsCommand.js +4 -30
  27. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
  28. package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -30
  29. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
  30. package/{dist/es → dist-es}/commands/UpdateEnvironmentCommand.js +4 -30
  31. package/{dist/es → dist-es}/endpoints.js +1 -2
  32. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  33. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  34. package/{dist/es → dist-es}/models/models_0.js +0 -79
  35. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +196 -202
  36. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  37. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  38. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  39. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  40. package/{dist/types → dist-types}/Finspace.d.ts +2 -2
  41. package/{dist/types → dist-types}/FinspaceClient.d.ts +8 -8
  42. package/{dist/types → dist-types}/commands/CreateEnvironmentCommand.d.ts +2 -2
  43. package/{dist/types → dist-types}/commands/DeleteEnvironmentCommand.d.ts +2 -2
  44. package/{dist/types → dist-types}/commands/GetEnvironmentCommand.d.ts +2 -2
  45. package/{dist/types → dist-types}/commands/ListEnvironmentsCommand.d.ts +2 -2
  46. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  47. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  48. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  49. package/{dist/types → dist-types}/commands/UpdateEnvironmentCommand.d.ts +2 -2
  50. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  51. package/{index.ts → dist-types/index.d.ts} +0 -0
  52. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  53. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  54. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  55. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
  56. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  57. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  58. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  59. package/{dist/types → dist-types}/ts3.4/Finspace.d.ts +2 -2
  60. package/{dist/types → dist-types}/ts3.4/FinspaceClient.d.ts +8 -8
  61. package/{dist/types → dist-types}/ts3.4/commands/CreateEnvironmentCommand.d.ts +2 -2
  62. package/{dist/types → dist-types}/ts3.4/commands/DeleteEnvironmentCommand.d.ts +2 -2
  63. package/{dist/types → dist-types}/ts3.4/commands/GetEnvironmentCommand.d.ts +2 -2
  64. package/{dist/types → dist-types}/ts3.4/commands/ListEnvironmentsCommand.d.ts +2 -2
  65. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
  66. package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
  67. package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
  68. package/{dist/types → dist-types}/ts3.4/commands/UpdateEnvironmentCommand.d.ts +2 -2
  69. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  70. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  71. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  72. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  73. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  74. package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
  75. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  76. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  77. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  78. package/package.json +52 -49
  79. package/Finspace.ts +0 -294
  80. package/FinspaceClient.ts +0 -263
  81. package/commands/CreateEnvironmentCommand.ts +0 -94
  82. package/commands/DeleteEnvironmentCommand.ts +0 -94
  83. package/commands/GetEnvironmentCommand.ts +0 -94
  84. package/commands/ListEnvironmentsCommand.ts +0 -94
  85. package/commands/ListTagsForResourceCommand.ts +0 -94
  86. package/commands/TagResourceCommand.ts +0 -94
  87. package/commands/UntagResourceCommand.ts +0 -94
  88. package/commands/UpdateEnvironmentCommand.ts +0 -94
  89. package/dist/cjs/Finspace.js.map +0 -1
  90. package/dist/cjs/FinspaceClient.js.map +0 -1
  91. package/dist/cjs/commands/CreateEnvironmentCommand.js.map +0 -1
  92. package/dist/cjs/commands/DeleteEnvironmentCommand.js.map +0 -1
  93. package/dist/cjs/commands/GetEnvironmentCommand.js.map +0 -1
  94. package/dist/cjs/commands/ListEnvironmentsCommand.js.map +0 -1
  95. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  96. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  97. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  98. package/dist/cjs/commands/UpdateEnvironmentCommand.js.map +0 -1
  99. package/dist/cjs/endpoints.js.map +0 -1
  100. package/dist/cjs/index.js.map +0 -1
  101. package/dist/cjs/models/index.js.map +0 -1
  102. package/dist/cjs/models/models_0.js.map +0 -1
  103. package/dist/cjs/package.json +0 -91
  104. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  105. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  106. package/dist/cjs/runtimeConfig.js.map +0 -1
  107. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  108. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  109. package/dist/es/Finspace.js.map +0 -1
  110. package/dist/es/FinspaceClient.js.map +0 -1
  111. package/dist/es/commands/CreateEnvironmentCommand.js.map +0 -1
  112. package/dist/es/commands/DeleteEnvironmentCommand.js.map +0 -1
  113. package/dist/es/commands/GetEnvironmentCommand.js.map +0 -1
  114. package/dist/es/commands/ListEnvironmentsCommand.js.map +0 -1
  115. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  116. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  117. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  118. package/dist/es/commands/UpdateEnvironmentCommand.js.map +0 -1
  119. package/dist/es/endpoints.js.map +0 -1
  120. package/dist/es/index.js +0 -12
  121. package/dist/es/index.js.map +0 -1
  122. package/dist/es/models/index.js +0 -2
  123. package/dist/es/models/index.js.map +0 -1
  124. package/dist/es/models/models_0.js.map +0 -1
  125. package/dist/es/package.json +0 -91
  126. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  127. package/dist/es/runtimeConfig.browser.js.map +0 -1
  128. package/dist/es/runtimeConfig.js.map +0 -1
  129. package/dist/es/runtimeConfig.native.js.map +0 -1
  130. package/dist/es/runtimeConfig.shared.js.map +0 -1
  131. package/endpoints.ts +0 -57
  132. package/jest.config.js +0 -4
  133. package/models/models_0.ts +0 -626
  134. package/protocols/Aws_restJson1.ts +0 -1214
  135. package/runtimeConfig.browser.ts +0 -40
  136. package/runtimeConfig.native.ts +0 -16
  137. package/runtimeConfig.shared.ts +0 -16
  138. package/runtimeConfig.ts +0 -45
  139. package/tsconfig.es.json +0 -12
  140. package/tsconfig.json +0 -32
@@ -5,7 +5,7 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
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 = {
@@ -17,7 +17,7 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
17
17
  input.federationParameters !== null && {
18
18
  federationParameters: serializeAws_restJson1FederationParameters(input.federationParameters, context),
19
19
  })), (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
20
- return [2 /*return*/, new __HttpRequest({
20
+ return [2, new __HttpRequest({
21
21
  protocol: protocol,
22
22
  hostname: hostname,
23
23
  port: port,
@@ -33,7 +33,7 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
33
33
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
34
34
  return __generator(this, function (_c) {
35
35
  switch (_c.label) {
36
- case 0: return [4 /*yield*/, context.endpoint()];
36
+ case 0: return [4, context.endpoint()];
37
37
  case 1:
38
38
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
39
39
  headers = {};
@@ -48,7 +48,7 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
48
48
  else {
49
49
  throw new Error("No value provided for input HTTP label: environmentId.");
50
50
  }
51
- return [2 /*return*/, new __HttpRequest({
51
+ return [2, new __HttpRequest({
52
52
  protocol: protocol,
53
53
  hostname: hostname,
54
54
  port: port,
@@ -64,7 +64,7 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
64
64
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
65
65
  return __generator(this, function (_c) {
66
66
  switch (_c.label) {
67
- case 0: return [4 /*yield*/, context.endpoint()];
67
+ case 0: return [4, context.endpoint()];
68
68
  case 1:
69
69
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
70
70
  headers = {};
@@ -79,7 +79,7 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
79
79
  else {
80
80
  throw new Error("No value provided for input HTTP label: environmentId.");
81
81
  }
82
- return [2 /*return*/, new __HttpRequest({
82
+ return [2, new __HttpRequest({
83
83
  protocol: protocol,
84
84
  hostname: hostname,
85
85
  port: port,
@@ -95,13 +95,13 @@ export var serializeAws_restJson1ListEnvironmentsCommand = function (input, cont
95
95
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
96
96
  return __generator(this, function (_c) {
97
97
  switch (_c.label) {
98
- case 0: return [4 /*yield*/, context.endpoint()];
98
+ case 0: return [4, context.endpoint()];
99
99
  case 1:
100
100
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
101
101
  headers = {};
102
102
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environment";
103
103
  query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
104
- return [2 /*return*/, new __HttpRequest({
104
+ return [2, new __HttpRequest({
105
105
  protocol: protocol,
106
106
  hostname: hostname,
107
107
  port: port,
@@ -118,7 +118,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
118
118
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
119
119
  return __generator(this, function (_c) {
120
120
  switch (_c.label) {
121
- case 0: return [4 /*yield*/, context.endpoint()];
121
+ case 0: return [4, context.endpoint()];
122
122
  case 1:
123
123
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
124
124
  headers = {};
@@ -133,7 +133,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
133
133
  else {
134
134
  throw new Error("No value provided for input HTTP label: resourceArn.");
135
135
  }
136
- return [2 /*return*/, new __HttpRequest({
136
+ return [2, new __HttpRequest({
137
137
  protocol: protocol,
138
138
  hostname: hostname,
139
139
  port: port,
@@ -149,7 +149,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
149
149
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
150
150
  return __generator(this, function (_c) {
151
151
  switch (_c.label) {
152
- case 0: return [4 /*yield*/, context.endpoint()];
152
+ case 0: return [4, context.endpoint()];
153
153
  case 1:
154
154
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
155
155
  headers = {
@@ -167,7 +167,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
167
167
  throw new Error("No value provided for input HTTP label: resourceArn.");
168
168
  }
169
169
  body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
170
- return [2 /*return*/, new __HttpRequest({
170
+ return [2, new __HttpRequest({
171
171
  protocol: protocol,
172
172
  hostname: hostname,
173
173
  port: port,
@@ -183,7 +183,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
183
183
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
184
184
  return __generator(this, function (_c) {
185
185
  switch (_c.label) {
186
- case 0: return [4 /*yield*/, context.endpoint()];
186
+ case 0: return [4, context.endpoint()];
187
187
  case 1:
188
188
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
189
189
  headers = {};
@@ -199,7 +199,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
199
199
  throw new Error("No value provided for input HTTP label: resourceArn.");
200
200
  }
201
201
  query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
202
- return [2 /*return*/, new __HttpRequest({
202
+ return [2, new __HttpRequest({
203
203
  protocol: protocol,
204
204
  hostname: hostname,
205
205
  port: port,
@@ -216,7 +216,7 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
216
216
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
217
217
  return __generator(this, function (_c) {
218
218
  switch (_c.label) {
219
- case 0: return [4 /*yield*/, context.endpoint()];
219
+ case 0: return [4, context.endpoint()];
220
220
  case 1:
221
221
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
222
222
  headers = {
@@ -238,7 +238,7 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
238
238
  input.federationParameters !== null && {
239
239
  federationParameters: serializeAws_restJson1FederationParameters(input.federationParameters, context),
240
240
  })), (input.name !== undefined && input.name !== null && { name: input.name })));
241
- return [2 /*return*/, new __HttpRequest({
241
+ return [2, new __HttpRequest({
242
242
  protocol: protocol,
243
243
  hostname: hostname,
244
244
  port: port,
@@ -256,7 +256,7 @@ export var deserializeAws_restJson1CreateEnvironmentCommand = function (output,
256
256
  switch (_c.label) {
257
257
  case 0:
258
258
  if (output.statusCode !== 200 && output.statusCode >= 300) {
259
- return [2 /*return*/, deserializeAws_restJson1CreateEnvironmentCommandError(output, context)];
259
+ return [2, deserializeAws_restJson1CreateEnvironmentCommandError(output, context)];
260
260
  }
261
261
  contents = {
262
262
  $metadata: deserializeMetadata(output),
@@ -266,7 +266,7 @@ export var deserializeAws_restJson1CreateEnvironmentCommand = function (output,
266
266
  };
267
267
  _a = __expectNonNull;
268
268
  _b = __expectObject;
269
- return [4 /*yield*/, parseBody(output.body, context)];
269
+ return [4, parseBody(output.body, context)];
270
270
  case 1:
271
271
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
272
272
  if (data.environmentArn !== undefined && data.environmentArn !== null) {
@@ -278,7 +278,7 @@ export var deserializeAws_restJson1CreateEnvironmentCommand = function (output,
278
278
  if (data.environmentUrl !== undefined && data.environmentUrl !== null) {
279
279
  contents.environmentUrl = __expectString(data.environmentUrl);
280
280
  }
281
- return [2 /*return*/, Promise.resolve(contents)];
281
+ return [2, Promise.resolve(contents)];
282
282
  }
283
283
  });
284
284
  }); };
@@ -290,63 +290,63 @@ var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, co
290
290
  case 0:
291
291
  _a = [__assign({}, output)];
292
292
  _j = {};
293
- return [4 /*yield*/, parseBody(output.body, context)];
293
+ return [4, parseBody(output.body, context)];
294
294
  case 1:
295
295
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
296
296
  errorCode = "UnknownError";
297
297
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
298
298
  _b = errorCode;
299
299
  switch (_b) {
300
- case "AccessDeniedException": return [3 /*break*/, 2];
301
- case "com.amazonaws.finspace#AccessDeniedException": return [3 /*break*/, 2];
302
- case "InternalServerException": return [3 /*break*/, 4];
303
- case "com.amazonaws.finspace#InternalServerException": return [3 /*break*/, 4];
304
- case "LimitExceededException": return [3 /*break*/, 6];
305
- case "com.amazonaws.finspace#LimitExceededException": return [3 /*break*/, 6];
306
- case "ServiceQuotaExceededException": return [3 /*break*/, 8];
307
- case "com.amazonaws.finspace#ServiceQuotaExceededException": return [3 /*break*/, 8];
308
- case "ThrottlingException": return [3 /*break*/, 10];
309
- case "com.amazonaws.finspace#ThrottlingException": return [3 /*break*/, 10];
310
- case "ValidationException": return [3 /*break*/, 12];
311
- case "com.amazonaws.finspace#ValidationException": return [3 /*break*/, 12];
300
+ case "AccessDeniedException": return [3, 2];
301
+ case "com.amazonaws.finspace#AccessDeniedException": return [3, 2];
302
+ case "InternalServerException": return [3, 4];
303
+ case "com.amazonaws.finspace#InternalServerException": return [3, 4];
304
+ case "LimitExceededException": return [3, 6];
305
+ case "com.amazonaws.finspace#LimitExceededException": return [3, 6];
306
+ case "ServiceQuotaExceededException": return [3, 8];
307
+ case "com.amazonaws.finspace#ServiceQuotaExceededException": return [3, 8];
308
+ case "ThrottlingException": return [3, 10];
309
+ case "com.amazonaws.finspace#ThrottlingException": return [3, 10];
310
+ case "ValidationException": return [3, 12];
311
+ case "com.amazonaws.finspace#ValidationException": return [3, 12];
312
312
  }
313
- return [3 /*break*/, 14];
313
+ return [3, 14];
314
314
  case 2:
315
315
  _c = [{}];
316
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
316
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
317
317
  case 3:
318
318
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
319
- return [3 /*break*/, 15];
319
+ return [3, 15];
320
320
  case 4:
321
321
  _d = [{}];
322
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
322
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
323
323
  case 5:
324
324
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
325
- return [3 /*break*/, 15];
325
+ return [3, 15];
326
326
  case 6:
327
327
  _e = [{}];
328
- return [4 /*yield*/, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
328
+ return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
329
329
  case 7:
330
330
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
331
- return [3 /*break*/, 15];
331
+ return [3, 15];
332
332
  case 8:
333
333
  _f = [{}];
334
- return [4 /*yield*/, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
334
+ return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
335
335
  case 9:
336
336
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
337
- return [3 /*break*/, 15];
337
+ return [3, 15];
338
338
  case 10:
339
339
  _g = [{}];
340
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
340
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
341
341
  case 11:
342
342
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
343
- return [3 /*break*/, 15];
343
+ return [3, 15];
344
344
  case 12:
345
345
  _h = [{}];
346
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
346
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
347
347
  case 13:
348
348
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
349
- return [3 /*break*/, 15];
349
+ return [3, 15];
350
350
  case 14:
351
351
  parsedBody = parsedOutput.body;
352
352
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -356,7 +356,7 @@ var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, co
356
356
  message = response.message || response.Message || errorCode;
357
357
  response.message = message;
358
358
  delete response.Message;
359
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
359
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
360
360
  }
361
361
  });
362
362
  }); };
@@ -366,15 +366,15 @@ export var deserializeAws_restJson1DeleteEnvironmentCommand = function (output,
366
366
  switch (_a.label) {
367
367
  case 0:
368
368
  if (output.statusCode !== 200 && output.statusCode >= 300) {
369
- return [2 /*return*/, deserializeAws_restJson1DeleteEnvironmentCommandError(output, context)];
369
+ return [2, deserializeAws_restJson1DeleteEnvironmentCommandError(output, context)];
370
370
  }
371
371
  contents = {
372
372
  $metadata: deserializeMetadata(output),
373
373
  };
374
- return [4 /*yield*/, collectBody(output.body, context)];
374
+ return [4, collectBody(output.body, context)];
375
375
  case 1:
376
376
  _a.sent();
377
- return [2 /*return*/, Promise.resolve(contents)];
377
+ return [2, Promise.resolve(contents)];
378
378
  }
379
379
  });
380
380
  }); };
@@ -386,55 +386,55 @@ var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, co
386
386
  case 0:
387
387
  _a = [__assign({}, output)];
388
388
  _h = {};
389
- return [4 /*yield*/, parseBody(output.body, context)];
389
+ return [4, parseBody(output.body, context)];
390
390
  case 1:
391
391
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
392
392
  errorCode = "UnknownError";
393
393
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
394
394
  _b = errorCode;
395
395
  switch (_b) {
396
- case "AccessDeniedException": return [3 /*break*/, 2];
397
- case "com.amazonaws.finspace#AccessDeniedException": return [3 /*break*/, 2];
398
- case "InternalServerException": return [3 /*break*/, 4];
399
- case "com.amazonaws.finspace#InternalServerException": return [3 /*break*/, 4];
400
- case "ResourceNotFoundException": return [3 /*break*/, 6];
401
- case "com.amazonaws.finspace#ResourceNotFoundException": return [3 /*break*/, 6];
402
- case "ThrottlingException": return [3 /*break*/, 8];
403
- case "com.amazonaws.finspace#ThrottlingException": return [3 /*break*/, 8];
404
- case "ValidationException": return [3 /*break*/, 10];
405
- case "com.amazonaws.finspace#ValidationException": return [3 /*break*/, 10];
396
+ case "AccessDeniedException": return [3, 2];
397
+ case "com.amazonaws.finspace#AccessDeniedException": return [3, 2];
398
+ case "InternalServerException": return [3, 4];
399
+ case "com.amazonaws.finspace#InternalServerException": return [3, 4];
400
+ case "ResourceNotFoundException": return [3, 6];
401
+ case "com.amazonaws.finspace#ResourceNotFoundException": return [3, 6];
402
+ case "ThrottlingException": return [3, 8];
403
+ case "com.amazonaws.finspace#ThrottlingException": return [3, 8];
404
+ case "ValidationException": return [3, 10];
405
+ case "com.amazonaws.finspace#ValidationException": return [3, 10];
406
406
  }
407
- return [3 /*break*/, 12];
407
+ return [3, 12];
408
408
  case 2:
409
409
  _c = [{}];
410
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
410
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
411
411
  case 3:
412
412
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
413
- return [3 /*break*/, 13];
413
+ return [3, 13];
414
414
  case 4:
415
415
  _d = [{}];
416
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
416
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
417
417
  case 5:
418
418
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
419
- return [3 /*break*/, 13];
419
+ return [3, 13];
420
420
  case 6:
421
421
  _e = [{}];
422
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
422
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
423
423
  case 7:
424
424
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
425
- return [3 /*break*/, 13];
425
+ return [3, 13];
426
426
  case 8:
427
427
  _f = [{}];
428
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
428
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
429
429
  case 9:
430
430
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
431
- return [3 /*break*/, 13];
431
+ return [3, 13];
432
432
  case 10:
433
433
  _g = [{}];
434
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
434
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
435
435
  case 11:
436
436
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
437
- return [3 /*break*/, 13];
437
+ return [3, 13];
438
438
  case 12:
439
439
  parsedBody = parsedOutput.body;
440
440
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -444,7 +444,7 @@ var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, co
444
444
  message = response.message || response.Message || errorCode;
445
445
  response.message = message;
446
446
  delete response.Message;
447
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
447
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
448
448
  }
449
449
  });
450
450
  }); };
@@ -454,7 +454,7 @@ export var deserializeAws_restJson1GetEnvironmentCommand = function (output, con
454
454
  switch (_c.label) {
455
455
  case 0:
456
456
  if (output.statusCode !== 200 && output.statusCode >= 300) {
457
- return [2 /*return*/, deserializeAws_restJson1GetEnvironmentCommandError(output, context)];
457
+ return [2, deserializeAws_restJson1GetEnvironmentCommandError(output, context)];
458
458
  }
459
459
  contents = {
460
460
  $metadata: deserializeMetadata(output),
@@ -462,13 +462,13 @@ export var deserializeAws_restJson1GetEnvironmentCommand = function (output, con
462
462
  };
463
463
  _a = __expectNonNull;
464
464
  _b = __expectObject;
465
- return [4 /*yield*/, parseBody(output.body, context)];
465
+ return [4, parseBody(output.body, context)];
466
466
  case 1:
467
467
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
468
468
  if (data.environment !== undefined && data.environment !== null) {
469
469
  contents.environment = deserializeAws_restJson1Environment(data.environment, context);
470
470
  }
471
- return [2 /*return*/, Promise.resolve(contents)];
471
+ return [2, Promise.resolve(contents)];
472
472
  }
473
473
  });
474
474
  }); };
@@ -480,47 +480,47 @@ var deserializeAws_restJson1GetEnvironmentCommandError = function (output, conte
480
480
  case 0:
481
481
  _a = [__assign({}, output)];
482
482
  _g = {};
483
- return [4 /*yield*/, parseBody(output.body, context)];
483
+ return [4, parseBody(output.body, context)];
484
484
  case 1:
485
485
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
486
486
  errorCode = "UnknownError";
487
487
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
488
488
  _b = errorCode;
489
489
  switch (_b) {
490
- case "AccessDeniedException": return [3 /*break*/, 2];
491
- case "com.amazonaws.finspace#AccessDeniedException": return [3 /*break*/, 2];
492
- case "InternalServerException": return [3 /*break*/, 4];
493
- case "com.amazonaws.finspace#InternalServerException": return [3 /*break*/, 4];
494
- case "ResourceNotFoundException": return [3 /*break*/, 6];
495
- case "com.amazonaws.finspace#ResourceNotFoundException": return [3 /*break*/, 6];
496
- case "ValidationException": return [3 /*break*/, 8];
497
- case "com.amazonaws.finspace#ValidationException": return [3 /*break*/, 8];
490
+ case "AccessDeniedException": return [3, 2];
491
+ case "com.amazonaws.finspace#AccessDeniedException": return [3, 2];
492
+ case "InternalServerException": return [3, 4];
493
+ case "com.amazonaws.finspace#InternalServerException": return [3, 4];
494
+ case "ResourceNotFoundException": return [3, 6];
495
+ case "com.amazonaws.finspace#ResourceNotFoundException": return [3, 6];
496
+ case "ValidationException": return [3, 8];
497
+ case "com.amazonaws.finspace#ValidationException": return [3, 8];
498
498
  }
499
- return [3 /*break*/, 10];
499
+ return [3, 10];
500
500
  case 2:
501
501
  _c = [{}];
502
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
502
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
503
503
  case 3:
504
504
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
505
- return [3 /*break*/, 11];
505
+ return [3, 11];
506
506
  case 4:
507
507
  _d = [{}];
508
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
508
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
509
509
  case 5:
510
510
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
511
- return [3 /*break*/, 11];
511
+ return [3, 11];
512
512
  case 6:
513
513
  _e = [{}];
514
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
514
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
515
515
  case 7:
516
516
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
517
- return [3 /*break*/, 11];
517
+ return [3, 11];
518
518
  case 8:
519
519
  _f = [{}];
520
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
520
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
521
521
  case 9:
522
522
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
523
- return [3 /*break*/, 11];
523
+ return [3, 11];
524
524
  case 10:
525
525
  parsedBody = parsedOutput.body;
526
526
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -530,7 +530,7 @@ var deserializeAws_restJson1GetEnvironmentCommandError = function (output, conte
530
530
  message = response.message || response.Message || errorCode;
531
531
  response.message = message;
532
532
  delete response.Message;
533
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
533
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
534
534
  }
535
535
  });
536
536
  }); };
@@ -540,7 +540,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
540
540
  switch (_c.label) {
541
541
  case 0:
542
542
  if (output.statusCode !== 200 && output.statusCode >= 300) {
543
- return [2 /*return*/, deserializeAws_restJson1ListEnvironmentsCommandError(output, context)];
543
+ return [2, deserializeAws_restJson1ListEnvironmentsCommandError(output, context)];
544
544
  }
545
545
  contents = {
546
546
  $metadata: deserializeMetadata(output),
@@ -549,7 +549,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
549
549
  };
550
550
  _a = __expectNonNull;
551
551
  _b = __expectObject;
552
- return [4 /*yield*/, parseBody(output.body, context)];
552
+ return [4, parseBody(output.body, context)];
553
553
  case 1:
554
554
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
555
555
  if (data.environments !== undefined && data.environments !== null) {
@@ -558,7 +558,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
558
558
  if (data.nextToken !== undefined && data.nextToken !== null) {
559
559
  contents.nextToken = __expectString(data.nextToken);
560
560
  }
561
- return [2 /*return*/, Promise.resolve(contents)];
561
+ return [2, Promise.resolve(contents)];
562
562
  }
563
563
  });
564
564
  }); };
@@ -570,31 +570,31 @@ var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, con
570
570
  case 0:
571
571
  _a = [__assign({}, output)];
572
572
  _e = {};
573
- return [4 /*yield*/, parseBody(output.body, context)];
573
+ return [4, parseBody(output.body, context)];
574
574
  case 1:
575
575
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
576
576
  errorCode = "UnknownError";
577
577
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
578
578
  _b = errorCode;
579
579
  switch (_b) {
580
- case "InternalServerException": return [3 /*break*/, 2];
581
- case "com.amazonaws.finspace#InternalServerException": return [3 /*break*/, 2];
582
- case "ValidationException": return [3 /*break*/, 4];
583
- case "com.amazonaws.finspace#ValidationException": return [3 /*break*/, 4];
580
+ case "InternalServerException": return [3, 2];
581
+ case "com.amazonaws.finspace#InternalServerException": return [3, 2];
582
+ case "ValidationException": return [3, 4];
583
+ case "com.amazonaws.finspace#ValidationException": return [3, 4];
584
584
  }
585
- return [3 /*break*/, 6];
585
+ return [3, 6];
586
586
  case 2:
587
587
  _c = [{}];
588
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
588
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
589
589
  case 3:
590
590
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
591
- return [3 /*break*/, 7];
591
+ return [3, 7];
592
592
  case 4:
593
593
  _d = [{}];
594
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
594
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
595
595
  case 5:
596
596
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
597
- return [3 /*break*/, 7];
597
+ return [3, 7];
598
598
  case 6:
599
599
  parsedBody = parsedOutput.body;
600
600
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -604,7 +604,7 @@ var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, con
604
604
  message = response.message || response.Message || errorCode;
605
605
  response.message = message;
606
606
  delete response.Message;
607
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
607
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
608
608
  }
609
609
  });
610
610
  }); };
@@ -614,7 +614,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
614
614
  switch (_c.label) {
615
615
  case 0:
616
616
  if (output.statusCode !== 200 && output.statusCode >= 300) {
617
- return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
617
+ return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
618
618
  }
619
619
  contents = {
620
620
  $metadata: deserializeMetadata(output),
@@ -622,13 +622,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
622
622
  };
623
623
  _a = __expectNonNull;
624
624
  _b = __expectObject;
625
- return [4 /*yield*/, parseBody(output.body, context)];
625
+ return [4, parseBody(output.body, context)];
626
626
  case 1:
627
627
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
628
628
  if (data.tags !== undefined && data.tags !== null) {
629
629
  contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
630
630
  }
631
- return [2 /*return*/, Promise.resolve(contents)];
631
+ return [2, Promise.resolve(contents)];
632
632
  }
633
633
  });
634
634
  }); };
@@ -640,39 +640,39 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
640
640
  case 0:
641
641
  _a = [__assign({}, output)];
642
642
  _f = {};
643
- return [4 /*yield*/, parseBody(output.body, context)];
643
+ return [4, parseBody(output.body, context)];
644
644
  case 1:
645
645
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
646
646
  errorCode = "UnknownError";
647
647
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
648
648
  _b = errorCode;
649
649
  switch (_b) {
650
- case "InternalServerException": return [3 /*break*/, 2];
651
- case "com.amazonaws.finspace#InternalServerException": return [3 /*break*/, 2];
652
- case "InvalidRequestException": return [3 /*break*/, 4];
653
- case "com.amazonaws.finspace#InvalidRequestException": return [3 /*break*/, 4];
654
- case "ResourceNotFoundException": return [3 /*break*/, 6];
655
- case "com.amazonaws.finspace#ResourceNotFoundException": return [3 /*break*/, 6];
650
+ case "InternalServerException": return [3, 2];
651
+ case "com.amazonaws.finspace#InternalServerException": return [3, 2];
652
+ case "InvalidRequestException": return [3, 4];
653
+ case "com.amazonaws.finspace#InvalidRequestException": return [3, 4];
654
+ case "ResourceNotFoundException": return [3, 6];
655
+ case "com.amazonaws.finspace#ResourceNotFoundException": return [3, 6];
656
656
  }
657
- return [3 /*break*/, 8];
657
+ return [3, 8];
658
658
  case 2:
659
659
  _c = [{}];
660
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
660
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
661
661
  case 3:
662
662
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
663
- return [3 /*break*/, 9];
663
+ return [3, 9];
664
664
  case 4:
665
665
  _d = [{}];
666
- return [4 /*yield*/, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
666
+ return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
667
667
  case 5:
668
668
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
669
- return [3 /*break*/, 9];
669
+ return [3, 9];
670
670
  case 6:
671
671
  _e = [{}];
672
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
672
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
673
673
  case 7:
674
674
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
675
- return [3 /*break*/, 9];
675
+ return [3, 9];
676
676
  case 8:
677
677
  parsedBody = parsedOutput.body;
678
678
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -682,7 +682,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
682
682
  message = response.message || response.Message || errorCode;
683
683
  response.message = message;
684
684
  delete response.Message;
685
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
685
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
686
686
  }
687
687
  });
688
688
  }); };
@@ -692,15 +692,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
692
692
  switch (_a.label) {
693
693
  case 0:
694
694
  if (output.statusCode !== 200 && output.statusCode >= 300) {
695
- return [2 /*return*/, deserializeAws_restJson1TagResourceCommandError(output, context)];
695
+ return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
696
696
  }
697
697
  contents = {
698
698
  $metadata: deserializeMetadata(output),
699
699
  };
700
- return [4 /*yield*/, collectBody(output.body, context)];
700
+ return [4, collectBody(output.body, context)];
701
701
  case 1:
702
702
  _a.sent();
703
- return [2 /*return*/, Promise.resolve(contents)];
703
+ return [2, Promise.resolve(contents)];
704
704
  }
705
705
  });
706
706
  }); };
@@ -712,39 +712,39 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
712
712
  case 0:
713
713
  _a = [__assign({}, output)];
714
714
  _f = {};
715
- return [4 /*yield*/, parseBody(output.body, context)];
715
+ return [4, parseBody(output.body, context)];
716
716
  case 1:
717
717
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
718
718
  errorCode = "UnknownError";
719
719
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
720
720
  _b = errorCode;
721
721
  switch (_b) {
722
- case "InternalServerException": return [3 /*break*/, 2];
723
- case "com.amazonaws.finspace#InternalServerException": return [3 /*break*/, 2];
724
- case "InvalidRequestException": return [3 /*break*/, 4];
725
- case "com.amazonaws.finspace#InvalidRequestException": return [3 /*break*/, 4];
726
- case "ResourceNotFoundException": return [3 /*break*/, 6];
727
- case "com.amazonaws.finspace#ResourceNotFoundException": return [3 /*break*/, 6];
722
+ case "InternalServerException": return [3, 2];
723
+ case "com.amazonaws.finspace#InternalServerException": return [3, 2];
724
+ case "InvalidRequestException": return [3, 4];
725
+ case "com.amazonaws.finspace#InvalidRequestException": return [3, 4];
726
+ case "ResourceNotFoundException": return [3, 6];
727
+ case "com.amazonaws.finspace#ResourceNotFoundException": return [3, 6];
728
728
  }
729
- return [3 /*break*/, 8];
729
+ return [3, 8];
730
730
  case 2:
731
731
  _c = [{}];
732
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
732
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
733
733
  case 3:
734
734
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
735
- return [3 /*break*/, 9];
735
+ return [3, 9];
736
736
  case 4:
737
737
  _d = [{}];
738
- return [4 /*yield*/, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
738
+ return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
739
739
  case 5:
740
740
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
741
- return [3 /*break*/, 9];
741
+ return [3, 9];
742
742
  case 6:
743
743
  _e = [{}];
744
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
744
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
745
745
  case 7:
746
746
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
747
- return [3 /*break*/, 9];
747
+ return [3, 9];
748
748
  case 8:
749
749
  parsedBody = parsedOutput.body;
750
750
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -754,7 +754,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
754
754
  message = response.message || response.Message || errorCode;
755
755
  response.message = message;
756
756
  delete response.Message;
757
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
757
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
758
758
  }
759
759
  });
760
760
  }); };
@@ -764,15 +764,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
764
764
  switch (_a.label) {
765
765
  case 0:
766
766
  if (output.statusCode !== 200 && output.statusCode >= 300) {
767
- return [2 /*return*/, deserializeAws_restJson1UntagResourceCommandError(output, context)];
767
+ return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
768
768
  }
769
769
  contents = {
770
770
  $metadata: deserializeMetadata(output),
771
771
  };
772
- return [4 /*yield*/, collectBody(output.body, context)];
772
+ return [4, collectBody(output.body, context)];
773
773
  case 1:
774
774
  _a.sent();
775
- return [2 /*return*/, Promise.resolve(contents)];
775
+ return [2, Promise.resolve(contents)];
776
776
  }
777
777
  });
778
778
  }); };
@@ -784,39 +784,39 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
784
784
  case 0:
785
785
  _a = [__assign({}, output)];
786
786
  _f = {};
787
- return [4 /*yield*/, parseBody(output.body, context)];
787
+ return [4, parseBody(output.body, context)];
788
788
  case 1:
789
789
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
790
790
  errorCode = "UnknownError";
791
791
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
792
792
  _b = errorCode;
793
793
  switch (_b) {
794
- case "InternalServerException": return [3 /*break*/, 2];
795
- case "com.amazonaws.finspace#InternalServerException": return [3 /*break*/, 2];
796
- case "InvalidRequestException": return [3 /*break*/, 4];
797
- case "com.amazonaws.finspace#InvalidRequestException": return [3 /*break*/, 4];
798
- case "ResourceNotFoundException": return [3 /*break*/, 6];
799
- case "com.amazonaws.finspace#ResourceNotFoundException": return [3 /*break*/, 6];
794
+ case "InternalServerException": return [3, 2];
795
+ case "com.amazonaws.finspace#InternalServerException": return [3, 2];
796
+ case "InvalidRequestException": return [3, 4];
797
+ case "com.amazonaws.finspace#InvalidRequestException": return [3, 4];
798
+ case "ResourceNotFoundException": return [3, 6];
799
+ case "com.amazonaws.finspace#ResourceNotFoundException": return [3, 6];
800
800
  }
801
- return [3 /*break*/, 8];
801
+ return [3, 8];
802
802
  case 2:
803
803
  _c = [{}];
804
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
804
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
805
805
  case 3:
806
806
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
807
- return [3 /*break*/, 9];
807
+ return [3, 9];
808
808
  case 4:
809
809
  _d = [{}];
810
- return [4 /*yield*/, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
810
+ return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
811
811
  case 5:
812
812
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
813
- return [3 /*break*/, 9];
813
+ return [3, 9];
814
814
  case 6:
815
815
  _e = [{}];
816
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
816
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
817
817
  case 7:
818
818
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
819
- return [3 /*break*/, 9];
819
+ return [3, 9];
820
820
  case 8:
821
821
  parsedBody = parsedOutput.body;
822
822
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -826,7 +826,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
826
826
  message = response.message || response.Message || errorCode;
827
827
  response.message = message;
828
828
  delete response.Message;
829
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
829
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
830
830
  }
831
831
  });
832
832
  }); };
@@ -836,7 +836,7 @@ export var deserializeAws_restJson1UpdateEnvironmentCommand = function (output,
836
836
  switch (_c.label) {
837
837
  case 0:
838
838
  if (output.statusCode !== 200 && output.statusCode >= 300) {
839
- return [2 /*return*/, deserializeAws_restJson1UpdateEnvironmentCommandError(output, context)];
839
+ return [2, deserializeAws_restJson1UpdateEnvironmentCommandError(output, context)];
840
840
  }
841
841
  contents = {
842
842
  $metadata: deserializeMetadata(output),
@@ -844,13 +844,13 @@ export var deserializeAws_restJson1UpdateEnvironmentCommand = function (output,
844
844
  };
845
845
  _a = __expectNonNull;
846
846
  _b = __expectObject;
847
- return [4 /*yield*/, parseBody(output.body, context)];
847
+ return [4, parseBody(output.body, context)];
848
848
  case 1:
849
849
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
850
850
  if (data.environment !== undefined && data.environment !== null) {
851
851
  contents.environment = deserializeAws_restJson1Environment(data.environment, context);
852
852
  }
853
- return [2 /*return*/, Promise.resolve(contents)];
853
+ return [2, Promise.resolve(contents)];
854
854
  }
855
855
  });
856
856
  }); };
@@ -862,55 +862,55 @@ var deserializeAws_restJson1UpdateEnvironmentCommandError = function (output, co
862
862
  case 0:
863
863
  _a = [__assign({}, output)];
864
864
  _h = {};
865
- return [4 /*yield*/, parseBody(output.body, context)];
865
+ return [4, parseBody(output.body, context)];
866
866
  case 1:
867
867
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
868
868
  errorCode = "UnknownError";
869
869
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
870
870
  _b = errorCode;
871
871
  switch (_b) {
872
- case "AccessDeniedException": return [3 /*break*/, 2];
873
- case "com.amazonaws.finspace#AccessDeniedException": return [3 /*break*/, 2];
874
- case "InternalServerException": return [3 /*break*/, 4];
875
- case "com.amazonaws.finspace#InternalServerException": return [3 /*break*/, 4];
876
- case "ResourceNotFoundException": return [3 /*break*/, 6];
877
- case "com.amazonaws.finspace#ResourceNotFoundException": return [3 /*break*/, 6];
878
- case "ThrottlingException": return [3 /*break*/, 8];
879
- case "com.amazonaws.finspace#ThrottlingException": return [3 /*break*/, 8];
880
- case "ValidationException": return [3 /*break*/, 10];
881
- case "com.amazonaws.finspace#ValidationException": return [3 /*break*/, 10];
872
+ case "AccessDeniedException": return [3, 2];
873
+ case "com.amazonaws.finspace#AccessDeniedException": return [3, 2];
874
+ case "InternalServerException": return [3, 4];
875
+ case "com.amazonaws.finspace#InternalServerException": return [3, 4];
876
+ case "ResourceNotFoundException": return [3, 6];
877
+ case "com.amazonaws.finspace#ResourceNotFoundException": return [3, 6];
878
+ case "ThrottlingException": return [3, 8];
879
+ case "com.amazonaws.finspace#ThrottlingException": return [3, 8];
880
+ case "ValidationException": return [3, 10];
881
+ case "com.amazonaws.finspace#ValidationException": return [3, 10];
882
882
  }
883
- return [3 /*break*/, 12];
883
+ return [3, 12];
884
884
  case 2:
885
885
  _c = [{}];
886
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
886
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
887
887
  case 3:
888
888
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
889
- return [3 /*break*/, 13];
889
+ return [3, 13];
890
890
  case 4:
891
891
  _d = [{}];
892
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
892
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
893
893
  case 5:
894
894
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
895
- return [3 /*break*/, 13];
895
+ return [3, 13];
896
896
  case 6:
897
897
  _e = [{}];
898
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
898
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
899
899
  case 7:
900
900
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
901
- return [3 /*break*/, 13];
901
+ return [3, 13];
902
902
  case 8:
903
903
  _f = [{}];
904
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
904
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
905
905
  case 9:
906
906
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
907
- return [3 /*break*/, 13];
907
+ return [3, 13];
908
908
  case 10:
909
909
  _g = [{}];
910
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
910
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
911
911
  case 11:
912
912
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
913
- return [3 /*break*/, 13];
913
+ return [3, 13];
914
914
  case 12:
915
915
  parsedBody = parsedOutput.body;
916
916
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -920,7 +920,7 @@ var deserializeAws_restJson1UpdateEnvironmentCommandError = function (output, co
920
920
  message = response.message || response.Message || errorCode;
921
921
  response.message = message;
922
922
  delete response.Message;
923
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
923
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
924
924
  }
925
925
  });
926
926
  }); };
@@ -933,7 +933,7 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
933
933
  $metadata: deserializeMetadata(parsedOutput),
934
934
  };
935
935
  data = parsedOutput.body;
936
- return [2 /*return*/, contents];
936
+ return [2, contents];
937
937
  });
938
938
  }); };
939
939
  var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -949,7 +949,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
949
949
  if (data.message !== undefined && data.message !== null) {
950
950
  contents.message = __expectString(data.message);
951
951
  }
952
- return [2 /*return*/, contents];
952
+ return [2, contents];
953
953
  });
954
954
  }); };
955
955
  var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -965,7 +965,7 @@ var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOu
965
965
  if (data.message !== undefined && data.message !== null) {
966
966
  contents.message = __expectString(data.message);
967
967
  }
968
- return [2 /*return*/, contents];
968
+ return [2, contents];
969
969
  });
970
970
  }); };
971
971
  var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -981,7 +981,7 @@ var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOut
981
981
  if (data.message !== undefined && data.message !== null) {
982
982
  contents.message = __expectString(data.message);
983
983
  }
984
- return [2 /*return*/, contents];
984
+ return [2, contents];
985
985
  });
986
986
  }); };
987
987
  var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -997,7 +997,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
997
997
  if (data.message !== undefined && data.message !== null) {
998
998
  contents.message = __expectString(data.message);
999
999
  }
1000
- return [2 /*return*/, contents];
1000
+ return [2, contents];
1001
1001
  });
1002
1002
  }); };
1003
1003
  var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -1013,7 +1013,7 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
1013
1013
  if (data.message !== undefined && data.message !== null) {
1014
1014
  contents.message = __expectString(data.message);
1015
1015
  }
1016
- return [2 /*return*/, contents];
1016
+ return [2, contents];
1017
1017
  });
1018
1018
  }); };
1019
1019
  var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -1025,7 +1025,7 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
1025
1025
  $metadata: deserializeMetadata(parsedOutput),
1026
1026
  };
1027
1027
  data = parsedOutput.body;
1028
- return [2 /*return*/, contents];
1028
+ return [2, contents];
1029
1029
  });
1030
1030
  }); };
1031
1031
  var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -1041,7 +1041,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
1041
1041
  if (data.message !== undefined && data.message !== null) {
1042
1042
  contents.message = __expectString(data.message);
1043
1043
  }
1044
- return [2 /*return*/, contents];
1044
+ return [2, contents];
1045
1045
  });
1046
1046
  }); };
1047
1047
  var serializeAws_restJson1AttributeMap = function (input, context) {
@@ -1141,7 +1141,6 @@ var deserializeMetadata = function (output) {
1141
1141
  cfId: output.headers["x-amz-cf-id"],
1142
1142
  });
1143
1143
  };
1144
- // Collect low-level response body stream to Uint8Array.
1145
1144
  var collectBody = function (streamBody, context) {
1146
1145
  if (streamBody === void 0) { streamBody = new Uint8Array(); }
1147
1146
  if (streamBody instanceof Uint8Array) {
@@ -1149,7 +1148,6 @@ var collectBody = function (streamBody, context) {
1149
1148
  }
1150
1149
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1151
1150
  };
1152
- // Encode Uint8Array data into string with utf-8.
1153
1151
  var collectBodyString = function (streamBody, context) {
1154
1152
  return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
1155
1153
  };
@@ -1168,9 +1166,6 @@ var parseBody = function (streamBody, context) {
1168
1166
  return {};
1169
1167
  });
1170
1168
  };
1171
- /**
1172
- * Load an error code for the aws.rest-json-1.1 protocol.
1173
- */
1174
1169
  var loadRestJsonErrorCode = function (output, data) {
1175
1170
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
1176
1171
  var sanitizeErrorCode = function (rawValue) {
@@ -1195,4 +1190,3 @@ var loadRestJsonErrorCode = function (output, data) {
1195
1190
  }
1196
1191
  return "";
1197
1192
  };
1198
- //# sourceMappingURL=Aws_restJson1.js.map