@aws-sdk/client-rbin 3.306.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_restJson1UpdateRuleCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1UnlockRuleCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1LockRuleCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListRulesCommand = exports.deserializeAws_restJson1GetRuleCommand = exports.deserializeAws_restJson1DeleteRuleCommand = exports.deserializeAws_restJson1CreateRuleCommand = exports.serializeAws_restJson1UpdateRuleCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1UnlockRuleCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1LockRuleCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListRulesCommand = exports.serializeAws_restJson1GetRuleCommand = exports.serializeAws_restJson1DeleteRuleCommand = exports.serializeAws_restJson1CreateRuleCommand = void 0;
3
+ exports.de_UpdateRuleCommand = exports.de_UntagResourceCommand = exports.de_UnlockRuleCommand = exports.de_TagResourceCommand = exports.de_LockRuleCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRulesCommand = exports.de_GetRuleCommand = exports.de_DeleteRuleCommand = exports.de_CreateRuleCommand = exports.se_UpdateRuleCommand = exports.se_UntagResourceCommand = exports.se_UnlockRuleCommand = exports.se_TagResourceCommand = exports.se_LockRuleCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRulesCommand = exports.se_GetRuleCommand = exports.se_DeleteRuleCommand = exports.se_CreateRuleCommand = 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 models_0_1 = require("../models/models_0");
7
7
  const RbinServiceException_1 = require("../models/RbinServiceException");
8
- const serializeAws_restJson1CreateRuleCommand = async (input, context) => {
8
+ const se_CreateRuleCommand = 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,16 +15,12 @@ const serializeAws_restJson1CreateRuleCommand = async (input, context) => {
15
15
  body = JSON.stringify({
16
16
  ...(input.Description != null && { Description: input.Description }),
17
17
  ...(input.LockConfiguration != null && {
18
- LockConfiguration: serializeAws_restJson1LockConfiguration(input.LockConfiguration, context),
19
- }),
20
- ...(input.ResourceTags != null && {
21
- ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context),
18
+ LockConfiguration: se_LockConfiguration(input.LockConfiguration, context),
22
19
  }),
20
+ ...(input.ResourceTags != null && { ResourceTags: se_ResourceTags(input.ResourceTags, context) }),
23
21
  ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
24
- ...(input.RetentionPeriod != null && {
25
- RetentionPeriod: serializeAws_restJson1RetentionPeriod(input.RetentionPeriod, context),
26
- }),
27
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
22
+ ...(input.RetentionPeriod != null && { RetentionPeriod: se_RetentionPeriod(input.RetentionPeriod, context) }),
23
+ ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
28
24
  });
29
25
  return new protocol_http_1.HttpRequest({
30
26
  protocol,
@@ -36,8 +32,8 @@ const serializeAws_restJson1CreateRuleCommand = async (input, context) => {
36
32
  body,
37
33
  });
38
34
  };
39
- exports.serializeAws_restJson1CreateRuleCommand = serializeAws_restJson1CreateRuleCommand;
40
- const serializeAws_restJson1DeleteRuleCommand = async (input, context) => {
35
+ exports.se_CreateRuleCommand = se_CreateRuleCommand;
36
+ const se_DeleteRuleCommand = async (input, context) => {
41
37
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
42
38
  const headers = {};
43
39
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
@@ -53,8 +49,8 @@ const serializeAws_restJson1DeleteRuleCommand = async (input, context) => {
53
49
  body,
54
50
  });
55
51
  };
56
- exports.serializeAws_restJson1DeleteRuleCommand = serializeAws_restJson1DeleteRuleCommand;
57
- const serializeAws_restJson1GetRuleCommand = async (input, context) => {
52
+ exports.se_DeleteRuleCommand = se_DeleteRuleCommand;
53
+ const se_GetRuleCommand = async (input, context) => {
58
54
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
59
55
  const headers = {};
60
56
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
@@ -70,8 +66,8 @@ const serializeAws_restJson1GetRuleCommand = async (input, context) => {
70
66
  body,
71
67
  });
72
68
  };
73
- exports.serializeAws_restJson1GetRuleCommand = serializeAws_restJson1GetRuleCommand;
74
- const serializeAws_restJson1ListRulesCommand = async (input, context) => {
69
+ exports.se_GetRuleCommand = se_GetRuleCommand;
70
+ const se_ListRulesCommand = async (input, context) => {
75
71
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
76
72
  const headers = {
77
73
  "content-type": "application/json",
@@ -82,9 +78,7 @@ const serializeAws_restJson1ListRulesCommand = async (input, context) => {
82
78
  ...(input.LockState != null && { LockState: input.LockState }),
83
79
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
84
80
  ...(input.NextToken != null && { NextToken: input.NextToken }),
85
- ...(input.ResourceTags != null && {
86
- ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context),
87
- }),
81
+ ...(input.ResourceTags != null && { ResourceTags: se_ResourceTags(input.ResourceTags, context) }),
88
82
  ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
89
83
  });
90
84
  return new protocol_http_1.HttpRequest({
@@ -97,8 +91,8 @@ const serializeAws_restJson1ListRulesCommand = async (input, context) => {
97
91
  body,
98
92
  });
99
93
  };
100
- exports.serializeAws_restJson1ListRulesCommand = serializeAws_restJson1ListRulesCommand;
101
- const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
94
+ exports.se_ListRulesCommand = se_ListRulesCommand;
95
+ const se_ListTagsForResourceCommand = async (input, context) => {
102
96
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
103
97
  const headers = {};
104
98
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -114,8 +108,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
114
108
  body,
115
109
  });
116
110
  };
