@aws-sdk/client-apprunner 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.
@@ -1,320 +1,215 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { AppRunnerServiceException as __BaseException } from "../models/AppRunnerServiceException";
4
4
  import { InternalServiceErrorException, InvalidRequestException, InvalidStateException, ResourceNotFoundException, ServiceQuotaExceededException, } from "../models/models_0";
5
5
  export const se_AssociateCustomDomainCommand = async (input, context) => {
6
- const headers = {
7
- "content-type": "application/x-amz-json-1.0",
8
- "x-amz-target": "AppRunner.AssociateCustomDomain",
9
- };
6
+ const headers = sharedHeaders("AssociateCustomDomain");
10
7
  let body;
11
- body = JSON.stringify(se_AssociateCustomDomainRequest(input, context));
8
+ body = JSON.stringify(_json(input));
12
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
10
  };
14
11
  export const se_CreateAutoScalingConfigurationCommand = async (input, context) => {
15
- const headers = {
16
- "content-type": "application/x-amz-json-1.0",
17
- "x-amz-target": "AppRunner.CreateAutoScalingConfiguration",
18
- };
12
+ const headers = sharedHeaders("CreateAutoScalingConfiguration");
19
13
  let body;
20
- body = JSON.stringify(se_CreateAutoScalingConfigurationRequest(input, context));
14
+ body = JSON.stringify(_json(input));
21
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
16
  };
23
17
  export const se_CreateConnectionCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-amz-json-1.0",
26
- "x-amz-target": "AppRunner.CreateConnection",
27
- };
18
+ const headers = sharedHeaders("CreateConnection");
28
19
  let body;
29
- body = JSON.stringify(se_CreateConnectionRequest(input, context));
20
+ body = JSON.stringify(_json(input));
30
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
22
  };
32
23
  export const se_CreateObservabilityConfigurationCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.0",
35
- "x-amz-target": "AppRunner.CreateObservabilityConfiguration",
36
- };
24
+ const headers = sharedHeaders("CreateObservabilityConfiguration");
37
25
  let body;
38
- body = JSON.stringify(se_CreateObservabilityConfigurationRequest(input, context));
26
+ body = JSON.stringify(_json(input));
39
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
28
  };
41
29
  export const se_CreateServiceCommand = async (input, context) => {
42
- const headers = {
43
- "content-type": "application/x-amz-json-1.0",
44
- "x-amz-target": "AppRunner.CreateService",
45
- };
30
+ const headers = sharedHeaders("CreateService");
46
31
  let body;
47
- body = JSON.stringify(se_CreateServiceRequest(input, context));
32
+ body = JSON.stringify(_json(input));
48
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
34
  };
50
35
  export const se_CreateVpcConnectorCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.0",
53
- "x-amz-target": "AppRunner.CreateVpcConnector",
54
- };
36
+ const headers = sharedHeaders("CreateVpcConnector");
55
37
  let body;
56
- body = JSON.stringify(se_CreateVpcConnectorRequest(input, context));
38
+ body = JSON.stringify(_json(input));
57
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
40
  };
59
41
  export const se_CreateVpcIngressConnectionCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.0",
62
- "x-amz-target": "AppRunner.CreateVpcIngressConnection",
63
- };
42
+ const headers = sharedHeaders("CreateVpcIngressConnection");
64
43
  let body;
65
- body = JSON.stringify(se_CreateVpcIngressConnectionRequest(input, context));
44
+ body = JSON.stringify(_json(input));
66
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
46
  };
68
47
  export const se_DeleteAutoScalingConfigurationCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.0",
71
- "x-amz-target": "AppRunner.DeleteAutoScalingConfiguration",
72
- };
48
+ const headers = sharedHeaders("DeleteAutoScalingConfiguration");
73
49
  let body;
74
- body = JSON.stringify(se_DeleteAutoScalingConfigurationRequest(input, context));
50
+ body = JSON.stringify(_json(input));
75
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
52
  };
77
53
  export const se_DeleteConnectionCommand = async (input, context) => {
78
- const headers = {
79
- "content-type": "application/x-amz-json-1.0",
80
- "x-amz-target": "AppRunner.DeleteConnection",
81
- };
54
+ const headers = sharedHeaders("DeleteConnection");
82
55
  let body;
83
- body = JSON.stringify(se_DeleteConnectionRequest(input, context));
56
+ body = JSON.stringify(_json(input));
84
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
58
  };
86
59
  export const se_DeleteObservabilityConfigurationCommand = async (input, context) => {
87
- const headers = {
88
- "content-type": "application/x-amz-json-1.0",
89
- "x-amz-target": "AppRunner.DeleteObservabilityConfiguration",
90
- };
60
+ const headers = sharedHeaders("DeleteObservabilityConfiguration");
91
61
  let body;
92
- body = JSON.stringify(se_DeleteObservabilityConfigurationRequest(input, context));
62
+ body = JSON.stringify(_json(input));
93
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
64
  };
95
65
  export const se_DeleteServiceCommand = async (input, context) => {
96
- const headers = {
97
- "content-type": "application/x-amz-json-1.0",
98
- "x-amz-target": "AppRunner.DeleteService",
99
- };
66
+ const headers = sharedHeaders("DeleteService");
100
67
  let body;
101
- body = JSON.stringify(se_DeleteServiceRequest(input, context));
68
+ body = JSON.stringify(_json(input));
102
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
70
  };
104
71
  export const se_DeleteVpcConnectorCommand = async (input, context) => {
105
- const headers = {
106
- "content-type": "application/x-amz-json-1.0",
107
- "x-amz-target": "AppRunner.DeleteVpcConnector",
108
- };
72
+ const headers = sharedHeaders("DeleteVpcConnector");
109
73
  let body;
110
- body = JSON.stringify(se_DeleteVpcConnectorRequest(input, context));
74
+ body = JSON.stringify(_json(input));
111
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
76
  };
113
77
  export const se_DeleteVpcIngressConnectionCommand = async (input, context) => {
114
- const headers = {
115
- "content-type": "application/x-amz-json-1.0",
116
- "x-amz-target": "AppRunner.DeleteVpcIngressConnection",
117
- };
78
+ const headers = sharedHeaders("DeleteVpcIngressConnection");
118
79
  let body;
119
- body = JSON.stringify(se_DeleteVpcIngressConnectionRequest(input, context));
80
+ body = JSON.stringify(_json(input));
120
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
121
82
  };
122
83
  export const se_DescribeAutoScalingConfigurationCommand = async (input, context) => {
123
- const headers = {
124
- "content-type": "application/x-amz-json-1.0",
125
- "x-amz-target": "AppRunner.DescribeAutoScalingConfiguration",
126
- };
84
+ const headers = sharedHeaders("DescribeAutoScalingConfiguration");
127
85
  let body;
128
- body = JSON.stringify(se_DescribeAutoScalingConfigurationRequest(input, context));
86
+ body = JSON.stringify(_json(input));
129
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
88
  };
131
89
  export const se_DescribeCustomDomainsCommand = async (input, context) => {
132
- const headers = {
133
- "content-type": "application/x-amz-json-1.0",
134
- "x-amz-target": "AppRunner.DescribeCustomDomains",
135
- };
90
+ const headers = sharedHeaders("DescribeCustomDomains");
136
91
  let body;
137
- body = JSON.stringify(se_DescribeCustomDomainsRequest(input, context));
92
+ body = JSON.stringify(_json(input));
138
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
94
  };
140
95
  export const se_DescribeObservabilityConfigurationCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.0",
143
- "x-amz-target": "AppRunner.DescribeObservabilityConfiguration",
144
- };
96
+ const headers = sharedHeaders("DescribeObservabilityConfiguration");
145
97
  let body;
146
- body = JSON.stringify(se_DescribeObservabilityConfigurationRequest(input, context));
98
+ body = JSON.stringify(_json(input));
147
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
100
  };
149
101
  export const se_DescribeServiceCommand = async (input, context) => {
150
- const headers = {
151
- "content-type": "application/x-amz-json-1.0",
152
- "x-amz-target": "AppRunner.DescribeService",
153
- };
102
+ const headers = sharedHeaders("DescribeService");
154
103
  let body;
155
- body = JSON.stringify(se_DescribeServiceRequest(input, context));
104
+ body = JSON.stringify(_json(input));
156
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
106
  };
158
107
  export const se_DescribeVpcConnectorCommand = async (input, context) => {
159
- const headers = {
160
- "content-type": "application/x-amz-json-1.0",
161
- "x-amz-target": "AppRunner.DescribeVpcConnector",
162
- };
108
+ const headers = sharedHeaders("DescribeVpcConnector");
163
109
  let body;
164
- body = JSON.stringify(se_DescribeVpcConnectorRequest(input, context));
110
+ body = JSON.stringify(_json(input));
165
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
112
  };
167
113
  export const se_DescribeVpcIngressConnectionCommand = async (input, context) => {
168
- const headers = {
169
- "content-type": "application/x-amz-json-1.0",
170
- "x-amz-target": "AppRunner.DescribeVpcIngressConnection",
171
- };
114
+ const headers = sharedHeaders("DescribeVpcIngressConnection");
172
115
  let body;
173
- body = JSON.stringify(se_DescribeVpcIngressConnectionRequest(input, context));
116
+ body = JSON.stringify(_json(input));
174
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
118
  };
176
119
  export const se_DisassociateCustomDomainCommand = async (input, context) => {
177
- const headers = {
178
- "content-type": "application/x-amz-json-1.0",
179
- "x-amz-target": "AppRunner.DisassociateCustomDomain",
180
- };
120
+ const headers = sharedHeaders("DisassociateCustomDomain");
181
121
  let body;
182
- body = JSON.stringify(se_DisassociateCustomDomainRequest(input, context));
122
+ body = JSON.stringify(_json(input));
183
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
124
  };
185
125
  export const se_ListAutoScalingConfigurationsCommand = async (input, context) => {
186
- const headers = {
187
- "content-type": "application/x-amz-json-1.0",
188
- "x-amz-target": "AppRunner.ListAutoScalingConfigurations",
189
- };
126
+ const headers = sharedHeaders("ListAutoScalingConfigurations");
190
127
  let body;
191
- body = JSON.stringify(se_ListAutoScalingConfigurationsRequest(input, context));
128
+ body = JSON.stringify(_json(input));
192
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
193
130
  };
194
131
  export const se_ListConnectionsCommand = async (input, context) => {
195
- const headers = {
196
- "content-type": "application/x-amz-json-1.0",
197
- "x-amz-target": "AppRunner.ListConnections",
198
- };
132
+ const headers = sharedHeaders("ListConnections");
199
133
  let body;
200
- body = JSON.stringify(se_ListConnectionsRequest(input, context));
134
+ body = JSON.stringify(_json(input));
201
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
136
  };
203
137
  export const se_ListObservabilityConfigurationsCommand = async (input, context) => {
204
- const headers = {
205
- "content-type": "application/x-amz-json-1.0",
206
- "x-amz-target": "AppRunner.ListObservabilityConfigurations",
207
- };
138
+ const headers = sharedHeaders("ListObservabilityConfigurations");
208
139
  let body;
209
- body = JSON.stringify(se_ListObservabilityConfigurationsRequest(input, context));
140
+ body = JSON.stringify(_json(input));
210
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
142
  };
212
143
  export const se_ListOperationsCommand = async (input, context) => {
213
- const headers = {
214
- "content-type": "application/x-amz-json-1.0",
215
- "x-amz-target": "AppRunner.ListOperations",
216
- };
144
+ const headers = sharedHeaders("ListOperations");
217
145
  let body;
218
- body = JSON.stringify(se_ListOperationsRequest(input, context));
146
+ body = JSON.stringify(_json(input));
219
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
148
  };
221
149
  export const se_ListServicesCommand = async (input, context) => {
222
- const headers = {
223
- "content-type": "application/x-amz-json-1.0",
224
- "x-amz-target": "AppRunner.ListServices",
225
- };
150
+ const headers = sharedHeaders("ListServices");
226
151
  let body;
227
- body = JSON.stringify(se_ListServicesRequest(input, context));
152
+ body = JSON.stringify(_json(input));
228
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
229
154
  };
230
155
  export const se_ListTagsForResourceCommand = async (input, context) => {
231
- const headers = {
232
- "content-type": "application/x-amz-json-1.0",
233
- "x-amz-target": "AppRunner.ListTagsForResource",
234
- };
156
+ const headers = sharedHeaders("ListTagsForResource");
235
157
  let body;
236
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
158
+ body = JSON.stringify(_json(input));
237
159
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
160
  };
239
161
  export const se_ListVpcConnectorsCommand = async (input, context) => {
240
- const headers = {
241
- "content-type": "application/x-amz-json-1.0",
242
- "x-amz-target": "AppRunner.ListVpcConnectors",
243
- };
162
+ const headers = sharedHeaders("ListVpcConnectors");
244
163
  let body;
245
- body = JSON.stringify(se_ListVpcConnectorsRequest(input, context));
164
+ body = JSON.stringify(_json(input));
246
165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
166
  };
248
167
  export const se_ListVpcIngressConnectionsCommand = async (input, context) => {
249
- const headers = {
250
- "content-type": "application/x-amz-json-1.0",
251
- "x-amz-target": "AppRunner.ListVpcIngressConnections",
252
- };
168
+ const headers = sharedHeaders("ListVpcIngressConnections");
253
169
  let body;
254
- body = JSON.stringify(se_ListVpcIngressConnectionsRequest(input, context));
170
+ body = JSON.stringify(_json(input));
255
171
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
172
  };
257
173
  export const se_PauseServiceCommand = async (input, context) => {
258
- const headers = {
259
- "content-type": "application/x-amz-json-1.0",
260
- "x-amz-target": "AppRunner.PauseService",
261
- };
174
+ const headers = sharedHeaders("PauseService");
262
175
  let body;
263
- body = JSON.stringify(se_PauseServiceRequest(input, context));
176
+ body = JSON.stringify(_json(input));
264
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
265
178
  };
