@aws-sdk/client-finspace 3.303.0 → 3.309.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.
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateEnvironmentCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListEnvironmentsCommand = exports.deserializeAws_restJson1GetEnvironmentCommand = exports.deserializeAws_restJson1DeleteEnvironmentCommand = exports.deserializeAws_restJson1CreateEnvironmentCommand = exports.serializeAws_restJson1UpdateEnvironmentCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListEnvironmentsCommand = exports.serializeAws_restJson1GetEnvironmentCommand = exports.serializeAws_restJson1DeleteEnvironmentCommand = exports.serializeAws_restJson1CreateEnvironmentCommand = void 0;
3
+ exports.de_UpdateEnvironmentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEnvironmentsCommand = exports.de_GetEnvironmentCommand = exports.de_DeleteEnvironmentCommand = exports.de_CreateEnvironmentCommand = exports.se_UpdateEnvironmentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEnvironmentsCommand = exports.se_GetEnvironmentCommand = exports.se_DeleteEnvironmentCommand = exports.se_CreateEnvironmentCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const FinspaceServiceException_1 = require("../models/FinspaceServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
- const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) => {
8
+ const se_CreateEnvironmentCommand = async (input, context) => {
9
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
10
  const headers = {
11
11
  "content-type": "application/json",
@@ -13,18 +13,18 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
13
13
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment";
14
14
  let body;
15
15
  body = JSON.stringify({
16
- ...(input.dataBundles != null && { dataBundles: serializeAws_restJson1DataBundleArns(input.dataBundles, context) }),
16
+ ...(input.dataBundles != null && { dataBundles: se_DataBundleArns(input.dataBundles, context) }),
17
17
  ...(input.description != null && { description: input.description }),
18
18
  ...(input.federationMode != null && { federationMode: input.federationMode }),
19
19
  ...(input.federationParameters != null && {
20
- federationParameters: serializeAws_restJson1FederationParameters(input.federationParameters, context),
20
+ federationParameters: se_FederationParameters(input.federationParameters, context),
21
21
  }),
22
22
  ...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
23
23
  ...(input.name != null && { name: input.name }),
24
24
  ...(input.superuserParameters != null && {
25
- superuserParameters: serializeAws_restJson1SuperuserParameters(input.superuserParameters, context),
25
+ superuserParameters: se_SuperuserParameters(input.superuserParameters, context),
26
26
  }),
27
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
27
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
28
28
  });
29
29
  return new protocol_http_1.HttpRequest({
30
30
  protocol,
@@ -36,8 +36,8 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
36
36
  body,
37
37
  });
38
38
  };
39
- exports.serializeAws_restJson1CreateEnvironmentCommand = serializeAws_restJson1CreateEnvironmentCommand;
40
- const serializeAws_restJson1DeleteEnvironmentCommand = async (input, context) => {
39
+ exports.se_CreateEnvironmentCommand = se_CreateEnvironmentCommand;
40
+ const se_DeleteEnvironmentCommand = async (input, context) => {
41
41
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
42
42
  const headers = {};
43
43
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment/{environmentId}";
@@ -53,8 +53,8 @@ const serializeAws_restJson1DeleteEnvironmentCommand = async (input, context) =>
53
53
  body,
54
54
  });
55
55
  };
56
- exports.serializeAws_restJson1DeleteEnvironmentCommand = serializeAws_restJson1DeleteEnvironmentCommand;
57
- const serializeAws_restJson1GetEnvironmentCommand = async (input, context) => {
56
+ exports.se_DeleteEnvironmentCommand = se_DeleteEnvironmentCommand;
57
+ const se_GetEnvironmentCommand = async (input, context) => {
58
58
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
59
59
  const headers = {};
60
60
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment/{environmentId}";
@@ -70,8 +70,8 @@ const serializeAws_restJson1GetEnvironmentCommand = async (input, context) => {
70
70
  body,
71
71
  });
72
72
  };
73
- exports.serializeAws_restJson1GetEnvironmentCommand = serializeAws_restJson1GetEnvironmentCommand;
74
- const serializeAws_restJson1ListEnvironmentsCommand = async (input, context) => {
73
+ exports.se_GetEnvironmentCommand = se_GetEnvironmentCommand;
74
+ const se_ListEnvironmentsCommand = async (input, context) => {
75
75
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
76
76
  const headers = {};
77
77
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment";
@@ -91,8 +91,8 @@ const serializeAws_restJson1ListEnvironmentsCommand = async (input, context) =>
91
91
  body,
92
92
  });
93
93
  };
