@aws-sdk/client-global-accelerator 3.310.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.
@@ -8,492 +8,345 @@ const uuid_1 = require("uuid");
8
8
  const GlobalAcceleratorServiceException_1 = require("../models/GlobalAcceleratorServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_AddCustomRoutingEndpointsCommand = async (input, context) => {
11
- const headers = {
12
- "content-type": "application/x-amz-json-1.1",
13
- "x-amz-target": "GlobalAccelerator_V20180706.AddCustomRoutingEndpoints",
14
- };
11
+ const headers = sharedHeaders("AddCustomRoutingEndpoints");
15
12
  let body;
16
- body = JSON.stringify(se_AddCustomRoutingEndpointsRequest(input, context));
13
+ body = JSON.stringify((0, smithy_client_1._json)(input));
17
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
15
  };
19
16
  exports.se_AddCustomRoutingEndpointsCommand = se_AddCustomRoutingEndpointsCommand;
20
17
  const se_AddEndpointsCommand = async (input, context) => {
21
- const headers = {
22
- "content-type": "application/x-amz-json-1.1",
23
- "x-amz-target": "GlobalAccelerator_V20180706.AddEndpoints",
24
- };
18
+ const headers = sharedHeaders("AddEndpoints");
25
19
  let body;
26
- body = JSON.stringify(se_AddEndpointsRequest(input, context));
20
+ body = JSON.stringify((0, smithy_client_1._json)(input));
27
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
22
  };
29
23
  exports.se_AddEndpointsCommand = se_AddEndpointsCommand;
30
24
  const se_AdvertiseByoipCidrCommand = async (input, context) => {
31
- const headers = {
32
- "content-type": "application/x-amz-json-1.1",
33
- "x-amz-target": "GlobalAccelerator_V20180706.AdvertiseByoipCidr",
34
- };
25
+ const headers = sharedHeaders("AdvertiseByoipCidr");
35
26
  let body;
36
- body = JSON.stringify(se_AdvertiseByoipCidrRequest(input, context));
27
+ body = JSON.stringify((0, smithy_client_1._json)(input));
37
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
38
29
  };
39
30
  exports.se_AdvertiseByoipCidrCommand = se_AdvertiseByoipCidrCommand;
40
31
  const se_AllowCustomRoutingTrafficCommand = async (input, context) => {
41
- const headers = {
42
- "content-type": "application/x-amz-json-1.1",
43
- "x-amz-target": "GlobalAccelerator_V20180706.AllowCustomRoutingTraffic",
44
- };
32
+ const headers = sharedHeaders("AllowCustomRoutingTraffic");
45
33
  let body;
46
- body = JSON.stringify(se_AllowCustomRoutingTrafficRequest(input, context));
34
+ body = JSON.stringify((0, smithy_client_1._json)(input));
47
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
36
  };
49
37
  exports.se_AllowCustomRoutingTrafficCommand = se_AllowCustomRoutingTrafficCommand;
50
38
  const se_CreateAcceleratorCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.1",
53
- "x-amz-target": "GlobalAccelerator_V20180706.CreateAccelerator",
54
- };
39
+ const headers = sharedHeaders("CreateAccelerator");
55
40
  let body;
56
41
  body = JSON.stringify(se_CreateAcceleratorRequest(input, context));
57
42
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
43
  };
59
44
  exports.se_CreateAcceleratorCommand = se_CreateAcceleratorCommand;
60
45
  const se_CreateCustomRoutingAcceleratorCommand = async (input, context) => {
61
- const headers = {
62
- "content-type": "application/x-amz-json-1.1",
63
- "x-amz-target": "GlobalAccelerator_V20180706.CreateCustomRoutingAccelerator",
64
- };
46
+ const headers = sharedHeaders("CreateCustomRoutingAccelerator");
65
47
  let body;
66
48
  body = JSON.stringify(se_CreateCustomRoutingAcceleratorRequest(input, context));
67
49
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
68
50
  };
69
51
  exports.se_CreateCustomRoutingAcceleratorCommand = se_CreateCustomRoutingAcceleratorCommand;
70
52
  const se_CreateCustomRoutingEndpointGroupCommand = async (input, context) => {
71
- const headers = {
72
- "content-type": "application/x-amz-json-1.1",
73
- "x-amz-target": "GlobalAccelerator_V20180706.CreateCustomRoutingEndpointGroup",
74
- };
53
+ const headers = sharedHeaders("CreateCustomRoutingEndpointGroup");
75
54
  let body;
76
55
  body = JSON.stringify(se_CreateCustomRoutingEndpointGroupRequest(input, context));
77
56
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
57
  };
79
58
  exports.se_CreateCustomRoutingEndpointGroupCommand = se_CreateCustomRoutingEndpointGroupCommand;
80
59
  const se_CreateCustomRoutingListenerCommand = async (input, context) => {
81
- const headers = {
82
- "content-type": "application/x-amz-json-1.1",
83
- "x-amz-target": "GlobalAccelerator_V20180706.CreateCustomRoutingListener",
84
- };
60
+ const headers = sharedHeaders("CreateCustomRoutingListener");
85
61
  let body;
86
62
  body = JSON.stringify(se_CreateCustomRoutingListenerRequest(input, context));
87
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
88
64
  };
89
65
  exports.se_CreateCustomRoutingListenerCommand = se_CreateCustomRoutingListenerCommand;
90
66
  const se_CreateEndpointGroupCommand = async (input, context) => {
91
- const headers = {
92
- "content-type": "application/x-amz-json-1.1",
93
- "x-amz-target": "GlobalAccelerator_V20180706.CreateEndpointGroup",
94
- };
67
+ const headers = sharedHeaders("CreateEndpointGroup");
95
68
  let body;
96
69
  body = JSON.stringify(se_CreateEndpointGroupRequest(input, context));
97
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
71
  };
99
72
  exports.se_CreateEndpointGroupCommand = se_CreateEndpointGroupCommand;
100
73
  const se_CreateListenerCommand = async (input, context) => {
101
- const headers = {
102
- "content-type": "application/x-amz-json-1.1",
103
- "x-amz-target": "GlobalAccelerator_V20180706.CreateListener",
104
- };
74
+ const headers = sharedHeaders("CreateListener");
105
75
  let body;
106
76
  body = JSON.stringify(se_CreateListenerRequest(input, context));
107
77
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
78
  };
109
79
  exports.se_CreateListenerCommand = se_CreateListenerCommand;
110
80
  const se_DeleteAcceleratorCommand = async (input, context) => {
111
- const headers = {
112
- "content-type": "application/x-amz-json-1.1",
113
- "x-amz-target": "GlobalAccelerator_V20180706.DeleteAccelerator",
114
- };
81
+ const headers = sharedHeaders("DeleteAccelerator");
115
82
  let body;
116
- body = JSON.stringify(se_DeleteAcceleratorRequest(input, context));
83
+ body = JSON.stringify((0, smithy_client_1._json)(input));
117
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
85
  };
119
86
  exports.se_DeleteAcceleratorCommand = se_DeleteAcceleratorCommand;
120
87
  const se_DeleteCustomRoutingAcceleratorCommand = async (input, context) => {
121
- const headers = {
122
- "content-type": "application/x-amz-json-1.1",
123
- "x-amz-target": "GlobalAccelerator_V20180706.DeleteCustomRoutingAccelerator",
124
- };
88
+ const headers = sharedHeaders("DeleteCustomRoutingAccelerator");
125
89
  let body;
126
- body = JSON.stringify(se_DeleteCustomRoutingAcceleratorRequest(input, context));
90
+ body = JSON.stringify((0, smithy_client_1._json)(input));
127
91
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
128
92
  };
129
93
  exports.se_DeleteCustomRoutingAcceleratorCommand = se_DeleteCustomRoutingAcceleratorCommand;
130
94
  const se_DeleteCustomRoutingEndpointGroupCommand = async (input, context) => {
131
- const headers = {
132
- "content-type": "application/x-amz-json-1.1",
133
- "x-amz-target": "GlobalAccelerator_V20180706.DeleteCustomRoutingEndpointGroup",
134
- };
95
+ const headers = sharedHeaders("DeleteCustomRoutingEndpointGroup");
135
96
  let body;
136
- body = JSON.stringify(se_DeleteCustomRoutingEndpointGroupRequest(input, context));
97
+ body = JSON.stringify((0, smithy_client_1._json)(input));
137
98
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
99
  };
139
100
  exports.se_DeleteCustomRoutingEndpointGroupCommand = se_DeleteCustomRoutingEndpointGroupCommand;
140
101
  const se_DeleteCustomRoutingListenerCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.1",
143
- "x-amz-target": "GlobalAccelerator_V20180706.DeleteCustomRoutingListener",
144
- };
102
+ const headers = sharedHeaders("DeleteCustomRoutingListener");
145
103
  let body;
146
- body = JSON.stringify(se_DeleteCustomRoutingListenerRequest(input, context));
104
+ body = JSON.stringify((0, smithy_client_1._json)(input));
147
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
106
  };
149
107
  exports.se_DeleteCustomRoutingListenerCommand = se_DeleteCustomRoutingListenerCommand;
150
108
  const se_DeleteEndpointGroupCommand = async (input, context) => {
151
- const headers = {
152
- "content-type": "application/x-amz-json-1.1",
153
- "x-amz-target": "GlobalAccelerator_V20180706.DeleteEndpointGroup",
154
- };
109
+ const headers = sharedHeaders("DeleteEndpointGroup");
155
110
  let body;
156
- body = JSON.stringify(se_DeleteEndpointGroupRequest(input, context));
111
+ body = JSON.stringify((0, smithy_client_1._json)(input));
157
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
158
113
  };
159
114
  exports.se_DeleteEndpointGroupCommand = se_DeleteEndpointGroupCommand;
160
115
  const se_DeleteListenerCommand = async (input, context) => {
161
- const headers = {
162
- "content-type": "application/x-amz-json-1.1",
163
- "x-amz-target": "GlobalAccelerator_V20180706.DeleteListener",
164
- };
116
+ const headers = sharedHeaders("DeleteListener");
165
117
  let body;
166
- body = JSON.stringify(se_DeleteListenerRequest(input, context));
118
+ body = JSON.stringify((0, smithy_client_1._json)(input));
167
119
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
120
  };
169
121
  exports.se_DeleteListenerCommand = se_DeleteListenerCommand;
170
122
  const se_DenyCustomRoutingTrafficCommand = async (input, context) => {
171
- const headers = {
172
- "content-type": "application/x-amz-json-1.1",
173
- "x-amz-target": "GlobalAccelerator_V20180706.DenyCustomRoutingTraffic",
174
- };
123
+ const headers = sharedHeaders("DenyCustomRoutingTraffic");
175
124
  let body;
176
- body = JSON.stringify(se_DenyCustomRoutingTrafficRequest(input, context));
125
+ body = JSON.stringify((0, smithy_client_1._json)(input));
177
126
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
178
127
  };
179
128
  exports.se_DenyCustomRoutingTrafficCommand = se_DenyCustomRoutingTrafficCommand;
180
129
  const se_DeprovisionByoipCidrCommand = async (input, context) => {
181
- const headers = {
182
- "content-type": "application/x-amz-json-1.1",
183
- "x-amz-target": "GlobalAccelerator_V20180706.DeprovisionByoipCidr",
184
- };
130
+ const headers = sharedHeaders("DeprovisionByoipCidr");
185
131
  let body;
186
- body = JSON.stringify(se_DeprovisionByoipCidrRequest(input, context));
132
+ body = JSON.stringify((0, smithy_client_1._json)(input));
187
133
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
188
134
  };
189
135
  exports.se_DeprovisionByoipCidrCommand = se_DeprovisionByoipCidrCommand;
190
136
  const se_DescribeAcceleratorCommand = async (input, context) => {
191
- const headers = {
192
- "content-type": "application/x-amz-json-1.1",
193
- "x-amz-target": "GlobalAccelerator_V20180706.DescribeAccelerator",
194
- };
137
+ const headers = sharedHeaders("DescribeAccelerator");
195
138
  let body;
196
- body = JSON.stringify(se_DescribeAcceleratorRequest(input, context));
139
+ body = JSON.stringify((0, smithy_client_1._json)(input));
197
140
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
141
  };
199
142
  exports.se_DescribeAcceleratorCommand = se_DescribeAcceleratorCommand;
200
143
  const se_DescribeAcceleratorAttributesCommand = async (input, context) => {
201
- const headers = {
202
- "content-type": "application/x-amz-json-1.1",
203
- "x-amz-target": "GlobalAccelerator_V20180706.DescribeAcceleratorAttributes",
204
- };
144
+ const headers = sharedHeaders("DescribeAcceleratorAttributes");
205
145
  let body;
206
- body = JSON.stringify(se_DescribeAcceleratorAttributesRequest(input, context));
146
+ body = JSON.stringify((0, smithy_client_1._json)(input));
207
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
208
148
  };
209
149
  exports.se_DescribeAcceleratorAttributesCommand = se_DescribeAcceleratorAttributesCommand;
210
150
  const se_DescribeCustomRoutingAcceleratorCommand = async (input, context) => {
211
- const headers = {
212
- "content-type": "application/x-amz-json-1.1",
213
- "x-amz-target": "GlobalAccelerator_V20180706.DescribeCustomRoutingAccelerator",
214
- };
151
+ const headers = sharedHeaders("DescribeCustomRoutingAccelerator");
215
152
  let body;
216
- body = JSON.stringify(se_DescribeCustomRoutingAcceleratorRequest(input, context));
153
+ body = JSON.stringify((0, smithy_client_1._json)(input));
217
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
155
  };
219
156
  exports.se_DescribeCustomRoutingAcceleratorCommand = se_DescribeCustomRoutingAcceleratorCommand;
220
157
  const se_DescribeCustomRoutingAcceleratorAttributesCommand = async (input, context) => {
221
- const headers = {
222
- "content-type": "application/x-amz-json-1.1",
223
- "x-amz-target": "GlobalAccelerator_V20180706.DescribeCustomRoutingAcceleratorAttributes",
224
- };
158
+ const headers = sharedHeaders("DescribeCustomRoutingAcceleratorAttributes");
225
159
  let body;
226
- body = JSON.stringify(se_DescribeCustomRoutingAcceleratorAttributesRequest(input, context));
160
+ body = JSON.stringify((0, smithy_client_1._json)(input));
227
161
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
162
  };
229
163
  exports.se_DescribeCustomRoutingAcceleratorAttributesCommand = se_DescribeCustomRoutingAcceleratorAttributesCommand;
230
164
  const se_DescribeCustomRoutingEndpointGroupCommand = async (input, context) => {
231
- const headers = {
232
- "content-type": "application/x-amz-json-1.1",
233
- "x-amz-target": "GlobalAccelerator_V20180706.DescribeCustomRoutingEndpointGroup",
234
- };
165
+ const headers = sharedHeaders("DescribeCustomRoutingEndpointGroup");
235
166
  let body;
236
- body = JSON.stringify(se_DescribeCustomRoutingEndpointGroupRequest(input, context));
167
+ body = JSON.stringify((0, smithy_client_1._json)(input));
237
168
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
169
  };
239
170
  exports.se_DescribeCustomRoutingEndpointGroupCommand = se_DescribeCustomRoutingEndpointGroupCommand;
240
171
  const se_DescribeCustomRoutingListenerCommand = async (input, context) => {
241
- const headers = {
242
- "content-type": "application/x-amz-json-1.1",
243
- "x-amz-target": "GlobalAccelerator_V20180706.DescribeCustomRoutingListener",
244
- };
172
+ const headers = sharedHeaders("DescribeCustomRoutingListener");
245
173
  let body;
246
- body = JSON.stringify(se_DescribeCustomRoutingListenerRequest(input, context));
174
+ body = JSON.stringify((0, smithy_client_1._json)(input));
247
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
248
176
  };
249
177
  exports.se_DescribeCustomRoutingListenerCommand = se_DescribeCustomRoutingListenerCommand;
250
178
  const se_DescribeEndpointGroupCommand = async (input, context) => {
251
- const headers = {
252
- "content-type": "application/x-amz-json-1.1",
253
- "x-amz-target": "GlobalAccelerator_V20180706.DescribeEndpointGroup",
254
- };
179
+ const headers = sharedHeaders("DescribeEndpointGroup");
255
180
  let body;
256
- body = JSON.stringify(se_DescribeEndpointGroupRequest(input, context));
181
+ body = JSON.stringify((0, smithy_client_1._json)(input));
257
182
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
183
  };
259
184
  exports.se_DescribeEndpointGroupCommand = se_DescribeEndpointGroupCommand;
260
185
  const se_DescribeListenerCommand = async (input, context) => {
261
- const headers = {
262
- "content-type": "application/x-amz-json-1.1",
263
- "x-amz-target": "GlobalAccelerator_V20180706.DescribeListener",
264
- };
186
+ const headers = sharedHeaders("DescribeListener");
265
187
  let body;
266
- body = JSON.stringify(se_DescribeListenerRequest(input, context));
188
+ body = JSON.stringify((0, smithy_client_1._json)(input));
267
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
268
190
  };
269
191
  exports.se_DescribeListenerCommand = se_DescribeListenerCommand;
270
192
  const se_ListAcceleratorsCommand = async (input, context) => {
271
- const headers = {
272
- "content-type": "application/x-amz-json-1.1",
273
- "x-amz-target": "GlobalAccelerator_V20180706.ListAccelerators",
274
- };
193
+ const headers = sharedHeaders("ListAccelerators");
275
194
  let body;
276
- body = JSON.stringify(se_ListAcceleratorsRequest(input, context));
195
+ body = JSON.stringify((0, smithy_client_1._json)(input));
277
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
278
197
  };
279
198
  exports.se_ListAcceleratorsCommand = se_ListAcceleratorsCommand;
280
199
  const se_ListByoipCidrsCommand = async (input, context) => {
281
- const headers = {
282
- "content-type": "application/x-amz-json-1.1",
283
- "x-amz-target": "GlobalAccelerator_V20180706.ListByoipCidrs",
284
- };
200
+ const headers = sharedHeaders("ListByoipCidrs");
285
201
  let body;
286
- body = JSON.stringify(se_ListByoipCidrsRequest(input, context));
202
+ body = JSON.stringify((0, smithy_client_1._json)(input));
287
203
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
204
  };
289
205
  exports.se_ListByoipCidrsCommand = se_ListByoipCidrsCommand;
290
206
  const se_ListCustomRoutingAcceleratorsCommand = async (input, context) => {
291
- const headers = {
292
- "content-type": "application/x-amz-json-1.1",
293
- "x-amz-target": "GlobalAccelerator_V20180706.ListCustomRoutingAccelerators",
294
- };
207
+ const headers = sharedHeaders("ListCustomRoutingAccelerators");
295
208
  let body;
296
- body = JSON.stringify(se_ListCustomRoutingAcceleratorsRequest(input, context));
209
+ body = JSON.stringify((0, smithy_client_1._json)(input));
297
210
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
298
211
  };
299
212
  exports.se_ListCustomRoutingAcceleratorsCommand = se_ListCustomRoutingAcceleratorsCommand;
300
213
  const se_ListCustomRoutingEndpointGroupsCommand = async (input, context) => {
301
- const headers = {
302
- "content-type": "application/x-amz-json-1.1",
303
- "x-amz-target": "GlobalAccelerator_V20180706.ListCustomRoutingEndpointGroups",
304
- };
214
+ const headers = sharedHeaders("ListCustomRoutingEndpointGroups");
305
215
  let body;
306
- body = JSON.stringify(se_ListCustomRoutingEndpointGroupsRequest(input, context));
216
+ body = JSON.stringify((0, smithy_client_1._json)(input));
307
217
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
308
218
  };
