@aws-sdk/client-scheduler 3.306.0 → 3.310.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.
Files changed (29) hide show
  1. package/dist-cjs/commands/CreateScheduleCommand.js +2 -2
  2. package/dist-cjs/commands/CreateScheduleGroupCommand.js +2 -2
  3. package/dist-cjs/commands/DeleteScheduleCommand.js +2 -2
  4. package/dist-cjs/commands/DeleteScheduleGroupCommand.js +2 -2
  5. package/dist-cjs/commands/GetScheduleCommand.js +2 -2
  6. package/dist-cjs/commands/GetScheduleGroupCommand.js +2 -2
  7. package/dist-cjs/commands/ListScheduleGroupsCommand.js +2 -2
  8. package/dist-cjs/commands/ListSchedulesCommand.js +2 -2
  9. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  10. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  11. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  12. package/dist-cjs/commands/UpdateScheduleCommand.js +2 -2
  13. package/dist-cjs/protocols/Aws_restJson1.js +247 -269
  14. package/dist-es/commands/CreateScheduleCommand.js +3 -3
  15. package/dist-es/commands/CreateScheduleGroupCommand.js +3 -3
  16. package/dist-es/commands/DeleteScheduleCommand.js +3 -3
  17. package/dist-es/commands/DeleteScheduleGroupCommand.js +3 -3
  18. package/dist-es/commands/GetScheduleCommand.js +3 -3
  19. package/dist-es/commands/GetScheduleGroupCommand.js +3 -3
  20. package/dist-es/commands/ListScheduleGroupsCommand.js +3 -3
  21. package/dist-es/commands/ListSchedulesCommand.js +3 -3
  22. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  23. package/dist-es/commands/TagResourceCommand.js +3 -3
  24. package/dist-es/commands/UntagResourceCommand.js +3 -3
  25. package/dist-es/commands/UpdateScheduleCommand.js +3 -3
  26. package/dist-es/protocols/Aws_restJson1.js +222 -244
  27. package/dist-types/protocols/Aws_restJson1.d.ts +96 -24
  28. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -24
  29. package/package.json +35 -35
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateScheduleCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSchedulesCommand = exports.deserializeAws_restJson1ListScheduleGroupsCommand = exports.deserializeAws_restJson1GetScheduleGroupCommand = exports.deserializeAws_restJson1GetScheduleCommand = exports.deserializeAws_restJson1DeleteScheduleGroupCommand = exports.deserializeAws_restJson1DeleteScheduleCommand = exports.deserializeAws_restJson1CreateScheduleGroupCommand = exports.deserializeAws_restJson1CreateScheduleCommand = exports.serializeAws_restJson1UpdateScheduleCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSchedulesCommand = exports.serializeAws_restJson1ListScheduleGroupsCommand = exports.serializeAws_restJson1GetScheduleGroupCommand = exports.serializeAws_restJson1GetScheduleCommand = exports.serializeAws_restJson1DeleteScheduleGroupCommand = exports.serializeAws_restJson1DeleteScheduleCommand = exports.serializeAws_restJson1CreateScheduleGroupCommand = exports.serializeAws_restJson1CreateScheduleCommand = void 0;
3
+ exports.de_UpdateScheduleCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSchedulesCommand = exports.de_ListScheduleGroupsCommand = exports.de_GetScheduleGroupCommand = exports.de_GetScheduleCommand = exports.de_DeleteScheduleGroupCommand = exports.de_DeleteScheduleCommand = exports.de_CreateScheduleGroupCommand = exports.de_CreateScheduleCommand = exports.se_UpdateScheduleCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSchedulesCommand = exports.se_ListScheduleGroupsCommand = exports.se_GetScheduleGroupCommand = exports.se_GetScheduleCommand = exports.se_DeleteScheduleGroupCommand = exports.se_DeleteScheduleCommand = exports.se_CreateScheduleGroupCommand = exports.se_CreateScheduleCommand = 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 uuid_1 = require("uuid");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const SchedulerServiceException_1 = require("../models/SchedulerServiceException");
9
- const serializeAws_restJson1CreateScheduleCommand = async (input, context) => {
9
+ const se_CreateScheduleCommand = async (input, context) => {
10
10
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
11
  const headers = {
12
12
  "content-type": "application/json",
@@ -19,7 +19,7 @@ const serializeAws_restJson1CreateScheduleCommand = async (input, context) => {
19
19
  ...(input.Description != null && { Description: input.Description }),
20
20
  ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
21
21
  ...(input.FlexibleTimeWindow != null && {
22
- FlexibleTimeWindow: serializeAws_restJson1FlexibleTimeWindow(input.FlexibleTimeWindow, context),
22
+ FlexibleTimeWindow: se_FlexibleTimeWindow(input.FlexibleTimeWindow, context),
23
23
  }),
24
24
  ...(input.GroupName != null && { GroupName: input.GroupName }),
25
25
  ...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
@@ -27,7 +27,7 @@ const serializeAws_restJson1CreateScheduleCommand = async (input, context) => {
27
27
  ...(input.ScheduleExpressionTimezone != null && { ScheduleExpressionTimezone: input.ScheduleExpressionTimezone }),
28
28
  ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
29
29
  ...(input.State != null && { State: input.State }),
30
- ...(input.Target != null && { Target: serializeAws_restJson1Target(input.Target, context) }),
30
+ ...(input.Target != null && { Target: se_Target(input.Target, context) }),
31
31
  });
32
32
  return new protocol_http_1.HttpRequest({
33
33
  protocol,
@@ -39,8 +39,8 @@ const serializeAws_restJson1CreateScheduleCommand = async (input, context) => {
39
39
  body,
40
40
  });
41
41
  };
42
- exports.serializeAws_restJson1CreateScheduleCommand = serializeAws_restJson1CreateScheduleCommand;
43
- const serializeAws_restJson1CreateScheduleGroupCommand = async (input, context) => {
42
+ exports.se_CreateScheduleCommand = se_CreateScheduleCommand;
43
+ const se_CreateScheduleGroupCommand = async (input, context) => {
44
44
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
45
45
  const headers = {
46
46
  "content-type": "application/json",
@@ -50,7 +50,7 @@ const serializeAws_restJson1CreateScheduleGroupCommand = async (input, context)
50
50
  let body;
51
51
  body = JSON.stringify({
52
52
  ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
53
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
53
+ ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
54
54
  });
55
55
  return new protocol_http_1.HttpRequest({
56
56
  protocol,
@@ -62,8 +62,8 @@ const serializeAws_restJson1CreateScheduleGroupCommand = async (input, context)
62
62
  body,
63
63
  });
64
64
  };
65
- exports.serializeAws_restJson1CreateScheduleGroupCommand = serializeAws_restJson1CreateScheduleGroupCommand;
66
- const serializeAws_restJson1DeleteScheduleCommand = async (input, context) => {
65
+ exports.se_CreateScheduleGroupCommand = se_CreateScheduleGroupCommand;
66
+ const se_DeleteScheduleCommand = async (input, context) => {
67
67
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
68
68
  const headers = {};
69
69
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
@@ -84,8 +84,8 @@ const serializeAws_restJson1DeleteScheduleCommand = async (input, context) => {
84
84
  body,
85
85
  });
86
86
  };
87
- exports.serializeAws_restJson1DeleteScheduleCommand = serializeAws_restJson1DeleteScheduleCommand;
88
- const serializeAws_restJson1DeleteScheduleGroupCommand = async (input, context) => {
87
+ exports.se_DeleteScheduleCommand = se_DeleteScheduleCommand;
88
+ const se_DeleteScheduleGroupCommand = async (input, context) => {
89
89
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
90
90
  const headers = {};
91
91
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedule-groups/{Name}";
@@ -105,8 +105,8 @@ const serializeAws_restJson1DeleteScheduleGroupCommand = async (input, context)
105
105
  body,
106
106
  });
107
107
  };
108
- exports.serializeAws_restJson1DeleteScheduleGroupCommand = serializeAws_restJson1DeleteScheduleGroupCommand;
109
- const serializeAws_restJson1GetScheduleCommand = async (input, context) => {
108
+ exports.se_DeleteScheduleGroupCommand = se_DeleteScheduleGroupCommand;
109
+ const se_GetScheduleCommand = async (input, context) => {
110
110
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
111
111
  const headers = {};
112
112
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
@@ -126,8 +126,8 @@ const serializeAws_restJson1GetScheduleCommand = async (input, context) => {
126
126
  body,
127
127
  });
128
128
  };
129
- exports.serializeAws_restJson1GetScheduleCommand = serializeAws_restJson1GetScheduleCommand;
130
- const serializeAws_restJson1GetScheduleGroupCommand = async (input, context) => {
129
+ exports.se_GetScheduleCommand = se_GetScheduleCommand;
130
+ const se_GetScheduleGroupCommand = async (input, context) => {
131
131
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
132
132
  const headers = {};
133
133
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedule-groups/{Name}";
@@ -143,8 +143,8 @@ const serializeAws_restJson1GetScheduleGroupCommand = async (input, context) =>
143
143
  body,
144
144
  });
145
145
  };
146
- exports.serializeAws_restJson1GetScheduleGroupCommand = serializeAws_restJson1GetScheduleGroupCommand;
147
- const serializeAws_restJson1ListScheduleGroupsCommand = async (input, context) => {
146
+ exports.se_GetScheduleGroupCommand = se_GetScheduleGroupCommand;
147
+ const se_ListScheduleGroupsCommand = async (input, context) => {
148
148
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
149
149
  const headers = {};
150
150
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedule-groups";
@@ -165,8 +165,8 @@ const serializeAws_restJson1ListScheduleGroupsCommand = async (input, context) =
165
165
  body,
166
166
  });
167
167
  };
168
- exports.serializeAws_restJson1ListScheduleGroupsCommand = serializeAws_restJson1ListScheduleGroupsCommand;
169
- const serializeAws_restJson1ListSchedulesCommand = async (input, context) => {
168
+ exports.se_ListScheduleGroupsCommand = se_ListScheduleGroupsCommand;
169
+ const se_ListSchedulesCommand = async (input, context) => {
170
170
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
171
171
  const headers = {};
172
172
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules";
@@ -189,8 +189,8 @@ const serializeAws_restJson1ListSchedulesCommand = async (input, context) => {
189
189
  body,
190
190
  });
191
191
  };
192
- exports.serializeAws_restJson1ListSchedulesCommand = serializeAws_restJson1ListSchedulesCommand;
193
- const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
192
+ exports.se_ListSchedulesCommand = se_ListSchedulesCommand;
193
+ const se_ListTagsForResourceCommand = async (input, context) => {
194
194
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
195
195
  const headers = {};
196
196
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -206,8 +206,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
206
206
  body,
207
207
  });
208
208
  };
