@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.
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { FinspaceServiceException as __BaseException } from "../models/FinspaceServiceException";
4
4
  import { AccessDeniedException, InternalServerException, InvalidRequestException, LimitExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
- export const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) => {
5
+ export const se_CreateEnvironmentCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {
8
8
  "content-type": "application/json",
@@ -10,18 +10,18 @@ export const serializeAws_restJson1CreateEnvironmentCommand = async (input, cont
10
10
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment";
11
11
  let body;
12
12
  body = JSON.stringify({
13
- ...(input.dataBundles != null && { dataBundles: serializeAws_restJson1DataBundleArns(input.dataBundles, context) }),
13
+ ...(input.dataBundles != null && { dataBundles: se_DataBundleArns(input.dataBundles, context) }),
14
14
  ...(input.description != null && { description: input.description }),
15
15
  ...(input.federationMode != null && { federationMode: input.federationMode }),
16
16
  ...(input.federationParameters != null && {
17
- federationParameters: serializeAws_restJson1FederationParameters(input.federationParameters, context),
17
+ federationParameters: se_FederationParameters(input.federationParameters, context),
18
18
  }),
19
19
  ...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
20
20
  ...(input.name != null && { name: input.name }),
21
21
  ...(input.superuserParameters != null && {
22
- superuserParameters: serializeAws_restJson1SuperuserParameters(input.superuserParameters, context),
22
+ superuserParameters: se_SuperuserParameters(input.superuserParameters, context),
23
23
  }),
24
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
24
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
25
25
  });
26
26
  return new __HttpRequest({
27
27
  protocol,
@@ -33,7 +33,7 @@ export const serializeAws_restJson1CreateEnvironmentCommand = async (input, cont
33
33
  body,
34
34
  });
35
35
  };
36
- export const serializeAws_restJson1DeleteEnvironmentCommand = async (input, context) => {
36
+ export const se_DeleteEnvironmentCommand = async (input, context) => {
37
37
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
38
38
  const headers = {};
39
39
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment/{environmentId}";
@@ -49,7 +49,7 @@ export const serializeAws_restJson1DeleteEnvironmentCommand = async (input, cont
49
49
  body,
50
50
  });
51
51
  };
52
- export const serializeAws_restJson1GetEnvironmentCommand = async (input, context) => {
52
+ export const se_GetEnvironmentCommand = async (input, context) => {
53
53
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
54
54
  const headers = {};
55
55
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment/{environmentId}";
@@ -65,7 +65,7 @@ export const serializeAws_restJson1GetEnvironmentCommand = async (input, context
65
65
  body,
66
66
  });
67
67
  };
68
- export const serializeAws_restJson1ListEnvironmentsCommand = async (input, context) => {
68
+ export const se_ListEnvironmentsCommand = async (input, context) => {
69
69
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
70
70
  const headers = {};
71
71
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment";
@@ -85,7 +85,7 @@ export const serializeAws_restJson1ListEnvironmentsCommand = async (input, conte
85
85
  body,
86
86
  });
87
87
  };
88
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
88
+ export const se_ListTagsForResourceCommand = async (input, context) => {
89
89
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
90
90
  const headers = {};
91
91
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -101,7 +101,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
101
101
  body,
102
102
  });
103
103
  };
104
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
104
+ export const se_TagResourceCommand = async (input, context) => {
105
105
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
106
  const headers = {
107
107
  "content-type": "application/json",
@@ -110,7 +110,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
110
110
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
111
111
  let body;
112
112
  body = JSON.stringify({
113
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
113
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
114
114
  });
115
115
  return new __HttpRequest({
116
116
  protocol,
@@ -122,7 +122,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
122
122
  body,
123
123
  });
124
124
  };
125
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
125
+ export const se_UntagResourceCommand = async (input, context) => {
126
126
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
127
  const headers = {};
128
128
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -145,7 +145,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
145
145
  body,
146
146
  });
147
147
  };
148
- export const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) => {
148
+ export const se_UpdateEnvironmentCommand = async (input, context) => {
149
149
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
150
150
  const headers = {
151
151
  "content-type": "application/json",
@@ -157,7 +157,7 @@ export const serializeAws_restJson1UpdateEnvironmentCommand = async (input, cont
157
157
  ...(input.description != null && { description: input.description }),
158
158
  ...(input.federationMode != null && { federationMode: input.federationMode }),
159
159
  ...(input.federationParameters != null && {
160
- federationParameters: serializeAws_restJson1FederationParameters(input.federationParameters, context),
160
+ federationParameters: se_FederationParameters(input.federationParameters, context),
161
161
  }),
162
162
  ...(input.name != null && { name: input.name }),
163
163
  });
@@ -171,9 +171,9 @@ export const serializeAws_restJson1UpdateEnvironmentCommand = async (input, cont
171
171
  body,
172
172
  });
173
173
  };
