@aws-sdk/client-global-accelerator 3.312.0 → 3.315.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,30 +1,30 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { GlobalAcceleratorServiceException as __BaseException } from "../models/GlobalAcceleratorServiceException";
5
5
  import { AcceleratorNotDisabledException, AcceleratorNotFoundException, AccessDeniedException, AssociatedEndpointGroupFoundException, AssociatedListenerFoundException, ByoipCidrNotFoundException, ConflictException, EndpointAlreadyExistsException, EndpointGroupAlreadyExistsException, EndpointGroupNotFoundException, EndpointNotFoundException, IncorrectCidrStateException, InternalServiceErrorException, InvalidArgumentException, InvalidNextTokenException, InvalidPortRangeException, LimitExceededException, ListenerNotFoundException, TransactionInProgressException, } from "../models/models_0";
6
6
  export const se_AddCustomRoutingEndpointsCommand = async (input, context) => {
7
7
  const headers = sharedHeaders("AddCustomRoutingEndpoints");
8
8
  let body;
9
- body = JSON.stringify(se_AddCustomRoutingEndpointsRequest(input, context));
9
+ body = JSON.stringify(_json(input));
10
10
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
11
  };
12
12
  export const se_AddEndpointsCommand = async (input, context) => {
13
13
  const headers = sharedHeaders("AddEndpoints");
14
14
  let body;
15
- body = JSON.stringify(se_AddEndpointsRequest(input, context));
15
+ body = JSON.stringify(_json(input));
16
16
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
17
  };
18
18
  export const se_AdvertiseByoipCidrCommand = async (input, context) => {
19
19
  const headers = sharedHeaders("AdvertiseByoipCidr");
20
20
  let body;
21
- body = JSON.stringify(se_AdvertiseByoipCidrRequest(input, context));
21
+ body = JSON.stringify(_json(input));
22
22
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
23
  };
24
24
  export const se_AllowCustomRoutingTrafficCommand = async (input, context) => {
25
25
  const headers = sharedHeaders("AllowCustomRoutingTraffic");
26
26
  let body;
27
- body = JSON.stringify(se_AllowCustomRoutingTrafficRequest(input, context));
27
+ body = JSON.stringify(_json(input));
28
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
29
  };
