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