309
219
  exports.se_ListCustomRoutingEndpointGroupsCommand = se_ListCustomRoutingEndpointGroupsCommand;
310
220
  const se_ListCustomRoutingListenersCommand = async (input, context) => {
311
- const headers = {
312
- "content-type": "application/x-amz-json-1.1",
313
- "x-amz-target": "GlobalAccelerator_V20180706.ListCustomRoutingListeners",
314
- };
221
+ const headers = sharedHeaders("ListCustomRoutingListeners");
315
222
  let body;
316
- body = JSON.stringify(se_ListCustomRoutingListenersRequest(input, context));
223
+ body = JSON.stringify((0, smithy_client_1._json)(input));
317
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
225
  };
319
226
  exports.se_ListCustomRoutingListenersCommand = se_ListCustomRoutingListenersCommand;
320
227
  const se_ListCustomRoutingPortMappingsCommand = async (input, context) => {
321
- const headers = {
322
- "content-type": "application/x-amz-json-1.1",
323
- "x-amz-target": "GlobalAccelerator_V20180706.ListCustomRoutingPortMappings",
324
- };
228
+ const headers = sharedHeaders("ListCustomRoutingPortMappings");
325
229
  let body;
326
- body = JSON.stringify(se_ListCustomRoutingPortMappingsRequest(input, context));
230
+ body = JSON.stringify((0, smithy_client_1._json)(input));
327
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
232
  };
329
233
  exports.se_ListCustomRoutingPortMappingsCommand = se_ListCustomRoutingPortMappingsCommand;
330
234
  const se_ListCustomRoutingPortMappingsByDestinationCommand = async (input, context) => {
331
- const headers = {
332
- "content-type": "application/x-amz-json-1.1",
333
- "x-amz-target": "GlobalAccelerator_V20180706.ListCustomRoutingPortMappingsByDestination",
334
- };
235
+ const headers = sharedHeaders("ListCustomRoutingPortMappingsByDestination");
335
236
  let body;
336
- body = JSON.stringify(se_ListCustomRoutingPortMappingsByDestinationRequest(input, context));
237
+ body = JSON.stringify((0, smithy_client_1._json)(input));
337
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
338
239
  };
339
240
  exports.se_ListCustomRoutingPortMappingsByDestinationCommand = se_ListCustomRoutingPortMappingsByDestinationCommand;
340
241
  const se_ListEndpointGroupsCommand = async (input, context) => {
341
- const headers = {
342
- "content-type": "application/x-amz-json-1.1",
343
- "x-amz-target": "GlobalAccelerator_V20180706.ListEndpointGroups",
344
- };
242
+ const headers = sharedHeaders("ListEndpointGroups");
345
243
  let body;
346
- body = JSON.stringify(se_ListEndpointGroupsRequest(input, context));
244
+ body = JSON.stringify((0, smithy_client_1._json)(input));
347
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
348
246
  };
349
247
  exports.se_ListEndpointGroupsCommand = se_ListEndpointGroupsCommand;
350
248
  const se_ListListenersCommand = async (input, context) => {
351
- const headers = {
352
- "content-type": "application/x-amz-json-1.1",
353
- "x-amz-target": "GlobalAccelerator_V20180706.ListListeners",
354
- };
249
+ const headers = sharedHeaders("ListListeners");
355
250
  let body;
356
- body = JSON.stringify(se_ListListenersRequest(input, context));
251
+ body = JSON.stringify((0, smithy_client_1._json)(input));
357
252
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
253
  };
359
254
  exports.se_ListListenersCommand = se_ListListenersCommand;
360
255
  const se_ListTagsForResourceCommand = async (input, context) => {
361
- const headers = {
362
- "content-type": "application/x-amz-json-1.1",
363
- "x-amz-target": "GlobalAccelerator_V20180706.ListTagsForResource",
364
- };
256
+ const headers = sharedHeaders("ListTagsForResource");
365
257
  let body;
366
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
258
+ body = JSON.stringify((0, smithy_client_1._json)(input));
367
259
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
368
260
  };
369
261
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
370
262
  const se_ProvisionByoipCidrCommand = async (input, context) => {
371
- const headers = {
372
- "content-type": "application/x-amz-json-1.1",
373
- "x-amz-target": "GlobalAccelerator_V20180706.ProvisionByoipCidr",
374
- };
263
+ const headers = sharedHeaders("ProvisionByoipCidr");
375
264
  let body;
376
- body = JSON.stringify(se_ProvisionByoipCidrRequest(input, context));
265
+ body = JSON.stringify((0, smithy_client_1._json)(input));
377
266
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
378
267
  };
379
268
  exports.se_ProvisionByoipCidrCommand = se_ProvisionByoipCidrCommand;
380
269
  const se_RemoveCustomRoutingEndpointsCommand = async (input, context) => {
381
- const headers = {
382
- "content-type": "application/x-amz-json-1.1",
383
- "x-amz-target": "GlobalAccelerator_V20180706.RemoveCustomRoutingEndpoints",
384
- };
270
+ const headers = sharedHeaders("RemoveCustomRoutingEndpoints");
385
271
  let body;
386
- body = JSON.stringify(se_RemoveCustomRoutingEndpointsRequest(input, context));
272
+ body = JSON.stringify((0, smithy_client_1._json)(input));
387
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
388
274
  };
389
275
  exports.se_RemoveCustomRoutingEndpointsCommand = se_RemoveCustomRoutingEndpointsCommand;
390
276
  const se_RemoveEndpointsCommand = async (input, context) => {
391
- const headers = {
392
- "content-type": "application/x-amz-json-1.1",
393
- "x-amz-target": "GlobalAccelerator_V20180706.RemoveEndpoints",
394
- };
277
+ const headers = sharedHeaders("RemoveEndpoints");
395
278
  let body;
396
- body = JSON.stringify(se_RemoveEndpointsRequest(input, context));
279
+ body = JSON.stringify((0, smithy_client_1._json)(input));
397
280
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
398
281
  };
399
282
  exports.se_RemoveEndpointsCommand = se_RemoveEndpointsCommand;
400
283
  const se_TagResourceCommand = async (input, context) => {
401
- const headers = {
402
- "content-type": "application/x-amz-json-1.1",
403
- "x-amz-target": "GlobalAccelerator_V20180706.TagResource",
404
- };
284
+ const headers = sharedHeaders("TagResource");
405
285
  let body;
406
- body = JSON.stringify(se_TagResourceRequest(input, context));
286
+ body = JSON.stringify((0, smithy_client_1._json)(input));
407
287
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
408
288
  };
409
289
  exports.se_TagResourceCommand = se_TagResourceCommand;
410
290
  const se_UntagResourceCommand = async (input, context) => {
411
- const headers = {
412
- "content-type": "application/x-amz-json-1.1",
413
- "x-amz-target": "GlobalAccelerator_V20180706.UntagResource",
414
- };
291
+ const headers = sharedHeaders("UntagResource");
415
292
  let body;
416
- body = JSON.stringify(se_UntagResourceRequest(input, context));
293
+ body = JSON.stringify((0, smithy_client_1._json)(input));
417
294
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
418
295
  };
419
296
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
420
297
  const se_UpdateAcceleratorCommand = async (input, context) => {
421
- const headers = {
422
- "content-type": "application/x-amz-json-1.1",
423
- "x-amz-target": "GlobalAccelerator_V20180706.UpdateAccelerator",
424
- };
298
+ const headers = sharedHeaders("UpdateAccelerator");
425
299
  let body;
426
- body = JSON.stringify(se_UpdateAcceleratorRequest(input, context));
300
+ body = JSON.stringify((0, smithy_client_1._json)(input));
427
301
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
428
302
  };
429
303
  exports.se_UpdateAcceleratorCommand = se_UpdateAcceleratorCommand;
430
304
  const se_UpdateAcceleratorAttributesCommand = async (input, context) => {
431
- const headers = {
432
- "content-type": "application/x-amz-json-1.1",
433
- "x-amz-target": "GlobalAccelerator_V20180706.UpdateAcceleratorAttributes",
434
- };
305
+ const headers = sharedHeaders("UpdateAcceleratorAttributes");
435
306
  let body;
436
- body = JSON.stringify(se_UpdateAcceleratorAttributesRequest(input, context));
307
+ body = JSON.stringify((0, smithy_client_1._json)(input));
437
308
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
438
309
  };
439
310
  exports.se_UpdateAcceleratorAttributesCommand = se_UpdateAcceleratorAttributesCommand;
440
311
  const se_UpdateCustomRoutingAcceleratorCommand = async (input, context) => {
441
- const headers = {
442
- "content-type": "application/x-amz-json-1.1",
443
- "x-amz-target": "GlobalAccelerator_V20180706.UpdateCustomRoutingAccelerator",
444
- };
312
+ const headers = sharedHeaders("UpdateCustomRoutingAccelerator");
445
313
  let body;
446
- body = JSON.stringify(se_UpdateCustomRoutingAcceleratorRequest(input, context));
314
+ body = JSON.stringify((0, smithy_client_1._json)(input));
447
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
448
316
  };
449
317
  exports.se_UpdateCustomRoutingAcceleratorCommand = se_UpdateCustomRoutingAcceleratorCommand;
450
318
  const se_UpdateCustomRoutingAcceleratorAttributesCommand = async (input, context) => {
451
- const headers = {
452
- "content-type": "application/x-amz-json-1.1",
453
- "x-amz-target": "GlobalAccelerator_V20180706.UpdateCustomRoutingAcceleratorAttributes",
454
- };
319
+ const headers = sharedHeaders("UpdateCustomRoutingAcceleratorAttributes");
455
320
  let body;
456
- body = JSON.stringify(se_UpdateCustomRoutingAcceleratorAttributesRequest(input, context));
321
+ body = JSON.stringify((0, smithy_client_1._json)(input));
457
322
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
458
323
  };
459
324
  exports.se_UpdateCustomRoutingAcceleratorAttributesCommand = se_UpdateCustomRoutingAcceleratorAttributesCommand;
460
325
  const se_UpdateCustomRoutingListenerCommand = async (input, context) => {
461
- const headers = {
462
- "content-type": "application/x-amz-json-1.1",
463
- "x-amz-target": "GlobalAccelerator_V20180706.UpdateCustomRoutingListener",
464
- };
326
+ const headers = sharedHeaders("UpdateCustomRoutingListener");
465
327
  let body;
466
- body = JSON.stringify(se_UpdateCustomRoutingListenerRequest(input, context));
328
+ body = JSON.stringify((0, smithy_client_1._json)(input));
467
329
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
468
330
  };
469
331
  exports.se_UpdateCustomRoutingListenerCommand = se_UpdateCustomRoutingListenerCommand;
470
332
  const se_UpdateEndpointGroupCommand = async (input, context) => {
471
- const headers = {
472
- "content-type": "application/x-amz-json-1.1",
473
- "x-amz-target": "GlobalAccelerator_V20180706.UpdateEndpointGroup",
474
- };
333
+ const headers = sharedHeaders("UpdateEndpointGroup");
475
334
  let body;
476
335
  body = JSON.stringify(se_UpdateEndpointGroupRequest(input, context));
477
336
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
478
337
  };
479
338
  exports.se_UpdateEndpointGroupCommand = se_UpdateEndpointGroupCommand;
480
339
  const se_UpdateListenerCommand = async (input, context) => {
481
- const headers = {
482
- "content-type": "application/x-amz-json-1.1",
483
- "x-amz-target": "GlobalAccelerator_V20180706.UpdateListener",
484
- };
340
+ const headers = sharedHeaders("UpdateListener");
485
341
  let body;
486
- body = JSON.stringify(se_UpdateListenerRequest(input, context));
342
+ body = JSON.stringify((0, smithy_client_1._json)(input));
487
343
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
488
344
  };
489
345
  exports.se_UpdateListenerCommand = se_UpdateListenerCommand;
490
346
  const se_WithdrawByoipCidrCommand = async (input, context) => {
491
- const headers = {
492
- "content-type": "application/x-amz-json-1.1",
493
- "x-amz-target": "GlobalAccelerator_V20180706.WithdrawByoipCidr",
494
- };
347
+ const headers = sharedHeaders("WithdrawByoipCidr");
495
348
  let body;
496
- body = JSON.stringify(se_WithdrawByoipCidrRequest(input, context));
349
+ body = JSON.stringify((0, smithy_client_1._json)(input));
497
350
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
498
351
  };
499
352
  exports.se_WithdrawByoipCidrCommand = se_WithdrawByoipCidrCommand;
@@ -503,12 +356,12 @@ const de_AddCustomRoutingEndpointsCommand = async (output, context) => {
503
356
  }
504
357
  const data = await parseBody(output.body, context);
505
358
  let contents = {};
506
- contents = de_AddCustomRoutingEndpointsResponse(data, context);
359
+ contents = (0, smithy_client_1._json)(data);
507
360
  const response = {
508
361
  $metadata: deserializeMetadata(output),
509
362
  ...contents,
510
363
  };
511
- return Promise.resolve(response);
364
+ return response;
512
365
  };
513
366
  exports.de_AddCustomRoutingEndpointsCommand = de_AddCustomRoutingEndpointsCommand;
