@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.
@@ -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_restJson1GetManagedResourceCommand, serializeAws_restJson1GetManagedResourceCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_GetManagedResourceCommand, se_GetManagedResourceCommand } from "../protocols/Aws_restJson1";
5
5
  export class GetManagedResourceCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class GetManagedResourceCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1GetManagedResourceCommand(input, context);
36
+ return se_GetManagedResourceCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1GetManagedResourceCommand(output, context);
39
+ return de_GetManagedResourceCommand(output, context);
40
40
  }
41
41
  }
@@ -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_restJson1ListManagedResourcesCommand, serializeAws_restJson1ListManagedResourcesCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_ListManagedResourcesCommand, se_ListManagedResourcesCommand } from "../protocols/Aws_restJson1";
5
5
  export class ListManagedResourcesCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class ListManagedResourcesCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1ListManagedResourcesCommand(input, context);
36
+ return se_ListManagedResourcesCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1ListManagedResourcesCommand(output, context);
39
+ return de_ListManagedResourcesCommand(output, context);
40
40
  }
41
41
  }
@@ -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_restJson1ListZonalShiftsCommand, serializeAws_restJson1ListZonalShiftsCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_ListZonalShiftsCommand, se_ListZonalShiftsCommand } from "../protocols/Aws_restJson1";
5
5
  export class ListZonalShiftsCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class ListZonalShiftsCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1ListZonalShiftsCommand(input, context);
36
+ return se_ListZonalShiftsCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1ListZonalShiftsCommand(output, context);
39
+ return de_ListZonalShiftsCommand(output, context);
40
40
  }
41
41
  }
@@ -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_restJson1StartZonalShiftCommand, serializeAws_restJson1StartZonalShiftCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_StartZonalShiftCommand, se_StartZonalShiftCommand } from "../protocols/Aws_restJson1";
5
5
  export class StartZonalShiftCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class StartZonalShiftCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1StartZonalShiftCommand(input, context);
36
+ return se_StartZonalShiftCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1StartZonalShiftCommand(output, context);
39
+ return de_StartZonalShiftCommand(output, context);
40
40
  }
41
41
  }
@@ -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_restJson1UpdateZonalShiftCommand, serializeAws_restJson1UpdateZonalShiftCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_UpdateZonalShiftCommand, se_UpdateZonalShiftCommand } from "../protocols/Aws_restJson1";
5
5
  export class UpdateZonalShiftCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class UpdateZonalShiftCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1UpdateZonalShiftCommand(input, context);
36
+ return se_UpdateZonalShiftCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1UpdateZonalShiftCommand(output, context);
39
+ return de_UpdateZonalShiftCommand(output, context);
40
40
  }
41
41
  }
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { ARCZonalShiftServiceException as __BaseException } from "../models/ARCZonalShiftServiceException";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
5
- export const serializeAws_restJson1CancelZonalShiftCommand = async (input, context) => {
5
+ export const se_CancelZonalShiftCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {};
8
8
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts/{zonalShiftId}";
@@ -18,7 +18,7 @@ export const serializeAws_restJson1CancelZonalShiftCommand = async (input, conte
18
18
  body,
19
19
  });
20
20
  };
21
- export const serializeAws_restJson1GetManagedResourceCommand = async (input, context) => {
21
+ export const se_GetManagedResourceCommand = async (input, context) => {
22
22
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
23
23
  const headers = {};
24
24
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managedresources/{resourceIdentifier}";
@@ -34,7 +34,7 @@ export const serializeAws_restJson1GetManagedResourceCommand = async (input, con
34
34
  body,
35
35
  });
36
36
  };
37
- export const serializeAws_restJson1ListManagedResourcesCommand = async (input, context) => {
37
+ export const se_ListManagedResourcesCommand = async (input, context) => {
38
38
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
39
39
  const headers = {};
40
40
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managedresources";
@@ -54,7 +54,7 @@ export const serializeAws_restJson1ListManagedResourcesCommand = async (input, c
54
54
  body,
55
55
  });
56
56
  };
57
- export const serializeAws_restJson1ListZonalShiftsCommand = async (input, context) => {
57
+ export const se_ListZonalShiftsCommand = async (input, context) => {
58
58
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
59
59
  const headers = {};
60
60
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts";
@@ -75,7 +75,7 @@ export const serializeAws_restJson1ListZonalShiftsCommand = async (input, contex
75
75
  body,
76
76
  });
77
77
  };