174
- export const deserializeAws_restJson1CreateEnvironmentCommand = async (output, context) => {
174
+ export const de_CreateEnvironmentCommand = async (output, context) => {
175
175
  if (output.statusCode !== 200 && output.statusCode >= 300) {
176
- return deserializeAws_restJson1CreateEnvironmentCommandError(output, context);
176
+ return de_CreateEnvironmentCommandError(output, context);
177
177
  }
178
178
  const contents = map({
179
179
  $metadata: deserializeMetadata(output),
@@ -190,7 +190,7 @@ export const deserializeAws_restJson1CreateEnvironmentCommand = async (output, c
190
190
  }
191
191
  return contents;
192
192
  };
193
- const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, context) => {
193
+ const de_CreateEnvironmentCommandError = async (output, context) => {
194
194
  const parsedOutput = {
195
195
  ...output,
196
196
  body: await parseErrorBody(output.body, context),
@@ -199,22 +199,22 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
199
199
  switch (errorCode) {
200
200
  case "AccessDeniedException":
201
201
  case "com.amazonaws.finspace#AccessDeniedException":
202
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
202
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
203
203
  case "InternalServerException":
204
204
  case "com.amazonaws.finspace#InternalServerException":
205
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
205
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
206
206
  case "LimitExceededException":
207
207
  case "com.amazonaws.finspace#LimitExceededException":
208
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
208
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
209
209
  case "ServiceQuotaExceededException":
210
210
  case "com.amazonaws.finspace#ServiceQuotaExceededException":
211
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
211
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
212
212
  case "ThrottlingException":
213
213
  case "com.amazonaws.finspace#ThrottlingException":
214
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
214
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
215
215
  case "ValidationException":
216
216
  case "com.amazonaws.finspace#ValidationException":
217
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
217
+ throw await de_ValidationExceptionRes(parsedOutput, context);
218
218
  default:
219
219
  const parsedBody = parsedOutput.body;
220
220
  throwDefaultError({
@@ -225,9 +225,9 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
225
225
  });
226
226
  }
227
227
  };
228
- export const deserializeAws_restJson1DeleteEnvironmentCommand = async (output, context) => {
228
+ export const de_DeleteEnvironmentCommand = async (output, context) => {
229
229
  if (output.statusCode !== 200 && output.statusCode >= 300) {
230
- return deserializeAws_restJson1DeleteEnvironmentCommandError(output, context);
230
+ return de_DeleteEnvironmentCommandError(output, context);
231
231
  }
232
232
  const contents = map({
233
233
  $metadata: deserializeMetadata(output),
@@ -235,7 +235,7 @@ export const deserializeAws_restJson1DeleteEnvironmentCommand = async (output, c
235
235
  await collectBody(output.body, context);
236
236
  return contents;
237
237
  };
238
- const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, context) => {
238
+ const de_DeleteEnvironmentCommandError = async (output, context) => {
239
239
  const parsedOutput = {
240
240
  ...output,
241
241
  body: await parseErrorBody(output.body, context),
@@ -244,19 +244,19 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
244
244
  switch (errorCode) {
245
245
  case "AccessDeniedException":
246
246
  case "com.amazonaws.finspace#AccessDeniedException":
247
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
247
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
248
248
  case "InternalServerException":
249
249
  case "com.amazonaws.finspace#InternalServerException":
250
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
250
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
251
251
  case "ResourceNotFoundException":
252
252
  case "com.amazonaws.finspace#ResourceNotFoundException":
253
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
253
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
254
254
  case "ThrottlingException":
255
255
  case "com.amazonaws.finspace#ThrottlingException":
256
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
256
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
257
257
  case "ValidationException":
258
258
  case "com.amazonaws.finspace#ValidationException":
259
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
259
+ throw await de_ValidationExceptionRes(parsedOutput, context);
260
260
  default:
261
261
  const parsedBody = parsedOutput.body;
262
262
  throwDefaultError({
@@ -267,20 +267,20 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
267
267
  });
268
268
  }
269
269
  };
270
- export const deserializeAws_restJson1GetEnvironmentCommand = async (output, context) => {
270
+ export const de_GetEnvironmentCommand = async (output, context) => {
271
271
  if (output.statusCode !== 200 && output.statusCode >= 300) {
272
- return deserializeAws_restJson1GetEnvironmentCommandError(output, context);
272
+ return de_GetEnvironmentCommandError(output, context);
273
273
  }
274
274
  const contents = map({
275
275
  $metadata: deserializeMetadata(output),
276
276
  });
277
277
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
278
278
  if (data.environment != null) {
279
- contents.environment = deserializeAws_restJson1Environment(data.environment, context);
279
+ contents.environment = de_Environment(data.environment, context);
280
280
  }
281
281
  return contents;
282
282
  };
283
- const deserializeAws_restJson1GetEnvironmentCommandError = async (output, context) => {
283
+ const de_GetEnvironmentCommandError = async (output, context) => {
284
284
  const parsedOutput = {
285
285
  ...output,
286
286
  body: await parseErrorBody(output.body, context),
@@ -289,16 +289,16 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
289
289
  switch (errorCode) {
290
290
  case "AccessDeniedException":
291
291
  case "com.amazonaws.finspace#AccessDeniedException":
292
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
292
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
293
293
  case "InternalServerException":
294
294
  case "com.amazonaws.finspace#InternalServerException":
295
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
295
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
296
296
  case "ResourceNotFoundException":
297
297
  case "com.amazonaws.finspace#ResourceNotFoundException":
298
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
298
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
299
299
  case "ValidationException":
300
300
  case "com.amazonaws.finspace#ValidationException":
301
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
301
+ throw await de_ValidationExceptionRes(parsedOutput, context);
302
302
  default:
303
303
  const parsedBody = parsedOutput.body;
304
304
  throwDefaultError({
@@ -309,23 +309,23 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
309
309
  });
310
310
  }
311
311
  };
312
- export const deserializeAws_restJson1ListEnvironmentsCommand = async (output, context) => {
312
+ export const de_ListEnvironmentsCommand = async (output, context) => {
313
313
  if (output.statusCode !== 200 && output.statusCode >= 300) {
314
- return deserializeAws_restJson1ListEnvironmentsCommandError(output, context);
314
+ return de_ListEnvironmentsCommandError(output, context);
315
315
  }
316
316
  const contents = map({
317
317
  $metadata: deserializeMetadata(output),
318
318
  });
319
319
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
320
320
  if (data.environments != null) {
321
- contents.environments = deserializeAws_restJson1EnvironmentList(data.environments, context);
321
+ contents.environments = de_EnvironmentList(data.environments, context);
322
322
  }
323
323
  if (data.nextToken != null) {
324
324
  contents.nextToken = __expectString(data.nextToken);
325
325
  }
326
326
  return contents;
327
327
  };
328
- const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, context) => {
328
+ const de_ListEnvironmentsCommandError = async (output, context) => {
329
329
  const parsedOutput = {
330
330
  ...output,
331
331
  body: await parseErrorBody(output.body, context),
@@ -334,10 +334,10 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
334
334
  switch (errorCode) {
335
335
  case "InternalServerException":
336
336
  case "com.amazonaws.finspace#InternalServerException":
337
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
337
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
338
338
  case "ValidationException":
339
339
  case "com.amazonaws.finspace#ValidationException":
340
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
340
+ throw await de_ValidationExceptionRes(parsedOutput, context);
341
341
  default:
342
342
  const parsedBody = parsedOutput.body;
343
343
  throwDefaultError({
@@ -348,20 +348,20 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
348
348
  });
349
349
  }
350
350
  };
351
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
351
+ export const de_ListTagsForResourceCommand = async (output, context) => {
352
352
  if (output.statusCode !== 200 && output.statusCode >= 300) {
353
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
353
+ return de_ListTagsForResourceCommandError(output, context);
354
354
  }
355
355
  const contents = map({
356
356
  $metadata: deserializeMetadata(output),
357
357
  });
358
358
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
359
359
  if (data.tags != null) {
360
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
360
+ contents.tags = de_TagMap(data.tags, context);
361
361
  }
362
362
  return contents;
363
363
  };
364
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
364
+ const de_ListTagsForResourceCommandError = async (output, context) => {
365
365
  const parsedOutput = {
366
366
  ...output,
367
367
  body: await parseErrorBody(output.body, context),
@@ -370,13 +370,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
370
370
  switch (errorCode) {
371
371
  case "InternalServerException":
372
372
  case "com.amazonaws.finspace#InternalServerException":
373
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
373
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
374
374
  case "InvalidRequestException":
375
375
  case "com.amazonaws.finspace#InvalidRequestException":
376
- throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
376
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
377
377
  case "ResourceNotFoundException":
378
378
  case "com.amazonaws.finspace#ResourceNotFoundException":
379
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
379
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
380
380
  default:
381
381
  const parsedBody = parsedOutput.body;
382
382
  throwDefaultError({
@@ -387,9 +387,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
387
387
  });
388
388
  }
389
389
  };
390
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
390
+ export const de_TagResourceCommand = async (output, context) => {
391
391
  if (output.statusCode !== 200 && output.statusCode >= 300) {
392
- return deserializeAws_restJson1TagResourceCommandError(output, context);
392
+ return de_TagResourceCommandError(output, context);
393
393
  }
394
394
  const contents = map({
395
395
  $metadata: deserializeMetadata(output),
@@ -397,7 +397,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
397
397
  await collectBody(output.body, context);
398
398
  return contents;
399
399
  };
400
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
400
+ const de_TagResourceCommandError = async (output, context) => {
401
401
  const parsedOutput = {
402
402
  ...output,
403
403
  body: await parseErrorBody(output.body, context),
@@ -406,13 +406,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
406
406
  switch (errorCode) {
407
407
  case "InternalServerException":
408
408
  case "com.amazonaws.finspace#InternalServerException":
409
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
409
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
410
410
  case "InvalidRequestException":
411
411
  case "com.amazonaws.finspace#InvalidRequestException":
412
- throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
412
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
413
413
  case "ResourceNotFoundException":
414
414
  case "com.amazonaws.finspace#ResourceNotFoundException":
415
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
415
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
416
416
  default:
417
417
  const parsedBody = parsedOutput.body;
418
418
  throwDefaultError({
@@ -423,9 +423,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
423
423
  });
424
424
  }
425
425
  };
426
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
426
+ export const de_UntagResourceCommand = async (output, context) => {
427
427
  if (output.statusCode !== 200 && output.statusCode >= 300) {
428
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
428
+ return de_UntagResourceCommandError(output, context);
429
429
  }
430
430
  const contents = map({
431
431
  $metadata: deserializeMetadata(output),
@@ -433,7 +433,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
433
433
  await collectBody(output.body, context);
434
434
  return contents;
435
435
  };
436
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
436
+ const de_UntagResourceCommandError = async (output, context) => {
437
437
  const parsedOutput = {
438
438
  ...output,
439
439
  body: await parseErrorBody(output.body, context),
@@ -442,13 +442,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
442
442
  switch (errorCode) {
443
443
  case "InternalServerException":
444
444
  case "com.amazonaws.finspace#InternalServerException":
445
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
445
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
446
446
  case "InvalidRequestException":
447
447
  case "com.amazonaws.finspace#InvalidRequestException":
448
- throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
448
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
449
449
  case "ResourceNotFoundException":
450
450
  case "com.amazonaws.finspace#ResourceNotFoundException":
451
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
451
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
452
452
  default:
453
453
  const parsedBody = parsedOutput.body;
454
454
  throwDefaultError({
@@ -459,20 +459,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
459
459
  });
460
460
  }
461
461
  };
462
- export const deserializeAws_restJson1UpdateEnvironmentCommand = async (output, context) => {
462
+ export const de_UpdateEnvironmentCommand = async (output, context) => {
463
463
  if (output.statusCode !== 200 && output.statusCode >= 300) {
464
- return deserializeAws_restJson1UpdateEnvironmentCommandError(output, context);
464
+ return de_UpdateEnvironmentCommandError(output, context);
465
465
  }
466
466
  const contents = map({
467
467
  $metadata: deserializeMetadata(output),
468
468
  });
469
469
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
470
470
  if (data.environment != null) {
471
- contents.environment = deserializeAws_restJson1Environment(data.environment, context);
471
+ contents.environment = de_Environment(data.environment, context);
472
472
  }
473
473
  return contents;
474
474
  };
475
- const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, context) => {
475
+ const de_UpdateEnvironmentCommandError = async (output, context) => {
476
476
  const parsedOutput = {
477
477
  ...output,
478
478
  body: await parseErrorBody(output.body, context),
@@ -481,19 +481,19 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
481
481
  switch (errorCode) {
482
482
  case "AccessDeniedException":
483
483
  case "com.amazonaws.finspace#AccessDeniedException":
484
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
484
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
485
485
  case "InternalServerException":
486
486
  case "com.amazonaws.finspace#InternalServerException":
487
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
487
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
488
488
  case "ResourceNotFoundException":
489
489
  case "com.amazonaws.finspace#ResourceNotFoundException":
490
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
490
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
491
491
  case "ThrottlingException":
492
492
  case "com.amazonaws.finspace#ThrottlingException":
493
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
493
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
494
494
  case "ValidationException":
495
495
  case "com.amazonaws.finspace#ValidationException":
496
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
496
+ throw await de_ValidationExceptionRes(parsedOutput, context);
497
497
  default:
498
498
  const parsedBody = parsedOutput.body;
499
499
  throwDefaultError({
@@ -505,7 +505,7 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
505
505
  }
506
506
  };
507
507
  const map = __map;
508
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
508
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
509
509
  const contents = map({});
510
510
  const data = parsedOutput.body;
511
511
  const exception = new AccessDeniedException({
@@ -514,7 +514,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
514
514
  });
515
515
  return __decorateServiceException(exception, parsedOutput.body);
516
516
  };
517
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
517
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
518
518
  const contents = map({});
519
519
  const data = parsedOutput.body;
520
520
  if (data.message != null) {
@@ -526,7 +526,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
526
526
  });
527
527
  return __decorateServiceException(exception, parsedOutput.body);
528
528
  };
529
- const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
529
+ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
530
530
  const contents = map({});
531
531
  const data = parsedOutput.body;
532
532
  if (data.message != null) {
@@ -538,7 +538,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
538
538
  });
539
539
  return __decorateServiceException(exception, parsedOutput.body);
540
540
  };
541
- const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
541
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
542
542
  const contents = map({});
543
543
  const data = parsedOutput.body;
544
544
  if (data.message != null) {
@@ -550,7 +550,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
550
550
  });
551
551
  return __decorateServiceException(exception, parsedOutput.body);
552
552
  };
553
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
553
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
554
554
  const contents = map({});
555
555
  const data = parsedOutput.body;
556
556
  if (data.message != null) {
@@ -562,7 +562,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
562
562
  });
563
563
  return __decorateServiceException(exception, parsedOutput.body);
564
564
  };
565
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
565
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
566
566
  const contents = map({});
567
567
  const data = parsedOutput.body;
568
568
  if (data.message != null) {
@@ -574,7 +574,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
574
574
  });
575
575
  return __decorateServiceException(exception, parsedOutput.body);
576
576
  };
577
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
577
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
578
578
  const contents = map({});
579
579
  const data = parsedOutput.body;
580
580
  const exception = new ThrottlingException({
@@ -583,7 +583,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
583
583
  });
584
584
  return __decorateServiceException(exception, parsedOutput.body);
585
585
  };
586
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
586
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
587
587
  const contents = map({});
588
588
  const data = parsedOutput.body;
589
589
  if (data.message != null) {
@@ -595,7 +595,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
595
595
  });
596
596
  return __decorateServiceException(exception, parsedOutput.body);
597
597
  };
598
- const serializeAws_restJson1AttributeMap = (input, context) => {
598
+ const se_AttributeMap = (input, context) => {
599
599
  return Object.entries(input).reduce((acc, [key, value]) => {
600
600
  if (value === null) {
601
601
  return acc;
@@ -604,33 +604,31 @@ const serializeAws_restJson1AttributeMap = (input, context) => {
604
604
  return acc;
605
605
  }, {});
606
606
  };
607
- const serializeAws_restJson1DataBundleArns = (input, context) => {
607
+ const se_DataBundleArns = (input, context) => {
608
608
  return input
609
609
  .filter((e) => e != null)
610
610
  .map((entry) => {
611
611
  return entry;
612
612
  });
613
613
  };
614
- const serializeAws_restJson1FederationParameters = (input, context) => {
614
+ const se_FederationParameters = (input, context) => {
615
615
  return {
616
616
  ...(input.applicationCallBackURL != null && { applicationCallBackURL: input.applicationCallBackURL }),
617
- ...(input.attributeMap != null && {
618
- attributeMap: serializeAws_restJson1AttributeMap(input.attributeMap, context),
619
- }),
617
+ ...(input.attributeMap != null && { attributeMap: se_AttributeMap(input.attributeMap, context) }),
620
618
  ...(input.federationProviderName != null && { federationProviderName: input.federationProviderName }),
621
619
  ...(input.federationURN != null && { federationURN: input.federationURN }),
622
620
  ...(input.samlMetadataDocument != null && { samlMetadataDocument: input.samlMetadataDocument }),
623
621
  ...(input.samlMetadataURL != null && { samlMetadataURL: input.samlMetadataURL }),
624
622
  };
625
623
  };
626
- const serializeAws_restJson1SuperuserParameters = (input, context) => {
624
+ const se_SuperuserParameters = (input, context) => {
627
625
  return {
628
626
  ...(input.emailAddress != null && { emailAddress: input.emailAddress }),
629
627
  ...(input.firstName != null && { firstName: input.firstName }),
630
628
  ...(input.lastName != null && { lastName: input.lastName }),
631
629
  };
632
630
  };
633
- const serializeAws_restJson1TagMap = (input, context) => {
631
+ const se_TagMap = (input, context) => {
634
632
  return Object.entries(input).reduce((acc, [key, value]) => {
635
633
  if (value === null) {
636
634
  return acc;
@@ -639,7 +637,7 @@ const serializeAws_restJson1TagMap = (input, context) => {
639
637
  return acc;
640
638
  }, {});
641
639
  };
642
- const deserializeAws_restJson1AttributeMap = (output, context) => {
640
+ const de_AttributeMap = (output, context) => {
643
641
  return Object.entries(output).reduce((acc, [key, value]) => {
644
642
  if (value === null) {
645
643
  return acc;
@@ -648,7 +646,7 @@ const deserializeAws_restJson1AttributeMap = (output, context) => {
648
646
  return acc;
649
647
  }, {});
650
648
  };
651
- const deserializeAws_restJson1Environment = (output, context) => {
649
+ const de_Environment = (output, context) => {
652
650
  return {
653
651
  awsAccountId: __expectString(output.awsAccountId),
654
652
  dedicatedServiceAccountId: __expectString(output.dedicatedServiceAccountId),
@@ -657,37 +655,35 @@ const deserializeAws_restJson1Environment = (output, context) => {
657
655
  environmentId: __expectString(output.environmentId),
658
656
  environmentUrl: __expectString(output.environmentUrl),
659
657
  federationMode: __expectString(output.federationMode),
660
- federationParameters: output.federationParameters != null
661
- ? deserializeAws_restJson1FederationParameters(output.federationParameters, context)
662
- : undefined,
658
+ federationParameters: output.federationParameters != null ? de_FederationParameters(output.federationParameters, context) : undefined,
663
659
  kmsKeyId: __expectString(output.kmsKeyId),
664
660
  name: __expectString(output.name),
665
661
  sageMakerStudioDomainUrl: __expectString(output.sageMakerStudioDomainUrl),
666
662
  status: __expectString(output.status),
667
663
  };
668
664
  };
669
- const deserializeAws_restJson1EnvironmentList = (output, context) => {
665
+ const de_EnvironmentList = (output, context) => {
670
666
  const retVal = (output || [])
671
667
  .filter((e) => e != null)
672
668
  .map((entry) => {
673
669
  if (entry === null) {
674
670
  return null;
675
671
  }
676
- return deserializeAws_restJson1Environment(entry, context);
672
+ return de_Environment(entry, context);
677
673
  });
678
674
  return retVal;
679
675
  };
680
- const deserializeAws_restJson1FederationParameters = (output, context) => {
676
+ const de_FederationParameters = (output, context) => {
681
677
  return {
682
678
  applicationCallBackURL: __expectString(output.applicationCallBackURL),
683
- attributeMap: output.attributeMap != null ? deserializeAws_restJson1AttributeMap(output.attributeMap, context) : undefined,
679
+ attributeMap: output.attributeMap != null ? de_AttributeMap(output.attributeMap, context) : undefined,
684
680
  federationProviderName: __expectString(output.federationProviderName),
685
681
  federationURN: __expectString(output.federationURN),
686
682
  samlMetadataDocument: __expectString(output.samlMetadataDocument),
687
683
  samlMetadataURL: __expectString(output.samlMetadataURL),
688
684
  };
689
685
  };
690
- const deserializeAws_restJson1TagMap = (output, context) => {
686
+ const de_TagMap = (output, context) => {
691
687
  return Object.entries(output).reduce((acc, [key, value]) => {
692
688
  if (value === null) {
693
689
  return acc;