94
- exports.serializeAws_restJson1ListEnvironmentsCommand = serializeAws_restJson1ListEnvironmentsCommand;
95
- const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
94
+ exports.se_ListEnvironmentsCommand = se_ListEnvironmentsCommand;
95
+ const se_ListTagsForResourceCommand = async (input, context) => {
96
96
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
97
97
  const headers = {};
98
98
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -108,8 +108,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
108
108
  body,
109
109
  });
110
110
  };
111
- exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
112
- const serializeAws_restJson1TagResourceCommand = async (input, context) => {
111
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
112
+ const se_TagResourceCommand = async (input, context) => {
113
113
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
114
114
  const headers = {
115
115
  "content-type": "application/json",
@@ -118,7 +118,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
118
118
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
119
119
  let body;
120
120
  body = JSON.stringify({
121
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
121
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
122
122
  });
123
123
  return new protocol_http_1.HttpRequest({
124
124
  protocol,
@@ -130,8 +130,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
130
130
  body,
131
131
  });
132
132
  };
133
- exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
134
- const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
133
+ exports.se_TagResourceCommand = se_TagResourceCommand;
134
+ const se_UntagResourceCommand = async (input, context) => {
135
135
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
136
136
  const headers = {};
137
137
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -154,8 +154,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
154
154
  body,
155
155
  });
156
156
  };
157
- exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
158
- const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) => {
157
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
158
+ const se_UpdateEnvironmentCommand = async (input, context) => {
159
159
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
160
160
  const headers = {
161
161
  "content-type": "application/json",
@@ -167,7 +167,7 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
167
167
  ...(input.description != null && { description: input.description }),
168
168
  ...(input.federationMode != null && { federationMode: input.federationMode }),
169
169
  ...(input.federationParameters != null && {
170
- federationParameters: serializeAws_restJson1FederationParameters(input.federationParameters, context),
170
+ federationParameters: se_FederationParameters(input.federationParameters, context),
171
171
  }),
172
172
  ...(input.name != null && { name: input.name }),
173
173
  });
@@ -181,10 +181,10 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
181
181
  body,
182
182
  });
183
183
  };