78
- export const serializeAws_restJson1StartZonalShiftCommand = async (input, context) => {
78
+ export const se_StartZonalShiftCommand = async (input, context) => {
79
79
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
80
80
  const headers = {
81
81
  "content-type": "application/json",
@@ -98,7 +98,7 @@ export const serializeAws_restJson1StartZonalShiftCommand = async (input, contex
98
98
  body,
99
99
  });
100
100
  };
101
- export const serializeAws_restJson1UpdateZonalShiftCommand = async (input, context) => {
101
+ export const se_UpdateZonalShiftCommand = async (input, context) => {
102
102
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
103
103
  const headers = {
104
104
  "content-type": "application/json",
@@ -120,9 +120,9 @@ export const serializeAws_restJson1UpdateZonalShiftCommand = async (input, conte
120
120
  body,
121
121
  });
122
122
  };
123
- export const deserializeAws_restJson1CancelZonalShiftCommand = async (output, context) => {
123
+ export const de_CancelZonalShiftCommand = async (output, context) => {
124
124
  if (output.statusCode !== 200 && output.statusCode >= 300) {
125
- return deserializeAws_restJson1CancelZonalShiftCommandError(output, context);
125
+ return de_CancelZonalShiftCommandError(output, context);
126
126
  }
127
127
  const contents = map({
128
128
  $metadata: deserializeMetadata(output),
@@ -151,7 +151,7 @@ export const deserializeAws_restJson1CancelZonalShiftCommand = async (output, co
151
151
  }
152
152
  return contents;
153
153
  };
154
- const deserializeAws_restJson1CancelZonalShiftCommandError = async (output, context) => {
154
+ const de_CancelZonalShiftCommandError = async (output, context) => {
155
155
  const parsedOutput = {
156
156
  ...output,
157
157
  body: await parseErrorBody(output.body, context),
@@ -160,22 +160,22 @@ const deserializeAws_restJson1CancelZonalShiftCommandError = async (output, cont
160
160
  switch (errorCode) {
161
161
  case "AccessDeniedException":
162
162
  case "com.amazonaws.arczonalshift#AccessDeniedException":
163
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
163
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
164
164
  case "ConflictException":
165
165
  case "com.amazonaws.arczonalshift#ConflictException":
166
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
166
+ throw await de_ConflictExceptionRes(parsedOutput, context);
167
167
  case "InternalServerException":
168
168
  case "com.amazonaws.arczonalshift#InternalServerException":
169
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
169
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
170
170
  case "ResourceNotFoundException":
171
171
  case "com.amazonaws.arczonalshift#ResourceNotFoundException":
172
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
172
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
173
173
  case "ThrottlingException":
174
174
  case "com.amazonaws.arczonalshift#ThrottlingException":
175
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
175
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
176
176
  case "ValidationException":
177
177
  case "com.amazonaws.arczonalshift#ValidationException":
178
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
178
+ throw await de_ValidationExceptionRes(parsedOutput, context);
179
179
  default:
180
180
  const parsedBody = parsedOutput.body;
181
181
  throwDefaultError({
@@ -186,16 +186,16 @@ const deserializeAws_restJson1CancelZonalShiftCommandError = async (output, cont
186
186
  });
187
187
  }
188
188
  };
189
- export const deserializeAws_restJson1GetManagedResourceCommand = async (output, context) => {
189
+ export const de_GetManagedResourceCommand = async (output, context) => {
190
190
  if (output.statusCode !== 200 && output.statusCode >= 300) {
191
- return deserializeAws_restJson1GetManagedResourceCommandError(output, context);
191
+ return de_GetManagedResourceCommandError(output, context);
192
192
  }
193
193
  const contents = map({
194
194
  $metadata: deserializeMetadata(output),
195
195
  });
196
196
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
197
197
  if (data.appliedWeights != null) {
198
- contents.appliedWeights = deserializeAws_restJson1AppliedWeights(data.appliedWeights, context);
198
+ contents.appliedWeights = de_AppliedWeights(data.appliedWeights, context);
199
199
  }
200
200
  if (data.arn != null) {
201
201
  contents.arn = __expectString(data.arn);
@@ -204,11 +204,11 @@ export const deserializeAws_restJson1GetManagedResourceCommand = async (output,
204
204
  contents.name = __expectString(data.name);
205
205
  }
206
206
  if (data.zonalShifts != null) {
207
- contents.zonalShifts = deserializeAws_restJson1ZonalShiftsInResource(data.zonalShifts, context);
207
+ contents.zonalShifts = de_ZonalShiftsInResource(data.zonalShifts, context);
208
208
  }
209
209
  return contents;
210
210
  };
211
- const deserializeAws_restJson1GetManagedResourceCommandError = async (output, context) => {
211
+ const de_GetManagedResourceCommandError = async (output, context) => {
212
212
  const parsedOutput = {
213
213
  ...output,
214
214
  body: await parseErrorBody(output.body, context),
@@ -217,19 +217,19 @@ const deserializeAws_restJson1GetManagedResourceCommandError = async (output, co
217
217
  switch (errorCode) {
218
218
  case "AccessDeniedException":
219
219
  case "com.amazonaws.arczonalshift#AccessDeniedException":
220
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
220
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
221
221
  case "InternalServerException":
222
222
  case "com.amazonaws.arczonalshift#InternalServerException":
223
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
223
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
224
224
  case "ResourceNotFoundException":
225
225
  case "com.amazonaws.arczonalshift#ResourceNotFoundException":
226
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
226
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
227
227
  case "ThrottlingException":
228
228
  case "com.amazonaws.arczonalshift#ThrottlingException":
229
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
229
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
230
230
  case "ValidationException":
231
231
  case "com.amazonaws.arczonalshift#ValidationException":
232
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
232
+ throw await de_ValidationExceptionRes(parsedOutput, context);
233
233
  default:
234
234
  const parsedBody = parsedOutput.body;
235
235
  throwDefaultError({
@@ -240,23 +240,23 @@ const deserializeAws_restJson1GetManagedResourceCommandError = async (output, co
240
240
  });
241
241
  }
242
242
  };
243
- export const deserializeAws_restJson1ListManagedResourcesCommand = async (output, context) => {
243
+ export const de_ListManagedResourcesCommand = async (output, context) => {
244
244
  if (output.statusCode !== 200 && output.statusCode >= 300) {
245
- return deserializeAws_restJson1ListManagedResourcesCommandError(output, context);
245
+ return de_ListManagedResourcesCommandError(output, context);
246
246
  }
247
247
  const contents = map({
248
248
  $metadata: deserializeMetadata(output),
249
249
  });
250
250
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
251
251
  if (data.items != null) {
252
- contents.items = deserializeAws_restJson1ManagedResourceSummaries(data.items, context);
252
+ contents.items = de_ManagedResourceSummaries(data.items, context);
253
253
  }
254
254
  if (data.nextToken != null) {
255
255
  contents.nextToken = __expectString(data.nextToken);
256
256
  }
257
257
  return contents;
258
258
  };
259
- const deserializeAws_restJson1ListManagedResourcesCommandError = async (output, context) => {
259
+ const de_ListManagedResourcesCommandError = async (output, context) => {
260
260
  const parsedOutput = {
261
261
  ...output,
262
262
  body: await parseErrorBody(output.body, context),
@@ -265,16 +265,16 @@ const deserializeAws_restJson1ListManagedResourcesCommandError = async (output,
265
265
  switch (errorCode) {
266
266
  case "AccessDeniedException":
267
267
  case "com.amazonaws.arczonalshift#AccessDeniedException":
268
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
268
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
269
269
  case "InternalServerException":
270
270
  case "com.amazonaws.arczonalshift#InternalServerException":
271
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
271
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
272
272
  case "ThrottlingException":
273
273
  case "com.amazonaws.arczonalshift#ThrottlingException":
274
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
274
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
275
275
  case "ValidationException":
276
276
  case "com.amazonaws.arczonalshift#ValidationException":
277
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
277
+ throw await de_ValidationExceptionRes(parsedOutput, context);
278
278
  default:
279
279
  const parsedBody = parsedOutput.body;
280
280
  throwDefaultError({
@@ -285,23 +285,23 @@ const deserializeAws_restJson1ListManagedResourcesCommandError = async (output,
285
285
  });
286
286
  }
287
287
  };
288
- export const deserializeAws_restJson1ListZonalShiftsCommand = async (output, context) => {
288
+ export const de_ListZonalShiftsCommand = async (output, context) => {
289
289
  if (output.statusCode !== 200 && output.statusCode >= 300) {
290
- return deserializeAws_restJson1ListZonalShiftsCommandError(output, context);
290
+ return de_ListZonalShiftsCommandError(output, context);
291
291
  }
292
292
  const contents = map({
293
293
  $metadata: deserializeMetadata(output),
294
294
  });
295
295
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
296
296
  if (data.items != null) {
297
- contents.items = deserializeAws_restJson1ZonalShiftSummaries(data.items, context);
297
+ contents.items = de_ZonalShiftSummaries(data.items, context);
298
298
  }
299
299
  if (data.nextToken != null) {
300
300
  contents.nextToken = __expectString(data.nextToken);
301
301
  }
302
302
  return contents;
303
303
  };
304
- const deserializeAws_restJson1ListZonalShiftsCommandError = async (output, context) => {
304
+ const de_ListZonalShiftsCommandError = async (output, context) => {
305
305
  const parsedOutput = {
306
306
  ...output,
307
307
  body: await parseErrorBody(output.body, context),
@@ -310,16 +310,16 @@ const deserializeAws_restJson1ListZonalShiftsCommandError = async (output, conte
310
310
  switch (errorCode) {
311
311
  case "AccessDeniedException":
312
312
  case "com.amazonaws.arczonalshift#AccessDeniedException":
313
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
313
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
314
314
  case "InternalServerException":
315
315
  case "com.amazonaws.arczonalshift#InternalServerException":
316
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
316
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
317
317
  case "ThrottlingException":
318
318
  case "com.amazonaws.arczonalshift#ThrottlingException":
319
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
319
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
320
320
  case "ValidationException":
321
321
  case "com.amazonaws.arczonalshift#ValidationException":
322
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
322
+ throw await de_ValidationExceptionRes(parsedOutput, context);
323
323
  default:
324
324
  const parsedBody = parsedOutput.body;
325
325
  throwDefaultError({
@@ -330,9 +330,9 @@ const deserializeAws_restJson1ListZonalShiftsCommandError = async (output, conte
330
330
  });
331
331
  }
332
332
  };
333
- export const deserializeAws_restJson1StartZonalShiftCommand = async (output, context) => {
333
+ export const de_StartZonalShiftCommand = async (output, context) => {
334
334
  if (output.statusCode !== 201 && output.statusCode >= 300) {
335
- return deserializeAws_restJson1StartZonalShiftCommandError(output, context);
335
+ return de_StartZonalShiftCommandError(output, context);
336
336
  }
337
337
  const contents = map({
338
338
  $metadata: deserializeMetadata(output),
@@ -361,7 +361,7 @@ export const deserializeAws_restJson1StartZonalShiftCommand = async (output, con
361
361
  }
362
362
  return contents;
363
363
  };
364
- const deserializeAws_restJson1StartZonalShiftCommandError = async (output, context) => {
364
+ const de_StartZonalShiftCommandError = async (output, context) => {
365
365
  const parsedOutput = {
366
366
  ...output,
367
367
  body: await parseErrorBody(output.body, context),
@@ -370,22 +370,22 @@ const deserializeAws_restJson1StartZonalShiftCommandError = async (output, conte
370
370
  switch (errorCode) {
371
371
  case "AccessDeniedException":
372
372
  case "com.amazonaws.arczonalshift#AccessDeniedException":
373
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
373
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
374
374
  case "ConflictException":
375
375
  case "com.amazonaws.arczonalshift#ConflictException":
376
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
376
+ throw await de_ConflictExceptionRes(parsedOutput, context);
377
377
  case "InternalServerException":
378
378
  case "com.amazonaws.arczonalshift#InternalServerException":
379
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
379
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
380
380
  case "ResourceNotFoundException":
381
381
  case "com.amazonaws.arczonalshift#ResourceNotFoundException":
382
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
382
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
383
383
  case "ThrottlingException":
384
384
  case "com.amazonaws.arczonalshift#ThrottlingException":
385
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
385
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
386
386
  case "ValidationException":
387
387
  case "com.amazonaws.arczonalshift#ValidationException":
388
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
388
+ throw await de_ValidationExceptionRes(parsedOutput, context);
389
389
  default:
390
390
  const parsedBody = parsedOutput.body;
391
391
  throwDefaultError({
@@ -396,9 +396,9 @@ const deserializeAws_restJson1StartZonalShiftCommandError = async (output, conte
396
396
  });
397
397
  }
398
398
  };
399
- export const deserializeAws_restJson1UpdateZonalShiftCommand = async (output, context) => {
399
+ export const de_UpdateZonalShiftCommand = async (output, context) => {
400
400
  if (output.statusCode !== 200 && output.statusCode >= 300) {
401
- return deserializeAws_restJson1UpdateZonalShiftCommandError(output, context);
401
+ return de_UpdateZonalShiftCommandError(output, context);
402
402
  }
403
403
  const contents = map({
404
404
  $metadata: deserializeMetadata(output),
@@ -427,7 +427,7 @@ export const deserializeAws_restJson1UpdateZonalShiftCommand = async (output, co
427
427
  }
428
428
  return contents;
429
429
  };
430
- const deserializeAws_restJson1UpdateZonalShiftCommandError = async (output, context) => {
430
+ const de_UpdateZonalShiftCommandError = async (output, context) => {
431
431
  const parsedOutput = {
432
432
  ...output,
433
433
  body: await parseErrorBody(output.body, context),
@@ -436,22 +436,22 @@ const deserializeAws_restJson1UpdateZonalShiftCommandError = async (output, cont
436
436
  switch (errorCode) {
437
437
  case "AccessDeniedException":
438
438
  case "com.amazonaws.arczonalshift#AccessDeniedException":
439
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
439
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
440
440
  case "ConflictException":
441
441
  case "com.amazonaws.arczonalshift#ConflictException":
442
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
442
+ throw await de_ConflictExceptionRes(parsedOutput, context);
443
443
  case "InternalServerException":
444
444
  case "com.amazonaws.arczonalshift#InternalServerException":
445
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
445
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
446
446
  case "ResourceNotFoundException":
447
447
  case "com.amazonaws.arczonalshift#ResourceNotFoundException":
448
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
448
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
449
449
  case "ThrottlingException":
450
450
  case "com.amazonaws.arczonalshift#ThrottlingException":
451
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
451
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
452
452
  case "ValidationException":
453
453
  case "com.amazonaws.arczonalshift#ValidationException":
454
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
454
+ throw await de_ValidationExceptionRes(parsedOutput, context);
455
455
  default:
456
456
  const parsedBody = parsedOutput.body;
457
457
  throwDefaultError({
@@ -463,7 +463,7 @@ const deserializeAws_restJson1UpdateZonalShiftCommandError = async (output, cont
463
463
  }
464
464
  };
465
465
  const map = __map;
466
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
466
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
467
467
  const contents = map({});
468
468
  const data = parsedOutput.body;
469
469
  if (data.message != null) {
@@ -475,7 +475,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
475
475
  });
476
476
  return __decorateServiceException(exception, parsedOutput.body);
477
477
  };
478
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
478
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
479
479
  const contents = map({});
480
480
  const data = parsedOutput.body;
481
481
  if (data.message != null) {
@@ -493,7 +493,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
493
493
  });
494
494
  return __decorateServiceException(exception, parsedOutput.body);
495
495
  };
496
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
496
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
497
497
  const contents = map({});
498
498
  const data = parsedOutput.body;
499
499
  if (data.message != null) {
@@ -505,7 +505,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
505
505
  });
506
506
  return __decorateServiceException(exception, parsedOutput.body);
507
507
  };
508
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
508
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
509
509
  const contents = map({});
510
510
  const data = parsedOutput.body;
511
511
  if (data.message != null) {
@@ -517,7 +517,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
517
517
  });
518
518
  return __decorateServiceException(exception, parsedOutput.body);
519
519
  };
520
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
520
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
521
521
  const contents = map({});
522
522
  const data = parsedOutput.body;
523
523
  if (data.message != null) {
@@ -529,7 +529,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
529
529
  });
530
530
  return __decorateServiceException(exception, parsedOutput.body);
531
531
  };
532
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
532
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
533
533
  const contents = map({});
534
534
  const data = parsedOutput.body;
535
535
  if (data.message != null) {
@@ -544,7 +544,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
544
544
  });
545
545
  return __decorateServiceException(exception, parsedOutput.body);
546
546
  };
547
- const deserializeAws_restJson1AppliedWeights = (output, context) => {
547
+ const de_AppliedWeights = (output, context) => {
548
548
  return Object.entries(output).reduce((acc, [key, value]) => {
549
549
  if (value === null) {
550
550
  return acc;
@@ -553,7 +553,7 @@ const deserializeAws_restJson1AppliedWeights = (output, context) => {
553
553
  return acc;
554
554
  }, {});
555
555
  };
556
- const deserializeAws_restJson1AvailabilityZones = (output, context) => {
556
+ const de_AvailabilityZones = (output, context) => {
557
557
  const retVal = (output || [])
558
558
  .filter((e) => e != null)
559
559
  .map((entry) => {
@@ -564,27 +564,25 @@ const deserializeAws_restJson1AvailabilityZones = (output, context) => {
564
564
  });
565
565
  return retVal;
566
566
  };
567
- const deserializeAws_restJson1ManagedResourceSummaries = (output, context) => {
567
+ const de_ManagedResourceSummaries = (output, context) => {
568
568
  const retVal = (output || [])
569
569
  .filter((e) => e != null)
570
570
  .map((entry) => {
571
571
  if (entry === null) {
572
572
  return null;
573
573
  }
574
- return deserializeAws_restJson1ManagedResourceSummary(entry, context);
574
+ return de_ManagedResourceSummary(entry, context);
575
575
  });
576
576
  return retVal;
577
577
  };
578
- const deserializeAws_restJson1ManagedResourceSummary = (output, context) => {
578
+ const de_ManagedResourceSummary = (output, context) => {
579
579
  return {
580
580
  arn: __expectString(output.arn),
581
- availabilityZones: output.availabilityZones != null
582
- ? deserializeAws_restJson1AvailabilityZones(output.availabilityZones, context)
583
- : undefined,
581
+ availabilityZones: output.availabilityZones != null ? de_AvailabilityZones(output.availabilityZones, context) : undefined,
584
582
  name: __expectString(output.name),
585
583
  };
586
584
  };
587
- const deserializeAws_restJson1ZonalShiftInResource = (output, context) => {
585
+ const de_ZonalShiftInResource = (output, context) => {
588
586
  return {
589
587
  appliedStatus: __expectString(output.appliedStatus),
590
588
  awayFrom: __expectString(output.awayFrom),
@@ -595,29 +593,29 @@ const deserializeAws_restJson1ZonalShiftInResource = (output, context) => {
595
593
  zonalShiftId: __expectString(output.zonalShiftId),
596
594
  };
597
595
  };
598
- const deserializeAws_restJson1ZonalShiftsInResource = (output, context) => {
596
+ const de_ZonalShiftsInResource = (output, context) => {
599
597
  const retVal = (output || [])
600
598
  .filter((e) => e != null)
601
599
  .map((entry) => {
602
600
  if (entry === null) {
603
601
  return null;
604
602
  }
605
- return deserializeAws_restJson1ZonalShiftInResource(entry, context);
603
+ return de_ZonalShiftInResource(entry, context);
606
604
  });
607
605
  return retVal;
608
606
  };
609
- const deserializeAws_restJson1ZonalShiftSummaries = (output, context) => {
607
+ const de_ZonalShiftSummaries = (output, context) => {
610
608
  const retVal = (output || [])
611
609
  .filter((e) => e != null)
612
610
  .map((entry) => {
613
611
  if (entry === null) {
614
612
  return null;
615
613
  }
616
- return deserializeAws_restJson1ZonalShiftSummary(entry, context);
614
+ return de_ZonalShiftSummary(entry, context);
617
615
  });
618
616
  return retVal;
619
617
  };
620
- const deserializeAws_restJson1ZonalShiftSummary = (output, context) => {
618
+ const de_ZonalShiftSummary = (output, context) => {
621
619
  return {
622
620
  awayFrom: __expectString(output.awayFrom),
623
621
  comment: __expectString(output.comment),