266
179
  export const se_ResumeServiceCommand = async (input, context) => {
267
- const headers = {
268
- "content-type": "application/x-amz-json-1.0",
269
- "x-amz-target": "AppRunner.ResumeService",
270
- };
180
+ const headers = sharedHeaders("ResumeService");
271
181
  let body;
272
- body = JSON.stringify(se_ResumeServiceRequest(input, context));
182
+ body = JSON.stringify(_json(input));
273
183
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
184
  };
275
185
  export const se_StartDeploymentCommand = async (input, context) => {
276
- const headers = {
277
- "content-type": "application/x-amz-json-1.0",
278
- "x-amz-target": "AppRunner.StartDeployment",
279
- };
186
+ const headers = sharedHeaders("StartDeployment");
280
187
  let body;
281
- body = JSON.stringify(se_StartDeploymentRequest(input, context));
188
+ body = JSON.stringify(_json(input));
282
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
283
190
  };
284
191
  export const se_TagResourceCommand = async (input, context) => {
285
- const headers = {
286
- "content-type": "application/x-amz-json-1.0",
287
- "x-amz-target": "AppRunner.TagResource",
288
- };
192
+ const headers = sharedHeaders("TagResource");
289
193
  let body;
290
- body = JSON.stringify(se_TagResourceRequest(input, context));
194
+ body = JSON.stringify(_json(input));
291
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
292
196
  };
293
197
  export const se_UntagResourceCommand = async (input, context) => {
294
- const headers = {
295
- "content-type": "application/x-amz-json-1.0",
296
- "x-amz-target": "AppRunner.UntagResource",
297
- };
198
+ const headers = sharedHeaders("UntagResource");
298
199
  let body;
299
- body = JSON.stringify(se_UntagResourceRequest(input, context));
200
+ body = JSON.stringify(_json(input));
300
201
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
202
  };
302
203
  export const se_UpdateServiceCommand = async (input, context) => {
303
- const headers = {
304
- "content-type": "application/x-amz-json-1.0",
305
- "x-amz-target": "AppRunner.UpdateService",
306
- };
204
+ const headers = sharedHeaders("UpdateService");
307
205
  let body;
308
- body = JSON.stringify(se_UpdateServiceRequest(input, context));
206
+ body = JSON.stringify(_json(input));
309
207
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
310
208
  };
311
209
  export const se_UpdateVpcIngressConnectionCommand = async (input, context) => {
312
- const headers = {
313
- "content-type": "application/x-amz-json-1.0",
314
- "x-amz-target": "AppRunner.UpdateVpcIngressConnection",
315
- };
210
+ const headers = sharedHeaders("UpdateVpcIngressConnection");
316
211
  let body;
317
- body = JSON.stringify(se_UpdateVpcIngressConnectionRequest(input, context));
212
+ body = JSON.stringify(_json(input));
318
213
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
319
214
  };
320
215
  export const de_AssociateCustomDomainCommand = async (output, context) => {
@@ -323,12 +218,12 @@ export const de_AssociateCustomDomainCommand = async (output, context) => {
323
218
  }
324
219
  const data = await parseBody(output.body, context);
325
220
  let contents = {};
326
- contents = de_AssociateCustomDomainResponse(data, context);
221
+ contents = _json(data);
327
222
  const response = {
328
223
  $metadata: deserializeMetadata(output),
329
224
  ...contents,
330
225
  };
331
- return Promise.resolve(response);
226
+ return response;
332
227
  };