117
- exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
118
- const serializeAws_restJson1LockRuleCommand = async (input, context) => {
111
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
112
+ const se_LockRuleCommand = async (input, context) => {
119
113
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
120
114
  const headers = {
121
115
  "content-type": "application/json",
@@ -125,7 +119,7 @@ const serializeAws_restJson1LockRuleCommand = async (input, context) => {
125
119
  let body;
126
120
  body = JSON.stringify({
127
121
  ...(input.LockConfiguration != null && {
128
- LockConfiguration: serializeAws_restJson1LockConfiguration(input.LockConfiguration, context),
122
+ LockConfiguration: se_LockConfiguration(input.LockConfiguration, context),
129
123
  }),
130
124
  });
131
125
  return new protocol_http_1.HttpRequest({
@@ -138,8 +132,8 @@ const serializeAws_restJson1LockRuleCommand = async (input, context) => {
138
132
  body,
139
133
  });
140
134
  };
141
- exports.serializeAws_restJson1LockRuleCommand = serializeAws_restJson1LockRuleCommand;
142
- const serializeAws_restJson1TagResourceCommand = async (input, context) => {
135
+ exports.se_LockRuleCommand = se_LockRuleCommand;
136
+ const se_TagResourceCommand = async (input, context) => {
143
137
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
144
138
  const headers = {
145
139
  "content-type": "application/json",
@@ -148,7 +142,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
148
142
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
149
143
  let body;
150
144
  body = JSON.stringify({
151
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
145
+ ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
152
146
  });
153
147
  return new protocol_http_1.HttpRequest({
154
148
  protocol,
@@ -160,8 +154,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
160
154
  body,
161
155
  });
162
156
  };
163
- exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
164
- const serializeAws_restJson1UnlockRuleCommand = async (input, context) => {
157
+ exports.se_TagResourceCommand = se_TagResourceCommand;
158
+ const se_UnlockRuleCommand = async (input, context) => {
165
159
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
166
160
  const headers = {};
167
161
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}/unlock";
@@ -177,8 +171,8 @@ const serializeAws_restJson1UnlockRuleCommand = async (input, context) => {
177
171
  body,
178
172
  });
179
173
  };
180
- exports.serializeAws_restJson1UnlockRuleCommand = serializeAws_restJson1UnlockRuleCommand;
181
- const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
174
+ exports.se_UnlockRuleCommand = se_UnlockRuleCommand;
175
+ const se_UntagResourceCommand = async (input, context) => {
182
176
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
183
177
  const headers = {};
184
178
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -201,8 +195,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
201
195
  body,
202
196
  });
203
197
  };
204
- exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
205
- const serializeAws_restJson1UpdateRuleCommand = async (input, context) => {
198
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
199
+ const se_UpdateRuleCommand = async (input, context) => {
206
200
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
207
201
  const headers = {
208
202
  "content-type": "application/json",
@@ -212,13 +206,9 @@ const serializeAws_restJson1UpdateRuleCommand = async (input, context) => {
212
206
  let body;
213
207
  body = JSON.stringify({
214
208
  ...(input.Description != null && { Description: input.Description }),
215
- ...(input.ResourceTags != null && {
216
- ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context),
217
- }),
209
+ ...(input.ResourceTags != null && { ResourceTags: se_ResourceTags(input.ResourceTags, context) }),
218
210
  ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
219
- ...(input.RetentionPeriod != null && {
220
- RetentionPeriod: serializeAws_restJson1RetentionPeriod(input.RetentionPeriod, context),
221
- }),
211
+ ...(input.RetentionPeriod != null && { RetentionPeriod: se_RetentionPeriod(input.RetentionPeriod, context) }),
222
212
  });
223
213
  return new protocol_http_1.HttpRequest({
224
214
  protocol,
@@ -230,10 +220,10 @@ const serializeAws_restJson1UpdateRuleCommand = async (input, context) => {
230
220
  body,
231
221
  });
232
222
  };
233
- exports.serializeAws_restJson1UpdateRuleCommand = serializeAws_restJson1UpdateRuleCommand;
234
- const deserializeAws_restJson1CreateRuleCommand = async (output, context) => {
223
+ exports.se_UpdateRuleCommand = se_UpdateRuleCommand;
224
+ const de_CreateRuleCommand = async (output, context) => {
235
225
  if (output.statusCode !== 201 && output.statusCode >= 300) {
236
- return deserializeAws_restJson1CreateRuleCommandError(output, context);
226
+ return de_CreateRuleCommandError(output, context);
237
227
  }
238
228
  const contents = map({
239
229
  $metadata: deserializeMetadata(output),
@@ -246,30 +236,30 @@ const deserializeAws_restJson1CreateRuleCommand = async (output, context) => {
246
236
  contents.Identifier = (0, smithy_client_1.expectString)(data.Identifier);
247
237
  }
248
238
  if (data.LockConfiguration != null) {
249
- contents.LockConfiguration = deserializeAws_restJson1LockConfiguration(data.LockConfiguration, context);
239
+ contents.LockConfiguration = de_LockConfiguration(data.LockConfiguration, context);
250
240
  }
251
241
  if (data.LockState != null) {
252
242
  contents.LockState = (0, smithy_client_1.expectString)(data.LockState);
253
243
  }
254
244
  if (data.ResourceTags != null) {
255
- contents.ResourceTags = deserializeAws_restJson1ResourceTags(data.ResourceTags, context);
245
+ contents.ResourceTags = de_ResourceTags(data.ResourceTags, context);
256
246
  }
257
247
  if (data.ResourceType != null) {
258
248
  contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
259
249
  }
260
250
  if (data.RetentionPeriod != null) {
261
- contents.RetentionPeriod = deserializeAws_restJson1RetentionPeriod(data.RetentionPeriod, context);
251
+ contents.RetentionPeriod = de_RetentionPeriod(data.RetentionPeriod, context);
262
252
  }
263
253
  if (data.Status != null) {
264
254
  contents.Status = (0, smithy_client_1.expectString)(data.Status);
265
255
  }
266
256
  if (data.Tags != null) {
267
- contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
257
+ contents.Tags = de_TagList(data.Tags, context);
268
258
  }
269
259
  return contents;
270
260
  };
271
- exports.deserializeAws_restJson1CreateRuleCommand = deserializeAws_restJson1CreateRuleCommand;
272
- const deserializeAws_restJson1CreateRuleCommandError = async (output, context) => {
261
+ exports.de_CreateRuleCommand = de_CreateRuleCommand;
262
+ const de_CreateRuleCommandError = async (output, context) => {
273
263
  const parsedOutput = {
274
264
  ...output,
275
265
  body: await parseErrorBody(output.body, context),
@@ -278,13 +268,13 @@ const deserializeAws_restJson1CreateRuleCommandError = async (output, context) =
278
268
  switch (errorCode) {
279
269
  case "InternalServerException":
280
270
  case "com.amazonaws.rbin#InternalServerException":
281
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
271
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
282
272
  case "ServiceQuotaExceededException":
283
273
  case "com.amazonaws.rbin#ServiceQuotaExceededException":
284
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
274
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
285
275
  case "ValidationException":
286
276
  case "com.amazonaws.rbin#ValidationException":
287
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
277
+ throw await de_ValidationExceptionRes(parsedOutput, context);
288
278
  default:
289
279
  const parsedBody = parsedOutput.body;
290
280
  (0, smithy_client_1.throwDefaultError)({
@@ -295,9 +285,9 @@ const deserializeAws_restJson1CreateRuleCommandError = async (output, context) =
295
285
  });
296
286
  }
297
287
  };
298
- const deserializeAws_restJson1DeleteRuleCommand = async (output, context) => {
288
+ const de_DeleteRuleCommand = async (output, context) => {
299
289
  if (output.statusCode !== 204 && output.statusCode >= 300) {
300
- return deserializeAws_restJson1DeleteRuleCommandError(output, context);
290
+ return de_DeleteRuleCommandError(output, context);
301
291
  }
302
292
  const contents = map({
303
293
  $metadata: deserializeMetadata(output),
@@ -305,8 +295,8 @@ const deserializeAws_restJson1DeleteRuleCommand = async (output, context) => {
305
295
  await collectBody(output.body, context);
306
296
  return contents;
307
297
  };
308
- exports.deserializeAws_restJson1DeleteRuleCommand = deserializeAws_restJson1DeleteRuleCommand;
309
- const deserializeAws_restJson1DeleteRuleCommandError = async (output, context) => {
298
+ exports.de_DeleteRuleCommand = de_DeleteRuleCommand;
299
+ const de_DeleteRuleCommandError = async (output, context) => {
310
300
  const parsedOutput = {
311
301
  ...output,
312
302
  body: await parseErrorBody(output.body, context),
@@ -315,16 +305,16 @@ const deserializeAws_restJson1DeleteRuleCommandError = async (output, context) =
315
305
  switch (errorCode) {
316
306
  case "ConflictException":
317
307
  case "com.amazonaws.rbin#ConflictException":
318
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
308
+ throw await de_ConflictExceptionRes(parsedOutput, context);
319
309
  case "InternalServerException":
320
310
  case "com.amazonaws.rbin#InternalServerException":
321
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
311
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
322
312
  case "ResourceNotFoundException":
323
313
  case "com.amazonaws.rbin#ResourceNotFoundException":
324
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
314
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
325
315
  case "ValidationException":
326
316
  case "com.amazonaws.rbin#ValidationException":
327
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
317
+ throw await de_ValidationExceptionRes(parsedOutput, context);
328
318
  default:
329
319
  const parsedBody = parsedOutput.body;
330
320
  (0, smithy_client_1.throwDefaultError)({
@@ -335,9 +325,9 @@ const deserializeAws_restJson1DeleteRuleCommandError = async (output, context) =
335
325
  });
336
326
  }
337
327
  };
338
- const deserializeAws_restJson1GetRuleCommand = async (output, context) => {
328
+ const de_GetRuleCommand = async (output, context) => {
339
329
  if (output.statusCode !== 200 && output.statusCode >= 300) {
340
- return deserializeAws_restJson1GetRuleCommandError(output, context);
330
+ return de_GetRuleCommandError(output, context);
341
331
  }
342
332
  const contents = map({
343
333
  $metadata: deserializeMetadata(output),
@@ -350,7 +340,7 @@ const deserializeAws_restJson1GetRuleCommand = async (output, context) => {
350
340
  contents.Identifier = (0, smithy_client_1.expectString)(data.Identifier);
351
341
  }
352
342
  if (data.LockConfiguration != null) {
353
- contents.LockConfiguration = deserializeAws_restJson1LockConfiguration(data.LockConfiguration, context);
343
+ contents.LockConfiguration = de_LockConfiguration(data.LockConfiguration, context);
354
344
  }
355
345
  if (data.LockEndTime != null) {
356
346
  contents.LockEndTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LockEndTime)));
@@ -359,21 +349,21 @@ const deserializeAws_restJson1GetRuleCommand = async (output, context) => {
359
349
  contents.LockState = (0, smithy_client_1.expectString)(data.LockState);
360
350
  }
361
351
  if (data.ResourceTags != null) {
362
- contents.ResourceTags = deserializeAws_restJson1ResourceTags(data.ResourceTags, context);
352
+ contents.ResourceTags = de_ResourceTags(data.ResourceTags, context);
363
353
  }
364
354
  if (data.ResourceType != null) {
365
355
  contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
366
356
  }
367
357
  if (data.RetentionPeriod != null) {
368
- contents.RetentionPeriod = deserializeAws_restJson1RetentionPeriod(data.RetentionPeriod, context);
358
+ contents.RetentionPeriod = de_RetentionPeriod(data.RetentionPeriod, context);
369
359
  }
370
360
  if (data.Status != null) {
371
361
  contents.Status = (0, smithy_client_1.expectString)(data.Status);
372
362
  }
373
363
  return contents;
374
364
  };
375
- exports.deserializeAws_restJson1GetRuleCommand = deserializeAws_restJson1GetRuleCommand;
376
- const deserializeAws_restJson1GetRuleCommandError = async (output, context) => {
365
+ exports.de_GetRuleCommand = de_GetRuleCommand;
366
+ const de_GetRuleCommandError = async (output, context) => {
377
367
  const parsedOutput = {
378
368
  ...output,
379
369
  body: await parseErrorBody(output.body, context),
@@ -382,13 +372,13 @@ const deserializeAws_restJson1GetRuleCommandError = async (output, context) => {
382
372
  switch (errorCode) {
383
373
  case "InternalServerException":
384
374
  case "com.amazonaws.rbin#InternalServerException":
385
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
375
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
386
376
  case "ResourceNotFoundException":
387
377
  case "com.amazonaws.rbin#ResourceNotFoundException":
388
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
378
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
389
379
  case "ValidationException":
390
380
  case "com.amazonaws.rbin#ValidationException":
391
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
381
+ throw await de_ValidationExceptionRes(parsedOutput, context);
392
382
  default:
393
383
  const parsedBody = parsedOutput.body;
394
384
  (0, smithy_client_1.throwDefaultError)({
@@ -399,9 +389,9 @@ const deserializeAws_restJson1GetRuleCommandError = async (output, context) => {
399
389
  });
400
390
  }
401
391
  };
402
- const deserializeAws_restJson1ListRulesCommand = async (output, context) => {
392
+ const de_ListRulesCommand = async (output, context) => {
403
393
  if (output.statusCode !== 200 && output.statusCode >= 300) {
404
- return deserializeAws_restJson1ListRulesCommandError(output, context);
394
+ return de_ListRulesCommandError(output, context);
405
395
  }
406
396
  const contents = map({
407
397
  $metadata: deserializeMetadata(output),
@@ -411,12 +401,12 @@ const deserializeAws_restJson1ListRulesCommand = async (output, context) => {
411
401
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
412
402
  }
413
403
  if (data.Rules != null) {
414
- contents.Rules = deserializeAws_restJson1RuleSummaryList(data.Rules, context);
404
+ contents.Rules = de_RuleSummaryList(data.Rules, context);
415
405
  }
416
406
  return contents;
417
407
  };
418
- exports.deserializeAws_restJson1ListRulesCommand = deserializeAws_restJson1ListRulesCommand;
419
- const deserializeAws_restJson1ListRulesCommandError = async (output, context) => {
408
+ exports.de_ListRulesCommand = de_ListRulesCommand;
409
+ const de_ListRulesCommandError = async (output, context) => {
420
410
  const parsedOutput = {
421
411
  ...output,
422
412
  body: await parseErrorBody(output.body, context),
@@ -425,10 +415,10 @@ const deserializeAws_restJson1ListRulesCommandError = async (output, context) =>
425
415
  switch (errorCode) {
426
416
  case "InternalServerException":
427
417
  case "com.amazonaws.rbin#InternalServerException":
428
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
418
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
429
419
  case "ValidationException":
430
420
  case "com.amazonaws.rbin#ValidationException":
431
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
421
+ throw await de_ValidationExceptionRes(parsedOutput, context);
432
422
  default:
433
423
  const parsedBody = parsedOutput.body;
434
424
  (0, smithy_client_1.throwDefaultError)({
@@ -439,21 +429,21 @@ const deserializeAws_restJson1ListRulesCommandError = async (output, context) =>
439
429
  });
440
430
  }
441
431
  };
442
- const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
432
+ const de_ListTagsForResourceCommand = async (output, context) => {
443
433
  if (output.statusCode !== 200 && output.statusCode >= 300) {
444
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
434
+ return de_ListTagsForResourceCommandError(output, context);
445
435
  }
446
436
  const contents = map({
447
437
  $metadata: deserializeMetadata(output),
448
438
  });
449
439
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
450
440
  if (data.Tags != null) {
451
- contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
441
+ contents.Tags = de_TagList(data.Tags, context);
452
442
  }
453
443
  return contents;
454
444
  };
455
- exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
456
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
445
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
446
+ const de_ListTagsForResourceCommandError = async (output, context) => {
457
447
  const parsedOutput = {
458
448
  ...output,
459
449
  body: await parseErrorBody(output.body, context),
@@ -462,13 +452,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
462
452
  switch (errorCode) {
463
453
  case "InternalServerException":
464
454
  case "com.amazonaws.rbin#InternalServerException":
465
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
455
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
466
456
  case "ResourceNotFoundException":
467
457
  case "com.amazonaws.rbin#ResourceNotFoundException":
468
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
458
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
469
459
  case "ValidationException":
470
460
  case "com.amazonaws.rbin#ValidationException":
471
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
461
+ throw await de_ValidationExceptionRes(parsedOutput, context);
472
462
  default:
473
463
  const parsedBody = parsedOutput.body;
474
464
  (0, smithy_client_1.throwDefaultError)({
@@ -479,9 +469,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
479
469
  });
480
470
  }
481
471
  };
482
- const deserializeAws_restJson1LockRuleCommand = async (output, context) => {
472
+ const de_LockRuleCommand = async (output, context) => {
483
473
  if (output.statusCode !== 200 && output.statusCode >= 300) {
484
- return deserializeAws_restJson1LockRuleCommandError(output, context);
474
+ return de_LockRuleCommandError(output, context);
485
475
  }
486
476
  const contents = map({
487
477
  $metadata: deserializeMetadata(output),
@@ -494,27 +484,27 @@ const deserializeAws_restJson1LockRuleCommand = async (output, context) => {
494
484
  contents.Identifier = (0, smithy_client_1.expectString)(data.Identifier);
495
485
  }
496
486
  if (data.LockConfiguration != null) {
497
- contents.LockConfiguration = deserializeAws_restJson1LockConfiguration(data.LockConfiguration, context);
487
+ contents.LockConfiguration = de_LockConfiguration(data.LockConfiguration, context);
498
488
  }
499
489
  if (data.LockState != null) {
500
490
  contents.LockState = (0, smithy_client_1.expectString)(data.LockState);
501
491
  }
502
492
  if (data.ResourceTags != null) {
503
- contents.ResourceTags = deserializeAws_restJson1ResourceTags(data.ResourceTags, context);
493
+ contents.ResourceTags = de_ResourceTags(data.ResourceTags, context);
504
494
  }
505
495
  if (data.ResourceType != null) {
506
496
  contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
507
497
  }
508
498
  if (data.RetentionPeriod != null) {
509
- contents.RetentionPeriod = deserializeAws_restJson1RetentionPeriod(data.RetentionPeriod, context);
499
+ contents.RetentionPeriod = de_RetentionPeriod(data.RetentionPeriod, context);
510
500
  }
511
501
  if (data.Status != null) {
512
502
  contents.Status = (0, smithy_client_1.expectString)(data.Status);
513
503
  }
514
504
  return contents;
515
505
  };
516
- exports.deserializeAws_restJson1LockRuleCommand = deserializeAws_restJson1LockRuleCommand;
517
- const deserializeAws_restJson1LockRuleCommandError = async (output, context) => {
506
+ exports.de_LockRuleCommand = de_LockRuleCommand;
507
+ const de_LockRuleCommandError = async (output, context) => {
518
508
  const parsedOutput = {
519
509
  ...output,
520
510
  body: await parseErrorBody(output.body, context),
@@ -523,16 +513,16 @@ const deserializeAws_restJson1LockRuleCommandError = async (output, context) =>
523
513
  switch (errorCode) {
524
514
  case "ConflictException":
525
515
  case "com.amazonaws.rbin#ConflictException":
526
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
516
+ throw await de_ConflictExceptionRes(parsedOutput, context);
527
517
  case "InternalServerException":
528
518
  case "com.amazonaws.rbin#InternalServerException":
529
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
519
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
530
520
  case "ResourceNotFoundException":
531
521
  case "com.amazonaws.rbin#ResourceNotFoundException":
532
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
522
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
533
523
  case "ValidationException":
534
524
  case "com.amazonaws.rbin#ValidationException":
535
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
525
+ throw await de_ValidationExceptionRes(parsedOutput, context);
536
526
  default:
537
527
  const parsedBody = parsedOutput.body;
538
528
  (0, smithy_client_1.throwDefaultError)({
@@ -543,9 +533,9 @@ const deserializeAws_restJson1LockRuleCommandError = async (output, context) =>
543
533
  });
544
534
  }
545
535
  };
546
- const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
536
+ const de_TagResourceCommand = async (output, context) => {
547
537
  if (output.statusCode !== 201 && output.statusCode >= 300) {
548
- return deserializeAws_restJson1TagResourceCommandError(output, context);
538
+ return de_TagResourceCommandError(output, context);
549
539
  }
550
540
  const contents = map({
551
541
  $metadata: deserializeMetadata(output),
@@ -553,8 +543,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
553
543
  await collectBody(output.body, context);
554
544
  return contents;
555
545
  };
556
- exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
557
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
546
+ exports.de_TagResourceCommand = de_TagResourceCommand;
547
+ const de_TagResourceCommandError = async (output, context) => {
558
548
  const parsedOutput = {
559
549
  ...output,
560
550
  body: await parseErrorBody(output.body, context),
@@ -563,16 +553,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
563
553
  switch (errorCode) {
564
554
  case "InternalServerException":
565
555
  case "com.amazonaws.rbin#InternalServerException":
566
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
556
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
567
557
  case "ResourceNotFoundException":
568
558
  case "com.amazonaws.rbin#ResourceNotFoundException":
569
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
559
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
570
560
  case "ServiceQuotaExceededException":
571
561
  case "com.amazonaws.rbin#ServiceQuotaExceededException":
572
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
562
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
573
563
  case "ValidationException":
574
564
  case "com.amazonaws.rbin#ValidationException":
575
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
565
+ throw await de_ValidationExceptionRes(parsedOutput, context);
576
566
  default:
577
567
  const parsedBody = parsedOutput.body;
578
568
  (0, smithy_client_1.throwDefaultError)({
@@ -583,9 +573,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
583
573
  });
584
574
  }
585
575
  };
586
- const deserializeAws_restJson1UnlockRuleCommand = async (output, context) => {
576
+ const de_UnlockRuleCommand = async (output, context) => {
587
577
  if (output.statusCode !== 200 && output.statusCode >= 300) {
588
- return deserializeAws_restJson1UnlockRuleCommandError(output, context);
578
+ return de_UnlockRuleCommandError(output, context);
589
579
  }
590
580
  const contents = map({
591
581
  $metadata: deserializeMetadata(output),
@@ -598,7 +588,7 @@ const deserializeAws_restJson1UnlockRuleCommand = async (output, context) => {
598
588
  contents.Identifier = (0, smithy_client_1.expectString)(data.Identifier);
599
589
  }
600
590
  if (data.LockConfiguration != null) {
601
- contents.LockConfiguration = deserializeAws_restJson1LockConfiguration(data.LockConfiguration, context);
591
+ contents.LockConfiguration = de_LockConfiguration(data.LockConfiguration, context);
602
592
  }
603
593
  if (data.LockEndTime != null) {
604
594
  contents.LockEndTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LockEndTime)));
@@ -607,21 +597,21 @@ const deserializeAws_restJson1UnlockRuleCommand = async (output, context) => {
607
597
  contents.LockState = (0, smithy_client_1.expectString)(data.LockState);
608
598
  }
609
599
  if (data.ResourceTags != null) {
610
- contents.ResourceTags = deserializeAws_restJson1ResourceTags(data.ResourceTags, context);
600
+ contents.ResourceTags = de_ResourceTags(data.ResourceTags, context);
611
601
  }
612
602
  if (data.ResourceType != null) {
613
603
  contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
614
604
  }
615
605
  if (data.RetentionPeriod != null) {
616
- contents.RetentionPeriod = deserializeAws_restJson1RetentionPeriod(data.RetentionPeriod, context);
606
+ contents.RetentionPeriod = de_RetentionPeriod(data.RetentionPeriod, context);
617
607
  }
618
608
  if (data.Status != null) {
619
609
  contents.Status = (0, smithy_client_1.expectString)(data.Status);
620
610
  }
621
611
  return contents;
622
612
  };
623
- exports.deserializeAws_restJson1UnlockRuleCommand = deserializeAws_restJson1UnlockRuleCommand;
624
- const deserializeAws_restJson1UnlockRuleCommandError = async (output, context) => {
613
+ exports.de_UnlockRuleCommand = de_UnlockRuleCommand;
614
+ const de_UnlockRuleCommandError = async (output, context) => {
625
615
  const parsedOutput = {
626
616
  ...output,
627
617
  body: await parseErrorBody(output.body, context),
@@ -630,16 +620,16 @@ const deserializeAws_restJson1UnlockRuleCommandError = async (output, context) =
630
620
  switch (errorCode) {
631
621
  case "ConflictException":
632
622
  case "com.amazonaws.rbin#ConflictException":
633
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
623
+ throw await de_ConflictExceptionRes(parsedOutput, context);
634
624
  case "InternalServerException":
635
625
  case "com.amazonaws.rbin#InternalServerException":
636
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
626
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
637
627
  case "ResourceNotFoundException":
638
628
  case "com.amazonaws.rbin#ResourceNotFoundException":
639
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
629
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
640
630
  case "ValidationException":
641
631
  case "com.amazonaws.rbin#ValidationException":
642
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
632
+ throw await de_ValidationExceptionRes(parsedOutput, context);
643
633
  default:
644
634
  const parsedBody = parsedOutput.body;
645
635
  (0, smithy_client_1.throwDefaultError)({
@@ -650,9 +640,9 @@ const deserializeAws_restJson1UnlockRuleCommandError = async (output, context) =
650
640
  });
651
641
  }
652
642
  };
653
- const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
643
+ const de_UntagResourceCommand = async (output, context) => {
654
644
  if (output.statusCode !== 204 && output.statusCode >= 300) {
655
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
645
+ return de_UntagResourceCommandError(output, context);
656
646
  }
657
647
  const contents = map({
658
648
  $metadata: deserializeMetadata(output),
@@ -660,8 +650,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
660
650
  await collectBody(output.body, context);
661
651
  return contents;
662
652
  };
663
- exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
664
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
653
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
654
+ const de_UntagResourceCommandError = async (output, context) => {
665
655
  const parsedOutput = {
666
656
  ...output,
667
657
  body: await parseErrorBody(output.body, context),
@@ -670,13 +660,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
670
660
  switch (errorCode) {
671
661
  case "InternalServerException":
672
662
  case "com.amazonaws.rbin#InternalServerException":
673
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
663
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
674
664
  case "ResourceNotFoundException":
675
665
  case "com.amazonaws.rbin#ResourceNotFoundException":
676
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
666
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
677
667
  case "ValidationException":
678
668
  case "com.amazonaws.rbin#ValidationException":
679
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
669
+ throw await de_ValidationExceptionRes(parsedOutput, context);
680
670
  default:
681
671
  const parsedBody = parsedOutput.body;
682
672
  (0, smithy_client_1.throwDefaultError)({
@@ -687,9 +677,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
687
677
  });
688
678
  }
689
679
  };
690
- const deserializeAws_restJson1UpdateRuleCommand = async (output, context) => {
680
+ const de_UpdateRuleCommand = async (output, context) => {
691
681
  if (output.statusCode !== 200 && output.statusCode >= 300) {
692
- return deserializeAws_restJson1UpdateRuleCommandError(output, context);
682
+ return de_UpdateRuleCommandError(output, context);
693
683
  }
694
684
  const contents = map({
695
685
  $metadata: deserializeMetadata(output),
@@ -708,21 +698,21 @@ const deserializeAws_restJson1UpdateRuleCommand = async (output, context) => {
708
698
  contents.LockState = (0, smithy_client_1.expectString)(data.LockState);
709
699
  }
710
700
  if (data.ResourceTags != null) {
711
- contents.ResourceTags = deserializeAws_restJson1ResourceTags(data.ResourceTags, context);
701
+ contents.ResourceTags = de_ResourceTags(data.ResourceTags, context);
712
702
  }
713
703
  if (data.ResourceType != null) {
714
704
  contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
715
705
  }
716
706
  if (data.RetentionPeriod != null) {
717
- contents.RetentionPeriod = deserializeAws_restJson1RetentionPeriod(data.RetentionPeriod, context);
707
+ contents.RetentionPeriod = de_RetentionPeriod(data.RetentionPeriod, context);
718
708
  }
719
709
  if (data.Status != null) {
720
710
  contents.Status = (0, smithy_client_1.expectString)(data.Status);
721
711
  }
722
712
  return contents;
723
713
  };
724
- exports.deserializeAws_restJson1UpdateRuleCommand = deserializeAws_restJson1UpdateRuleCommand;
725
- const deserializeAws_restJson1UpdateRuleCommandError = async (output, context) => {
714
+ exports.de_UpdateRuleCommand = de_UpdateRuleCommand;
715
+ const de_UpdateRuleCommandError = async (output, context) => {
726
716
  const parsedOutput = {
727
717
  ...output,
728
718
  body: await parseErrorBody(output.body, context),
@@ -731,16 +721,16 @@ const deserializeAws_restJson1UpdateRuleCommandError = async (output, context) =
731
721
  switch (errorCode) {
732
722
  case "ConflictException":
733
723
  case "com.amazonaws.rbin#ConflictException":
734
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
724
+ throw await de_ConflictExceptionRes(parsedOutput, context);
735
725
  case "InternalServerException":
736
726
  case "com.amazonaws.rbin#InternalServerException":
737
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
727
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
738
728
  case "ResourceNotFoundException":
739
729
  case "com.amazonaws.rbin#ResourceNotFoundException":
740
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
730
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
741
731
  case "ValidationException":
742
732
  case "com.amazonaws.rbin#ValidationException":
743
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
733
+ throw await de_ValidationExceptionRes(parsedOutput, context);
744
734
  default:
745
735
  const parsedBody = parsedOutput.body;
746
736
  (0, smithy_client_1.throwDefaultError)({
@@ -752,7 +742,7 @@ const deserializeAws_restJson1UpdateRuleCommandError = async (output, context) =
752
742
  }
753
743
  };
754
744
  const map = smithy_client_1.map;
755
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
745
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
756
746
  const contents = map({});
757
747
  const data = parsedOutput.body;
758
748
  if (data.Message != null) {
@@ -767,7 +757,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
767
757
  });
768
758
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
769
759
  };
770
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
760
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
771
761
  const contents = map({});
772
762
  const data = parsedOutput.body;
773
763
  if (data.Message != null) {
@@ -779,7 +769,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
779
769
  });
780
770
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
781
771
  };
782
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
772
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
783
773
  const contents = map({});
784
774
  const data = parsedOutput.body;
785
775
  if (data.Message != null) {
@@ -794,7 +784,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
794
784
  });
795
785
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
796
786
  };
797
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
787
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
798
788
  const contents = map({});
799
789
  const data = parsedOutput.body;
800
790
  if (data.Message != null) {
@@ -809,7 +799,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
809
799
  });
810
800
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
811
801
  };
812
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
802
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
813
803
  const contents = map({});
814
804
  const data = parsedOutput.body;
815
805
  if (data.Message != null) {
@@ -824,116 +814,114 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
824
814
  });
825
815
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
826
816
  };
827
- const serializeAws_restJson1LockConfiguration = (input, context) => {
817
+ const se_LockConfiguration = (input, context) => {
828
818
  return {
829
- ...(input.UnlockDelay != null && { UnlockDelay: serializeAws_restJson1UnlockDelay(input.UnlockDelay, context) }),
819
+ ...(input.UnlockDelay != null && { UnlockDelay: se_UnlockDelay(input.UnlockDelay, context) }),
830
820
  };
831
821
  };
832
- const serializeAws_restJson1ResourceTag = (input, context) => {
822
+ const se_ResourceTag = (input, context) => {
833
823
  return {
834
824
  ...(input.ResourceTagKey != null && { ResourceTagKey: input.ResourceTagKey }),
835
825
  ...(input.ResourceTagValue != null && { ResourceTagValue: input.ResourceTagValue }),
836
826
  };
837
827
  };
838
- const serializeAws_restJson1ResourceTags = (input, context) => {
828
+ const se_ResourceTags = (input, context) => {
839
829
  return input
840
830
  .filter((e) => e != null)
841
831
  .map((entry) => {
842
- return serializeAws_restJson1ResourceTag(entry, context);
832
+ return se_ResourceTag(entry, context);
843
833
  });
844
834
  };
845
- const serializeAws_restJson1RetentionPeriod = (input, context) => {
835
+ const se_RetentionPeriod = (input, context) => {
846
836
  return {
847
837
  ...(input.RetentionPeriodUnit != null && { RetentionPeriodUnit: input.RetentionPeriodUnit }),
848
838
  ...(input.RetentionPeriodValue != null && { RetentionPeriodValue: input.RetentionPeriodValue }),
849
839
  };
850
840
  };
851
- const serializeAws_restJson1Tag = (input, context) => {
841
+ const se_Tag = (input, context) => {
852
842
  return {
853
843
  ...(input.Key != null && { Key: input.Key }),
854
844
  ...(input.Value != null && { Value: input.Value }),
855
845
  };
856
846
  };
857
- const serializeAws_restJson1TagList = (input, context) => {
847
+ const se_TagList = (input, context) => {
858
848
  return input
859
849
  .filter((e) => e != null)
860
850
  .map((entry) => {
861
- return serializeAws_restJson1Tag(entry, context);
851
+ return se_Tag(entry, context);
862
852
  });
863
853
  };
864
- const serializeAws_restJson1UnlockDelay = (input, context) => {
854
+ const se_UnlockDelay = (input, context) => {
865
855
  return {
866
856
  ...(input.UnlockDelayUnit != null && { UnlockDelayUnit: input.UnlockDelayUnit }),
867
857
  ...(input.UnlockDelayValue != null && { UnlockDelayValue: input.UnlockDelayValue }),
868
858
  };
869
859
  };
870
- const deserializeAws_restJson1LockConfiguration = (output, context) => {
860
+ const de_LockConfiguration = (output, context) => {
871
861
  return {
872
- UnlockDelay: output.UnlockDelay != null ? deserializeAws_restJson1UnlockDelay(output.UnlockDelay, context) : undefined,
862
+ UnlockDelay: output.UnlockDelay != null ? de_UnlockDelay(output.UnlockDelay, context) : undefined,
873
863
  };
874
864
  };
875
- const deserializeAws_restJson1ResourceTag = (output, context) => {
865
+ const de_ResourceTag = (output, context) => {
876
866
  return {
877
867
  ResourceTagKey: (0, smithy_client_1.expectString)(output.ResourceTagKey),
878
868
  ResourceTagValue: (0, smithy_client_1.expectString)(output.ResourceTagValue),
879
869
  };
880
870
  };
881
- const deserializeAws_restJson1ResourceTags = (output, context) => {
871
+ const de_ResourceTags = (output, context) => {
882
872
  const retVal = (output || [])
883
873
  .filter((e) => e != null)
884
874
  .map((entry) => {
885
875
  if (entry === null) {
886
876
  return null;
887
877
  }
888
- return deserializeAws_restJson1ResourceTag(entry, context);
878
+ return de_ResourceTag(entry, context);
889
879
  });
890
880
  return retVal;
891
881
  };
892
- const deserializeAws_restJson1RetentionPeriod = (output, context) => {
882
+ const de_RetentionPeriod = (output, context) => {
893
883
  return {
894
884
  RetentionPeriodUnit: (0, smithy_client_1.expectString)(output.RetentionPeriodUnit),
895
885
  RetentionPeriodValue: (0, smithy_client_1.expectInt32)(output.RetentionPeriodValue),
896
886
  };
897
887
  };
898
- const deserializeAws_restJson1RuleSummary = (output, context) => {
888
+ const de_RuleSummary = (output, context) => {
899
889
  return {
900
890
  Description: (0, smithy_client_1.expectString)(output.Description),
901
891
  Identifier: (0, smithy_client_1.expectString)(output.Identifier),
902
892
  LockState: (0, smithy_client_1.expectString)(output.LockState),
903
- RetentionPeriod: output.RetentionPeriod != null
904
- ? deserializeAws_restJson1RetentionPeriod(output.RetentionPeriod, context)
905
- : undefined,
893
+ RetentionPeriod: output.RetentionPeriod != null ? de_RetentionPeriod(output.RetentionPeriod, context) : undefined,
906
894
  };
907
895
  };
908
- const deserializeAws_restJson1RuleSummaryList = (output, context) => {
896
+ const de_RuleSummaryList = (output, context) => {
909
897
  const retVal = (output || [])
910
898
  .filter((e) => e != null)
911
899
  .map((entry) => {
912
900
  if (entry === null) {
913
901
  return null;
914
902
  }
915
- return deserializeAws_restJson1RuleSummary(entry, context);
903
+ return de_RuleSummary(entry, context);
916
904
  });
917
905
  return retVal;
918
906
  };
919
- const deserializeAws_restJson1Tag = (output, context) => {
907
+ const de_Tag = (output, context) => {
920
908
  return {
921
909
  Key: (0, smithy_client_1.expectString)(output.Key),
922
910
  Value: (0, smithy_client_1.expectString)(output.Value),
923
911
  };
924
912
  };
925
- const deserializeAws_restJson1TagList = (output, context) => {
913
+ const de_TagList = (output, context) => {
926
914
  const retVal = (output || [])
927
915
  .filter((e) => e != null)
928
916
  .map((entry) => {
929
917
  if (entry === null) {
930
918
  return null;
931
919
  }
932
- return deserializeAws_restJson1Tag(entry, context);
920
+ return de_Tag(entry, context);
933
921
  });
934
922
  return retVal;
935
923
  };
936
- const deserializeAws_restJson1UnlockDelay = (output, context) => {
924
+ const de_UnlockDelay = (output, context) => {
937
925
  return {
938
926
  UnlockDelayUnit: (0, smithy_client_1.expectString)(output.UnlockDelayUnit),
939
927
  UnlockDelayValue: (0, smithy_client_1.expectInt32)(output.UnlockDelayValue),