30
30
  export const se_CreateAcceleratorCommand = async (input, context) => {
@@ -66,217 +66,217 @@ export const se_CreateListenerCommand = async (input, context) => {
66
66
  export const se_DeleteAcceleratorCommand = async (input, context) => {
67
67
  const headers = sharedHeaders("DeleteAccelerator");
68
68
  let body;
69
- body = JSON.stringify(se_DeleteAcceleratorRequest(input, context));
69
+ body = JSON.stringify(_json(input));
70
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
71
  };
72
72
  export const se_DeleteCustomRoutingAcceleratorCommand = async (input, context) => {
73
73
  const headers = sharedHeaders("DeleteCustomRoutingAccelerator");
74
74
  let body;
75
- body = JSON.stringify(se_DeleteCustomRoutingAcceleratorRequest(input, context));
75
+ body = JSON.stringify(_json(input));
76
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
77
  };
78
78
  export const se_DeleteCustomRoutingEndpointGroupCommand = async (input, context) => {
79
79
  const headers = sharedHeaders("DeleteCustomRoutingEndpointGroup");
80
80
  let body;
81
- body = JSON.stringify(se_DeleteCustomRoutingEndpointGroupRequest(input, context));
81
+ body = JSON.stringify(_json(input));
82
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
83
  };
84
84
  export const se_DeleteCustomRoutingListenerCommand = async (input, context) => {
85
85
  const headers = sharedHeaders("DeleteCustomRoutingListener");
86
86
  let body;
87
- body = JSON.stringify(se_DeleteCustomRoutingListenerRequest(input, context));
87
+ body = JSON.stringify(_json(input));
88
88
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
89
  };
90
90
  export const se_DeleteEndpointGroupCommand = async (input, context) => {
91
91
  const headers = sharedHeaders("DeleteEndpointGroup");
92
92
  let body;
93
- body = JSON.stringify(se_DeleteEndpointGroupRequest(input, context));
93
+ body = JSON.stringify(_json(input));
94
94
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
95
  };
96
96
  export const se_DeleteListenerCommand = async (input, context) => {
97
97
  const headers = sharedHeaders("DeleteListener");
98
98
  let body;
99
- body = JSON.stringify(se_DeleteListenerRequest(input, context));
99
+ body = JSON.stringify(_json(input));
100
100
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
101
  };
102
102
  export const se_DenyCustomRoutingTrafficCommand = async (input, context) => {
103
103
  const headers = sharedHeaders("DenyCustomRoutingTraffic");
104
104
  let body;
105
- body = JSON.stringify(se_DenyCustomRoutingTrafficRequest(input, context));
105
+ body = JSON.stringify(_json(input));
106
106
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
107
  };
108
108
  export const se_DeprovisionByoipCidrCommand = async (input, context) => {
109
109
  const headers = sharedHeaders("DeprovisionByoipCidr");
110
110
  let body;
111
- body = JSON.stringify(se_DeprovisionByoipCidrRequest(input, context));
111
+ body = JSON.stringify(_json(input));
112
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
113
  };
114
114
  export const se_DescribeAcceleratorCommand = async (input, context) => {
115
115
  const headers = sharedHeaders("DescribeAccelerator");
116
116
  let body;
117
- body = JSON.stringify(se_DescribeAcceleratorRequest(input, context));
117
+ body = JSON.stringify(_json(input));
118
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
119
  };
120
120
  export const se_DescribeAcceleratorAttributesCommand = async (input, context) => {
121
121
  const headers = sharedHeaders("DescribeAcceleratorAttributes");
122
122
  let body;
123
- body = JSON.stringify(se_DescribeAcceleratorAttributesRequest(input, context));
123
+ body = JSON.stringify(_json(input));
124
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
125
  };
126
126
  export const se_DescribeCustomRoutingAcceleratorCommand = async (input, context) => {
127
127
  const headers = sharedHeaders("DescribeCustomRoutingAccelerator");
128
128
  let body;
129
- body = JSON.stringify(se_DescribeCustomRoutingAcceleratorRequest(input, context));
129
+ body = JSON.stringify(_json(input));
130
130
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
131
  };
132
132
  export const se_DescribeCustomRoutingAcceleratorAttributesCommand = async (input, context) => {
133
133
  const headers = sharedHeaders("DescribeCustomRoutingAcceleratorAttributes");
134
134
  let body;
135
- body = JSON.stringify(se_DescribeCustomRoutingAcceleratorAttributesRequest(input, context));
135
+ body = JSON.stringify(_json(input));
136
136
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
137
  };
138
138
  export const se_DescribeCustomRoutingEndpointGroupCommand = async (input, context) => {
139
139
  const headers = sharedHeaders("DescribeCustomRoutingEndpointGroup");
140
140
  let body;
141
- body = JSON.stringify(se_DescribeCustomRoutingEndpointGroupRequest(input, context));
141
+ body = JSON.stringify(_json(input));
142
142
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
143
143
  };
144
144
  export const se_DescribeCustomRoutingListenerCommand = async (input, context) => {
145
145
  const headers = sharedHeaders("DescribeCustomRoutingListener");
146
146
  let body;
147
- body = JSON.stringify(se_DescribeCustomRoutingListenerRequest(input, context));
147
+ body = JSON.stringify(_json(input));
148
148
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
149
  };
150
150
  export const se_DescribeEndpointGroupCommand = async (input, context) => {
151
151
  const headers = sharedHeaders("DescribeEndpointGroup");
152
152
  let body;
153
- body = JSON.stringify(se_DescribeEndpointGroupRequest(input, context));
153
+ body = JSON.stringify(_json(input));
154
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
155
  };
156
156
  export const se_DescribeListenerCommand = async (input, context) => {
157
157
  const headers = sharedHeaders("DescribeListener");
158
158
  let body;
159
- body = JSON.stringify(se_DescribeListenerRequest(input, context));
159
+ body = JSON.stringify(_json(input));
160
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
161
  };
162
162
  export const se_ListAcceleratorsCommand = async (input, context) => {
163
163
  const headers = sharedHeaders("ListAccelerators");
164
164
  let body;
165
- body = JSON.stringify(se_ListAcceleratorsRequest(input, context));
165
+ body = JSON.stringify(_json(input));
166
166
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
167
  };
168
168
  export const se_ListByoipCidrsCommand = async (input, context) => {
169
169
  const headers = sharedHeaders("ListByoipCidrs");
170
170
  let body;
171
- body = JSON.stringify(se_ListByoipCidrsRequest(input, context));
171
+ body = JSON.stringify(_json(input));
172
172
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
173
  };
174
174
  export const se_ListCustomRoutingAcceleratorsCommand = async (input, context) => {
175
175
  const headers = sharedHeaders("ListCustomRoutingAccelerators");
176
176
  let body;
177
- body = JSON.stringify(se_ListCustomRoutingAcceleratorsRequest(input, context));
177
+ body = JSON.stringify(_json(input));
178
178
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
179
179
  };
180
180
  export const se_ListCustomRoutingEndpointGroupsCommand = async (input, context) => {
181
181
  const headers = sharedHeaders("ListCustomRoutingEndpointGroups");
182
182
  let body;
183
- body = JSON.stringify(se_ListCustomRoutingEndpointGroupsRequest(input, context));
183
+ body = JSON.stringify(_json(input));
184
184
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
185
  };
186
186
  export const se_ListCustomRoutingListenersCommand = async (input, context) => {
187
187
  const headers = sharedHeaders("ListCustomRoutingListeners");
188
188
  let body;
189
- body = JSON.stringify(se_ListCustomRoutingListenersRequest(input, context));
189
+ body = JSON.stringify(_json(input));
190
190
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
191
191
  };
192
192
  export const se_ListCustomRoutingPortMappingsCommand = async (input, context) => {
193
193
  const headers = sharedHeaders("ListCustomRoutingPortMappings");
194
194
  let body;
195
- body = JSON.stringify(se_ListCustomRoutingPortMappingsRequest(input, context));
195
+ body = JSON.stringify(_json(input));
196
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
197
  };
198
198
  export const se_ListCustomRoutingPortMappingsByDestinationCommand = async (input, context) => {
199
199
  const headers = sharedHeaders("ListCustomRoutingPortMappingsByDestination");
200
200
  let body;
201
- body = JSON.stringify(se_ListCustomRoutingPortMappingsByDestinationRequest(input, context));
201
+ body = JSON.stringify(_json(input));
202
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
203
  };
204
204
  export const se_ListEndpointGroupsCommand = async (input, context) => {
205
205
  const headers = sharedHeaders("ListEndpointGroups");
206
206
  let body;
207
- body = JSON.stringify(se_ListEndpointGroupsRequest(input, context));
207
+ body = JSON.stringify(_json(input));
208
208
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
209
  };
210
210
  export const se_ListListenersCommand = async (input, context) => {
211
211
  const headers = sharedHeaders("ListListeners");
212
212
  let body;
213
- body = JSON.stringify(se_ListListenersRequest(input, context));
213
+ body = JSON.stringify(_json(input));
214
214
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
215
  };
216
216
  export const se_ListTagsForResourceCommand = async (input, context) => {
217
217
  const headers = sharedHeaders("ListTagsForResource");
218
218
  let body;
219
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
219
+ body = JSON.stringify(_json(input));
220
220
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
221
  };
222
222
  export const se_ProvisionByoipCidrCommand = async (input, context) => {
223
223
  const headers = sharedHeaders("ProvisionByoipCidr");
224
224
  let body;
225
- body = JSON.stringify(se_ProvisionByoipCidrRequest(input, context));
225
+ body = JSON.stringify(_json(input));
226
226
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
227
  };
228
228
  export const se_RemoveCustomRoutingEndpointsCommand = async (input, context) => {
229
229
  const headers = sharedHeaders("RemoveCustomRoutingEndpoints");
230
230
  let body;
231
- body = JSON.stringify(se_RemoveCustomRoutingEndpointsRequest(input, context));
231
+ body = JSON.stringify(_json(input));
232
232
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
233
  };
234
234
  export const se_RemoveEndpointsCommand = async (input, context) => {
235
235
  const headers = sharedHeaders("RemoveEndpoints");
236
236
  let body;
237
- body = JSON.stringify(se_RemoveEndpointsRequest(input, context));
237
+ body = JSON.stringify(_json(input));
238
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
239
  };
240
240
  export const se_TagResourceCommand = async (input, context) => {
241
241
  const headers = sharedHeaders("TagResource");
242
242
  let body;
243
- body = JSON.stringify(se_TagResourceRequest(input, context));
243
+ body = JSON.stringify(_json(input));
244
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
245
  };
246
246
  export const se_UntagResourceCommand = async (input, context) => {
247
247
  const headers = sharedHeaders("UntagResource");
248
248
  let body;
249
- body = JSON.stringify(se_UntagResourceRequest(input, context));
249
+ body = JSON.stringify(_json(input));
250
250
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
251
251
  };
252
252
  export const se_UpdateAcceleratorCommand = async (input, context) => {
253
253
  const headers = sharedHeaders("UpdateAccelerator");
254
254
  let body;
255
- body = JSON.stringify(se_UpdateAcceleratorRequest(input, context));
255
+ body = JSON.stringify(_json(input));
256
256
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
257
  };
258
258
  export const se_UpdateAcceleratorAttributesCommand = async (input, context) => {
259
259
  const headers = sharedHeaders("UpdateAcceleratorAttributes");
260
260
  let body;
261
- body = JSON.stringify(se_UpdateAcceleratorAttributesRequest(input, context));
261
+ body = JSON.stringify(_json(input));
262
262
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
263
263
  };
264
264
  export const se_UpdateCustomRoutingAcceleratorCommand = async (input, context) => {
265
265
  const headers = sharedHeaders("UpdateCustomRoutingAccelerator");
266
266
  let body;
267
- body = JSON.stringify(se_UpdateCustomRoutingAcceleratorRequest(input, context));
267
+ body = JSON.stringify(_json(input));
268
268
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
269
  };
270
270
  export const se_UpdateCustomRoutingAcceleratorAttributesCommand = async (input, context) => {
271
271
  const headers = sharedHeaders("UpdateCustomRoutingAcceleratorAttributes");
272
272
  let body;
273
- body = JSON.stringify(se_UpdateCustomRoutingAcceleratorAttributesRequest(input, context));
273
+ body = JSON.stringify(_json(input));
274
274
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
275
275
  };
276
276
  export const se_UpdateCustomRoutingListenerCommand = async (input, context) => {
277
277
  const headers = sharedHeaders("UpdateCustomRoutingListener");
278
278
  let body;
279
- body = JSON.stringify(se_UpdateCustomRoutingListenerRequest(input, context));
279
+ body = JSON.stringify(_json(input));
280
280
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
281
  };
282
282
  export const se_UpdateEndpointGroupCommand = async (input, context) => {
@@ -288,13 +288,13 @@ export const se_UpdateEndpointGroupCommand = async (input, context) => {
288
288
  export const se_UpdateListenerCommand = async (input, context) => {
289
289
  const headers = sharedHeaders("UpdateListener");
290
290
  let body;
291
- body = JSON.stringify(se_UpdateListenerRequest(input, context));
291
+ body = JSON.stringify(_json(input));
292
292
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
293
293
  };
294
294
  export const se_WithdrawByoipCidrCommand = async (input, context) => {
295
295
  const headers = sharedHeaders("WithdrawByoipCidr");
296
296
  let body;
297
- body = JSON.stringify(se_WithdrawByoipCidrRequest(input, context));
297
+ body = JSON.stringify(_json(input));
298
298
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
299
299
  };
300
300
  export const de_AddCustomRoutingEndpointsCommand = async (output, context) => {
@@ -303,12 +303,12 @@ export const de_AddCustomRoutingEndpointsCommand = async (output, context) => {
303
303
  }
304
304
  const data = await parseBody(output.body, context);
305
305
  let contents = {};
306
- contents = de_AddCustomRoutingEndpointsResponse(data, context);
306
+ contents = _json(data);
307
307
  const response = {
308
308
  $metadata: deserializeMetadata(output),
309
309
  ...contents,
310
310
  };
311
- return Promise.resolve(response);
311
+ return response;
312
312
  };
313
313
  const de_AddCustomRoutingEndpointsCommandError = async (output, context) => {
314
314
  const parsedOutput = {
@@ -340,10 +340,9 @@ const de_AddCustomRoutingEndpointsCommandError = async (output, context) => {
340
340
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
341
341
  default:
342
342
  const parsedBody = parsedOutput.body;
343
- throwDefaultError({
343
+ return throwDefaultError({
344
344
  output,
345
345
  parsedBody,
346
- exceptionCtor: __BaseException,
347
346
  errorCode,
348
347
  });
349
348
  }
@@ -354,12 +353,12 @@ export const de_AddEndpointsCommand = async (output, context) => {
354
353
  }
355
354
  const data = await parseBody(output.body, context);
356
355
  let contents = {};
357
- contents = de_AddEndpointsResponse(data, context);
356
+ contents = _json(data);
358
357
  const response = {
359
358
  $metadata: deserializeMetadata(output),
360
359
  ...contents,
361
360
  };
362
- return Promise.resolve(response);
361
+ return response;
363
362
  };
364
363
  const de_AddEndpointsCommandError = async (output, context) => {
365
364
  const parsedOutput = {
@@ -388,10 +387,9 @@ const de_AddEndpointsCommandError = async (output, context) => {
388
387
  throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
389
388
  default:
390
389
  const parsedBody = parsedOutput.body;
391
- throwDefaultError({
390
+ return throwDefaultError({
392
391
  output,
393
392
  parsedBody,
394
- exceptionCtor: __BaseException,
395
393
  errorCode,
396
394
  });
397
395
  }
@@ -407,7 +405,7 @@ export const de_AdvertiseByoipCidrCommand = async (output, context) => {
407
405
  $metadata: deserializeMetadata(output),
408
406
  ...contents,
409
407
  };
410
- return Promise.resolve(response);
408
+ return response;
411
409
  };
412
410
  const de_AdvertiseByoipCidrCommandError = async (output, context) => {
413
411
  const parsedOutput = {
@@ -433,10 +431,9 @@ const de_AdvertiseByoipCidrCommandError = async (output, context) => {
433
431
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
434
432
  default:
435
433
  const parsedBody = parsedOutput.body;
436
- throwDefaultError({
434
+ return throwDefaultError({
437
435
  output,
438
436
  parsedBody,
439
- exceptionCtor: __BaseException,
440
437
  errorCode,
441
438
  });
442
439
  }
@@ -449,7 +446,7 @@ export const de_AllowCustomRoutingTrafficCommand = async (output, context) => {
449
446
  const response = {
450
447
  $metadata: deserializeMetadata(output),
451
448
  };
452
- return Promise.resolve(response);
449
+ return response;
453
450
  };
454
451
  const de_AllowCustomRoutingTrafficCommandError = async (output, context) => {
455
452
  const parsedOutput = {
@@ -469,10 +466,9 @@ const de_AllowCustomRoutingTrafficCommandError = async (output, context) => {
469
466
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
470
467
  default:
471
468
  const parsedBody = parsedOutput.body;
472
- throwDefaultError({
469
+ return throwDefaultError({
473
470
  output,
474
471
  parsedBody,
475
- exceptionCtor: __BaseException,
476
472
  errorCode,
477
473
  });
478
474
  }
@@ -488,7 +484,7 @@ export const de_CreateAcceleratorCommand = async (output, context) => {
488
484
  $metadata: deserializeMetadata(output),
489
485
  ...contents,
490
486
  };
491
- return Promise.resolve(response);
487
+ return response;
492
488
  };
493
489
  const de_CreateAcceleratorCommandError = async (output, context) => {
494
490
  const parsedOutput = {
@@ -508,10 +504,9 @@ const de_CreateAcceleratorCommandError = async (output, context) => {
508
504
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
509
505
  default:
510
506
  const parsedBody = parsedOutput.body;
511
- throwDefaultError({
507
+ return throwDefaultError({
512
508
  output,
513
509
  parsedBody,
514
- exceptionCtor: __BaseException,
515
510
  errorCode,
516
511
  });
517
512
  }
@@ -527,7 +522,7 @@ export const de_CreateCustomRoutingAcceleratorCommand = async (output, context)
527
522
  $metadata: deserializeMetadata(output),
528
523
  ...contents,
529
524
  };
530
- return Promise.resolve(response);
525
+ return response;
531
526
  };
532
527
  const de_CreateCustomRoutingAcceleratorCommandError = async (output, context) => {
533
528
  const parsedOutput = {
@@ -550,10 +545,9 @@ const de_CreateCustomRoutingAcceleratorCommandError = async (output, context) =>
550
545
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
551
546
  default:
552
547
  const parsedBody = parsedOutput.body;
553
- throwDefaultError({
548
+ return throwDefaultError({
554
549
  output,
555
550
  parsedBody,
556
- exceptionCtor: __BaseException,
557
551
  errorCode,
558
552
  });
559
553
  }
@@ -564,12 +558,12 @@ export const de_CreateCustomRoutingEndpointGroupCommand = async (output, context
564
558
  }
565
559
  const data = await parseBody(output.body, context);
566
560
  let contents = {};
567
- contents = de_CreateCustomRoutingEndpointGroupResponse(data, context);
561
+ contents = _json(data);
568
562
  const response = {
569
563
  $metadata: deserializeMetadata(output),
570
564
  ...contents,
571
565
  };
572
- return Promise.resolve(response);
566
+ return response;
573
567
  };
574
568
  const de_CreateCustomRoutingEndpointGroupCommandError = async (output, context) => {
575
569
  const parsedOutput = {
@@ -604,10 +598,9 @@ const de_CreateCustomRoutingEndpointGroupCommandError = async (output, context)
604
598
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
605
599
  default:
606
600
  const parsedBody = parsedOutput.body;
607
- throwDefaultError({
601
+ return throwDefaultError({
608
602
  output,
609
603
  parsedBody,
610
- exceptionCtor: __BaseException,
611
604
  errorCode,
612
605
  });
613
606
  }
@@ -618,12 +611,12 @@ export const de_CreateCustomRoutingListenerCommand = async (output, context) =>
618
611
  }
619
612
  const data = await parseBody(output.body, context);
620
613
  let contents = {};
621
- contents = de_CreateCustomRoutingListenerResponse(data, context);
614
+ contents = _json(data);
622
615
  const response = {
623
616
  $metadata: deserializeMetadata(output),
624
617
  ...contents,
625
618
  };
626
- return Promise.resolve(response);
619
+ return response;
627
620
  };
628
621
  const de_CreateCustomRoutingListenerCommandError = async (output, context) => {
629
622
  const parsedOutput = {
@@ -649,10 +642,9 @@ const de_CreateCustomRoutingListenerCommandError = async (output, context) => {
649
642
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
650
643
  default:
651
644
  const parsedBody = parsedOutput.body;
652
- throwDefaultError({
645
+ return throwDefaultError({
653
646
  output,
654
647
  parsedBody,
655
- exceptionCtor: __BaseException,
656
648
  errorCode,
657
649
  });
658
650
  }
@@ -668,7 +660,7 @@ export const de_CreateEndpointGroupCommand = async (output, context) => {
668
660
  $metadata: deserializeMetadata(output),
669
661
  ...contents,
670
662
  };
671
- return Promise.resolve(response);
663
+ return response;
672
664
  };
673
665
  const de_CreateEndpointGroupCommandError = async (output, context) => {
674
666
  const parsedOutput = {
@@ -700,10 +692,9 @@ const de_CreateEndpointGroupCommandError = async (output, context) => {
700
692
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
701
693
  default:
702
694
  const parsedBody = parsedOutput.body;
703
- throwDefaultError({
695
+ return throwDefaultError({
704
696
  output,
705
697
  parsedBody,
706
- exceptionCtor: __BaseException,
707
698
  errorCode,
708
699
  });
709
700
  }
@@ -714,12 +705,12 @@ export const de_CreateListenerCommand = async (output, context) => {
714
705
  }
715
706
  const data = await parseBody(output.body, context);
716
707
  let contents = {};
717
- contents = de_CreateListenerResponse(data, context);
708
+ contents = _json(data);
718
709
  const response = {
719
710
  $metadata: deserializeMetadata(output),
720
711
  ...contents,
721
712
  };
722
- return Promise.resolve(response);
713
+ return response;
723
714
  };
724
715
  const de_CreateListenerCommandError = async (output, context) => {
725
716
  const parsedOutput = {
@@ -745,10 +736,9 @@ const de_CreateListenerCommandError = async (output, context) => {
745
736
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
746
737
  default:
747
738
  const parsedBody = parsedOutput.body;
748
- throwDefaultError({
739
+ return throwDefaultError({
749
740
  output,
750
741
  parsedBody,
751
- exceptionCtor: __BaseException,
752
742
  errorCode,
753
743
  });
754
744
  }
@@ -761,7 +751,7 @@ export const de_DeleteAcceleratorCommand = async (output, context) => {
761
751
  const response = {
762
752
  $metadata: deserializeMetadata(output),
763
753
  };
764
- return Promise.resolve(response);
754
+ return response;
765
755
  };
766
756
  const de_DeleteAcceleratorCommandError = async (output, context) => {
767
757
  const parsedOutput = {
@@ -787,10 +777,9 @@ const de_DeleteAcceleratorCommandError = async (output, context) => {
787
777
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
788
778
  default:
789
779
  const parsedBody = parsedOutput.body;
790
- throwDefaultError({
780
+ return throwDefaultError({
791
781
  output,
792
782
  parsedBody,
793
- exceptionCtor: __BaseException,
794
783
  errorCode,
795
784
  });
796
785
  }
@@ -803,7 +792,7 @@ export const de_DeleteCustomRoutingAcceleratorCommand = async (output, context)
803
792
  const response = {
804
793
  $metadata: deserializeMetadata(output),
805
794
  };
806
- return Promise.resolve(response);
795
+ return response;
807
796
  };
808
797
  const de_DeleteCustomRoutingAcceleratorCommandError = async (output, context) => {
809
798
  const parsedOutput = {
@@ -829,10 +818,9 @@ const de_DeleteCustomRoutingAcceleratorCommandError = async (output, context) =>
829
818
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
830
819
  default:
831
820
  const parsedBody = parsedOutput.body;
832
- throwDefaultError({
821
+ return throwDefaultError({
833
822
  output,
834
823
  parsedBody,
835
- exceptionCtor: __BaseException,
836
824
  errorCode,
837
825
  });
838
826
  }
@@ -845,7 +833,7 @@ export const de_DeleteCustomRoutingEndpointGroupCommand = async (output, context
845
833
  const response = {
846
834
  $metadata: deserializeMetadata(output),
847
835
  };
848
- return Promise.resolve(response);
836
+ return response;
849
837
  };
850
838
  const de_DeleteCustomRoutingEndpointGroupCommandError = async (output, context) => {
851
839
  const parsedOutput = {
@@ -865,10 +853,9 @@ const de_DeleteCustomRoutingEndpointGroupCommandError = async (output, context)
865
853
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
866
854
  default:
867
855
  const parsedBody = parsedOutput.body;
868
- throwDefaultError({
856
+ return throwDefaultError({
869
857
  output,
870
858
  parsedBody,
871
- exceptionCtor: __BaseException,
872
859
  errorCode,
873
860
  });
874
861
  }
@@ -881,7 +868,7 @@ export const de_DeleteCustomRoutingListenerCommand = async (output, context) =>
881
868
  const response = {
882
869
  $metadata: deserializeMetadata(output),
883
870
  };
884
- return Promise.resolve(response);
871
+ return response;
885
872
  };
886
873
  const de_DeleteCustomRoutingListenerCommandError = async (output, context) => {
887
874
  const parsedOutput = {
@@ -904,10 +891,9 @@ const de_DeleteCustomRoutingListenerCommandError = async (output, context) => {
904
891
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
905
892
  default:
906
893
  const parsedBody = parsedOutput.body;
907
- throwDefaultError({
894
+ return throwDefaultError({
908
895
  output,
909
896
  parsedBody,
910
- exceptionCtor: __BaseException,
911
897
  errorCode,
912
898
  });
913
899
  }
@@ -920,7 +906,7 @@ export const de_DeleteEndpointGroupCommand = async (output, context) => {
920
906
  const response = {
921
907
  $metadata: deserializeMetadata(output),
922
908
  };
923
- return Promise.resolve(response);
909
+ return response;
924
910
  };
925
911
  const de_DeleteEndpointGroupCommandError = async (output, context) => {
926
912
  const parsedOutput = {
@@ -940,10 +926,9 @@ const de_DeleteEndpointGroupCommandError = async (output, context) => {
940
926
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
941
927
  default:
942
928
  const parsedBody = parsedOutput.body;
943
- throwDefaultError({
929
+ return throwDefaultError({
944
930
  output,
945
931
  parsedBody,
946
- exceptionCtor: __BaseException,
947
932
  errorCode,
948
933
  });
949
934
  }
@@ -956,7 +941,7 @@ export const de_DeleteListenerCommand = async (output, context) => {
956
941
  const response = {
957
942
  $metadata: deserializeMetadata(output),
958
943
  };
959
- return Promise.resolve(response);
944
+ return response;
960
945
  };
961
946
  const de_DeleteListenerCommandError = async (output, context) => {
962
947
  const parsedOutput = {
@@ -979,10 +964,9 @@ const de_DeleteListenerCommandError = async (output, context) => {
979
964
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
980
965
  default:
981
966
  const parsedBody = parsedOutput.body;
982
- throwDefaultError({
967
+ return throwDefaultError({
983
968
  output,
984
969
  parsedBody,
985
- exceptionCtor: __BaseException,
986
970
  errorCode,
987
971
  });
988
972
  }
@@ -995,7 +979,7 @@ export const de_DenyCustomRoutingTrafficCommand = async (output, context) => {
995
979
  const response = {
996
980
  $metadata: deserializeMetadata(output),
997
981
  };
998
- return Promise.resolve(response);
982
+ return response;
999
983
  };
1000
984
  const de_DenyCustomRoutingTrafficCommandError = async (output, context) => {
1001
985
  const parsedOutput = {
@@ -1015,10 +999,9 @@ const de_DenyCustomRoutingTrafficCommandError = async (output, context) => {
1015
999
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1016
1000
  default:
1017
1001
  const parsedBody = parsedOutput.body;
1018
- throwDefaultError({
1002
+ return throwDefaultError({
1019
1003
  output,
1020
1004
  parsedBody,
1021
- exceptionCtor: __BaseException,
1022
1005
  errorCode,
1023
1006
  });
1024
1007
  }
@@ -1034,7 +1017,7 @@ export const de_DeprovisionByoipCidrCommand = async (output, context) => {
1034
1017
  $metadata: deserializeMetadata(output),
1035
1018
  ...contents,
1036
1019
  };
1037
- return Promise.resolve(response);
1020
+ return response;
1038
1021
  };
1039
1022
  const de_DeprovisionByoipCidrCommandError = async (output, context) => {
1040
1023
  const parsedOutput = {
@@ -1060,10 +1043,9 @@ const de_DeprovisionByoipCidrCommandError = async (output, context) => {
1060
1043
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1061
1044
  default:
1062
1045
  const parsedBody = parsedOutput.body;
1063
- throwDefaultError({
1046
+ return throwDefaultError({
1064
1047
  output,
1065
1048
  parsedBody,
1066
- exceptionCtor: __BaseException,
1067
1049
  errorCode,
1068
1050
  });
1069
1051
  }
@@ -1079,7 +1061,7 @@ export const de_DescribeAcceleratorCommand = async (output, context) => {
1079
1061
  $metadata: deserializeMetadata(output),
1080
1062
  ...contents,
1081
1063
  };
1082
- return Promise.resolve(response);
1064
+ return response;
1083
1065
  };
1084
1066
  const de_DescribeAcceleratorCommandError = async (output, context) => {
1085
1067
  const parsedOutput = {
@@ -1099,10 +1081,9 @@ const de_DescribeAcceleratorCommandError = async (output, context) => {
1099
1081
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1100
1082
  default:
1101
1083
  const parsedBody = parsedOutput.body;
1102
- throwDefaultError({
1084
+ return throwDefaultError({
1103
1085
  output,
1104
1086
  parsedBody,
1105
- exceptionCtor: __BaseException,
1106
1087
  errorCode,
1107
1088
  });
1108
1089
  }
@@ -1113,12 +1094,12 @@ export const de_DescribeAcceleratorAttributesCommand = async (output, context) =
1113
1094
  }
1114
1095
  const data = await parseBody(output.body, context);
1115
1096
  let contents = {};
1116
- contents = de_DescribeAcceleratorAttributesResponse(data, context);
1097
+ contents = _json(data);
1117
1098
  const response = {
1118
1099
  $metadata: deserializeMetadata(output),
1119
1100
  ...contents,
1120
1101
  };
1121
- return Promise.resolve(response);
1102
+ return response;
1122
1103
  };
1123
1104
  const de_DescribeAcceleratorAttributesCommandError = async (output, context) => {
1124
1105
  const parsedOutput = {
@@ -1138,10 +1119,9 @@ const de_DescribeAcceleratorAttributesCommandError = async (output, context) =>
1138
1119
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1139
1120
  default:
1140
1121
  const parsedBody = parsedOutput.body;
1141
- throwDefaultError({
1122
+ return throwDefaultError({
1142
1123
  output,
1143
1124
  parsedBody,
1144
- exceptionCtor: __BaseException,
1145
1125
  errorCode,
1146
1126
  });
1147
1127
  }
@@ -1157,7 +1137,7 @@ export const de_DescribeCustomRoutingAcceleratorCommand = async (output, context
1157
1137
  $metadata: deserializeMetadata(output),
1158
1138
  ...contents,
1159
1139
  };
1160
- return Promise.resolve(response);
1140
+ return response;
1161
1141
  };
1162
1142
  const de_DescribeCustomRoutingAcceleratorCommandError = async (output, context) => {
1163
1143
  const parsedOutput = {
@@ -1177,10 +1157,9 @@ const de_DescribeCustomRoutingAcceleratorCommandError = async (output, context)
1177
1157
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1178
1158
  default:
1179
1159
  const parsedBody = parsedOutput.body;
1180
- throwDefaultError({
1160
+ return throwDefaultError({
1181
1161
  output,
1182
1162
  parsedBody,
1183
- exceptionCtor: __BaseException,
1184
1163
  errorCode,
1185
1164
  });
1186
1165
  }
@@ -1191,12 +1170,12 @@ export const de_DescribeCustomRoutingAcceleratorAttributesCommand = async (outpu
1191
1170
  }
1192
1171
  const data = await parseBody(output.body, context);
1193
1172
  let contents = {};
1194
- contents = de_DescribeCustomRoutingAcceleratorAttributesResponse(data, context);
1173
+ contents = _json(data);
1195
1174
  const response = {
1196
1175
  $metadata: deserializeMetadata(output),
1197
1176
  ...contents,
1198
1177
  };
1199
- return Promise.resolve(response);
1178
+ return response;
1200
1179
  };
1201
1180
  const de_DescribeCustomRoutingAcceleratorAttributesCommandError = async (output, context) => {
1202
1181
  const parsedOutput = {
@@ -1216,10 +1195,9 @@ const de_DescribeCustomRoutingAcceleratorAttributesCommandError = async (output,
1216
1195
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1217
1196
  default:
1218
1197
  const parsedBody = parsedOutput.body;
1219
- throwDefaultError({
1198
+ return throwDefaultError({
1220
1199
  output,
1221
1200
  parsedBody,
1222
- exceptionCtor: __BaseException,
1223
1201
  errorCode,
1224
1202
  });
1225
1203
  }
@@ -1230,12 +1208,12 @@ export const de_DescribeCustomRoutingEndpointGroupCommand = async (output, conte
1230
1208
  }
1231
1209
  const data = await parseBody(output.body, context);
1232
1210
  let contents = {};
1233
- contents = de_DescribeCustomRoutingEndpointGroupResponse(data, context);
1211
+ contents = _json(data);
1234
1212
  const response = {
1235
1213
  $metadata: deserializeMetadata(output),
1236
1214
  ...contents,
1237
1215
  };
1238
- return Promise.resolve(response);
1216
+ return response;
1239
1217
  };
1240
1218
  const de_DescribeCustomRoutingEndpointGroupCommandError = async (output, context) => {
1241
1219
  const parsedOutput = {
@@ -1255,10 +1233,9 @@ const de_DescribeCustomRoutingEndpointGroupCommandError = async (output, context
1255
1233
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1256
1234
  default:
1257
1235
  const parsedBody = parsedOutput.body;
1258
- throwDefaultError({
1236
+ return throwDefaultError({
1259
1237
  output,
1260
1238
  parsedBody,
1261
- exceptionCtor: __BaseException,
1262
1239
  errorCode,
1263
1240
  });
1264
1241
  }
@@ -1269,12 +1246,12 @@ export const de_DescribeCustomRoutingListenerCommand = async (output, context) =
1269
1246
  }
1270
1247
  const data = await parseBody(output.body, context);
1271
1248
  let contents = {};
1272
- contents = de_DescribeCustomRoutingListenerResponse(data, context);
1249
+ contents = _json(data);
1273
1250
  const response = {
1274
1251
  $metadata: deserializeMetadata(output),
1275
1252
  ...contents,
1276
1253
  };
1277
- return Promise.resolve(response);
1254
+ return response;
1278
1255
  };
1279
1256
  const de_DescribeCustomRoutingListenerCommandError = async (output, context) => {
1280
1257
  const parsedOutput = {
@@ -1294,10 +1271,9 @@ const de_DescribeCustomRoutingListenerCommandError = async (output, context) =>
1294
1271
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
1295
1272
  default:
1296
1273
  const parsedBody = parsedOutput.body;
1297
- throwDefaultError({
1274
+ return throwDefaultError({
1298
1275
  output,
1299
1276
  parsedBody,
1300
- exceptionCtor: __BaseException,
1301
1277
  errorCode,
1302
1278
  });
1303
1279
  }
@@ -1313,7 +1289,7 @@ export const de_DescribeEndpointGroupCommand = async (output, context) => {
1313
1289
  $metadata: deserializeMetadata(output),
1314
1290
  ...contents,
1315
1291
  };
1316
- return Promise.resolve(response);
1292
+ return response;
1317
1293
  };
1318
1294
  const de_DescribeEndpointGroupCommandError = async (output, context) => {
1319
1295
  const parsedOutput = {
@@ -1333,10 +1309,9 @@ const de_DescribeEndpointGroupCommandError = async (output, context) => {
1333
1309
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1334
1310
  default:
1335
1311
  const parsedBody = parsedOutput.body;
1336
- throwDefaultError({
1312
+ return throwDefaultError({
1337
1313
  output,
1338
1314
  parsedBody,
1339
- exceptionCtor: __BaseException,
1340
1315
  errorCode,
1341
1316
  });
1342
1317
  }
@@ -1347,12 +1322,12 @@ export const de_DescribeListenerCommand = async (output, context) => {
1347
1322
  }
1348
1323
  const data = await parseBody(output.body, context);
1349
1324
  let contents = {};
1350
- contents = de_DescribeListenerResponse(data, context);
1325
+ contents = _json(data);
1351
1326
  const response = {
1352
1327
  $metadata: deserializeMetadata(output),
1353
1328
  ...contents,
1354
1329
  };
1355
- return Promise.resolve(response);
1330
+ return response;
1356
1331
  };
1357
1332
  const de_DescribeListenerCommandError = async (output, context) => {
1358
1333
  const parsedOutput = {
@@ -1372,10 +1347,9 @@ const de_DescribeListenerCommandError = async (output, context) => {
1372
1347
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
1373
1348
  default:
1374
1349
  const parsedBody = parsedOutput.body;
1375
- throwDefaultError({
1350
+ return throwDefaultError({
1376
1351
  output,
1377
1352
  parsedBody,
1378
- exceptionCtor: __BaseException,
1379
1353
  errorCode,
1380
1354
  });
1381
1355
  }
@@ -1391,7 +1365,7 @@ export const de_ListAcceleratorsCommand = async (output, context) => {
1391
1365
  $metadata: deserializeMetadata(output),
1392
1366
  ...contents,
1393
1367
  };
1394
- return Promise.resolve(response);
1368
+ return response;
1395
1369
  };
1396
1370
  const de_ListAcceleratorsCommandError = async (output, context) => {
1397
1371
  const parsedOutput = {
@@ -1411,10 +1385,9 @@ const de_ListAcceleratorsCommandError = async (output, context) => {
1411
1385
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1412
1386
  default:
1413
1387
  const parsedBody = parsedOutput.body;
1414
- throwDefaultError({
1388
+ return throwDefaultError({
1415
1389
  output,
1416
1390
  parsedBody,
1417
- exceptionCtor: __BaseException,
1418
1391
  errorCode,
1419
1392
  });
1420
1393
  }
@@ -1430,7 +1403,7 @@ export const de_ListByoipCidrsCommand = async (output, context) => {
1430
1403
  $metadata: deserializeMetadata(output),
1431
1404
  ...contents,
1432
1405
  };
1433
- return Promise.resolve(response);
1406
+ return response;
1434
1407
  };
1435
1408
  const de_ListByoipCidrsCommandError = async (output, context) => {
1436
1409
  const parsedOutput = {
@@ -1453,10 +1426,9 @@ const de_ListByoipCidrsCommandError = async (output, context) => {
1453
1426
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1454
1427
  default:
1455
1428
  const parsedBody = parsedOutput.body;
1456
- throwDefaultError({
1429
+ return throwDefaultError({
1457
1430
  output,
1458
1431
  parsedBody,
1459
- exceptionCtor: __BaseException,
1460
1432
  errorCode,
1461
1433
  });
1462
1434
  }
@@ -1472,7 +1444,7 @@ export const de_ListCustomRoutingAcceleratorsCommand = async (output, context) =
1472
1444
  $metadata: deserializeMetadata(output),
1473
1445
  ...contents,
1474
1446
  };
1475
- return Promise.resolve(response);
1447
+ return response;
1476
1448
  };
1477
1449
  const de_ListCustomRoutingAcceleratorsCommandError = async (output, context) => {
1478
1450
  const parsedOutput = {
@@ -1492,10 +1464,9 @@ const de_ListCustomRoutingAcceleratorsCommandError = async (output, context) =>
1492
1464
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1493
1465
  default:
1494
1466
  const parsedBody = parsedOutput.body;
1495
- throwDefaultError({
1467
+ return throwDefaultError({
1496
1468
  output,
1497
1469
  parsedBody,
1498
- exceptionCtor: __BaseException,
1499
1470
  errorCode,
1500
1471
  });
1501
1472
  }
@@ -1506,12 +1477,12 @@ export const de_ListCustomRoutingEndpointGroupsCommand = async (output, context)
1506
1477
  }
1507
1478
  const data = await parseBody(output.body, context);
1508
1479
  let contents = {};
1509
- contents = de_ListCustomRoutingEndpointGroupsResponse(data, context);
1480
+ contents = _json(data);
1510
1481
  const response = {
1511
1482
  $metadata: deserializeMetadata(output),
1512
1483
  ...contents,
1513
1484
  };
1514
- return Promise.resolve(response);
1485
+ return response;
1515
1486
  };
1516
1487
  const de_ListCustomRoutingEndpointGroupsCommandError = async (output, context) => {
1517
1488
  const parsedOutput = {
@@ -1534,10 +1505,9 @@ const de_ListCustomRoutingEndpointGroupsCommandError = async (output, context) =
1534
1505
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
1535
1506
  default:
1536
1507
  const parsedBody = parsedOutput.body;
1537
- throwDefaultError({
1508
+ return throwDefaultError({
1538
1509
  output,
1539
1510
  parsedBody,
1540
- exceptionCtor: __BaseException,
1541
1511
  errorCode,
1542
1512
  });
1543
1513
  }
@@ -1548,12 +1518,12 @@ export const de_ListCustomRoutingListenersCommand = async (output, context) => {
1548
1518
  }
1549
1519
  const data = await parseBody(output.body, context);
1550
1520
  let contents = {};
1551
- contents = de_ListCustomRoutingListenersResponse(data, context);
1521
+ contents = _json(data);
1552
1522
  const response = {
1553
1523
  $metadata: deserializeMetadata(output),
1554
1524
  ...contents,
1555
1525
  };
1556
- return Promise.resolve(response);
1526
+ return response;
1557
1527
  };
1558
1528
  const de_ListCustomRoutingListenersCommandError = async (output, context) => {
1559
1529
  const parsedOutput = {
@@ -1576,10 +1546,9 @@ const de_ListCustomRoutingListenersCommandError = async (output, context) => {
1576
1546
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1577
1547
  default:
1578
1548
  const parsedBody = parsedOutput.body;
1579
- throwDefaultError({
1549
+ return throwDefaultError({
1580
1550
  output,
1581
1551
  parsedBody,
1582
- exceptionCtor: __BaseException,
1583
1552
  errorCode,
1584
1553
  });
1585
1554
  }
@@ -1590,12 +1559,12 @@ export const de_ListCustomRoutingPortMappingsCommand = async (output, context) =
1590
1559
  }
1591
1560
  const data = await parseBody(output.body, context);
1592
1561
  let contents = {};
1593
- contents = de_ListCustomRoutingPortMappingsResponse(data, context);
1562
+ contents = _json(data);
1594
1563
  const response = {
1595
1564
  $metadata: deserializeMetadata(output),
1596
1565
  ...contents,
1597
1566
  };
1598
- return Promise.resolve(response);
1567
+ return response;
1599
1568
  };
1600
1569
  const de_ListCustomRoutingPortMappingsCommandError = async (output, context) => {
1601
1570
  const parsedOutput = {
@@ -1621,10 +1590,9 @@ const de_ListCustomRoutingPortMappingsCommandError = async (output, context) =>
1621
1590
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1622
1591
  default:
1623
1592
  const parsedBody = parsedOutput.body;
1624
- throwDefaultError({
1593
+ return throwDefaultError({
1625
1594
  output,
1626
1595
  parsedBody,
1627
- exceptionCtor: __BaseException,
1628
1596
  errorCode,
1629
1597
  });
1630
1598
  }
@@ -1635,12 +1603,12 @@ export const de_ListCustomRoutingPortMappingsByDestinationCommand = async (outpu
1635
1603
  }
1636
1604
  const data = await parseBody(output.body, context);
1637
1605
  let contents = {};
1638
- contents = de_ListCustomRoutingPortMappingsByDestinationResponse(data, context);
1606
+ contents = _json(data);
1639
1607
  const response = {
1640
1608
  $metadata: deserializeMetadata(output),
1641
1609
  ...contents,
1642
1610
  };
1643
- return Promise.resolve(response);
1611
+ return response;
1644
1612
  };
1645
1613
  const de_ListCustomRoutingPortMappingsByDestinationCommandError = async (output, context) => {
1646
1614
  const parsedOutput = {
@@ -1663,10 +1631,9 @@ const de_ListCustomRoutingPortMappingsByDestinationCommandError = async (output,
1663
1631
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1664
1632
  default:
1665
1633
  const parsedBody = parsedOutput.body;
1666
- throwDefaultError({
1634
+ return throwDefaultError({
1667
1635
  output,
1668
1636
  parsedBody,
1669
- exceptionCtor: __BaseException,
1670
1637
  errorCode,
1671
1638
  });
1672
1639
  }
@@ -1682,7 +1649,7 @@ export const de_ListEndpointGroupsCommand = async (output, context) => {
1682
1649
  $metadata: deserializeMetadata(output),
1683
1650
  ...contents,
1684
1651
  };
1685
- return Promise.resolve(response);
1652
+ return response;
1686
1653
  };
1687
1654
  const de_ListEndpointGroupsCommandError = async (output, context) => {
1688
1655
  const parsedOutput = {
@@ -1705,10 +1672,9 @@ const de_ListEndpointGroupsCommandError = async (output, context) => {
1705
1672
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
1706
1673
  default:
1707
1674
  const parsedBody = parsedOutput.body;
1708
- throwDefaultError({
1675
+ return throwDefaultError({
1709
1676
  output,
1710
1677
  parsedBody,
1711
- exceptionCtor: __BaseException,
1712
1678
  errorCode,
1713
1679
  });
1714
1680
  }
@@ -1719,12 +1685,12 @@ export const de_ListListenersCommand = async (output, context) => {
1719
1685
  }
1720
1686
  const data = await parseBody(output.body, context);
1721
1687
  let contents = {};
1722
- contents = de_ListListenersResponse(data, context);
1688
+ contents = _json(data);
1723
1689
  const response = {
1724
1690
  $metadata: deserializeMetadata(output),
1725
1691
  ...contents,
1726
1692
  };
1727
- return Promise.resolve(response);
1693
+ return response;
1728
1694
  };
1729
1695
  const de_ListListenersCommandError = async (output, context) => {
1730
1696
  const parsedOutput = {
@@ -1747,10 +1713,9 @@ const de_ListListenersCommandError = async (output, context) => {
1747
1713
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1748
1714
  default:
1749
1715
  const parsedBody = parsedOutput.body;
1750
- throwDefaultError({
1716
+ return throwDefaultError({
1751
1717
  output,
1752
1718
  parsedBody,
1753
- exceptionCtor: __BaseException,
1754
1719
  errorCode,
1755
1720
  });
1756
1721
  }
@@ -1761,12 +1726,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
1761
1726
  }
1762
1727
  const data = await parseBody(output.body, context);
1763
1728
  let contents = {};
1764
- contents = de_ListTagsForResourceResponse(data, context);
1729
+ contents = _json(data);
1765
1730
  const response = {
1766
1731
  $metadata: deserializeMetadata(output),
1767
1732
  ...contents,
1768
1733
  };
1769
- return Promise.resolve(response);
1734
+ return response;
1770
1735
  };
1771
1736
  const de_ListTagsForResourceCommandError = async (output, context) => {
1772
1737
  const parsedOutput = {
@@ -1786,10 +1751,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1786
1751
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1787
1752
  default:
1788
1753
  const parsedBody = parsedOutput.body;
1789
- throwDefaultError({
1754
+ return throwDefaultError({
1790
1755
  output,
1791
1756
  parsedBody,
1792
- exceptionCtor: __BaseException,
1793
1757
  errorCode,
1794
1758
  });
1795
1759
  }
@@ -1805,7 +1769,7 @@ export const de_ProvisionByoipCidrCommand = async (output, context) => {
1805
1769
  $metadata: deserializeMetadata(output),
1806
1770
  ...contents,
1807
1771
  };
1808
- return Promise.resolve(response);
1772
+ return response;
1809
1773
  };
1810
1774
  const de_ProvisionByoipCidrCommandError = async (output, context) => {
1811
1775
  const parsedOutput = {
@@ -1831,10 +1795,9 @@ const de_ProvisionByoipCidrCommandError = async (output, context) => {
1831
1795
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1832
1796
  default:
1833
1797
  const parsedBody = parsedOutput.body;
1834
- throwDefaultError({
1798
+ return throwDefaultError({
1835
1799
  output,
1836
1800
  parsedBody,
1837
- exceptionCtor: __BaseException,
1838
1801
  errorCode,
1839
1802
  });
1840
1803
  }
@@ -1847,7 +1810,7 @@ export const de_RemoveCustomRoutingEndpointsCommand = async (output, context) =>
1847
1810
  const response = {
1848
1811
  $metadata: deserializeMetadata(output),
1849
1812
  };
1850
- return Promise.resolve(response);
1813
+ return response;
1851
1814
  };
1852
1815
  const de_RemoveCustomRoutingEndpointsCommandError = async (output, context) => {
1853
1816
  const parsedOutput = {
@@ -1876,10 +1839,9 @@ const de_RemoveCustomRoutingEndpointsCommandError = async (output, context) => {
1876
1839
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1877
1840
  default:
1878
1841
  const parsedBody = parsedOutput.body;
1879
- throwDefaultError({
1842
+ return throwDefaultError({
1880
1843
  output,
1881
1844
  parsedBody,
1882
- exceptionCtor: __BaseException,
1883
1845
  errorCode,
1884
1846
  });
1885
1847
  }
@@ -1892,7 +1854,7 @@ export const de_RemoveEndpointsCommand = async (output, context) => {
1892
1854
  const response = {
1893
1855
  $metadata: deserializeMetadata(output),
1894
1856
  };
1895
- return Promise.resolve(response);
1857
+ return response;
1896
1858
  };
1897
1859
  const de_RemoveEndpointsCommandError = async (output, context) => {
1898
1860
  const parsedOutput = {
@@ -1918,10 +1880,9 @@ const de_RemoveEndpointsCommandError = async (output, context) => {
1918
1880
  throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
1919
1881
  default:
1920
1882
  const parsedBody = parsedOutput.body;
1921
- throwDefaultError({
1883
+ return throwDefaultError({
1922
1884
  output,
1923
1885
  parsedBody,
1924
- exceptionCtor: __BaseException,
1925
1886
  errorCode,
1926
1887
  });
1927
1888
  }
@@ -1932,12 +1893,12 @@ export const de_TagResourceCommand = async (output, context) => {
1932
1893
  }
1933
1894
  const data = await parseBody(output.body, context);
1934
1895
  let contents = {};
1935
- contents = de_TagResourceResponse(data, context);
1896
+ contents = _json(data);
1936
1897
  const response = {
1937
1898
  $metadata: deserializeMetadata(output),
1938
1899
  ...contents,
1939
1900
  };
1940
- return Promise.resolve(response);
1901
+ return response;
1941
1902
  };
1942
1903
  const de_TagResourceCommandError = async (output, context) => {
1943
1904
  const parsedOutput = {
@@ -1957,10 +1918,9 @@ const de_TagResourceCommandError = async (output, context) => {
1957
1918
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1958
1919
  default:
1959
1920
  const parsedBody = parsedOutput.body;
1960
- throwDefaultError({
1921
+ return throwDefaultError({
1961
1922
  output,
1962
1923
  parsedBody,
1963
- exceptionCtor: __BaseException,
1964
1924
  errorCode,
1965
1925
  });
1966
1926
  }
@@ -1971,12 +1931,12 @@ export const de_UntagResourceCommand = async (output, context) => {
1971
1931
  }
1972
1932
  const data = await parseBody(output.body, context);
1973
1933
  let contents = {};
1974
- contents = de_UntagResourceResponse(data, context);
1934
+ contents = _json(data);
1975
1935
  const response = {
1976
1936
  $metadata: deserializeMetadata(output),
1977
1937
  ...contents,
1978
1938
  };
1979
- return Promise.resolve(response);
1939
+ return response;
1980
1940
  };
1981
1941
  const de_UntagResourceCommandError = async (output, context) => {
1982
1942
  const parsedOutput = {
@@ -1996,10 +1956,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1996
1956
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1997
1957
  default:
1998
1958
  const parsedBody = parsedOutput.body;
1999
- throwDefaultError({
1959
+ return throwDefaultError({
2000
1960
  output,
2001
1961
  parsedBody,
2002
- exceptionCtor: __BaseException,
2003
1962
  errorCode,
2004
1963
  });
2005
1964
  }
@@ -2015,7 +1974,7 @@ export const de_UpdateAcceleratorCommand = async (output, context) => {
2015
1974
  $metadata: deserializeMetadata(output),
2016
1975
  ...contents,
2017
1976
  };
2018
- return Promise.resolve(response);
1977
+ return response;
2019
1978
  };
2020
1979
  const de_UpdateAcceleratorCommandError = async (output, context) => {
2021
1980
  const parsedOutput = {
@@ -2038,10 +1997,9 @@ const de_UpdateAcceleratorCommandError = async (output, context) => {
2038
1997
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2039
1998
  default:
2040
1999
  const parsedBody = parsedOutput.body;
2041
- throwDefaultError({
2000
+ return throwDefaultError({
2042
2001
  output,
2043
2002
  parsedBody,
2044
- exceptionCtor: __BaseException,
2045
2003
  errorCode,
2046
2004
  });
2047
2005
  }
@@ -2052,12 +2010,12 @@ export const de_UpdateAcceleratorAttributesCommand = async (output, context) =>
2052
2010
  }
2053
2011
  const data = await parseBody(output.body, context);
2054
2012
  let contents = {};
2055
- contents = de_UpdateAcceleratorAttributesResponse(data, context);
2013
+ contents = _json(data);
2056
2014
  const response = {
2057
2015
  $metadata: deserializeMetadata(output),
2058
2016
  ...contents,
2059
2017
  };
2060
- return Promise.resolve(response);
2018
+ return response;
2061
2019
  };
2062
2020
  const de_UpdateAcceleratorAttributesCommandError = async (output, context) => {
2063
2021
  const parsedOutput = {
@@ -2080,10 +2038,9 @@ const de_UpdateAcceleratorAttributesCommandError = async (output, context) => {
2080
2038
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2081
2039
  default:
2082
2040
  const parsedBody = parsedOutput.body;
2083
- throwDefaultError({
2041
+ return throwDefaultError({
2084
2042
  output,
2085
2043
  parsedBody,
2086
- exceptionCtor: __BaseException,
2087
2044
  errorCode,
2088
2045
  });
2089
2046
  }
@@ -2099,7 +2056,7 @@ export const de_UpdateCustomRoutingAcceleratorCommand = async (output, context)
2099
2056
  $metadata: deserializeMetadata(output),
2100
2057
  ...contents,
2101
2058
  };
2102
- return Promise.resolve(response);
2059
+ return response;
2103
2060
  };
2104
2061
  const de_UpdateCustomRoutingAcceleratorCommandError = async (output, context) => {
2105
2062
  const parsedOutput = {
@@ -2119,10 +2076,9 @@ const de_UpdateCustomRoutingAcceleratorCommandError = async (output, context) =>
2119
2076
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2120
2077
  default:
2121
2078
  const parsedBody = parsedOutput.body;
2122
- throwDefaultError({
2079
+ return throwDefaultError({
2123
2080
  output,
2124
2081
  parsedBody,
2125
- exceptionCtor: __BaseException,
2126
2082
  errorCode,
2127
2083
  });
2128
2084
  }
@@ -2133,12 +2089,12 @@ export const de_UpdateCustomRoutingAcceleratorAttributesCommand = async (output,
2133
2089
  }
2134
2090
  const data = await parseBody(output.body, context);
2135
2091
  let contents = {};
2136
- contents = de_UpdateCustomRoutingAcceleratorAttributesResponse(data, context);
2092
+ contents = _json(data);
2137
2093
  const response = {
2138
2094
  $metadata: deserializeMetadata(output),
2139
2095
  ...contents,
2140
2096
  };
2141
- return Promise.resolve(response);
2097
+ return response;
2142
2098
  };
2143
2099
  const de_UpdateCustomRoutingAcceleratorAttributesCommandError = async (output, context) => {
2144
2100
  const parsedOutput = {
@@ -2161,10 +2117,9 @@ const de_UpdateCustomRoutingAcceleratorAttributesCommandError = async (output, c
2161
2117
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2162
2118
  default:
2163
2119
  const parsedBody = parsedOutput.body;
2164
- throwDefaultError({
2120
+ return throwDefaultError({
2165
2121
  output,
2166
2122
  parsedBody,
2167
- exceptionCtor: __BaseException,
2168
2123
  errorCode,
2169
2124
  });
2170
2125
  }
@@ -2175,12 +2130,12 @@ export const de_UpdateCustomRoutingListenerCommand = async (output, context) =>
2175
2130
  }
2176
2131
  const data = await parseBody(output.body, context);
2177
2132
  let contents = {};
2178
- contents = de_UpdateCustomRoutingListenerResponse(data, context);
2133
+ contents = _json(data);
2179
2134
  const response = {
2180
2135
  $metadata: deserializeMetadata(output),
2181
2136
  ...contents,
2182
2137
  };
2183
- return Promise.resolve(response);
2138
+ return response;
2184
2139
  };
2185
2140
  const de_UpdateCustomRoutingListenerCommandError = async (output, context) => {
2186
2141
  const parsedOutput = {
@@ -2206,10 +2161,9 @@ const de_UpdateCustomRoutingListenerCommandError = async (output, context) => {
2206
2161
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
2207
2162
  default:
2208
2163
  const parsedBody = parsedOutput.body;
2209
- throwDefaultError({
2164
+ return throwDefaultError({
2210
2165
  output,
2211
2166
  parsedBody,
2212
- exceptionCtor: __BaseException,
2213
2167
  errorCode,
2214
2168
  });
2215
2169
  }
@@ -2225,7 +2179,7 @@ export const de_UpdateEndpointGroupCommand = async (output, context) => {
2225
2179
  $metadata: deserializeMetadata(output),
2226
2180
  ...contents,
2227
2181
  };
2228
- return Promise.resolve(response);
2182
+ return response;
2229
2183
  };
2230
2184
  const de_UpdateEndpointGroupCommandError = async (output, context) => {
2231
2185
  const parsedOutput = {
@@ -2251,10 +2205,9 @@ const de_UpdateEndpointGroupCommandError = async (output, context) => {
2251
2205
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
2252
2206
  default:
2253
2207
  const parsedBody = parsedOutput.body;
2254
- throwDefaultError({
2208
+ return throwDefaultError({
2255
2209
  output,
2256
2210
  parsedBody,
2257
- exceptionCtor: __BaseException,
2258
2211
  errorCode,
2259
2212
  });
2260
2213
  }
@@ -2265,12 +2218,12 @@ export const de_UpdateListenerCommand = async (output, context) => {
2265
2218
  }
2266
2219
  const data = await parseBody(output.body, context);
2267
2220
  let contents = {};
2268
- contents = de_UpdateListenerResponse(data, context);
2221
+ contents = _json(data);
2269
2222
  const response = {
2270
2223
  $metadata: deserializeMetadata(output),
2271
2224
  ...contents,
2272
2225
  };
2273
- return Promise.resolve(response);
2226
+ return response;
2274
2227
  };
2275
2228
  const de_UpdateListenerCommandError = async (output, context) => {
2276
2229
  const parsedOutput = {
@@ -2296,10 +2249,9 @@ const de_UpdateListenerCommandError = async (output, context) => {
2296
2249
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
2297
2250
  default:
2298
2251
  const parsedBody = parsedOutput.body;
2299
- throwDefaultError({
2252
+ return throwDefaultError({
2300
2253
  output,
2301
2254
  parsedBody,
2302
- exceptionCtor: __BaseException,
2303
2255
  errorCode,
2304
2256
  });
2305
2257
  }
@@ -2315,7 +2267,7 @@ export const de_WithdrawByoipCidrCommand = async (output, context) => {
2315
2267
  $metadata: deserializeMetadata(output),
2316
2268
  ...contents,
2317
2269
  };
2318
- return Promise.resolve(response);
2270
+ return response;
2319
2271
  };
2320
2272
  const de_WithdrawByoipCidrCommandError = async (output, context) => {
2321
2273
  const parsedOutput = {
@@ -2341,17 +2293,16 @@ const de_WithdrawByoipCidrCommandError = async (output, context) => {
2341
2293
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2342
2294
  default:
2343
2295
  const parsedBody = parsedOutput.body;
2344
- throwDefaultError({
2296
+ return throwDefaultError({
2345
2297
  output,
2346
2298
  parsedBody,
2347
- exceptionCtor: __BaseException,
2348
2299
  errorCode,
2349
2300
  });
2350
2301
  }
2351
2302
  };
2352
2303
  const de_AcceleratorNotDisabledExceptionRes = async (parsedOutput, context) => {
2353
2304
  const body = parsedOutput.body;
2354
- const deserialized = de_AcceleratorNotDisabledException(body, context);
2305
+ const deserialized = _json(body);
2355
2306
  const exception = new AcceleratorNotDisabledException({
2356
2307
  $metadata: deserializeMetadata(parsedOutput),
2357
2308
  ...deserialized,
@@ -2360,7 +2311,7 @@ const de_AcceleratorNotDisabledExceptionRes = async (parsedOutput, context) => {
2360
2311
  };
2361
2312
  const de_AcceleratorNotFoundExceptionRes = async (parsedOutput, context) => {
2362
2313
  const body = parsedOutput.body;
2363
- const deserialized = de_AcceleratorNotFoundException(body, context);
2314
+ const deserialized = _json(body);
2364
2315
  const exception = new AcceleratorNotFoundException({
2365
2316
  $metadata: deserializeMetadata(parsedOutput),
2366
2317
  ...deserialized,
@@ -2369,7 +2320,7 @@ const de_AcceleratorNotFoundExceptionRes = async (parsedOutput, context) => {
2369
2320
  };
2370
2321
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2371
2322
  const body = parsedOutput.body;
2372
- const deserialized = de_AccessDeniedException(body, context);
2323
+ const deserialized = _json(body);
2373
2324
  const exception = new AccessDeniedException({
2374
2325
  $metadata: deserializeMetadata(parsedOutput),
2375
2326
  ...deserialized,
@@ -2378,7 +2329,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2378
2329
  };
2379
2330
  const de_AssociatedEndpointGroupFoundExceptionRes = async (parsedOutput, context) => {
2380
2331
  const body = parsedOutput.body;
2381
- const deserialized = de_AssociatedEndpointGroupFoundException(body, context);
2332
+ const deserialized = _json(body);
2382
2333
  const exception = new AssociatedEndpointGroupFoundException({
2383
2334
  $metadata: deserializeMetadata(parsedOutput),
2384
2335
  ...deserialized,
@@ -2387,7 +2338,7 @@ const de_AssociatedEndpointGroupFoundExceptionRes = async (parsedOutput, context
2387
2338
  };
2388
2339
  const de_AssociatedListenerFoundExceptionRes = async (parsedOutput, context) => {
2389
2340
  const body = parsedOutput.body;
2390
- const deserialized = de_AssociatedListenerFoundException(body, context);
2341
+ const deserialized = _json(body);
2391
2342
  const exception = new AssociatedListenerFoundException({
2392
2343
  $metadata: deserializeMetadata(parsedOutput),
2393
2344
  ...deserialized,
@@ -2396,7 +2347,7 @@ const de_AssociatedListenerFoundExceptionRes = async (parsedOutput, context) =>
2396
2347
  };
2397
2348
  const de_ByoipCidrNotFoundExceptionRes = async (parsedOutput, context) => {
2398
2349
  const body = parsedOutput.body;
2399
- const deserialized = de_ByoipCidrNotFoundException(body, context);
2350
+ const deserialized = _json(body);
2400
2351
  const exception = new ByoipCidrNotFoundException({
2401
2352
  $metadata: deserializeMetadata(parsedOutput),
2402
2353
  ...deserialized,
@@ -2405,7 +2356,7 @@ const de_ByoipCidrNotFoundExceptionRes = async (parsedOutput, context) => {
2405
2356
  };
2406
2357
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
2407
2358
  const body = parsedOutput.body;
2408
- const deserialized = de_ConflictException(body, context);
2359
+ const deserialized = _json(body);
2409
2360
  const exception = new ConflictException({
2410
2361
  $metadata: deserializeMetadata(parsedOutput),
2411
2362
  ...deserialized,
@@ -2414,7 +2365,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
2414
2365
  };
2415
2366
  const de_EndpointAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2416
2367
  const body = parsedOutput.body;
2417
- const deserialized = de_EndpointAlreadyExistsException(body, context);
2368
+ const deserialized = _json(body);
2418
2369
  const exception = new EndpointAlreadyExistsException({
2419
2370
  $metadata: deserializeMetadata(parsedOutput),
2420
2371
  ...deserialized,
@@ -2423,7 +2374,7 @@ const de_EndpointAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2423
2374
  };
2424
2375
  const de_EndpointGroupAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2425
2376
  const body = parsedOutput.body;
2426
- const deserialized = de_EndpointGroupAlreadyExistsException(body, context);
2377
+ const deserialized = _json(body);
2427
2378
  const exception = new EndpointGroupAlreadyExistsException({
2428
2379
  $metadata: deserializeMetadata(parsedOutput),
2429
2380
  ...deserialized,
@@ -2432,7 +2383,7 @@ const de_EndpointGroupAlreadyExistsExceptionRes = async (parsedOutput, context)
2432
2383
  };
2433
2384
  const de_EndpointGroupNotFoundExceptionRes = async (parsedOutput, context) => {
2434
2385
  const body = parsedOutput.body;
2435
- const deserialized = de_EndpointGroupNotFoundException(body, context);
2386
+ const deserialized = _json(body);
2436
2387
  const exception = new EndpointGroupNotFoundException({
2437
2388
  $metadata: deserializeMetadata(parsedOutput),
2438
2389
  ...deserialized,
@@ -2441,7 +2392,7 @@ const de_EndpointGroupNotFoundExceptionRes = async (parsedOutput, context) => {
2441
2392
  };
2442
2393
  const de_EndpointNotFoundExceptionRes = async (parsedOutput, context) => {
2443
2394
  const body = parsedOutput.body;
2444
- const deserialized = de_EndpointNotFoundException(body, context);
2395
+ const deserialized = _json(body);
2445
2396
  const exception = new EndpointNotFoundException({
2446
2397
  $metadata: deserializeMetadata(parsedOutput),
2447
2398
  ...deserialized,
@@ -2450,7 +2401,7 @@ const de_EndpointNotFoundExceptionRes = async (parsedOutput, context) => {
2450
2401
  };
2451
2402
  const de_IncorrectCidrStateExceptionRes = async (parsedOutput, context) => {
2452
2403
  const body = parsedOutput.body;
2453
- const deserialized = de_IncorrectCidrStateException(body, context);
2404
+ const deserialized = _json(body);
2454
2405
  const exception = new IncorrectCidrStateException({
2455
2406
  $metadata: deserializeMetadata(parsedOutput),
2456
2407
  ...deserialized,
@@ -2459,7 +2410,7 @@ const de_IncorrectCidrStateExceptionRes = async (parsedOutput, context) => {
2459
2410
  };
2460
2411
  const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
2461
2412
  const body = parsedOutput.body;
2462
- const deserialized = de_InternalServiceErrorException(body, context);
2413
+ const deserialized = _json(body);
2463
2414
  const exception = new InternalServiceErrorException({
2464
2415
  $metadata: deserializeMetadata(parsedOutput),
2465
2416
  ...deserialized,
@@ -2468,7 +2419,7 @@ const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
2468
2419
  };
2469
2420
  const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
2470
2421
  const body = parsedOutput.body;
2471
- const deserialized = de_InvalidArgumentException(body, context);
2422
+ const deserialized = _json(body);
2472
2423
  const exception = new InvalidArgumentException({
2473
2424
  $metadata: deserializeMetadata(parsedOutput),
2474
2425
  ...deserialized,
@@ -2477,7 +2428,7 @@ const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
2477
2428
  };
2478
2429
  const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
2479
2430
  const body = parsedOutput.body;
2480
- const deserialized = de_InvalidNextTokenException(body, context);
2431
+ const deserialized = _json(body);
2481
2432
  const exception = new InvalidNextTokenException({
2482
2433
  $metadata: deserializeMetadata(parsedOutput),
2483
2434
  ...deserialized,
@@ -2486,7 +2437,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
2486
2437
  };
2487
2438
  const de_InvalidPortRangeExceptionRes = async (parsedOutput, context) => {
2488
2439
  const body = parsedOutput.body;
2489
- const deserialized = de_InvalidPortRangeException(body, context);
2440
+ const deserialized = _json(body);
2490
2441
  const exception = new InvalidPortRangeException({
2491
2442
  $metadata: deserializeMetadata(parsedOutput),
2492
2443
  ...deserialized,
@@ -2495,7 +2446,7 @@ const de_InvalidPortRangeExceptionRes = async (parsedOutput, context) => {
2495
2446
  };
2496
2447
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2497
2448
  const body = parsedOutput.body;
2498
- const deserialized = de_LimitExceededException(body, context);
2449
+ const deserialized = _json(body);
2499
2450
  const exception = new LimitExceededException({
2500
2451
  $metadata: deserializeMetadata(parsedOutput),
2501
2452
  ...deserialized,
@@ -2504,7 +2455,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2504
2455
  };
2505
2456
  const de_ListenerNotFoundExceptionRes = async (parsedOutput, context) => {
2506
2457
  const body = parsedOutput.body;
2507
- const deserialized = de_ListenerNotFoundException(body, context);
2458
+ const deserialized = _json(body);
2508
2459
  const exception = new ListenerNotFoundException({
2509
2460
  $metadata: deserializeMetadata(parsedOutput),
2510
2461
  ...deserialized,
@@ -2513,1244 +2464,282 @@ const de_ListenerNotFoundExceptionRes = async (parsedOutput, context) => {
2513
2464
  };
2514
2465
  const de_TransactionInProgressExceptionRes = async (parsedOutput, context) => {
2515
2466
  const body = parsedOutput.body;
2516
- const deserialized = de_TransactionInProgressException(body, context);
2467
+ const deserialized = _json(body);
2517
2468
  const exception = new TransactionInProgressException({
2518
2469
  $metadata: deserializeMetadata(parsedOutput),
2519
2470
  ...deserialized,
2520
2471
  });
2521
2472
  return __decorateServiceException(exception, body);
2522
2473
  };
2523
- const se_AddCustomRoutingEndpointsRequest = (input, context) => {
2524
- return {
2525
- ...(input.EndpointConfigurations != null && {
2526
- EndpointConfigurations: se_CustomRoutingEndpointConfigurations(input.EndpointConfigurations, context),
2527
- }),
2528
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2529
- };
2530
- };
2531
- const se_AddEndpointsRequest = (input, context) => {
2532
- return {
2533
- ...(input.EndpointConfigurations != null && {
2534
- EndpointConfigurations: se_EndpointConfigurations(input.EndpointConfigurations, context),
2535
- }),
2536
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2537
- };
2538
- };
2539
- const se_AdvertiseByoipCidrRequest = (input, context) => {
2540
- return {
2541
- ...(input.Cidr != null && { Cidr: input.Cidr }),
2542
- };
2543
- };
2544
- const se_AllowCustomRoutingTrafficRequest = (input, context) => {
2545
- return {
2546
- ...(input.AllowAllTrafficToEndpoint != null && { AllowAllTrafficToEndpoint: input.AllowAllTrafficToEndpoint }),
2547
- ...(input.DestinationAddresses != null && {
2548
- DestinationAddresses: se_DestinationAddresses(input.DestinationAddresses, context),
2549
- }),
2550
- ...(input.DestinationPorts != null && { DestinationPorts: se_DestinationPorts(input.DestinationPorts, context) }),
2551
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2552
- ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
2553
- };
2554
- };
2555
- const se_CidrAuthorizationContext = (input, context) => {
2556
- return {
2557
- ...(input.Message != null && { Message: input.Message }),
2558
- ...(input.Signature != null && { Signature: input.Signature }),
2559
- };
2560
- };
2561
- const se_CreateAcceleratorRequest = (input, context) => {
2562
- return {
2563
- ...(input.Enabled != null && { Enabled: input.Enabled }),
2564
- IdempotencyToken: input.IdempotencyToken ?? generateIdempotencyToken(),
2565
- ...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
2566
- ...(input.IpAddresses != null && { IpAddresses: se_IpAddresses(input.IpAddresses, context) }),
2567
- ...(input.Name != null && { Name: input.Name }),
2568
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2569
- };
2570
- };
2571
- const se_CreateCustomRoutingAcceleratorRequest = (input, context) => {
2572
- return {
2573
- ...(input.Enabled != null && { Enabled: input.Enabled }),
2574
- IdempotencyToken: input.IdempotencyToken ?? generateIdempotencyToken(),
2575
- ...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
2576
- ...(input.IpAddresses != null && { IpAddresses: se_IpAddresses(input.IpAddresses, context) }),
2577
- ...(input.Name != null && { Name: input.Name }),
2578
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2579
- };
2580
- };
2581
- const se_CreateCustomRoutingEndpointGroupRequest = (input, context) => {
2582
- return {
2583
- ...(input.DestinationConfigurations != null && {
2584
- DestinationConfigurations: se_CustomRoutingDestinationConfigurations(input.DestinationConfigurations, context),
2585
- }),
2586
- ...(input.EndpointGroupRegion != null && { EndpointGroupRegion: input.EndpointGroupRegion }),
2587
- IdempotencyToken: input.IdempotencyToken ?? generateIdempotencyToken(),
2588
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2589
- };
2590
- };
2591
- const se_CreateCustomRoutingListenerRequest = (input, context) => {
2592
- return {
2593
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2594
- IdempotencyToken: input.IdempotencyToken ?? generateIdempotencyToken(),
2595
- ...(input.PortRanges != null && { PortRanges: se_PortRanges(input.PortRanges, context) }),
2596
- };
2597
- };
2598
- const se_CreateEndpointGroupRequest = (input, context) => {
2599
- return {
2600
- ...(input.EndpointConfigurations != null && {
2601
- EndpointConfigurations: se_EndpointConfigurations(input.EndpointConfigurations, context),
2602
- }),
2603
- ...(input.EndpointGroupRegion != null && { EndpointGroupRegion: input.EndpointGroupRegion }),
2604
- ...(input.HealthCheckIntervalSeconds != null && { HealthCheckIntervalSeconds: input.HealthCheckIntervalSeconds }),
2605
- ...(input.HealthCheckPath != null && { HealthCheckPath: input.HealthCheckPath }),
2606
- ...(input.HealthCheckPort != null && { HealthCheckPort: input.HealthCheckPort }),
2607
- ...(input.HealthCheckProtocol != null && { HealthCheckProtocol: input.HealthCheckProtocol }),
2608
- IdempotencyToken: input.IdempotencyToken ?? generateIdempotencyToken(),
2609
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2610
- ...(input.PortOverrides != null && { PortOverrides: se_PortOverrides(input.PortOverrides, context) }),
2611
- ...(input.ThresholdCount != null && { ThresholdCount: input.ThresholdCount }),
2612
- ...(input.TrafficDialPercentage != null && {
2613
- TrafficDialPercentage: __serializeFloat(input.TrafficDialPercentage),
2614
- }),
2615
- };
2616
- };
2617
- const se_CreateListenerRequest = (input, context) => {
2618
- return {
2619
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2620
- ...(input.ClientAffinity != null && { ClientAffinity: input.ClientAffinity }),
2621
- IdempotencyToken: input.IdempotencyToken ?? generateIdempotencyToken(),
2622
- ...(input.PortRanges != null && { PortRanges: se_PortRanges(input.PortRanges, context) }),
2623
- ...(input.Protocol != null && { Protocol: input.Protocol }),
2624
- };
2625
- };
2626
- const se_CustomRoutingDestinationConfiguration = (input, context) => {
2627
- return {
2628
- ...(input.FromPort != null && { FromPort: input.FromPort }),
2629
- ...(input.Protocols != null && { Protocols: se_CustomRoutingProtocols(input.Protocols, context) }),
2630
- ...(input.ToPort != null && { ToPort: input.ToPort }),
2631
- };
2632
- };
2633
- const se_CustomRoutingDestinationConfigurations = (input, context) => {
2634
- return input
2635
- .filter((e) => e != null)
2636
- .map((entry) => {
2637
- return se_CustomRoutingDestinationConfiguration(entry, context);
2638
- });
2639
- };
2640
- const se_CustomRoutingEndpointConfiguration = (input, context) => {
2641
- return {
2642
- ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
2643
- };
2644
- };
2645
- const se_CustomRoutingEndpointConfigurations = (input, context) => {
2646
- return input
2647
- .filter((e) => e != null)
2648
- .map((entry) => {
2649
- return se_CustomRoutingEndpointConfiguration(entry, context);
2650
- });
2651
- };
2652
- const se_CustomRoutingProtocols = (input, context) => {
2653
- return input
2654
- .filter((e) => e != null)
2655
- .map((entry) => {
2656
- return entry;
2657
- });
2658
- };
2659
- const se_DeleteAcceleratorRequest = (input, context) => {
2660
- return {
2661
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2662
- };
2663
- };
2664
- const se_DeleteCustomRoutingAcceleratorRequest = (input, context) => {
2665
- return {
2666
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2667
- };
2668
- };
2669
- const se_DeleteCustomRoutingEndpointGroupRequest = (input, context) => {
2670
- return {
2671
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2672
- };
2673
- };
2674
- const se_DeleteCustomRoutingListenerRequest = (input, context) => {
2675
- return {
2676
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2677
- };
2678
- };
2679
- const se_DeleteEndpointGroupRequest = (input, context) => {
2680
- return {
2681
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2682
- };
2683
- };
2684
- const se_DeleteListenerRequest = (input, context) => {
2685
- return {
2686
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2687
- };
2688
- };
2689
- const se_DenyCustomRoutingTrafficRequest = (input, context) => {
2690
- return {
2691
- ...(input.DenyAllTrafficToEndpoint != null && { DenyAllTrafficToEndpoint: input.DenyAllTrafficToEndpoint }),
2692
- ...(input.DestinationAddresses != null && {
2693
- DestinationAddresses: se_DestinationAddresses(input.DestinationAddresses, context),
2694
- }),
2695
- ...(input.DestinationPorts != null && { DestinationPorts: se_DestinationPorts(input.DestinationPorts, context) }),
2696
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2697
- ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
2698
- };
2699
- };
2700
- const se_DeprovisionByoipCidrRequest = (input, context) => {
2701
- return {
2702
- ...(input.Cidr != null && { Cidr: input.Cidr }),
2703
- };
2704
- };
2705
- const se_DescribeAcceleratorAttributesRequest = (input, context) => {
2706
- return {
2707
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2708
- };
2709
- };
2710
- const se_DescribeAcceleratorRequest = (input, context) => {
2711
- return {
2712
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2713
- };
2714
- };
2715
- const se_DescribeCustomRoutingAcceleratorAttributesRequest = (input, context) => {
2716
- return {
2717
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2718
- };
2719
- };
2720
- const se_DescribeCustomRoutingAcceleratorRequest = (input, context) => {
2721
- return {
2722
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2723
- };
2724
- };
2725
- const se_DescribeCustomRoutingEndpointGroupRequest = (input, context) => {
2726
- return {
2727
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2728
- };
2729
- };
2730
- const se_DescribeCustomRoutingListenerRequest = (input, context) => {
2731
- return {
2732
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2733
- };
2734
- };
2735
- const se_DescribeEndpointGroupRequest = (input, context) => {
2736
- return {
2737
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2738
- };
2739
- };
2740
- const se_DescribeListenerRequest = (input, context) => {
2741
- return {
2742
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2743
- };
2744
- };
2745
- const se_DestinationAddresses = (input, context) => {
2746
- return input
2747
- .filter((e) => e != null)
2748
- .map((entry) => {
2749
- return entry;
2750
- });
2751
- };
2752
- const se_DestinationPorts = (input, context) => {
2753
- return input
2754
- .filter((e) => e != null)
2755
- .map((entry) => {
2756
- return entry;
2757
- });
2758
- };
2759
- const se_EndpointConfiguration = (input, context) => {
2760
- return {
2761
- ...(input.ClientIPPreservationEnabled != null && {
2762
- ClientIPPreservationEnabled: input.ClientIPPreservationEnabled,
2763
- }),
2764
- ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
2765
- ...(input.Weight != null && { Weight: input.Weight }),
2766
- };
2767
- };
2768
- const se_EndpointConfigurations = (input, context) => {
2769
- return input
2770
- .filter((e) => e != null)
2771
- .map((entry) => {
2772
- return se_EndpointConfiguration(entry, context);
2773
- });
2774
- };
2775
- const se_EndpointIdentifier = (input, context) => {
2776
- return {
2777
- ...(input.ClientIPPreservationEnabled != null && {
2778
- ClientIPPreservationEnabled: input.ClientIPPreservationEnabled,
2779
- }),
2780
- ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
2781
- };
2782
- };
2783
- const se_EndpointIdentifiers = (input, context) => {
2784
- return input
2785
- .filter((e) => e != null)
2786
- .map((entry) => {
2787
- return se_EndpointIdentifier(entry, context);
2788
- });
2789
- };
2790
- const se_EndpointIds = (input, context) => {
2791
- return input
2792
- .filter((e) => e != null)
2793
- .map((entry) => {
2794
- return entry;
2795
- });
2796
- };
2797
- const se_IpAddresses = (input, context) => {
2798
- return input
2799
- .filter((e) => e != null)
2800
- .map((entry) => {
2801
- return entry;
2802
- });
2803
- };
2804
- const se_ListAcceleratorsRequest = (input, context) => {
2805
- return {
2806
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2807
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2808
- };
2809
- };
2810
- const se_ListByoipCidrsRequest = (input, context) => {
2811
- return {
2812
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2813
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2814
- };
2815
- };
2816
- const se_ListCustomRoutingAcceleratorsRequest = (input, context) => {
2817
- return {
2818
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2819
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2820
- };
2821
- };
2822
- const se_ListCustomRoutingEndpointGroupsRequest = (input, context) => {
2823
- return {
2824
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2825
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2826
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2827
- };
2828
- };
2829
- const se_ListCustomRoutingListenersRequest = (input, context) => {
2830
- return {
2831
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2832
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2833
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2834
- };
2835
- };
2836
- const se_ListCustomRoutingPortMappingsByDestinationRequest = (input, context) => {
2837
- return {
2838
- ...(input.DestinationAddress != null && { DestinationAddress: input.DestinationAddress }),
2839
- ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
2840
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2841
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2842
- };
2843
- };
2844
- const se_ListCustomRoutingPortMappingsRequest = (input, context) => {
2845
- return {
2846
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2847
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2848
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2849
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2850
- };
2851
- };
2852
- const se_ListEndpointGroupsRequest = (input, context) => {
2853
- return {
2854
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2855
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2856
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2857
- };
2858
- };
2859
- const se_ListListenersRequest = (input, context) => {
2860
- return {
2861
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2862
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2863
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2864
- };
2865
- };
2866
- const se_ListTagsForResourceRequest = (input, context) => {
2867
- return {
2868
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2869
- };
2870
- };
2871
- const se_PortOverride = (input, context) => {
2872
- return {
2873
- ...(input.EndpointPort != null && { EndpointPort: input.EndpointPort }),
2874
- ...(input.ListenerPort != null && { ListenerPort: input.ListenerPort }),
2875
- };
2876
- };
2877
- const se_PortOverrides = (input, context) => {
2878
- return input
2879
- .filter((e) => e != null)
2880
- .map((entry) => {
2881
- return se_PortOverride(entry, context);
2882
- });
2883
- };
2884
- const se_PortRange = (input, context) => {
2885
- return {
2886
- ...(input.FromPort != null && { FromPort: input.FromPort }),
2887
- ...(input.ToPort != null && { ToPort: input.ToPort }),
2888
- };
2889
- };
2890
- const se_PortRanges = (input, context) => {
2891
- return input
2892
- .filter((e) => e != null)
2893
- .map((entry) => {
2894
- return se_PortRange(entry, context);
2895
- });
2896
- };
2897
- const se_ProvisionByoipCidrRequest = (input, context) => {
2898
- return {
2899
- ...(input.Cidr != null && { Cidr: input.Cidr }),
2900
- ...(input.CidrAuthorizationContext != null && {
2901
- CidrAuthorizationContext: se_CidrAuthorizationContext(input.CidrAuthorizationContext, context),
2902
- }),
2903
- };
2904
- };
2905
- const se_RemoveCustomRoutingEndpointsRequest = (input, context) => {
2906
- return {
2907
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2908
- ...(input.EndpointIds != null && { EndpointIds: se_EndpointIds(input.EndpointIds, context) }),
2909
- };
2910
- };
2911
- const se_RemoveEndpointsRequest = (input, context) => {
2912
- return {
2913
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2914
- ...(input.EndpointIdentifiers != null && {
2915
- EndpointIdentifiers: se_EndpointIdentifiers(input.EndpointIdentifiers, context),
2916
- }),
2917
- };
2918
- };
2919
- const se_Tag = (input, context) => {
2920
- return {
2921
- ...(input.Key != null && { Key: input.Key }),
2922
- ...(input.Value != null && { Value: input.Value }),
2923
- };
2924
- };
2925
- const se_TagKeys = (input, context) => {
2926
- return input
2927
- .filter((e) => e != null)
2928
- .map((entry) => {
2929
- return entry;
2930
- });
2931
- };
2932
- const se_TagResourceRequest = (input, context) => {
2933
- return {
2934
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2935
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2936
- };
2937
- };
2938
- const se_Tags = (input, context) => {
2939
- return input
2940
- .filter((e) => e != null)
2941
- .map((entry) => {
2942
- return se_Tag(entry, context);
2943
- });
2944
- };
2945
- const se_UntagResourceRequest = (input, context) => {
2946
- return {
2947
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2948
- ...(input.TagKeys != null && { TagKeys: se_TagKeys(input.TagKeys, context) }),
2949
- };
2950
- };
2951
- const se_UpdateAcceleratorAttributesRequest = (input, context) => {
2952
- return {
2953
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2954
- ...(input.FlowLogsEnabled != null && { FlowLogsEnabled: input.FlowLogsEnabled }),
2955
- ...(input.FlowLogsS3Bucket != null && { FlowLogsS3Bucket: input.FlowLogsS3Bucket }),
2956
- ...(input.FlowLogsS3Prefix != null && { FlowLogsS3Prefix: input.FlowLogsS3Prefix }),
2957
- };
2958
- };
2959
- const se_UpdateAcceleratorRequest = (input, context) => {
2960
- return {
2961
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2962
- ...(input.Enabled != null && { Enabled: input.Enabled }),
2963
- ...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
2964
- ...(input.Name != null && { Name: input.Name }),
2965
- };
2966
- };
2967
- const se_UpdateCustomRoutingAcceleratorAttributesRequest = (input, context) => {
2968
- return {
2969
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2970
- ...(input.FlowLogsEnabled != null && { FlowLogsEnabled: input.FlowLogsEnabled }),
2971
- ...(input.FlowLogsS3Bucket != null && { FlowLogsS3Bucket: input.FlowLogsS3Bucket }),
2972
- ...(input.FlowLogsS3Prefix != null && { FlowLogsS3Prefix: input.FlowLogsS3Prefix }),
2973
- };
2974
- };
2975
- const se_UpdateCustomRoutingAcceleratorRequest = (input, context) => {
2976
- return {
2977
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2978
- ...(input.Enabled != null && { Enabled: input.Enabled }),
2979
- ...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
2980
- ...(input.Name != null && { Name: input.Name }),
2981
- };
2982
- };
2983
- const se_UpdateCustomRoutingListenerRequest = (input, context) => {
2984
- return {
2985
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2986
- ...(input.PortRanges != null && { PortRanges: se_PortRanges(input.PortRanges, context) }),
2987
- };
2988
- };
2989
- const se_UpdateEndpointGroupRequest = (input, context) => {
2990
- return {
2991
- ...(input.EndpointConfigurations != null && {
2992
- EndpointConfigurations: se_EndpointConfigurations(input.EndpointConfigurations, context),
2993
- }),
2994
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2995
- ...(input.HealthCheckIntervalSeconds != null && { HealthCheckIntervalSeconds: input.HealthCheckIntervalSeconds }),
2996
- ...(input.HealthCheckPath != null && { HealthCheckPath: input.HealthCheckPath }),
2997
- ...(input.HealthCheckPort != null && { HealthCheckPort: input.HealthCheckPort }),
2998
- ...(input.HealthCheckProtocol != null && { HealthCheckProtocol: input.HealthCheckProtocol }),
2999
- ...(input.PortOverrides != null && { PortOverrides: se_PortOverrides(input.PortOverrides, context) }),
3000
- ...(input.ThresholdCount != null && { ThresholdCount: input.ThresholdCount }),
3001
- ...(input.TrafficDialPercentage != null && {
3002
- TrafficDialPercentage: __serializeFloat(input.TrafficDialPercentage),
3003
- }),
3004
- };
3005
- };
3006
- const se_UpdateListenerRequest = (input, context) => {
3007
- return {
3008
- ...(input.ClientAffinity != null && { ClientAffinity: input.ClientAffinity }),
3009
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
3010
- ...(input.PortRanges != null && { PortRanges: se_PortRanges(input.PortRanges, context) }),
3011
- ...(input.Protocol != null && { Protocol: input.Protocol }),
3012
- };
3013
- };
3014
- const se_WithdrawByoipCidrRequest = (input, context) => {
3015
- return {
3016
- ...(input.Cidr != null && { Cidr: input.Cidr }),
3017
- };
3018
- };
3019
- const de_Accelerator = (output, context) => {
3020
- return {
3021
- AcceleratorArn: __expectString(output.AcceleratorArn),
3022
- CreatedTime: output.CreatedTime != null
3023
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
3024
- : undefined,
3025
- DnsName: __expectString(output.DnsName),
3026
- DualStackDnsName: __expectString(output.DualStackDnsName),
3027
- Enabled: __expectBoolean(output.Enabled),
3028
- Events: output.Events != null ? de_AcceleratorEvents(output.Events, context) : undefined,
3029
- IpAddressType: __expectString(output.IpAddressType),
3030
- IpSets: output.IpSets != null ? de_IpSets(output.IpSets, context) : undefined,
3031
- LastModifiedTime: output.LastModifiedTime != null
3032
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3033
- : undefined,
3034
- Name: __expectString(output.Name),
3035
- Status: __expectString(output.Status),
3036
- };
3037
- };
3038
- const de_AcceleratorAttributes = (output, context) => {
3039
- return {
3040
- FlowLogsEnabled: __expectBoolean(output.FlowLogsEnabled),
3041
- FlowLogsS3Bucket: __expectString(output.FlowLogsS3Bucket),
3042
- FlowLogsS3Prefix: __expectString(output.FlowLogsS3Prefix),
3043
- };
3044
- };
3045
- const de_AcceleratorEvent = (output, context) => {
3046
- return {
3047
- Message: __expectString(output.Message),
3048
- Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
3049
- };
3050
- };
3051
- const de_AcceleratorEvents = (output, context) => {
3052
- const retVal = (output || [])
3053
- .filter((e) => e != null)
3054
- .map((entry) => {
3055
- if (entry === null) {
3056
- return null;
3057
- }
3058
- return de_AcceleratorEvent(entry, context);
3059
- });
3060
- return retVal;
3061
- };
3062
- const de_AcceleratorNotDisabledException = (output, context) => {
3063
- return {
3064
- Message: __expectString(output.Message),
3065
- };
3066
- };
3067
- const de_AcceleratorNotFoundException = (output, context) => {
3068
- return {
3069
- Message: __expectString(output.Message),
3070
- };
3071
- };
3072
- const de_Accelerators = (output, context) => {
3073
- const retVal = (output || [])
3074
- .filter((e) => e != null)
3075
- .map((entry) => {
3076
- if (entry === null) {
3077
- return null;
3078
- }
3079
- return de_Accelerator(entry, context);
3080
- });
3081
- return retVal;
3082
- };
3083
- const de_AccessDeniedException = (output, context) => {
3084
- return {
3085
- Message: __expectString(output.Message),
3086
- };
3087
- };
3088
- const de_AddCustomRoutingEndpointsResponse = (output, context) => {
3089
- return {
3090
- EndpointDescriptions: output.EndpointDescriptions != null
3091
- ? de_CustomRoutingEndpointDescriptions(output.EndpointDescriptions, context)
3092
- : undefined,
3093
- EndpointGroupArn: __expectString(output.EndpointGroupArn),
3094
- };
3095
- };
3096
- const de_AddEndpointsResponse = (output, context) => {
3097
- return {
3098
- EndpointDescriptions: output.EndpointDescriptions != null ? de_EndpointDescriptions(output.EndpointDescriptions, context) : undefined,
3099
- EndpointGroupArn: __expectString(output.EndpointGroupArn),
3100
- };
3101
- };
3102
- const de_AdvertiseByoipCidrResponse = (output, context) => {
3103
- return {
3104
- ByoipCidr: output.ByoipCidr != null ? de_ByoipCidr(output.ByoipCidr, context) : undefined,
3105
- };
3106
- };
3107
- const de_AssociatedEndpointGroupFoundException = (output, context) => {
3108
- return {
3109
- Message: __expectString(output.Message),
3110
- };
3111
- };
3112
- const de_AssociatedListenerFoundException = (output, context) => {
3113
- return {
3114
- Message: __expectString(output.Message),
3115
- };
3116
- };
3117
- const de_ByoipCidr = (output, context) => {
3118
- return {
3119
- Cidr: __expectString(output.Cidr),
3120
- Events: output.Events != null ? de_ByoipCidrEvents(output.Events, context) : undefined,
3121
- State: __expectString(output.State),
3122
- };
3123
- };
3124
- const de_ByoipCidrEvent = (output, context) => {
3125
- return {
3126
- Message: __expectString(output.Message),
3127
- Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
3128
- };
3129
- };
3130
- const de_ByoipCidrEvents = (output, context) => {
3131
- const retVal = (output || [])
3132
- .filter((e) => e != null)
3133
- .map((entry) => {
3134
- if (entry === null) {
3135
- return null;
3136
- }
3137
- return de_ByoipCidrEvent(entry, context);
3138
- });
3139
- return retVal;
3140
- };
3141
- const de_ByoipCidrNotFoundException = (output, context) => {
3142
- return {
3143
- Message: __expectString(output.Message),
3144
- };
3145
- };
3146
- const de_ByoipCidrs = (output, context) => {
3147
- const retVal = (output || [])
3148
- .filter((e) => e != null)
3149
- .map((entry) => {
3150
- if (entry === null) {
3151
- return null;
3152
- }
3153
- return de_ByoipCidr(entry, context);
3154
- });
3155
- return retVal;
3156
- };
3157
- const de_ConflictException = (output, context) => {
3158
- return {
3159
- Message: __expectString(output.Message),
3160
- };
3161
- };
3162
- const de_CreateAcceleratorResponse = (output, context) => {
3163
- return {
3164
- Accelerator: output.Accelerator != null ? de_Accelerator(output.Accelerator, context) : undefined,
3165
- };
3166
- };
3167
- const de_CreateCustomRoutingAcceleratorResponse = (output, context) => {
3168
- return {
3169
- Accelerator: output.Accelerator != null ? de_CustomRoutingAccelerator(output.Accelerator, context) : undefined,
3170
- };
3171
- };
3172
- const de_CreateCustomRoutingEndpointGroupResponse = (output, context) => {
3173
- return {
3174
- EndpointGroup: output.EndpointGroup != null ? de_CustomRoutingEndpointGroup(output.EndpointGroup, context) : undefined,
3175
- };
3176
- };
3177
- const de_CreateCustomRoutingListenerResponse = (output, context) => {
3178
- return {
3179
- Listener: output.Listener != null ? de_CustomRoutingListener(output.Listener, context) : undefined,
3180
- };
3181
- };
3182
- const de_CreateEndpointGroupResponse = (output, context) => {
3183
- return {
3184
- EndpointGroup: output.EndpointGroup != null ? de_EndpointGroup(output.EndpointGroup, context) : undefined,
3185
- };
3186
- };
3187
- const de_CreateListenerResponse = (output, context) => {
3188
- return {
3189
- Listener: output.Listener != null ? de_Listener(output.Listener, context) : undefined,
3190
- };
3191
- };
3192
- const de_CustomRoutingAccelerator = (output, context) => {
3193
- return {
3194
- AcceleratorArn: __expectString(output.AcceleratorArn),
3195
- CreatedTime: output.CreatedTime != null
3196
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
3197
- : undefined,
3198
- DnsName: __expectString(output.DnsName),
3199
- Enabled: __expectBoolean(output.Enabled),
3200
- IpAddressType: __expectString(output.IpAddressType),
3201
- IpSets: output.IpSets != null ? de_IpSets(output.IpSets, context) : undefined,
3202
- LastModifiedTime: output.LastModifiedTime != null
3203
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3204
- : undefined,
3205
- Name: __expectString(output.Name),
3206
- Status: __expectString(output.Status),
3207
- };
3208
- };
3209
- const de_CustomRoutingAcceleratorAttributes = (output, context) => {
3210
- return {
3211
- FlowLogsEnabled: __expectBoolean(output.FlowLogsEnabled),
3212
- FlowLogsS3Bucket: __expectString(output.FlowLogsS3Bucket),
3213
- FlowLogsS3Prefix: __expectString(output.FlowLogsS3Prefix),
3214
- };
3215
- };
3216
- const de_CustomRoutingAccelerators = (output, context) => {
3217
- const retVal = (output || [])
3218
- .filter((e) => e != null)
3219
- .map((entry) => {
3220
- if (entry === null) {
3221
- return null;
3222
- }
3223
- return de_CustomRoutingAccelerator(entry, context);
3224
- });
3225
- return retVal;
3226
- };
3227
- const de_CustomRoutingDestinationDescription = (output, context) => {
3228
- return {
3229
- FromPort: __expectInt32(output.FromPort),
3230
- Protocols: output.Protocols != null ? de_Protocols(output.Protocols, context) : undefined,
3231
- ToPort: __expectInt32(output.ToPort),
3232
- };
3233
- };
3234
- const de_CustomRoutingDestinationDescriptions = (output, context) => {
3235
- const retVal = (output || [])
3236
- .filter((e) => e != null)
3237
- .map((entry) => {
3238
- if (entry === null) {
3239
- return null;
3240
- }
3241
- return de_CustomRoutingDestinationDescription(entry, context);
3242
- });
3243
- return retVal;
3244
- };
3245
- const de_CustomRoutingEndpointDescription = (output, context) => {
3246
- return {
3247
- EndpointId: __expectString(output.EndpointId),
3248
- };
3249
- };
3250
- const de_CustomRoutingEndpointDescriptions = (output, context) => {
3251
- const retVal = (output || [])
3252
- .filter((e) => e != null)
3253
- .map((entry) => {
3254
- if (entry === null) {
3255
- return null;
3256
- }
3257
- return de_CustomRoutingEndpointDescription(entry, context);
3258
- });
3259
- return retVal;
3260
- };
3261
- const de_CustomRoutingEndpointGroup = (output, context) => {
3262
- return {
3263
- DestinationDescriptions: output.DestinationDescriptions != null
3264
- ? de_CustomRoutingDestinationDescriptions(output.DestinationDescriptions, context)
3265
- : undefined,
3266
- EndpointDescriptions: output.EndpointDescriptions != null
3267
- ? de_CustomRoutingEndpointDescriptions(output.EndpointDescriptions, context)
3268
- : undefined,
3269
- EndpointGroupArn: __expectString(output.EndpointGroupArn),
3270
- EndpointGroupRegion: __expectString(output.EndpointGroupRegion),
3271
- };
3272
- };
3273
- const de_CustomRoutingEndpointGroups = (output, context) => {
3274
- const retVal = (output || [])
3275
- .filter((e) => e != null)
3276
- .map((entry) => {
3277
- if (entry === null) {
3278
- return null;
3279
- }
3280
- return de_CustomRoutingEndpointGroup(entry, context);
2474
+ const se_CreateAcceleratorRequest = (input, context) => {
2475
+ return take(input, {
2476
+ Enabled: [],
2477
+ IdempotencyToken: (_) => _ ?? generateIdempotencyToken(),
2478
+ IpAddressType: [],
2479
+ IpAddresses: _json,
2480
+ Name: [],
2481
+ Tags: _json,
3281
2482
  });
3282
- return retVal;
3283
2483
  };
3284
- const de_CustomRoutingListener = (output, context) => {
3285
- return {
3286
- ListenerArn: __expectString(output.ListenerArn),
3287
- PortRanges: output.PortRanges != null ? de_PortRanges(output.PortRanges, context) : undefined,
3288
- };
3289
- };
3290
- const de_CustomRoutingListeners = (output, context) => {
3291
- const retVal = (output || [])
3292
- .filter((e) => e != null)
3293
- .map((entry) => {
3294
- if (entry === null) {
3295
- return null;
3296
- }
3297
- return de_CustomRoutingListener(entry, context);
2484
+ const se_CreateCustomRoutingAcceleratorRequest = (input, context) => {
2485
+ return take(input, {
2486
+ Enabled: [],
2487
+ IdempotencyToken: (_) => _ ?? generateIdempotencyToken(),
2488
+ IpAddressType: [],
2489
+ IpAddresses: _json,
2490
+ Name: [],
2491
+ Tags: _json,
3298
2492
  });
3299
- return retVal;
3300
2493
  };
3301
- const de_CustomRoutingProtocols = (output, context) => {
3302
- const retVal = (output || [])
3303
- .filter((e) => e != null)
3304
- .map((entry) => {
3305
- if (entry === null) {
3306
- return null;
3307
- }
3308
- return __expectString(entry);
2494
+ const se_CreateCustomRoutingEndpointGroupRequest = (input, context) => {
2495
+ return take(input, {
2496
+ DestinationConfigurations: _json,
2497
+ EndpointGroupRegion: [],
2498
+ IdempotencyToken: (_) => _ ?? generateIdempotencyToken(),
2499
+ ListenerArn: [],
3309
2500
  });
3310
- return retVal;
3311
- };
3312
- const de_DeprovisionByoipCidrResponse = (output, context) => {
3313
- return {
3314
- ByoipCidr: output.ByoipCidr != null ? de_ByoipCidr(output.ByoipCidr, context) : undefined,
3315
- };
3316
- };
3317
- const de_DescribeAcceleratorAttributesResponse = (output, context) => {
3318
- return {
3319
- AcceleratorAttributes: output.AcceleratorAttributes != null
3320
- ? de_AcceleratorAttributes(output.AcceleratorAttributes, context)
3321
- : undefined,
3322
- };
3323
- };
3324
- const de_DescribeAcceleratorResponse = (output, context) => {
3325
- return {
3326
- Accelerator: output.Accelerator != null ? de_Accelerator(output.Accelerator, context) : undefined,
3327
- };
3328
- };
3329
- const de_DescribeCustomRoutingAcceleratorAttributesResponse = (output, context) => {
3330
- return {
3331
- AcceleratorAttributes: output.AcceleratorAttributes != null
3332
- ? de_CustomRoutingAcceleratorAttributes(output.AcceleratorAttributes, context)
3333
- : undefined,
3334
- };
3335
- };
3336
- const de_DescribeCustomRoutingAcceleratorResponse = (output, context) => {
3337
- return {
3338
- Accelerator: output.Accelerator != null ? de_CustomRoutingAccelerator(output.Accelerator, context) : undefined,
3339
- };
3340
- };
3341
- const de_DescribeCustomRoutingEndpointGroupResponse = (output, context) => {
3342
- return {
3343
- EndpointGroup: output.EndpointGroup != null ? de_CustomRoutingEndpointGroup(output.EndpointGroup, context) : undefined,
3344
- };
3345
2501
  };
3346
- const de_DescribeCustomRoutingListenerResponse = (output, context) => {
3347
- return {
3348
- Listener: output.Listener != null ? de_CustomRoutingListener(output.Listener, context) : undefined,
3349
- };
2502
+ const se_CreateCustomRoutingListenerRequest = (input, context) => {
2503
+ return take(input, {
2504
+ AcceleratorArn: [],
2505
+ IdempotencyToken: (_) => _ ?? generateIdempotencyToken(),
2506
+ PortRanges: _json,
2507
+ });
3350
2508
  };
3351
- const de_DescribeEndpointGroupResponse = (output, context) => {
3352
- return {
3353
- EndpointGroup: output.EndpointGroup != null ? de_EndpointGroup(output.EndpointGroup, context) : undefined,
3354
- };
2509
+ const se_CreateEndpointGroupRequest = (input, context) => {
2510
+ return take(input, {
2511
+ EndpointConfigurations: _json,
2512
+ EndpointGroupRegion: [],
2513
+ HealthCheckIntervalSeconds: [],
2514
+ HealthCheckPath: [],
2515
+ HealthCheckPort: [],
2516
+ HealthCheckProtocol: [],
2517
+ IdempotencyToken: (_) => _ ?? generateIdempotencyToken(),
2518
+ ListenerArn: [],
2519
+ PortOverrides: _json,
2520
+ ThresholdCount: [],
2521
+ TrafficDialPercentage: __serializeFloat,
2522
+ });
3355
2523
  };
3356
- const de_DescribeListenerResponse = (output, context) => {
3357
- return {
3358
- Listener: output.Listener != null ? de_Listener(output.Listener, context) : undefined,
3359
- };
2524
+ const se_CreateListenerRequest = (input, context) => {
2525
+ return take(input, {
2526
+ AcceleratorArn: [],
2527
+ ClientAffinity: [],
2528
+ IdempotencyToken: (_) => _ ?? generateIdempotencyToken(),
2529
+ PortRanges: _json,
2530
+ Protocol: [],
2531
+ });
3360
2532
  };
3361
- const de_DestinationPortMapping = (output, context) => {
3362
- return {
3363
- AcceleratorArn: __expectString(output.AcceleratorArn),
3364
- AcceleratorSocketAddresses: output.AcceleratorSocketAddresses != null
3365
- ? de_SocketAddresses(output.AcceleratorSocketAddresses, context)
3366
- : undefined,
3367
- DestinationSocketAddress: output.DestinationSocketAddress != null ? de_SocketAddress(output.DestinationSocketAddress, context) : undefined,
3368
- DestinationTrafficState: __expectString(output.DestinationTrafficState),
3369
- EndpointGroupArn: __expectString(output.EndpointGroupArn),
3370
- EndpointGroupRegion: __expectString(output.EndpointGroupRegion),
3371
- EndpointId: __expectString(output.EndpointId),
3372
- IpAddressType: __expectString(output.IpAddressType),
3373
- };
3374
- };
3375
- const de_DestinationPortMappings = (output, context) => {
3376
- const retVal = (output || [])
3377
- .filter((e) => e != null)
3378
- .map((entry) => {
3379
- if (entry === null) {
3380
- return null;
3381
- }
3382
- return de_DestinationPortMapping(entry, context);
2533
+ const se_UpdateEndpointGroupRequest = (input, context) => {
2534
+ return take(input, {
2535
+ EndpointConfigurations: _json,
2536
+ EndpointGroupArn: [],
2537
+ HealthCheckIntervalSeconds: [],
2538
+ HealthCheckPath: [],
2539
+ HealthCheckPort: [],
2540
+ HealthCheckProtocol: [],
2541
+ PortOverrides: _json,
2542
+ ThresholdCount: [],
2543
+ TrafficDialPercentage: __serializeFloat,
3383
2544
  });
3384
- return retVal;
3385
2545
  };
3386
- const de_EndpointAlreadyExistsException = (output, context) => {
3387
- return {
3388
- Message: __expectString(output.Message),
3389
- };
2546
+ const de_Accelerator = (output, context) => {
2547
+ return take(output, {
2548
+ AcceleratorArn: __expectString,
2549
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2550
+ DnsName: __expectString,
2551
+ DualStackDnsName: __expectString,
2552
+ Enabled: __expectBoolean,
2553
+ Events: (_) => de_AcceleratorEvents(_, context),
2554
+ IpAddressType: __expectString,
2555
+ IpSets: _json,
2556
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2557
+ Name: __expectString,
2558
+ Status: __expectString,
2559
+ });
3390
2560
  };
3391
- const de_EndpointDescription = (output, context) => {
3392
- return {
3393
- ClientIPPreservationEnabled: __expectBoolean(output.ClientIPPreservationEnabled),
3394
- EndpointId: __expectString(output.EndpointId),
3395
- HealthReason: __expectString(output.HealthReason),
3396
- HealthState: __expectString(output.HealthState),
3397
- Weight: __expectInt32(output.Weight),
3398
- };
2561
+ const de_AcceleratorEvent = (output, context) => {
2562
+ return take(output, {
2563
+ Message: __expectString,
2564
+ Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2565
+ });
3399
2566
  };
3400
- const de_EndpointDescriptions = (output, context) => {
2567
+ const de_AcceleratorEvents = (output, context) => {
3401
2568
  const retVal = (output || [])
3402
2569
  .filter((e) => e != null)
3403
2570
  .map((entry) => {
3404
- if (entry === null) {
3405
- return null;
3406
- }
3407
- return de_EndpointDescription(entry, context);
2571
+ return de_AcceleratorEvent(entry, context);
3408
2572
  });
3409
2573
  return retVal;
3410
2574
  };
3411
- const de_EndpointGroup = (output, context) => {
3412
- return {
3413
- EndpointDescriptions: output.EndpointDescriptions != null ? de_EndpointDescriptions(output.EndpointDescriptions, context) : undefined,
3414
- EndpointGroupArn: __expectString(output.EndpointGroupArn),
3415
- EndpointGroupRegion: __expectString(output.EndpointGroupRegion),
3416
- HealthCheckIntervalSeconds: __expectInt32(output.HealthCheckIntervalSeconds),
3417
- HealthCheckPath: __expectString(output.HealthCheckPath),
3418
- HealthCheckPort: __expectInt32(output.HealthCheckPort),
3419
- HealthCheckProtocol: __expectString(output.HealthCheckProtocol),
3420
- PortOverrides: output.PortOverrides != null ? de_PortOverrides(output.PortOverrides, context) : undefined,
3421
- ThresholdCount: __expectInt32(output.ThresholdCount),
3422
- TrafficDialPercentage: __limitedParseFloat32(output.TrafficDialPercentage),
3423
- };
3424
- };
3425
- const de_EndpointGroupAlreadyExistsException = (output, context) => {
3426
- return {
3427
- Message: __expectString(output.Message),
3428
- };
3429
- };
3430
- const de_EndpointGroupNotFoundException = (output, context) => {
3431
- return {
3432
- Message: __expectString(output.Message),
3433
- };
3434
- };
3435
- const de_EndpointGroups = (output, context) => {
2575
+ const de_Accelerators = (output, context) => {
3436
2576
  const retVal = (output || [])
3437
2577
  .filter((e) => e != null)
3438
2578
  .map((entry) => {
3439
- if (entry === null) {
3440
- return null;
3441
- }
3442
- return de_EndpointGroup(entry, context);
2579
+ return de_Accelerator(entry, context);
3443
2580
  });
3444
2581
  return retVal;
3445
2582
  };
3446
- const de_EndpointNotFoundException = (output, context) => {
3447
- return {
3448
- Message: __expectString(output.Message),
3449
- };
3450
- };
3451
- const de_IncorrectCidrStateException = (output, context) => {
3452
- return {
3453
- Message: __expectString(output.Message),
3454
- };
3455
- };
3456
- const de_InternalServiceErrorException = (output, context) => {
3457
- return {
3458
- Message: __expectString(output.Message),
3459
- };
3460
- };
3461
- const de_InvalidArgumentException = (output, context) => {
3462
- return {
3463
- Message: __expectString(output.Message),
3464
- };
3465
- };
3466
- const de_InvalidNextTokenException = (output, context) => {
3467
- return {
3468
- Message: __expectString(output.Message),
3469
- };
3470
- };
3471
- const de_InvalidPortRangeException = (output, context) => {
3472
- return {
3473
- Message: __expectString(output.Message),
3474
- };
2583
+ const de_AdvertiseByoipCidrResponse = (output, context) => {
2584
+ return take(output, {
2585
+ ByoipCidr: (_) => de_ByoipCidr(_, context),
2586
+ });
3475
2587
  };
3476
- const de_IpAddresses = (output, context) => {
3477
- const retVal = (output || [])
3478
- .filter((e) => e != null)
3479
- .map((entry) => {
3480
- if (entry === null) {
3481
- return null;
3482
- }
3483
- return __expectString(entry);
2588
+ const de_ByoipCidr = (output, context) => {
2589
+ return take(output, {
2590
+ Cidr: __expectString,
2591
+ Events: (_) => de_ByoipCidrEvents(_, context),
2592
+ State: __expectString,
3484
2593
  });
3485
- return retVal;
3486
2594
  };
3487
- const de_IpSet = (output, context) => {
3488
- return {
3489
- IpAddressFamily: __expectString(output.IpAddressFamily),
3490
- IpAddresses: output.IpAddresses != null ? de_IpAddresses(output.IpAddresses, context) : undefined,
3491
- IpFamily: __expectString(output.IpFamily),
3492
- };
2595
+ const de_ByoipCidrEvent = (output, context) => {
2596
+ return take(output, {
2597
+ Message: __expectString,
2598
+ Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2599
+ });
3493
2600
  };
3494
- const de_IpSets = (output, context) => {
2601
+ const de_ByoipCidrEvents = (output, context) => {
3495
2602
  const retVal = (output || [])
3496
2603
  .filter((e) => e != null)
3497
2604
  .map((entry) => {
3498
- if (entry === null) {
3499
- return null;
3500
- }
3501
- return de_IpSet(entry, context);
2605
+ return de_ByoipCidrEvent(entry, context);
3502
2606
  });
3503
2607
  return retVal;
3504
2608
  };
3505
- const de_LimitExceededException = (output, context) => {
3506
- return {
3507
- Message: __expectString(output.Message),
3508
- };
3509
- };
3510
- const de_ListAcceleratorsResponse = (output, context) => {
3511
- return {
3512
- Accelerators: output.Accelerators != null ? de_Accelerators(output.Accelerators, context) : undefined,
3513
- NextToken: __expectString(output.NextToken),
3514
- };
3515
- };
3516
- const de_ListByoipCidrsResponse = (output, context) => {
3517
- return {
3518
- ByoipCidrs: output.ByoipCidrs != null ? de_ByoipCidrs(output.ByoipCidrs, context) : undefined,
3519
- NextToken: __expectString(output.NextToken),
3520
- };
3521
- };
3522
- const de_ListCustomRoutingAcceleratorsResponse = (output, context) => {
3523
- return {
3524
- Accelerators: output.Accelerators != null ? de_CustomRoutingAccelerators(output.Accelerators, context) : undefined,
3525
- NextToken: __expectString(output.NextToken),
3526
- };
3527
- };
3528
- const de_ListCustomRoutingEndpointGroupsResponse = (output, context) => {
3529
- return {
3530
- EndpointGroups: output.EndpointGroups != null ? de_CustomRoutingEndpointGroups(output.EndpointGroups, context) : undefined,
3531
- NextToken: __expectString(output.NextToken),
3532
- };
3533
- };
3534
- const de_ListCustomRoutingListenersResponse = (output, context) => {
3535
- return {
3536
- Listeners: output.Listeners != null ? de_CustomRoutingListeners(output.Listeners, context) : undefined,
3537
- NextToken: __expectString(output.NextToken),
3538
- };
3539
- };
3540
- const de_ListCustomRoutingPortMappingsByDestinationResponse = (output, context) => {
3541
- return {
3542
- DestinationPortMappings: output.DestinationPortMappings != null
3543
- ? de_DestinationPortMappings(output.DestinationPortMappings, context)
3544
- : undefined,
3545
- NextToken: __expectString(output.NextToken),
3546
- };
3547
- };
3548
- const de_ListCustomRoutingPortMappingsResponse = (output, context) => {
3549
- return {
3550
- NextToken: __expectString(output.NextToken),
3551
- PortMappings: output.PortMappings != null ? de_PortMappings(output.PortMappings, context) : undefined,
3552
- };
3553
- };
3554
- const de_ListEndpointGroupsResponse = (output, context) => {
3555
- return {
3556
- EndpointGroups: output.EndpointGroups != null ? de_EndpointGroups(output.EndpointGroups, context) : undefined,
3557
- NextToken: __expectString(output.NextToken),
3558
- };
3559
- };
3560
- const de_Listener = (output, context) => {
3561
- return {
3562
- ClientAffinity: __expectString(output.ClientAffinity),
3563
- ListenerArn: __expectString(output.ListenerArn),
3564
- PortRanges: output.PortRanges != null ? de_PortRanges(output.PortRanges, context) : undefined,
3565
- Protocol: __expectString(output.Protocol),
3566
- };
3567
- };
3568
- const de_ListenerNotFoundException = (output, context) => {
3569
- return {
3570
- Message: __expectString(output.Message),
3571
- };
3572
- };
3573
- const de_Listeners = (output, context) => {
2609
+ const de_ByoipCidrs = (output, context) => {
3574
2610
  const retVal = (output || [])
3575
2611
  .filter((e) => e != null)
3576
2612
  .map((entry) => {
3577
- if (entry === null) {
3578
- return null;
3579
- }
3580
- return de_Listener(entry, context);
2613
+ return de_ByoipCidr(entry, context);
3581
2614
  });
3582
2615
  return retVal;
3583
2616
  };
3584
- const de_ListListenersResponse = (output, context) => {
3585
- return {
3586
- Listeners: output.Listeners != null ? de_Listeners(output.Listeners, context) : undefined,
3587
- NextToken: __expectString(output.NextToken),
3588
- };
3589
- };
3590
- const de_ListTagsForResourceResponse = (output, context) => {
3591
- return {
3592
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
3593
- };
2617
+ const de_CreateAcceleratorResponse = (output, context) => {
2618
+ return take(output, {
2619
+ Accelerator: (_) => de_Accelerator(_, context),
2620
+ });
3594
2621
  };
3595
- const de_PortMapping = (output, context) => {
3596
- return {
3597
- AcceleratorPort: __expectInt32(output.AcceleratorPort),
3598
- DestinationSocketAddress: output.DestinationSocketAddress != null ? de_SocketAddress(output.DestinationSocketAddress, context) : undefined,
3599
- DestinationTrafficState: __expectString(output.DestinationTrafficState),
3600
- EndpointGroupArn: __expectString(output.EndpointGroupArn),
3601
- EndpointId: __expectString(output.EndpointId),
3602
- Protocols: output.Protocols != null ? de_CustomRoutingProtocols(output.Protocols, context) : undefined,
3603
- };
2622
+ const de_CreateCustomRoutingAcceleratorResponse = (output, context) => {
2623
+ return take(output, {
2624
+ Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
2625
+ });
3604
2626
  };
3605
- const de_PortMappings = (output, context) => {
3606
- const retVal = (output || [])
3607
- .filter((e) => e != null)
3608
- .map((entry) => {
3609
- if (entry === null) {
3610
- return null;
3611
- }
3612
- return de_PortMapping(entry, context);
2627
+ const de_CreateEndpointGroupResponse = (output, context) => {
2628
+ return take(output, {
2629
+ EndpointGroup: (_) => de_EndpointGroup(_, context),
3613
2630
  });
3614
- return retVal;
3615
2631
  };
3616
- const de_PortOverride = (output, context) => {
3617
- return {
3618
- EndpointPort: __expectInt32(output.EndpointPort),
3619
- ListenerPort: __expectInt32(output.ListenerPort),
3620
- };
2632
+ const de_CustomRoutingAccelerator = (output, context) => {
2633
+ return take(output, {
2634
+ AcceleratorArn: __expectString,
2635
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2636
+ DnsName: __expectString,
2637
+ Enabled: __expectBoolean,
2638
+ IpAddressType: __expectString,
2639
+ IpSets: _json,
2640
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2641
+ Name: __expectString,
2642
+ Status: __expectString,
2643
+ });
3621
2644
  };
3622
- const de_PortOverrides = (output, context) => {
2645
+ const de_CustomRoutingAccelerators = (output, context) => {
3623
2646
  const retVal = (output || [])
3624
2647
  .filter((e) => e != null)
3625
2648
  .map((entry) => {
3626
- if (entry === null) {
3627
- return null;
3628
- }
3629
- return de_PortOverride(entry, context);
2649
+ return de_CustomRoutingAccelerator(entry, context);
3630
2650
  });
3631
2651
  return retVal;
3632
2652
  };
3633
- const de_PortRange = (output, context) => {
3634
- return {
3635
- FromPort: __expectInt32(output.FromPort),
3636
- ToPort: __expectInt32(output.ToPort),
3637
- };
2653
+ const de_DeprovisionByoipCidrResponse = (output, context) => {
2654
+ return take(output, {
2655
+ ByoipCidr: (_) => de_ByoipCidr(_, context),
2656
+ });
3638
2657
  };
3639
- const de_PortRanges = (output, context) => {
3640
- const retVal = (output || [])
3641
- .filter((e) => e != null)
3642
- .map((entry) => {
3643
- if (entry === null) {
3644
- return null;
3645
- }
3646
- return de_PortRange(entry, context);
2658
+ const de_DescribeAcceleratorResponse = (output, context) => {
2659
+ return take(output, {
2660
+ Accelerator: (_) => de_Accelerator(_, context),
3647
2661
  });
3648
- return retVal;
3649
2662
  };
3650
- const de_Protocols = (output, context) => {
3651
- const retVal = (output || [])
3652
- .filter((e) => e != null)
3653
- .map((entry) => {
3654
- if (entry === null) {
3655
- return null;
3656
- }
3657
- return __expectString(entry);
2663
+ const de_DescribeCustomRoutingAcceleratorResponse = (output, context) => {
2664
+ return take(output, {
2665
+ Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
3658
2666
  });
3659
- return retVal;
3660
2667
  };
3661
- const de_ProvisionByoipCidrResponse = (output, context) => {
3662
- return {
3663
- ByoipCidr: output.ByoipCidr != null ? de_ByoipCidr(output.ByoipCidr, context) : undefined,
3664
- };
2668
+ const de_DescribeEndpointGroupResponse = (output, context) => {
2669
+ return take(output, {
2670
+ EndpointGroup: (_) => de_EndpointGroup(_, context),
2671
+ });
3665
2672
  };
3666
- const de_SocketAddress = (output, context) => {
3667
- return {
3668
- IpAddress: __expectString(output.IpAddress),
3669
- Port: __expectInt32(output.Port),
3670
- };
2673
+ const de_EndpointGroup = (output, context) => {
2674
+ return take(output, {
2675
+ EndpointDescriptions: _json,
2676
+ EndpointGroupArn: __expectString,
2677
+ EndpointGroupRegion: __expectString,
2678
+ HealthCheckIntervalSeconds: __expectInt32,
2679
+ HealthCheckPath: __expectString,
2680
+ HealthCheckPort: __expectInt32,
2681
+ HealthCheckProtocol: __expectString,
2682
+ PortOverrides: _json,
2683
+ ThresholdCount: __expectInt32,
2684
+ TrafficDialPercentage: __limitedParseFloat32,
2685
+ });
3671
2686
  };
3672
- const de_SocketAddresses = (output, context) => {
2687
+ const de_EndpointGroups = (output, context) => {
3673
2688
  const retVal = (output || [])
3674
2689
  .filter((e) => e != null)
3675
2690
  .map((entry) => {
3676
- if (entry === null) {
3677
- return null;
3678
- }
3679
- return de_SocketAddress(entry, context);
2691
+ return de_EndpointGroup(entry, context);
3680
2692
  });
3681
2693
  return retVal;
3682
2694
  };
3683
- const de_Tag = (output, context) => {
3684
- return {
3685
- Key: __expectString(output.Key),
3686
- Value: __expectString(output.Value),
3687
- };
3688
- };
3689
- const de_TagResourceResponse = (output, context) => {
3690
- return {};
2695
+ const de_ListAcceleratorsResponse = (output, context) => {
2696
+ return take(output, {
2697
+ Accelerators: (_) => de_Accelerators(_, context),
2698
+ NextToken: __expectString,
2699
+ });
3691
2700
  };
3692
- const de_Tags = (output, context) => {
3693
- const retVal = (output || [])
3694
- .filter((e) => e != null)
3695
- .map((entry) => {
3696
- if (entry === null) {
3697
- return null;
3698
- }
3699
- return de_Tag(entry, context);
2701
+ const de_ListByoipCidrsResponse = (output, context) => {
2702
+ return take(output, {
2703
+ ByoipCidrs: (_) => de_ByoipCidrs(_, context),
2704
+ NextToken: __expectString,
3700
2705
  });
3701
- return retVal;
3702
2706
  };
3703
- const de_TransactionInProgressException = (output, context) => {
3704
- return {
3705
- Message: __expectString(output.Message),
3706
- };
2707
+ const de_ListCustomRoutingAcceleratorsResponse = (output, context) => {
2708
+ return take(output, {
2709
+ Accelerators: (_) => de_CustomRoutingAccelerators(_, context),
2710
+ NextToken: __expectString,
2711
+ });
3707
2712
  };
3708
- const de_UntagResourceResponse = (output, context) => {
3709
- return {};
2713
+ const de_ListEndpointGroupsResponse = (output, context) => {
2714
+ return take(output, {
2715
+ EndpointGroups: (_) => de_EndpointGroups(_, context),
2716
+ NextToken: __expectString,
2717
+ });
3710
2718
  };
3711
- const de_UpdateAcceleratorAttributesResponse = (output, context) => {
3712
- return {
3713
- AcceleratorAttributes: output.AcceleratorAttributes != null
3714
- ? de_AcceleratorAttributes(output.AcceleratorAttributes, context)
3715
- : undefined,
3716
- };
2719
+ const de_ProvisionByoipCidrResponse = (output, context) => {
2720
+ return take(output, {
2721
+ ByoipCidr: (_) => de_ByoipCidr(_, context),
2722
+ });
3717
2723
  };
3718
2724
  const de_UpdateAcceleratorResponse = (output, context) => {
3719
- return {
3720
- Accelerator: output.Accelerator != null ? de_Accelerator(output.Accelerator, context) : undefined,
3721
- };
3722
- };
3723
- const de_UpdateCustomRoutingAcceleratorAttributesResponse = (output, context) => {
3724
- return {
3725
- AcceleratorAttributes: output.AcceleratorAttributes != null
3726
- ? de_CustomRoutingAcceleratorAttributes(output.AcceleratorAttributes, context)
3727
- : undefined,
3728
- };
2725
+ return take(output, {
2726
+ Accelerator: (_) => de_Accelerator(_, context),
2727
+ });
3729
2728
  };
3730
2729
  const de_UpdateCustomRoutingAcceleratorResponse = (output, context) => {
3731
- return {
3732
- Accelerator: output.Accelerator != null ? de_CustomRoutingAccelerator(output.Accelerator, context) : undefined,
3733
- };
3734
- };
3735
- const de_UpdateCustomRoutingListenerResponse = (output, context) => {
3736
- return {
3737
- Listener: output.Listener != null ? de_CustomRoutingListener(output.Listener, context) : undefined,
3738
- };
2730
+ return take(output, {
2731
+ Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
2732
+ });
3739
2733
  };
3740
2734
  const de_UpdateEndpointGroupResponse = (output, context) => {
3741
- return {
3742
- EndpointGroup: output.EndpointGroup != null ? de_EndpointGroup(output.EndpointGroup, context) : undefined,
3743
- };
3744
- };
3745
- const de_UpdateListenerResponse = (output, context) => {
3746
- return {
3747
- Listener: output.Listener != null ? de_Listener(output.Listener, context) : undefined,
3748
- };
2735
+ return take(output, {
2736
+ EndpointGroup: (_) => de_EndpointGroup(_, context),
2737
+ });
3749
2738
  };
3750
2739
  const de_WithdrawByoipCidrResponse = (output, context) => {
3751
- return {
3752
- ByoipCidr: output.ByoipCidr != null ? de_ByoipCidr(output.ByoipCidr, context) : undefined,
3753
- };
2740
+ return take(output, {
2741
+ ByoipCidr: (_) => de_ByoipCidr(_, context),
2742
+ });
3754
2743
  };
3755
2744
  const deserializeMetadata = (output) => ({
3756
2745
  httpStatusCode: output.statusCode,
@@ -3765,6 +2754,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
3765
2754
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3766
2755
  };
3767
2756
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2757
+ const throwDefaultError = withBaseException(__BaseException);
3768
2758
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3769
2759
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3770
2760
  const contents = {