@aws-sdk/client-dlm 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,8 +1,8 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { DLMServiceException as __BaseException } from "../models/DLMServiceException";
4
4
  import { InternalServerException, InvalidRequestException, LimitExceededException, ResourceNotFoundException, } from "../models/models_0";
5
- export const serializeAws_restJson1CreateLifecyclePolicyCommand = async (input, context) => {
5
+ export const se_CreateLifecyclePolicyCommand = 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",
@@ -12,11 +12,9 @@ export const serializeAws_restJson1CreateLifecyclePolicyCommand = async (input,
12
12
  body = JSON.stringify({
13
13
  ...(input.Description != null && { Description: input.Description }),
14
14
  ...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
15
- ...(input.PolicyDetails != null && {
16
- PolicyDetails: serializeAws_restJson1PolicyDetails(input.PolicyDetails, context),
17
- }),
15
+ ...(input.PolicyDetails != null && { PolicyDetails: se_PolicyDetails(input.PolicyDetails, context) }),
18
16
  ...(input.State != null && { State: input.State }),
19
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
17
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
20
18
  });
21
19
  return new __HttpRequest({
22
20
  protocol,
@@ -28,7 +26,7 @@ export const serializeAws_restJson1CreateLifecyclePolicyCommand = async (input,
28
26
  body,
29
27
  });
30
28
  };
31
- export const serializeAws_restJson1DeleteLifecyclePolicyCommand = async (input, context) => {
29
+ export const se_DeleteLifecyclePolicyCommand = async (input, context) => {
32
30
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
33
31
  const headers = {};
34
32
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{PolicyId}";
@@ -44,7 +42,7 @@ export const serializeAws_restJson1DeleteLifecyclePolicyCommand = async (input,
44
42
  body,
45
43
  });
46
44
  };
47
- export const serializeAws_restJson1GetLifecyclePoliciesCommand = async (input, context) => {
45
+ export const se_GetLifecyclePoliciesCommand = async (input, context) => {
48
46
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
49
47
  const headers = {};
50
48
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies";
@@ -70,7 +68,7 @@ export const serializeAws_restJson1GetLifecyclePoliciesCommand = async (input, c
70
68
  body,
71
69
  });
72
70
  };
73
- export const serializeAws_restJson1GetLifecyclePolicyCommand = async (input, context) => {
71
+ export const se_GetLifecyclePolicyCommand = async (input, context) => {
74
72
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
73
  const headers = {};
76
74
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{PolicyId}";
@@ -86,7 +84,7 @@ export const serializeAws_restJson1GetLifecyclePolicyCommand = async (input, con
86
84
  body,
87
85
  });
88
86
  };
89
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
87
+ export const se_ListTagsForResourceCommand = async (input, context) => {
90
88
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
91
89
  const headers = {};
92
90
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -102,7 +100,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
102
100
  body,
103
101
  });
104
102
  };
105
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
103
+ export const se_TagResourceCommand = async (input, context) => {
106
104
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
107
105
  const headers = {
108
106
  "content-type": "application/json",
@@ -111,7 +109,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
111
109
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
112
110
  let body;
113
111
  body = JSON.stringify({
114
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
112
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
115
113
  });
116
114
  return new __HttpRequest({
117
115
  protocol,
@@ -123,7 +121,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
123
121
  body,
124
122
  });
125
123
  };
126
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
124
+ export const se_UntagResourceCommand = async (input, context) => {
127
125
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
128
126
  const headers = {};
129
127
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -146,7 +144,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
146
144
  body,
147
145
  });
148
146
  };
