@aws-sdk/client-arc-zonal-shift 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.
@@ -36,10 +36,10 @@ class CancelZonalShiftCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1CancelZonalShiftCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_CancelZonalShiftCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1CancelZonalShiftCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_CancelZonalShiftCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.CancelZonalShiftCommand = CancelZonalShiftCommand;
@@ -36,10 +36,10 @@ class GetManagedResourceCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1GetManagedResourceCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_GetManagedResourceCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1GetManagedResourceCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_GetManagedResourceCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.GetManagedResourceCommand = GetManagedResourceCommand;
@@ -36,10 +36,10 @@ class ListManagedResourcesCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1ListManagedResourcesCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_ListManagedResourcesCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1ListManagedResourcesCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_ListManagedResourcesCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.ListManagedResourcesCommand = ListManagedResourcesCommand;
@@ -36,10 +36,10 @@ class ListZonalShiftsCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1ListZonalShiftsCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_ListZonalShiftsCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1ListZonalShiftsCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_ListZonalShiftsCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.ListZonalShiftsCommand = ListZonalShiftsCommand;
@@ -36,10 +36,10 @@ class StartZonalShiftCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1StartZonalShiftCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_StartZonalShiftCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1StartZonalShiftCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_StartZonalShiftCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.StartZonalShiftCommand = StartZonalShiftCommand;
@@ -36,10 +36,10 @@ class UpdateZonalShiftCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1UpdateZonalShiftCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_UpdateZonalShiftCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateZonalShiftCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_UpdateZonalShiftCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.UpdateZonalShiftCommand = UpdateZonalShiftCommand;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateZonalShiftCommand = exports.deserializeAws_restJson1StartZonalShiftCommand = exports.deserializeAws_restJson1ListZonalShiftsCommand = exports.deserializeAws_restJson1ListManagedResourcesCommand = exports.deserializeAws_restJson1GetManagedResourceCommand = exports.deserializeAws_restJson1CancelZonalShiftCommand = exports.serializeAws_restJson1UpdateZonalShiftCommand = exports.serializeAws_restJson1StartZonalShiftCommand = exports.serializeAws_restJson1ListZonalShiftsCommand = exports.serializeAws_restJson1ListManagedResourcesCommand = exports.serializeAws_restJson1GetManagedResourceCommand = exports.serializeAws_restJson1CancelZonalShiftCommand = void 0;
3
+ exports.de_UpdateZonalShiftCommand = exports.de_StartZonalShiftCommand = exports.de_ListZonalShiftsCommand = exports.de_ListManagedResourcesCommand = exports.de_GetManagedResourceCommand = exports.de_CancelZonalShiftCommand = exports.se_UpdateZonalShiftCommand = exports.se_StartZonalShiftCommand = exports.se_ListZonalShiftsCommand = exports.se_ListManagedResourcesCommand = exports.se_GetManagedResourceCommand = exports.se_CancelZonalShiftCommand = 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 ARCZonalShiftServiceException_1 = require("../models/ARCZonalShiftServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
- const serializeAws_restJson1CancelZonalShiftCommand = async (input, context) => {
8
+ const se_CancelZonalShiftCommand = async (input, context) => {
9
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
10
  const headers = {};
11
11
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts/{zonalShiftId}";
@@ -21,8 +21,8 @@ const serializeAws_restJson1CancelZonalShiftCommand = async (input, context) =>
21
21
  body,
22
22
  });
23
23
  };
24
- exports.serializeAws_restJson1CancelZonalShiftCommand = serializeAws_restJson1CancelZonalShiftCommand;
25
- const serializeAws_restJson1GetManagedResourceCommand = async (input, context) => {
24
+ exports.se_CancelZonalShiftCommand = se_CancelZonalShiftCommand;
25
+ const se_GetManagedResourceCommand = async (input, context) => {
26
26
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
27
  const headers = {};
28
28
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managedresources/{resourceIdentifier}";
@@ -38,8 +38,8 @@ const serializeAws_restJson1GetManagedResourceCommand = async (input, context) =
38
38
  body,
39
39
  });
40
40
  };