184
- exports.serializeAws_restJson1UpdateEnvironmentCommand = serializeAws_restJson1UpdateEnvironmentCommand;
185
- const deserializeAws_restJson1CreateEnvironmentCommand = async (output, context) => {
184
+ exports.se_UpdateEnvironmentCommand = se_UpdateEnvironmentCommand;
185
+ const de_CreateEnvironmentCommand = async (output, context) => {
186
186
  if (output.statusCode !== 200 && output.statusCode >= 300) {
187
- return deserializeAws_restJson1CreateEnvironmentCommandError(output, context);
187
+ return de_CreateEnvironmentCommandError(output, context);
188
188
  }
189
189
  const contents = map({
190
190
  $metadata: deserializeMetadata(output),
@@ -201,8 +201,8 @@ const deserializeAws_restJson1CreateEnvironmentCommand = async (output, context)
201
201
  }
202
202
  return contents;
203
203
  };
204
- exports.deserializeAws_restJson1CreateEnvironmentCommand = deserializeAws_restJson1CreateEnvironmentCommand;
205
- const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, context) => {
204
+ exports.de_CreateEnvironmentCommand = de_CreateEnvironmentCommand;
205
+ const de_CreateEnvironmentCommandError = async (output, context) => {
206
206
  const parsedOutput = {
207
207
  ...output,
208
208
  body: await parseErrorBody(output.body, context),
@@ -211,22 +211,22 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
211
211
  switch (errorCode) {
212
212
  case "AccessDeniedException":
213
213
  case "com.amazonaws.finspace#AccessDeniedException":
214
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
214
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
215
215
  case "InternalServerException":
216
216
  case "com.amazonaws.finspace#InternalServerException":
217
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
217
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
218
218
  case "LimitExceededException":
219
219
  case "com.amazonaws.finspace#LimitExceededException":
220
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
220
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
221
221
  case "ServiceQuotaExceededException":
222
222
  case "com.amazonaws.finspace#ServiceQuotaExceededException":
223
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
223
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
224
224
  case "ThrottlingException":
225
225
  case "com.amazonaws.finspace#ThrottlingException":
226
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
226
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
227
227
  case "ValidationException":
228
228
  case "com.amazonaws.finspace#ValidationException":
229
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
229
+ throw await de_ValidationExceptionRes(parsedOutput, context);
230
230
  default:
231
231
  const parsedBody = parsedOutput.body;
232
232
  (0, smithy_client_1.throwDefaultError)({
@@ -237,9 +237,9 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
237
237
  });
238
238
  }
239
239
  };
240
- const deserializeAws_restJson1DeleteEnvironmentCommand = async (output, context) => {
240
+ const de_DeleteEnvironmentCommand = async (output, context) => {
241
241
  if (output.statusCode !== 200 && output.statusCode >= 300) {
242
- return deserializeAws_restJson1DeleteEnvironmentCommandError(output, context);
242
+ return de_DeleteEnvironmentCommandError(output, context);
243
243
  }
244
244
  const contents = map({
245
245
  $metadata: deserializeMetadata(output),
@@ -247,8 +247,8 @@ const deserializeAws_restJson1DeleteEnvironmentCommand = async (output, context)
247
247
  await collectBody(output.body, context);
248
248
  return contents;
249
249
  };
250
- exports.deserializeAws_restJson1DeleteEnvironmentCommand = deserializeAws_restJson1DeleteEnvironmentCommand;
251
- const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, context) => {
250
+ exports.de_DeleteEnvironmentCommand = de_DeleteEnvironmentCommand;
251
+ const de_DeleteEnvironmentCommandError = async (output, context) => {
252
252
  const parsedOutput = {
253
253
  ...output,
254
254
  body: await parseErrorBody(output.body, context),
@@ -257,19 +257,19 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
257
257
  switch (errorCode) {
258
258
  case "AccessDeniedException":
259
259
  case "com.amazonaws.finspace#AccessDeniedException":
260
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
260
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
261
261
  case "InternalServerException":
262
262
  case "com.amazonaws.finspace#InternalServerException":
263
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
263
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
264
264
  case "ResourceNotFoundException":
265
265
  case "com.amazonaws.finspace#ResourceNotFoundException":
266
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
266
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
267
267
  case "ThrottlingException":
268
268
  case "com.amazonaws.finspace#ThrottlingException":
269
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
269
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
270
270
  case "ValidationException":
271
271
  case "com.amazonaws.finspace#ValidationException":
272
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
272
+ throw await de_ValidationExceptionRes(parsedOutput, context);
273
273
  default:
274
274
  const parsedBody = parsedOutput.body;
275
275
  (0, smithy_client_1.throwDefaultError)({
@@ -280,21 +280,21 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
280
280
  });
281
281
  }
282
282
  };
283
- const deserializeAws_restJson1GetEnvironmentCommand = async (output, context) => {
283
+ const de_GetEnvironmentCommand = async (output, context) => {
284
284
  if (output.statusCode !== 200 && output.statusCode >= 300) {
285
- return deserializeAws_restJson1GetEnvironmentCommandError(output, context);
285
+ return de_GetEnvironmentCommandError(output, context);
286
286
  }
287
287
  const contents = map({
288
288
  $metadata: deserializeMetadata(output),
289
289
  });
290
290
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
291
291
  if (data.environment != null) {
292
- contents.environment = deserializeAws_restJson1Environment(data.environment, context);
292
+ contents.environment = de_Environment(data.environment, context);
293
293
  }
294
294
  return contents;
295
295
  };
296
- exports.deserializeAws_restJson1GetEnvironmentCommand = deserializeAws_restJson1GetEnvironmentCommand;
297
- const deserializeAws_restJson1GetEnvironmentCommandError = async (output, context) => {
296
+ exports.de_GetEnvironmentCommand = de_GetEnvironmentCommand;
297
+ const de_GetEnvironmentCommandError = async (output, context) => {
298
298
  const parsedOutput = {
299
299
  ...output,
300
300
  body: await parseErrorBody(output.body, context),
@@ -303,16 +303,16 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
303
303
  switch (errorCode) {
304
304
  case "AccessDeniedException":
305
305
  case "com.amazonaws.finspace#AccessDeniedException":
306
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
306
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
307
307
  case "InternalServerException":
308
308
  case "com.amazonaws.finspace#InternalServerException":
309
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
309
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
310
310
  case "ResourceNotFoundException":
311
311
  case "com.amazonaws.finspace#ResourceNotFoundException":
312
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
312
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
313
313
  case "ValidationException":
314
314
  case "com.amazonaws.finspace#ValidationException":
315
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
315
+ throw await de_ValidationExceptionRes(parsedOutput, context);
316
316
  default:
317
317
  const parsedBody = parsedOutput.body;
318
318
  (0, smithy_client_1.throwDefaultError)({
@@ -323,24 +323,24 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
323
323
  });
324
324
  }
325
325
  };
326
- const deserializeAws_restJson1ListEnvironmentsCommand = async (output, context) => {
326
+ const de_ListEnvironmentsCommand = async (output, context) => {
327
327
  if (output.statusCode !== 200 && output.statusCode >= 300) {
328
- return deserializeAws_restJson1ListEnvironmentsCommandError(output, context);
328
+ return de_ListEnvironmentsCommandError(output, context);
329
329
  }
330
330
  const contents = map({
331
331
  $metadata: deserializeMetadata(output),
332
332
  });
333
333
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
334
334
  if (data.environments != null) {
335
- contents.environments = deserializeAws_restJson1EnvironmentList(data.environments, context);
335
+ contents.environments = de_EnvironmentList(data.environments, context);
336
336
  }
337
337
  if (data.nextToken != null) {
338
338
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
339
339
  }
340
340
  return contents;
341
341
  };
342
- exports.deserializeAws_restJson1ListEnvironmentsCommand = deserializeAws_restJson1ListEnvironmentsCommand;
343
- const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, context) => {
342
+ exports.de_ListEnvironmentsCommand = de_ListEnvironmentsCommand;
343
+ const de_ListEnvironmentsCommandError = async (output, context) => {
344
344
  const parsedOutput = {
345
345
  ...output,
346
346
  body: await parseErrorBody(output.body, context),
@@ -349,10 +349,10 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
349
349
  switch (errorCode) {
350
350
  case "InternalServerException":
351
351
  case "com.amazonaws.finspace#InternalServerException":
352
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
352
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
353
353
  case "ValidationException":
354
354
  case "com.amazonaws.finspace#ValidationException":
355
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
355
+ throw await de_ValidationExceptionRes(parsedOutput, context);
356
356
  default:
357
357
  const parsedBody = parsedOutput.body;
358
358
  (0, smithy_client_1.throwDefaultError)({
@@ -363,21 +363,21 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
363
363
  });
364
364
  }
365
365
  };
366
- const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
366
+ const de_ListTagsForResourceCommand = async (output, context) => {
367
367
  if (output.statusCode !== 200 && output.statusCode >= 300) {
368
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
368
+ return de_ListTagsForResourceCommandError(output, context);
369
369
  }
370
370
  const contents = map({
371
371
  $metadata: deserializeMetadata(output),
372
372
  });
373
373
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
374
374
  if (data.tags != null) {
375
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
375
+ contents.tags = de_TagMap(data.tags, context);
376
376
  }
377
377
  return contents;
378
378
  };
379
- exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
380
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
379
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
380
+ const de_ListTagsForResourceCommandError = async (output, context) => {
381
381
  const parsedOutput = {
382
382
  ...output,
383
383
  body: await parseErrorBody(output.body, context),
@@ -386,13 +386,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
386
386
  switch (errorCode) {
387
387
  case "InternalServerException":
388
388
  case "com.amazonaws.finspace#InternalServerException":
389
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
389
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
390
390
  case "InvalidRequestException":
391
391
  case "com.amazonaws.finspace#InvalidRequestException":
392
- throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
392
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
393
393
  case "ResourceNotFoundException":
394
394
  case "com.amazonaws.finspace#ResourceNotFoundException":
395
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
395
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
396
396
  default:
397
397
  const parsedBody = parsedOutput.body;
398
398
  (0, smithy_client_1.throwDefaultError)({
@@ -403,9 +403,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
403
403
  });
404
404
  }
405
405
  };
406
- const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
406
+ const de_TagResourceCommand = async (output, context) => {
407
407
  if (output.statusCode !== 200 && output.statusCode >= 300) {
408
- return deserializeAws_restJson1TagResourceCommandError(output, context);
408
+ return de_TagResourceCommandError(output, context);
409
409
  }
410
410
  const contents = map({
411
411
  $metadata: deserializeMetadata(output),
@@ -413,8 +413,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
413
413
  await collectBody(output.body, context);
414
414
  return contents;
415
415
  };
416
- exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
417
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
416
+ exports.de_TagResourceCommand = de_TagResourceCommand;
417
+ const de_TagResourceCommandError = async (output, context) => {
418
418
  const parsedOutput = {
419
419
  ...output,
420
420
  body: await parseErrorBody(output.body, context),
@@ -423,13 +423,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
423
423
  switch (errorCode) {
424
424
  case "InternalServerException":
425
425
  case "com.amazonaws.finspace#InternalServerException":
426
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
426
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
427
427
  case "InvalidRequestException":
428
428
  case "com.amazonaws.finspace#InvalidRequestException":
429
- throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
429
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
430
430
  case "ResourceNotFoundException":
431
431
  case "com.amazonaws.finspace#ResourceNotFoundException":
432
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
432
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
433
433
  default:
434
434
  const parsedBody = parsedOutput.body;
435
435
  (0, smithy_client_1.throwDefaultError)({
@@ -440,9 +440,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
440
440
  });
441
441
  }
442
442
  };
443
- const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
443
+ const de_UntagResourceCommand = async (output, context) => {
444
444
  if (output.statusCode !== 200 && output.statusCode >= 300) {
445
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
445
+ return de_UntagResourceCommandError(output, context);
446
446
  }
447
447
  const contents = map({
448
448
  $metadata: deserializeMetadata(output),
@@ -450,8 +450,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
450
450
  await collectBody(output.body, context);
451
451
  return contents;
452
452
  };
453
- exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
454
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
453
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
454
+ const de_UntagResourceCommandError = async (output, context) => {
455
455
  const parsedOutput = {
456
456
  ...output,
457
457
  body: await parseErrorBody(output.body, context),
@@ -460,13 +460,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
460
460
  switch (errorCode) {
461
461
  case "InternalServerException":
462
462
  case "com.amazonaws.finspace#InternalServerException":
463
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
463
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
464
464
  case "InvalidRequestException":
465
465
  case "com.amazonaws.finspace#InvalidRequestException":
466
- throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
466
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
467
467
  case "ResourceNotFoundException":
468
468
  case "com.amazonaws.finspace#ResourceNotFoundException":
469
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
469
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
470
470
  default:
471
471
  const parsedBody = parsedOutput.body;
472
472
  (0, smithy_client_1.throwDefaultError)({
@@ -477,21 +477,21 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
477
477
  });
478
478
  }
479
479
  };
480
- const deserializeAws_restJson1UpdateEnvironmentCommand = async (output, context) => {
480
+ const de_UpdateEnvironmentCommand = async (output, context) => {
481
481
  if (output.statusCode !== 200 && output.statusCode >= 300) {
482
- return deserializeAws_restJson1UpdateEnvironmentCommandError(output, context);
482
+ return de_UpdateEnvironmentCommandError(output, context);
483
483
  }
484
484
  const contents = map({
485
485
  $metadata: deserializeMetadata(output),
486
486
  });
487
487
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
488
488
  if (data.environment != null) {
489
- contents.environment = deserializeAws_restJson1Environment(data.environment, context);
489
+ contents.environment = de_Environment(data.environment, context);
490
490
  }
491
491
  return contents;
492
492
  };
493
- exports.deserializeAws_restJson1UpdateEnvironmentCommand = deserializeAws_restJson1UpdateEnvironmentCommand;
494
- const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, context) => {
493
+ exports.de_UpdateEnvironmentCommand = de_UpdateEnvironmentCommand;
494
+ const de_UpdateEnvironmentCommandError = async (output, context) => {
495
495
  const parsedOutput = {
496
496
  ...output,
497
497
  body: await parseErrorBody(output.body, context),
@@ -500,19 +500,19 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
500
500
  switch (errorCode) {
501
501
  case "AccessDeniedException":
502
502
  case "com.amazonaws.finspace#AccessDeniedException":
503
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
503
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
504
504
  case "InternalServerException":
505
505
  case "com.amazonaws.finspace#InternalServerException":
506
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
506
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
507
507
  case "ResourceNotFoundException":
508
508
  case "com.amazonaws.finspace#ResourceNotFoundException":
509
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
509
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
510
510
  case "ThrottlingException":
511
511
  case "com.amazonaws.finspace#ThrottlingException":
512
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
512
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
513
513
  case "ValidationException":
514
514
  case "com.amazonaws.finspace#ValidationException":
515
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
515
+ throw await de_ValidationExceptionRes(parsedOutput, context);
516
516
  default:
517
517
  const parsedBody = parsedOutput.body;
518
518
  (0, smithy_client_1.throwDefaultError)({
@@ -524,7 +524,7 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
524
524
  }
525
525
  };
526
526
  const map = smithy_client_1.map;
527
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
527
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
528
528
  const contents = map({});
529
529
  const data = parsedOutput.body;
530
530
  const exception = new models_0_1.AccessDeniedException({
@@ -533,7 +533,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
533
533
  });
534
534
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
535
535
  };
536
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
536
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
537
537
  const contents = map({});
538
538
  const data = parsedOutput.body;
539
539
  if (data.message != null) {
@@ -545,7 +545,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
545
545
  });
546
546
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
547
547
  };
548
- const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
548
+ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
549
549
  const contents = map({});
550
550
  const data = parsedOutput.body;
551
551
  if (data.message != null) {
@@ -557,7 +557,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
557
557
  });
558
558
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
559
559
  };
560
- const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
560
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
561
561
  const contents = map({});
562
562
  const data = parsedOutput.body;
563
563
  if (data.message != null) {
@@ -569,7 +569,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
569
569
  });
570
570
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
571
571
  };
572
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
572
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
573
573
  const contents = map({});
574
574
  const data = parsedOutput.body;
575
575
  if (data.message != null) {
@@ -581,7 +581,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
581
581
  });
582
582
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
583
583
  };
584
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
584
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
585
585
  const contents = map({});
586
586
  const data = parsedOutput.body;
587
587
  if (data.message != null) {
@@ -593,7 +593,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
593
593
  });
594
594
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
595
595
  };
596
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
596
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
597
597
  const contents = map({});
598
598
  const data = parsedOutput.body;
599
599
  const exception = new models_0_1.ThrottlingException({
@@ -602,7 +602,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
602
602
  });
603
603
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
604
604
  };
605
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
605
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
606
606
  const contents = map({});
607
607
  const data = parsedOutput.body;
608
608
  if (data.message != null) {
@@ -614,7 +614,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
614
614
  });
615
615
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
616
616
  };
617
- const serializeAws_restJson1AttributeMap = (input, context) => {
617
+ const se_AttributeMap = (input, context) => {
618
618
  return Object.entries(input).reduce((acc, [key, value]) => {
619
619
  if (value === null) {
620
620
  return acc;
@@ -623,33 +623,31 @@ const serializeAws_restJson1AttributeMap = (input, context) => {
623
623
  return acc;
624
624
  }, {});
625
625
  };
626
- const serializeAws_restJson1DataBundleArns = (input, context) => {
626
+ const se_DataBundleArns = (input, context) => {
627
627
  return input
628
628
  .filter((e) => e != null)
629
629
  .map((entry) => {
630
630
  return entry;
631
631
  });
632
632
  };
633
- const serializeAws_restJson1FederationParameters = (input, context) => {
633
+ const se_FederationParameters = (input, context) => {
634
634
  return {
635
635
  ...(input.applicationCallBackURL != null && { applicationCallBackURL: input.applicationCallBackURL }),
636
- ...(input.attributeMap != null && {
637
- attributeMap: serializeAws_restJson1AttributeMap(input.attributeMap, context),
638
- }),
636
+ ...(input.attributeMap != null && { attributeMap: se_AttributeMap(input.attributeMap, context) }),
639
637
  ...(input.federationProviderName != null && { federationProviderName: input.federationProviderName }),
640
638
  ...(input.federationURN != null && { federationURN: input.federationURN }),
641
639
  ...(input.samlMetadataDocument != null && { samlMetadataDocument: input.samlMetadataDocument }),
642
640
  ...(input.samlMetadataURL != null && { samlMetadataURL: input.samlMetadataURL }),
643
641
  };
644
642
  };
645
- const serializeAws_restJson1SuperuserParameters = (input, context) => {
643
+ const se_SuperuserParameters = (input, context) => {
646
644
  return {
647
645
  ...(input.emailAddress != null && { emailAddress: input.emailAddress }),
648
646
  ...(input.firstName != null && { firstName: input.firstName }),
649
647
  ...(input.lastName != null && { lastName: input.lastName }),
650
648
  };
651
649
  };
652
- const serializeAws_restJson1TagMap = (input, context) => {
650
+ const se_TagMap = (input, context) => {
653
651
  return Object.entries(input).reduce((acc, [key, value]) => {
654
652
  if (value === null) {
655
653
  return acc;
@@ -658,7 +656,7 @@ const serializeAws_restJson1TagMap = (input, context) => {
658
656
  return acc;
659
657
  }, {});
660
658
  };
661
- const deserializeAws_restJson1AttributeMap = (output, context) => {
659
+ const de_AttributeMap = (output, context) => {
662
660
  return Object.entries(output).reduce((acc, [key, value]) => {
663
661
  if (value === null) {
664
662
  return acc;
@@ -667,7 +665,7 @@ const deserializeAws_restJson1AttributeMap = (output, context) => {
667
665
  return acc;
668
666
  }, {});
669
667
  };
670
- const deserializeAws_restJson1Environment = (output, context) => {
668
+ const de_Environment = (output, context) => {
671
669
  return {
672
670
  awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
673
671
  dedicatedServiceAccountId: (0, smithy_client_1.expectString)(output.dedicatedServiceAccountId),
@@ -676,37 +674,35 @@ const deserializeAws_restJson1Environment = (output, context) => {
676
674
  environmentId: (0, smithy_client_1.expectString)(output.environmentId),
677
675
  environmentUrl: (0, smithy_client_1.expectString)(output.environmentUrl),
678
676
  federationMode: (0, smithy_client_1.expectString)(output.federationMode),
679
- federationParameters: output.federationParameters != null
680
- ? deserializeAws_restJson1FederationParameters(output.federationParameters, context)
681
- : undefined,
677
+ federationParameters: output.federationParameters != null ? de_FederationParameters(output.federationParameters, context) : undefined,
682
678
  kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
683
679
  name: (0, smithy_client_1.expectString)(output.name),
684
680
  sageMakerStudioDomainUrl: (0, smithy_client_1.expectString)(output.sageMakerStudioDomainUrl),
685
681
  status: (0, smithy_client_1.expectString)(output.status),
686
682
  };
687
683
  };
688
- const deserializeAws_restJson1EnvironmentList = (output, context) => {
684
+ const de_EnvironmentList = (output, context) => {
689
685
  const retVal = (output || [])
690
686
  .filter((e) => e != null)
691
687
  .map((entry) => {
692
688
  if (entry === null) {
693
689
  return null;
694
690
  }
695
- return deserializeAws_restJson1Environment(entry, context);
691
+ return de_Environment(entry, context);
696
692
  });
697
693
  return retVal;
698
694
  };
699
- const deserializeAws_restJson1FederationParameters = (output, context) => {
695
+ const de_FederationParameters = (output, context) => {
700
696
  return {
701
697
  applicationCallBackURL: (0, smithy_client_1.expectString)(output.applicationCallBackURL),
702
- attributeMap: output.attributeMap != null ? deserializeAws_restJson1AttributeMap(output.attributeMap, context) : undefined,
698
+ attributeMap: output.attributeMap != null ? de_AttributeMap(output.attributeMap, context) : undefined,
703
699
  federationProviderName: (0, smithy_client_1.expectString)(output.federationProviderName),
704
700
  federationURN: (0, smithy_client_1.expectString)(output.federationURN),
705
701
  samlMetadataDocument: (0, smithy_client_1.expectString)(output.samlMetadataDocument),
706
702
  samlMetadataURL: (0, smithy_client_1.expectString)(output.samlMetadataURL),
707
703
  };
708
704
  };
709
- const deserializeAws_restJson1TagMap = (output, context) => {
705
+ const de_TagMap = (output, context) => {
710
706
  return Object.entries(output).reduce((acc, [key, value]) => {
711
707
  if (value === null) {
712
708
  return acc;