149
- export const serializeAws_restJson1UpdateLifecyclePolicyCommand = async (input, context) => {
147
+ export const se_UpdateLifecyclePolicyCommand = async (input, context) => {
150
148
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
151
149
  const headers = {
152
150
  "content-type": "application/json",
@@ -157,9 +155,7 @@ export const serializeAws_restJson1UpdateLifecyclePolicyCommand = async (input,
157
155
  body = JSON.stringify({
158
156
  ...(input.Description != null && { Description: input.Description }),
159
157
  ...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
160
- ...(input.PolicyDetails != null && {
161
- PolicyDetails: serializeAws_restJson1PolicyDetails(input.PolicyDetails, context),
162
- }),
158
+ ...(input.PolicyDetails != null && { PolicyDetails: se_PolicyDetails(input.PolicyDetails, context) }),
163
159
  ...(input.State != null && { State: input.State }),
164
160
  });
165
161
  return new __HttpRequest({
@@ -172,9 +168,9 @@ export const serializeAws_restJson1UpdateLifecyclePolicyCommand = async (input,
172
168
  body,
173
169
  });
174
170
  };
175
- export const deserializeAws_restJson1CreateLifecyclePolicyCommand = async (output, context) => {
171
+ export const de_CreateLifecyclePolicyCommand = async (output, context) => {
176
172
  if (output.statusCode !== 200 && output.statusCode >= 300) {
177
- return deserializeAws_restJson1CreateLifecyclePolicyCommandError(output, context);
173
+ return de_CreateLifecyclePolicyCommandError(output, context);
178
174
  }
179
175
  const contents = map({
180
176
  $metadata: deserializeMetadata(output),
@@ -185,7 +181,7 @@ export const deserializeAws_restJson1CreateLifecyclePolicyCommand = async (outpu
185
181
  }
186
182
  return contents;
187
183
  };
188
- const deserializeAws_restJson1CreateLifecyclePolicyCommandError = async (output, context) => {
184
+ const de_CreateLifecyclePolicyCommandError = async (output, context) => {
189
185
  const parsedOutput = {
190
186
  ...output,
191
187
  body: await parseErrorBody(output.body, context),
@@ -194,13 +190,13 @@ const deserializeAws_restJson1CreateLifecyclePolicyCommandError = async (output,
194
190
  switch (errorCode) {
195
191
  case "InternalServerException":
196
192
  case "com.amazonaws.dlm#InternalServerException":
197
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
193
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
198
194
  case "InvalidRequestException":
199
195
  case "com.amazonaws.dlm#InvalidRequestException":
200
- throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
196
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
201
197
  case "LimitExceededException":
202
198
  case "com.amazonaws.dlm#LimitExceededException":
203
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
199
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
204
200
  default:
205
201
  const parsedBody = parsedOutput.body;
206
202
  throwDefaultError({
@@ -211,9 +207,9 @@ const deserializeAws_restJson1CreateLifecyclePolicyCommandError = async (output,
211
207
  });
212
208
  }
213
209
  };
214
- export const deserializeAws_restJson1DeleteLifecyclePolicyCommand = async (output, context) => {
210
+ export const de_DeleteLifecyclePolicyCommand = async (output, context) => {
215
211
  if (output.statusCode !== 200 && output.statusCode >= 300) {
216
- return deserializeAws_restJson1DeleteLifecyclePolicyCommandError(output, context);
212
+ return de_DeleteLifecyclePolicyCommandError(output, context);
217
213
  }
218
214
  const contents = map({
219
215
  $metadata: deserializeMetadata(output),
@@ -221,7 +217,7 @@ export const deserializeAws_restJson1DeleteLifecyclePolicyCommand = async (outpu
221
217
  await collectBody(output.body, context);
222
218
  return contents;
223
219
  };
224
- const deserializeAws_restJson1DeleteLifecyclePolicyCommandError = async (output, context) => {
220
+ const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
225
221
  const parsedOutput = {
226
222
  ...output,
227
223
  body: await parseErrorBody(output.body, context),
@@ -230,13 +226,13 @@ const deserializeAws_restJson1DeleteLifecyclePolicyCommandError = async (output,
230
226
  switch (errorCode) {
231
227
  case "InternalServerException":
232
228
  case "com.amazonaws.dlm#InternalServerException":
233
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
229
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
234
230
  case "LimitExceededException":
235
231
  case "com.amazonaws.dlm#LimitExceededException":
236
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
232
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
237
233
  case "ResourceNotFoundException":
238
234
  case "com.amazonaws.dlm#ResourceNotFoundException":
239
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
235
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
240
236
  default:
241
237
  const parsedBody = parsedOutput.body;
242
238
  throwDefaultError({
@@ -247,20 +243,20 @@ const deserializeAws_restJson1DeleteLifecyclePolicyCommandError = async (output,
247
243
  });
248
244
  }
249
245
  };
250
- export const deserializeAws_restJson1GetLifecyclePoliciesCommand = async (output, context) => {
246
+ export const de_GetLifecyclePoliciesCommand = async (output, context) => {
251
247
  if (output.statusCode !== 200 && output.statusCode >= 300) {
252
- return deserializeAws_restJson1GetLifecyclePoliciesCommandError(output, context);
248
+ return de_GetLifecyclePoliciesCommandError(output, context);
253
249
  }
254
250
  const contents = map({
255
251
  $metadata: deserializeMetadata(output),
256
252
  });
257
253
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
258
254
  if (data.Policies != null) {
259
- contents.Policies = deserializeAws_restJson1LifecyclePolicySummaryList(data.Policies, context);
255
+ contents.Policies = de_LifecyclePolicySummaryList(data.Policies, context);
260
256
  }
261
257
  return contents;
262
258
  };
263
- const deserializeAws_restJson1GetLifecyclePoliciesCommandError = async (output, context) => {
259
+ const de_GetLifecyclePoliciesCommandError = async (output, context) => {
264
260
  const parsedOutput = {
265
261
  ...output,
266
262
  body: await parseErrorBody(output.body, context),
@@ -269,16 +265,16 @@ const deserializeAws_restJson1GetLifecyclePoliciesCommandError = async (output,
269
265
  switch (errorCode) {
270
266
  case "InternalServerException":
271
267
  case "com.amazonaws.dlm#InternalServerException":
272
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
268
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
273
269
  case "InvalidRequestException":
274
270
  case "com.amazonaws.dlm#InvalidRequestException":
275
- throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
271
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
276
272
  case "LimitExceededException":
277
273
  case "com.amazonaws.dlm#LimitExceededException":
278
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
274
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
279
275
  case "ResourceNotFoundException":
280
276
  case "com.amazonaws.dlm#ResourceNotFoundException":
281
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
277
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
282
278
  default:
283
279
  const parsedBody = parsedOutput.body;
284
280
  throwDefaultError({
@@ -289,20 +285,20 @@ const deserializeAws_restJson1GetLifecyclePoliciesCommandError = async (output,
289
285
  });
290
286
  }
291
287
  };
292
- export const deserializeAws_restJson1GetLifecyclePolicyCommand = async (output, context) => {
288
+ export const de_GetLifecyclePolicyCommand = async (output, context) => {
293
289
  if (output.statusCode !== 200 && output.statusCode >= 300) {
294
- return deserializeAws_restJson1GetLifecyclePolicyCommandError(output, context);
290
+ return de_GetLifecyclePolicyCommandError(output, context);
295
291
  }
296
292
  const contents = map({
297
293
  $metadata: deserializeMetadata(output),
298
294
  });
299
295
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
300
296
  if (data.Policy != null) {
301
- contents.Policy = deserializeAws_restJson1LifecyclePolicy(data.Policy, context);
297
+ contents.Policy = de_LifecyclePolicy(data.Policy, context);
302
298
  }
303
299
  return contents;
304
300
  };
305
- const deserializeAws_restJson1GetLifecyclePolicyCommandError = async (output, context) => {
301
+ const de_GetLifecyclePolicyCommandError = async (output, context) => {
306
302
  const parsedOutput = {
307
303
  ...output,
308
304
  body: await parseErrorBody(output.body, context),
@@ -311,13 +307,13 @@ const deserializeAws_restJson1GetLifecyclePolicyCommandError = async (output, co
311
307
  switch (errorCode) {
312
308
  case "InternalServerException":
313
309
  case "com.amazonaws.dlm#InternalServerException":
314
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
310
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
315
311
  case "LimitExceededException":
316
312
  case "com.amazonaws.dlm#LimitExceededException":
317
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
313
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
318
314
  case "ResourceNotFoundException":
319
315
  case "com.amazonaws.dlm#ResourceNotFoundException":
320
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
316
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
321
317
  default:
322
318
  const parsedBody = parsedOutput.body;
323
319
  throwDefaultError({
@@ -328,20 +324,20 @@ const deserializeAws_restJson1GetLifecyclePolicyCommandError = async (output, co
328
324
  });
329
325
  }
330
326
  };
331
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
327
+ export const de_ListTagsForResourceCommand = async (output, context) => {
332
328
  if (output.statusCode !== 200 && output.statusCode >= 300) {
333
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
329
+ return de_ListTagsForResourceCommandError(output, context);
334
330
  }
335
331
  const contents = map({
336
332
  $metadata: deserializeMetadata(output),
337
333
  });
338
334
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
339
335
  if (data.Tags != null) {
340
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
336
+ contents.Tags = de_TagMap(data.Tags, context);
341
337
  }
342
338
  return contents;
343
339
  };
344
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
340
+ const de_ListTagsForResourceCommandError = async (output, context) => {
345
341
  const parsedOutput = {
346
342
  ...output,
347
343
  body: await parseErrorBody(output.body, context),
@@ -350,13 +346,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
350
346
  switch (errorCode) {
351
347
  case "InternalServerException":
352
348
  case "com.amazonaws.dlm#InternalServerException":
353
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
349
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
354
350
  case "InvalidRequestException":
355
351
  case "com.amazonaws.dlm#InvalidRequestException":
356
- throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
352
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
357
353
  case "ResourceNotFoundException":
358
354
  case "com.amazonaws.dlm#ResourceNotFoundException":
359
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
355
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
360
356
  default:
361
357
  const parsedBody = parsedOutput.body;
362
358
  throwDefaultError({
@@ -367,9 +363,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
367
363
  });
368
364
  }
369
365
  };
370
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
366
+ export const de_TagResourceCommand = async (output, context) => {
371
367
  if (output.statusCode !== 200 && output.statusCode >= 300) {
372
- return deserializeAws_restJson1TagResourceCommandError(output, context);
368
+ return de_TagResourceCommandError(output, context);
373
369
  }
374
370
  const contents = map({
375
371
  $metadata: deserializeMetadata(output),
@@ -377,7 +373,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
377
373
  await collectBody(output.body, context);
378
374
  return contents;
379
375
  };
380
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
376
+ const de_TagResourceCommandError = async (output, context) => {
381
377
  const parsedOutput = {
382
378
  ...output,
383
379
  body: await parseErrorBody(output.body, context),
@@ -386,13 +382,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
386
382
  switch (errorCode) {
387
383
  case "InternalServerException":
388
384
  case "com.amazonaws.dlm#InternalServerException":
389
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
385
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
390
386
  case "InvalidRequestException":
391
387
  case "com.amazonaws.dlm#InvalidRequestException":
392
- throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
388
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
393
389
  case "ResourceNotFoundException":
394
390
  case "com.amazonaws.dlm#ResourceNotFoundException":
395
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
391
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
396
392
  default:
397
393
  const parsedBody = parsedOutput.body;
398
394
  throwDefaultError({
@@ -403,9 +399,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
403
399
  });
404
400
  }
405
401
  };
406
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
402
+ export const de_UntagResourceCommand = async (output, context) => {
407
403
  if (output.statusCode !== 200 && output.statusCode >= 300) {
408
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
404
+ return de_UntagResourceCommandError(output, context);
409
405
  }
410
406
  const contents = map({
411
407
  $metadata: deserializeMetadata(output),
@@ -413,7 +409,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
413
409
  await collectBody(output.body, context);
414
410
  return contents;
415
411
  };
416
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
412
+ const de_UntagResourceCommandError = async (output, context) => {
417
413
  const parsedOutput = {
418
414
  ...output,
419
415
  body: await parseErrorBody(output.body, context),
@@ -422,13 +418,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
422
418
  switch (errorCode) {
423
419
  case "InternalServerException":
424
420
  case "com.amazonaws.dlm#InternalServerException":
425
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
421
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
426
422
  case "InvalidRequestException":
427
423
  case "com.amazonaws.dlm#InvalidRequestException":
428
- throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
424
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
429
425
  case "ResourceNotFoundException":
430
426
  case "com.amazonaws.dlm#ResourceNotFoundException":
431
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
427
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
432
428
  default:
433
429
  const parsedBody = parsedOutput.body;
434
430
  throwDefaultError({
@@ -439,9 +435,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
439
435
  });
440
436
  }
441
437
  };
442
- export const deserializeAws_restJson1UpdateLifecyclePolicyCommand = async (output, context) => {
438
+ export const de_UpdateLifecyclePolicyCommand = async (output, context) => {
443
439
  if (output.statusCode !== 200 && output.statusCode >= 300) {
444
- return deserializeAws_restJson1UpdateLifecyclePolicyCommandError(output, context);
440
+ return de_UpdateLifecyclePolicyCommandError(output, context);
445
441
  }
446
442
  const contents = map({
447
443
  $metadata: deserializeMetadata(output),
@@ -449,7 +445,7 @@ export const deserializeAws_restJson1UpdateLifecyclePolicyCommand = async (outpu
449
445
  await collectBody(output.body, context);
450
446
  return contents;
451
447
  };
452
- const deserializeAws_restJson1UpdateLifecyclePolicyCommandError = async (output, context) => {
448
+ const de_UpdateLifecyclePolicyCommandError = async (output, context) => {
453
449
  const parsedOutput = {
454
450
  ...output,
455
451
  body: await parseErrorBody(output.body, context),
@@ -458,16 +454,16 @@ const deserializeAws_restJson1UpdateLifecyclePolicyCommandError = async (output,
458
454
  switch (errorCode) {
459
455
  case "InternalServerException":
460
456
  case "com.amazonaws.dlm#InternalServerException":
461
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
457
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
462
458
  case "InvalidRequestException":
463
459
  case "com.amazonaws.dlm#InvalidRequestException":
464
- throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
460
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
465
461
  case "LimitExceededException":
466
462
  case "com.amazonaws.dlm#LimitExceededException":
467
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
463
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
468
464
  case "ResourceNotFoundException":
469
465
  case "com.amazonaws.dlm#ResourceNotFoundException":
470
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
466
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
471
467
  default:
472
468
  const parsedBody = parsedOutput.body;
473
469
  throwDefaultError({
@@ -479,7 +475,7 @@ const deserializeAws_restJson1UpdateLifecyclePolicyCommandError = async (output,
479
475
  }
480
476
  };
481
477
  const map = __map;
482
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
478
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
483
479
  const contents = map({});
484
480
  const data = parsedOutput.body;
485
481
  if (data.Code != null) {
@@ -494,7 +490,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
494
490
  });
495
491
  return __decorateServiceException(exception, parsedOutput.body);
496
492
  };
497
- const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
493
+ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
498
494
  const contents = map({});
499
495
  const data = parsedOutput.body;
500
496
  if (data.Code != null) {
@@ -504,10 +500,10 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
504
500
  contents.Message = __expectString(data.Message);
505
501
  }
506
502
  if (data.MutuallyExclusiveParameters != null) {
507
- contents.MutuallyExclusiveParameters = deserializeAws_restJson1ParameterList(data.MutuallyExclusiveParameters, context);
503
+ contents.MutuallyExclusiveParameters = de_ParameterList(data.MutuallyExclusiveParameters, context);
508
504
  }
509
505
  if (data.RequiredParameters != null) {
510
- contents.RequiredParameters = deserializeAws_restJson1ParameterList(data.RequiredParameters, context);
506
+ contents.RequiredParameters = de_ParameterList(data.RequiredParameters, context);
511
507
  }
512
508
  const exception = new InvalidRequestException({
513
509
  $metadata: deserializeMetadata(parsedOutput),
@@ -515,7 +511,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
515
511
  });
516
512
  return __decorateServiceException(exception, parsedOutput.body);
517
513
  };
518
- const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
514
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
519
515
  const contents = map({});
520
516
  const data = parsedOutput.body;
521
517
  if (data.Code != null) {
@@ -533,7 +529,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
533
529
  });
534
530
  return __decorateServiceException(exception, parsedOutput.body);
535
531
  };
536
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
532
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
537
533
  const contents = map({});
538
534
  const data = parsedOutput.body;
539
535
  if (data.Code != null) {
@@ -543,7 +539,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
543
539
  contents.Message = __expectString(data.Message);
544
540
  }
545
541
  if (data.ResourceIds != null) {
546
- contents.ResourceIds = deserializeAws_restJson1PolicyIdList(data.ResourceIds, context);
542
+ contents.ResourceIds = de_PolicyIdList(data.ResourceIds, context);
547
543
  }
548
544
  if (data.ResourceType != null) {
549
545
  contents.ResourceType = __expectString(data.ResourceType);
@@ -554,266 +550,250 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
554
550
  });
555
551
  return __decorateServiceException(exception, parsedOutput.body);
556
552
  };
557
- const serializeAws_restJson1Action = (input, context) => {
553
+ const se_Action = (input, context) => {
558
554
  return {
559
555
  ...(input.CrossRegionCopy != null && {
560
- CrossRegionCopy: serializeAws_restJson1CrossRegionCopyActionList(input.CrossRegionCopy, context),
556
+ CrossRegionCopy: se_CrossRegionCopyActionList(input.CrossRegionCopy, context),
561
557
  }),
562
558
  ...(input.Name != null && { Name: input.Name }),
563
559
  };
564
560
  };
565
- const serializeAws_restJson1ActionList = (input, context) => {
561
+ const se_ActionList = (input, context) => {
566
562
  return input
567
563
  .filter((e) => e != null)
568
564
  .map((entry) => {
569
- return serializeAws_restJson1Action(entry, context);
565
+ return se_Action(entry, context);
570
566
  });
571
567
  };
572
- const serializeAws_restJson1ArchiveRetainRule = (input, context) => {
568
+ const se_ArchiveRetainRule = (input, context) => {
573
569
  return {
574
570
  ...(input.RetentionArchiveTier != null && {
575
- RetentionArchiveTier: serializeAws_restJson1RetentionArchiveTier(input.RetentionArchiveTier, context),
571
+ RetentionArchiveTier: se_RetentionArchiveTier(input.RetentionArchiveTier, context),
576
572
  }),
577
573
  };
578
574
  };
579
- const serializeAws_restJson1ArchiveRule = (input, context) => {
575
+ const se_ArchiveRule = (input, context) => {
580
576
  return {
581
- ...(input.RetainRule != null && { RetainRule: serializeAws_restJson1ArchiveRetainRule(input.RetainRule, context) }),
577
+ ...(input.RetainRule != null && { RetainRule: se_ArchiveRetainRule(input.RetainRule, context) }),
582
578
  };
583
579
  };
584
- const serializeAws_restJson1AvailabilityZoneList = (input, context) => {
580
+ const se_AvailabilityZoneList = (input, context) => {
585
581
  return input
586
582
  .filter((e) => e != null)
587
583
  .map((entry) => {
588
584
  return entry;
589
585
  });
590
586
  };
591
- const serializeAws_restJson1CreateRule = (input, context) => {
587
+ const se_CreateRule = (input, context) => {
592
588
  return {
593
589
  ...(input.CronExpression != null && { CronExpression: input.CronExpression }),
594
590
  ...(input.Interval != null && { Interval: input.Interval }),
595
591
  ...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
596
592
  ...(input.Location != null && { Location: input.Location }),
597
- ...(input.Times != null && { Times: serializeAws_restJson1TimesList(input.Times, context) }),
593
+ ...(input.Times != null && { Times: se_TimesList(input.Times, context) }),
598
594
  };
599
595
  };
600
- const serializeAws_restJson1CrossRegionCopyAction = (input, context) => {
596
+ const se_CrossRegionCopyAction = (input, context) => {
601
597
  return {
602
598
  ...(input.EncryptionConfiguration != null && {
603
- EncryptionConfiguration: serializeAws_restJson1EncryptionConfiguration(input.EncryptionConfiguration, context),
604
- }),
605
- ...(input.RetainRule != null && {
606
- RetainRule: serializeAws_restJson1CrossRegionCopyRetainRule(input.RetainRule, context),
599
+ EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
607
600
  }),
601
+ ...(input.RetainRule != null && { RetainRule: se_CrossRegionCopyRetainRule(input.RetainRule, context) }),
608
602
  ...(input.Target != null && { Target: input.Target }),
609
603
  };
610
604
  };
611
- const serializeAws_restJson1CrossRegionCopyActionList = (input, context) => {
605
+ const se_CrossRegionCopyActionList = (input, context) => {
612
606
  return input
613
607
  .filter((e) => e != null)
614
608
  .map((entry) => {
615
- return serializeAws_restJson1CrossRegionCopyAction(entry, context);
609
+ return se_CrossRegionCopyAction(entry, context);
616
610
  });
617
611
  };
618
- const serializeAws_restJson1CrossRegionCopyDeprecateRule = (input, context) => {
612
+ const se_CrossRegionCopyDeprecateRule = (input, context) => {
619
613
  return {
620
614
  ...(input.Interval != null && { Interval: input.Interval }),
621
615
  ...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
622
616
  };
623
617
  };
624
- const serializeAws_restJson1CrossRegionCopyRetainRule = (input, context) => {
618
+ const se_CrossRegionCopyRetainRule = (input, context) => {
625
619
  return {
626
620
  ...(input.Interval != null && { Interval: input.Interval }),
627
621
  ...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
628
622
  };
629
623
  };
630
- const serializeAws_restJson1CrossRegionCopyRule = (input, context) => {
624
+ const se_CrossRegionCopyRule = (input, context) => {
631
625
  return {
632
626
  ...(input.CmkArn != null && { CmkArn: input.CmkArn }),
633
627
  ...(input.CopyTags != null && { CopyTags: input.CopyTags }),
634
628
  ...(input.DeprecateRule != null && {
635
- DeprecateRule: serializeAws_restJson1CrossRegionCopyDeprecateRule(input.DeprecateRule, context),
629
+ DeprecateRule: se_CrossRegionCopyDeprecateRule(input.DeprecateRule, context),
636
630
  }),
637
631
  ...(input.Encrypted != null && { Encrypted: input.Encrypted }),
638
- ...(input.RetainRule != null && {
639
- RetainRule: serializeAws_restJson1CrossRegionCopyRetainRule(input.RetainRule, context),
640
- }),
632
+ ...(input.RetainRule != null && { RetainRule: se_CrossRegionCopyRetainRule(input.RetainRule, context) }),
641
633
  ...(input.Target != null && { Target: input.Target }),
642
634
  ...(input.TargetRegion != null && { TargetRegion: input.TargetRegion }),
643
635
  };
644
636
  };
645
- const serializeAws_restJson1CrossRegionCopyRules = (input, context) => {
637
+ const se_CrossRegionCopyRules = (input, context) => {
646
638
  return input
647
639
  .filter((e) => e != null)
648
640
  .map((entry) => {
649
- return serializeAws_restJson1CrossRegionCopyRule(entry, context);
641
+ return se_CrossRegionCopyRule(entry, context);
650
642
  });
651
643
  };
652
- const serializeAws_restJson1DeprecateRule = (input, context) => {
644
+ const se_DeprecateRule = (input, context) => {
653
645
  return {
654
646
  ...(input.Count != null && { Count: input.Count }),
655
647
  ...(input.Interval != null && { Interval: input.Interval }),
656
648
  ...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
657
649
  };
658
650
  };
659
- const serializeAws_restJson1EncryptionConfiguration = (input, context) => {
651
+ const se_EncryptionConfiguration = (input, context) => {
660
652
  return {
661
653
  ...(input.CmkArn != null && { CmkArn: input.CmkArn }),
662
654
  ...(input.Encrypted != null && { Encrypted: input.Encrypted }),
663
655
  };
664
656
  };
665
- const serializeAws_restJson1EventParameters = (input, context) => {
657
+ const se_EventParameters = (input, context) => {
666
658
  return {
667
659
  ...(input.DescriptionRegex != null && { DescriptionRegex: input.DescriptionRegex }),
668
660
  ...(input.EventType != null && { EventType: input.EventType }),
669
- ...(input.SnapshotOwner != null && {
670
- SnapshotOwner: serializeAws_restJson1SnapshotOwnerList(input.SnapshotOwner, context),
671
- }),
661
+ ...(input.SnapshotOwner != null && { SnapshotOwner: se_SnapshotOwnerList(input.SnapshotOwner, context) }),
672
662
  };
673
663
  };
674
- const serializeAws_restJson1EventSource = (input, context) => {
664
+ const se_EventSource = (input, context) => {
675
665
  return {
676
- ...(input.Parameters != null && { Parameters: serializeAws_restJson1EventParameters(input.Parameters, context) }),
666
+ ...(input.Parameters != null && { Parameters: se_EventParameters(input.Parameters, context) }),
677
667
  ...(input.Type != null && { Type: input.Type }),
678
668
  };
679
669
  };
680
- const serializeAws_restJson1ExcludeDataVolumeTagList = (input, context) => {
670
+ const se_ExcludeDataVolumeTagList = (input, context) => {
681
671
  return input
682
672
  .filter((e) => e != null)
683
673
  .map((entry) => {
684
- return serializeAws_restJson1Tag(entry, context);
674
+ return se_Tag(entry, context);
685
675
  });
686
676
  };
687
- const serializeAws_restJson1FastRestoreRule = (input, context) => {
677
+ const se_FastRestoreRule = (input, context) => {
688
678
  return {
689
679
  ...(input.AvailabilityZones != null && {
690
- AvailabilityZones: serializeAws_restJson1AvailabilityZoneList(input.AvailabilityZones, context),
680
+ AvailabilityZones: se_AvailabilityZoneList(input.AvailabilityZones, context),
691
681
  }),
692
682
  ...(input.Count != null && { Count: input.Count }),
693
683
  ...(input.Interval != null && { Interval: input.Interval }),
694
684
  ...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
695
685
  };
696
686
  };
697
- const serializeAws_restJson1_Parameters = (input, context) => {
687
+ const se__Parameters = (input, context) => {
698
688
  return {
699
689
  ...(input.ExcludeBootVolume != null && { ExcludeBootVolume: input.ExcludeBootVolume }),
700
690
  ...(input.ExcludeDataVolumeTags != null && {
701
- ExcludeDataVolumeTags: serializeAws_restJson1ExcludeDataVolumeTagList(input.ExcludeDataVolumeTags, context),
691
+ ExcludeDataVolumeTags: se_ExcludeDataVolumeTagList(input.ExcludeDataVolumeTags, context),
702
692
  }),
703
693
  ...(input.NoReboot != null && { NoReboot: input.NoReboot }),
704
694
  };
705
695
  };
706
- const serializeAws_restJson1PolicyDetails = (input, context) => {
696
+ const se_PolicyDetails = (input, context) => {
707
697
  return {
708
- ...(input.Actions != null && { Actions: serializeAws_restJson1ActionList(input.Actions, context) }),
709
- ...(input.EventSource != null && { EventSource: serializeAws_restJson1EventSource(input.EventSource, context) }),
710
- ...(input.Parameters != null && { Parameters: serializeAws_restJson1_Parameters(input.Parameters, context) }),
698
+ ...(input.Actions != null && { Actions: se_ActionList(input.Actions, context) }),
699
+ ...(input.EventSource != null && { EventSource: se_EventSource(input.EventSource, context) }),
700
+ ...(input.Parameters != null && { Parameters: se__Parameters(input.Parameters, context) }),
711
701
  ...(input.PolicyType != null && { PolicyType: input.PolicyType }),
712
702
  ...(input.ResourceLocations != null && {
713
- ResourceLocations: serializeAws_restJson1ResourceLocationList(input.ResourceLocations, context),
714
- }),
715
- ...(input.ResourceTypes != null && {
716
- ResourceTypes: serializeAws_restJson1ResourceTypeValuesList(input.ResourceTypes, context),
703
+ ResourceLocations: se_ResourceLocationList(input.ResourceLocations, context),
717
704
  }),
718
- ...(input.Schedules != null && { Schedules: serializeAws_restJson1ScheduleList(input.Schedules, context) }),
719
- ...(input.TargetTags != null && { TargetTags: serializeAws_restJson1TargetTagList(input.TargetTags, context) }),
705
+ ...(input.ResourceTypes != null && { ResourceTypes: se_ResourceTypeValuesList(input.ResourceTypes, context) }),
706
+ ...(input.Schedules != null && { Schedules: se_ScheduleList(input.Schedules, context) }),
707
+ ...(input.TargetTags != null && { TargetTags: se_TargetTagList(input.TargetTags, context) }),
720
708
  };
721
709
  };
722
- const serializeAws_restJson1ResourceLocationList = (input, context) => {
710
+ const se_ResourceLocationList = (input, context) => {
723
711
  return input
724
712
  .filter((e) => e != null)
725
713
  .map((entry) => {
726
714
  return entry;
727
715
  });
728
716
  };
729
- const serializeAws_restJson1ResourceTypeValuesList = (input, context) => {
717
+ const se_ResourceTypeValuesList = (input, context) => {
730
718
  return input
731
719
  .filter((e) => e != null)
732
720
  .map((entry) => {
733
721
  return entry;
734
722
  });
735
723
  };
736
- const serializeAws_restJson1RetainRule = (input, context) => {
724
+ const se_RetainRule = (input, context) => {
737
725
  return {
738
726
  ...(input.Count != null && { Count: input.Count }),
739
727
  ...(input.Interval != null && { Interval: input.Interval }),
740
728
  ...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
741
729
  };
742
730
  };
743
- const serializeAws_restJson1RetentionArchiveTier = (input, context) => {
731
+ const se_RetentionArchiveTier = (input, context) => {
744
732
  return {
745
733
  ...(input.Count != null && { Count: input.Count }),
746
734
  ...(input.Interval != null && { Interval: input.Interval }),
747
735
  ...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
748
736
  };
749
737
  };
750
- const serializeAws_restJson1Schedule = (input, context) => {
738
+ const se_Schedule = (input, context) => {
751
739
  return {
752
- ...(input.ArchiveRule != null && { ArchiveRule: serializeAws_restJson1ArchiveRule(input.ArchiveRule, context) }),
740
+ ...(input.ArchiveRule != null && { ArchiveRule: se_ArchiveRule(input.ArchiveRule, context) }),
753
741
  ...(input.CopyTags != null && { CopyTags: input.CopyTags }),
754
- ...(input.CreateRule != null && { CreateRule: serializeAws_restJson1CreateRule(input.CreateRule, context) }),
742
+ ...(input.CreateRule != null && { CreateRule: se_CreateRule(input.CreateRule, context) }),
755
743
  ...(input.CrossRegionCopyRules != null && {
756
- CrossRegionCopyRules: serializeAws_restJson1CrossRegionCopyRules(input.CrossRegionCopyRules, context),
757
- }),
758
- ...(input.DeprecateRule != null && {
759
- DeprecateRule: serializeAws_restJson1DeprecateRule(input.DeprecateRule, context),
760
- }),
761
- ...(input.FastRestoreRule != null && {
762
- FastRestoreRule: serializeAws_restJson1FastRestoreRule(input.FastRestoreRule, context),
744
+ CrossRegionCopyRules: se_CrossRegionCopyRules(input.CrossRegionCopyRules, context),
763
745
  }),
746
+ ...(input.DeprecateRule != null && { DeprecateRule: se_DeprecateRule(input.DeprecateRule, context) }),
747
+ ...(input.FastRestoreRule != null && { FastRestoreRule: se_FastRestoreRule(input.FastRestoreRule, context) }),
764
748
  ...(input.Name != null && { Name: input.Name }),
765
- ...(input.RetainRule != null && { RetainRule: serializeAws_restJson1RetainRule(input.RetainRule, context) }),
766
- ...(input.ShareRules != null && { ShareRules: serializeAws_restJson1ShareRules(input.ShareRules, context) }),
767
- ...(input.TagsToAdd != null && { TagsToAdd: serializeAws_restJson1TagsToAddList(input.TagsToAdd, context) }),
768
- ...(input.VariableTags != null && {
769
- VariableTags: serializeAws_restJson1VariableTagsList(input.VariableTags, context),
770
- }),
749
+ ...(input.RetainRule != null && { RetainRule: se_RetainRule(input.RetainRule, context) }),
750
+ ...(input.ShareRules != null && { ShareRules: se_ShareRules(input.ShareRules, context) }),
751
+ ...(input.TagsToAdd != null && { TagsToAdd: se_TagsToAddList(input.TagsToAdd, context) }),
752
+ ...(input.VariableTags != null && { VariableTags: se_VariableTagsList(input.VariableTags, context) }),
771
753
  };
772
754
  };
773
- const serializeAws_restJson1ScheduleList = (input, context) => {
755
+ const se_ScheduleList = (input, context) => {
774
756
  return input
775
757
  .filter((e) => e != null)
776
758
  .map((entry) => {
777
- return serializeAws_restJson1Schedule(entry, context);
759
+ return se_Schedule(entry, context);
778
760
  });
779
761
  };
780
- const serializeAws_restJson1ShareRule = (input, context) => {
762
+ const se_ShareRule = (input, context) => {
781
763
  return {
782
- ...(input.TargetAccounts != null && {
783
- TargetAccounts: serializeAws_restJson1ShareTargetAccountList(input.TargetAccounts, context),
784
- }),
764
+ ...(input.TargetAccounts != null && { TargetAccounts: se_ShareTargetAccountList(input.TargetAccounts, context) }),
785
765
  ...(input.UnshareInterval != null && { UnshareInterval: input.UnshareInterval }),
786
766
  ...(input.UnshareIntervalUnit != null && { UnshareIntervalUnit: input.UnshareIntervalUnit }),
787
767
  };
788
768
  };
789
- const serializeAws_restJson1ShareRules = (input, context) => {
769
+ const se_ShareRules = (input, context) => {
790
770
  return input
791
771
  .filter((e) => e != null)
792
772
  .map((entry) => {
793
- return serializeAws_restJson1ShareRule(entry, context);
773
+ return se_ShareRule(entry, context);
794
774
  });
795
775
  };
796
- const serializeAws_restJson1ShareTargetAccountList = (input, context) => {
776
+ const se_ShareTargetAccountList = (input, context) => {
797
777
  return input
798
778
  .filter((e) => e != null)
799
779
  .map((entry) => {
800
780
  return entry;
801
781
  });
802
782
  };
803
- const serializeAws_restJson1SnapshotOwnerList = (input, context) => {
783
+ const se_SnapshotOwnerList = (input, context) => {
804
784
  return input
805
785
  .filter((e) => e != null)
806
786
  .map((entry) => {
807
787
  return entry;
808
788
  });
809
789
  };
810
- const serializeAws_restJson1Tag = (input, context) => {
790
+ const se_Tag = (input, context) => {
811
791
  return {
812
792
  ...(input.Key != null && { Key: input.Key }),
813
793
  ...(input.Value != null && { Value: input.Value }),
814
794
  };
815
795
  };
816
- const serializeAws_restJson1TagMap = (input, context) => {
796
+ const se_TagMap = (input, context) => {
817
797
  return Object.entries(input).reduce((acc, [key, value]) => {
818
798
  if (value === null) {
819
799
  return acc;
@@ -822,66 +802,62 @@ const serializeAws_restJson1TagMap = (input, context) => {
822
802
  return acc;
823
803
  }, {});
824
804
  };
825
- const serializeAws_restJson1TagsToAddList = (input, context) => {
805
+ const se_TagsToAddList = (input, context) => {
826
806
  return input
827
807
  .filter((e) => e != null)
828
808
  .map((entry) => {
829
- return serializeAws_restJson1Tag(entry, context);
809
+ return se_Tag(entry, context);
830
810
  });
831
811
  };
832
- const serializeAws_restJson1TargetTagList = (input, context) => {
812
+ const se_TargetTagList = (input, context) => {
833
813
  return input
834
814
  .filter((e) => e != null)
835
815
  .map((entry) => {
836
- return serializeAws_restJson1Tag(entry, context);
816
+ return se_Tag(entry, context);
837
817
  });
838
818
  };
839
- const serializeAws_restJson1TimesList = (input, context) => {
819
+ const se_TimesList = (input, context) => {
840
820
  return input
841
821
  .filter((e) => e != null)
842
822
  .map((entry) => {
843
823
  return entry;
844
824
  });
845
825
  };
846
- const serializeAws_restJson1VariableTagsList = (input, context) => {
826
+ const se_VariableTagsList = (input, context) => {
847
827
  return input
848
828
  .filter((e) => e != null)
849
829
  .map((entry) => {
850
- return serializeAws_restJson1Tag(entry, context);
830
+ return se_Tag(entry, context);
851
831
  });
852
832
  };
853
- const deserializeAws_restJson1Action = (output, context) => {
833
+ const de_Action = (output, context) => {
854
834
  return {
855
- CrossRegionCopy: output.CrossRegionCopy != null
856
- ? deserializeAws_restJson1CrossRegionCopyActionList(output.CrossRegionCopy, context)
857
- : undefined,
835
+ CrossRegionCopy: output.CrossRegionCopy != null ? de_CrossRegionCopyActionList(output.CrossRegionCopy, context) : undefined,
858
836
  Name: __expectString(output.Name),
859
837
  };
860
838
  };
861
- const deserializeAws_restJson1ActionList = (output, context) => {
839
+ const de_ActionList = (output, context) => {
862
840
  const retVal = (output || [])
863
841
  .filter((e) => e != null)
864
842
  .map((entry) => {
865
843
  if (entry === null) {
866
844
  return null;
867
845
  }
868
- return deserializeAws_restJson1Action(entry, context);
846
+ return de_Action(entry, context);
869
847
  });
870
848
  return retVal;
871
849
  };
872
- const deserializeAws_restJson1ArchiveRetainRule = (output, context) => {
850
+ const de_ArchiveRetainRule = (output, context) => {
873
851
  return {
874
- RetentionArchiveTier: output.RetentionArchiveTier != null
875
- ? deserializeAws_restJson1RetentionArchiveTier(output.RetentionArchiveTier, context)
876
- : undefined,
852
+ RetentionArchiveTier: output.RetentionArchiveTier != null ? de_RetentionArchiveTier(output.RetentionArchiveTier, context) : undefined,
877
853
  };
878
854
  };
879
- const deserializeAws_restJson1ArchiveRule = (output, context) => {
855
+ const de_ArchiveRule = (output, context) => {
880
856
  return {
881
- RetainRule: output.RetainRule != null ? deserializeAws_restJson1ArchiveRetainRule(output.RetainRule, context) : undefined,
857
+ RetainRule: output.RetainRule != null ? de_ArchiveRetainRule(output.RetainRule, context) : undefined,
882
858
  };
883
859
  };
884
- const deserializeAws_restJson1AvailabilityZoneList = (output, context) => {
860
+ const de_AvailabilityZoneList = (output, context) => {
885
861
  const retVal = (output || [])
886
862
  .filter((e) => e != null)
887
863
  .map((entry) => {
@@ -892,163 +868,149 @@ const deserializeAws_restJson1AvailabilityZoneList = (output, context) => {
892
868
  });
893
869
  return retVal;
894
870
  };
895
- const deserializeAws_restJson1CreateRule = (output, context) => {
871
+ const de_CreateRule = (output, context) => {
896
872
  return {
897
873
  CronExpression: __expectString(output.CronExpression),
898
874
  Interval: __expectInt32(output.Interval),
899
875
  IntervalUnit: __expectString(output.IntervalUnit),
900
876
  Location: __expectString(output.Location),
901
- Times: output.Times != null ? deserializeAws_restJson1TimesList(output.Times, context) : undefined,
877
+ Times: output.Times != null ? de_TimesList(output.Times, context) : undefined,
902
878
  };
903
879
  };
904
- const deserializeAws_restJson1CrossRegionCopyAction = (output, context) => {
880
+ const de_CrossRegionCopyAction = (output, context) => {
905
881
  return {
906
882
  EncryptionConfiguration: output.EncryptionConfiguration != null
907
- ? deserializeAws_restJson1EncryptionConfiguration(output.EncryptionConfiguration, context)
908
- : undefined,
909
- RetainRule: output.RetainRule != null
910
- ? deserializeAws_restJson1CrossRegionCopyRetainRule(output.RetainRule, context)
883
+ ? de_EncryptionConfiguration(output.EncryptionConfiguration, context)
911
884
  : undefined,
885
+ RetainRule: output.RetainRule != null ? de_CrossRegionCopyRetainRule(output.RetainRule, context) : undefined,
912
886
  Target: __expectString(output.Target),
913
887
  };
914
888
  };
915
- const deserializeAws_restJson1CrossRegionCopyActionList = (output, context) => {
889
+ const de_CrossRegionCopyActionList = (output, context) => {
916
890
  const retVal = (output || [])
917
891
  .filter((e) => e != null)
918
892
  .map((entry) => {
919
893
  if (entry === null) {
920
894
  return null;
921
895
  }
922
- return deserializeAws_restJson1CrossRegionCopyAction(entry, context);
896
+ return de_CrossRegionCopyAction(entry, context);
923
897
  });
924
898
  return retVal;
925
899
  };
926
- const deserializeAws_restJson1CrossRegionCopyDeprecateRule = (output, context) => {
900
+ const de_CrossRegionCopyDeprecateRule = (output, context) => {
927
901
  return {
928
902
  Interval: __expectInt32(output.Interval),
929
903
  IntervalUnit: __expectString(output.IntervalUnit),
930
904
  };
931
905
  };
932
- const deserializeAws_restJson1CrossRegionCopyRetainRule = (output, context) => {
906
+ const de_CrossRegionCopyRetainRule = (output, context) => {
933
907
  return {
934
908
  Interval: __expectInt32(output.Interval),
935
909
  IntervalUnit: __expectString(output.IntervalUnit),
936
910
  };
937
911
  };
938
- const deserializeAws_restJson1CrossRegionCopyRule = (output, context) => {
912
+ const de_CrossRegionCopyRule = (output, context) => {
939
913
  return {
940
914
  CmkArn: __expectString(output.CmkArn),
941
915
  CopyTags: __expectBoolean(output.CopyTags),
942
- DeprecateRule: output.DeprecateRule != null
943
- ? deserializeAws_restJson1CrossRegionCopyDeprecateRule(output.DeprecateRule, context)
944
- : undefined,
916
+ DeprecateRule: output.DeprecateRule != null ? de_CrossRegionCopyDeprecateRule(output.DeprecateRule, context) : undefined,
945
917
  Encrypted: __expectBoolean(output.Encrypted),
946
- RetainRule: output.RetainRule != null
947
- ? deserializeAws_restJson1CrossRegionCopyRetainRule(output.RetainRule, context)
948
- : undefined,
918
+ RetainRule: output.RetainRule != null ? de_CrossRegionCopyRetainRule(output.RetainRule, context) : undefined,
949
919
  Target: __expectString(output.Target),
950
920
  TargetRegion: __expectString(output.TargetRegion),
951
921
  };
952
922
  };
953
- const deserializeAws_restJson1CrossRegionCopyRules = (output, context) => {
923
+ const de_CrossRegionCopyRules = (output, context) => {
954
924
  const retVal = (output || [])
955
925
  .filter((e) => e != null)
956
926
  .map((entry) => {
957
927
  if (entry === null) {
958
928
  return null;
959
929
  }
960
- return deserializeAws_restJson1CrossRegionCopyRule(entry, context);
930
+ return de_CrossRegionCopyRule(entry, context);
961
931
  });
962
932
  return retVal;
963
933
  };
964
- const deserializeAws_restJson1DeprecateRule = (output, context) => {
934
+ const de_DeprecateRule = (output, context) => {
965
935
  return {
966
936
  Count: __expectInt32(output.Count),
967
937
  Interval: __expectInt32(output.Interval),
968
938
  IntervalUnit: __expectString(output.IntervalUnit),
969
939
  };
970
940
  };
971
- const deserializeAws_restJson1EncryptionConfiguration = (output, context) => {
941
+ const de_EncryptionConfiguration = (output, context) => {
972
942
  return {
973
943
  CmkArn: __expectString(output.CmkArn),
974
944
  Encrypted: __expectBoolean(output.Encrypted),
975
945
  };
976
946
  };
977
- const deserializeAws_restJson1EventParameters = (output, context) => {
947
+ const de_EventParameters = (output, context) => {
978
948
  return {
979
949
  DescriptionRegex: __expectString(output.DescriptionRegex),
980
950
  EventType: __expectString(output.EventType),
981
- SnapshotOwner: output.SnapshotOwner != null
982
- ? deserializeAws_restJson1SnapshotOwnerList(output.SnapshotOwner, context)
983
- : undefined,
951
+ SnapshotOwner: output.SnapshotOwner != null ? de_SnapshotOwnerList(output.SnapshotOwner, context) : undefined,
984
952
  };
985
953
  };
986
- const deserializeAws_restJson1EventSource = (output, context) => {
954
+ const de_EventSource = (output, context) => {
987
955
  return {
988
- Parameters: output.Parameters != null ? deserializeAws_restJson1EventParameters(output.Parameters, context) : undefined,
956
+ Parameters: output.Parameters != null ? de_EventParameters(output.Parameters, context) : undefined,
989
957
  Type: __expectString(output.Type),
990
958
  };
991
959
  };
992
- const deserializeAws_restJson1ExcludeDataVolumeTagList = (output, context) => {
960
+ const de_ExcludeDataVolumeTagList = (output, context) => {
993
961
  const retVal = (output || [])
994
962
  .filter((e) => e != null)
995
963
  .map((entry) => {
996
964
  if (entry === null) {
997
965
  return null;
998
966
  }
999
- return deserializeAws_restJson1Tag(entry, context);
967
+ return de_Tag(entry, context);
1000
968
  });
1001
969
  return retVal;
1002
970
  };
1003
- const deserializeAws_restJson1FastRestoreRule = (output, context) => {
971
+ const de_FastRestoreRule = (output, context) => {
1004
972
  return {
1005
- AvailabilityZones: output.AvailabilityZones != null
1006
- ? deserializeAws_restJson1AvailabilityZoneList(output.AvailabilityZones, context)
1007
- : undefined,
973
+ AvailabilityZones: output.AvailabilityZones != null ? de_AvailabilityZoneList(output.AvailabilityZones, context) : undefined,
1008
974
  Count: __expectInt32(output.Count),
1009
975
  Interval: __expectInt32(output.Interval),
1010
976
  IntervalUnit: __expectString(output.IntervalUnit),
1011
977
  };
1012
978
  };
1013
- const deserializeAws_restJson1LifecyclePolicy = (output, context) => {
979
+ const de_LifecyclePolicy = (output, context) => {
1014
980
  return {
1015
- DateCreated: output.DateCreated != null
1016
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateCreated)))
1017
- : undefined,
1018
- DateModified: output.DateModified != null
1019
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateModified)))
1020
- : undefined,
981
+ DateCreated: output.DateCreated != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.DateCreated)) : undefined,
982
+ DateModified: output.DateModified != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.DateModified)) : undefined,
1021
983
  Description: __expectString(output.Description),
1022
984
  ExecutionRoleArn: __expectString(output.ExecutionRoleArn),
1023
985
  PolicyArn: __expectString(output.PolicyArn),
1024
- PolicyDetails: output.PolicyDetails != null ? deserializeAws_restJson1PolicyDetails(output.PolicyDetails, context) : undefined,
986
+ PolicyDetails: output.PolicyDetails != null ? de_PolicyDetails(output.PolicyDetails, context) : undefined,
1025
987
  PolicyId: __expectString(output.PolicyId),
1026
988
  State: __expectString(output.State),
1027
989
  StatusMessage: __expectString(output.StatusMessage),
1028
- Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
990
+ Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
1029
991
  };
1030
992
  };
1031
- const deserializeAws_restJson1LifecyclePolicySummary = (output, context) => {
993
+ const de_LifecyclePolicySummary = (output, context) => {
1032
994
  return {
1033
995
  Description: __expectString(output.Description),
1034
996
  PolicyId: __expectString(output.PolicyId),
1035
997
  PolicyType: __expectString(output.PolicyType),
1036
998
  State: __expectString(output.State),
1037
- Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
999
+ Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
1038
1000
  };
1039
1001
  };
1040
- const deserializeAws_restJson1LifecyclePolicySummaryList = (output, context) => {
1002
+ const de_LifecyclePolicySummaryList = (output, context) => {
1041
1003
  const retVal = (output || [])
1042
1004
  .filter((e) => e != null)
1043
1005
  .map((entry) => {
1044
1006
  if (entry === null) {
1045
1007
  return null;
1046
1008
  }
1047
- return deserializeAws_restJson1LifecyclePolicySummary(entry, context);
1009
+ return de_LifecyclePolicySummary(entry, context);
1048
1010
  });
1049
1011
  return retVal;
1050
1012
  };
1051
- const deserializeAws_restJson1ParameterList = (output, context) => {
1013
+ const de_ParameterList = (output, context) => {
1052
1014
  const retVal = (output || [])
1053
1015
  .filter((e) => e != null)
1054
1016
  .map((entry) => {
@@ -1059,32 +1021,28 @@ const deserializeAws_restJson1ParameterList = (output, context) => {
1059
1021
  });
1060
1022
  return retVal;
1061
1023
  };
1062
- const deserializeAws_restJson1_Parameters = (output, context) => {
1024
+ const de__Parameters = (output, context) => {
1063
1025
  return {
1064
1026
  ExcludeBootVolume: __expectBoolean(output.ExcludeBootVolume),
1065
1027
  ExcludeDataVolumeTags: output.ExcludeDataVolumeTags != null
1066
- ? deserializeAws_restJson1ExcludeDataVolumeTagList(output.ExcludeDataVolumeTags, context)
1028
+ ? de_ExcludeDataVolumeTagList(output.ExcludeDataVolumeTags, context)
1067
1029
  : undefined,
1068
1030
  NoReboot: __expectBoolean(output.NoReboot),
1069
1031
  };
1070
1032
  };
1071
- const deserializeAws_restJson1PolicyDetails = (output, context) => {
1033
+ const de_PolicyDetails = (output, context) => {
1072
1034
  return {
1073
- Actions: output.Actions != null ? deserializeAws_restJson1ActionList(output.Actions, context) : undefined,
1074
- EventSource: output.EventSource != null ? deserializeAws_restJson1EventSource(output.EventSource, context) : undefined,
1075
- Parameters: output.Parameters != null ? deserializeAws_restJson1_Parameters(output.Parameters, context) : undefined,
1035
+ Actions: output.Actions != null ? de_ActionList(output.Actions, context) : undefined,
1036
+ EventSource: output.EventSource != null ? de_EventSource(output.EventSource, context) : undefined,
1037
+ Parameters: output.Parameters != null ? de__Parameters(output.Parameters, context) : undefined,
1076
1038
  PolicyType: __expectString(output.PolicyType),
1077
- ResourceLocations: output.ResourceLocations != null
1078
- ? deserializeAws_restJson1ResourceLocationList(output.ResourceLocations, context)
1079
- : undefined,
1080
- ResourceTypes: output.ResourceTypes != null
1081
- ? deserializeAws_restJson1ResourceTypeValuesList(output.ResourceTypes, context)
1082
- : undefined,
1083
- Schedules: output.Schedules != null ? deserializeAws_restJson1ScheduleList(output.Schedules, context) : undefined,
1084
- TargetTags: output.TargetTags != null ? deserializeAws_restJson1TargetTagList(output.TargetTags, context) : undefined,
1039
+ ResourceLocations: output.ResourceLocations != null ? de_ResourceLocationList(output.ResourceLocations, context) : undefined,
1040
+ ResourceTypes: output.ResourceTypes != null ? de_ResourceTypeValuesList(output.ResourceTypes, context) : undefined,
1041
+ Schedules: output.Schedules != null ? de_ScheduleList(output.Schedules, context) : undefined,
1042
+ TargetTags: output.TargetTags != null ? de_TargetTagList(output.TargetTags, context) : undefined,
1085
1043
  };
1086
1044
  };
1087
- const deserializeAws_restJson1PolicyIdList = (output, context) => {
1045
+ const de_PolicyIdList = (output, context) => {
1088
1046
  const retVal = (output || [])
1089
1047
  .filter((e) => e != null)
1090
1048
  .map((entry) => {
@@ -1095,7 +1053,7 @@ const deserializeAws_restJson1PolicyIdList = (output, context) => {
1095
1053
  });
1096
1054
  return retVal;
1097
1055
  };
1098
- const deserializeAws_restJson1ResourceLocationList = (output, context) => {
1056
+ const de_ResourceLocationList = (output, context) => {
1099
1057
  const retVal = (output || [])
1100
1058
  .filter((e) => e != null)
1101
1059
  .map((entry) => {
@@ -1106,7 +1064,7 @@ const deserializeAws_restJson1ResourceLocationList = (output, context) => {
1106
1064
  });
1107
1065
  return retVal;
1108
1066
  };
1109
- const deserializeAws_restJson1ResourceTypeValuesList = (output, context) => {
1067
+ const de_ResourceTypeValuesList = (output, context) => {
1110
1068
  const retVal = (output || [])
1111
1069
  .filter((e) => e != null)
1112
1070
  .map((entry) => {
@@ -1117,71 +1075,65 @@ const deserializeAws_restJson1ResourceTypeValuesList = (output, context) => {
1117
1075
  });
1118
1076
  return retVal;
1119
1077
  };
1120
- const deserializeAws_restJson1RetainRule = (output, context) => {
1078
+ const de_RetainRule = (output, context) => {
1121
1079
  return {
1122
1080
  Count: __expectInt32(output.Count),
1123
1081
  Interval: __expectInt32(output.Interval),
1124
1082
  IntervalUnit: __expectString(output.IntervalUnit),
1125
1083
  };
1126
1084
  };
1127
- const deserializeAws_restJson1RetentionArchiveTier = (output, context) => {
1085
+ const de_RetentionArchiveTier = (output, context) => {
1128
1086
  return {
1129
1087
  Count: __expectInt32(output.Count),
1130
1088
  Interval: __expectInt32(output.Interval),
1131
1089
  IntervalUnit: __expectString(output.IntervalUnit),
1132
1090
  };
1133
1091
  };
1134
- const deserializeAws_restJson1Schedule = (output, context) => {
1092
+ const de_Schedule = (output, context) => {
1135
1093
  return {
1136
- ArchiveRule: output.ArchiveRule != null ? deserializeAws_restJson1ArchiveRule(output.ArchiveRule, context) : undefined,
1094
+ ArchiveRule: output.ArchiveRule != null ? de_ArchiveRule(output.ArchiveRule, context) : undefined,
1137
1095
  CopyTags: __expectBoolean(output.CopyTags),
1138
- CreateRule: output.CreateRule != null ? deserializeAws_restJson1CreateRule(output.CreateRule, context) : undefined,
1139
- CrossRegionCopyRules: output.CrossRegionCopyRules != null
1140
- ? deserializeAws_restJson1CrossRegionCopyRules(output.CrossRegionCopyRules, context)
1141
- : undefined,
1142
- DeprecateRule: output.DeprecateRule != null ? deserializeAws_restJson1DeprecateRule(output.DeprecateRule, context) : undefined,
1143
- FastRestoreRule: output.FastRestoreRule != null
1144
- ? deserializeAws_restJson1FastRestoreRule(output.FastRestoreRule, context)
1145
- : undefined,
1096
+ CreateRule: output.CreateRule != null ? de_CreateRule(output.CreateRule, context) : undefined,
1097
+ CrossRegionCopyRules: output.CrossRegionCopyRules != null ? de_CrossRegionCopyRules(output.CrossRegionCopyRules, context) : undefined,
1098
+ DeprecateRule: output.DeprecateRule != null ? de_DeprecateRule(output.DeprecateRule, context) : undefined,
1099
+ FastRestoreRule: output.FastRestoreRule != null ? de_FastRestoreRule(output.FastRestoreRule, context) : undefined,
1146
1100
  Name: __expectString(output.Name),
1147
- RetainRule: output.RetainRule != null ? deserializeAws_restJson1RetainRule(output.RetainRule, context) : undefined,
1148
- ShareRules: output.ShareRules != null ? deserializeAws_restJson1ShareRules(output.ShareRules, context) : undefined,
1149
- TagsToAdd: output.TagsToAdd != null ? deserializeAws_restJson1TagsToAddList(output.TagsToAdd, context) : undefined,
1150
- VariableTags: output.VariableTags != null ? deserializeAws_restJson1VariableTagsList(output.VariableTags, context) : undefined,
1101
+ RetainRule: output.RetainRule != null ? de_RetainRule(output.RetainRule, context) : undefined,
1102
+ ShareRules: output.ShareRules != null ? de_ShareRules(output.ShareRules, context) : undefined,
1103
+ TagsToAdd: output.TagsToAdd != null ? de_TagsToAddList(output.TagsToAdd, context) : undefined,
1104
+ VariableTags: output.VariableTags != null ? de_VariableTagsList(output.VariableTags, context) : undefined,
1151
1105
  };
1152
1106
  };
1153
- const deserializeAws_restJson1ScheduleList = (output, context) => {
1107
+ const de_ScheduleList = (output, context) => {
1154
1108
  const retVal = (output || [])
1155
1109
  .filter((e) => e != null)
1156
1110
  .map((entry) => {
1157
1111
  if (entry === null) {
1158
1112
  return null;
1159
1113
  }
1160
- return deserializeAws_restJson1Schedule(entry, context);
1114
+ return de_Schedule(entry, context);
1161
1115
  });
1162
1116
  return retVal;
1163
1117
  };
1164
- const deserializeAws_restJson1ShareRule = (output, context) => {
1118
+ const de_ShareRule = (output, context) => {
1165
1119
  return {
1166
- TargetAccounts: output.TargetAccounts != null
1167
- ? deserializeAws_restJson1ShareTargetAccountList(output.TargetAccounts, context)
1168
- : undefined,
1120
+ TargetAccounts: output.TargetAccounts != null ? de_ShareTargetAccountList(output.TargetAccounts, context) : undefined,
1169
1121
  UnshareInterval: __expectInt32(output.UnshareInterval),
1170
1122
  UnshareIntervalUnit: __expectString(output.UnshareIntervalUnit),
1171
1123
  };
1172
1124
  };
1173
- const deserializeAws_restJson1ShareRules = (output, context) => {
1125
+ const de_ShareRules = (output, context) => {
1174
1126
  const retVal = (output || [])
1175
1127
  .filter((e) => e != null)
1176
1128
  .map((entry) => {
1177
1129
  if (entry === null) {
1178
1130
  return null;
1179
1131
  }
1180
- return deserializeAws_restJson1ShareRule(entry, context);
1132
+ return de_ShareRule(entry, context);
1181
1133
  });
1182
1134
  return retVal;
1183
1135
  };
1184
- const deserializeAws_restJson1ShareTargetAccountList = (output, context) => {
1136
+ const de_ShareTargetAccountList = (output, context) => {
1185
1137
  const retVal = (output || [])
1186
1138
  .filter((e) => e != null)
1187
1139
  .map((entry) => {
@@ -1192,7 +1144,7 @@ const deserializeAws_restJson1ShareTargetAccountList = (output, context) => {
1192
1144
  });
1193
1145
  return retVal;
1194
1146
  };
1195
- const deserializeAws_restJson1SnapshotOwnerList = (output, context) => {
1147
+ const de_SnapshotOwnerList = (output, context) => {
1196
1148
  const retVal = (output || [])
1197
1149
  .filter((e) => e != null)
1198
1150
  .map((entry) => {
@@ -1203,13 +1155,13 @@ const deserializeAws_restJson1SnapshotOwnerList = (output, context) => {
1203
1155
  });
1204
1156
  return retVal;
1205
1157
  };
1206
- const deserializeAws_restJson1Tag = (output, context) => {
1158
+ const de_Tag = (output, context) => {
1207
1159
  return {
1208
1160
  Key: __expectString(output.Key),
1209
1161
  Value: __expectString(output.Value),
1210
1162
  };
1211
1163
  };
1212
- const deserializeAws_restJson1TagMap = (output, context) => {
1164
+ const de_TagMap = (output, context) => {
1213
1165
  return Object.entries(output).reduce((acc, [key, value]) => {
1214
1166
  if (value === null) {
1215
1167
  return acc;
@@ -1218,29 +1170,29 @@ const deserializeAws_restJson1TagMap = (output, context) => {
1218
1170
  return acc;
1219
1171
  }, {});
1220
1172
  };
1221
- const deserializeAws_restJson1TagsToAddList = (output, context) => {
1173
+ const de_TagsToAddList = (output, context) => {
1222
1174
  const retVal = (output || [])
1223
1175
  .filter((e) => e != null)
1224
1176
  .map((entry) => {
1225
1177
  if (entry === null) {
1226
1178
  return null;
1227
1179
  }
1228
- return deserializeAws_restJson1Tag(entry, context);
1180
+ return de_Tag(entry, context);
1229
1181
  });
1230
1182
  return retVal;
1231
1183
  };
1232
- const deserializeAws_restJson1TargetTagList = (output, context) => {
1184
+ const de_TargetTagList = (output, context) => {
1233
1185
  const retVal = (output || [])
1234
1186
  .filter((e) => e != null)
1235
1187
  .map((entry) => {
1236
1188
  if (entry === null) {
1237
1189
  return null;
1238
1190
  }
1239
- return deserializeAws_restJson1Tag(entry, context);
1191
+ return de_Tag(entry, context);
1240
1192
  });
1241
1193
  return retVal;
1242
1194
  };
1243
- const deserializeAws_restJson1TimesList = (output, context) => {
1195
+ const de_TimesList = (output, context) => {
1244
1196
  const retVal = (output || [])
1245
1197
  .filter((e) => e != null)
1246
1198
  .map((entry) => {
@@ -1251,14 +1203,14 @@ const deserializeAws_restJson1TimesList = (output, context) => {
1251
1203
  });
1252
1204
  return retVal;
1253
1205
  };
1254
- const deserializeAws_restJson1VariableTagsList = (output, context) => {
1206
+ const de_VariableTagsList = (output, context) => {
1255
1207
  const retVal = (output || [])
1256
1208
  .filter((e) => e != null)
1257
1209
  .map((entry) => {
1258
1210
  if (entry === null) {
1259
1211
  return null;
1260
1212
  }
1261
- return deserializeAws_restJson1Tag(entry, context);
1213
+ return de_Tag(entry, context);
1262
1214
  });
1263
1215
  return retVal;
1264
1216
  };