333
228
  const de_AssociateCustomDomainCommandError = async (output, context) => {
334
229
  const parsedOutput = {
@@ -348,10 +243,9 @@ const de_AssociateCustomDomainCommandError = async (output, context) => {
348
243
  throw await de_InvalidStateExceptionRes(parsedOutput, context);
349
244
  default:
350
245
  const parsedBody = parsedOutput.body;
351
- throwDefaultError({
246
+ return throwDefaultError({
352
247
  output,
353
248
  parsedBody,
354
- exceptionCtor: __BaseException,
355
249
  errorCode,
356
250
  });
357
251
  }
@@ -367,7 +261,7 @@ export const de_CreateAutoScalingConfigurationCommand = async (output, context)
367
261
  $metadata: deserializeMetadata(output),
368
262
  ...contents,
369
263
  };
370
- return Promise.resolve(response);
264
+ return response;
371
265
  };
372
266
  const de_CreateAutoScalingConfigurationCommandError = async (output, context) => {
373
267
  const parsedOutput = {
@@ -387,10 +281,9 @@ const de_CreateAutoScalingConfigurationCommandError = async (output, context) =>
387
281
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
388
282
  default:
389
283
  const parsedBody = parsedOutput.body;
390
- throwDefaultError({
284
+ return throwDefaultError({
391
285
  output,
392
286
  parsedBody,
393
- exceptionCtor: __BaseException,
394
287
  errorCode,
395
288
  });
396
289
  }
@@ -406,7 +299,7 @@ export const de_CreateConnectionCommand = async (output, context) => {
406
299
  $metadata: deserializeMetadata(output),
407
300
  ...contents,
408
301
  };
409
- return Promise.resolve(response);
302
+ return response;
410
303
  };
411
304
  const de_CreateConnectionCommandError = async (output, context) => {
412
305
  const parsedOutput = {
@@ -426,10 +319,9 @@ const de_CreateConnectionCommandError = async (output, context) => {
426
319
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
427
320
  default:
428
321
  const parsedBody = parsedOutput.body;
429
- throwDefaultError({
322
+ return throwDefaultError({
430
323
  output,
431
324
  parsedBody,
432
- exceptionCtor: __BaseException,
433
325
  errorCode,
434
326
  });
435
327
  }
@@ -445,7 +337,7 @@ export const de_CreateObservabilityConfigurationCommand = async (output, context
445
337
  $metadata: deserializeMetadata(output),
446
338
  ...contents,
447
339
  };
448
- return Promise.resolve(response);
340
+ return response;
449
341
  };
450
342
  const de_CreateObservabilityConfigurationCommandError = async (output, context) => {
451
343
  const parsedOutput = {
@@ -465,10 +357,9 @@ const de_CreateObservabilityConfigurationCommandError = async (output, context)
465
357
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
466
358
  default:
467
359
  const parsedBody = parsedOutput.body;
468
- throwDefaultError({
360
+ return throwDefaultError({
469
361
  output,
470
362
  parsedBody,
471
- exceptionCtor: __BaseException,
472
363
  errorCode,
473
364
  });
474
365
  }
@@ -484,7 +375,7 @@ export const de_CreateServiceCommand = async (output, context) => {
484
375
  $metadata: deserializeMetadata(output),
485
376
  ...contents,
486
377
  };
487
- return Promise.resolve(response);
378
+ return response;
488
379
  };
489
380
  const de_CreateServiceCommandError = async (output, context) => {
490
381
  const parsedOutput = {
@@ -504,10 +395,9 @@ const de_CreateServiceCommandError = async (output, context) => {
504
395
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
505
396
  default:
506
397
  const parsedBody = parsedOutput.body;
507
- throwDefaultError({
398
+ return throwDefaultError({
508
399
  output,
509
400
  parsedBody,
510
- exceptionCtor: __BaseException,
511
401
  errorCode,
512
402
  });
513
403
  }
@@ -523,7 +413,7 @@ export const de_CreateVpcConnectorCommand = async (output, context) => {
523
413
  $metadata: deserializeMetadata(output),
524
414
  ...contents,
525
415
  };
526
- return Promise.resolve(response);
416
+ return response;
527
417
  };
528
418
  const de_CreateVpcConnectorCommandError = async (output, context) => {
529
419
  const parsedOutput = {
@@ -543,10 +433,9 @@ const de_CreateVpcConnectorCommandError = async (output, context) => {
543
433
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
544
434
  default:
545
435
  const parsedBody = parsedOutput.body;
546
- throwDefaultError({
436
+ return throwDefaultError({
547
437
  output,
548
438
  parsedBody,
549
- exceptionCtor: __BaseException,
550
439
  errorCode,
551
440
  });
552
441
  }
@@ -562,7 +451,7 @@ export const de_CreateVpcIngressConnectionCommand = async (output, context) => {
562
451
  $metadata: deserializeMetadata(output),
563
452
  ...contents,
564
453
  };
565
- return Promise.resolve(response);
454
+ return response;
566
455
  };
567
456
  const de_CreateVpcIngressConnectionCommandError = async (output, context) => {
568
457
  const parsedOutput = {
@@ -585,10 +474,9 @@ const de_CreateVpcIngressConnectionCommandError = async (output, context) => {
585
474
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
586
475
  default:
587
476
  const parsedBody = parsedOutput.body;
588
- throwDefaultError({
477
+ return throwDefaultError({
589
478
  output,
590
479
  parsedBody,
591
- exceptionCtor: __BaseException,
592
480
  errorCode,
593
481
  });
594
482
  }
@@ -604,7 +492,7 @@ export const de_DeleteAutoScalingConfigurationCommand = async (output, context)
604
492
  $metadata: deserializeMetadata(output),
605
493
  ...contents,
606
494
  };
607
- return Promise.resolve(response);
495
+ return response;
608
496
  };
609
497
  const de_DeleteAutoScalingConfigurationCommandError = async (output, context) => {
610
498
  const parsedOutput = {
@@ -624,10 +512,9 @@ const de_DeleteAutoScalingConfigurationCommandError = async (output, context) =>
624
512
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
625
513
  default:
626
514
  const parsedBody = parsedOutput.body;
627
- throwDefaultError({
515
+ return throwDefaultError({
628
516
  output,
629
517
  parsedBody,
630
- exceptionCtor: __BaseException,
631
518
  errorCode,
632
519
  });
633
520
  }
@@ -643,7 +530,7 @@ export const de_DeleteConnectionCommand = async (output, context) => {
643
530
  $metadata: deserializeMetadata(output),
644
531
  ...contents,
645
532
  };
646
- return Promise.resolve(response);
533
+ return response;
647
534
  };
648
535
  const de_DeleteConnectionCommandError = async (output, context) => {
649
536
  const parsedOutput = {
@@ -663,10 +550,9 @@ const de_DeleteConnectionCommandError = async (output, context) => {
663
550
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
664
551
  default:
665
552
  const parsedBody = parsedOutput.body;
666
- throwDefaultError({
553
+ return throwDefaultError({
667
554
  output,
668
555
  parsedBody,
669
- exceptionCtor: __BaseException,
670
556
  errorCode,
671
557
  });
672
558
  }
@@ -682,7 +568,7 @@ export const de_DeleteObservabilityConfigurationCommand = async (output, context
682
568
  $metadata: deserializeMetadata(output),
683
569
  ...contents,
684
570
  };
685
- return Promise.resolve(response);
571
+ return response;
686
572
  };
687
573
  const de_DeleteObservabilityConfigurationCommandError = async (output, context) => {
688
574
  const parsedOutput = {
@@ -702,10 +588,9 @@ const de_DeleteObservabilityConfigurationCommandError = async (output, context)
702
588
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
703
589
  default:
704
590
  const parsedBody = parsedOutput.body;
705
- throwDefaultError({
591
+ return throwDefaultError({
706
592
  output,
707
593
  parsedBody,
708
- exceptionCtor: __BaseException,
709
594
  errorCode,
710
595
  });
711
596
  }
@@ -721,7 +606,7 @@ export const de_DeleteServiceCommand = async (output, context) => {
721
606
  $metadata: deserializeMetadata(output),
722
607
  ...contents,
723
608
  };
724
- return Promise.resolve(response);
609
+ return response;
725
610
  };
726
611
  const de_DeleteServiceCommandError = async (output, context) => {
727
612
  const parsedOutput = {
@@ -744,10 +629,9 @@ const de_DeleteServiceCommandError = async (output, context) => {
744
629
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
745
630
  default:
746
631
  const parsedBody = parsedOutput.body;
747
- throwDefaultError({
632
+ return throwDefaultError({
748
633
  output,
749
634
  parsedBody,
750
- exceptionCtor: __BaseException,
751
635
  errorCode,
752
636
  });
753
637
  }
@@ -763,7 +647,7 @@ export const de_DeleteVpcConnectorCommand = async (output, context) => {
763
647
  $metadata: deserializeMetadata(output),
764
648
  ...contents,
765
649
  };
766
- return Promise.resolve(response);
650
+ return response;
767
651
  };
768
652
  const de_DeleteVpcConnectorCommandError = async (output, context) => {
769
653
  const parsedOutput = {
@@ -783,10 +667,9 @@ const de_DeleteVpcConnectorCommandError = async (output, context) => {
783
667
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
784
668
  default:
785
669
  const parsedBody = parsedOutput.body;
786
- throwDefaultError({
670
+ return throwDefaultError({
787
671
  output,
788
672
  parsedBody,
789
- exceptionCtor: __BaseException,
790
673
  errorCode,
791
674
  });
792
675
  }
@@ -802,7 +685,7 @@ export const de_DeleteVpcIngressConnectionCommand = async (output, context) => {
802
685
  $metadata: deserializeMetadata(output),
803
686
  ...contents,
804
687
  };
805
- return Promise.resolve(response);
688
+ return response;
806
689
  };
807
690
  const de_DeleteVpcIngressConnectionCommandError = async (output, context) => {
808
691
  const parsedOutput = {
@@ -825,10 +708,9 @@ const de_DeleteVpcIngressConnectionCommandError = async (output, context) => {
825
708
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
826
709
  default:
827
710
  const parsedBody = parsedOutput.body;
828
- throwDefaultError({
711
+ return throwDefaultError({
829
712
  output,
830
713
  parsedBody,
831
- exceptionCtor: __BaseException,
832
714
  errorCode,
833
715
  });
834
716
  }
@@ -844,7 +726,7 @@ export const de_DescribeAutoScalingConfigurationCommand = async (output, context
844
726
  $metadata: deserializeMetadata(output),
845
727
  ...contents,
846
728
  };
847
- return Promise.resolve(response);
729
+ return response;
848
730
  };
849
731
  const de_DescribeAutoScalingConfigurationCommandError = async (output, context) => {
850
732
  const parsedOutput = {
@@ -864,10 +746,9 @@ const de_DescribeAutoScalingConfigurationCommandError = async (output, context)
864
746
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
865
747
  default:
866
748
  const parsedBody = parsedOutput.body;
867
- throwDefaultError({
749
+ return throwDefaultError({
868
750
  output,
869
751
  parsedBody,
870
- exceptionCtor: __BaseException,
871
752
  errorCode,
872
753
  });
873
754
  }
@@ -878,12 +759,12 @@ export const de_DescribeCustomDomainsCommand = async (output, context) => {
878
759
  }
879
760
  const data = await parseBody(output.body, context);
880
761
  let contents = {};
881
- contents = de_DescribeCustomDomainsResponse(data, context);
762
+ contents = _json(data);
882
763
  const response = {
883
764
  $metadata: deserializeMetadata(output),
884
765
  ...contents,
885
766
  };
886
- return Promise.resolve(response);
767
+ return response;
887
768
  };
888
769
  const de_DescribeCustomDomainsCommandError = async (output, context) => {
889
770
  const parsedOutput = {
@@ -903,10 +784,9 @@ const de_DescribeCustomDomainsCommandError = async (output, context) => {
903
784
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
904
785
  default:
905
786
  const parsedBody = parsedOutput.body;
906
- throwDefaultError({
787
+ return throwDefaultError({
907
788
  output,
908
789
  parsedBody,
909
- exceptionCtor: __BaseException,
910
790
  errorCode,
911
791
  });
912
792
  }
@@ -922,7 +802,7 @@ export const de_DescribeObservabilityConfigurationCommand = async (output, conte
922
802
  $metadata: deserializeMetadata(output),
923
803
  ...contents,
924
804
  };
925
- return Promise.resolve(response);
805
+ return response;
926
806
  };
927
807
  const de_DescribeObservabilityConfigurationCommandError = async (output, context) => {
928
808
  const parsedOutput = {
@@ -942,10 +822,9 @@ const de_DescribeObservabilityConfigurationCommandError = async (output, context
942
822
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
943
823
  default:
944
824
  const parsedBody = parsedOutput.body;
945
- throwDefaultError({
825
+ return throwDefaultError({
946
826
  output,
947
827
  parsedBody,
948
- exceptionCtor: __BaseException,
949
828
  errorCode,
950
829
  });
951
830
  }
@@ -961,7 +840,7 @@ export const de_DescribeServiceCommand = async (output, context) => {
961
840
  $metadata: deserializeMetadata(output),
962
841
  ...contents,
963
842
  };
964
- return Promise.resolve(response);
843
+ return response;
965
844
  };
966
845
  const de_DescribeServiceCommandError = async (output, context) => {
967
846
  const parsedOutput = {
@@ -981,10 +860,9 @@ const de_DescribeServiceCommandError = async (output, context) => {
981
860
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
982
861
  default:
983
862
  const parsedBody = parsedOutput.body;
984
- throwDefaultError({
863
+ return throwDefaultError({
985
864
  output,
986
865
  parsedBody,
987
- exceptionCtor: __BaseException,
988
866
  errorCode,
989
867
  });
990
868
  }
@@ -1000,7 +878,7 @@ export const de_DescribeVpcConnectorCommand = async (output, context) => {
1000
878
  $metadata: deserializeMetadata(output),
1001
879
  ...contents,
1002
880
  };
1003
- return Promise.resolve(response);
881
+ return response;
1004
882
  };
1005
883
  const de_DescribeVpcConnectorCommandError = async (output, context) => {
1006
884
  const parsedOutput = {
@@ -1020,10 +898,9 @@ const de_DescribeVpcConnectorCommandError = async (output, context) => {
1020
898
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1021
899
  default:
1022
900
  const parsedBody = parsedOutput.body;
1023
- throwDefaultError({
901
+ return throwDefaultError({
1024
902
  output,
1025
903
  parsedBody,
1026
- exceptionCtor: __BaseException,
1027
904
  errorCode,
1028
905
  });
1029
906
  }
@@ -1039,7 +916,7 @@ export const de_DescribeVpcIngressConnectionCommand = async (output, context) =>
1039
916
  $metadata: deserializeMetadata(output),
1040
917
  ...contents,
1041
918
  };
1042
- return Promise.resolve(response);
919
+ return response;
1043
920
  };
1044
921
  const de_DescribeVpcIngressConnectionCommandError = async (output, context) => {
1045
922
  const parsedOutput = {
@@ -1059,10 +936,9 @@ const de_DescribeVpcIngressConnectionCommandError = async (output, context) => {
1059
936
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1060
937
  default:
1061
938
  const parsedBody = parsedOutput.body;
1062
- throwDefaultError({
939
+ return throwDefaultError({
1063
940
  output,
1064
941
  parsedBody,
1065
- exceptionCtor: __BaseException,
1066
942
  errorCode,
1067
943
  });
1068
944
  }
@@ -1073,12 +949,12 @@ export const de_DisassociateCustomDomainCommand = async (output, context) => {
1073
949
  }
1074
950
  const data = await parseBody(output.body, context);
1075
951
  let contents = {};
1076
- contents = de_DisassociateCustomDomainResponse(data, context);
952
+ contents = _json(data);
1077
953
  const response = {
1078
954
  $metadata: deserializeMetadata(output),
1079
955
  ...contents,
1080
956
  };
1081
- return Promise.resolve(response);
957
+ return response;
1082
958
  };
1083
959
  const de_DisassociateCustomDomainCommandError = async (output, context) => {
1084
960
  const parsedOutput = {
@@ -1101,10 +977,9 @@ const de_DisassociateCustomDomainCommandError = async (output, context) => {
1101
977
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1102
978
  default:
1103
979
  const parsedBody = parsedOutput.body;
1104
- throwDefaultError({
980
+ return throwDefaultError({
1105
981
  output,
1106
982
  parsedBody,
1107
- exceptionCtor: __BaseException,
1108
983
  errorCode,
1109
984
  });
1110
985
  }
@@ -1115,12 +990,12 @@ export const de_ListAutoScalingConfigurationsCommand = async (output, context) =
1115
990
  }
1116
991
  const data = await parseBody(output.body, context);
1117
992
  let contents = {};
1118
- contents = de_ListAutoScalingConfigurationsResponse(data, context);
993
+ contents = _json(data);
1119
994
  const response = {
1120
995
  $metadata: deserializeMetadata(output),
1121
996
  ...contents,
1122
997
  };
1123
- return Promise.resolve(response);
998
+ return response;
1124
999
  };
1125
1000
  const de_ListAutoScalingConfigurationsCommandError = async (output, context) => {
1126
1001
  const parsedOutput = {
@@ -1137,10 +1012,9 @@ const de_ListAutoScalingConfigurationsCommandError = async (output, context) =>
1137
1012
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1138
1013
  default:
1139
1014
  const parsedBody = parsedOutput.body;
1140
- throwDefaultError({
1015
+ return throwDefaultError({
1141
1016
  output,
1142
1017
  parsedBody,
1143
- exceptionCtor: __BaseException,
1144
1018
  errorCode,
1145
1019
  });
1146
1020
  }
@@ -1156,7 +1030,7 @@ export const de_ListConnectionsCommand = async (output, context) => {
1156
1030
  $metadata: deserializeMetadata(output),
1157
1031
  ...contents,
1158
1032
  };
1159
- return Promise.resolve(response);
1033
+ return response;
1160
1034
  };
1161
1035
  const de_ListConnectionsCommandError = async (output, context) => {
1162
1036
  const parsedOutput = {
@@ -1173,10 +1047,9 @@ const de_ListConnectionsCommandError = async (output, context) => {
1173
1047
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1174
1048
  default:
1175
1049
  const parsedBody = parsedOutput.body;
1176
- throwDefaultError({
1050
+ return throwDefaultError({
1177
1051
  output,
1178
1052
  parsedBody,
1179
- exceptionCtor: __BaseException,
1180
1053
  errorCode,
1181
1054
  });
1182
1055
  }
@@ -1187,12 +1060,12 @@ export const de_ListObservabilityConfigurationsCommand = async (output, context)
1187
1060
  }
1188
1061
  const data = await parseBody(output.body, context);
1189
1062
  let contents = {};
1190
- contents = de_ListObservabilityConfigurationsResponse(data, context);
1063
+ contents = _json(data);
1191
1064
  const response = {
1192
1065
  $metadata: deserializeMetadata(output),
1193
1066
  ...contents,
1194
1067
  };
1195
- return Promise.resolve(response);
1068
+ return response;
1196
1069
  };
1197
1070
  const de_ListObservabilityConfigurationsCommandError = async (output, context) => {
1198
1071
  const parsedOutput = {
@@ -1209,10 +1082,9 @@ const de_ListObservabilityConfigurationsCommandError = async (output, context) =
1209
1082
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1210
1083
  default:
1211
1084
  const parsedBody = parsedOutput.body;
1212
- throwDefaultError({
1085
+ return throwDefaultError({
1213
1086
  output,
1214
1087
  parsedBody,
1215
- exceptionCtor: __BaseException,
1216
1088
  errorCode,
1217
1089
  });
1218
1090
  }
@@ -1228,7 +1100,7 @@ export const de_ListOperationsCommand = async (output, context) => {
1228
1100
  $metadata: deserializeMetadata(output),
1229
1101
  ...contents,
1230
1102
  };
1231
- return Promise.resolve(response);
1103
+ return response;
1232
1104
  };
1233
1105
  const de_ListOperationsCommandError = async (output, context) => {
1234
1106
  const parsedOutput = {
@@ -1248,10 +1120,9 @@ const de_ListOperationsCommandError = async (output, context) => {
1248
1120
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1249
1121
  default:
1250
1122
  const parsedBody = parsedOutput.body;
1251
- throwDefaultError({
1123
+ return throwDefaultError({
1252
1124
  output,
1253
1125
  parsedBody,
1254
- exceptionCtor: __BaseException,
1255
1126
  errorCode,
1256
1127
  });
1257
1128
  }
@@ -1267,7 +1138,7 @@ export const de_ListServicesCommand = async (output, context) => {
1267
1138
  $metadata: deserializeMetadata(output),
1268
1139
  ...contents,
1269
1140
  };
1270
- return Promise.resolve(response);
1141
+ return response;
1271
1142
  };
1272
1143
  const de_ListServicesCommandError = async (output, context) => {
1273
1144
  const parsedOutput = {
@@ -1284,10 +1155,9 @@ const de_ListServicesCommandError = async (output, context) => {
1284
1155
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1285
1156
  default:
1286
1157
  const parsedBody = parsedOutput.body;
1287
- throwDefaultError({
1158
+ return throwDefaultError({
1288
1159
  output,
1289
1160
  parsedBody,
1290
- exceptionCtor: __BaseException,
1291
1161
  errorCode,
1292
1162
  });
1293
1163
  }
@@ -1298,12 +1168,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
1298
1168
  }
1299
1169
  const data = await parseBody(output.body, context);
1300
1170
  let contents = {};
1301
- contents = de_ListTagsForResourceResponse(data, context);
1171
+ contents = _json(data);
1302
1172
  const response = {
1303
1173
  $metadata: deserializeMetadata(output),
1304
1174
  ...contents,
1305
1175
  };
1306
- return Promise.resolve(response);
1176
+ return response;
1307
1177
  };
1308
1178
  const de_ListTagsForResourceCommandError = async (output, context) => {
1309
1179
  const parsedOutput = {
@@ -1326,10 +1196,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1326
1196
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1327
1197
  default:
1328
1198
  const parsedBody = parsedOutput.body;
1329
- throwDefaultError({
1199
+ return throwDefaultError({
1330
1200
  output,
1331
1201
  parsedBody,
1332
- exceptionCtor: __BaseException,
1333
1202
  errorCode,
1334
1203
  });
1335
1204
  }
@@ -1345,7 +1214,7 @@ export const de_ListVpcConnectorsCommand = async (output, context) => {
1345
1214
  $metadata: deserializeMetadata(output),
1346
1215
  ...contents,
1347
1216
  };
1348
- return Promise.resolve(response);
1217
+ return response;
1349
1218
  };
1350
1219
  const de_ListVpcConnectorsCommandError = async (output, context) => {
1351
1220
  const parsedOutput = {
@@ -1362,10 +1231,9 @@ const de_ListVpcConnectorsCommandError = async (output, context) => {
1362
1231
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1363
1232
  default:
1364
1233
  const parsedBody = parsedOutput.body;
1365
- throwDefaultError({
1234
+ return throwDefaultError({
1366
1235
  output,
1367
1236
  parsedBody,
1368
- exceptionCtor: __BaseException,
1369
1237
  errorCode,
1370
1238
  });
1371
1239
  }
@@ -1376,12 +1244,12 @@ export const de_ListVpcIngressConnectionsCommand = async (output, context) => {
1376
1244
  }
1377
1245
  const data = await parseBody(output.body, context);
1378
1246
  let contents = {};
1379
- contents = de_ListVpcIngressConnectionsResponse(data, context);
1247
+ contents = _json(data);
1380
1248
  const response = {
1381
1249
  $metadata: deserializeMetadata(output),
1382
1250
  ...contents,
1383
1251
  };
1384
- return Promise.resolve(response);
1252
+ return response;
1385
1253
  };
1386
1254
  const de_ListVpcIngressConnectionsCommandError = async (output, context) => {
1387
1255
  const parsedOutput = {
@@ -1398,10 +1266,9 @@ const de_ListVpcIngressConnectionsCommandError = async (output, context) => {
1398
1266
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1399
1267
  default:
1400
1268
  const parsedBody = parsedOutput.body;
1401
- throwDefaultError({
1269
+ return throwDefaultError({
1402
1270
  output,
1403
1271
  parsedBody,
1404
- exceptionCtor: __BaseException,
1405
1272
  errorCode,
1406
1273
  });
1407
1274
  }
@@ -1417,7 +1284,7 @@ export const de_PauseServiceCommand = async (output, context) => {
1417
1284
  $metadata: deserializeMetadata(output),
1418
1285
  ...contents,
1419
1286
  };
1420
- return Promise.resolve(response);
1287
+ return response;
1421
1288
  };
1422
1289
  const de_PauseServiceCommandError = async (output, context) => {
1423
1290
  const parsedOutput = {
@@ -1440,10 +1307,9 @@ const de_PauseServiceCommandError = async (output, context) => {
1440
1307
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1441
1308
  default:
1442
1309
  const parsedBody = parsedOutput.body;
1443
- throwDefaultError({
1310
+ return throwDefaultError({
1444
1311
  output,
1445
1312
  parsedBody,
1446
- exceptionCtor: __BaseException,
1447
1313
  errorCode,
1448
1314
  });
1449
1315
  }
@@ -1459,7 +1325,7 @@ export const de_ResumeServiceCommand = async (output, context) => {
1459
1325
  $metadata: deserializeMetadata(output),
1460
1326
  ...contents,
1461
1327
  };
1462
- return Promise.resolve(response);
1328
+ return response;
1463
1329
  };
1464
1330
  const de_ResumeServiceCommandError = async (output, context) => {
1465
1331
  const parsedOutput = {
@@ -1482,10 +1348,9 @@ const de_ResumeServiceCommandError = async (output, context) => {
1482
1348
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1483
1349
  default:
1484
1350
  const parsedBody = parsedOutput.body;
1485
- throwDefaultError({
1351
+ return throwDefaultError({
1486
1352
  output,
1487
1353
  parsedBody,
1488
- exceptionCtor: __BaseException,
1489
1354
  errorCode,
1490
1355
  });
1491
1356
  }
@@ -1496,12 +1361,12 @@ export const de_StartDeploymentCommand = async (output, context) => {
1496
1361
  }
1497
1362
  const data = await parseBody(output.body, context);
1498
1363
  let contents = {};
1499
- contents = de_StartDeploymentResponse(data, context);
1364
+ contents = _json(data);
1500
1365
  const response = {
1501
1366
  $metadata: deserializeMetadata(output),
1502
1367
  ...contents,
1503
1368
  };
1504
- return Promise.resolve(response);
1369
+ return response;
1505
1370
  };
1506
1371
  const de_StartDeploymentCommandError = async (output, context) => {
1507
1372
  const parsedOutput = {
@@ -1521,10 +1386,9 @@ const de_StartDeploymentCommandError = async (output, context) => {
1521
1386
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1522
1387
  default:
1523
1388
  const parsedBody = parsedOutput.body;
1524
- throwDefaultError({
1389
+ return throwDefaultError({
1525
1390
  output,
1526
1391
  parsedBody,
1527
- exceptionCtor: __BaseException,
1528
1392
  errorCode,
1529
1393
  });
1530
1394
  }
@@ -1535,12 +1399,12 @@ export const de_TagResourceCommand = async (output, context) => {
1535
1399
  }
1536
1400
  const data = await parseBody(output.body, context);
1537
1401
  let contents = {};
1538
- contents = de_TagResourceResponse(data, context);
1402
+ contents = _json(data);
1539
1403
  const response = {
1540
1404
  $metadata: deserializeMetadata(output),
1541
1405
  ...contents,
1542
1406
  };
1543
- return Promise.resolve(response);
1407
+ return response;
1544
1408
  };
1545
1409
  const de_TagResourceCommandError = async (output, context) => {
1546
1410
  const parsedOutput = {
@@ -1563,10 +1427,9 @@ const de_TagResourceCommandError = async (output, context) => {
1563
1427
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1564
1428
  default:
1565
1429
  const parsedBody = parsedOutput.body;
1566
- throwDefaultError({
1430
+ return throwDefaultError({
1567
1431
  output,
1568
1432
  parsedBody,
1569
- exceptionCtor: __BaseException,
1570
1433
  errorCode,
1571
1434
  });
1572
1435
  }
@@ -1577,12 +1440,12 @@ export const de_UntagResourceCommand = async (output, context) => {
1577
1440
  }
1578
1441
  const data = await parseBody(output.body, context);
1579
1442
  let contents = {};
1580
- contents = de_UntagResourceResponse(data, context);
1443
+ contents = _json(data);
1581
1444
  const response = {
1582
1445
  $metadata: deserializeMetadata(output),
1583
1446
  ...contents,
1584
1447
  };
1585
- return Promise.resolve(response);
1448
+ return response;
1586
1449
  };
1587
1450
  const de_UntagResourceCommandError = async (output, context) => {
1588
1451
  const parsedOutput = {
@@ -1605,10 +1468,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1605
1468
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1606
1469
  default:
1607
1470
  const parsedBody = parsedOutput.body;
1608
- throwDefaultError({
1471
+ return throwDefaultError({
1609
1472
  output,
1610
1473
  parsedBody,
1611
- exceptionCtor: __BaseException,
1612
1474
  errorCode,
1613
1475
  });
1614
1476
  }
@@ -1624,7 +1486,7 @@ export const de_UpdateServiceCommand = async (output, context) => {
1624
1486
  $metadata: deserializeMetadata(output),
1625
1487
  ...contents,
1626
1488
  };
1627
- return Promise.resolve(response);
1489
+ return response;
1628
1490
  };
1629
1491
  const de_UpdateServiceCommandError = async (output, context) => {
1630
1492
  const parsedOutput = {
@@ -1647,10 +1509,9 @@ const de_UpdateServiceCommandError = async (output, context) => {
1647
1509
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1648
1510
  default:
1649
1511
  const parsedBody = parsedOutput.body;
1650
- throwDefaultError({
1512
+ return throwDefaultError({
1651
1513
  output,
1652
1514
  parsedBody,
1653
- exceptionCtor: __BaseException,
1654
1515
  errorCode,
1655
1516
  });
1656
1517
  }
@@ -1666,7 +1527,7 @@ export const de_UpdateVpcIngressConnectionCommand = async (output, context) => {
1666
1527
  $metadata: deserializeMetadata(output),
1667
1528
  ...contents,
1668
1529
  };
1669
- return Promise.resolve(response);
1530
+ return response;
1670
1531
  };
1671
1532
  const de_UpdateVpcIngressConnectionCommandError = async (output, context) => {
1672
1533
  const parsedOutput = {
@@ -1689,17 +1550,16 @@ const de_UpdateVpcIngressConnectionCommandError = async (output, context) => {
1689
1550
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1690
1551
  default:
1691
1552
  const parsedBody = parsedOutput.body;
1692
- throwDefaultError({
1553
+ return throwDefaultError({
1693
1554
  output,
1694
1555
  parsedBody,
1695
- exceptionCtor: __BaseException,
1696
1556
  errorCode,
1697
1557
  });
1698
1558
  }
1699
1559
  };
1700
1560
  const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
1701
1561
  const body = parsedOutput.body;
1702
- const deserialized = de_InternalServiceErrorException(body, context);
1562
+ const deserialized = _json(body);
1703
1563
  const exception = new InternalServiceErrorException({
1704
1564
  $metadata: deserializeMetadata(parsedOutput),
1705
1565
  ...deserialized,
@@ -1708,7 +1568,7 @@ const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
1708
1568
  };
1709
1569
  const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1710
1570
  const body = parsedOutput.body;
1711
- const deserialized = de_InvalidRequestException(body, context);
1571
+ const deserialized = _json(body);
1712
1572
  const exception = new InvalidRequestException({
1713
1573
  $metadata: deserializeMetadata(parsedOutput),
1714
1574
  ...deserialized,
@@ -1717,7 +1577,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1717
1577
  };
1718
1578
  const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
1719
1579
  const body = parsedOutput.body;
1720
- const deserialized = de_InvalidStateException(body, context);
1580
+ const deserialized = _json(body);
1721
1581
  const exception = new InvalidStateException({
1722
1582
  $metadata: deserializeMetadata(parsedOutput),
1723
1583
  ...deserialized,
@@ -1726,7 +1586,7 @@ const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
1726
1586
  };
1727
1587
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1728
1588
  const body = parsedOutput.body;
1729
- const deserialized = de_ResourceNotFoundException(body, context);
1589
+ const deserialized = _json(body);
1730
1590
  const exception = new ResourceNotFoundException({
1731
1591
  $metadata: deserializeMetadata(parsedOutput),
1732
1592
  ...deserialized,
@@ -1735,1161 +1595,288 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1735
1595
  };
1736
1596
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1737
1597
  const body = parsedOutput.body;
1738
- const deserialized = de_ServiceQuotaExceededException(body, context);
1598
+ const deserialized = _json(body);
1739
1599
  const exception = new ServiceQuotaExceededException({
1740
1600
  $metadata: deserializeMetadata(parsedOutput),
1741
1601
  ...deserialized,
1742
1602
  });
1743
1603
  return __decorateServiceException(exception, body);
1744
1604
  };
1745
- const se_AssociateCustomDomainRequest = (input, context) => {
1746
- return {
1747
- ...(input.DomainName != null && { DomainName: input.DomainName }),
1748
- ...(input.EnableWWWSubdomain != null && { EnableWWWSubdomain: input.EnableWWWSubdomain }),
1749
- ...(input.ServiceArn != null && { ServiceArn: input.ServiceArn }),
1750
- };
1751
- };
1752
- const se_AuthenticationConfiguration = (input, context) => {
1753
- return {
1754
- ...(input.AccessRoleArn != null && { AccessRoleArn: input.AccessRoleArn }),
1755
- ...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
1756
- };
1757
- };
1758
- const se_CodeConfiguration = (input, context) => {
1759
- return {
1760
- ...(input.CodeConfigurationValues != null && {
1761
- CodeConfigurationValues: se_CodeConfigurationValues(input.CodeConfigurationValues, context),
1762
- }),
1763
- ...(input.ConfigurationSource != null && { ConfigurationSource: input.ConfigurationSource }),
1764
- };
1765
- };
1766
- const se_CodeConfigurationValues = (input, context) => {
1767
- return {
1768
- ...(input.BuildCommand != null && { BuildCommand: input.BuildCommand }),
1769
- ...(input.Port != null && { Port: input.Port }),
1770
- ...(input.Runtime != null && { Runtime: input.Runtime }),
1771
- ...(input.RuntimeEnvironmentSecrets != null && {
1772
- RuntimeEnvironmentSecrets: se_RuntimeEnvironmentSecrets(input.RuntimeEnvironmentSecrets, context),
1773
- }),
1774
- ...(input.RuntimeEnvironmentVariables != null && {
1775
- RuntimeEnvironmentVariables: se_RuntimeEnvironmentVariables(input.RuntimeEnvironmentVariables, context),
1776
- }),
1777
- ...(input.StartCommand != null && { StartCommand: input.StartCommand }),
1778
- };
1779
- };
1780
- const se_CodeRepository = (input, context) => {
1781
- return {
1782
- ...(input.CodeConfiguration != null && {
1783
- CodeConfiguration: se_CodeConfiguration(input.CodeConfiguration, context),
1784
- }),
1785
- ...(input.RepositoryUrl != null && { RepositoryUrl: input.RepositoryUrl }),
1786
- ...(input.SourceCodeVersion != null && {
1787
- SourceCodeVersion: se_SourceCodeVersion(input.SourceCodeVersion, context),
1788
- }),
1789
- };
1790
- };
1791
- const se_CreateAutoScalingConfigurationRequest = (input, context) => {
1792
- return {
1793
- ...(input.AutoScalingConfigurationName != null && {
1794
- AutoScalingConfigurationName: input.AutoScalingConfigurationName,
1795
- }),
1796
- ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }),
1797
- ...(input.MaxSize != null && { MaxSize: input.MaxSize }),
1798
- ...(input.MinSize != null && { MinSize: input.MinSize }),
1799
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1800
- };
1801
- };
1802
- const se_CreateConnectionRequest = (input, context) => {
1803
- return {
1804
- ...(input.ConnectionName != null && { ConnectionName: input.ConnectionName }),
1805
- ...(input.ProviderType != null && { ProviderType: input.ProviderType }),
1806
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1807
- };
1808
- };
1809
- const se_CreateObservabilityConfigurationRequest = (input, context) => {
1810
- return {
1811
- ...(input.ObservabilityConfigurationName != null && {
1812
- ObservabilityConfigurationName: input.ObservabilityConfigurationName,
1813
- }),
1814
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1815
- ...(input.TraceConfiguration != null && {
1816
- TraceConfiguration: se_TraceConfiguration(input.TraceConfiguration, context),
1817
- }),
1818
- };
1819
- };
1820
- const se_CreateServiceRequest = (input, context) => {
1821
- return {
1822
- ...(input.AutoScalingConfigurationArn != null && {
1823
- AutoScalingConfigurationArn: input.AutoScalingConfigurationArn,
1824
- }),
1825
- ...(input.EncryptionConfiguration != null && {
1826
- EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
1827
- }),
1828
- ...(input.HealthCheckConfiguration != null && {
1829
- HealthCheckConfiguration: se_HealthCheckConfiguration(input.HealthCheckConfiguration, context),
1830
- }),
1831
- ...(input.InstanceConfiguration != null && {
1832
- InstanceConfiguration: se_InstanceConfiguration(input.InstanceConfiguration, context),
1833
- }),
1834
- ...(input.NetworkConfiguration != null && {
1835
- NetworkConfiguration: se_NetworkConfiguration(input.NetworkConfiguration, context),
1836
- }),
1837
- ...(input.ObservabilityConfiguration != null && {
1838
- ObservabilityConfiguration: se_ServiceObservabilityConfiguration(input.ObservabilityConfiguration, context),
1839
- }),
1840
- ...(input.ServiceName != null && { ServiceName: input.ServiceName }),
1841
- ...(input.SourceConfiguration != null && {
1842
- SourceConfiguration: se_SourceConfiguration(input.SourceConfiguration, context),
1843
- }),
1844
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1845
- };
1846
- };
1847
- const se_CreateVpcConnectorRequest = (input, context) => {
1848
- return {
1849
- ...(input.SecurityGroups != null && { SecurityGroups: se_StringList(input.SecurityGroups, context) }),
1850
- ...(input.Subnets != null && { Subnets: se_StringList(input.Subnets, context) }),
1851
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1852
- ...(input.VpcConnectorName != null && { VpcConnectorName: input.VpcConnectorName }),
1853
- };
1854
- };
1855
- const se_CreateVpcIngressConnectionRequest = (input, context) => {
1856
- return {
1857
- ...(input.IngressVpcConfiguration != null && {
1858
- IngressVpcConfiguration: se_IngressVpcConfiguration(input.IngressVpcConfiguration, context),
1859
- }),
1860
- ...(input.ServiceArn != null && { ServiceArn: input.ServiceArn }),
1861
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1862
- ...(input.VpcIngressConnectionName != null && { VpcIngressConnectionName: input.VpcIngressConnectionName }),
1863
- };
1864
- };
1865
- const se_DeleteAutoScalingConfigurationRequest = (input, context) => {
1866
- return {
1867
- ...(input.AutoScalingConfigurationArn != null && {
1868
- AutoScalingConfigurationArn: input.AutoScalingConfigurationArn,
1869
- }),
1870
- };
1871
- };
1872
- const se_DeleteConnectionRequest = (input, context) => {
1873
- return {
1874
- ...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
1875
- };
1876
- };
1877
- const se_DeleteObservabilityConfigurationRequest = (input, context) => {
1878
- return {
1879
- ...(input.ObservabilityConfigurationArn != null && {
1880
- ObservabilityConfigurationArn: input.ObservabilityConfigurationArn,
1881
- }),
1882
- };
1883
- };
1884
- const se_DeleteServiceRequest = (input, context) => {
1885
- return {
1886
- ...(input.ServiceArn != null && { ServiceArn: input.ServiceArn }),
1887
- };
1888
- };
1889
- const se_DeleteVpcConnectorRequest = (input, context) => {
1890
- return {
1891
- ...(input.VpcConnectorArn != null && { VpcConnectorArn: input.VpcConnectorArn }),
1892
- };
1893
- };
1894
- const se_DeleteVpcIngressConnectionRequest = (input, context) => {
1895
- return {
1896
- ...(input.VpcIngressConnectionArn != null && { VpcIngressConnectionArn: input.VpcIngressConnectionArn }),
1897
- };
1898
- };
1899
- const se_DescribeAutoScalingConfigurationRequest = (input, context) => {
1900
- return {
1901
- ...(input.AutoScalingConfigurationArn != null && {
1902
- AutoScalingConfigurationArn: input.AutoScalingConfigurationArn,
1903
- }),
1904
- };
1905
- };
1906
- const se_DescribeCustomDomainsRequest = (input, context) => {
1907
- return {
1908
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1909
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1910
- ...(input.ServiceArn != null && { ServiceArn: input.ServiceArn }),
1911
- };
1912
- };
1913
- const se_DescribeObservabilityConfigurationRequest = (input, context) => {
1914
- return {
1915
- ...(input.ObservabilityConfigurationArn != null && {
1916
- ObservabilityConfigurationArn: input.ObservabilityConfigurationArn,
1917
- }),
1918
- };
1919
- };
1920
- const se_DescribeServiceRequest = (input, context) => {
1921
- return {
1922
- ...(input.ServiceArn != null && { ServiceArn: input.ServiceArn }),
1923
- };
1924
- };
1925
- const se_DescribeVpcConnectorRequest = (input, context) => {
1926
- return {
1927
- ...(input.VpcConnectorArn != null && { VpcConnectorArn: input.VpcConnectorArn }),
1928
- };
1929
- };
1930
- const se_DescribeVpcIngressConnectionRequest = (input, context) => {
1931
- return {
1932
- ...(input.VpcIngressConnectionArn != null && { VpcIngressConnectionArn: input.VpcIngressConnectionArn }),
1933
- };
1934
- };
1935
- const se_DisassociateCustomDomainRequest = (input, context) => {
1936
- return {
1937
- ...(input.DomainName != null && { DomainName: input.DomainName }),
1938
- ...(input.ServiceArn != null && { ServiceArn: input.ServiceArn }),
1939
- };
1940
- };
1941
- const se_EgressConfiguration = (input, context) => {
1942
- return {
1943
- ...(input.EgressType != null && { EgressType: input.EgressType }),
1944
- ...(input.VpcConnectorArn != null && { VpcConnectorArn: input.VpcConnectorArn }),
1945
- };
1946
- };
1947
- const se_EncryptionConfiguration = (input, context) => {
1948
- return {
1949
- ...(input.KmsKey != null && { KmsKey: input.KmsKey }),
1950
- };
1951
- };
1952
- const se_HealthCheckConfiguration = (input, context) => {
1953
- return {
1954
- ...(input.HealthyThreshold != null && { HealthyThreshold: input.HealthyThreshold }),
1955
- ...(input.Interval != null && { Interval: input.Interval }),
1956
- ...(input.Path != null && { Path: input.Path }),
1957
- ...(input.Protocol != null && { Protocol: input.Protocol }),
1958
- ...(input.Timeout != null && { Timeout: input.Timeout }),
1959
- ...(input.UnhealthyThreshold != null && { UnhealthyThreshold: input.UnhealthyThreshold }),
1960
- };
1961
- };
1962
- const se_ImageConfiguration = (input, context) => {
1963
- return {
1964
- ...(input.Port != null && { Port: input.Port }),
1965
- ...(input.RuntimeEnvironmentSecrets != null && {
1966
- RuntimeEnvironmentSecrets: se_RuntimeEnvironmentSecrets(input.RuntimeEnvironmentSecrets, context),
1967
- }),
1968
- ...(input.RuntimeEnvironmentVariables != null && {
1969
- RuntimeEnvironmentVariables: se_RuntimeEnvironmentVariables(input.RuntimeEnvironmentVariables, context),
1970
- }),
1971
- ...(input.StartCommand != null && { StartCommand: input.StartCommand }),
1972
- };
1973
- };
1974
- const se_ImageRepository = (input, context) => {
1975
- return {
1976
- ...(input.ImageConfiguration != null && {
1977
- ImageConfiguration: se_ImageConfiguration(input.ImageConfiguration, context),
1978
- }),
1979
- ...(input.ImageIdentifier != null && { ImageIdentifier: input.ImageIdentifier }),
1980
- ...(input.ImageRepositoryType != null && { ImageRepositoryType: input.ImageRepositoryType }),
1981
- };
1982
- };
1983
- const se_IngressConfiguration = (input, context) => {
1984
- return {
1985
- ...(input.IsPubliclyAccessible != null && { IsPubliclyAccessible: input.IsPubliclyAccessible }),
1986
- };
1987
- };
1988
- const se_IngressVpcConfiguration = (input, context) => {
1989
- return {
1990
- ...(input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId }),
1991
- ...(input.VpcId != null && { VpcId: input.VpcId }),
1992
- };
1993
- };
1994
- const se_InstanceConfiguration = (input, context) => {
1995
- return {
1996
- ...(input.Cpu != null && { Cpu: input.Cpu }),
1997
- ...(input.InstanceRoleArn != null && { InstanceRoleArn: input.InstanceRoleArn }),
1998
- ...(input.Memory != null && { Memory: input.Memory }),
1999
- };
2000
- };
2001
- const se_ListAutoScalingConfigurationsRequest = (input, context) => {
2002
- return {
2003
- ...(input.AutoScalingConfigurationName != null && {
2004
- AutoScalingConfigurationName: input.AutoScalingConfigurationName,
2005
- }),
2006
- ...(input.LatestOnly != null && { LatestOnly: input.LatestOnly }),
2007
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2008
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2009
- };
2010
- };
2011
- const se_ListConnectionsRequest = (input, context) => {
2012
- return {
2013
- ...(input.ConnectionName != null && { ConnectionName: input.ConnectionName }),
2014
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2015
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2016
- };
2017
- };
2018
- const se_ListObservabilityConfigurationsRequest = (input, context) => {
2019
- return {
2020
- ...(input.LatestOnly != null && { LatestOnly: input.LatestOnly }),
2021
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2022
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2023
- ...(input.ObservabilityConfigurationName != null && {
2024
- ObservabilityConfigurationName: input.ObservabilityConfigurationName,
2025
- }),
2026
- };
2027
- };
2028
- const se_ListOperationsRequest = (input, context) => {
2029
- return {
2030
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2031
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2032
- ...(input.ServiceArn != null && { ServiceArn: input.ServiceArn }),
2033
- };
2034
- };
2035
- const se_ListServicesRequest = (input, context) => {
2036
- return {
2037
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2038
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2039
- };
2040
- };
2041
- const se_ListTagsForResourceRequest = (input, context) => {
2042
- return {
2043
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2044
- };
2045
- };
2046
- const se_ListVpcConnectorsRequest = (input, context) => {
2047
- return {
2048
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2049
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2050
- };
2051
- };
2052
- const se_ListVpcIngressConnectionsFilter = (input, context) => {
2053
- return {
2054
- ...(input.ServiceArn != null && { ServiceArn: input.ServiceArn }),
2055
- ...(input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId }),
2056
- };
2057
- };
2058
- const se_ListVpcIngressConnectionsRequest = (input, context) => {
2059
- return {
2060
- ...(input.Filter != null && { Filter: se_ListVpcIngressConnectionsFilter(input.Filter, context) }),
2061
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2062
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2063
- };
2064
- };
2065
- const se_NetworkConfiguration = (input, context) => {
2066
- return {
2067
- ...(input.EgressConfiguration != null && {
2068
- EgressConfiguration: se_EgressConfiguration(input.EgressConfiguration, context),
2069
- }),
2070
- ...(input.IngressConfiguration != null && {
2071
- IngressConfiguration: se_IngressConfiguration(input.IngressConfiguration, context),
2072
- }),
2073
- };
2074
- };
2075
- const se_PauseServiceRequest = (input, context) => {
2076
- return {
2077
- ...(input.ServiceArn != null && { ServiceArn: input.ServiceArn }),
2078
- };
2079
- };
2080
- const se_ResumeServiceRequest = (input, context) => {
2081
- return {
2082
- ...(input.ServiceArn != null && { ServiceArn: input.ServiceArn }),
2083
- };
2084
- };
2085
- const se_RuntimeEnvironmentSecrets = (input, context) => {
2086
- return Object.entries(input).reduce((acc, [key, value]) => {
2087
- if (value === null) {
2088
- return acc;
2089
- }
2090
- acc[key] = value;
2091
- return acc;
2092
- }, {});
2093
- };
2094
- const se_RuntimeEnvironmentVariables = (input, context) => {
2095
- return Object.entries(input).reduce((acc, [key, value]) => {
2096
- if (value === null) {
2097
- return acc;
2098
- }
2099
- acc[key] = value;
2100
- return acc;
2101
- }, {});
2102
- };
2103
- const se_ServiceObservabilityConfiguration = (input, context) => {
2104
- return {
2105
- ...(input.ObservabilityConfigurationArn != null && {
2106
- ObservabilityConfigurationArn: input.ObservabilityConfigurationArn,
2107
- }),
2108
- ...(input.ObservabilityEnabled != null && { ObservabilityEnabled: input.ObservabilityEnabled }),
2109
- };
2110
- };
2111
- const se_SourceCodeVersion = (input, context) => {
2112
- return {
2113
- ...(input.Type != null && { Type: input.Type }),
2114
- ...(input.Value != null && { Value: input.Value }),
2115
- };
2116
- };
2117
- const se_SourceConfiguration = (input, context) => {
2118
- return {
2119
- ...(input.AuthenticationConfiguration != null && {
2120
- AuthenticationConfiguration: se_AuthenticationConfiguration(input.AuthenticationConfiguration, context),
2121
- }),
2122
- ...(input.AutoDeploymentsEnabled != null && { AutoDeploymentsEnabled: input.AutoDeploymentsEnabled }),
2123
- ...(input.CodeRepository != null && { CodeRepository: se_CodeRepository(input.CodeRepository, context) }),
2124
- ...(input.ImageRepository != null && { ImageRepository: se_ImageRepository(input.ImageRepository, context) }),
2125
- };
2126
- };
2127
- const se_StartDeploymentRequest = (input, context) => {
2128
- return {
2129
- ...(input.ServiceArn != null && { ServiceArn: input.ServiceArn }),
2130
- };
2131
- };
2132
- const se_StringList = (input, context) => {
2133
- return input
2134
- .filter((e) => e != null)
2135
- .map((entry) => {
2136
- return entry;
2137
- });
2138
- };
2139
- const se_Tag = (input, context) => {
2140
- return {
2141
- ...(input.Key != null && { Key: input.Key }),
2142
- ...(input.Value != null && { Value: input.Value }),
2143
- };
2144
- };
2145
- const se_TagKeyList = (input, context) => {
2146
- return input
2147
- .filter((e) => e != null)
2148
- .map((entry) => {
2149
- return entry;
2150
- });
2151
- };
2152
- const se_TagList = (input, context) => {
2153
- return input
2154
- .filter((e) => e != null)
2155
- .map((entry) => {
2156
- return se_Tag(entry, context);
2157
- });
2158
- };
2159
- const se_TagResourceRequest = (input, context) => {
2160
- return {
2161
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2162
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2163
- };
2164
- };
2165
- const se_TraceConfiguration = (input, context) => {
2166
- return {
2167
- ...(input.Vendor != null && { Vendor: input.Vendor }),
2168
- };
2169
- };
2170
- const se_UntagResourceRequest = (input, context) => {
2171
- return {
2172
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2173
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
2174
- };
2175
- };
2176
- const se_UpdateServiceRequest = (input, context) => {
2177
- return {
2178
- ...(input.AutoScalingConfigurationArn != null && {
2179
- AutoScalingConfigurationArn: input.AutoScalingConfigurationArn,
2180
- }),
2181
- ...(input.HealthCheckConfiguration != null && {
2182
- HealthCheckConfiguration: se_HealthCheckConfiguration(input.HealthCheckConfiguration, context),
2183
- }),
2184
- ...(input.InstanceConfiguration != null && {
2185
- InstanceConfiguration: se_InstanceConfiguration(input.InstanceConfiguration, context),
2186
- }),
2187
- ...(input.NetworkConfiguration != null && {
2188
- NetworkConfiguration: se_NetworkConfiguration(input.NetworkConfiguration, context),
2189
- }),
2190
- ...(input.ObservabilityConfiguration != null && {
2191
- ObservabilityConfiguration: se_ServiceObservabilityConfiguration(input.ObservabilityConfiguration, context),
2192
- }),
2193
- ...(input.ServiceArn != null && { ServiceArn: input.ServiceArn }),
2194
- ...(input.SourceConfiguration != null && {
2195
- SourceConfiguration: se_SourceConfiguration(input.SourceConfiguration, context),
2196
- }),
2197
- };
2198
- };
2199
- const se_UpdateVpcIngressConnectionRequest = (input, context) => {
2200
- return {
2201
- ...(input.IngressVpcConfiguration != null && {
2202
- IngressVpcConfiguration: se_IngressVpcConfiguration(input.IngressVpcConfiguration, context),
2203
- }),
2204
- ...(input.VpcIngressConnectionArn != null && { VpcIngressConnectionArn: input.VpcIngressConnectionArn }),
2205
- };
2206
- };
2207
- const de_AssociateCustomDomainResponse = (output, context) => {
2208
- return {
2209
- CustomDomain: output.CustomDomain != null ? de_CustomDomain(output.CustomDomain, context) : undefined,
2210
- DNSTarget: __expectString(output.DNSTarget),
2211
- ServiceArn: __expectString(output.ServiceArn),
2212
- VpcDNSTargets: output.VpcDNSTargets != null ? de_VpcDNSTargetList(output.VpcDNSTargets, context) : undefined,
2213
- };
2214
- };
2215
- const de_AuthenticationConfiguration = (output, context) => {
2216
- return {
2217
- AccessRoleArn: __expectString(output.AccessRoleArn),
2218
- ConnectionArn: __expectString(output.ConnectionArn),
2219
- };
2220
- };
2221
1605
  const de_AutoScalingConfiguration = (output, context) => {
2222
- return {
2223
- AutoScalingConfigurationArn: __expectString(output.AutoScalingConfigurationArn),
2224
- AutoScalingConfigurationName: __expectString(output.AutoScalingConfigurationName),
2225
- AutoScalingConfigurationRevision: __expectInt32(output.AutoScalingConfigurationRevision),
2226
- CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
2227
- DeletedAt: output.DeletedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeletedAt))) : undefined,
2228
- Latest: __expectBoolean(output.Latest),
2229
- MaxConcurrency: __expectInt32(output.MaxConcurrency),
2230
- MaxSize: __expectInt32(output.MaxSize),
2231
- MinSize: __expectInt32(output.MinSize),
2232
- Status: __expectString(output.Status),
2233
- };
2234
- };
2235
- const de_AutoScalingConfigurationSummary = (output, context) => {
2236
- return {
2237
- AutoScalingConfigurationArn: __expectString(output.AutoScalingConfigurationArn),
2238
- AutoScalingConfigurationName: __expectString(output.AutoScalingConfigurationName),
2239
- AutoScalingConfigurationRevision: __expectInt32(output.AutoScalingConfigurationRevision),
2240
- };
2241
- };
2242
- const de_AutoScalingConfigurationSummaryList = (output, context) => {
2243
- const retVal = (output || [])
2244
- .filter((e) => e != null)
2245
- .map((entry) => {
2246
- if (entry === null) {
2247
- return null;
2248
- }
2249
- return de_AutoScalingConfigurationSummary(entry, context);
2250
- });
2251
- return retVal;
2252
- };
2253
- const de_CertificateValidationRecord = (output, context) => {
2254
- return {
2255
- Name: __expectString(output.Name),
2256
- Status: __expectString(output.Status),
2257
- Type: __expectString(output.Type),
2258
- Value: __expectString(output.Value),
2259
- };
2260
- };
2261
- const de_CertificateValidationRecordList = (output, context) => {
2262
- const retVal = (output || [])
2263
- .filter((e) => e != null)
2264
- .map((entry) => {
2265
- if (entry === null) {
2266
- return null;
2267
- }
2268
- return de_CertificateValidationRecord(entry, context);
1606
+ return take(output, {
1607
+ AutoScalingConfigurationArn: __expectString,
1608
+ AutoScalingConfigurationName: __expectString,
1609
+ AutoScalingConfigurationRevision: __expectInt32,
1610
+ CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1611
+ DeletedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1612
+ Latest: __expectBoolean,
1613
+ MaxConcurrency: __expectInt32,
1614
+ MaxSize: __expectInt32,
1615
+ MinSize: __expectInt32,
1616
+ Status: __expectString,
2269
1617
  });
2270
- return retVal;
2271
- };
2272
- const de_CodeConfiguration = (output, context) => {
2273
- return {
2274
- CodeConfigurationValues: output.CodeConfigurationValues != null
2275
- ? de_CodeConfigurationValues(output.CodeConfigurationValues, context)
2276
- : undefined,
2277
- ConfigurationSource: __expectString(output.ConfigurationSource),
2278
- };
2279
- };
2280
- const de_CodeConfigurationValues = (output, context) => {
2281
- return {
2282
- BuildCommand: __expectString(output.BuildCommand),
2283
- Port: __expectString(output.Port),
2284
- Runtime: __expectString(output.Runtime),
2285
- RuntimeEnvironmentSecrets: output.RuntimeEnvironmentSecrets != null
2286
- ? de_RuntimeEnvironmentSecrets(output.RuntimeEnvironmentSecrets, context)
2287
- : undefined,
2288
- RuntimeEnvironmentVariables: output.RuntimeEnvironmentVariables != null
2289
- ? de_RuntimeEnvironmentVariables(output.RuntimeEnvironmentVariables, context)
2290
- : undefined,
2291
- StartCommand: __expectString(output.StartCommand),
2292
- };
2293
- };
2294
- const de_CodeRepository = (output, context) => {
2295
- return {
2296
- CodeConfiguration: output.CodeConfiguration != null ? de_CodeConfiguration(output.CodeConfiguration, context) : undefined,
2297
- RepositoryUrl: __expectString(output.RepositoryUrl),
2298
- SourceCodeVersion: output.SourceCodeVersion != null ? de_SourceCodeVersion(output.SourceCodeVersion, context) : undefined,
2299
- };
2300
1618
  };
2301
1619
  const de_Connection = (output, context) => {
2302
- return {
2303
- ConnectionArn: __expectString(output.ConnectionArn),
2304
- ConnectionName: __expectString(output.ConnectionName),
2305
- CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
2306
- ProviderType: __expectString(output.ProviderType),
2307
- Status: __expectString(output.Status),
2308
- };
1620
+ return take(output, {
1621
+ ConnectionArn: __expectString,
1622
+ ConnectionName: __expectString,
1623
+ CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1624
+ ProviderType: __expectString,
1625
+ Status: __expectString,
1626
+ });
2309
1627
  };
2310
1628
  const de_ConnectionSummary = (output, context) => {
2311
- return {
2312
- ConnectionArn: __expectString(output.ConnectionArn),
2313
- ConnectionName: __expectString(output.ConnectionName),
2314
- CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
2315
- ProviderType: __expectString(output.ProviderType),
2316
- Status: __expectString(output.Status),
2317
- };
1629
+ return take(output, {
1630
+ ConnectionArn: __expectString,
1631
+ ConnectionName: __expectString,
1632
+ CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1633
+ ProviderType: __expectString,
1634
+ Status: __expectString,
1635
+ });
2318
1636
  };
2319
1637
  const de_ConnectionSummaryList = (output, context) => {
2320
1638
  const retVal = (output || [])
2321
1639
  .filter((e) => e != null)
2322
1640
  .map((entry) => {
2323
- if (entry === null) {
2324
- return null;
2325
- }
2326
1641
  return de_ConnectionSummary(entry, context);
2327
1642
  });
2328
1643
  return retVal;
2329
1644
  };
2330
1645
  const de_CreateAutoScalingConfigurationResponse = (output, context) => {
2331
- return {
2332
- AutoScalingConfiguration: output.AutoScalingConfiguration != null
2333
- ? de_AutoScalingConfiguration(output.AutoScalingConfiguration, context)
2334
- : undefined,
2335
- };
1646
+ return take(output, {
1647
+ AutoScalingConfiguration: (_) => de_AutoScalingConfiguration(_, context),
1648
+ });
2336
1649
  };
2337
1650
  const de_CreateConnectionResponse = (output, context) => {
2338
- return {
2339
- Connection: output.Connection != null ? de_Connection(output.Connection, context) : undefined,
2340
- };
1651
+ return take(output, {
1652
+ Connection: (_) => de_Connection(_, context),
1653
+ });
2341
1654
  };
2342
1655
  const de_CreateObservabilityConfigurationResponse = (output, context) => {
2343
- return {
2344
- ObservabilityConfiguration: output.ObservabilityConfiguration != null
2345
- ? de_ObservabilityConfiguration(output.ObservabilityConfiguration, context)
2346
- : undefined,
2347
- };
1656
+ return take(output, {
1657
+ ObservabilityConfiguration: (_) => de_ObservabilityConfiguration(_, context),
1658
+ });
2348
1659
  };
2349
1660
  const de_CreateServiceResponse = (output, context) => {
2350
- return {
2351
- OperationId: __expectString(output.OperationId),
2352
- Service: output.Service != null ? de_Service(output.Service, context) : undefined,
2353
- };
1661
+ return take(output, {
1662
+ OperationId: __expectString,
1663
+ Service: (_) => de_Service(_, context),
1664
+ });
2354
1665
  };
2355
1666
  const de_CreateVpcConnectorResponse = (output, context) => {
2356
- return {
2357
- VpcConnector: output.VpcConnector != null ? de_VpcConnector(output.VpcConnector, context) : undefined,
2358
- };
1667
+ return take(output, {
1668
+ VpcConnector: (_) => de_VpcConnector(_, context),
1669
+ });
2359
1670
  };
2360
1671
  const de_CreateVpcIngressConnectionResponse = (output, context) => {
2361
- return {
2362
- VpcIngressConnection: output.VpcIngressConnection != null ? de_VpcIngressConnection(output.VpcIngressConnection, context) : undefined,
2363
- };
2364
- };
2365
- const de_CustomDomain = (output, context) => {
2366
- return {
2367
- CertificateValidationRecords: output.CertificateValidationRecords != null
2368
- ? de_CertificateValidationRecordList(output.CertificateValidationRecords, context)
2369
- : undefined,
2370
- DomainName: __expectString(output.DomainName),
2371
- EnableWWWSubdomain: __expectBoolean(output.EnableWWWSubdomain),
2372
- Status: __expectString(output.Status),
2373
- };
2374
- };
2375
- const de_CustomDomainList = (output, context) => {
2376
- const retVal = (output || [])
2377
- .filter((e) => e != null)
2378
- .map((entry) => {
2379
- if (entry === null) {
2380
- return null;
2381
- }
2382
- return de_CustomDomain(entry, context);
1672
+ return take(output, {
1673
+ VpcIngressConnection: (_) => de_VpcIngressConnection(_, context),
2383
1674
  });
2384
- return retVal;
2385
1675
  };
2386
1676
  const de_DeleteAutoScalingConfigurationResponse = (output, context) => {
2387
- return {
2388
- AutoScalingConfiguration: output.AutoScalingConfiguration != null
2389
- ? de_AutoScalingConfiguration(output.AutoScalingConfiguration, context)
2390
- : undefined,
2391
- };
1677
+ return take(output, {
1678
+ AutoScalingConfiguration: (_) => de_AutoScalingConfiguration(_, context),
1679
+ });
2392
1680
  };
2393
1681
  const de_DeleteConnectionResponse = (output, context) => {
2394
- return {
2395
- Connection: output.Connection != null ? de_Connection(output.Connection, context) : undefined,
2396
- };
1682
+ return take(output, {
1683
+ Connection: (_) => de_Connection(_, context),
1684
+ });
2397
1685
  };
2398
1686
  const de_DeleteObservabilityConfigurationResponse = (output, context) => {
2399
- return {
2400
- ObservabilityConfiguration: output.ObservabilityConfiguration != null
2401
- ? de_ObservabilityConfiguration(output.ObservabilityConfiguration, context)
2402
- : undefined,
2403
- };
1687
+ return take(output, {
1688
+ ObservabilityConfiguration: (_) => de_ObservabilityConfiguration(_, context),
1689
+ });
2404
1690
  };
2405
1691
  const de_DeleteServiceResponse = (output, context) => {
2406
- return {
2407
- OperationId: __expectString(output.OperationId),
2408
- Service: output.Service != null ? de_Service(output.Service, context) : undefined,
2409
- };
1692
+ return take(output, {
1693
+ OperationId: __expectString,
1694
+ Service: (_) => de_Service(_, context),
1695
+ });
2410
1696
  };
2411
1697
  const de_DeleteVpcConnectorResponse = (output, context) => {
2412
- return {
2413
- VpcConnector: output.VpcConnector != null ? de_VpcConnector(output.VpcConnector, context) : undefined,
2414
- };
1698
+ return take(output, {
1699
+ VpcConnector: (_) => de_VpcConnector(_, context),
1700
+ });
2415
1701
  };
2416
1702
  const de_DeleteVpcIngressConnectionResponse = (output, context) => {
2417
- return {
2418
- VpcIngressConnection: output.VpcIngressConnection != null ? de_VpcIngressConnection(output.VpcIngressConnection, context) : undefined,
2419
- };
1703
+ return take(output, {
1704
+ VpcIngressConnection: (_) => de_VpcIngressConnection(_, context),
1705
+ });
2420
1706
  };
2421
1707
  const de_DescribeAutoScalingConfigurationResponse = (output, context) => {
2422
- return {
2423
- AutoScalingConfiguration: output.AutoScalingConfiguration != null
2424
- ? de_AutoScalingConfiguration(output.AutoScalingConfiguration, context)
2425
- : undefined,
2426
- };
2427
- };
2428
- const de_DescribeCustomDomainsResponse = (output, context) => {
2429
- return {
2430
- CustomDomains: output.CustomDomains != null ? de_CustomDomainList(output.CustomDomains, context) : undefined,
2431
- DNSTarget: __expectString(output.DNSTarget),
2432
- NextToken: __expectString(output.NextToken),
2433
- ServiceArn: __expectString(output.ServiceArn),
2434
- VpcDNSTargets: output.VpcDNSTargets != null ? de_VpcDNSTargetList(output.VpcDNSTargets, context) : undefined,
2435
- };
1708
+ return take(output, {
1709
+ AutoScalingConfiguration: (_) => de_AutoScalingConfiguration(_, context),
1710
+ });
2436
1711
  };
2437
1712
  const de_DescribeObservabilityConfigurationResponse = (output, context) => {
2438
- return {
2439
- ObservabilityConfiguration: output.ObservabilityConfiguration != null
2440
- ? de_ObservabilityConfiguration(output.ObservabilityConfiguration, context)
2441
- : undefined,
2442
- };
1713
+ return take(output, {
1714
+ ObservabilityConfiguration: (_) => de_ObservabilityConfiguration(_, context),
1715
+ });
2443
1716
  };
2444
1717
  const de_DescribeServiceResponse = (output, context) => {
2445
- return {
2446
- Service: output.Service != null ? de_Service(output.Service, context) : undefined,
2447
- };
1718
+ return take(output, {
1719
+ Service: (_) => de_Service(_, context),
1720
+ });
2448
1721
  };
2449
1722
  const de_DescribeVpcConnectorResponse = (output, context) => {
2450
- return {
2451
- VpcConnector: output.VpcConnector != null ? de_VpcConnector(output.VpcConnector, context) : undefined,
2452
- };
1723
+ return take(output, {
1724
+ VpcConnector: (_) => de_VpcConnector(_, context),
1725
+ });
2453
1726
  };
2454
1727
  const de_DescribeVpcIngressConnectionResponse = (output, context) => {
2455
- return {
2456
- VpcIngressConnection: output.VpcIngressConnection != null ? de_VpcIngressConnection(output.VpcIngressConnection, context) : undefined,
2457
- };
2458
- };
2459
- const de_DisassociateCustomDomainResponse = (output, context) => {
2460
- return {
2461
- CustomDomain: output.CustomDomain != null ? de_CustomDomain(output.CustomDomain, context) : undefined,
2462
- DNSTarget: __expectString(output.DNSTarget),
2463
- ServiceArn: __expectString(output.ServiceArn),
2464
- VpcDNSTargets: output.VpcDNSTargets != null ? de_VpcDNSTargetList(output.VpcDNSTargets, context) : undefined,
2465
- };
2466
- };
2467
- const de_EgressConfiguration = (output, context) => {
2468
- return {
2469
- EgressType: __expectString(output.EgressType),
2470
- VpcConnectorArn: __expectString(output.VpcConnectorArn),
2471
- };
2472
- };
2473
- const de_EncryptionConfiguration = (output, context) => {
2474
- return {
2475
- KmsKey: __expectString(output.KmsKey),
2476
- };
2477
- };
2478
- const de_HealthCheckConfiguration = (output, context) => {
2479
- return {
2480
- HealthyThreshold: __expectInt32(output.HealthyThreshold),
2481
- Interval: __expectInt32(output.Interval),
2482
- Path: __expectString(output.Path),
2483
- Protocol: __expectString(output.Protocol),
2484
- Timeout: __expectInt32(output.Timeout),
2485
- UnhealthyThreshold: __expectInt32(output.UnhealthyThreshold),
2486
- };
2487
- };
2488
- const de_ImageConfiguration = (output, context) => {
2489
- return {
2490
- Port: __expectString(output.Port),
2491
- RuntimeEnvironmentSecrets: output.RuntimeEnvironmentSecrets != null
2492
- ? de_RuntimeEnvironmentSecrets(output.RuntimeEnvironmentSecrets, context)
2493
- : undefined,
2494
- RuntimeEnvironmentVariables: output.RuntimeEnvironmentVariables != null
2495
- ? de_RuntimeEnvironmentVariables(output.RuntimeEnvironmentVariables, context)
2496
- : undefined,
2497
- StartCommand: __expectString(output.StartCommand),
2498
- };
2499
- };
2500
- const de_ImageRepository = (output, context) => {
2501
- return {
2502
- ImageConfiguration: output.ImageConfiguration != null ? de_ImageConfiguration(output.ImageConfiguration, context) : undefined,
2503
- ImageIdentifier: __expectString(output.ImageIdentifier),
2504
- ImageRepositoryType: __expectString(output.ImageRepositoryType),
2505
- };
2506
- };
2507
- const de_IngressConfiguration = (output, context) => {
2508
- return {
2509
- IsPubliclyAccessible: __expectBoolean(output.IsPubliclyAccessible),
2510
- };
2511
- };
2512
- const de_IngressVpcConfiguration = (output, context) => {
2513
- return {
2514
- VpcEndpointId: __expectString(output.VpcEndpointId),
2515
- VpcId: __expectString(output.VpcId),
2516
- };
2517
- };
2518
- const de_InstanceConfiguration = (output, context) => {
2519
- return {
2520
- Cpu: __expectString(output.Cpu),
2521
- InstanceRoleArn: __expectString(output.InstanceRoleArn),
2522
- Memory: __expectString(output.Memory),
2523
- };
2524
- };
2525
- const de_InternalServiceErrorException = (output, context) => {
2526
- return {
2527
- Message: __expectString(output.Message),
2528
- };
2529
- };
2530
- const de_InvalidRequestException = (output, context) => {
2531
- return {
2532
- Message: __expectString(output.Message),
2533
- };
2534
- };
2535
- const de_InvalidStateException = (output, context) => {
2536
- return {
2537
- Message: __expectString(output.Message),
2538
- };
2539
- };
2540
- const de_ListAutoScalingConfigurationsResponse = (output, context) => {
2541
- return {
2542
- AutoScalingConfigurationSummaryList: output.AutoScalingConfigurationSummaryList != null
2543
- ? de_AutoScalingConfigurationSummaryList(output.AutoScalingConfigurationSummaryList, context)
2544
- : undefined,
2545
- NextToken: __expectString(output.NextToken),
2546
- };
1728
+ return take(output, {
1729
+ VpcIngressConnection: (_) => de_VpcIngressConnection(_, context),
1730
+ });
2547
1731
  };
2548
1732
  const de_ListConnectionsResponse = (output, context) => {
2549
- return {
2550
- ConnectionSummaryList: output.ConnectionSummaryList != null
2551
- ? de_ConnectionSummaryList(output.ConnectionSummaryList, context)
2552
- : undefined,
2553
- NextToken: __expectString(output.NextToken),
2554
- };
2555
- };
2556
- const de_ListObservabilityConfigurationsResponse = (output, context) => {
2557
- return {
2558
- NextToken: __expectString(output.NextToken),
2559
- ObservabilityConfigurationSummaryList: output.ObservabilityConfigurationSummaryList != null
2560
- ? de_ObservabilityConfigurationSummaryList(output.ObservabilityConfigurationSummaryList, context)
2561
- : undefined,
2562
- };
1733
+ return take(output, {
1734
+ ConnectionSummaryList: (_) => de_ConnectionSummaryList(_, context),
1735
+ NextToken: __expectString,
1736
+ });
2563
1737
  };
2564
1738
  const de_ListOperationsResponse = (output, context) => {
2565
- return {
2566
- NextToken: __expectString(output.NextToken),
2567
- OperationSummaryList: output.OperationSummaryList != null ? de_OperationSummaryList(output.OperationSummaryList, context) : undefined,
2568
- };
1739
+ return take(output, {
1740
+ NextToken: __expectString,
1741
+ OperationSummaryList: (_) => de_OperationSummaryList(_, context),
1742
+ });
2569
1743
  };
2570
1744
  const de_ListServicesResponse = (output, context) => {
2571
- return {
2572
- NextToken: __expectString(output.NextToken),
2573
- ServiceSummaryList: output.ServiceSummaryList != null ? de_ServiceSummaryList(output.ServiceSummaryList, context) : undefined,
2574
- };
2575
- };
2576
- const de_ListTagsForResourceResponse = (output, context) => {
2577
- return {
2578
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
2579
- };
1745
+ return take(output, {
1746
+ NextToken: __expectString,
1747
+ ServiceSummaryList: (_) => de_ServiceSummaryList(_, context),
1748
+ });
2580
1749
  };
2581
1750
  const de_ListVpcConnectorsResponse = (output, context) => {
2582
- return {
2583
- NextToken: __expectString(output.NextToken),
2584
- VpcConnectors: output.VpcConnectors != null ? de_VpcConnectors(output.VpcConnectors, context) : undefined,
2585
- };
2586
- };
2587
- const de_ListVpcIngressConnectionsResponse = (output, context) => {
2588
- return {
2589
- NextToken: __expectString(output.NextToken),
2590
- VpcIngressConnectionSummaryList: output.VpcIngressConnectionSummaryList != null
2591
- ? de_VpcIngressConnectionSummaryList(output.VpcIngressConnectionSummaryList, context)
2592
- : undefined,
2593
- };
2594
- };
2595
- const de_NetworkConfiguration = (output, context) => {
2596
- return {
2597
- EgressConfiguration: output.EgressConfiguration != null ? de_EgressConfiguration(output.EgressConfiguration, context) : undefined,
2598
- IngressConfiguration: output.IngressConfiguration != null ? de_IngressConfiguration(output.IngressConfiguration, context) : undefined,
2599
- };
1751
+ return take(output, {
1752
+ NextToken: __expectString,
1753
+ VpcConnectors: (_) => de_VpcConnectors(_, context),
1754
+ });
2600
1755
  };
2601
1756
  const de_ObservabilityConfiguration = (output, context) => {
2602
- return {
2603
- CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
2604
- DeletedAt: output.DeletedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeletedAt))) : undefined,
2605
- Latest: __expectBoolean(output.Latest),
2606
- ObservabilityConfigurationArn: __expectString(output.ObservabilityConfigurationArn),
2607
- ObservabilityConfigurationName: __expectString(output.ObservabilityConfigurationName),
2608
- ObservabilityConfigurationRevision: __expectInt32(output.ObservabilityConfigurationRevision),
2609
- Status: __expectString(output.Status),
2610
- TraceConfiguration: output.TraceConfiguration != null ? de_TraceConfiguration(output.TraceConfiguration, context) : undefined,
2611
- };
2612
- };
2613
- const de_ObservabilityConfigurationSummary = (output, context) => {
2614
- return {
2615
- ObservabilityConfigurationArn: __expectString(output.ObservabilityConfigurationArn),
2616
- ObservabilityConfigurationName: __expectString(output.ObservabilityConfigurationName),
2617
- ObservabilityConfigurationRevision: __expectInt32(output.ObservabilityConfigurationRevision),
2618
- };
2619
- };
2620
- const de_ObservabilityConfigurationSummaryList = (output, context) => {
2621
- const retVal = (output || [])
2622
- .filter((e) => e != null)
2623
- .map((entry) => {
2624
- if (entry === null) {
2625
- return null;
2626
- }
2627
- return de_ObservabilityConfigurationSummary(entry, context);
1757
+ return take(output, {
1758
+ CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1759
+ DeletedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1760
+ Latest: __expectBoolean,
1761
+ ObservabilityConfigurationArn: __expectString,
1762
+ ObservabilityConfigurationName: __expectString,
1763
+ ObservabilityConfigurationRevision: __expectInt32,
1764
+ Status: __expectString,
1765
+ TraceConfiguration: _json,
2628
1766
  });
2629
- return retVal;
2630
1767
  };
2631
1768
  const de_OperationSummary = (output, context) => {
2632
- return {
2633
- EndedAt: output.EndedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndedAt))) : undefined,
2634
- Id: __expectString(output.Id),
2635
- StartedAt: output.StartedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt))) : undefined,
2636
- Status: __expectString(output.Status),
2637
- TargetArn: __expectString(output.TargetArn),
2638
- Type: __expectString(output.Type),
2639
- UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
2640
- };
1769
+ return take(output, {
1770
+ EndedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1771
+ Id: __expectString,
1772
+ StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1773
+ Status: __expectString,
1774
+ TargetArn: __expectString,
1775
+ Type: __expectString,
1776
+ UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1777
+ });
2641
1778
  };
2642
1779
  const de_OperationSummaryList = (output, context) => {
2643
1780
  const retVal = (output || [])
2644
1781
  .filter((e) => e != null)
2645
1782
  .map((entry) => {
2646
- if (entry === null) {
2647
- return null;
2648
- }
2649
1783
  return de_OperationSummary(entry, context);
2650
1784
  });
2651
1785
  return retVal;
2652
1786
  };
2653
1787
  const de_PauseServiceResponse = (output, context) => {
2654
- return {
2655
- OperationId: __expectString(output.OperationId),
2656
- Service: output.Service != null ? de_Service(output.Service, context) : undefined,
2657
- };
2658
- };
2659
- const de_ResourceNotFoundException = (output, context) => {
2660
- return {
2661
- Message: __expectString(output.Message),
2662
- };
1788
+ return take(output, {
1789
+ OperationId: __expectString,
1790
+ Service: (_) => de_Service(_, context),
1791
+ });
2663
1792
  };
2664
1793
  const de_ResumeServiceResponse = (output, context) => {
2665
- return {
2666
- OperationId: __expectString(output.OperationId),
2667
- Service: output.Service != null ? de_Service(output.Service, context) : undefined,
2668
- };
2669
- };
2670
- const de_RuntimeEnvironmentSecrets = (output, context) => {
2671
- return Object.entries(output).reduce((acc, [key, value]) => {
2672
- if (value === null) {
2673
- return acc;
2674
- }
2675
- acc[key] = __expectString(value);
2676
- return acc;
2677
- }, {});
2678
- };
2679
- const de_RuntimeEnvironmentVariables = (output, context) => {
2680
- return Object.entries(output).reduce((acc, [key, value]) => {
2681
- if (value === null) {
2682
- return acc;
2683
- }
2684
- acc[key] = __expectString(value);
2685
- return acc;
2686
- }, {});
1794
+ return take(output, {
1795
+ OperationId: __expectString,
1796
+ Service: (_) => de_Service(_, context),
1797
+ });
2687
1798
  };
2688
1799
  const de_Service = (output, context) => {
2689
- return {
2690
- AutoScalingConfigurationSummary: output.AutoScalingConfigurationSummary != null
2691
- ? de_AutoScalingConfigurationSummary(output.AutoScalingConfigurationSummary, context)
2692
- : undefined,
2693
- CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
2694
- DeletedAt: output.DeletedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeletedAt))) : undefined,
2695
- EncryptionConfiguration: output.EncryptionConfiguration != null
2696
- ? de_EncryptionConfiguration(output.EncryptionConfiguration, context)
2697
- : undefined,
2698
- HealthCheckConfiguration: output.HealthCheckConfiguration != null
2699
- ? de_HealthCheckConfiguration(output.HealthCheckConfiguration, context)
2700
- : undefined,
2701
- InstanceConfiguration: output.InstanceConfiguration != null
2702
- ? de_InstanceConfiguration(output.InstanceConfiguration, context)
2703
- : undefined,
2704
- NetworkConfiguration: output.NetworkConfiguration != null ? de_NetworkConfiguration(output.NetworkConfiguration, context) : undefined,
2705
- ObservabilityConfiguration: output.ObservabilityConfiguration != null
2706
- ? de_ServiceObservabilityConfiguration(output.ObservabilityConfiguration, context)
2707
- : undefined,
2708
- ServiceArn: __expectString(output.ServiceArn),
2709
- ServiceId: __expectString(output.ServiceId),
2710
- ServiceName: __expectString(output.ServiceName),
2711
- ServiceUrl: __expectString(output.ServiceUrl),
2712
- SourceConfiguration: output.SourceConfiguration != null ? de_SourceConfiguration(output.SourceConfiguration, context) : undefined,
2713
- Status: __expectString(output.Status),
2714
- UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
2715
- };
2716
- };
2717
- const de_ServiceObservabilityConfiguration = (output, context) => {
2718
- return {
2719
- ObservabilityConfigurationArn: __expectString(output.ObservabilityConfigurationArn),
2720
- ObservabilityEnabled: __expectBoolean(output.ObservabilityEnabled),
2721
- };
2722
- };
2723
- const de_ServiceQuotaExceededException = (output, context) => {
2724
- return {
2725
- Message: __expectString(output.Message),
2726
- };
1800
+ return take(output, {
1801
+ AutoScalingConfigurationSummary: _json,
1802
+ CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1803
+ DeletedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1804
+ EncryptionConfiguration: _json,
1805
+ HealthCheckConfiguration: _json,
1806
+ InstanceConfiguration: _json,
1807
+ NetworkConfiguration: _json,
1808
+ ObservabilityConfiguration: _json,
1809
+ ServiceArn: __expectString,
1810
+ ServiceId: __expectString,
1811
+ ServiceName: __expectString,
1812
+ ServiceUrl: __expectString,
1813
+ SourceConfiguration: _json,
1814
+ Status: __expectString,
1815
+ UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1816
+ });
2727
1817
  };
2728
1818
  const de_ServiceSummary = (output, context) => {
2729
- return {
2730
- CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
2731
- ServiceArn: __expectString(output.ServiceArn),
2732
- ServiceId: __expectString(output.ServiceId),
2733
- ServiceName: __expectString(output.ServiceName),
2734
- ServiceUrl: __expectString(output.ServiceUrl),
2735
- Status: __expectString(output.Status),
2736
- UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
2737
- };
1819
+ return take(output, {
1820
+ CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1821
+ ServiceArn: __expectString,
1822
+ ServiceId: __expectString,
1823
+ ServiceName: __expectString,
1824
+ ServiceUrl: __expectString,
1825
+ Status: __expectString,
1826
+ UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1827
+ });
2738
1828
  };
2739
1829
  const de_ServiceSummaryList = (output, context) => {
2740
1830
  const retVal = (output || [])
2741
1831
  .filter((e) => e != null)
2742
1832
  .map((entry) => {
2743
- if (entry === null) {
2744
- return null;
2745
- }
2746
1833
  return de_ServiceSummary(entry, context);
2747
1834
  });
2748
1835
  return retVal;
2749
1836
  };
2750
- const de_SourceCodeVersion = (output, context) => {
2751
- return {
2752
- Type: __expectString(output.Type),
2753
- Value: __expectString(output.Value),
2754
- };
2755
- };
2756
- const de_SourceConfiguration = (output, context) => {
2757
- return {
2758
- AuthenticationConfiguration: output.AuthenticationConfiguration != null
2759
- ? de_AuthenticationConfiguration(output.AuthenticationConfiguration, context)
2760
- : undefined,
2761
- AutoDeploymentsEnabled: __expectBoolean(output.AutoDeploymentsEnabled),
2762
- CodeRepository: output.CodeRepository != null ? de_CodeRepository(output.CodeRepository, context) : undefined,
2763
- ImageRepository: output.ImageRepository != null ? de_ImageRepository(output.ImageRepository, context) : undefined,
2764
- };
2765
- };
2766
- const de_StartDeploymentResponse = (output, context) => {
2767
- return {
2768
- OperationId: __expectString(output.OperationId),
2769
- };
2770
- };
2771
- const de_StringList = (output, context) => {
2772
- const retVal = (output || [])
2773
- .filter((e) => e != null)
2774
- .map((entry) => {
2775
- if (entry === null) {
2776
- return null;
2777
- }
2778
- return __expectString(entry);
2779
- });
2780
- return retVal;
2781
- };
2782
- const de_Tag = (output, context) => {
2783
- return {
2784
- Key: __expectString(output.Key),
2785
- Value: __expectString(output.Value),
2786
- };
2787
- };
2788
- const de_TagList = (output, context) => {
2789
- const retVal = (output || [])
2790
- .filter((e) => e != null)
2791
- .map((entry) => {
2792
- if (entry === null) {
2793
- return null;
2794
- }
2795
- return de_Tag(entry, context);
2796
- });
2797
- return retVal;
2798
- };
2799
- const de_TagResourceResponse = (output, context) => {
2800
- return {};
2801
- };
2802
- const de_TraceConfiguration = (output, context) => {
2803
- return {
2804
- Vendor: __expectString(output.Vendor),
2805
- };
2806
- };
2807
- const de_UntagResourceResponse = (output, context) => {
2808
- return {};
2809
- };
2810
1837
  const de_UpdateServiceResponse = (output, context) => {
2811
- return {
2812
- OperationId: __expectString(output.OperationId),
2813
- Service: output.Service != null ? de_Service(output.Service, context) : undefined,
2814
- };
1838
+ return take(output, {
1839
+ OperationId: __expectString,
1840
+ Service: (_) => de_Service(_, context),
1841
+ });
2815
1842
  };
2816
1843
  const de_UpdateVpcIngressConnectionResponse = (output, context) => {
2817
- return {
2818
- VpcIngressConnection: output.VpcIngressConnection != null ? de_VpcIngressConnection(output.VpcIngressConnection, context) : undefined,
2819
- };
1844
+ return take(output, {
1845
+ VpcIngressConnection: (_) => de_VpcIngressConnection(_, context),
1846
+ });
2820
1847
  };
2821
1848
  const de_VpcConnector = (output, context) => {
2822
- return {
2823
- CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
2824
- DeletedAt: output.DeletedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeletedAt))) : undefined,
2825
- SecurityGroups: output.SecurityGroups != null ? de_StringList(output.SecurityGroups, context) : undefined,
2826
- Status: __expectString(output.Status),
2827
- Subnets: output.Subnets != null ? de_StringList(output.Subnets, context) : undefined,
2828
- VpcConnectorArn: __expectString(output.VpcConnectorArn),
2829
- VpcConnectorName: __expectString(output.VpcConnectorName),
2830
- VpcConnectorRevision: __expectInt32(output.VpcConnectorRevision),
2831
- };
1849
+ return take(output, {
1850
+ CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1851
+ DeletedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1852
+ SecurityGroups: _json,
1853
+ Status: __expectString,
1854
+ Subnets: _json,
1855
+ VpcConnectorArn: __expectString,
1856
+ VpcConnectorName: __expectString,
1857
+ VpcConnectorRevision: __expectInt32,
1858
+ });
2832
1859
  };
2833
1860
  const de_VpcConnectors = (output, context) => {
2834
1861
  const retVal = (output || [])
2835
1862
  .filter((e) => e != null)
2836
1863
  .map((entry) => {
2837
- if (entry === null) {
2838
- return null;
2839
- }
2840
1864
  return de_VpcConnector(entry, context);
2841
1865
  });
2842
1866
  return retVal;
2843
1867
  };
2844
- const de_VpcDNSTarget = (output, context) => {
2845
- return {
2846
- DomainName: __expectString(output.DomainName),
2847
- VpcId: __expectString(output.VpcId),
2848
- VpcIngressConnectionArn: __expectString(output.VpcIngressConnectionArn),
2849
- };
2850
- };
2851
- const de_VpcDNSTargetList = (output, context) => {
2852
- const retVal = (output || [])
2853
- .filter((e) => e != null)
2854
- .map((entry) => {
2855
- if (entry === null) {
2856
- return null;
2857
- }
2858
- return de_VpcDNSTarget(entry, context);
2859
- });
2860
- return retVal;
2861
- };
2862
1868
  const de_VpcIngressConnection = (output, context) => {
2863
- return {
2864
- AccountId: __expectString(output.AccountId),
2865
- CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
2866
- DeletedAt: output.DeletedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeletedAt))) : undefined,
2867
- DomainName: __expectString(output.DomainName),
2868
- IngressVpcConfiguration: output.IngressVpcConfiguration != null
2869
- ? de_IngressVpcConfiguration(output.IngressVpcConfiguration, context)
2870
- : undefined,
2871
- ServiceArn: __expectString(output.ServiceArn),
2872
- Status: __expectString(output.Status),
2873
- VpcIngressConnectionArn: __expectString(output.VpcIngressConnectionArn),
2874
- VpcIngressConnectionName: __expectString(output.VpcIngressConnectionName),
2875
- };
2876
- };
2877
- const de_VpcIngressConnectionSummary = (output, context) => {
2878
- return {
2879
- ServiceArn: __expectString(output.ServiceArn),
2880
- VpcIngressConnectionArn: __expectString(output.VpcIngressConnectionArn),
2881
- };
2882
- };
2883
- const de_VpcIngressConnectionSummaryList = (output, context) => {
2884
- const retVal = (output || [])
2885
- .filter((e) => e != null)
2886
- .map((entry) => {
2887
- if (entry === null) {
2888
- return null;
2889
- }
2890
- return de_VpcIngressConnectionSummary(entry, context);
1869
+ return take(output, {
1870
+ AccountId: __expectString,
1871
+ CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1872
+ DeletedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1873
+ DomainName: __expectString,
1874
+ IngressVpcConfiguration: _json,
1875
+ ServiceArn: __expectString,
1876
+ Status: __expectString,
1877
+ VpcIngressConnectionArn: __expectString,
1878
+ VpcIngressConnectionName: __expectString,
2891
1879
  });
2892
- return retVal;
2893
1880
  };
2894
1881
  const deserializeMetadata = (output) => ({
2895
1882
  httpStatusCode: output.statusCode,
@@ -2904,6 +1891,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
2904
1891
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2905
1892
  };
2906
1893
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1894
+ const throwDefaultError = withBaseException(__BaseException);
2907
1895
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2908
1896
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2909
1897
  const contents = {
@@ -2922,6 +1910,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
2922
1910
  }
2923
1911
  return new __HttpRequest(contents);
2924
1912
  };
1913
+ function sharedHeaders(operation) {
1914
+ return {
1915
+ "content-type": "application/x-amz-json-1.0",
1916
+ "x-amz-target": `AppRunner.${operation}`,
1917
+ };
1918
+ }
2925
1919
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2926
1920
  if (encoded.length) {
2927
1921
  return JSON.parse(encoded);