514
367
  const de_AddCustomRoutingEndpointsCommandError = async (output, context) => {
@@ -541,10 +394,9 @@ const de_AddCustomRoutingEndpointsCommandError = async (output, context) => {
541
394
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
542
395
  default:
543
396
  const parsedBody = parsedOutput.body;
544
- (0, smithy_client_1.throwDefaultError)({
397
+ return throwDefaultError({
545
398
  output,
546
399
  parsedBody,
547
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
548
400
  errorCode,
549
401
  });
550
402
  }
@@ -555,12 +407,12 @@ const de_AddEndpointsCommand = async (output, context) => {
555
407
  }
556
408
  const data = await parseBody(output.body, context);
557
409
  let contents = {};
558
- contents = de_AddEndpointsResponse(data, context);
410
+ contents = (0, smithy_client_1._json)(data);
559
411
  const response = {
560
412
  $metadata: deserializeMetadata(output),
561
413
  ...contents,
562
414
  };
563
- return Promise.resolve(response);
415
+ return response;
564
416
  };
565
417
  exports.de_AddEndpointsCommand = de_AddEndpointsCommand;
566
418
  const de_AddEndpointsCommandError = async (output, context) => {
@@ -590,10 +442,9 @@ const de_AddEndpointsCommandError = async (output, context) => {
590
442
  throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
591
443
  default:
592
444
  const parsedBody = parsedOutput.body;
593
- (0, smithy_client_1.throwDefaultError)({
445
+ return throwDefaultError({
594
446
  output,
595
447
  parsedBody,
596
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
597
448
  errorCode,
598
449
  });
599
450
  }
@@ -609,7 +460,7 @@ const de_AdvertiseByoipCidrCommand = async (output, context) => {
609
460
  $metadata: deserializeMetadata(output),
610
461
  ...contents,
611
462
  };
612
- return Promise.resolve(response);
463
+ return response;
613
464
  };
614
465
  exports.de_AdvertiseByoipCidrCommand = de_AdvertiseByoipCidrCommand;
615
466
  const de_AdvertiseByoipCidrCommandError = async (output, context) => {
@@ -636,10 +487,9 @@ const de_AdvertiseByoipCidrCommandError = async (output, context) => {
636
487
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
637
488
  default:
638
489
  const parsedBody = parsedOutput.body;
639
- (0, smithy_client_1.throwDefaultError)({
490
+ return throwDefaultError({
640
491
  output,
641
492
  parsedBody,
642
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
643
493
  errorCode,
644
494
  });
645
495
  }
@@ -652,7 +502,7 @@ const de_AllowCustomRoutingTrafficCommand = async (output, context) => {
652
502
  const response = {
653
503
  $metadata: deserializeMetadata(output),
654
504
  };
655
- return Promise.resolve(response);
505
+ return response;
656
506
  };
657
507
  exports.de_AllowCustomRoutingTrafficCommand = de_AllowCustomRoutingTrafficCommand;
658
508
  const de_AllowCustomRoutingTrafficCommandError = async (output, context) => {
@@ -673,10 +523,9 @@ const de_AllowCustomRoutingTrafficCommandError = async (output, context) => {
673
523
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
674
524
  default:
675
525
  const parsedBody = parsedOutput.body;
676
- (0, smithy_client_1.throwDefaultError)({
526
+ return throwDefaultError({
677
527
  output,
678
528
  parsedBody,
679
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
680
529
  errorCode,
681
530
  });
682
531
  }
@@ -692,7 +541,7 @@ const de_CreateAcceleratorCommand = async (output, context) => {
692
541
  $metadata: deserializeMetadata(output),
693
542
  ...contents,
694
543
  };
695
- return Promise.resolve(response);
544
+ return response;
696
545
  };
697
546
  exports.de_CreateAcceleratorCommand = de_CreateAcceleratorCommand;
698
547
  const de_CreateAcceleratorCommandError = async (output, context) => {
@@ -713,10 +562,9 @@ const de_CreateAcceleratorCommandError = async (output, context) => {
713
562
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
714
563
  default:
715
564
  const parsedBody = parsedOutput.body;
716
- (0, smithy_client_1.throwDefaultError)({
565
+ return throwDefaultError({
717
566
  output,
718
567
  parsedBody,
719
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
720
568
  errorCode,
721
569
  });
722
570
  }
@@ -732,7 +580,7 @@ const de_CreateCustomRoutingAcceleratorCommand = async (output, context) => {
732
580
  $metadata: deserializeMetadata(output),
733
581
  ...contents,
734
582
  };
735
- return Promise.resolve(response);
583
+ return response;
736
584
  };
737
585
  exports.de_CreateCustomRoutingAcceleratorCommand = de_CreateCustomRoutingAcceleratorCommand;
738
586
  const de_CreateCustomRoutingAcceleratorCommandError = async (output, context) => {
@@ -756,10 +604,9 @@ const de_CreateCustomRoutingAcceleratorCommandError = async (output, context) =>
756
604
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
757
605
  default:
758
606
  const parsedBody = parsedOutput.body;
759
- (0, smithy_client_1.throwDefaultError)({
607
+ return throwDefaultError({
760
608
  output,
761
609
  parsedBody,
762
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
763
610
  errorCode,
764
611
  });
765
612
  }
@@ -770,12 +617,12 @@ const de_CreateCustomRoutingEndpointGroupCommand = async (output, context) => {
770
617
  }
771
618
  const data = await parseBody(output.body, context);
772
619
  let contents = {};
773
- contents = de_CreateCustomRoutingEndpointGroupResponse(data, context);
620
+ contents = (0, smithy_client_1._json)(data);
774
621
  const response = {
775
622
  $metadata: deserializeMetadata(output),
776
623
  ...contents,
777
624
  };
778
- return Promise.resolve(response);
625
+ return response;
779
626
  };
780
627
  exports.de_CreateCustomRoutingEndpointGroupCommand = de_CreateCustomRoutingEndpointGroupCommand;
781
628
  const de_CreateCustomRoutingEndpointGroupCommandError = async (output, context) => {
@@ -811,10 +658,9 @@ const de_CreateCustomRoutingEndpointGroupCommandError = async (output, context)
811
658
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
812
659
  default:
813
660
  const parsedBody = parsedOutput.body;
814
- (0, smithy_client_1.throwDefaultError)({
661
+ return throwDefaultError({
815
662
  output,
816
663
  parsedBody,
817
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
818
664
  errorCode,
819
665
  });
820
666
  }
@@ -825,12 +671,12 @@ const de_CreateCustomRoutingListenerCommand = async (output, context) => {
825
671
  }
826
672
  const data = await parseBody(output.body, context);
827
673
  let contents = {};
828
- contents = de_CreateCustomRoutingListenerResponse(data, context);
674
+ contents = (0, smithy_client_1._json)(data);
829
675
  const response = {
830
676
  $metadata: deserializeMetadata(output),
831
677
  ...contents,
832
678
  };
833
- return Promise.resolve(response);
679
+ return response;
834
680
  };
835
681
  exports.de_CreateCustomRoutingListenerCommand = de_CreateCustomRoutingListenerCommand;
836
682
  const de_CreateCustomRoutingListenerCommandError = async (output, context) => {
@@ -857,10 +703,9 @@ const de_CreateCustomRoutingListenerCommandError = async (output, context) => {
857
703
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
858
704
  default:
859
705
  const parsedBody = parsedOutput.body;
860
- (0, smithy_client_1.throwDefaultError)({
706
+ return throwDefaultError({
861
707
  output,
862
708
  parsedBody,
863
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
864
709
  errorCode,
865
710
  });
866
711
  }
@@ -876,7 +721,7 @@ const de_CreateEndpointGroupCommand = async (output, context) => {
876
721
  $metadata: deserializeMetadata(output),
877
722
  ...contents,
878
723
  };
879
- return Promise.resolve(response);
724
+ return response;
880
725
  };
881
726
  exports.de_CreateEndpointGroupCommand = de_CreateEndpointGroupCommand;
882
727
  const de_CreateEndpointGroupCommandError = async (output, context) => {
@@ -909,10 +754,9 @@ const de_CreateEndpointGroupCommandError = async (output, context) => {
909
754
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
910
755
  default:
911
756
  const parsedBody = parsedOutput.body;
912
- (0, smithy_client_1.throwDefaultError)({
757
+ return throwDefaultError({
913
758
  output,
914
759
  parsedBody,
915
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
916
760
  errorCode,
917
761
  });
918
762
  }
@@ -923,12 +767,12 @@ const de_CreateListenerCommand = async (output, context) => {
923
767
  }
924
768
  const data = await parseBody(output.body, context);
925
769
  let contents = {};
926
- contents = de_CreateListenerResponse(data, context);
770
+ contents = (0, smithy_client_1._json)(data);
927
771
  const response = {
928
772
  $metadata: deserializeMetadata(output),
929
773
  ...contents,
930
774
  };
931
- return Promise.resolve(response);
775
+ return response;
932
776
  };
933
777
  exports.de_CreateListenerCommand = de_CreateListenerCommand;
934
778
  const de_CreateListenerCommandError = async (output, context) => {
@@ -955,10 +799,9 @@ const de_CreateListenerCommandError = async (output, context) => {
955
799
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
956
800
  default:
957
801
  const parsedBody = parsedOutput.body;
958
- (0, smithy_client_1.throwDefaultError)({
802
+ return throwDefaultError({
959
803
  output,
960
804
  parsedBody,
961
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
962
805
  errorCode,
963
806
  });
964
807
  }
@@ -971,7 +814,7 @@ const de_DeleteAcceleratorCommand = async (output, context) => {
971
814
  const response = {
972
815
  $metadata: deserializeMetadata(output),
973
816
  };
974
- return Promise.resolve(response);
817
+ return response;
975
818
  };
976
819
  exports.de_DeleteAcceleratorCommand = de_DeleteAcceleratorCommand;
977
820
  const de_DeleteAcceleratorCommandError = async (output, context) => {
@@ -998,10 +841,9 @@ const de_DeleteAcceleratorCommandError = async (output, context) => {
998
841
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
999
842
  default:
1000
843
  const parsedBody = parsedOutput.body;
1001
- (0, smithy_client_1.throwDefaultError)({
844
+ return throwDefaultError({
1002
845
  output,
1003
846
  parsedBody,
1004
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1005
847
  errorCode,
1006
848
  });
1007
849
  }
@@ -1014,7 +856,7 @@ const de_DeleteCustomRoutingAcceleratorCommand = async (output, context) => {
1014
856
  const response = {
1015
857
  $metadata: deserializeMetadata(output),
1016
858
  };
1017
- return Promise.resolve(response);
859
+ return response;
1018
860
  };
1019
861
  exports.de_DeleteCustomRoutingAcceleratorCommand = de_DeleteCustomRoutingAcceleratorCommand;
1020
862
  const de_DeleteCustomRoutingAcceleratorCommandError = async (output, context) => {
@@ -1041,10 +883,9 @@ const de_DeleteCustomRoutingAcceleratorCommandError = async (output, context) =>
1041
883
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1042
884
  default:
1043
885
  const parsedBody = parsedOutput.body;
1044
- (0, smithy_client_1.throwDefaultError)({
886
+ return throwDefaultError({
1045
887
  output,
1046
888
  parsedBody,
1047
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1048
889
  errorCode,
1049
890
  });
1050
891
  }
@@ -1057,7 +898,7 @@ const de_DeleteCustomRoutingEndpointGroupCommand = async (output, context) => {
1057
898
  const response = {
1058
899
  $metadata: deserializeMetadata(output),
1059
900
  };
1060
- return Promise.resolve(response);
901
+ return response;
1061
902
  };
1062
903
  exports.de_DeleteCustomRoutingEndpointGroupCommand = de_DeleteCustomRoutingEndpointGroupCommand;
1063
904
  const de_DeleteCustomRoutingEndpointGroupCommandError = async (output, context) => {
@@ -1078,10 +919,9 @@ const de_DeleteCustomRoutingEndpointGroupCommandError = async (output, context)
1078
919
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1079
920
  default:
1080
921
  const parsedBody = parsedOutput.body;
1081
- (0, smithy_client_1.throwDefaultError)({
922
+ return throwDefaultError({
1082
923
  output,
1083
924
  parsedBody,
1084
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1085
925
  errorCode,
1086
926
  });
1087
927
  }
@@ -1094,7 +934,7 @@ const de_DeleteCustomRoutingListenerCommand = async (output, context) => {
1094
934
  const response = {
1095
935
  $metadata: deserializeMetadata(output),
1096
936
  };
1097
- return Promise.resolve(response);
937
+ return response;
1098
938
  };
1099
939
  exports.de_DeleteCustomRoutingListenerCommand = de_DeleteCustomRoutingListenerCommand;
1100
940
  const de_DeleteCustomRoutingListenerCommandError = async (output, context) => {
@@ -1118,10 +958,9 @@ const de_DeleteCustomRoutingListenerCommandError = async (output, context) => {
1118
958
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
1119
959
  default:
1120
960
  const parsedBody = parsedOutput.body;
1121
- (0, smithy_client_1.throwDefaultError)({
961
+ return throwDefaultError({
1122
962
  output,
1123
963
  parsedBody,
1124
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1125
964
  errorCode,
1126
965
  });
1127
966
  }
@@ -1134,7 +973,7 @@ const de_DeleteEndpointGroupCommand = async (output, context) => {
1134
973
  const response = {
1135
974
  $metadata: deserializeMetadata(output),
1136
975
  };
1137
- return Promise.resolve(response);
976
+ return response;
1138
977
  };
1139
978
  exports.de_DeleteEndpointGroupCommand = de_DeleteEndpointGroupCommand;
1140
979
  const de_DeleteEndpointGroupCommandError = async (output, context) => {
@@ -1155,10 +994,9 @@ const de_DeleteEndpointGroupCommandError = async (output, context) => {
1155
994
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1156
995
  default:
1157
996
  const parsedBody = parsedOutput.body;
1158
- (0, smithy_client_1.throwDefaultError)({
997
+ return throwDefaultError({
1159
998
  output,
1160
999
  parsedBody,
1161
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1162
1000
  errorCode,
1163
1001
  });
1164
1002
  }
@@ -1171,7 +1009,7 @@ const de_DeleteListenerCommand = async (output, context) => {
1171
1009
  const response = {
1172
1010
  $metadata: deserializeMetadata(output),
1173
1011
  };
1174
- return Promise.resolve(response);
1012
+ return response;
1175
1013
  };
1176
1014
  exports.de_DeleteListenerCommand = de_DeleteListenerCommand;
1177
1015
  const de_DeleteListenerCommandError = async (output, context) => {
@@ -1195,10 +1033,9 @@ const de_DeleteListenerCommandError = async (output, context) => {
1195
1033
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
1196
1034
  default:
1197
1035
  const parsedBody = parsedOutput.body;
1198
- (0, smithy_client_1.throwDefaultError)({
1036
+ return throwDefaultError({
1199
1037
  output,
1200
1038
  parsedBody,
1201
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1202
1039
  errorCode,
1203
1040
  });
1204
1041
  }
@@ -1211,7 +1048,7 @@ const de_DenyCustomRoutingTrafficCommand = async (output, context) => {
1211
1048
  const response = {
1212
1049
  $metadata: deserializeMetadata(output),
1213
1050
  };
1214
- return Promise.resolve(response);
1051
+ return response;
1215
1052
  };
1216
1053
  exports.de_DenyCustomRoutingTrafficCommand = de_DenyCustomRoutingTrafficCommand;
1217
1054
  const de_DenyCustomRoutingTrafficCommandError = async (output, context) => {
@@ -1232,10 +1069,9 @@ const de_DenyCustomRoutingTrafficCommandError = async (output, context) => {
1232
1069
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1233
1070
  default:
1234
1071
  const parsedBody = parsedOutput.body;
1235
- (0, smithy_client_1.throwDefaultError)({
1072
+ return throwDefaultError({
1236
1073
  output,
1237
1074
  parsedBody,
1238
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1239
1075
  errorCode,
1240
1076
  });
1241
1077
  }
@@ -1251,7 +1087,7 @@ const de_DeprovisionByoipCidrCommand = async (output, context) => {
1251
1087
  $metadata: deserializeMetadata(output),
1252
1088
  ...contents,
1253
1089
  };
1254
- return Promise.resolve(response);
1090
+ return response;
1255
1091
  };
1256
1092
  exports.de_DeprovisionByoipCidrCommand = de_DeprovisionByoipCidrCommand;
1257
1093
  const de_DeprovisionByoipCidrCommandError = async (output, context) => {
@@ -1278,10 +1114,9 @@ const de_DeprovisionByoipCidrCommandError = async (output, context) => {
1278
1114
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1279
1115
  default:
1280
1116
  const parsedBody = parsedOutput.body;
1281
- (0, smithy_client_1.throwDefaultError)({
1117
+ return throwDefaultError({
1282
1118
  output,
1283
1119
  parsedBody,
1284
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1285
1120
  errorCode,
1286
1121
  });
1287
1122
  }
@@ -1297,7 +1132,7 @@ const de_DescribeAcceleratorCommand = async (output, context) => {
1297
1132
  $metadata: deserializeMetadata(output),
1298
1133
  ...contents,
1299
1134
  };
1300
- return Promise.resolve(response);
1135
+ return response;
1301
1136
  };
1302
1137
  exports.de_DescribeAcceleratorCommand = de_DescribeAcceleratorCommand;
1303
1138
  const de_DescribeAcceleratorCommandError = async (output, context) => {
@@ -1318,10 +1153,9 @@ const de_DescribeAcceleratorCommandError = async (output, context) => {
1318
1153
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1319
1154
  default:
1320
1155
  const parsedBody = parsedOutput.body;
1321
- (0, smithy_client_1.throwDefaultError)({
1156
+ return throwDefaultError({
1322
1157
  output,
1323
1158
  parsedBody,
1324
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1325
1159
  errorCode,
1326
1160
  });
1327
1161
  }
@@ -1332,12 +1166,12 @@ const de_DescribeAcceleratorAttributesCommand = async (output, context) => {
1332
1166
  }
1333
1167
  const data = await parseBody(output.body, context);
1334
1168
  let contents = {};
1335
- contents = de_DescribeAcceleratorAttributesResponse(data, context);
1169
+ contents = (0, smithy_client_1._json)(data);
1336
1170
  const response = {
1337
1171
  $metadata: deserializeMetadata(output),
1338
1172
  ...contents,
1339
1173
  };
1340
- return Promise.resolve(response);
1174
+ return response;
1341
1175
  };
1342
1176
  exports.de_DescribeAcceleratorAttributesCommand = de_DescribeAcceleratorAttributesCommand;
1343
1177
  const de_DescribeAcceleratorAttributesCommandError = async (output, context) => {
@@ -1358,10 +1192,9 @@ const de_DescribeAcceleratorAttributesCommandError = async (output, context) =>
1358
1192
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1359
1193
  default:
1360
1194
  const parsedBody = parsedOutput.body;
1361
- (0, smithy_client_1.throwDefaultError)({
1195
+ return throwDefaultError({
1362
1196
  output,
1363
1197
  parsedBody,
1364
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1365
1198
  errorCode,
1366
1199
  });
1367
1200
  }
@@ -1377,7 +1210,7 @@ const de_DescribeCustomRoutingAcceleratorCommand = async (output, context) => {
1377
1210
  $metadata: deserializeMetadata(output),
1378
1211
  ...contents,
1379
1212
  };
1380
- return Promise.resolve(response);
1213
+ return response;
1381
1214
  };
1382
1215
  exports.de_DescribeCustomRoutingAcceleratorCommand = de_DescribeCustomRoutingAcceleratorCommand;
1383
1216
  const de_DescribeCustomRoutingAcceleratorCommandError = async (output, context) => {
@@ -1398,10 +1231,9 @@ const de_DescribeCustomRoutingAcceleratorCommandError = async (output, context)
1398
1231
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1399
1232
  default:
1400
1233
  const parsedBody = parsedOutput.body;
1401
- (0, smithy_client_1.throwDefaultError)({
1234
+ return throwDefaultError({
1402
1235
  output,
1403
1236
  parsedBody,
1404
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1405
1237
  errorCode,
1406
1238
  });
1407
1239
  }
@@ -1412,12 +1244,12 @@ const de_DescribeCustomRoutingAcceleratorAttributesCommand = async (output, cont
1412
1244
  }
1413
1245
  const data = await parseBody(output.body, context);
1414
1246
  let contents = {};
1415
- contents = de_DescribeCustomRoutingAcceleratorAttributesResponse(data, context);
1247
+ contents = (0, smithy_client_1._json)(data);
1416
1248
  const response = {
1417
1249
  $metadata: deserializeMetadata(output),
1418
1250
  ...contents,
1419
1251
  };
1420
- return Promise.resolve(response);
1252
+ return response;
1421
1253
  };
1422
1254
  exports.de_DescribeCustomRoutingAcceleratorAttributesCommand = de_DescribeCustomRoutingAcceleratorAttributesCommand;
1423
1255
  const de_DescribeCustomRoutingAcceleratorAttributesCommandError = async (output, context) => {
@@ -1438,10 +1270,9 @@ const de_DescribeCustomRoutingAcceleratorAttributesCommandError = async (output,
1438
1270
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1439
1271
  default:
1440
1272
  const parsedBody = parsedOutput.body;
1441
- (0, smithy_client_1.throwDefaultError)({
1273
+ return throwDefaultError({
1442
1274
  output,
1443
1275
  parsedBody,
1444
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1445
1276
  errorCode,
1446
1277
  });
1447
1278
  }
@@ -1452,12 +1283,12 @@ const de_DescribeCustomRoutingEndpointGroupCommand = async (output, context) =>
1452
1283
  }
1453
1284
  const data = await parseBody(output.body, context);
1454
1285
  let contents = {};
1455
- contents = de_DescribeCustomRoutingEndpointGroupResponse(data, context);
1286
+ contents = (0, smithy_client_1._json)(data);
1456
1287
  const response = {
1457
1288
  $metadata: deserializeMetadata(output),
1458
1289
  ...contents,
1459
1290
  };
1460
- return Promise.resolve(response);
1291
+ return response;
1461
1292
  };
1462
1293
  exports.de_DescribeCustomRoutingEndpointGroupCommand = de_DescribeCustomRoutingEndpointGroupCommand;
1463
1294
  const de_DescribeCustomRoutingEndpointGroupCommandError = async (output, context) => {
@@ -1478,10 +1309,9 @@ const de_DescribeCustomRoutingEndpointGroupCommandError = async (output, context
1478
1309
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1479
1310
  default:
1480
1311
  const parsedBody = parsedOutput.body;
1481
- (0, smithy_client_1.throwDefaultError)({
1312
+ return throwDefaultError({
1482
1313
  output,
1483
1314
  parsedBody,
1484
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1485
1315
  errorCode,
1486
1316
  });
1487
1317
  }
@@ -1492,12 +1322,12 @@ const de_DescribeCustomRoutingListenerCommand = async (output, context) => {
1492
1322
  }
1493
1323
  const data = await parseBody(output.body, context);
1494
1324
  let contents = {};
1495
- contents = de_DescribeCustomRoutingListenerResponse(data, context);
1325
+ contents = (0, smithy_client_1._json)(data);
1496
1326
  const response = {
1497
1327
  $metadata: deserializeMetadata(output),
1498
1328
  ...contents,
1499
1329
  };
1500
- return Promise.resolve(response);
1330
+ return response;
1501
1331
  };
1502
1332
  exports.de_DescribeCustomRoutingListenerCommand = de_DescribeCustomRoutingListenerCommand;
1503
1333
  const de_DescribeCustomRoutingListenerCommandError = async (output, context) => {
@@ -1518,10 +1348,9 @@ const de_DescribeCustomRoutingListenerCommandError = async (output, context) =>
1518
1348
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
1519
1349
  default:
1520
1350
  const parsedBody = parsedOutput.body;
1521
- (0, smithy_client_1.throwDefaultError)({
1351
+ return throwDefaultError({
1522
1352
  output,
1523
1353
  parsedBody,
1524
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1525
1354
  errorCode,
1526
1355
  });
1527
1356
  }
@@ -1537,7 +1366,7 @@ const de_DescribeEndpointGroupCommand = async (output, context) => {
1537
1366
  $metadata: deserializeMetadata(output),
1538
1367
  ...contents,
1539
1368
  };
1540
- return Promise.resolve(response);
1369
+ return response;
1541
1370
  };
1542
1371
  exports.de_DescribeEndpointGroupCommand = de_DescribeEndpointGroupCommand;
1543
1372
  const de_DescribeEndpointGroupCommandError = async (output, context) => {
@@ -1558,10 +1387,9 @@ const de_DescribeEndpointGroupCommandError = async (output, context) => {
1558
1387
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1559
1388
  default:
1560
1389
  const parsedBody = parsedOutput.body;
1561
- (0, smithy_client_1.throwDefaultError)({
1390
+ return throwDefaultError({
1562
1391
  output,
1563
1392
  parsedBody,
1564
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1565
1393
  errorCode,
1566
1394
  });
1567
1395
  }
@@ -1572,12 +1400,12 @@ const de_DescribeListenerCommand = async (output, context) => {
1572
1400
  }
1573
1401
  const data = await parseBody(output.body, context);
1574
1402
  let contents = {};
1575
- contents = de_DescribeListenerResponse(data, context);
1403
+ contents = (0, smithy_client_1._json)(data);
1576
1404
  const response = {
1577
1405
  $metadata: deserializeMetadata(output),
1578
1406
  ...contents,
1579
1407
  };
1580
- return Promise.resolve(response);
1408
+ return response;
1581
1409
  };
1582
1410
  exports.de_DescribeListenerCommand = de_DescribeListenerCommand;
1583
1411
  const de_DescribeListenerCommandError = async (output, context) => {
@@ -1598,10 +1426,9 @@ const de_DescribeListenerCommandError = async (output, context) => {
1598
1426
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
1599
1427
  default:
1600
1428
  const parsedBody = parsedOutput.body;
1601
- (0, smithy_client_1.throwDefaultError)({
1429
+ return throwDefaultError({
1602
1430
  output,
1603
1431
  parsedBody,
1604
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1605
1432
  errorCode,
1606
1433
  });
1607
1434
  }
@@ -1617,7 +1444,7 @@ const de_ListAcceleratorsCommand = async (output, context) => {
1617
1444
  $metadata: deserializeMetadata(output),
1618
1445
  ...contents,
1619
1446
  };
1620
- return Promise.resolve(response);
1447
+ return response;
1621
1448
  };
1622
1449
  exports.de_ListAcceleratorsCommand = de_ListAcceleratorsCommand;
1623
1450
  const de_ListAcceleratorsCommandError = async (output, context) => {
@@ -1638,10 +1465,9 @@ const de_ListAcceleratorsCommandError = async (output, context) => {
1638
1465
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1639
1466
  default:
1640
1467
  const parsedBody = parsedOutput.body;
1641
- (0, smithy_client_1.throwDefaultError)({
1468
+ return throwDefaultError({
1642
1469
  output,
1643
1470
  parsedBody,
1644
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1645
1471
  errorCode,
1646
1472
  });
1647
1473
  }
@@ -1657,7 +1483,7 @@ const de_ListByoipCidrsCommand = async (output, context) => {
1657
1483
  $metadata: deserializeMetadata(output),
1658
1484
  ...contents,
1659
1485
  };
1660
- return Promise.resolve(response);
1486
+ return response;
1661
1487
  };
1662
1488
  exports.de_ListByoipCidrsCommand = de_ListByoipCidrsCommand;
1663
1489
  const de_ListByoipCidrsCommandError = async (output, context) => {
@@ -1681,10 +1507,9 @@ const de_ListByoipCidrsCommandError = async (output, context) => {
1681
1507
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1682
1508
  default:
1683
1509
  const parsedBody = parsedOutput.body;
1684
- (0, smithy_client_1.throwDefaultError)({
1510
+ return throwDefaultError({
1685
1511
  output,
1686
1512
  parsedBody,
1687
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1688
1513
  errorCode,
1689
1514
  });
1690
1515
  }
@@ -1700,7 +1525,7 @@ const de_ListCustomRoutingAcceleratorsCommand = async (output, context) => {
1700
1525
  $metadata: deserializeMetadata(output),
1701
1526
  ...contents,
1702
1527
  };
1703
- return Promise.resolve(response);
1528
+ return response;
1704
1529
  };
1705
1530
  exports.de_ListCustomRoutingAcceleratorsCommand = de_ListCustomRoutingAcceleratorsCommand;
1706
1531
  const de_ListCustomRoutingAcceleratorsCommandError = async (output, context) => {
@@ -1721,10 +1546,9 @@ const de_ListCustomRoutingAcceleratorsCommandError = async (output, context) =>
1721
1546
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1722
1547
  default:
1723
1548
  const parsedBody = parsedOutput.body;
1724
- (0, smithy_client_1.throwDefaultError)({
1549
+ return throwDefaultError({
1725
1550
  output,
1726
1551
  parsedBody,
1727
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1728
1552
  errorCode,
1729
1553
  });
1730
1554
  }
@@ -1735,12 +1559,12 @@ const de_ListCustomRoutingEndpointGroupsCommand = async (output, context) => {
1735
1559
  }
1736
1560
  const data = await parseBody(output.body, context);
1737
1561
  let contents = {};
1738
- contents = de_ListCustomRoutingEndpointGroupsResponse(data, context);
1562
+ contents = (0, smithy_client_1._json)(data);
1739
1563
  const response = {
1740
1564
  $metadata: deserializeMetadata(output),
1741
1565
  ...contents,
1742
1566
  };
1743
- return Promise.resolve(response);
1567
+ return response;
1744
1568
  };
1745
1569
  exports.de_ListCustomRoutingEndpointGroupsCommand = de_ListCustomRoutingEndpointGroupsCommand;
1746
1570
  const de_ListCustomRoutingEndpointGroupsCommandError = async (output, context) => {
@@ -1764,10 +1588,9 @@ const de_ListCustomRoutingEndpointGroupsCommandError = async (output, context) =
1764
1588
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
1765
1589
  default:
1766
1590
  const parsedBody = parsedOutput.body;
1767
- (0, smithy_client_1.throwDefaultError)({
1591
+ return throwDefaultError({
1768
1592
  output,
1769
1593
  parsedBody,
1770
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1771
1594
  errorCode,
1772
1595
  });
1773
1596
  }
@@ -1778,12 +1601,12 @@ const de_ListCustomRoutingListenersCommand = async (output, context) => {
1778
1601
  }
1779
1602
  const data = await parseBody(output.body, context);
1780
1603
  let contents = {};
1781
- contents = de_ListCustomRoutingListenersResponse(data, context);
1604
+ contents = (0, smithy_client_1._json)(data);
1782
1605
  const response = {
1783
1606
  $metadata: deserializeMetadata(output),
1784
1607
  ...contents,
1785
1608
  };
1786
- return Promise.resolve(response);
1609
+ return response;
1787
1610
  };
1788
1611
  exports.de_ListCustomRoutingListenersCommand = de_ListCustomRoutingListenersCommand;
1789
1612
  const de_ListCustomRoutingListenersCommandError = async (output, context) => {
@@ -1807,10 +1630,9 @@ const de_ListCustomRoutingListenersCommandError = async (output, context) => {
1807
1630
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1808
1631
  default:
1809
1632
  const parsedBody = parsedOutput.body;
1810
- (0, smithy_client_1.throwDefaultError)({
1633
+ return throwDefaultError({
1811
1634
  output,
1812
1635
  parsedBody,
1813
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1814
1636
  errorCode,
1815
1637
  });
1816
1638
  }
@@ -1821,12 +1643,12 @@ const de_ListCustomRoutingPortMappingsCommand = async (output, context) => {
1821
1643
  }
1822
1644
  const data = await parseBody(output.body, context);
1823
1645
  let contents = {};
1824
- contents = de_ListCustomRoutingPortMappingsResponse(data, context);
1646
+ contents = (0, smithy_client_1._json)(data);
1825
1647
  const response = {
1826
1648
  $metadata: deserializeMetadata(output),
1827
1649
  ...contents,
1828
1650
  };
1829
- return Promise.resolve(response);
1651
+ return response;
1830
1652
  };
1831
1653
  exports.de_ListCustomRoutingPortMappingsCommand = de_ListCustomRoutingPortMappingsCommand;
1832
1654
  const de_ListCustomRoutingPortMappingsCommandError = async (output, context) => {
@@ -1853,10 +1675,9 @@ const de_ListCustomRoutingPortMappingsCommandError = async (output, context) =>
1853
1675
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1854
1676
  default:
1855
1677
  const parsedBody = parsedOutput.body;
1856
- (0, smithy_client_1.throwDefaultError)({
1678
+ return throwDefaultError({
1857
1679
  output,
1858
1680
  parsedBody,
1859
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1860
1681
  errorCode,
1861
1682
  });
1862
1683
  }
@@ -1867,12 +1688,12 @@ const de_ListCustomRoutingPortMappingsByDestinationCommand = async (output, cont
1867
1688
  }
1868
1689
  const data = await parseBody(output.body, context);
1869
1690
  let contents = {};
1870
- contents = de_ListCustomRoutingPortMappingsByDestinationResponse(data, context);
1691
+ contents = (0, smithy_client_1._json)(data);
1871
1692
  const response = {
1872
1693
  $metadata: deserializeMetadata(output),
1873
1694
  ...contents,
1874
1695
  };
1875
- return Promise.resolve(response);
1696
+ return response;
1876
1697
  };
1877
1698
  exports.de_ListCustomRoutingPortMappingsByDestinationCommand = de_ListCustomRoutingPortMappingsByDestinationCommand;
1878
1699
  const de_ListCustomRoutingPortMappingsByDestinationCommandError = async (output, context) => {
@@ -1896,10 +1717,9 @@ const de_ListCustomRoutingPortMappingsByDestinationCommandError = async (output,
1896
1717
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1897
1718
  default:
1898
1719
  const parsedBody = parsedOutput.body;
1899
- (0, smithy_client_1.throwDefaultError)({
1720
+ return throwDefaultError({
1900
1721
  output,
1901
1722
  parsedBody,
1902
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1903
1723
  errorCode,
1904
1724
  });
1905
1725
  }
@@ -1915,7 +1735,7 @@ const de_ListEndpointGroupsCommand = async (output, context) => {
1915
1735
  $metadata: deserializeMetadata(output),
1916
1736
  ...contents,
1917
1737
  };
1918
- return Promise.resolve(response);
1738
+ return response;
1919
1739
  };
1920
1740
  exports.de_ListEndpointGroupsCommand = de_ListEndpointGroupsCommand;
1921
1741
  const de_ListEndpointGroupsCommandError = async (output, context) => {
@@ -1939,10 +1759,9 @@ const de_ListEndpointGroupsCommandError = async (output, context) => {
1939
1759
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
1940
1760
  default:
1941
1761
  const parsedBody = parsedOutput.body;
1942
- (0, smithy_client_1.throwDefaultError)({
1762
+ return throwDefaultError({
1943
1763
  output,
1944
1764
  parsedBody,
1945
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1946
1765
  errorCode,
1947
1766
  });
1948
1767
  }
@@ -1953,12 +1772,12 @@ const de_ListListenersCommand = async (output, context) => {
1953
1772
  }
1954
1773
  const data = await parseBody(output.body, context);
1955
1774
  let contents = {};
1956
- contents = de_ListListenersResponse(data, context);
1775
+ contents = (0, smithy_client_1._json)(data);
1957
1776
  const response = {
1958
1777
  $metadata: deserializeMetadata(output),
1959
1778
  ...contents,
1960
1779
  };
1961
- return Promise.resolve(response);
1780
+ return response;
1962
1781
  };
1963
1782
  exports.de_ListListenersCommand = de_ListListenersCommand;
1964
1783
  const de_ListListenersCommandError = async (output, context) => {
@@ -1982,10 +1801,9 @@ const de_ListListenersCommandError = async (output, context) => {
1982
1801
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1983
1802
  default:
1984
1803
  const parsedBody = parsedOutput.body;
1985
- (0, smithy_client_1.throwDefaultError)({
1804
+ return throwDefaultError({
1986
1805
  output,
1987
1806
  parsedBody,
1988
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
1989
1807
  errorCode,
1990
1808
  });
1991
1809
  }
@@ -1996,12 +1814,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1996
1814
  }
1997
1815
  const data = await parseBody(output.body, context);
1998
1816
  let contents = {};
1999
- contents = de_ListTagsForResourceResponse(data, context);
1817
+ contents = (0, smithy_client_1._json)(data);
2000
1818
  const response = {
2001
1819
  $metadata: deserializeMetadata(output),
2002
1820
  ...contents,
2003
1821
  };
2004
- return Promise.resolve(response);
1822
+ return response;
2005
1823
  };
2006
1824
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
2007
1825
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -2022,10 +1840,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2022
1840
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2023
1841
  default:
2024
1842
  const parsedBody = parsedOutput.body;
2025
- (0, smithy_client_1.throwDefaultError)({
1843
+ return throwDefaultError({
2026
1844
  output,
2027
1845
  parsedBody,
2028
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
2029
1846
  errorCode,
2030
1847
  });
2031
1848
  }
@@ -2041,7 +1858,7 @@ const de_ProvisionByoipCidrCommand = async (output, context) => {
2041
1858
  $metadata: deserializeMetadata(output),
2042
1859
  ...contents,
2043
1860
  };
2044
- return Promise.resolve(response);
1861
+ return response;
2045
1862
  };
2046
1863
  exports.de_ProvisionByoipCidrCommand = de_ProvisionByoipCidrCommand;
2047
1864
  const de_ProvisionByoipCidrCommandError = async (output, context) => {
@@ -2068,10 +1885,9 @@ const de_ProvisionByoipCidrCommandError = async (output, context) => {
2068
1885
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
2069
1886
  default:
2070
1887
  const parsedBody = parsedOutput.body;
2071
- (0, smithy_client_1.throwDefaultError)({
1888
+ return throwDefaultError({
2072
1889
  output,
2073
1890
  parsedBody,
2074
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
2075
1891
  errorCode,
2076
1892
  });
2077
1893
  }
@@ -2084,7 +1900,7 @@ const de_RemoveCustomRoutingEndpointsCommand = async (output, context) => {
2084
1900
  const response = {
2085
1901
  $metadata: deserializeMetadata(output),
2086
1902
  };
2087
- return Promise.resolve(response);
1903
+ return response;
2088
1904
  };
2089
1905
  exports.de_RemoveCustomRoutingEndpointsCommand = de_RemoveCustomRoutingEndpointsCommand;
2090
1906
  const de_RemoveCustomRoutingEndpointsCommandError = async (output, context) => {
@@ -2114,10 +1930,9 @@ const de_RemoveCustomRoutingEndpointsCommandError = async (output, context) => {
2114
1930
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2115
1931
  default:
2116
1932
  const parsedBody = parsedOutput.body;
2117
- (0, smithy_client_1.throwDefaultError)({
1933
+ return throwDefaultError({
2118
1934
  output,
2119
1935
  parsedBody,
2120
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
2121
1936
  errorCode,
2122
1937
  });
2123
1938
  }
@@ -2130,7 +1945,7 @@ const de_RemoveEndpointsCommand = async (output, context) => {
2130
1945
  const response = {
2131
1946
  $metadata: deserializeMetadata(output),
2132
1947
  };
2133
- return Promise.resolve(response);
1948
+ return response;
2134
1949
  };
2135
1950
  exports.de_RemoveEndpointsCommand = de_RemoveEndpointsCommand;
2136
1951
  const de_RemoveEndpointsCommandError = async (output, context) => {
@@ -2157,10 +1972,9 @@ const de_RemoveEndpointsCommandError = async (output, context) => {
2157
1972
  throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
2158
1973
  default:
2159
1974
  const parsedBody = parsedOutput.body;
2160
- (0, smithy_client_1.throwDefaultError)({
1975
+ return throwDefaultError({
2161
1976
  output,
2162
1977
  parsedBody,
2163
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
2164
1978
  errorCode,
2165
1979
  });
2166
1980
  }
@@ -2171,12 +1985,12 @@ const de_TagResourceCommand = async (output, context) => {
2171
1985
  }
2172
1986
  const data = await parseBody(output.body, context);
2173
1987
  let contents = {};
2174
- contents = de_TagResourceResponse(data, context);
1988
+ contents = (0, smithy_client_1._json)(data);
2175
1989
  const response = {
2176
1990
  $metadata: deserializeMetadata(output),
2177
1991
  ...contents,
2178
1992
  };
2179
- return Promise.resolve(response);
1993
+ return response;
2180
1994
  };
2181
1995
  exports.de_TagResourceCommand = de_TagResourceCommand;
2182
1996
  const de_TagResourceCommandError = async (output, context) => {
@@ -2197,10 +2011,9 @@ const de_TagResourceCommandError = async (output, context) => {
2197
2011
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2198
2012
  default:
2199
2013
  const parsedBody = parsedOutput.body;
2200
- (0, smithy_client_1.throwDefaultError)({
2014
+ return throwDefaultError({
2201
2015
  output,
2202
2016
  parsedBody,
2203
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
2204
2017
  errorCode,
2205
2018
  });
2206
2019
  }
@@ -2211,12 +2024,12 @@ const de_UntagResourceCommand = async (output, context) => {
2211
2024
  }
2212
2025
  const data = await parseBody(output.body, context);
2213
2026
  let contents = {};
2214
- contents = de_UntagResourceResponse(data, context);
2027
+ contents = (0, smithy_client_1._json)(data);
2215
2028
  const response = {
2216
2029
  $metadata: deserializeMetadata(output),
2217
2030
  ...contents,
2218
2031
  };
2219
- return Promise.resolve(response);
2032
+ return response;
2220
2033
  };
2221
2034
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
2222
2035
  const de_UntagResourceCommandError = async (output, context) => {
@@ -2237,10 +2050,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2237
2050
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2238
2051
  default:
2239
2052
  const parsedBody = parsedOutput.body;
2240
- (0, smithy_client_1.throwDefaultError)({
2053
+ return throwDefaultError({
2241
2054
  output,
2242
2055
  parsedBody,
2243
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
2244
2056
  errorCode,
2245
2057
  });
2246
2058
  }
@@ -2256,7 +2068,7 @@ const de_UpdateAcceleratorCommand = async (output, context) => {
2256
2068
  $metadata: deserializeMetadata(output),
2257
2069
  ...contents,
2258
2070
  };
2259
- return Promise.resolve(response);
2071
+ return response;
2260
2072
  };
2261
2073
  exports.de_UpdateAcceleratorCommand = de_UpdateAcceleratorCommand;
2262
2074
  const de_UpdateAcceleratorCommandError = async (output, context) => {
@@ -2280,10 +2092,9 @@ const de_UpdateAcceleratorCommandError = async (output, context) => {
2280
2092
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2281
2093
  default:
2282
2094
  const parsedBody = parsedOutput.body;
2283
- (0, smithy_client_1.throwDefaultError)({
2095
+ return throwDefaultError({
2284
2096
  output,
2285
2097
  parsedBody,
2286
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
2287
2098
  errorCode,
2288
2099
  });
2289
2100
  }
@@ -2294,12 +2105,12 @@ const de_UpdateAcceleratorAttributesCommand = async (output, context) => {
2294
2105
  }
2295
2106
  const data = await parseBody(output.body, context);
2296
2107
  let contents = {};
2297
- contents = de_UpdateAcceleratorAttributesResponse(data, context);
2108
+ contents = (0, smithy_client_1._json)(data);
2298
2109
  const response = {
2299
2110
  $metadata: deserializeMetadata(output),
2300
2111
  ...contents,
2301
2112
  };
2302
- return Promise.resolve(response);
2113
+ return response;
2303
2114
  };
2304
2115
  exports.de_UpdateAcceleratorAttributesCommand = de_UpdateAcceleratorAttributesCommand;
2305
2116
  const de_UpdateAcceleratorAttributesCommandError = async (output, context) => {
@@ -2323,10 +2134,9 @@ const de_UpdateAcceleratorAttributesCommandError = async (output, context) => {
2323
2134
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2324
2135
  default:
2325
2136
  const parsedBody = parsedOutput.body;
2326
- (0, smithy_client_1.throwDefaultError)({
2137
+ return throwDefaultError({
2327
2138
  output,
2328
2139
  parsedBody,
2329
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
2330
2140
  errorCode,
2331
2141
  });
2332
2142
  }
@@ -2342,7 +2152,7 @@ const de_UpdateCustomRoutingAcceleratorCommand = async (output, context) => {
2342
2152
  $metadata: deserializeMetadata(output),
2343
2153
  ...contents,
2344
2154
  };
2345
- return Promise.resolve(response);
2155
+ return response;
2346
2156
  };
2347
2157
  exports.de_UpdateCustomRoutingAcceleratorCommand = de_UpdateCustomRoutingAcceleratorCommand;
2348
2158
  const de_UpdateCustomRoutingAcceleratorCommandError = async (output, context) => {
@@ -2363,10 +2173,9 @@ const de_UpdateCustomRoutingAcceleratorCommandError = async (output, context) =>
2363
2173
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2364
2174
  default:
2365
2175
  const parsedBody = parsedOutput.body;
2366
- (0, smithy_client_1.throwDefaultError)({
2176
+ return throwDefaultError({
2367
2177
  output,
2368
2178
  parsedBody,
2369
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
2370
2179
  errorCode,
2371
2180
  });
2372
2181
  }
@@ -2377,12 +2186,12 @@ const de_UpdateCustomRoutingAcceleratorAttributesCommand = async (output, contex
2377
2186
  }
2378
2187
  const data = await parseBody(output.body, context);
2379
2188
  let contents = {};
2380
- contents = de_UpdateCustomRoutingAcceleratorAttributesResponse(data, context);
2189
+ contents = (0, smithy_client_1._json)(data);
2381
2190
  const response = {
2382
2191
  $metadata: deserializeMetadata(output),
2383
2192
  ...contents,
2384
2193
  };
2385
- return Promise.resolve(response);
2194
+ return response;
2386
2195
  };
2387
2196
  exports.de_UpdateCustomRoutingAcceleratorAttributesCommand = de_UpdateCustomRoutingAcceleratorAttributesCommand;
2388
2197
  const de_UpdateCustomRoutingAcceleratorAttributesCommandError = async (output, context) => {
@@ -2406,10 +2215,9 @@ const de_UpdateCustomRoutingAcceleratorAttributesCommandError = async (output, c
2406
2215
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2407
2216
  default:
2408
2217
  const parsedBody = parsedOutput.body;
2409
- (0, smithy_client_1.throwDefaultError)({
2218
+ return throwDefaultError({
2410
2219
  output,
2411
2220
  parsedBody,
2412
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
2413
2221
  errorCode,
2414
2222
  });
2415
2223
  }
@@ -2420,12 +2228,12 @@ const de_UpdateCustomRoutingListenerCommand = async (output, context) => {
2420
2228
  }
2421
2229
  const data = await parseBody(output.body, context);
2422
2230
  let contents = {};
2423
- contents = de_UpdateCustomRoutingListenerResponse(data, context);
2231
+ contents = (0, smithy_client_1._json)(data);
2424
2232
  const response = {
2425
2233
  $metadata: deserializeMetadata(output),
2426
2234
  ...contents,
2427
2235
  };
2428
- return Promise.resolve(response);
2236
+ return response;
2429
2237
  };
2430
2238
  exports.de_UpdateCustomRoutingListenerCommand = de_UpdateCustomRoutingListenerCommand;
2431
2239
  const de_UpdateCustomRoutingListenerCommandError = async (output, context) => {
@@ -2452,10 +2260,9 @@ const de_UpdateCustomRoutingListenerCommandError = async (output, context) => {
2452
2260
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
2453
2261
  default:
2454
2262
  const parsedBody = parsedOutput.body;
2455
- (0, smithy_client_1.throwDefaultError)({
2263
+ return throwDefaultError({
2456
2264
  output,
2457
2265
  parsedBody,
2458
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
2459
2266
  errorCode,
2460
2267
  });
2461
2268
  }
@@ -2471,7 +2278,7 @@ const de_UpdateEndpointGroupCommand = async (output, context) => {
2471
2278
  $metadata: deserializeMetadata(output),
2472
2279
  ...contents,
2473
2280
  };
2474
- return Promise.resolve(response);
2281
+ return response;
2475
2282
  };
2476
2283
  exports.de_UpdateEndpointGroupCommand = de_UpdateEndpointGroupCommand;
2477
2284
  const de_UpdateEndpointGroupCommandError = async (output, context) => {
@@ -2498,10 +2305,9 @@ const de_UpdateEndpointGroupCommandError = async (output, context) => {
2498
2305
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
2499
2306
  default:
2500
2307
  const parsedBody = parsedOutput.body;
2501
- (0, smithy_client_1.throwDefaultError)({
2308
+ return throwDefaultError({
2502
2309
  output,
2503
2310
  parsedBody,
2504
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
2505
2311
  errorCode,
2506
2312
  });
2507
2313
  }
@@ -2512,12 +2318,12 @@ const de_UpdateListenerCommand = async (output, context) => {
2512
2318
  }
2513
2319
  const data = await parseBody(output.body, context);
2514
2320
  let contents = {};
2515
- contents = de_UpdateListenerResponse(data, context);
2321
+ contents = (0, smithy_client_1._json)(data);
2516
2322
  const response = {
2517
2323
  $metadata: deserializeMetadata(output),
2518
2324
  ...contents,
2519
2325
  };
2520
- return Promise.resolve(response);
2326
+ return response;
2521
2327
  };
2522
2328
  exports.de_UpdateListenerCommand = de_UpdateListenerCommand;
2523
2329
  const de_UpdateListenerCommandError = async (output, context) => {
@@ -2544,10 +2350,9 @@ const de_UpdateListenerCommandError = async (output, context) => {
2544
2350
  throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
2545
2351
  default:
2546
2352
  const parsedBody = parsedOutput.body;
2547
- (0, smithy_client_1.throwDefaultError)({
2353
+ return throwDefaultError({
2548
2354
  output,
2549
2355
  parsedBody,
2550
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
2551
2356
  errorCode,
2552
2357
  });
2553
2358
  }
@@ -2563,7 +2368,7 @@ const de_WithdrawByoipCidrCommand = async (output, context) => {
2563
2368
  $metadata: deserializeMetadata(output),
2564
2369
  ...contents,
2565
2370
  };
2566
- return Promise.resolve(response);
2371
+ return response;
2567
2372
  };
2568
2373
  exports.de_WithdrawByoipCidrCommand = de_WithdrawByoipCidrCommand;
2569
2374
  const de_WithdrawByoipCidrCommandError = async (output, context) => {
@@ -2590,17 +2395,16 @@ const de_WithdrawByoipCidrCommandError = async (output, context) => {
2590
2395
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2591
2396
  default:
2592
2397
  const parsedBody = parsedOutput.body;
2593
- (0, smithy_client_1.throwDefaultError)({
2398
+ return throwDefaultError({
2594
2399
  output,
2595
2400
  parsedBody,
2596
- exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
2597
2401
  errorCode,
2598
2402
  });
2599
2403
  }
2600
2404
  };
2601
2405
  const de_AcceleratorNotDisabledExceptionRes = async (parsedOutput, context) => {
2602
2406
  const body = parsedOutput.body;
2603
- const deserialized = de_AcceleratorNotDisabledException(body, context);
2407
+ const deserialized = (0, smithy_client_1._json)(body);
2604
2408
  const exception = new models_0_1.AcceleratorNotDisabledException({
2605
2409
  $metadata: deserializeMetadata(parsedOutput),
2606
2410
  ...deserialized,
@@ -2609,7 +2413,7 @@ const de_AcceleratorNotDisabledExceptionRes = async (parsedOutput, context) => {
2609
2413
  };
2610
2414
  const de_AcceleratorNotFoundExceptionRes = async (parsedOutput, context) => {
2611
2415
  const body = parsedOutput.body;
2612
- const deserialized = de_AcceleratorNotFoundException(body, context);
2416
+ const deserialized = (0, smithy_client_1._json)(body);
2613
2417
  const exception = new models_0_1.AcceleratorNotFoundException({
2614
2418
  $metadata: deserializeMetadata(parsedOutput),
2615
2419
  ...deserialized,
@@ -2618,7 +2422,7 @@ const de_AcceleratorNotFoundExceptionRes = async (parsedOutput, context) => {
2618
2422
  };
2619
2423
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2620
2424
  const body = parsedOutput.body;
2621
- const deserialized = de_AccessDeniedException(body, context);
2425
+ const deserialized = (0, smithy_client_1._json)(body);
2622
2426
  const exception = new models_0_1.AccessDeniedException({
2623
2427
  $metadata: deserializeMetadata(parsedOutput),
2624
2428
  ...deserialized,
@@ -2627,7 +2431,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2627
2431
  };
2628
2432
  const de_AssociatedEndpointGroupFoundExceptionRes = async (parsedOutput, context) => {
2629
2433
  const body = parsedOutput.body;
2630
- const deserialized = de_AssociatedEndpointGroupFoundException(body, context);
2434
+ const deserialized = (0, smithy_client_1._json)(body);
2631
2435
  const exception = new models_0_1.AssociatedEndpointGroupFoundException({
2632
2436
  $metadata: deserializeMetadata(parsedOutput),
2633
2437
  ...deserialized,
@@ -2636,7 +2440,7 @@ const de_AssociatedEndpointGroupFoundExceptionRes = async (parsedOutput, context
2636
2440
  };
2637
2441
  const de_AssociatedListenerFoundExceptionRes = async (parsedOutput, context) => {
2638
2442
  const body = parsedOutput.body;
2639
- const deserialized = de_AssociatedListenerFoundException(body, context);
2443
+ const deserialized = (0, smithy_client_1._json)(body);
2640
2444
  const exception = new models_0_1.AssociatedListenerFoundException({
2641
2445
  $metadata: deserializeMetadata(parsedOutput),
2642
2446
  ...deserialized,
@@ -2645,7 +2449,7 @@ const de_AssociatedListenerFoundExceptionRes = async (parsedOutput, context) =>
2645
2449
  };
2646
2450
  const de_ByoipCidrNotFoundExceptionRes = async (parsedOutput, context) => {
2647
2451
  const body = parsedOutput.body;
2648
- const deserialized = de_ByoipCidrNotFoundException(body, context);
2452
+ const deserialized = (0, smithy_client_1._json)(body);
2649
2453
  const exception = new models_0_1.ByoipCidrNotFoundException({
2650
2454
  $metadata: deserializeMetadata(parsedOutput),
2651
2455
  ...deserialized,
@@ -2654,7 +2458,7 @@ const de_ByoipCidrNotFoundExceptionRes = async (parsedOutput, context) => {
2654
2458
  };
2655
2459
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
2656
2460
  const body = parsedOutput.body;
2657
- const deserialized = de_ConflictException(body, context);
2461
+ const deserialized = (0, smithy_client_1._json)(body);
2658
2462
  const exception = new models_0_1.ConflictException({
2659
2463
  $metadata: deserializeMetadata(parsedOutput),
2660
2464
  ...deserialized,
@@ -2663,7 +2467,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
2663
2467
  };
2664
2468
  const de_EndpointAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2665
2469
  const body = parsedOutput.body;
2666
- const deserialized = de_EndpointAlreadyExistsException(body, context);
2470
+ const deserialized = (0, smithy_client_1._json)(body);
2667
2471
  const exception = new models_0_1.EndpointAlreadyExistsException({
2668
2472
  $metadata: deserializeMetadata(parsedOutput),
2669
2473
  ...deserialized,
@@ -2672,7 +2476,7 @@ const de_EndpointAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2672
2476
  };
2673
2477
  const de_EndpointGroupAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2674
2478
  const body = parsedOutput.body;
2675
- const deserialized = de_EndpointGroupAlreadyExistsException(body, context);
2479
+ const deserialized = (0, smithy_client_1._json)(body);
2676
2480
  const exception = new models_0_1.EndpointGroupAlreadyExistsException({
2677
2481
  $metadata: deserializeMetadata(parsedOutput),
2678
2482
  ...deserialized,
@@ -2681,7 +2485,7 @@ const de_EndpointGroupAlreadyExistsExceptionRes = async (parsedOutput, context)
2681
2485
  };
2682
2486
  const de_EndpointGroupNotFoundExceptionRes = async (parsedOutput, context) => {
2683
2487
  const body = parsedOutput.body;
2684
- const deserialized = de_EndpointGroupNotFoundException(body, context);
2488
+ const deserialized = (0, smithy_client_1._json)(body);
2685
2489
  const exception = new models_0_1.EndpointGroupNotFoundException({
2686
2490
  $metadata: deserializeMetadata(parsedOutput),
2687
2491
  ...deserialized,
@@ -2690,7 +2494,7 @@ const de_EndpointGroupNotFoundExceptionRes = async (parsedOutput, context) => {
2690
2494
  };
2691
2495
  const de_EndpointNotFoundExceptionRes = async (parsedOutput, context) => {
2692
2496
  const body = parsedOutput.body;
2693
- const deserialized = de_EndpointNotFoundException(body, context);
2497
+ const deserialized = (0, smithy_client_1._json)(body);
2694
2498
  const exception = new models_0_1.EndpointNotFoundException({
2695
2499
  $metadata: deserializeMetadata(parsedOutput),
2696
2500
  ...deserialized,
@@ -2699,7 +2503,7 @@ const de_EndpointNotFoundExceptionRes = async (parsedOutput, context) => {
2699
2503
  };
2700
2504
  const de_IncorrectCidrStateExceptionRes = async (parsedOutput, context) => {
2701
2505
  const body = parsedOutput.body;
2702
- const deserialized = de_IncorrectCidrStateException(body, context);
2506
+ const deserialized = (0, smithy_client_1._json)(body);
2703
2507
  const exception = new models_0_1.IncorrectCidrStateException({
2704
2508
  $metadata: deserializeMetadata(parsedOutput),
2705
2509
  ...deserialized,
@@ -2708,7 +2512,7 @@ const de_IncorrectCidrStateExceptionRes = async (parsedOutput, context) => {
2708
2512
  };
2709
2513
  const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
2710
2514
  const body = parsedOutput.body;
2711
- const deserialized = de_InternalServiceErrorException(body, context);
2515
+ const deserialized = (0, smithy_client_1._json)(body);
2712
2516
  const exception = new models_0_1.InternalServiceErrorException({
2713
2517
  $metadata: deserializeMetadata(parsedOutput),
2714
2518
  ...deserialized,
@@ -2717,7 +2521,7 @@ const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
2717
2521
  };
2718
2522
  const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
2719
2523
  const body = parsedOutput.body;
2720
- const deserialized = de_InvalidArgumentException(body, context);
2524
+ const deserialized = (0, smithy_client_1._json)(body);
2721
2525
  const exception = new models_0_1.InvalidArgumentException({
2722
2526
  $metadata: deserializeMetadata(parsedOutput),
2723
2527
  ...deserialized,
@@ -2726,7 +2530,7 @@ const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
2726
2530
  };
2727
2531
  const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
2728
2532
  const body = parsedOutput.body;
2729
- const deserialized = de_InvalidNextTokenException(body, context);
2533
+ const deserialized = (0, smithy_client_1._json)(body);
2730
2534
  const exception = new models_0_1.InvalidNextTokenException({
2731
2535
  $metadata: deserializeMetadata(parsedOutput),
2732
2536
  ...deserialized,
@@ -2735,7 +2539,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
2735
2539
  };
2736
2540
  const de_InvalidPortRangeExceptionRes = async (parsedOutput, context) => {
2737
2541
  const body = parsedOutput.body;
2738
- const deserialized = de_InvalidPortRangeException(body, context);
2542
+ const deserialized = (0, smithy_client_1._json)(body);
2739
2543
  const exception = new models_0_1.InvalidPortRangeException({
2740
2544
  $metadata: deserializeMetadata(parsedOutput),
2741
2545
  ...deserialized,
@@ -2744,7 +2548,7 @@ const de_InvalidPortRangeExceptionRes = async (parsedOutput, context) => {
2744
2548
  };
2745
2549
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2746
2550
  const body = parsedOutput.body;
2747
- const deserialized = de_LimitExceededException(body, context);
2551
+ const deserialized = (0, smithy_client_1._json)(body);
2748
2552
  const exception = new models_0_1.LimitExceededException({
2749
2553
  $metadata: deserializeMetadata(parsedOutput),
2750
2554
  ...deserialized,
@@ -2753,7 +2557,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2753
2557
  };
2754
2558
  const de_ListenerNotFoundExceptionRes = async (parsedOutput, context) => {
2755
2559
  const body = parsedOutput.body;
2756
- const deserialized = de_ListenerNotFoundException(body, context);
2560
+ const deserialized = (0, smithy_client_1._json)(body);
2757
2561
  const exception = new models_0_1.ListenerNotFoundException({
2758
2562
  $metadata: deserializeMetadata(parsedOutput),
2759
2563
  ...deserialized,
@@ -2762,1244 +2566,282 @@ const de_ListenerNotFoundExceptionRes = async (parsedOutput, context) => {
2762
2566
  };
2763
2567
  const de_TransactionInProgressExceptionRes = async (parsedOutput, context) => {
2764
2568
  const body = parsedOutput.body;
2765
- const deserialized = de_TransactionInProgressException(body, context);
2569
+ const deserialized = (0, smithy_client_1._json)(body);
2766
2570
  const exception = new models_0_1.TransactionInProgressException({
2767
2571
  $metadata: deserializeMetadata(parsedOutput),
2768
2572
  ...deserialized,
2769
2573
  });
2770
2574
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2771
2575
  };
2772
- const se_AddCustomRoutingEndpointsRequest = (input, context) => {
2773
- return {
2774
- ...(input.EndpointConfigurations != null && {
2775
- EndpointConfigurations: se_CustomRoutingEndpointConfigurations(input.EndpointConfigurations, context),
2776
- }),
2777
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2778
- };
2779
- };
2780
- const se_AddEndpointsRequest = (input, context) => {
2781
- return {
2782
- ...(input.EndpointConfigurations != null && {
2783
- EndpointConfigurations: se_EndpointConfigurations(input.EndpointConfigurations, context),
2784
- }),
2785
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2786
- };
2787
- };
2788
- const se_AdvertiseByoipCidrRequest = (input, context) => {
2789
- return {
2790
- ...(input.Cidr != null && { Cidr: input.Cidr }),
2791
- };
2792
- };
2793
- const se_AllowCustomRoutingTrafficRequest = (input, context) => {
2794
- return {
2795
- ...(input.AllowAllTrafficToEndpoint != null && { AllowAllTrafficToEndpoint: input.AllowAllTrafficToEndpoint }),
2796
- ...(input.DestinationAddresses != null && {
2797
- DestinationAddresses: se_DestinationAddresses(input.DestinationAddresses, context),
2798
- }),
2799
- ...(input.DestinationPorts != null && { DestinationPorts: se_DestinationPorts(input.DestinationPorts, context) }),
2800
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2801
- ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
2802
- };
2803
- };
2804
- const se_CidrAuthorizationContext = (input, context) => {
2805
- return {
2806
- ...(input.Message != null && { Message: input.Message }),
2807
- ...(input.Signature != null && { Signature: input.Signature }),
2808
- };
2809
- };
2810
2576
  const se_CreateAcceleratorRequest = (input, context) => {
2811
- return {
2812
- ...(input.Enabled != null && { Enabled: input.Enabled }),
2813
- IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
2814
- ...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
2815
- ...(input.IpAddresses != null && { IpAddresses: se_IpAddresses(input.IpAddresses, context) }),
2816
- ...(input.Name != null && { Name: input.Name }),
2817
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2818
- };
2577
+ return (0, smithy_client_1.take)(input, {
2578
+ Enabled: [],
2579
+ IdempotencyToken: (_) => _ ?? (0, uuid_1.v4)(),
2580
+ IpAddressType: [],
2581
+ IpAddresses: smithy_client_1._json,
2582
+ Name: [],
2583
+ Tags: smithy_client_1._json,
2584
+ });
2819
2585
  };
2820
2586
  const se_CreateCustomRoutingAcceleratorRequest = (input, context) => {
2821
- return {
2822
- ...(input.Enabled != null && { Enabled: input.Enabled }),
2823
- IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
2824
- ...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
2825
- ...(input.IpAddresses != null && { IpAddresses: se_IpAddresses(input.IpAddresses, context) }),
2826
- ...(input.Name != null && { Name: input.Name }),
2827
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2828
- };
2587
+ return (0, smithy_client_1.take)(input, {
2588
+ Enabled: [],
2589
+ IdempotencyToken: (_) => _ ?? (0, uuid_1.v4)(),
2590
+ IpAddressType: [],
2591
+ IpAddresses: smithy_client_1._json,
2592
+ Name: [],
2593
+ Tags: smithy_client_1._json,
2594
+ });
2829
2595
  };
2830
2596
  const se_CreateCustomRoutingEndpointGroupRequest = (input, context) => {
2831
- return {
2832
- ...(input.DestinationConfigurations != null && {
2833
- DestinationConfigurations: se_CustomRoutingDestinationConfigurations(input.DestinationConfigurations, context),
2834
- }),
2835
- ...(input.EndpointGroupRegion != null && { EndpointGroupRegion: input.EndpointGroupRegion }),
2836
- IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
2837
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2838
- };
2597
+ return (0, smithy_client_1.take)(input, {
2598
+ DestinationConfigurations: smithy_client_1._json,
2599
+ EndpointGroupRegion: [],
2600
+ IdempotencyToken: (_) => _ ?? (0, uuid_1.v4)(),
2601
+ ListenerArn: [],
2602
+ });
2839
2603
  };
2840
2604
  const se_CreateCustomRoutingListenerRequest = (input, context) => {
2841
- return {
2842
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2843
- IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
2844
- ...(input.PortRanges != null && { PortRanges: se_PortRanges(input.PortRanges, context) }),
2845
- };
2605
+ return (0, smithy_client_1.take)(input, {
2606
+ AcceleratorArn: [],
2607
+ IdempotencyToken: (_) => _ ?? (0, uuid_1.v4)(),
2608
+ PortRanges: smithy_client_1._json,
2609
+ });
2846
2610
  };
2847
2611
  const se_CreateEndpointGroupRequest = (input, context) => {
2848
- return {
2849
- ...(input.EndpointConfigurations != null && {
2850
- EndpointConfigurations: se_EndpointConfigurations(input.EndpointConfigurations, context),
2851
- }),
2852
- ...(input.EndpointGroupRegion != null && { EndpointGroupRegion: input.EndpointGroupRegion }),
2853
- ...(input.HealthCheckIntervalSeconds != null && { HealthCheckIntervalSeconds: input.HealthCheckIntervalSeconds }),
2854
- ...(input.HealthCheckPath != null && { HealthCheckPath: input.HealthCheckPath }),
2855
- ...(input.HealthCheckPort != null && { HealthCheckPort: input.HealthCheckPort }),
2856
- ...(input.HealthCheckProtocol != null && { HealthCheckProtocol: input.HealthCheckProtocol }),
2857
- IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
2858
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2859
- ...(input.PortOverrides != null && { PortOverrides: se_PortOverrides(input.PortOverrides, context) }),
2860
- ...(input.ThresholdCount != null && { ThresholdCount: input.ThresholdCount }),
2861
- ...(input.TrafficDialPercentage != null && {
2862
- TrafficDialPercentage: (0, smithy_client_1.serializeFloat)(input.TrafficDialPercentage),
2863
- }),
2864
- };
2612
+ return (0, smithy_client_1.take)(input, {
2613
+ EndpointConfigurations: smithy_client_1._json,
2614
+ EndpointGroupRegion: [],
2615
+ HealthCheckIntervalSeconds: [],
2616
+ HealthCheckPath: [],
2617
+ HealthCheckPort: [],
2618
+ HealthCheckProtocol: [],
2619
+ IdempotencyToken: (_) => _ ?? (0, uuid_1.v4)(),
2620
+ ListenerArn: [],
2621
+ PortOverrides: smithy_client_1._json,
2622
+ ThresholdCount: [],
2623
+ TrafficDialPercentage: smithy_client_1.serializeFloat,
2624
+ });
2865
2625
  };
2866
2626
  const se_CreateListenerRequest = (input, context) => {
2867
- return {
2868
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2869
- ...(input.ClientAffinity != null && { ClientAffinity: input.ClientAffinity }),
2870
- IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
2871
- ...(input.PortRanges != null && { PortRanges: se_PortRanges(input.PortRanges, context) }),
2872
- ...(input.Protocol != null && { Protocol: input.Protocol }),
2873
- };
2627
+ return (0, smithy_client_1.take)(input, {
2628
+ AcceleratorArn: [],
2629
+ ClientAffinity: [],
2630
+ IdempotencyToken: (_) => _ ?? (0, uuid_1.v4)(),
2631
+ PortRanges: smithy_client_1._json,
2632
+ Protocol: [],
2633
+ });
2874
2634
  };
2875
- const se_CustomRoutingDestinationConfiguration = (input, context) => {
2876
- return {
2877
- ...(input.FromPort != null && { FromPort: input.FromPort }),
2878
- ...(input.Protocols != null && { Protocols: se_CustomRoutingProtocols(input.Protocols, context) }),
2879
- ...(input.ToPort != null && { ToPort: input.ToPort }),
2880
- };
2635
+ const se_UpdateEndpointGroupRequest = (input, context) => {
2636
+ return (0, smithy_client_1.take)(input, {
2637
+ EndpointConfigurations: smithy_client_1._json,
2638
+ EndpointGroupArn: [],
2639
+ HealthCheckIntervalSeconds: [],
2640
+ HealthCheckPath: [],
2641
+ HealthCheckPort: [],
2642
+ HealthCheckProtocol: [],
2643
+ PortOverrides: smithy_client_1._json,
2644
+ ThresholdCount: [],
2645
+ TrafficDialPercentage: smithy_client_1.serializeFloat,
2646
+ });
2881
2647
  };
2882
- const se_CustomRoutingDestinationConfigurations = (input, context) => {
2883
- return input
2884
- .filter((e) => e != null)
2885
- .map((entry) => {
2886
- return se_CustomRoutingDestinationConfiguration(entry, context);
2648
+ const de_Accelerator = (output, context) => {
2649
+ return (0, smithy_client_1.take)(output, {
2650
+ AcceleratorArn: smithy_client_1.expectString,
2651
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2652
+ DnsName: smithy_client_1.expectString,
2653
+ DualStackDnsName: smithy_client_1.expectString,
2654
+ Enabled: smithy_client_1.expectBoolean,
2655
+ Events: (_) => de_AcceleratorEvents(_, context),
2656
+ IpAddressType: smithy_client_1.expectString,
2657
+ IpSets: smithy_client_1._json,
2658
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2659
+ Name: smithy_client_1.expectString,
2660
+ Status: smithy_client_1.expectString,
2887
2661
  });
2888
2662
  };
2889
- const se_CustomRoutingEndpointConfiguration = (input, context) => {
2890
- return {
2891
- ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
2892
- };
2663
+ const de_AcceleratorEvent = (output, context) => {
2664
+ return (0, smithy_client_1.take)(output, {
2665
+ Message: smithy_client_1.expectString,
2666
+ Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2667
+ });
2893
2668
  };
2894
- const se_CustomRoutingEndpointConfigurations = (input, context) => {
2895
- return input
2669
+ const de_AcceleratorEvents = (output, context) => {
2670
+ const retVal = (output || [])
2896
2671
  .filter((e) => e != null)
2897
2672
  .map((entry) => {
2898
- return se_CustomRoutingEndpointConfiguration(entry, context);
2673
+ return de_AcceleratorEvent(entry, context);
2899
2674
  });
2675
+ return retVal;
2900
2676
  };
2901
- const se_CustomRoutingProtocols = (input, context) => {
2902
- return input
2677
+ const de_Accelerators = (output, context) => {
2678
+ const retVal = (output || [])
2903
2679
  .filter((e) => e != null)
2904
2680
  .map((entry) => {
2905
- return entry;
2681
+ return de_Accelerator(entry, context);
2906
2682
  });
2683
+ return retVal;
2907
2684
  };
2908
- const se_DeleteAcceleratorRequest = (input, context) => {
2909
- return {
2910
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2911
- };
2912
- };
2913
- const se_DeleteCustomRoutingAcceleratorRequest = (input, context) => {
2914
- return {
2915
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2916
- };
2685
+ const de_AdvertiseByoipCidrResponse = (output, context) => {
2686
+ return (0, smithy_client_1.take)(output, {
2687
+ ByoipCidr: (_) => de_ByoipCidr(_, context),
2688
+ });
2917
2689
  };
2918
- const se_DeleteCustomRoutingEndpointGroupRequest = (input, context) => {
2919
- return {
2920
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2921
- };
2690
+ const de_ByoipCidr = (output, context) => {
2691
+ return (0, smithy_client_1.take)(output, {
2692
+ Cidr: smithy_client_1.expectString,
2693
+ Events: (_) => de_ByoipCidrEvents(_, context),
2694
+ State: smithy_client_1.expectString,
2695
+ });
2922
2696
  };
2923
- const se_DeleteCustomRoutingListenerRequest = (input, context) => {
2924
- return {
2925
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2926
- };
2697
+ const de_ByoipCidrEvent = (output, context) => {
2698
+ return (0, smithy_client_1.take)(output, {
2699
+ Message: smithy_client_1.expectString,
2700
+ Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2701
+ });
2927
2702
  };
2928
- const se_DeleteEndpointGroupRequest = (input, context) => {
2929
- return {
2930
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2931
- };
2703
+ const de_ByoipCidrEvents = (output, context) => {
2704
+ const retVal = (output || [])
2705
+ .filter((e) => e != null)
2706
+ .map((entry) => {
2707
+ return de_ByoipCidrEvent(entry, context);
2708
+ });
2709
+ return retVal;
2932
2710
  };
2933
- const se_DeleteListenerRequest = (input, context) => {
2934
- return {
2935
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2936
- };
2711
+ const de_ByoipCidrs = (output, context) => {
2712
+ const retVal = (output || [])
2713
+ .filter((e) => e != null)
2714
+ .map((entry) => {
2715
+ return de_ByoipCidr(entry, context);
2716
+ });
2717
+ return retVal;
2937
2718
  };
2938
- const se_DenyCustomRoutingTrafficRequest = (input, context) => {
2939
- return {
2940
- ...(input.DenyAllTrafficToEndpoint != null && { DenyAllTrafficToEndpoint: input.DenyAllTrafficToEndpoint }),
2941
- ...(input.DestinationAddresses != null && {
2942
- DestinationAddresses: se_DestinationAddresses(input.DestinationAddresses, context),
2943
- }),
2944
- ...(input.DestinationPorts != null && { DestinationPorts: se_DestinationPorts(input.DestinationPorts, context) }),
2945
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2946
- ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
2947
- };
2719
+ const de_CreateAcceleratorResponse = (output, context) => {
2720
+ return (0, smithy_client_1.take)(output, {
2721
+ Accelerator: (_) => de_Accelerator(_, context),
2722
+ });
2948
2723
  };
2949
- const se_DeprovisionByoipCidrRequest = (input, context) => {
2950
- return {
2951
- ...(input.Cidr != null && { Cidr: input.Cidr }),
2952
- };
2724
+ const de_CreateCustomRoutingAcceleratorResponse = (output, context) => {
2725
+ return (0, smithy_client_1.take)(output, {
2726
+ Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
2727
+ });
2953
2728
  };
2954
- const se_DescribeAcceleratorAttributesRequest = (input, context) => {
2955
- return {
2956
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2957
- };
2729
+ const de_CreateEndpointGroupResponse = (output, context) => {
2730
+ return (0, smithy_client_1.take)(output, {
2731
+ EndpointGroup: (_) => de_EndpointGroup(_, context),
2732
+ });
2958
2733
  };
2959
- const se_DescribeAcceleratorRequest = (input, context) => {
2960
- return {
2961
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2962
- };
2734
+ const de_CustomRoutingAccelerator = (output, context) => {
2735
+ return (0, smithy_client_1.take)(output, {
2736
+ AcceleratorArn: smithy_client_1.expectString,
2737
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2738
+ DnsName: smithy_client_1.expectString,
2739
+ Enabled: smithy_client_1.expectBoolean,
2740
+ IpAddressType: smithy_client_1.expectString,
2741
+ IpSets: smithy_client_1._json,
2742
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2743
+ Name: smithy_client_1.expectString,
2744
+ Status: smithy_client_1.expectString,
2745
+ });
2963
2746
  };
2964
- const se_DescribeCustomRoutingAcceleratorAttributesRequest = (input, context) => {
2965
- return {
2966
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2967
- };
2747
+ const de_CustomRoutingAccelerators = (output, context) => {
2748
+ const retVal = (output || [])
2749
+ .filter((e) => e != null)
2750
+ .map((entry) => {
2751
+ return de_CustomRoutingAccelerator(entry, context);
2752
+ });
2753
+ return retVal;
2968
2754
  };
2969
- const se_DescribeCustomRoutingAcceleratorRequest = (input, context) => {
2970
- return {
2971
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2972
- };
2755
+ const de_DeprovisionByoipCidrResponse = (output, context) => {
2756
+ return (0, smithy_client_1.take)(output, {
2757
+ ByoipCidr: (_) => de_ByoipCidr(_, context),
2758
+ });
2973
2759
  };
2974
- const se_DescribeCustomRoutingEndpointGroupRequest = (input, context) => {
2975
- return {
2976
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2977
- };
2760
+ const de_DescribeAcceleratorResponse = (output, context) => {
2761
+ return (0, smithy_client_1.take)(output, {
2762
+ Accelerator: (_) => de_Accelerator(_, context),
2763
+ });
2978
2764
  };
2979
- const se_DescribeCustomRoutingListenerRequest = (input, context) => {
2980
- return {
2981
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2982
- };
2765
+ const de_DescribeCustomRoutingAcceleratorResponse = (output, context) => {
2766
+ return (0, smithy_client_1.take)(output, {
2767
+ Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
2768
+ });
2983
2769
  };
2984
- const se_DescribeEndpointGroupRequest = (input, context) => {
2985
- return {
2986
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2987
- };
2770
+ const de_DescribeEndpointGroupResponse = (output, context) => {
2771
+ return (0, smithy_client_1.take)(output, {
2772
+ EndpointGroup: (_) => de_EndpointGroup(_, context),
2773
+ });
2988
2774
  };
2989
- const se_DescribeListenerRequest = (input, context) => {
2990
- return {
2991
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2992
- };
2775
+ const de_EndpointGroup = (output, context) => {
2776
+ return (0, smithy_client_1.take)(output, {
2777
+ EndpointDescriptions: smithy_client_1._json,
2778
+ EndpointGroupArn: smithy_client_1.expectString,
2779
+ EndpointGroupRegion: smithy_client_1.expectString,
2780
+ HealthCheckIntervalSeconds: smithy_client_1.expectInt32,
2781
+ HealthCheckPath: smithy_client_1.expectString,
2782
+ HealthCheckPort: smithy_client_1.expectInt32,
2783
+ HealthCheckProtocol: smithy_client_1.expectString,
2784
+ PortOverrides: smithy_client_1._json,
2785
+ ThresholdCount: smithy_client_1.expectInt32,
2786
+ TrafficDialPercentage: smithy_client_1.limitedParseFloat32,
2787
+ });
2993
2788
  };
2994
- const se_DestinationAddresses = (input, context) => {
2995
- return input
2789
+ const de_EndpointGroups = (output, context) => {
2790
+ const retVal = (output || [])
2996
2791
  .filter((e) => e != null)
2997
2792
  .map((entry) => {
2998
- return entry;
2793
+ return de_EndpointGroup(entry, context);
2999
2794
  });
2795
+ return retVal;
3000
2796
  };
3001
- const se_DestinationPorts = (input, context) => {
3002
- return input
3003
- .filter((e) => e != null)
3004
- .map((entry) => {
3005
- return entry;
2797
+ const de_ListAcceleratorsResponse = (output, context) => {
2798
+ return (0, smithy_client_1.take)(output, {
2799
+ Accelerators: (_) => de_Accelerators(_, context),
2800
+ NextToken: smithy_client_1.expectString,
3006
2801
  });
3007
2802
  };
3008
- const se_EndpointConfiguration = (input, context) => {
3009
- return {
3010
- ...(input.ClientIPPreservationEnabled != null && {
3011
- ClientIPPreservationEnabled: input.ClientIPPreservationEnabled,
3012
- }),
3013
- ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
3014
- ...(input.Weight != null && { Weight: input.Weight }),
3015
- };
2803
+ const de_ListByoipCidrsResponse = (output, context) => {
2804
+ return (0, smithy_client_1.take)(output, {
2805
+ ByoipCidrs: (_) => de_ByoipCidrs(_, context),
2806
+ NextToken: smithy_client_1.expectString,
2807
+ });
3016
2808
  };
3017
- const se_EndpointConfigurations = (input, context) => {
3018
- return input
3019
- .filter((e) => e != null)
3020
- .map((entry) => {
3021
- return se_EndpointConfiguration(entry, context);
2809
+ const de_ListCustomRoutingAcceleratorsResponse = (output, context) => {
2810
+ return (0, smithy_client_1.take)(output, {
2811
+ Accelerators: (_) => de_CustomRoutingAccelerators(_, context),
2812
+ NextToken: smithy_client_1.expectString,
3022
2813
  });
3023
2814
  };
3024
- const se_EndpointIdentifier = (input, context) => {
3025
- return {
3026
- ...(input.ClientIPPreservationEnabled != null && {
3027
- ClientIPPreservationEnabled: input.ClientIPPreservationEnabled,
3028
- }),
3029
- ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
3030
- };
2815
+ const de_ListEndpointGroupsResponse = (output, context) => {
2816
+ return (0, smithy_client_1.take)(output, {
2817
+ EndpointGroups: (_) => de_EndpointGroups(_, context),
2818
+ NextToken: smithy_client_1.expectString,
2819
+ });
3031
2820
  };
3032
- const se_EndpointIdentifiers = (input, context) => {
3033
- return input
3034
- .filter((e) => e != null)
3035
- .map((entry) => {
3036
- return se_EndpointIdentifier(entry, context);
2821
+ const de_ProvisionByoipCidrResponse = (output, context) => {
2822
+ return (0, smithy_client_1.take)(output, {
2823
+ ByoipCidr: (_) => de_ByoipCidr(_, context),
3037
2824
  });
3038
2825
  };
3039
- const se_EndpointIds = (input, context) => {
3040
- return input
3041
- .filter((e) => e != null)
3042
- .map((entry) => {
3043
- return entry;
2826
+ const de_UpdateAcceleratorResponse = (output, context) => {
2827
+ return (0, smithy_client_1.take)(output, {
2828
+ Accelerator: (_) => de_Accelerator(_, context),
3044
2829
  });
3045
2830
  };
3046
- const se_IpAddresses = (input, context) => {
3047
- return input
3048
- .filter((e) => e != null)
3049
- .map((entry) => {
3050
- return entry;
2831
+ const de_UpdateCustomRoutingAcceleratorResponse = (output, context) => {
2832
+ return (0, smithy_client_1.take)(output, {
2833
+ Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
3051
2834
  });
3052
2835
  };
3053
- const se_ListAcceleratorsRequest = (input, context) => {
3054
- return {
3055
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3056
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3057
- };
3058
- };
3059
- const se_ListByoipCidrsRequest = (input, context) => {
3060
- return {
3061
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3062
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3063
- };
3064
- };
3065
- const se_ListCustomRoutingAcceleratorsRequest = (input, context) => {
3066
- return {
3067
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3068
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3069
- };
3070
- };
3071
- const se_ListCustomRoutingEndpointGroupsRequest = (input, context) => {
3072
- return {
3073
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
3074
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3075
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3076
- };
3077
- };
3078
- const se_ListCustomRoutingListenersRequest = (input, context) => {
3079
- return {
3080
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3081
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3082
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3083
- };
3084
- };
3085
- const se_ListCustomRoutingPortMappingsByDestinationRequest = (input, context) => {
3086
- return {
3087
- ...(input.DestinationAddress != null && { DestinationAddress: input.DestinationAddress }),
3088
- ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
3089
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3090
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3091
- };
3092
- };
3093
- const se_ListCustomRoutingPortMappingsRequest = (input, context) => {
3094
- return {
3095
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3096
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
3097
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3098
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3099
- };
3100
- };
3101
- const se_ListEndpointGroupsRequest = (input, context) => {
3102
- return {
3103
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
3104
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3105
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3106
- };
3107
- };
3108
- const se_ListListenersRequest = (input, context) => {
3109
- return {
3110
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3111
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3112
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3113
- };
3114
- };
3115
- const se_ListTagsForResourceRequest = (input, context) => {
3116
- return {
3117
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3118
- };
3119
- };
3120
- const se_PortOverride = (input, context) => {
3121
- return {
3122
- ...(input.EndpointPort != null && { EndpointPort: input.EndpointPort }),
3123
- ...(input.ListenerPort != null && { ListenerPort: input.ListenerPort }),
3124
- };
3125
- };
3126
- const se_PortOverrides = (input, context) => {
3127
- return input
3128
- .filter((e) => e != null)
3129
- .map((entry) => {
3130
- return se_PortOverride(entry, context);
3131
- });
3132
- };
3133
- const se_PortRange = (input, context) => {
3134
- return {
3135
- ...(input.FromPort != null && { FromPort: input.FromPort }),
3136
- ...(input.ToPort != null && { ToPort: input.ToPort }),
3137
- };
3138
- };
3139
- const se_PortRanges = (input, context) => {
3140
- return input
3141
- .filter((e) => e != null)
3142
- .map((entry) => {
3143
- return se_PortRange(entry, context);
3144
- });
3145
- };
3146
- const se_ProvisionByoipCidrRequest = (input, context) => {
3147
- return {
3148
- ...(input.Cidr != null && { Cidr: input.Cidr }),
3149
- ...(input.CidrAuthorizationContext != null && {
3150
- CidrAuthorizationContext: se_CidrAuthorizationContext(input.CidrAuthorizationContext, context),
3151
- }),
3152
- };
3153
- };
3154
- const se_RemoveCustomRoutingEndpointsRequest = (input, context) => {
3155
- return {
3156
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
3157
- ...(input.EndpointIds != null && { EndpointIds: se_EndpointIds(input.EndpointIds, context) }),
3158
- };
3159
- };
3160
- const se_RemoveEndpointsRequest = (input, context) => {
3161
- return {
3162
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
3163
- ...(input.EndpointIdentifiers != null && {
3164
- EndpointIdentifiers: se_EndpointIdentifiers(input.EndpointIdentifiers, context),
3165
- }),
3166
- };
3167
- };
3168
- const se_Tag = (input, context) => {
3169
- return {
3170
- ...(input.Key != null && { Key: input.Key }),
3171
- ...(input.Value != null && { Value: input.Value }),
3172
- };
3173
- };
3174
- const se_TagKeys = (input, context) => {
3175
- return input
3176
- .filter((e) => e != null)
3177
- .map((entry) => {
3178
- return entry;
3179
- });
3180
- };
3181
- const se_TagResourceRequest = (input, context) => {
3182
- return {
3183
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3184
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
3185
- };
3186
- };
3187
- const se_Tags = (input, context) => {
3188
- return input
3189
- .filter((e) => e != null)
3190
- .map((entry) => {
3191
- return se_Tag(entry, context);
3192
- });
3193
- };
3194
- const se_UntagResourceRequest = (input, context) => {
3195
- return {
3196
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3197
- ...(input.TagKeys != null && { TagKeys: se_TagKeys(input.TagKeys, context) }),
3198
- };
3199
- };
3200
- const se_UpdateAcceleratorAttributesRequest = (input, context) => {
3201
- return {
3202
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3203
- ...(input.FlowLogsEnabled != null && { FlowLogsEnabled: input.FlowLogsEnabled }),
3204
- ...(input.FlowLogsS3Bucket != null && { FlowLogsS3Bucket: input.FlowLogsS3Bucket }),
3205
- ...(input.FlowLogsS3Prefix != null && { FlowLogsS3Prefix: input.FlowLogsS3Prefix }),
3206
- };
3207
- };
3208
- const se_UpdateAcceleratorRequest = (input, context) => {
3209
- return {
3210
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3211
- ...(input.Enabled != null && { Enabled: input.Enabled }),
3212
- ...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
3213
- ...(input.Name != null && { Name: input.Name }),
3214
- };
3215
- };
3216
- const se_UpdateCustomRoutingAcceleratorAttributesRequest = (input, context) => {
3217
- return {
3218
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3219
- ...(input.FlowLogsEnabled != null && { FlowLogsEnabled: input.FlowLogsEnabled }),
3220
- ...(input.FlowLogsS3Bucket != null && { FlowLogsS3Bucket: input.FlowLogsS3Bucket }),
3221
- ...(input.FlowLogsS3Prefix != null && { FlowLogsS3Prefix: input.FlowLogsS3Prefix }),
3222
- };
3223
- };
3224
- const se_UpdateCustomRoutingAcceleratorRequest = (input, context) => {
3225
- return {
3226
- ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3227
- ...(input.Enabled != null && { Enabled: input.Enabled }),
3228
- ...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
3229
- ...(input.Name != null && { Name: input.Name }),
3230
- };
3231
- };
3232
- const se_UpdateCustomRoutingListenerRequest = (input, context) => {
3233
- return {
3234
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
3235
- ...(input.PortRanges != null && { PortRanges: se_PortRanges(input.PortRanges, context) }),
3236
- };
3237
- };
3238
- const se_UpdateEndpointGroupRequest = (input, context) => {
3239
- return {
3240
- ...(input.EndpointConfigurations != null && {
3241
- EndpointConfigurations: se_EndpointConfigurations(input.EndpointConfigurations, context),
3242
- }),
3243
- ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
3244
- ...(input.HealthCheckIntervalSeconds != null && { HealthCheckIntervalSeconds: input.HealthCheckIntervalSeconds }),
3245
- ...(input.HealthCheckPath != null && { HealthCheckPath: input.HealthCheckPath }),
3246
- ...(input.HealthCheckPort != null && { HealthCheckPort: input.HealthCheckPort }),
3247
- ...(input.HealthCheckProtocol != null && { HealthCheckProtocol: input.HealthCheckProtocol }),
3248
- ...(input.PortOverrides != null && { PortOverrides: se_PortOverrides(input.PortOverrides, context) }),
3249
- ...(input.ThresholdCount != null && { ThresholdCount: input.ThresholdCount }),
3250
- ...(input.TrafficDialPercentage != null && {
3251
- TrafficDialPercentage: (0, smithy_client_1.serializeFloat)(input.TrafficDialPercentage),
3252
- }),
3253
- };
3254
- };
3255
- const se_UpdateListenerRequest = (input, context) => {
3256
- return {
3257
- ...(input.ClientAffinity != null && { ClientAffinity: input.ClientAffinity }),
3258
- ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
3259
- ...(input.PortRanges != null && { PortRanges: se_PortRanges(input.PortRanges, context) }),
3260
- ...(input.Protocol != null && { Protocol: input.Protocol }),
3261
- };
3262
- };
3263
- const se_WithdrawByoipCidrRequest = (input, context) => {
3264
- return {
3265
- ...(input.Cidr != null && { Cidr: input.Cidr }),
3266
- };
3267
- };
3268
- const de_Accelerator = (output, context) => {
3269
- return {
3270
- AcceleratorArn: (0, smithy_client_1.expectString)(output.AcceleratorArn),
3271
- CreatedTime: output.CreatedTime != null
3272
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
3273
- : undefined,
3274
- DnsName: (0, smithy_client_1.expectString)(output.DnsName),
3275
- DualStackDnsName: (0, smithy_client_1.expectString)(output.DualStackDnsName),
3276
- Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
3277
- Events: output.Events != null ? de_AcceleratorEvents(output.Events, context) : undefined,
3278
- IpAddressType: (0, smithy_client_1.expectString)(output.IpAddressType),
3279
- IpSets: output.IpSets != null ? de_IpSets(output.IpSets, context) : undefined,
3280
- LastModifiedTime: output.LastModifiedTime != null
3281
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3282
- : undefined,
3283
- Name: (0, smithy_client_1.expectString)(output.Name),
3284
- Status: (0, smithy_client_1.expectString)(output.Status),
3285
- };
3286
- };
3287
- const de_AcceleratorAttributes = (output, context) => {
3288
- return {
3289
- FlowLogsEnabled: (0, smithy_client_1.expectBoolean)(output.FlowLogsEnabled),
3290
- FlowLogsS3Bucket: (0, smithy_client_1.expectString)(output.FlowLogsS3Bucket),
3291
- FlowLogsS3Prefix: (0, smithy_client_1.expectString)(output.FlowLogsS3Prefix),
3292
- };
3293
- };
3294
- const de_AcceleratorEvent = (output, context) => {
3295
- return {
3296
- Message: (0, smithy_client_1.expectString)(output.Message),
3297
- Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
3298
- };
3299
- };
3300
- const de_AcceleratorEvents = (output, context) => {
3301
- const retVal = (output || [])
3302
- .filter((e) => e != null)
3303
- .map((entry) => {
3304
- if (entry === null) {
3305
- return null;
3306
- }
3307
- return de_AcceleratorEvent(entry, context);
3308
- });
3309
- return retVal;
3310
- };
3311
- const de_AcceleratorNotDisabledException = (output, context) => {
3312
- return {
3313
- Message: (0, smithy_client_1.expectString)(output.Message),
3314
- };
3315
- };
3316
- const de_AcceleratorNotFoundException = (output, context) => {
3317
- return {
3318
- Message: (0, smithy_client_1.expectString)(output.Message),
3319
- };
3320
- };
3321
- const de_Accelerators = (output, context) => {
3322
- const retVal = (output || [])
3323
- .filter((e) => e != null)
3324
- .map((entry) => {
3325
- if (entry === null) {
3326
- return null;
3327
- }
3328
- return de_Accelerator(entry, context);
3329
- });
3330
- return retVal;
3331
- };
3332
- const de_AccessDeniedException = (output, context) => {
3333
- return {
3334
- Message: (0, smithy_client_1.expectString)(output.Message),
3335
- };
3336
- };
3337
- const de_AddCustomRoutingEndpointsResponse = (output, context) => {
3338
- return {
3339
- EndpointDescriptions: output.EndpointDescriptions != null
3340
- ? de_CustomRoutingEndpointDescriptions(output.EndpointDescriptions, context)
3341
- : undefined,
3342
- EndpointGroupArn: (0, smithy_client_1.expectString)(output.EndpointGroupArn),
3343
- };
3344
- };
3345
- const de_AddEndpointsResponse = (output, context) => {
3346
- return {
3347
- EndpointDescriptions: output.EndpointDescriptions != null ? de_EndpointDescriptions(output.EndpointDescriptions, context) : undefined,
3348
- EndpointGroupArn: (0, smithy_client_1.expectString)(output.EndpointGroupArn),
3349
- };
3350
- };
3351
- const de_AdvertiseByoipCidrResponse = (output, context) => {
3352
- return {
3353
- ByoipCidr: output.ByoipCidr != null ? de_ByoipCidr(output.ByoipCidr, context) : undefined,
3354
- };
3355
- };
3356
- const de_AssociatedEndpointGroupFoundException = (output, context) => {
3357
- return {
3358
- Message: (0, smithy_client_1.expectString)(output.Message),
3359
- };
3360
- };
3361
- const de_AssociatedListenerFoundException = (output, context) => {
3362
- return {
3363
- Message: (0, smithy_client_1.expectString)(output.Message),
3364
- };
3365
- };
3366
- const de_ByoipCidr = (output, context) => {
3367
- return {
3368
- Cidr: (0, smithy_client_1.expectString)(output.Cidr),
3369
- Events: output.Events != null ? de_ByoipCidrEvents(output.Events, context) : undefined,
3370
- State: (0, smithy_client_1.expectString)(output.State),
3371
- };
3372
- };
3373
- const de_ByoipCidrEvent = (output, context) => {
3374
- return {
3375
- Message: (0, smithy_client_1.expectString)(output.Message),
3376
- Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
3377
- };
3378
- };
3379
- const de_ByoipCidrEvents = (output, context) => {
3380
- const retVal = (output || [])
3381
- .filter((e) => e != null)
3382
- .map((entry) => {
3383
- if (entry === null) {
3384
- return null;
3385
- }
3386
- return de_ByoipCidrEvent(entry, context);
3387
- });
3388
- return retVal;
3389
- };
3390
- const de_ByoipCidrNotFoundException = (output, context) => {
3391
- return {
3392
- Message: (0, smithy_client_1.expectString)(output.Message),
3393
- };
3394
- };
3395
- const de_ByoipCidrs = (output, context) => {
3396
- const retVal = (output || [])
3397
- .filter((e) => e != null)
3398
- .map((entry) => {
3399
- if (entry === null) {
3400
- return null;
3401
- }
3402
- return de_ByoipCidr(entry, context);
3403
- });
3404
- return retVal;
3405
- };
3406
- const de_ConflictException = (output, context) => {
3407
- return {
3408
- Message: (0, smithy_client_1.expectString)(output.Message),
3409
- };
3410
- };
3411
- const de_CreateAcceleratorResponse = (output, context) => {
3412
- return {
3413
- Accelerator: output.Accelerator != null ? de_Accelerator(output.Accelerator, context) : undefined,
3414
- };
3415
- };
3416
- const de_CreateCustomRoutingAcceleratorResponse = (output, context) => {
3417
- return {
3418
- Accelerator: output.Accelerator != null ? de_CustomRoutingAccelerator(output.Accelerator, context) : undefined,
3419
- };
3420
- };
3421
- const de_CreateCustomRoutingEndpointGroupResponse = (output, context) => {
3422
- return {
3423
- EndpointGroup: output.EndpointGroup != null ? de_CustomRoutingEndpointGroup(output.EndpointGroup, context) : undefined,
3424
- };
3425
- };
3426
- const de_CreateCustomRoutingListenerResponse = (output, context) => {
3427
- return {
3428
- Listener: output.Listener != null ? de_CustomRoutingListener(output.Listener, context) : undefined,
3429
- };
3430
- };
3431
- const de_CreateEndpointGroupResponse = (output, context) => {
3432
- return {
3433
- EndpointGroup: output.EndpointGroup != null ? de_EndpointGroup(output.EndpointGroup, context) : undefined,
3434
- };
3435
- };
3436
- const de_CreateListenerResponse = (output, context) => {
3437
- return {
3438
- Listener: output.Listener != null ? de_Listener(output.Listener, context) : undefined,
3439
- };
3440
- };
3441
- const de_CustomRoutingAccelerator = (output, context) => {
3442
- return {
3443
- AcceleratorArn: (0, smithy_client_1.expectString)(output.AcceleratorArn),
3444
- CreatedTime: output.CreatedTime != null
3445
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
3446
- : undefined,
3447
- DnsName: (0, smithy_client_1.expectString)(output.DnsName),
3448
- Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
3449
- IpAddressType: (0, smithy_client_1.expectString)(output.IpAddressType),
3450
- IpSets: output.IpSets != null ? de_IpSets(output.IpSets, context) : undefined,
3451
- LastModifiedTime: output.LastModifiedTime != null
3452
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3453
- : undefined,
3454
- Name: (0, smithy_client_1.expectString)(output.Name),
3455
- Status: (0, smithy_client_1.expectString)(output.Status),
3456
- };
3457
- };
3458
- const de_CustomRoutingAcceleratorAttributes = (output, context) => {
3459
- return {
3460
- FlowLogsEnabled: (0, smithy_client_1.expectBoolean)(output.FlowLogsEnabled),
3461
- FlowLogsS3Bucket: (0, smithy_client_1.expectString)(output.FlowLogsS3Bucket),
3462
- FlowLogsS3Prefix: (0, smithy_client_1.expectString)(output.FlowLogsS3Prefix),
3463
- };
3464
- };
3465
- const de_CustomRoutingAccelerators = (output, context) => {
3466
- const retVal = (output || [])
3467
- .filter((e) => e != null)
3468
- .map((entry) => {
3469
- if (entry === null) {
3470
- return null;
3471
- }
3472
- return de_CustomRoutingAccelerator(entry, context);
3473
- });
3474
- return retVal;
3475
- };
3476
- const de_CustomRoutingDestinationDescription = (output, context) => {
3477
- return {
3478
- FromPort: (0, smithy_client_1.expectInt32)(output.FromPort),
3479
- Protocols: output.Protocols != null ? de_Protocols(output.Protocols, context) : undefined,
3480
- ToPort: (0, smithy_client_1.expectInt32)(output.ToPort),
3481
- };
3482
- };
3483
- const de_CustomRoutingDestinationDescriptions = (output, context) => {
3484
- const retVal = (output || [])
3485
- .filter((e) => e != null)
3486
- .map((entry) => {
3487
- if (entry === null) {
3488
- return null;
3489
- }
3490
- return de_CustomRoutingDestinationDescription(entry, context);
3491
- });
3492
- return retVal;
3493
- };
3494
- const de_CustomRoutingEndpointDescription = (output, context) => {
3495
- return {
3496
- EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
3497
- };
3498
- };
3499
- const de_CustomRoutingEndpointDescriptions = (output, context) => {
3500
- const retVal = (output || [])
3501
- .filter((e) => e != null)
3502
- .map((entry) => {
3503
- if (entry === null) {
3504
- return null;
3505
- }
3506
- return de_CustomRoutingEndpointDescription(entry, context);
3507
- });
3508
- return retVal;
3509
- };
3510
- const de_CustomRoutingEndpointGroup = (output, context) => {
3511
- return {
3512
- DestinationDescriptions: output.DestinationDescriptions != null
3513
- ? de_CustomRoutingDestinationDescriptions(output.DestinationDescriptions, context)
3514
- : undefined,
3515
- EndpointDescriptions: output.EndpointDescriptions != null
3516
- ? de_CustomRoutingEndpointDescriptions(output.EndpointDescriptions, context)
3517
- : undefined,
3518
- EndpointGroupArn: (0, smithy_client_1.expectString)(output.EndpointGroupArn),
3519
- EndpointGroupRegion: (0, smithy_client_1.expectString)(output.EndpointGroupRegion),
3520
- };
3521
- };
3522
- const de_CustomRoutingEndpointGroups = (output, context) => {
3523
- const retVal = (output || [])
3524
- .filter((e) => e != null)
3525
- .map((entry) => {
3526
- if (entry === null) {
3527
- return null;
3528
- }
3529
- return de_CustomRoutingEndpointGroup(entry, context);
3530
- });
3531
- return retVal;
3532
- };
3533
- const de_CustomRoutingListener = (output, context) => {
3534
- return {
3535
- ListenerArn: (0, smithy_client_1.expectString)(output.ListenerArn),
3536
- PortRanges: output.PortRanges != null ? de_PortRanges(output.PortRanges, context) : undefined,
3537
- };
3538
- };
3539
- const de_CustomRoutingListeners = (output, context) => {
3540
- const retVal = (output || [])
3541
- .filter((e) => e != null)
3542
- .map((entry) => {
3543
- if (entry === null) {
3544
- return null;
3545
- }
3546
- return de_CustomRoutingListener(entry, context);
3547
- });
3548
- return retVal;
3549
- };
3550
- const de_CustomRoutingProtocols = (output, context) => {
3551
- const retVal = (output || [])
3552
- .filter((e) => e != null)
3553
- .map((entry) => {
3554
- if (entry === null) {
3555
- return null;
3556
- }
3557
- return (0, smithy_client_1.expectString)(entry);
3558
- });
3559
- return retVal;
3560
- };
3561
- const de_DeprovisionByoipCidrResponse = (output, context) => {
3562
- return {
3563
- ByoipCidr: output.ByoipCidr != null ? de_ByoipCidr(output.ByoipCidr, context) : undefined,
3564
- };
3565
- };
3566
- const de_DescribeAcceleratorAttributesResponse = (output, context) => {
3567
- return {
3568
- AcceleratorAttributes: output.AcceleratorAttributes != null
3569
- ? de_AcceleratorAttributes(output.AcceleratorAttributes, context)
3570
- : undefined,
3571
- };
3572
- };
3573
- const de_DescribeAcceleratorResponse = (output, context) => {
3574
- return {
3575
- Accelerator: output.Accelerator != null ? de_Accelerator(output.Accelerator, context) : undefined,
3576
- };
3577
- };
3578
- const de_DescribeCustomRoutingAcceleratorAttributesResponse = (output, context) => {
3579
- return {
3580
- AcceleratorAttributes: output.AcceleratorAttributes != null
3581
- ? de_CustomRoutingAcceleratorAttributes(output.AcceleratorAttributes, context)
3582
- : undefined,
3583
- };
3584
- };
3585
- const de_DescribeCustomRoutingAcceleratorResponse = (output, context) => {
3586
- return {
3587
- Accelerator: output.Accelerator != null ? de_CustomRoutingAccelerator(output.Accelerator, context) : undefined,
3588
- };
3589
- };
3590
- const de_DescribeCustomRoutingEndpointGroupResponse = (output, context) => {
3591
- return {
3592
- EndpointGroup: output.EndpointGroup != null ? de_CustomRoutingEndpointGroup(output.EndpointGroup, context) : undefined,
3593
- };
3594
- };
3595
- const de_DescribeCustomRoutingListenerResponse = (output, context) => {
3596
- return {
3597
- Listener: output.Listener != null ? de_CustomRoutingListener(output.Listener, context) : undefined,
3598
- };
3599
- };
3600
- const de_DescribeEndpointGroupResponse = (output, context) => {
3601
- return {
3602
- EndpointGroup: output.EndpointGroup != null ? de_EndpointGroup(output.EndpointGroup, context) : undefined,
3603
- };
3604
- };
3605
- const de_DescribeListenerResponse = (output, context) => {
3606
- return {
3607
- Listener: output.Listener != null ? de_Listener(output.Listener, context) : undefined,
3608
- };
3609
- };
3610
- const de_DestinationPortMapping = (output, context) => {
3611
- return {
3612
- AcceleratorArn: (0, smithy_client_1.expectString)(output.AcceleratorArn),
3613
- AcceleratorSocketAddresses: output.AcceleratorSocketAddresses != null
3614
- ? de_SocketAddresses(output.AcceleratorSocketAddresses, context)
3615
- : undefined,
3616
- DestinationSocketAddress: output.DestinationSocketAddress != null ? de_SocketAddress(output.DestinationSocketAddress, context) : undefined,
3617
- DestinationTrafficState: (0, smithy_client_1.expectString)(output.DestinationTrafficState),
3618
- EndpointGroupArn: (0, smithy_client_1.expectString)(output.EndpointGroupArn),
3619
- EndpointGroupRegion: (0, smithy_client_1.expectString)(output.EndpointGroupRegion),
3620
- EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
3621
- IpAddressType: (0, smithy_client_1.expectString)(output.IpAddressType),
3622
- };
3623
- };
3624
- const de_DestinationPortMappings = (output, context) => {
3625
- const retVal = (output || [])
3626
- .filter((e) => e != null)
3627
- .map((entry) => {
3628
- if (entry === null) {
3629
- return null;
3630
- }
3631
- return de_DestinationPortMapping(entry, context);
3632
- });
3633
- return retVal;
3634
- };
3635
- const de_EndpointAlreadyExistsException = (output, context) => {
3636
- return {
3637
- Message: (0, smithy_client_1.expectString)(output.Message),
3638
- };
3639
- };
3640
- const de_EndpointDescription = (output, context) => {
3641
- return {
3642
- ClientIPPreservationEnabled: (0, smithy_client_1.expectBoolean)(output.ClientIPPreservationEnabled),
3643
- EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
3644
- HealthReason: (0, smithy_client_1.expectString)(output.HealthReason),
3645
- HealthState: (0, smithy_client_1.expectString)(output.HealthState),
3646
- Weight: (0, smithy_client_1.expectInt32)(output.Weight),
3647
- };
3648
- };
3649
- const de_EndpointDescriptions = (output, context) => {
3650
- const retVal = (output || [])
3651
- .filter((e) => e != null)
3652
- .map((entry) => {
3653
- if (entry === null) {
3654
- return null;
3655
- }
3656
- return de_EndpointDescription(entry, context);
3657
- });
3658
- return retVal;
3659
- };
3660
- const de_EndpointGroup = (output, context) => {
3661
- return {
3662
- EndpointDescriptions: output.EndpointDescriptions != null ? de_EndpointDescriptions(output.EndpointDescriptions, context) : undefined,
3663
- EndpointGroupArn: (0, smithy_client_1.expectString)(output.EndpointGroupArn),
3664
- EndpointGroupRegion: (0, smithy_client_1.expectString)(output.EndpointGroupRegion),
3665
- HealthCheckIntervalSeconds: (0, smithy_client_1.expectInt32)(output.HealthCheckIntervalSeconds),
3666
- HealthCheckPath: (0, smithy_client_1.expectString)(output.HealthCheckPath),
3667
- HealthCheckPort: (0, smithy_client_1.expectInt32)(output.HealthCheckPort),
3668
- HealthCheckProtocol: (0, smithy_client_1.expectString)(output.HealthCheckProtocol),
3669
- PortOverrides: output.PortOverrides != null ? de_PortOverrides(output.PortOverrides, context) : undefined,
3670
- ThresholdCount: (0, smithy_client_1.expectInt32)(output.ThresholdCount),
3671
- TrafficDialPercentage: (0, smithy_client_1.limitedParseFloat32)(output.TrafficDialPercentage),
3672
- };
3673
- };
3674
- const de_EndpointGroupAlreadyExistsException = (output, context) => {
3675
- return {
3676
- Message: (0, smithy_client_1.expectString)(output.Message),
3677
- };
3678
- };
3679
- const de_EndpointGroupNotFoundException = (output, context) => {
3680
- return {
3681
- Message: (0, smithy_client_1.expectString)(output.Message),
3682
- };
3683
- };
3684
- const de_EndpointGroups = (output, context) => {
3685
- const retVal = (output || [])
3686
- .filter((e) => e != null)
3687
- .map((entry) => {
3688
- if (entry === null) {
3689
- return null;
3690
- }
3691
- return de_EndpointGroup(entry, context);
3692
- });
3693
- return retVal;
3694
- };
3695
- const de_EndpointNotFoundException = (output, context) => {
3696
- return {
3697
- Message: (0, smithy_client_1.expectString)(output.Message),
3698
- };
3699
- };
3700
- const de_IncorrectCidrStateException = (output, context) => {
3701
- return {
3702
- Message: (0, smithy_client_1.expectString)(output.Message),
3703
- };
3704
- };
3705
- const de_InternalServiceErrorException = (output, context) => {
3706
- return {
3707
- Message: (0, smithy_client_1.expectString)(output.Message),
3708
- };
3709
- };
3710
- const de_InvalidArgumentException = (output, context) => {
3711
- return {
3712
- Message: (0, smithy_client_1.expectString)(output.Message),
3713
- };
3714
- };
3715
- const de_InvalidNextTokenException = (output, context) => {
3716
- return {
3717
- Message: (0, smithy_client_1.expectString)(output.Message),
3718
- };
3719
- };
3720
- const de_InvalidPortRangeException = (output, context) => {
3721
- return {
3722
- Message: (0, smithy_client_1.expectString)(output.Message),
3723
- };
3724
- };
3725
- const de_IpAddresses = (output, context) => {
3726
- const retVal = (output || [])
3727
- .filter((e) => e != null)
3728
- .map((entry) => {
3729
- if (entry === null) {
3730
- return null;
3731
- }
3732
- return (0, smithy_client_1.expectString)(entry);
3733
- });
3734
- return retVal;
3735
- };
3736
- const de_IpSet = (output, context) => {
3737
- return {
3738
- IpAddressFamily: (0, smithy_client_1.expectString)(output.IpAddressFamily),
3739
- IpAddresses: output.IpAddresses != null ? de_IpAddresses(output.IpAddresses, context) : undefined,
3740
- IpFamily: (0, smithy_client_1.expectString)(output.IpFamily),
3741
- };
3742
- };
3743
- const de_IpSets = (output, context) => {
3744
- const retVal = (output || [])
3745
- .filter((e) => e != null)
3746
- .map((entry) => {
3747
- if (entry === null) {
3748
- return null;
3749
- }
3750
- return de_IpSet(entry, context);
3751
- });
3752
- return retVal;
3753
- };
3754
- const de_LimitExceededException = (output, context) => {
3755
- return {
3756
- Message: (0, smithy_client_1.expectString)(output.Message),
3757
- };
3758
- };
3759
- const de_ListAcceleratorsResponse = (output, context) => {
3760
- return {
3761
- Accelerators: output.Accelerators != null ? de_Accelerators(output.Accelerators, context) : undefined,
3762
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3763
- };
3764
- };
3765
- const de_ListByoipCidrsResponse = (output, context) => {
3766
- return {
3767
- ByoipCidrs: output.ByoipCidrs != null ? de_ByoipCidrs(output.ByoipCidrs, context) : undefined,
3768
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3769
- };
3770
- };
3771
- const de_ListCustomRoutingAcceleratorsResponse = (output, context) => {
3772
- return {
3773
- Accelerators: output.Accelerators != null ? de_CustomRoutingAccelerators(output.Accelerators, context) : undefined,
3774
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3775
- };
3776
- };
3777
- const de_ListCustomRoutingEndpointGroupsResponse = (output, context) => {
3778
- return {
3779
- EndpointGroups: output.EndpointGroups != null ? de_CustomRoutingEndpointGroups(output.EndpointGroups, context) : undefined,
3780
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3781
- };
3782
- };
3783
- const de_ListCustomRoutingListenersResponse = (output, context) => {
3784
- return {
3785
- Listeners: output.Listeners != null ? de_CustomRoutingListeners(output.Listeners, context) : undefined,
3786
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3787
- };
3788
- };
3789
- const de_ListCustomRoutingPortMappingsByDestinationResponse = (output, context) => {
3790
- return {
3791
- DestinationPortMappings: output.DestinationPortMappings != null
3792
- ? de_DestinationPortMappings(output.DestinationPortMappings, context)
3793
- : undefined,
3794
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3795
- };
3796
- };
3797
- const de_ListCustomRoutingPortMappingsResponse = (output, context) => {
3798
- return {
3799
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3800
- PortMappings: output.PortMappings != null ? de_PortMappings(output.PortMappings, context) : undefined,
3801
- };
3802
- };
3803
- const de_ListEndpointGroupsResponse = (output, context) => {
3804
- return {
3805
- EndpointGroups: output.EndpointGroups != null ? de_EndpointGroups(output.EndpointGroups, context) : undefined,
3806
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3807
- };
3808
- };
3809
- const de_Listener = (output, context) => {
3810
- return {
3811
- ClientAffinity: (0, smithy_client_1.expectString)(output.ClientAffinity),
3812
- ListenerArn: (0, smithy_client_1.expectString)(output.ListenerArn),
3813
- PortRanges: output.PortRanges != null ? de_PortRanges(output.PortRanges, context) : undefined,
3814
- Protocol: (0, smithy_client_1.expectString)(output.Protocol),
3815
- };
3816
- };
3817
- const de_ListenerNotFoundException = (output, context) => {
3818
- return {
3819
- Message: (0, smithy_client_1.expectString)(output.Message),
3820
- };
3821
- };
3822
- const de_Listeners = (output, context) => {
3823
- const retVal = (output || [])
3824
- .filter((e) => e != null)
3825
- .map((entry) => {
3826
- if (entry === null) {
3827
- return null;
3828
- }
3829
- return de_Listener(entry, context);
3830
- });
3831
- return retVal;
3832
- };
3833
- const de_ListListenersResponse = (output, context) => {
3834
- return {
3835
- Listeners: output.Listeners != null ? de_Listeners(output.Listeners, context) : undefined,
3836
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3837
- };
3838
- };
3839
- const de_ListTagsForResourceResponse = (output, context) => {
3840
- return {
3841
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
3842
- };
3843
- };
3844
- const de_PortMapping = (output, context) => {
3845
- return {
3846
- AcceleratorPort: (0, smithy_client_1.expectInt32)(output.AcceleratorPort),
3847
- DestinationSocketAddress: output.DestinationSocketAddress != null ? de_SocketAddress(output.DestinationSocketAddress, context) : undefined,
3848
- DestinationTrafficState: (0, smithy_client_1.expectString)(output.DestinationTrafficState),
3849
- EndpointGroupArn: (0, smithy_client_1.expectString)(output.EndpointGroupArn),
3850
- EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
3851
- Protocols: output.Protocols != null ? de_CustomRoutingProtocols(output.Protocols, context) : undefined,
3852
- };
3853
- };
3854
- const de_PortMappings = (output, context) => {
3855
- const retVal = (output || [])
3856
- .filter((e) => e != null)
3857
- .map((entry) => {
3858
- if (entry === null) {
3859
- return null;
3860
- }
3861
- return de_PortMapping(entry, context);
3862
- });
3863
- return retVal;
3864
- };
3865
- const de_PortOverride = (output, context) => {
3866
- return {
3867
- EndpointPort: (0, smithy_client_1.expectInt32)(output.EndpointPort),
3868
- ListenerPort: (0, smithy_client_1.expectInt32)(output.ListenerPort),
3869
- };
3870
- };
3871
- const de_PortOverrides = (output, context) => {
3872
- const retVal = (output || [])
3873
- .filter((e) => e != null)
3874
- .map((entry) => {
3875
- if (entry === null) {
3876
- return null;
3877
- }
3878
- return de_PortOverride(entry, context);
3879
- });
3880
- return retVal;
3881
- };
3882
- const de_PortRange = (output, context) => {
3883
- return {
3884
- FromPort: (0, smithy_client_1.expectInt32)(output.FromPort),
3885
- ToPort: (0, smithy_client_1.expectInt32)(output.ToPort),
3886
- };
3887
- };
3888
- const de_PortRanges = (output, context) => {
3889
- const retVal = (output || [])
3890
- .filter((e) => e != null)
3891
- .map((entry) => {
3892
- if (entry === null) {
3893
- return null;
3894
- }
3895
- return de_PortRange(entry, context);
3896
- });
3897
- return retVal;
3898
- };
3899
- const de_Protocols = (output, context) => {
3900
- const retVal = (output || [])
3901
- .filter((e) => e != null)
3902
- .map((entry) => {
3903
- if (entry === null) {
3904
- return null;
3905
- }
3906
- return (0, smithy_client_1.expectString)(entry);
3907
- });
3908
- return retVal;
3909
- };
3910
- const de_ProvisionByoipCidrResponse = (output, context) => {
3911
- return {
3912
- ByoipCidr: output.ByoipCidr != null ? de_ByoipCidr(output.ByoipCidr, context) : undefined,
3913
- };
3914
- };
3915
- const de_SocketAddress = (output, context) => {
3916
- return {
3917
- IpAddress: (0, smithy_client_1.expectString)(output.IpAddress),
3918
- Port: (0, smithy_client_1.expectInt32)(output.Port),
3919
- };
3920
- };
3921
- const de_SocketAddresses = (output, context) => {
3922
- const retVal = (output || [])
3923
- .filter((e) => e != null)
3924
- .map((entry) => {
3925
- if (entry === null) {
3926
- return null;
3927
- }
3928
- return de_SocketAddress(entry, context);
3929
- });
3930
- return retVal;
3931
- };
3932
- const de_Tag = (output, context) => {
3933
- return {
3934
- Key: (0, smithy_client_1.expectString)(output.Key),
3935
- Value: (0, smithy_client_1.expectString)(output.Value),
3936
- };
3937
- };
3938
- const de_TagResourceResponse = (output, context) => {
3939
- return {};
3940
- };
3941
- const de_Tags = (output, context) => {
3942
- const retVal = (output || [])
3943
- .filter((e) => e != null)
3944
- .map((entry) => {
3945
- if (entry === null) {
3946
- return null;
3947
- }
3948
- return de_Tag(entry, context);
3949
- });
3950
- return retVal;
3951
- };
3952
- const de_TransactionInProgressException = (output, context) => {
3953
- return {
3954
- Message: (0, smithy_client_1.expectString)(output.Message),
3955
- };
3956
- };
3957
- const de_UntagResourceResponse = (output, context) => {
3958
- return {};
3959
- };
3960
- const de_UpdateAcceleratorAttributesResponse = (output, context) => {
3961
- return {
3962
- AcceleratorAttributes: output.AcceleratorAttributes != null
3963
- ? de_AcceleratorAttributes(output.AcceleratorAttributes, context)
3964
- : undefined,
3965
- };
3966
- };
3967
- const de_UpdateAcceleratorResponse = (output, context) => {
3968
- return {
3969
- Accelerator: output.Accelerator != null ? de_Accelerator(output.Accelerator, context) : undefined,
3970
- };
3971
- };
3972
- const de_UpdateCustomRoutingAcceleratorAttributesResponse = (output, context) => {
3973
- return {
3974
- AcceleratorAttributes: output.AcceleratorAttributes != null
3975
- ? de_CustomRoutingAcceleratorAttributes(output.AcceleratorAttributes, context)
3976
- : undefined,
3977
- };
3978
- };
3979
- const de_UpdateCustomRoutingAcceleratorResponse = (output, context) => {
3980
- return {
3981
- Accelerator: output.Accelerator != null ? de_CustomRoutingAccelerator(output.Accelerator, context) : undefined,
3982
- };
3983
- };
3984
- const de_UpdateCustomRoutingListenerResponse = (output, context) => {
3985
- return {
3986
- Listener: output.Listener != null ? de_CustomRoutingListener(output.Listener, context) : undefined,
3987
- };
3988
- };
3989
2836
  const de_UpdateEndpointGroupResponse = (output, context) => {
3990
- return {
3991
- EndpointGroup: output.EndpointGroup != null ? de_EndpointGroup(output.EndpointGroup, context) : undefined,
3992
- };
3993
- };
3994
- const de_UpdateListenerResponse = (output, context) => {
3995
- return {
3996
- Listener: output.Listener != null ? de_Listener(output.Listener, context) : undefined,
3997
- };
2837
+ return (0, smithy_client_1.take)(output, {
2838
+ EndpointGroup: (_) => de_EndpointGroup(_, context),
2839
+ });
3998
2840
  };
3999
2841
  const de_WithdrawByoipCidrResponse = (output, context) => {
4000
- return {
4001
- ByoipCidr: output.ByoipCidr != null ? de_ByoipCidr(output.ByoipCidr, context) : undefined,
4002
- };
2842
+ return (0, smithy_client_1.take)(output, {
2843
+ ByoipCidr: (_) => de_ByoipCidr(_, context),
2844
+ });
4003
2845
  };
4004
2846
  const deserializeMetadata = (output) => ({
4005
2847
  httpStatusCode: output.statusCode,
@@ -4014,6 +2856,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
4014
2856
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4015
2857
  };
4016
2858
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2859
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException);
4017
2860
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4018
2861
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4019
2862
  const contents = {
@@ -4032,6 +2875,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
4032
2875
  }
4033
2876
  return new protocol_http_1.HttpRequest(contents);
4034
2877
  };
2878
+ function sharedHeaders(operation) {
2879
+ return {
2880
+ "content-type": "application/x-amz-json-1.1",
2881
+ "x-amz-target": `GlobalAccelerator_V20180706.${operation}`,
2882
+ };
2883
+ }
4035
2884
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4036
2885
  if (encoded.length) {
4037
2886
  return JSON.parse(encoded);