209
- exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
210
- const serializeAws_restJson1TagResourceCommand = async (input, context) => {
209
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
210
+ const se_TagResourceCommand = async (input, context) => {
211
211
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
212
212
  const headers = {
213
213
  "content-type": "application/json",
@@ -216,7 +216,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
216
216
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
217
217
  let body;
218
218
  body = JSON.stringify({
219
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
219
+ ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
220
220
  });
221
221
  return new protocol_http_1.HttpRequest({
222
222
  protocol,
@@ -228,8 +228,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
228
228
  body,
229
229
  });
230
230
  };
231
- exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
232
- const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
231
+ exports.se_TagResourceCommand = se_TagResourceCommand;
232
+ const se_UntagResourceCommand = async (input, context) => {
233
233
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
234
234
  const headers = {};
235
235
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -252,8 +252,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
252
252
  body,
253
253
  });
254
254
  };
255
- exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
256
- const serializeAws_restJson1UpdateScheduleCommand = async (input, context) => {
255
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
256
+ const se_UpdateScheduleCommand = async (input, context) => {
257
257
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
258
258
  const headers = {
259
259
  "content-type": "application/json",
@@ -266,7 +266,7 @@ const serializeAws_restJson1UpdateScheduleCommand = async (input, context) => {
266
266
  ...(input.Description != null && { Description: input.Description }),
267
267
  ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
268
268
  ...(input.FlexibleTimeWindow != null && {
269
- FlexibleTimeWindow: serializeAws_restJson1FlexibleTimeWindow(input.FlexibleTimeWindow, context),
269
+ FlexibleTimeWindow: se_FlexibleTimeWindow(input.FlexibleTimeWindow, context),
270
270
  }),
271
271
  ...(input.GroupName != null && { GroupName: input.GroupName }),
272
272
  ...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
@@ -274,7 +274,7 @@ const serializeAws_restJson1UpdateScheduleCommand = async (input, context) => {
274
274
  ...(input.ScheduleExpressionTimezone != null && { ScheduleExpressionTimezone: input.ScheduleExpressionTimezone }),
275
275
  ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
276
276
  ...(input.State != null && { State: input.State }),
277
- ...(input.Target != null && { Target: serializeAws_restJson1Target(input.Target, context) }),
277
+ ...(input.Target != null && { Target: se_Target(input.Target, context) }),
278
278
  });
279
279
  return new protocol_http_1.HttpRequest({
280
280
  protocol,
@@ -286,10 +286,10 @@ const serializeAws_restJson1UpdateScheduleCommand = async (input, context) => {
286
286
  body,
287
287
  });
288
288
  };
289
- exports.serializeAws_restJson1UpdateScheduleCommand = serializeAws_restJson1UpdateScheduleCommand;
290
- const deserializeAws_restJson1CreateScheduleCommand = async (output, context) => {
289
+ exports.se_UpdateScheduleCommand = se_UpdateScheduleCommand;
290
+ const de_CreateScheduleCommand = async (output, context) => {
291
291
  if (output.statusCode !== 200 && output.statusCode >= 300) {
292
- return deserializeAws_restJson1CreateScheduleCommandError(output, context);
292
+ return de_CreateScheduleCommandError(output, context);
293
293
  }
294
294
  const contents = map({
295
295
  $metadata: deserializeMetadata(output),
@@ -300,8 +300,8 @@ const deserializeAws_restJson1CreateScheduleCommand = async (output, context) =>
300
300
  }
301
301
  return contents;
302
302
  };
303
- exports.deserializeAws_restJson1CreateScheduleCommand = deserializeAws_restJson1CreateScheduleCommand;
304
- const deserializeAws_restJson1CreateScheduleCommandError = async (output, context) => {
303
+ exports.de_CreateScheduleCommand = de_CreateScheduleCommand;
304
+ const de_CreateScheduleCommandError = async (output, context) => {
305
305
  const parsedOutput = {
306
306
  ...output,
307
307
  body: await parseErrorBody(output.body, context),
@@ -310,22 +310,22 @@ const deserializeAws_restJson1CreateScheduleCommandError = async (output, contex
310
310
  switch (errorCode) {
311
311
  case "ConflictException":
312
312
  case "com.amazonaws.scheduler#ConflictException":
313
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
313
+ throw await de_ConflictExceptionRes(parsedOutput, context);
314
314
  case "InternalServerException":
315
315
  case "com.amazonaws.scheduler#InternalServerException":
316
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
316
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
317
317
  case "ResourceNotFoundException":
318
318
  case "com.amazonaws.scheduler#ResourceNotFoundException":
319
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
319
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
320
320
  case "ServiceQuotaExceededException":
321
321
  case "com.amazonaws.scheduler#ServiceQuotaExceededException":
322
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
322
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
323
323
  case "ThrottlingException":
324
324
  case "com.amazonaws.scheduler#ThrottlingException":
325
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
325
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
326
326
  case "ValidationException":
327
327
  case "com.amazonaws.scheduler#ValidationException":
328
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
328
+ throw await de_ValidationExceptionRes(parsedOutput, context);
329
329
  default:
330
330
  const parsedBody = parsedOutput.body;
331
331
  (0, smithy_client_1.throwDefaultError)({
@@ -336,9 +336,9 @@ const deserializeAws_restJson1CreateScheduleCommandError = async (output, contex
336
336
  });
337
337
  }
338
338
  };
339
- const deserializeAws_restJson1CreateScheduleGroupCommand = async (output, context) => {
339
+ const de_CreateScheduleGroupCommand = async (output, context) => {
340
340
  if (output.statusCode !== 200 && output.statusCode >= 300) {
341
- return deserializeAws_restJson1CreateScheduleGroupCommandError(output, context);
341
+ return de_CreateScheduleGroupCommandError(output, context);
342
342
  }
343
343
  const contents = map({
344
344
  $metadata: deserializeMetadata(output),
@@ -349,8 +349,8 @@ const deserializeAws_restJson1CreateScheduleGroupCommand = async (output, contex
349
349
  }
350
350
  return contents;
351
351
  };
352
- exports.deserializeAws_restJson1CreateScheduleGroupCommand = deserializeAws_restJson1CreateScheduleGroupCommand;
353
- const deserializeAws_restJson1CreateScheduleGroupCommandError = async (output, context) => {
352
+ exports.de_CreateScheduleGroupCommand = de_CreateScheduleGroupCommand;
353
+ const de_CreateScheduleGroupCommandError = async (output, context) => {
354
354
  const parsedOutput = {
355
355
  ...output,
356
356
  body: await parseErrorBody(output.body, context),
@@ -359,19 +359,19 @@ const deserializeAws_restJson1CreateScheduleGroupCommandError = async (output, c
359
359
  switch (errorCode) {
360
360
  case "ConflictException":
361
361
  case "com.amazonaws.scheduler#ConflictException":
362
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
362
+ throw await de_ConflictExceptionRes(parsedOutput, context);
363
363
  case "InternalServerException":
364
364
  case "com.amazonaws.scheduler#InternalServerException":
365
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
365
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
366
366
  case "ServiceQuotaExceededException":
367
367
  case "com.amazonaws.scheduler#ServiceQuotaExceededException":
368
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
368
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
369
369
  case "ThrottlingException":
370
370
  case "com.amazonaws.scheduler#ThrottlingException":
371
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
371
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
372
372
  case "ValidationException":
373
373
  case "com.amazonaws.scheduler#ValidationException":
374
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
374
+ throw await de_ValidationExceptionRes(parsedOutput, context);
375
375
  default:
376
376
  const parsedBody = parsedOutput.body;
377
377
  (0, smithy_client_1.throwDefaultError)({
@@ -382,9 +382,9 @@ const deserializeAws_restJson1CreateScheduleGroupCommandError = async (output, c
382
382
  });
383
383
  }
384
384
  };
385
- const deserializeAws_restJson1DeleteScheduleCommand = async (output, context) => {
385
+ const de_DeleteScheduleCommand = async (output, context) => {
386
386
  if (output.statusCode !== 200 && output.statusCode >= 300) {
387
- return deserializeAws_restJson1DeleteScheduleCommandError(output, context);
387
+ return de_DeleteScheduleCommandError(output, context);
388
388
  }
389
389
  const contents = map({
390
390
  $metadata: deserializeMetadata(output),
@@ -392,8 +392,8 @@ const deserializeAws_restJson1DeleteScheduleCommand = async (output, context) =>
392
392
  await collectBody(output.body, context);
393
393
  return contents;
394
394
  };
395
- exports.deserializeAws_restJson1DeleteScheduleCommand = deserializeAws_restJson1DeleteScheduleCommand;
396
- const deserializeAws_restJson1DeleteScheduleCommandError = async (output, context) => {
395
+ exports.de_DeleteScheduleCommand = de_DeleteScheduleCommand;
396
+ const de_DeleteScheduleCommandError = async (output, context) => {
397
397
  const parsedOutput = {
398
398
  ...output,
399
399
  body: await parseErrorBody(output.body, context),
@@ -402,19 +402,19 @@ const deserializeAws_restJson1DeleteScheduleCommandError = async (output, contex
402
402
  switch (errorCode) {
403
403
  case "ConflictException":
404
404
  case "com.amazonaws.scheduler#ConflictException":
405
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
405
+ throw await de_ConflictExceptionRes(parsedOutput, context);
406
406
  case "InternalServerException":
407
407
  case "com.amazonaws.scheduler#InternalServerException":
408
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
408
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
409
409
  case "ResourceNotFoundException":
410
410
  case "com.amazonaws.scheduler#ResourceNotFoundException":
411
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
411
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
412
412
  case "ThrottlingException":
413
413
  case "com.amazonaws.scheduler#ThrottlingException":
414
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
414
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
415
415
  case "ValidationException":
416
416
  case "com.amazonaws.scheduler#ValidationException":
417
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
417
+ throw await de_ValidationExceptionRes(parsedOutput, context);
418
418
  default:
419
419
  const parsedBody = parsedOutput.body;
420
420
  (0, smithy_client_1.throwDefaultError)({
@@ -425,9 +425,9 @@ const deserializeAws_restJson1DeleteScheduleCommandError = async (output, contex
425
425
  });
426
426
  }
427
427
  };
428
- const deserializeAws_restJson1DeleteScheduleGroupCommand = async (output, context) => {
428
+ const de_DeleteScheduleGroupCommand = async (output, context) => {
429
429
  if (output.statusCode !== 200 && output.statusCode >= 300) {
430
- return deserializeAws_restJson1DeleteScheduleGroupCommandError(output, context);
430
+ return de_DeleteScheduleGroupCommandError(output, context);
431
431
  }
432
432
  const contents = map({
433
433
  $metadata: deserializeMetadata(output),
@@ -435,8 +435,8 @@ const deserializeAws_restJson1DeleteScheduleGroupCommand = async (output, contex
435
435
  await collectBody(output.body, context);
436
436
  return contents;
437
437
  };
438
- exports.deserializeAws_restJson1DeleteScheduleGroupCommand = deserializeAws_restJson1DeleteScheduleGroupCommand;
439
- const deserializeAws_restJson1DeleteScheduleGroupCommandError = async (output, context) => {
438
+ exports.de_DeleteScheduleGroupCommand = de_DeleteScheduleGroupCommand;
439
+ const de_DeleteScheduleGroupCommandError = async (output, context) => {
440
440
  const parsedOutput = {
441
441
  ...output,
442
442
  body: await parseErrorBody(output.body, context),
@@ -445,19 +445,19 @@ const deserializeAws_restJson1DeleteScheduleGroupCommandError = async (output, c
445
445
  switch (errorCode) {
446
446
  case "ConflictException":
447
447
  case "com.amazonaws.scheduler#ConflictException":
448
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
448
+ throw await de_ConflictExceptionRes(parsedOutput, context);
449
449
  case "InternalServerException":
450
450
  case "com.amazonaws.scheduler#InternalServerException":
451
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
451
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
452
452
  case "ResourceNotFoundException":
453
453
  case "com.amazonaws.scheduler#ResourceNotFoundException":
454
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
454
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
455
455
  case "ThrottlingException":
456
456
  case "com.amazonaws.scheduler#ThrottlingException":
457
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
457
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
458
458
  case "ValidationException":
459
459
  case "com.amazonaws.scheduler#ValidationException":
460
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
460
+ throw await de_ValidationExceptionRes(parsedOutput, context);
461
461
  default:
462
462
  const parsedBody = parsedOutput.body;
463
463
  (0, smithy_client_1.throwDefaultError)({
@@ -468,9 +468,9 @@ const deserializeAws_restJson1DeleteScheduleGroupCommandError = async (output, c
468
468
  });
469
469
  }
470
470
  };
471
- const deserializeAws_restJson1GetScheduleCommand = async (output, context) => {
471
+ const de_GetScheduleCommand = async (output, context) => {
472
472
  if (output.statusCode !== 200 && output.statusCode >= 300) {
473
- return deserializeAws_restJson1GetScheduleCommandError(output, context);
473
+ return de_GetScheduleCommandError(output, context);
474
474
  }
475
475
  const contents = map({
476
476
  $metadata: deserializeMetadata(output),
@@ -489,7 +489,7 @@ const deserializeAws_restJson1GetScheduleCommand = async (output, context) => {
489
489
  contents.EndDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.EndDate)));
490
490
  }
491
491
  if (data.FlexibleTimeWindow != null) {
492
- contents.FlexibleTimeWindow = deserializeAws_restJson1FlexibleTimeWindow(data.FlexibleTimeWindow, context);
492
+ contents.FlexibleTimeWindow = de_FlexibleTimeWindow(data.FlexibleTimeWindow, context);
493
493
  }
494
494
  if (data.GroupName != null) {
495
495
  contents.GroupName = (0, smithy_client_1.expectString)(data.GroupName);
@@ -516,12 +516,12 @@ const deserializeAws_restJson1GetScheduleCommand = async (output, context) => {
516
516
  contents.State = (0, smithy_client_1.expectString)(data.State);
517
517
  }
518
518
  if (data.Target != null) {
519
- contents.Target = deserializeAws_restJson1Target(data.Target, context);
519
+ contents.Target = de_Target(data.Target, context);
520
520
  }
521
521
  return contents;
522
522
  };
523
- exports.deserializeAws_restJson1GetScheduleCommand = deserializeAws_restJson1GetScheduleCommand;
524
- const deserializeAws_restJson1GetScheduleCommandError = async (output, context) => {
523
+ exports.de_GetScheduleCommand = de_GetScheduleCommand;
524
+ const de_GetScheduleCommandError = async (output, context) => {
525
525
  const parsedOutput = {
526
526
  ...output,
527
527
  body: await parseErrorBody(output.body, context),
@@ -530,16 +530,16 @@ const deserializeAws_restJson1GetScheduleCommandError = async (output, context)
530
530
  switch (errorCode) {
531
531
  case "InternalServerException":
532
532
  case "com.amazonaws.scheduler#InternalServerException":
533
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
533
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
534
534
  case "ResourceNotFoundException":
535
535
  case "com.amazonaws.scheduler#ResourceNotFoundException":
536
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
536
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
537
537
  case "ThrottlingException":
538
538
  case "com.amazonaws.scheduler#ThrottlingException":
539
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
539
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
540
540
  case "ValidationException":
541
541
  case "com.amazonaws.scheduler#ValidationException":
542
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
542
+ throw await de_ValidationExceptionRes(parsedOutput, context);
543
543
  default:
544
544
  const parsedBody = parsedOutput.body;
545
545
  (0, smithy_client_1.throwDefaultError)({
@@ -550,9 +550,9 @@ const deserializeAws_restJson1GetScheduleCommandError = async (output, context)
550
550
  });
551
551
  }
552
552
  };
553
- const deserializeAws_restJson1GetScheduleGroupCommand = async (output, context) => {
553
+ const de_GetScheduleGroupCommand = async (output, context) => {
554
554
  if (output.statusCode !== 200 && output.statusCode >= 300) {
555
- return deserializeAws_restJson1GetScheduleGroupCommandError(output, context);
555
+ return de_GetScheduleGroupCommandError(output, context);
556
556
  }
557
557
  const contents = map({
558
558
  $metadata: deserializeMetadata(output),
@@ -575,8 +575,8 @@ const deserializeAws_restJson1GetScheduleGroupCommand = async (output, context)
575
575
  }
576
576
  return contents;
577
577
  };
578
- exports.deserializeAws_restJson1GetScheduleGroupCommand = deserializeAws_restJson1GetScheduleGroupCommand;
579
- const deserializeAws_restJson1GetScheduleGroupCommandError = async (output, context) => {
578
+ exports.de_GetScheduleGroupCommand = de_GetScheduleGroupCommand;
579
+ const de_GetScheduleGroupCommandError = async (output, context) => {
580
580
  const parsedOutput = {
581
581
  ...output,
582
582
  body: await parseErrorBody(output.body, context),
@@ -585,16 +585,16 @@ const deserializeAws_restJson1GetScheduleGroupCommandError = async (output, cont
585
585
  switch (errorCode) {
586
586
  case "InternalServerException":
587
587
  case "com.amazonaws.scheduler#InternalServerException":
588
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
588
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
589
589
  case "ResourceNotFoundException":
590
590
  case "com.amazonaws.scheduler#ResourceNotFoundException":
591
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
591
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
592
592
  case "ThrottlingException":
593
593
  case "com.amazonaws.scheduler#ThrottlingException":
594
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
594
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
595
595
  case "ValidationException":
596
596
  case "com.amazonaws.scheduler#ValidationException":
597
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
597
+ throw await de_ValidationExceptionRes(parsedOutput, context);
598
598
  default:
599
599
  const parsedBody = parsedOutput.body;
600
600
  (0, smithy_client_1.throwDefaultError)({
@@ -605,9 +605,9 @@ const deserializeAws_restJson1GetScheduleGroupCommandError = async (output, cont
605
605
  });
606
606
  }
607
607
  };
608
- const deserializeAws_restJson1ListScheduleGroupsCommand = async (output, context) => {
608
+ const de_ListScheduleGroupsCommand = async (output, context) => {
609
609
  if (output.statusCode !== 200 && output.statusCode >= 300) {
610
- return deserializeAws_restJson1ListScheduleGroupsCommandError(output, context);
610
+ return de_ListScheduleGroupsCommandError(output, context);
611
611
  }
612
612
  const contents = map({
613
613
  $metadata: deserializeMetadata(output),
@@ -617,12 +617,12 @@ const deserializeAws_restJson1ListScheduleGroupsCommand = async (output, context
617
617
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
618
618
  }
619
619
  if (data.ScheduleGroups != null) {
620
- contents.ScheduleGroups = deserializeAws_restJson1ScheduleGroupList(data.ScheduleGroups, context);
620
+ contents.ScheduleGroups = de_ScheduleGroupList(data.ScheduleGroups, context);
621
621
  }
622
622
  return contents;
623
623
  };
624
- exports.deserializeAws_restJson1ListScheduleGroupsCommand = deserializeAws_restJson1ListScheduleGroupsCommand;
625
- const deserializeAws_restJson1ListScheduleGroupsCommandError = async (output, context) => {
624
+ exports.de_ListScheduleGroupsCommand = de_ListScheduleGroupsCommand;
625
+ const de_ListScheduleGroupsCommandError = async (output, context) => {
626
626
  const parsedOutput = {
627
627
  ...output,
628
628
  body: await parseErrorBody(output.body, context),
@@ -631,13 +631,13 @@ const deserializeAws_restJson1ListScheduleGroupsCommandError = async (output, co
631
631
  switch (errorCode) {
632
632
  case "InternalServerException":
633
633
  case "com.amazonaws.scheduler#InternalServerException":
634
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
634
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
635
635
  case "ThrottlingException":
636
636
  case "com.amazonaws.scheduler#ThrottlingException":
637
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
637
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
638
638
  case "ValidationException":
639
639
  case "com.amazonaws.scheduler#ValidationException":
640
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
640
+ throw await de_ValidationExceptionRes(parsedOutput, context);
641
641
  default:
642
642
  const parsedBody = parsedOutput.body;
643
643
  (0, smithy_client_1.throwDefaultError)({
@@ -648,9 +648,9 @@ const deserializeAws_restJson1ListScheduleGroupsCommandError = async (output, co
648
648
  });
649
649
  }
650
650
  };
651
- const deserializeAws_restJson1ListSchedulesCommand = async (output, context) => {
651
+ const de_ListSchedulesCommand = async (output, context) => {
652
652
  if (output.statusCode !== 200 && output.statusCode >= 300) {
653
- return deserializeAws_restJson1ListSchedulesCommandError(output, context);
653
+ return de_ListSchedulesCommandError(output, context);
654
654
  }
655
655
  const contents = map({
656
656
  $metadata: deserializeMetadata(output),
@@ -660,12 +660,12 @@ const deserializeAws_restJson1ListSchedulesCommand = async (output, context) =>
660
660
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
661
661
  }
662
662
  if (data.Schedules != null) {
663
- contents.Schedules = deserializeAws_restJson1ScheduleList(data.Schedules, context);
663
+ contents.Schedules = de_ScheduleList(data.Schedules, context);
664
664
  }
665
665
  return contents;
666
666
  };
667
- exports.deserializeAws_restJson1ListSchedulesCommand = deserializeAws_restJson1ListSchedulesCommand;
668
- const deserializeAws_restJson1ListSchedulesCommandError = async (output, context) => {
667
+ exports.de_ListSchedulesCommand = de_ListSchedulesCommand;
668
+ const de_ListSchedulesCommandError = async (output, context) => {
669
669
  const parsedOutput = {
670
670
  ...output,
671
671
  body: await parseErrorBody(output.body, context),
@@ -674,16 +674,16 @@ const deserializeAws_restJson1ListSchedulesCommandError = async (output, context
674
674
  switch (errorCode) {
675
675
  case "InternalServerException":
676
676
  case "com.amazonaws.scheduler#InternalServerException":
677
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
677
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
678
678
  case "ResourceNotFoundException":
679
679
  case "com.amazonaws.scheduler#ResourceNotFoundException":
680
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
680
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
681
681
  case "ThrottlingException":
682
682
  case "com.amazonaws.scheduler#ThrottlingException":
683
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
683
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
684
684
  case "ValidationException":
685
685
  case "com.amazonaws.scheduler#ValidationException":
686
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
686
+ throw await de_ValidationExceptionRes(parsedOutput, context);
687
687
  default:
688
688
  const parsedBody = parsedOutput.body;
689
689
  (0, smithy_client_1.throwDefaultError)({
@@ -694,21 +694,21 @@ const deserializeAws_restJson1ListSchedulesCommandError = async (output, context
694
694
  });
695
695
  }
696
696
  };
697
- const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
697
+ const de_ListTagsForResourceCommand = async (output, context) => {
698
698
  if (output.statusCode !== 200 && output.statusCode >= 300) {
699
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
699
+ return de_ListTagsForResourceCommandError(output, context);
700
700
  }
701
701
  const contents = map({
702
702
  $metadata: deserializeMetadata(output),
703
703
  });
704
704
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
705
705
  if (data.Tags != null) {
706
- contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
706
+ contents.Tags = de_TagList(data.Tags, context);
707
707
  }
708
708
  return contents;
709
709
  };
710
- exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
711
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
710
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
711
+ const de_ListTagsForResourceCommandError = async (output, context) => {
712
712
  const parsedOutput = {
713
713
  ...output,
714
714
  body: await parseErrorBody(output.body, context),
@@ -717,16 +717,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
717
717
  switch (errorCode) {
718
718
  case "InternalServerException":
719
719
  case "com.amazonaws.scheduler#InternalServerException":
720
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
720
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
721
721
  case "ResourceNotFoundException":
722
722
  case "com.amazonaws.scheduler#ResourceNotFoundException":
723
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
723
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
724
724
  case "ThrottlingException":
725
725
  case "com.amazonaws.scheduler#ThrottlingException":
726
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
726
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
727
727
  case "ValidationException":
728
728
  case "com.amazonaws.scheduler#ValidationException":
729
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
729
+ throw await de_ValidationExceptionRes(parsedOutput, context);
730
730
  default:
731
731
  const parsedBody = parsedOutput.body;
732
732
  (0, smithy_client_1.throwDefaultError)({
@@ -737,9 +737,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
737
737
  });
738
738
  }
739
739
  };
740
- const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
740
+ const de_TagResourceCommand = async (output, context) => {
741
741
  if (output.statusCode !== 200 && output.statusCode >= 300) {
742
- return deserializeAws_restJson1TagResourceCommandError(output, context);
742
+ return de_TagResourceCommandError(output, context);
743
743
  }
744
744
  const contents = map({
745
745
  $metadata: deserializeMetadata(output),
@@ -747,8 +747,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
747
747
  await collectBody(output.body, context);
748
748
  return contents;
749
749
  };
750
- exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
751
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
750
+ exports.de_TagResourceCommand = de_TagResourceCommand;
751
+ const de_TagResourceCommandError = async (output, context) => {
752
752
  const parsedOutput = {
753
753
  ...output,
754
754
  body: await parseErrorBody(output.body, context),
@@ -757,19 +757,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
757
757
  switch (errorCode) {
758
758
  case "ConflictException":
759
759
  case "com.amazonaws.scheduler#ConflictException":
760
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
760
+ throw await de_ConflictExceptionRes(parsedOutput, context);
761
761
  case "InternalServerException":
762
762
  case "com.amazonaws.scheduler#InternalServerException":
763
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
763
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
764
764
  case "ResourceNotFoundException":
765
765
  case "com.amazonaws.scheduler#ResourceNotFoundException":
766
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
766
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
767
767
  case "ThrottlingException":
768
768
  case "com.amazonaws.scheduler#ThrottlingException":
769
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
769
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
770
770
  case "ValidationException":
771
771
  case "com.amazonaws.scheduler#ValidationException":
772
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
772
+ throw await de_ValidationExceptionRes(parsedOutput, context);
773
773
  default:
774
774
  const parsedBody = parsedOutput.body;
775
775
  (0, smithy_client_1.throwDefaultError)({
@@ -780,9 +780,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
780
780
  });
781
781
  }
782
782
  };
783
- const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
783
+ const de_UntagResourceCommand = async (output, context) => {
784
784
  if (output.statusCode !== 200 && output.statusCode >= 300) {
785
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
785
+ return de_UntagResourceCommandError(output, context);
786
786
  }
787
787
  const contents = map({
788
788
  $metadata: deserializeMetadata(output),
@@ -790,8 +790,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
790
790
  await collectBody(output.body, context);
791
791
  return contents;
792
792
  };
793
- exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
794
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
793
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
794
+ const de_UntagResourceCommandError = async (output, context) => {
795
795
  const parsedOutput = {
796
796
  ...output,
797
797
  body: await parseErrorBody(output.body, context),
@@ -800,19 +800,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
800
800
  switch (errorCode) {
801
801
  case "ConflictException":
802
802
  case "com.amazonaws.scheduler#ConflictException":
803
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
803
+ throw await de_ConflictExceptionRes(parsedOutput, context);
804
804
  case "InternalServerException":
805
805
  case "com.amazonaws.scheduler#InternalServerException":
806
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
806
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
807
807
  case "ResourceNotFoundException":
808
808
  case "com.amazonaws.scheduler#ResourceNotFoundException":
809
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
809
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
810
810
  case "ThrottlingException":
811
811
  case "com.amazonaws.scheduler#ThrottlingException":
812
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
812
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
813
813
  case "ValidationException":
814
814
  case "com.amazonaws.scheduler#ValidationException":
815
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
815
+ throw await de_ValidationExceptionRes(parsedOutput, context);
816
816
  default:
817
817
  const parsedBody = parsedOutput.body;
818
818
  (0, smithy_client_1.throwDefaultError)({
@@ -823,9 +823,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
823
823
  });
824
824
  }
825
825
  };
826
- const deserializeAws_restJson1UpdateScheduleCommand = async (output, context) => {
826
+ const de_UpdateScheduleCommand = async (output, context) => {
827
827
  if (output.statusCode !== 200 && output.statusCode >= 300) {
828
- return deserializeAws_restJson1UpdateScheduleCommandError(output, context);
828
+ return de_UpdateScheduleCommandError(output, context);
829
829
  }
830
830
  const contents = map({
831
831
  $metadata: deserializeMetadata(output),
@@ -836,8 +836,8 @@ const deserializeAws_restJson1UpdateScheduleCommand = async (output, context) =>
836
836
  }
837
837
  return contents;
838
838
  };
839
- exports.deserializeAws_restJson1UpdateScheduleCommand = deserializeAws_restJson1UpdateScheduleCommand;
840
- const deserializeAws_restJson1UpdateScheduleCommandError = async (output, context) => {
839
+ exports.de_UpdateScheduleCommand = de_UpdateScheduleCommand;
840
+ const de_UpdateScheduleCommandError = async (output, context) => {
841
841
  const parsedOutput = {
842
842
  ...output,
843
843
  body: await parseErrorBody(output.body, context),
@@ -846,19 +846,19 @@ const deserializeAws_restJson1UpdateScheduleCommandError = async (output, contex
846
846
  switch (errorCode) {
847
847
  case "ConflictException":
848
848
  case "com.amazonaws.scheduler#ConflictException":
849
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
849
+ throw await de_ConflictExceptionRes(parsedOutput, context);
850
850
  case "InternalServerException":
851
851
  case "com.amazonaws.scheduler#InternalServerException":
852
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
852
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
853
853
  case "ResourceNotFoundException":
854
854
  case "com.amazonaws.scheduler#ResourceNotFoundException":
855
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
855
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
856
856
  case "ThrottlingException":
857
857
  case "com.amazonaws.scheduler#ThrottlingException":
858
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
858
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
859
859
  case "ValidationException":
860
860
  case "com.amazonaws.scheduler#ValidationException":
861
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
861
+ throw await de_ValidationExceptionRes(parsedOutput, context);
862
862
  default:
863
863
  const parsedBody = parsedOutput.body;
864
864
  (0, smithy_client_1.throwDefaultError)({
@@ -870,7 +870,7 @@ const deserializeAws_restJson1UpdateScheduleCommandError = async (output, contex
870
870
  }
871
871
  };
872
872
  const map = smithy_client_1.map;
873
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
873
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
874
874
  const contents = map({});
875
875
  const data = parsedOutput.body;
876
876
  if (data.Message != null) {
@@ -882,7 +882,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
882
882
  });
883
883
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
884
884
  };
885
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
885
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
886
886
  const contents = map({});
887
887
  const data = parsedOutput.body;
888
888
  if (data.Message != null) {
@@ -894,7 +894,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
894
894
  });
895
895
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
896
896
  };
897
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
897
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
898
898
  const contents = map({});
899
899
  const data = parsedOutput.body;
900
900
  if (data.Message != null) {
@@ -906,7 +906,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
906
906
  });
907
907
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
908
908
  };
909
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
909
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
910
910
  const contents = map({});
911
911
  const data = parsedOutput.body;
912
912
  if (data.Message != null) {
@@ -918,7 +918,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
918
918
  });
919
919
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
920
920
  };
921
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
921
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
922
922
  const contents = map({});
923
923
  const data = parsedOutput.body;
924
924
  if (data.Message != null) {
@@ -930,7 +930,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
930
930
  });
931
931
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
932
932
  };
933
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
933
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
934
934
  const contents = map({});
935
935
  const data = parsedOutput.body;
936
936
  if (data.Message != null) {
@@ -942,169 +942,167 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
942
942
  });
943
943
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
944
944
  };
945
- const serializeAws_restJson1AwsVpcConfiguration = (input, context) => {
945
+ const se_AwsVpcConfiguration = (input, context) => {
946
946
  return {
947
947
  ...(input.AssignPublicIp != null && { AssignPublicIp: input.AssignPublicIp }),
948
- ...(input.SecurityGroups != null && {
949
- SecurityGroups: serializeAws_restJson1SecurityGroups(input.SecurityGroups, context),
950
- }),
951
- ...(input.Subnets != null && { Subnets: serializeAws_restJson1Subnets(input.Subnets, context) }),
948
+ ...(input.SecurityGroups != null && { SecurityGroups: se_SecurityGroups(input.SecurityGroups, context) }),
949
+ ...(input.Subnets != null && { Subnets: se_Subnets(input.Subnets, context) }),
952
950
  };
953
951
  };
954
- const serializeAws_restJson1CapacityProviderStrategy = (input, context) => {
952
+ const se_CapacityProviderStrategy = (input, context) => {
955
953
  return input
956
954
  .filter((e) => e != null)
957
955
  .map((entry) => {
958
- return serializeAws_restJson1CapacityProviderStrategyItem(entry, context);
956
+ return se_CapacityProviderStrategyItem(entry, context);
959
957
  });
960
958
  };
961
- const serializeAws_restJson1CapacityProviderStrategyItem = (input, context) => {
959
+ const se_CapacityProviderStrategyItem = (input, context) => {
962
960
  return {
963
961
  ...(input.base != null && { base: input.base }),
964
962
  ...(input.capacityProvider != null && { capacityProvider: input.capacityProvider }),
965
963
  ...(input.weight != null && { weight: input.weight }),
966
964
  };
967
965
  };
968
- const serializeAws_restJson1DeadLetterConfig = (input, context) => {
966
+ const se_DeadLetterConfig = (input, context) => {
969
967
  return {
970
968
  ...(input.Arn != null && { Arn: input.Arn }),
971
969
  };
972
970
  };
973
- const serializeAws_restJson1EcsParameters = (input, context) => {
971
+ const se_EcsParameters = (input, context) => {
974
972
  return {
975
973
  ...(input.CapacityProviderStrategy != null && {
976
- CapacityProviderStrategy: serializeAws_restJson1CapacityProviderStrategy(input.CapacityProviderStrategy, context),
974
+ CapacityProviderStrategy: se_CapacityProviderStrategy(input.CapacityProviderStrategy, context),
977
975
  }),
978
976
  ...(input.EnableECSManagedTags != null && { EnableECSManagedTags: input.EnableECSManagedTags }),
979
977
  ...(input.EnableExecuteCommand != null && { EnableExecuteCommand: input.EnableExecuteCommand }),
980
978
  ...(input.Group != null && { Group: input.Group }),
981
979
  ...(input.LaunchType != null && { LaunchType: input.LaunchType }),
982
980
  ...(input.NetworkConfiguration != null && {
983
- NetworkConfiguration: serializeAws_restJson1NetworkConfiguration(input.NetworkConfiguration, context),
981
+ NetworkConfiguration: se_NetworkConfiguration(input.NetworkConfiguration, context),
984
982
  }),
985
983
  ...(input.PlacementConstraints != null && {
986
- PlacementConstraints: serializeAws_restJson1PlacementConstraints(input.PlacementConstraints, context),
984
+ PlacementConstraints: se_PlacementConstraints(input.PlacementConstraints, context),
987
985
  }),
988
986
  ...(input.PlacementStrategy != null && {
989
- PlacementStrategy: serializeAws_restJson1PlacementStrategies(input.PlacementStrategy, context),
987
+ PlacementStrategy: se_PlacementStrategies(input.PlacementStrategy, context),
990
988
  }),
991
989
  ...(input.PlatformVersion != null && { PlatformVersion: input.PlatformVersion }),
992
990
  ...(input.PropagateTags != null && { PropagateTags: input.PropagateTags }),
993
991
  ...(input.ReferenceId != null && { ReferenceId: input.ReferenceId }),
994
- ...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
992
+ ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
995
993
  ...(input.TaskCount != null && { TaskCount: input.TaskCount }),
996
994
  ...(input.TaskDefinitionArn != null && { TaskDefinitionArn: input.TaskDefinitionArn }),
997
995
  };
998
996
  };
999
- const serializeAws_restJson1EventBridgeParameters = (input, context) => {
997
+ const se_EventBridgeParameters = (input, context) => {
1000
998
  return {
1001
999
  ...(input.DetailType != null && { DetailType: input.DetailType }),
1002
1000
  ...(input.Source != null && { Source: input.Source }),
1003
1001
  };
1004
1002
  };
1005
- const serializeAws_restJson1FlexibleTimeWindow = (input, context) => {
1003
+ const se_FlexibleTimeWindow = (input, context) => {
1006
1004
  return {
1007
1005
  ...(input.MaximumWindowInMinutes != null && { MaximumWindowInMinutes: input.MaximumWindowInMinutes }),
1008
1006
  ...(input.Mode != null && { Mode: input.Mode }),
1009
1007
  };
1010
1008
  };
1011
- const serializeAws_restJson1KinesisParameters = (input, context) => {
1009
+ const se_KinesisParameters = (input, context) => {
1012
1010
  return {
1013
1011
  ...(input.PartitionKey != null && { PartitionKey: input.PartitionKey }),
1014
1012
  };
1015
1013
  };
1016
- const serializeAws_restJson1NetworkConfiguration = (input, context) => {
1014
+ const se_NetworkConfiguration = (input, context) => {
1017
1015
  return {
1018
1016
  ...(input.awsvpcConfiguration != null && {
1019
- awsvpcConfiguration: serializeAws_restJson1AwsVpcConfiguration(input.awsvpcConfiguration, context),
1017
+ awsvpcConfiguration: se_AwsVpcConfiguration(input.awsvpcConfiguration, context),
1020
1018
  }),
1021
1019
  };
1022
1020
  };
1023
- const serializeAws_restJson1PlacementConstraint = (input, context) => {
1021
+ const se_PlacementConstraint = (input, context) => {
1024
1022
  return {
1025
1023
  ...(input.expression != null && { expression: input.expression }),
1026
1024
  ...(input.type != null && { type: input.type }),
1027
1025
  };
1028
1026
  };
1029
- const serializeAws_restJson1PlacementConstraints = (input, context) => {
1027
+ const se_PlacementConstraints = (input, context) => {
1030
1028
  return input
1031
1029
  .filter((e) => e != null)
1032
1030
  .map((entry) => {
1033
- return serializeAws_restJson1PlacementConstraint(entry, context);
1031
+ return se_PlacementConstraint(entry, context);
1034
1032
  });
1035
1033
  };
1036
- const serializeAws_restJson1PlacementStrategies = (input, context) => {
1034
+ const se_PlacementStrategies = (input, context) => {
1037
1035
  return input
1038
1036
  .filter((e) => e != null)
1039
1037
  .map((entry) => {
1040
- return serializeAws_restJson1PlacementStrategy(entry, context);
1038
+ return se_PlacementStrategy(entry, context);
1041
1039
  });
1042
1040
  };
1043
- const serializeAws_restJson1PlacementStrategy = (input, context) => {
1041
+ const se_PlacementStrategy = (input, context) => {
1044
1042
  return {
1045
1043
  ...(input.field != null && { field: input.field }),
1046
1044
  ...(input.type != null && { type: input.type }),
1047
1045
  };
1048
1046
  };
1049
- const serializeAws_restJson1RetryPolicy = (input, context) => {
1047
+ const se_RetryPolicy = (input, context) => {
1050
1048
  return {
1051
1049
  ...(input.MaximumEventAgeInSeconds != null && { MaximumEventAgeInSeconds: input.MaximumEventAgeInSeconds }),
1052
1050
  ...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
1053
1051
  };
1054
1052
  };
1055
- const serializeAws_restJson1SageMakerPipelineParameter = (input, context) => {
1053
+ const se_SageMakerPipelineParameter = (input, context) => {
1056
1054
  return {
1057
1055
  ...(input.Name != null && { Name: input.Name }),
1058
1056
  ...(input.Value != null && { Value: input.Value }),
1059
1057
  };
1060
1058
  };
1061
- const serializeAws_restJson1SageMakerPipelineParameterList = (input, context) => {
1059
+ const se_SageMakerPipelineParameterList = (input, context) => {
1062
1060
  return input
1063
1061
  .filter((e) => e != null)
1064
1062
  .map((entry) => {
1065
- return serializeAws_restJson1SageMakerPipelineParameter(entry, context);
1063
+ return se_SageMakerPipelineParameter(entry, context);
1066
1064
  });
1067
1065
  };
1068
- const serializeAws_restJson1SageMakerPipelineParameters = (input, context) => {
1066
+ const se_SageMakerPipelineParameters = (input, context) => {
1069
1067
  return {
1070
1068
  ...(input.PipelineParameterList != null && {
1071
- PipelineParameterList: serializeAws_restJson1SageMakerPipelineParameterList(input.PipelineParameterList, context),
1069
+ PipelineParameterList: se_SageMakerPipelineParameterList(input.PipelineParameterList, context),
1072
1070
  }),
1073
1071
  };
1074
1072
  };
1075
- const serializeAws_restJson1SecurityGroups = (input, context) => {
1073
+ const se_SecurityGroups = (input, context) => {
1076
1074
  return input
1077
1075
  .filter((e) => e != null)
1078
1076
  .map((entry) => {
1079
1077
  return entry;
1080
1078
  });
1081
1079
  };
1082
- const serializeAws_restJson1SqsParameters = (input, context) => {
1080
+ const se_SqsParameters = (input, context) => {
1083
1081
  return {
1084
1082
  ...(input.MessageGroupId != null && { MessageGroupId: input.MessageGroupId }),
1085
1083
  };
1086
1084
  };
1087
- const serializeAws_restJson1Subnets = (input, context) => {
1085
+ const se_Subnets = (input, context) => {
1088
1086
  return input
1089
1087
  .filter((e) => e != null)
1090
1088
  .map((entry) => {
1091
1089
  return entry;
1092
1090
  });
1093
1091
  };
1094
- const serializeAws_restJson1Tag = (input, context) => {
1092
+ const se_Tag = (input, context) => {
1095
1093
  return {
1096
1094
  ...(input.Key != null && { Key: input.Key }),
1097
1095
  ...(input.Value != null && { Value: input.Value }),
1098
1096
  };
1099
1097
  };
1100
- const serializeAws_restJson1TagList = (input, context) => {
1098
+ const se_TagList = (input, context) => {
1101
1099
  return input
1102
1100
  .filter((e) => e != null)
1103
1101
  .map((entry) => {
1104
- return serializeAws_restJson1Tag(entry, context);
1102
+ return se_Tag(entry, context);
1105
1103
  });
1106
1104
  };
1107
- const serializeAws_restJson1TagMap = (input, context) => {
1105
+ const se_TagMap = (input, context) => {
1108
1106
  return Object.entries(input).reduce((acc, [key, value]) => {
1109
1107
  if (value === null) {
1110
1108
  return acc;
@@ -1113,197 +1111,181 @@ const serializeAws_restJson1TagMap = (input, context) => {
1113
1111
  return acc;
1114
1112
  }, {});
1115
1113
  };
1116
- const serializeAws_restJson1Tags = (input, context) => {
1114
+ const se_Tags = (input, context) => {
1117
1115
  return input
1118
1116
  .filter((e) => e != null)
1119
1117
  .map((entry) => {
1120
- return serializeAws_restJson1TagMap(entry, context);
1118
+ return se_TagMap(entry, context);
1121
1119
  });
1122
1120
  };
1123
- const serializeAws_restJson1Target = (input, context) => {
1121
+ const se_Target = (input, context) => {
1124
1122
  return {
1125
1123
  ...(input.Arn != null && { Arn: input.Arn }),
1126
- ...(input.DeadLetterConfig != null && {
1127
- DeadLetterConfig: serializeAws_restJson1DeadLetterConfig(input.DeadLetterConfig, context),
1128
- }),
1129
- ...(input.EcsParameters != null && {
1130
- EcsParameters: serializeAws_restJson1EcsParameters(input.EcsParameters, context),
1131
- }),
1124
+ ...(input.DeadLetterConfig != null && { DeadLetterConfig: se_DeadLetterConfig(input.DeadLetterConfig, context) }),
1125
+ ...(input.EcsParameters != null && { EcsParameters: se_EcsParameters(input.EcsParameters, context) }),
1132
1126
  ...(input.EventBridgeParameters != null && {
1133
- EventBridgeParameters: serializeAws_restJson1EventBridgeParameters(input.EventBridgeParameters, context),
1127
+ EventBridgeParameters: se_EventBridgeParameters(input.EventBridgeParameters, context),
1134
1128
  }),
1135
1129
  ...(input.Input != null && { Input: input.Input }),
1136
1130
  ...(input.KinesisParameters != null && {
1137
- KinesisParameters: serializeAws_restJson1KinesisParameters(input.KinesisParameters, context),
1131
+ KinesisParameters: se_KinesisParameters(input.KinesisParameters, context),
1138
1132
  }),
1139
- ...(input.RetryPolicy != null && { RetryPolicy: serializeAws_restJson1RetryPolicy(input.RetryPolicy, context) }),
1133
+ ...(input.RetryPolicy != null && { RetryPolicy: se_RetryPolicy(input.RetryPolicy, context) }),
1140
1134
  ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
1141
1135
  ...(input.SageMakerPipelineParameters != null && {
1142
- SageMakerPipelineParameters: serializeAws_restJson1SageMakerPipelineParameters(input.SageMakerPipelineParameters, context),
1143
- }),
1144
- ...(input.SqsParameters != null && {
1145
- SqsParameters: serializeAws_restJson1SqsParameters(input.SqsParameters, context),
1136
+ SageMakerPipelineParameters: se_SageMakerPipelineParameters(input.SageMakerPipelineParameters, context),
1146
1137
  }),
1138
+ ...(input.SqsParameters != null && { SqsParameters: se_SqsParameters(input.SqsParameters, context) }),
1147
1139
  };
1148
1140
  };
1149
- const deserializeAws_restJson1AwsVpcConfiguration = (output, context) => {
1141
+ const de_AwsVpcConfiguration = (output, context) => {
1150
1142
  return {
1151
1143
  AssignPublicIp: (0, smithy_client_1.expectString)(output.AssignPublicIp),
1152
- SecurityGroups: output.SecurityGroups != null
1153
- ? deserializeAws_restJson1SecurityGroups(output.SecurityGroups, context)
1154
- : undefined,
1155
- Subnets: output.Subnets != null ? deserializeAws_restJson1Subnets(output.Subnets, context) : undefined,
1144
+ SecurityGroups: output.SecurityGroups != null ? de_SecurityGroups(output.SecurityGroups, context) : undefined,
1145
+ Subnets: output.Subnets != null ? de_Subnets(output.Subnets, context) : undefined,
1156
1146
  };
1157
1147
  };
1158
- const deserializeAws_restJson1CapacityProviderStrategy = (output, context) => {
1148
+ const de_CapacityProviderStrategy = (output, context) => {
1159
1149
  const retVal = (output || [])
1160
1150
  .filter((e) => e != null)
1161
1151
  .map((entry) => {
1162
1152
  if (entry === null) {
1163
1153
  return null;
1164
1154
  }
1165
- return deserializeAws_restJson1CapacityProviderStrategyItem(entry, context);
1155
+ return de_CapacityProviderStrategyItem(entry, context);
1166
1156
  });
1167
1157
  return retVal;
1168
1158
  };
1169
- const deserializeAws_restJson1CapacityProviderStrategyItem = (output, context) => {
1159
+ const de_CapacityProviderStrategyItem = (output, context) => {
1170
1160
  return {
1171
1161
  base: (0, smithy_client_1.expectInt32)(output.base),
1172
1162
  capacityProvider: (0, smithy_client_1.expectString)(output.capacityProvider),
1173
1163
  weight: (0, smithy_client_1.expectInt32)(output.weight),
1174
1164
  };
1175
1165
  };
1176
- const deserializeAws_restJson1DeadLetterConfig = (output, context) => {
1166
+ const de_DeadLetterConfig = (output, context) => {
1177
1167
  return {
1178
1168
  Arn: (0, smithy_client_1.expectString)(output.Arn),
1179
1169
  };
1180
1170
  };
1181
- const deserializeAws_restJson1EcsParameters = (output, context) => {
1171
+ const de_EcsParameters = (output, context) => {
1182
1172
  return {
1183
1173
  CapacityProviderStrategy: output.CapacityProviderStrategy != null
1184
- ? deserializeAws_restJson1CapacityProviderStrategy(output.CapacityProviderStrategy, context)
1174
+ ? de_CapacityProviderStrategy(output.CapacityProviderStrategy, context)
1185
1175
  : undefined,
1186
1176
  EnableECSManagedTags: (0, smithy_client_1.expectBoolean)(output.EnableECSManagedTags),
1187
1177
  EnableExecuteCommand: (0, smithy_client_1.expectBoolean)(output.EnableExecuteCommand),
1188
1178
  Group: (0, smithy_client_1.expectString)(output.Group),
1189
1179
  LaunchType: (0, smithy_client_1.expectString)(output.LaunchType),
1190
- NetworkConfiguration: output.NetworkConfiguration != null
1191
- ? deserializeAws_restJson1NetworkConfiguration(output.NetworkConfiguration, context)
1192
- : undefined,
1193
- PlacementConstraints: output.PlacementConstraints != null
1194
- ? deserializeAws_restJson1PlacementConstraints(output.PlacementConstraints, context)
1195
- : undefined,
1196
- PlacementStrategy: output.PlacementStrategy != null
1197
- ? deserializeAws_restJson1PlacementStrategies(output.PlacementStrategy, context)
1198
- : undefined,
1180
+ NetworkConfiguration: output.NetworkConfiguration != null ? de_NetworkConfiguration(output.NetworkConfiguration, context) : undefined,
1181
+ PlacementConstraints: output.PlacementConstraints != null ? de_PlacementConstraints(output.PlacementConstraints, context) : undefined,
1182
+ PlacementStrategy: output.PlacementStrategy != null ? de_PlacementStrategies(output.PlacementStrategy, context) : undefined,
1199
1183
  PlatformVersion: (0, smithy_client_1.expectString)(output.PlatformVersion),
1200
1184
  PropagateTags: (0, smithy_client_1.expectString)(output.PropagateTags),
1201
1185
  ReferenceId: (0, smithy_client_1.expectString)(output.ReferenceId),
1202
- Tags: output.Tags != null ? deserializeAws_restJson1Tags(output.Tags, context) : undefined,
1186
+ Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
1203
1187
  TaskCount: (0, smithy_client_1.expectInt32)(output.TaskCount),
1204
1188
  TaskDefinitionArn: (0, smithy_client_1.expectString)(output.TaskDefinitionArn),
1205
1189
  };
1206
1190
  };
1207
- const deserializeAws_restJson1EventBridgeParameters = (output, context) => {
1191
+ const de_EventBridgeParameters = (output, context) => {
1208
1192
  return {
1209
1193
  DetailType: (0, smithy_client_1.expectString)(output.DetailType),
1210
1194
  Source: (0, smithy_client_1.expectString)(output.Source),
1211
1195
  };
1212
1196
  };
1213
- const deserializeAws_restJson1FlexibleTimeWindow = (output, context) => {
1197
+ const de_FlexibleTimeWindow = (output, context) => {
1214
1198
  return {
1215
1199
  MaximumWindowInMinutes: (0, smithy_client_1.expectInt32)(output.MaximumWindowInMinutes),
1216
1200
  Mode: (0, smithy_client_1.expectString)(output.Mode),
1217
1201
  };
1218
1202
  };
1219
- const deserializeAws_restJson1KinesisParameters = (output, context) => {
1203
+ const de_KinesisParameters = (output, context) => {
1220
1204
  return {
1221
1205
  PartitionKey: (0, smithy_client_1.expectString)(output.PartitionKey),
1222
1206
  };
1223
1207
  };
1224
- const deserializeAws_restJson1NetworkConfiguration = (output, context) => {
1208
+ const de_NetworkConfiguration = (output, context) => {
1225
1209
  return {
1226
- awsvpcConfiguration: output.awsvpcConfiguration != null
1227
- ? deserializeAws_restJson1AwsVpcConfiguration(output.awsvpcConfiguration, context)
1228
- : undefined,
1210
+ awsvpcConfiguration: output.awsvpcConfiguration != null ? de_AwsVpcConfiguration(output.awsvpcConfiguration, context) : undefined,
1229
1211
  };
1230
1212
  };
1231
- const deserializeAws_restJson1PlacementConstraint = (output, context) => {
1213
+ const de_PlacementConstraint = (output, context) => {
1232
1214
  return {
1233
1215
  expression: (0, smithy_client_1.expectString)(output.expression),
1234
1216
  type: (0, smithy_client_1.expectString)(output.type),
1235
1217
  };
1236
1218
  };
1237
- const deserializeAws_restJson1PlacementConstraints = (output, context) => {
1219
+ const de_PlacementConstraints = (output, context) => {
1238
1220
  const retVal = (output || [])
1239
1221
  .filter((e) => e != null)
1240
1222
  .map((entry) => {
1241
1223
  if (entry === null) {
1242
1224
  return null;
1243
1225
  }
1244
- return deserializeAws_restJson1PlacementConstraint(entry, context);
1226
+ return de_PlacementConstraint(entry, context);
1245
1227
  });
1246
1228
  return retVal;
1247
1229
  };
1248
- const deserializeAws_restJson1PlacementStrategies = (output, context) => {
1230
+ const de_PlacementStrategies = (output, context) => {
1249
1231
  const retVal = (output || [])
1250
1232
  .filter((e) => e != null)
1251
1233
  .map((entry) => {
1252
1234
  if (entry === null) {
1253
1235
  return null;
1254
1236
  }
1255
- return deserializeAws_restJson1PlacementStrategy(entry, context);
1237
+ return de_PlacementStrategy(entry, context);
1256
1238
  });
1257
1239
  return retVal;
1258
1240
  };
1259
- const deserializeAws_restJson1PlacementStrategy = (output, context) => {
1241
+ const de_PlacementStrategy = (output, context) => {
1260
1242
  return {
1261
1243
  field: (0, smithy_client_1.expectString)(output.field),
1262
1244
  type: (0, smithy_client_1.expectString)(output.type),
1263
1245
  };
1264
1246
  };
1265
- const deserializeAws_restJson1RetryPolicy = (output, context) => {
1247
+ const de_RetryPolicy = (output, context) => {
1266
1248
  return {
1267
1249
  MaximumEventAgeInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumEventAgeInSeconds),
1268
1250
  MaximumRetryAttempts: (0, smithy_client_1.expectInt32)(output.MaximumRetryAttempts),
1269
1251
  };
1270
1252
  };
1271
- const deserializeAws_restJson1SageMakerPipelineParameter = (output, context) => {
1253
+ const de_SageMakerPipelineParameter = (output, context) => {
1272
1254
  return {
1273
1255
  Name: (0, smithy_client_1.expectString)(output.Name),
1274
1256
  Value: (0, smithy_client_1.expectString)(output.Value),
1275
1257
  };
1276
1258
  };
1277
- const deserializeAws_restJson1SageMakerPipelineParameterList = (output, context) => {
1259
+ const de_SageMakerPipelineParameterList = (output, context) => {
1278
1260
  const retVal = (output || [])
1279
1261
  .filter((e) => e != null)
1280
1262
  .map((entry) => {
1281
1263
  if (entry === null) {
1282
1264
  return null;
1283
1265
  }
1284
- return deserializeAws_restJson1SageMakerPipelineParameter(entry, context);
1266
+ return de_SageMakerPipelineParameter(entry, context);
1285
1267
  });
1286
1268
  return retVal;
1287
1269
  };
1288
- const deserializeAws_restJson1SageMakerPipelineParameters = (output, context) => {
1270
+ const de_SageMakerPipelineParameters = (output, context) => {
1289
1271
  return {
1290
1272
  PipelineParameterList: output.PipelineParameterList != null
1291
- ? deserializeAws_restJson1SageMakerPipelineParameterList(output.PipelineParameterList, context)
1273
+ ? de_SageMakerPipelineParameterList(output.PipelineParameterList, context)
1292
1274
  : undefined,
1293
1275
  };
1294
1276
  };
1295
- const deserializeAws_restJson1ScheduleGroupList = (output, context) => {
1277
+ const de_ScheduleGroupList = (output, context) => {
1296
1278
  const retVal = (output || [])
1297
1279
  .filter((e) => e != null)
1298
1280
  .map((entry) => {
1299
1281
  if (entry === null) {
1300
1282
  return null;
1301
1283
  }
1302
- return deserializeAws_restJson1ScheduleGroupSummary(entry, context);
1284
+ return de_ScheduleGroupSummary(entry, context);
1303
1285
  });
1304
1286
  return retVal;
1305
1287
  };
1306
- const deserializeAws_restJson1ScheduleGroupSummary = (output, context) => {
1288
+ const de_ScheduleGroupSummary = (output, context) => {
1307
1289
  return {
1308
1290
  Arn: (0, smithy_client_1.expectString)(output.Arn),
1309
1291
  CreationDate: output.CreationDate != null
@@ -1316,18 +1298,18 @@ const deserializeAws_restJson1ScheduleGroupSummary = (output, context) => {
1316
1298
  State: (0, smithy_client_1.expectString)(output.State),
1317
1299
  };
1318
1300
  };
1319
- const deserializeAws_restJson1ScheduleList = (output, context) => {
1301
+ const de_ScheduleList = (output, context) => {
1320
1302
  const retVal = (output || [])
1321
1303
  .filter((e) => e != null)
1322
1304
  .map((entry) => {
1323
1305
  if (entry === null) {
1324
1306
  return null;
1325
1307
  }
1326
- return deserializeAws_restJson1ScheduleSummary(entry, context);
1308
+ return de_ScheduleSummary(entry, context);
1327
1309
  });
1328
1310
  return retVal;
1329
1311
  };
1330
- const deserializeAws_restJson1ScheduleSummary = (output, context) => {
1312
+ const de_ScheduleSummary = (output, context) => {
1331
1313
  return {
1332
1314
  Arn: (0, smithy_client_1.expectString)(output.Arn),
1333
1315
  CreationDate: output.CreationDate != null
@@ -1339,10 +1321,10 @@ const deserializeAws_restJson1ScheduleSummary = (output, context) => {
1339
1321
  : undefined,
1340
1322
  Name: (0, smithy_client_1.expectString)(output.Name),
1341
1323
  State: (0, smithy_client_1.expectString)(output.State),
1342
- Target: output.Target != null ? deserializeAws_restJson1TargetSummary(output.Target, context) : undefined,
1324
+ Target: output.Target != null ? de_TargetSummary(output.Target, context) : undefined,
1343
1325
  };
1344
1326
  };
1345
- const deserializeAws_restJson1SecurityGroups = (output, context) => {
1327
+ const de_SecurityGroups = (output, context) => {
1346
1328
  const retVal = (output || [])
1347
1329
  .filter((e) => e != null)
1348
1330
  .map((entry) => {
@@ -1353,12 +1335,12 @@ const deserializeAws_restJson1SecurityGroups = (output, context) => {
1353
1335
  });
1354
1336
  return retVal;
1355
1337
  };
1356
- const deserializeAws_restJson1SqsParameters = (output, context) => {
1338
+ const de_SqsParameters = (output, context) => {
1357
1339
  return {
1358
1340
  MessageGroupId: (0, smithy_client_1.expectString)(output.MessageGroupId),
1359
1341
  };
1360
1342
  };
1361
- const deserializeAws_restJson1Subnets = (output, context) => {
1343
+ const de_Subnets = (output, context) => {
1362
1344
  const retVal = (output || [])
1363
1345
  .filter((e) => e != null)
1364
1346
  .map((entry) => {
@@ -1369,24 +1351,24 @@ const deserializeAws_restJson1Subnets = (output, context) => {
1369
1351
  });
1370
1352
  return retVal;
1371
1353
  };
1372
- const deserializeAws_restJson1Tag = (output, context) => {
1354
+ const de_Tag = (output, context) => {
1373
1355
  return {
1374
1356
  Key: (0, smithy_client_1.expectString)(output.Key),
1375
1357
  Value: (0, smithy_client_1.expectString)(output.Value),
1376
1358
  };
1377
1359
  };
1378
- const deserializeAws_restJson1TagList = (output, context) => {
1360
+ const de_TagList = (output, context) => {
1379
1361
  const retVal = (output || [])
1380
1362
  .filter((e) => e != null)
1381
1363
  .map((entry) => {
1382
1364
  if (entry === null) {
1383
1365
  return null;
1384
1366
  }
1385
- return deserializeAws_restJson1Tag(entry, context);
1367
+ return de_Tag(entry, context);
1386
1368
  });
1387
1369
  return retVal;
1388
1370
  };
1389
- const deserializeAws_restJson1TagMap = (output, context) => {
1371
+ const de_TagMap = (output, context) => {
1390
1372
  return Object.entries(output).reduce((acc, [key, value]) => {
1391
1373
  if (value === null) {
1392
1374
  return acc;
@@ -1395,40 +1377,36 @@ const deserializeAws_restJson1TagMap = (output, context) => {
1395
1377
  return acc;
1396
1378
  }, {});
1397
1379
  };
1398
- const deserializeAws_restJson1Tags = (output, context) => {
1380
+ const de_Tags = (output, context) => {
1399
1381
  const retVal = (output || [])
1400
1382
  .filter((e) => e != null)
1401
1383
  .map((entry) => {
1402
1384
  if (entry === null) {
1403
1385
  return null;
1404
1386
  }
1405
- return deserializeAws_restJson1TagMap(entry, context);
1387
+ return de_TagMap(entry, context);
1406
1388
  });
1407
1389
  return retVal;
1408
1390
  };
1409
- const deserializeAws_restJson1Target = (output, context) => {
1391
+ const de_Target = (output, context) => {
1410
1392
  return {
1411
1393
  Arn: (0, smithy_client_1.expectString)(output.Arn),
1412
- DeadLetterConfig: output.DeadLetterConfig != null
1413
- ? deserializeAws_restJson1DeadLetterConfig(output.DeadLetterConfig, context)
1414
- : undefined,
1415
- EcsParameters: output.EcsParameters != null ? deserializeAws_restJson1EcsParameters(output.EcsParameters, context) : undefined,
1394
+ DeadLetterConfig: output.DeadLetterConfig != null ? de_DeadLetterConfig(output.DeadLetterConfig, context) : undefined,
1395
+ EcsParameters: output.EcsParameters != null ? de_EcsParameters(output.EcsParameters, context) : undefined,
1416
1396
  EventBridgeParameters: output.EventBridgeParameters != null
1417
- ? deserializeAws_restJson1EventBridgeParameters(output.EventBridgeParameters, context)
1397
+ ? de_EventBridgeParameters(output.EventBridgeParameters, context)
1418
1398
  : undefined,
1419
1399
  Input: (0, smithy_client_1.expectString)(output.Input),
1420
- KinesisParameters: output.KinesisParameters != null
1421
- ? deserializeAws_restJson1KinesisParameters(output.KinesisParameters, context)
1422
- : undefined,
1423
- RetryPolicy: output.RetryPolicy != null ? deserializeAws_restJson1RetryPolicy(output.RetryPolicy, context) : undefined,
1400
+ KinesisParameters: output.KinesisParameters != null ? de_KinesisParameters(output.KinesisParameters, context) : undefined,
1401
+ RetryPolicy: output.RetryPolicy != null ? de_RetryPolicy(output.RetryPolicy, context) : undefined,
1424
1402
  RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
1425
1403
  SageMakerPipelineParameters: output.SageMakerPipelineParameters != null
1426
- ? deserializeAws_restJson1SageMakerPipelineParameters(output.SageMakerPipelineParameters, context)
1404
+ ? de_SageMakerPipelineParameters(output.SageMakerPipelineParameters, context)
1427
1405
  : undefined,
1428
- SqsParameters: output.SqsParameters != null ? deserializeAws_restJson1SqsParameters(output.SqsParameters, context) : undefined,
1406
+ SqsParameters: output.SqsParameters != null ? de_SqsParameters(output.SqsParameters, context) : undefined,
1429
1407
  };
1430
1408
  };
1431
- const deserializeAws_restJson1TargetSummary = (output, context) => {
1409
+ const de_TargetSummary = (output, context) => {
1432
1410
  return {
1433
1411
  Arn: (0, smithy_client_1.expectString)(output.Arn),
1434
1412
  };