41
- exports.serializeAws_restJson1GetManagedResourceCommand = serializeAws_restJson1GetManagedResourceCommand;
42
- const serializeAws_restJson1ListManagedResourcesCommand = async (input, context) => {
41
+ exports.se_GetManagedResourceCommand = se_GetManagedResourceCommand;
42
+ const se_ListManagedResourcesCommand = async (input, context) => {
43
43
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
44
44
  const headers = {};
45
45
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managedresources";
@@ -59,8 +59,8 @@ const serializeAws_restJson1ListManagedResourcesCommand = async (input, context)
59
59
  body,
60
60
  });
61
61
  };
62
- exports.serializeAws_restJson1ListManagedResourcesCommand = serializeAws_restJson1ListManagedResourcesCommand;
63
- const serializeAws_restJson1ListZonalShiftsCommand = async (input, context) => {
62
+ exports.se_ListManagedResourcesCommand = se_ListManagedResourcesCommand;
63
+ const se_ListZonalShiftsCommand = async (input, context) => {
64
64
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
65
65
  const headers = {};
66
66
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts";
@@ -81,8 +81,8 @@ const serializeAws_restJson1ListZonalShiftsCommand = async (input, context) => {
81
81
  body,
82
82
  });
83
83
  };
84
- exports.serializeAws_restJson1ListZonalShiftsCommand = serializeAws_restJson1ListZonalShiftsCommand;
85
- const serializeAws_restJson1StartZonalShiftCommand = async (input, context) => {
84
+ exports.se_ListZonalShiftsCommand = se_ListZonalShiftsCommand;
85
+ const se_StartZonalShiftCommand = async (input, context) => {
86
86
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
87
87
  const headers = {
88
88
  "content-type": "application/json",
@@ -105,8 +105,8 @@ const serializeAws_restJson1StartZonalShiftCommand = async (input, context) => {
105
105
  body,
106
106
  });
107
107
  };
108
- exports.serializeAws_restJson1StartZonalShiftCommand = serializeAws_restJson1StartZonalShiftCommand;
109
- const serializeAws_restJson1UpdateZonalShiftCommand = async (input, context) => {
108
+ exports.se_StartZonalShiftCommand = se_StartZonalShiftCommand;
109
+ const se_UpdateZonalShiftCommand = async (input, context) => {
110
110
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
111
111
  const headers = {
112
112
  "content-type": "application/json",
@@ -128,10 +128,10 @@ const serializeAws_restJson1UpdateZonalShiftCommand = async (input, context) =>
128
128
  body,
129
129
  });
130
130
  };
131
- exports.serializeAws_restJson1UpdateZonalShiftCommand = serializeAws_restJson1UpdateZonalShiftCommand;
132
- const deserializeAws_restJson1CancelZonalShiftCommand = async (output, context) => {
131
+ exports.se_UpdateZonalShiftCommand = se_UpdateZonalShiftCommand;
132
+ const de_CancelZonalShiftCommand = async (output, context) => {
133
133
  if (output.statusCode !== 200 && output.statusCode >= 300) {
134
- return deserializeAws_restJson1CancelZonalShiftCommandError(output, context);
134
+ return de_CancelZonalShiftCommandError(output, context);
135
135
  }
136
136
  const contents = map({
137
137
  $metadata: deserializeMetadata(output),
@@ -160,8 +160,8 @@ const deserializeAws_restJson1CancelZonalShiftCommand = async (output, context)
160
160
  }
161
161
  return contents;
162
162
  };
163
- exports.deserializeAws_restJson1CancelZonalShiftCommand = deserializeAws_restJson1CancelZonalShiftCommand;
164
- const deserializeAws_restJson1CancelZonalShiftCommandError = async (output, context) => {
163
+ exports.de_CancelZonalShiftCommand = de_CancelZonalShiftCommand;
164
+ const de_CancelZonalShiftCommandError = async (output, context) => {
165
165
  const parsedOutput = {
166
166
  ...output,
167
167
  body: await parseErrorBody(output.body, context),
@@ -170,22 +170,22 @@ const deserializeAws_restJson1CancelZonalShiftCommandError = async (output, cont
170
170
  switch (errorCode) {
171
171
  case "AccessDeniedException":
172
172
  case "com.amazonaws.arczonalshift#AccessDeniedException":
173
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
173
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
174
174
  case "ConflictException":
175
175
  case "com.amazonaws.arczonalshift#ConflictException":
176
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
176
+ throw await de_ConflictExceptionRes(parsedOutput, context);
177
177
  case "InternalServerException":
178
178
  case "com.amazonaws.arczonalshift#InternalServerException":
179
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
179
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
180
180
  case "ResourceNotFoundException":
181
181
  case "com.amazonaws.arczonalshift#ResourceNotFoundException":
182
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
182
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
183
183
  case "ThrottlingException":
184
184
  case "com.amazonaws.arczonalshift#ThrottlingException":
185
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
185
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
186
186
  case "ValidationException":
187
187
  case "com.amazonaws.arczonalshift#ValidationException":
188
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
188
+ throw await de_ValidationExceptionRes(parsedOutput, context);
189
189
  default:
190
190
  const parsedBody = parsedOutput.body;
191
191
  (0, smithy_client_1.throwDefaultError)({
@@ -196,16 +196,16 @@ const deserializeAws_restJson1CancelZonalShiftCommandError = async (output, cont
196
196
  });
197
197
  }
198
198
  };
199
- const deserializeAws_restJson1GetManagedResourceCommand = async (output, context) => {
199
+ const de_GetManagedResourceCommand = async (output, context) => {
200
200
  if (output.statusCode !== 200 && output.statusCode >= 300) {
201
- return deserializeAws_restJson1GetManagedResourceCommandError(output, context);
201
+ return de_GetManagedResourceCommandError(output, context);
202
202
  }
203
203
  const contents = map({
204
204
  $metadata: deserializeMetadata(output),
205
205
  });
206
206
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
207
207
  if (data.appliedWeights != null) {
208
- contents.appliedWeights = deserializeAws_restJson1AppliedWeights(data.appliedWeights, context);
208
+ contents.appliedWeights = de_AppliedWeights(data.appliedWeights, context);
209
209
  }
210
210
  if (data.arn != null) {
211
211
  contents.arn = (0, smithy_client_1.expectString)(data.arn);
@@ -214,12 +214,12 @@ const deserializeAws_restJson1GetManagedResourceCommand = async (output, context
214
214
  contents.name = (0, smithy_client_1.expectString)(data.name);
215
215
  }
216
216
  if (data.zonalShifts != null) {
217
- contents.zonalShifts = deserializeAws_restJson1ZonalShiftsInResource(data.zonalShifts, context);
217
+ contents.zonalShifts = de_ZonalShiftsInResource(data.zonalShifts, context);
218
218
  }
219
219
  return contents;
220
220
  };
221
- exports.deserializeAws_restJson1GetManagedResourceCommand = deserializeAws_restJson1GetManagedResourceCommand;
222
- const deserializeAws_restJson1GetManagedResourceCommandError = async (output, context) => {
221
+ exports.de_GetManagedResourceCommand = de_GetManagedResourceCommand;
222
+ const de_GetManagedResourceCommandError = async (output, context) => {
223
223
  const parsedOutput = {
224
224
  ...output,
225
225
  body: await parseErrorBody(output.body, context),
@@ -228,19 +228,19 @@ const deserializeAws_restJson1GetManagedResourceCommandError = async (output, co
228
228
  switch (errorCode) {
229
229
  case "AccessDeniedException":
230
230
  case "com.amazonaws.arczonalshift#AccessDeniedException":
231
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
231
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
232
232
  case "InternalServerException":
233
233
  case "com.amazonaws.arczonalshift#InternalServerException":
234
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
234
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
235
235
  case "ResourceNotFoundException":
236
236
  case "com.amazonaws.arczonalshift#ResourceNotFoundException":
237
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
237
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
238
238
  case "ThrottlingException":
239
239
  case "com.amazonaws.arczonalshift#ThrottlingException":
240
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
240
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
241
241
  case "ValidationException":
242
242
  case "com.amazonaws.arczonalshift#ValidationException":
243
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
243
+ throw await de_ValidationExceptionRes(parsedOutput, context);
244
244
  default:
245
245
  const parsedBody = parsedOutput.body;
246
246
  (0, smithy_client_1.throwDefaultError)({
@@ -251,24 +251,24 @@ const deserializeAws_restJson1GetManagedResourceCommandError = async (output, co
251
251
  });
252
252
  }
253
253
  };
254
- const deserializeAws_restJson1ListManagedResourcesCommand = async (output, context) => {
254
+ const de_ListManagedResourcesCommand = async (output, context) => {
255
255
  if (output.statusCode !== 200 && output.statusCode >= 300) {
256
- return deserializeAws_restJson1ListManagedResourcesCommandError(output, context);
256
+ return de_ListManagedResourcesCommandError(output, context);
257
257
  }
258
258
  const contents = map({
259
259
  $metadata: deserializeMetadata(output),
260
260
  });
261
261
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
262
262
  if (data.items != null) {
263
- contents.items = deserializeAws_restJson1ManagedResourceSummaries(data.items, context);
263
+ contents.items = de_ManagedResourceSummaries(data.items, context);
264
264
  }
265
265
  if (data.nextToken != null) {
266
266
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
267
267
  }
268
268
  return contents;
269
269
  };
270
- exports.deserializeAws_restJson1ListManagedResourcesCommand = deserializeAws_restJson1ListManagedResourcesCommand;
271
- const deserializeAws_restJson1ListManagedResourcesCommandError = async (output, context) => {
270
+ exports.de_ListManagedResourcesCommand = de_ListManagedResourcesCommand;
271
+ const de_ListManagedResourcesCommandError = async (output, context) => {
272
272
  const parsedOutput = {
273
273
  ...output,
274
274
  body: await parseErrorBody(output.body, context),
@@ -277,16 +277,16 @@ const deserializeAws_restJson1ListManagedResourcesCommandError = async (output,
277
277
  switch (errorCode) {
278
278
  case "AccessDeniedException":
279
279
  case "com.amazonaws.arczonalshift#AccessDeniedException":
280
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
280
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
281
281
  case "InternalServerException":
282
282
  case "com.amazonaws.arczonalshift#InternalServerException":
283
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
283
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
284
284
  case "ThrottlingException":
285
285
  case "com.amazonaws.arczonalshift#ThrottlingException":
286
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
286
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
287
287
  case "ValidationException":
288
288
  case "com.amazonaws.arczonalshift#ValidationException":
289
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
289
+ throw await de_ValidationExceptionRes(parsedOutput, context);
290
290
  default:
291
291
  const parsedBody = parsedOutput.body;
292
292
  (0, smithy_client_1.throwDefaultError)({
@@ -297,24 +297,24 @@ const deserializeAws_restJson1ListManagedResourcesCommandError = async (output,
297
297
  });
298
298
  }
299
299
  };
300
- const deserializeAws_restJson1ListZonalShiftsCommand = async (output, context) => {
300
+ const de_ListZonalShiftsCommand = async (output, context) => {
301
301
  if (output.statusCode !== 200 && output.statusCode >= 300) {
302
- return deserializeAws_restJson1ListZonalShiftsCommandError(output, context);
302
+ return de_ListZonalShiftsCommandError(output, context);
303
303
  }
304
304
  const contents = map({
305
305
  $metadata: deserializeMetadata(output),
306
306
  });
307
307
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
308
308
  if (data.items != null) {
309
- contents.items = deserializeAws_restJson1ZonalShiftSummaries(data.items, context);
309
+ contents.items = de_ZonalShiftSummaries(data.items, context);
310
310
  }
311
311
  if (data.nextToken != null) {
312
312
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
313
313
  }
314
314
  return contents;
315
315
  };
316
- exports.deserializeAws_restJson1ListZonalShiftsCommand = deserializeAws_restJson1ListZonalShiftsCommand;
317
- const deserializeAws_restJson1ListZonalShiftsCommandError = async (output, context) => {
316
+ exports.de_ListZonalShiftsCommand = de_ListZonalShiftsCommand;
317
+ const de_ListZonalShiftsCommandError = async (output, context) => {
318
318
  const parsedOutput = {
319
319
  ...output,
320
320
  body: await parseErrorBody(output.body, context),
@@ -323,16 +323,16 @@ const deserializeAws_restJson1ListZonalShiftsCommandError = async (output, conte
323
323
  switch (errorCode) {
324
324
  case "AccessDeniedException":
325
325
  case "com.amazonaws.arczonalshift#AccessDeniedException":
326
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
326
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
327
327
  case "InternalServerException":
328
328
  case "com.amazonaws.arczonalshift#InternalServerException":
329
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
329
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
330
330
  case "ThrottlingException":
331
331
  case "com.amazonaws.arczonalshift#ThrottlingException":
332
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
332
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
333
333
  case "ValidationException":
334
334
  case "com.amazonaws.arczonalshift#ValidationException":
335
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
335
+ throw await de_ValidationExceptionRes(parsedOutput, context);
336
336
  default:
337
337
  const parsedBody = parsedOutput.body;
338
338
  (0, smithy_client_1.throwDefaultError)({
@@ -343,9 +343,9 @@ const deserializeAws_restJson1ListZonalShiftsCommandError = async (output, conte
343
343
  });
344
344
  }
345
345
  };
346
- const deserializeAws_restJson1StartZonalShiftCommand = async (output, context) => {
346
+ const de_StartZonalShiftCommand = async (output, context) => {
347
347
  if (output.statusCode !== 201 && output.statusCode >= 300) {
348
- return deserializeAws_restJson1StartZonalShiftCommandError(output, context);
348
+ return de_StartZonalShiftCommandError(output, context);
349
349
  }
350
350
  const contents = map({
351
351
  $metadata: deserializeMetadata(output),
@@ -374,8 +374,8 @@ const deserializeAws_restJson1StartZonalShiftCommand = async (output, context) =
374
374
  }
375
375
  return contents;
376
376
  };
377
- exports.deserializeAws_restJson1StartZonalShiftCommand = deserializeAws_restJson1StartZonalShiftCommand;
378
- const deserializeAws_restJson1StartZonalShiftCommandError = async (output, context) => {
377
+ exports.de_StartZonalShiftCommand = de_StartZonalShiftCommand;
378
+ const de_StartZonalShiftCommandError = async (output, context) => {
379
379
  const parsedOutput = {
380
380
  ...output,
381
381
  body: await parseErrorBody(output.body, context),
@@ -384,22 +384,22 @@ const deserializeAws_restJson1StartZonalShiftCommandError = async (output, conte
384
384
  switch (errorCode) {
385
385
  case "AccessDeniedException":
386
386
  case "com.amazonaws.arczonalshift#AccessDeniedException":
387
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
387
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
388
388
  case "ConflictException":
389
389
  case "com.amazonaws.arczonalshift#ConflictException":
390
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
390
+ throw await de_ConflictExceptionRes(parsedOutput, context);
391
391
  case "InternalServerException":
392
392
  case "com.amazonaws.arczonalshift#InternalServerException":
393
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
393
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
394
394
  case "ResourceNotFoundException":
395
395
  case "com.amazonaws.arczonalshift#ResourceNotFoundException":
396
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
396
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
397
397
  case "ThrottlingException":
398
398
  case "com.amazonaws.arczonalshift#ThrottlingException":
399
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
399
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
400
400
  case "ValidationException":
401
401
  case "com.amazonaws.arczonalshift#ValidationException":
402
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
402
+ throw await de_ValidationExceptionRes(parsedOutput, context);
403
403
  default:
404
404
  const parsedBody = parsedOutput.body;
405
405
  (0, smithy_client_1.throwDefaultError)({
@@ -410,9 +410,9 @@ const deserializeAws_restJson1StartZonalShiftCommandError = async (output, conte
410
410
  });
411
411
  }
412
412
  };
413
- const deserializeAws_restJson1UpdateZonalShiftCommand = async (output, context) => {
413
+ const de_UpdateZonalShiftCommand = async (output, context) => {
414
414
  if (output.statusCode !== 200 && output.statusCode >= 300) {
415
- return deserializeAws_restJson1UpdateZonalShiftCommandError(output, context);
415
+ return de_UpdateZonalShiftCommandError(output, context);
416
416
  }
417
417
  const contents = map({
418
418
  $metadata: deserializeMetadata(output),
@@ -441,8 +441,8 @@ const deserializeAws_restJson1UpdateZonalShiftCommand = async (output, context)
441
441
  }
442
442
  return contents;
443
443
  };
444
- exports.deserializeAws_restJson1UpdateZonalShiftCommand = deserializeAws_restJson1UpdateZonalShiftCommand;
445
- const deserializeAws_restJson1UpdateZonalShiftCommandError = async (output, context) => {
444
+ exports.de_UpdateZonalShiftCommand = de_UpdateZonalShiftCommand;
445
+ const de_UpdateZonalShiftCommandError = async (output, context) => {
446
446
  const parsedOutput = {
447
447
  ...output,
448
448
  body: await parseErrorBody(output.body, context),
@@ -451,22 +451,22 @@ const deserializeAws_restJson1UpdateZonalShiftCommandError = async (output, cont
451
451
  switch (errorCode) {
452
452
  case "AccessDeniedException":
453
453
  case "com.amazonaws.arczonalshift#AccessDeniedException":
454
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
454
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
455
455
  case "ConflictException":
456
456
  case "com.amazonaws.arczonalshift#ConflictException":
457
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
457
+ throw await de_ConflictExceptionRes(parsedOutput, context);
458
458
  case "InternalServerException":
459
459
  case "com.amazonaws.arczonalshift#InternalServerException":
460
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
460
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
461
461
  case "ResourceNotFoundException":
462
462
  case "com.amazonaws.arczonalshift#ResourceNotFoundException":
463
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
463
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
464
464
  case "ThrottlingException":
465
465
  case "com.amazonaws.arczonalshift#ThrottlingException":
466
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
466
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
467
467
  case "ValidationException":
468
468
  case "com.amazonaws.arczonalshift#ValidationException":
469
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
469
+ throw await de_ValidationExceptionRes(parsedOutput, context);
470
470
  default:
471
471
  const parsedBody = parsedOutput.body;
472
472
  (0, smithy_client_1.throwDefaultError)({
@@ -478,7 +478,7 @@ const deserializeAws_restJson1UpdateZonalShiftCommandError = async (output, cont
478
478
  }
479
479
  };
480
480
  const map = smithy_client_1.map;
481
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
481
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
482
482
  const contents = map({});
483
483
  const data = parsedOutput.body;
484
484
  if (data.message != null) {
@@ -490,7 +490,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
490
490
  });
491
491
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
492
492
  };
493
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
493
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
494
494
  const contents = map({});
495
495
  const data = parsedOutput.body;
496
496
  if (data.message != null) {
@@ -508,7 +508,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
508
508
  });
509
509
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
510
510
  };
511
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
511
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
512
512
  const contents = map({});
513
513
  const data = parsedOutput.body;
514
514
  if (data.message != null) {
@@ -520,7 +520,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
520
520
  });
521
521
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
522
522
  };
523
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
523
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
524
524
  const contents = map({});
525
525
  const data = parsedOutput.body;
526
526
  if (data.message != null) {
@@ -532,7 +532,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
532
532
  });
533
533
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
534
534
  };
535
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
535
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
536
536
  const contents = map({});
537
537
  const data = parsedOutput.body;
538
538
  if (data.message != null) {
@@ -544,7 +544,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
544
544
  });
545
545
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
546
546
  };
547
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
547
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
548
548
  const contents = map({});
549
549
  const data = parsedOutput.body;
550
550
  if (data.message != null) {
@@ -559,7 +559,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
559
559
  });
560
560
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
561
561
  };
562
- const deserializeAws_restJson1AppliedWeights = (output, context) => {
562
+ const de_AppliedWeights = (output, context) => {
563
563
  return Object.entries(output).reduce((acc, [key, value]) => {
564
564
  if (value === null) {
565
565
  return acc;
@@ -568,7 +568,7 @@ const deserializeAws_restJson1AppliedWeights = (output, context) => {
568
568
  return acc;
569
569
  }, {});
570
570
  };
571
- const deserializeAws_restJson1AvailabilityZones = (output, context) => {
571
+ const de_AvailabilityZones = (output, context) => {
572
572
  const retVal = (output || [])
573
573
  .filter((e) => e != null)
574
574
  .map((entry) => {
@@ -579,27 +579,25 @@ const deserializeAws_restJson1AvailabilityZones = (output, context) => {
579
579
  });
580
580
  return retVal;
581
581
  };
582
- const deserializeAws_restJson1ManagedResourceSummaries = (output, context) => {
582
+ const de_ManagedResourceSummaries = (output, context) => {
583
583
  const retVal = (output || [])
584
584
  .filter((e) => e != null)
585
585
  .map((entry) => {
586
586
  if (entry === null) {
587
587
  return null;
588
588
  }
589
- return deserializeAws_restJson1ManagedResourceSummary(entry, context);
589
+ return de_ManagedResourceSummary(entry, context);
590
590
  });
591
591
  return retVal;
592
592
  };
593
- const deserializeAws_restJson1ManagedResourceSummary = (output, context) => {
593
+ const de_ManagedResourceSummary = (output, context) => {
594
594
  return {
595
595
  arn: (0, smithy_client_1.expectString)(output.arn),
596
- availabilityZones: output.availabilityZones != null
597
- ? deserializeAws_restJson1AvailabilityZones(output.availabilityZones, context)
598
- : undefined,
596
+ availabilityZones: output.availabilityZones != null ? de_AvailabilityZones(output.availabilityZones, context) : undefined,
599
597
  name: (0, smithy_client_1.expectString)(output.name),
600
598
  };
601
599
  };
602
- const deserializeAws_restJson1ZonalShiftInResource = (output, context) => {
600
+ const de_ZonalShiftInResource = (output, context) => {
603
601
  return {
604
602
  appliedStatus: (0, smithy_client_1.expectString)(output.appliedStatus),
605
603
  awayFrom: (0, smithy_client_1.expectString)(output.awayFrom),
@@ -610,29 +608,29 @@ const deserializeAws_restJson1ZonalShiftInResource = (output, context) => {
610
608
  zonalShiftId: (0, smithy_client_1.expectString)(output.zonalShiftId),
611
609
  };
612
610
  };
613
- const deserializeAws_restJson1ZonalShiftsInResource = (output, context) => {
611
+ const de_ZonalShiftsInResource = (output, context) => {
614
612
  const retVal = (output || [])
615
613
  .filter((e) => e != null)
616
614
  .map((entry) => {
617
615
  if (entry === null) {
618
616
  return null;
619
617
  }
620
- return deserializeAws_restJson1ZonalShiftInResource(entry, context);
618
+ return de_ZonalShiftInResource(entry, context);
621
619
  });
622
620
  return retVal;
623
621
  };
624
- const deserializeAws_restJson1ZonalShiftSummaries = (output, context) => {
622
+ const de_ZonalShiftSummaries = (output, context) => {
625
623
  const retVal = (output || [])
626
624
  .filter((e) => e != null)
627
625
  .map((entry) => {
628
626
  if (entry === null) {
629
627
  return null;
630
628
  }
631
- return deserializeAws_restJson1ZonalShiftSummary(entry, context);
629
+ return de_ZonalShiftSummary(entry, context);
632
630
  });
633
631
  return retVal;
634
632
  };
635
- const deserializeAws_restJson1ZonalShiftSummary = (output, context) => {
633
+ const de_ZonalShiftSummary = (output, context) => {
636
634
  return {
637
635
  awayFrom: (0, smithy_client_1.expectString)(output.awayFrom),
638
636
  comment: (0, smithy_client_1.expectString)(output.comment),
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { deserializeAws_restJson1CancelZonalShiftCommand, serializeAws_restJson1CancelZonalShiftCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_CancelZonalShiftCommand, se_CancelZonalShiftCommand } from "../protocols/Aws_restJson1";
5
5
  export class CancelZonalShiftCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class CancelZonalShiftCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1CancelZonalShiftCommand(input, context);
36
+ return se_CancelZonalShiftCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1CancelZonalShiftCommand(output, context);
39
+ return de_CancelZonalShiftCommand(output, context);
40
40
  }
41
41
  }