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