@aws-sdk/client-apprunner 3.489.0 → 3.495.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.
Files changed (60) hide show
  1. package/dist-cjs/AppRunner.js +1 -85
  2. package/dist-cjs/AppRunnerClient.js +1 -43
  3. package/dist-cjs/commands/AssociateCustomDomainCommand.js +1 -28
  4. package/dist-cjs/commands/CreateAutoScalingConfigurationCommand.js +1 -28
  5. package/dist-cjs/commands/CreateConnectionCommand.js +1 -28
  6. package/dist-cjs/commands/CreateObservabilityConfigurationCommand.js +1 -28
  7. package/dist-cjs/commands/CreateServiceCommand.js +1 -29
  8. package/dist-cjs/commands/CreateVpcConnectorCommand.js +1 -28
  9. package/dist-cjs/commands/CreateVpcIngressConnectionCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteAutoScalingConfigurationCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteConnectionCommand.js +1 -28
  12. package/dist-cjs/commands/DeleteObservabilityConfigurationCommand.js +1 -28
  13. package/dist-cjs/commands/DeleteServiceCommand.js +1 -29
  14. package/dist-cjs/commands/DeleteVpcConnectorCommand.js +1 -28
  15. package/dist-cjs/commands/DeleteVpcIngressConnectionCommand.js +1 -28
  16. package/dist-cjs/commands/DescribeAutoScalingConfigurationCommand.js +1 -28
  17. package/dist-cjs/commands/DescribeCustomDomainsCommand.js +1 -28
  18. package/dist-cjs/commands/DescribeObservabilityConfigurationCommand.js +1 -28
  19. package/dist-cjs/commands/DescribeServiceCommand.js +1 -29
  20. package/dist-cjs/commands/DescribeVpcConnectorCommand.js +1 -28
  21. package/dist-cjs/commands/DescribeVpcIngressConnectionCommand.js +1 -28
  22. package/dist-cjs/commands/DisassociateCustomDomainCommand.js +1 -28
  23. package/dist-cjs/commands/ListAutoScalingConfigurationsCommand.js +1 -28
  24. package/dist-cjs/commands/ListConnectionsCommand.js +1 -28
  25. package/dist-cjs/commands/ListObservabilityConfigurationsCommand.js +1 -28
  26. package/dist-cjs/commands/ListOperationsCommand.js +1 -28
  27. package/dist-cjs/commands/ListServicesCommand.js +1 -28
  28. package/dist-cjs/commands/ListServicesForAutoScalingConfigurationCommand.js +1 -28
  29. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  30. package/dist-cjs/commands/ListVpcConnectorsCommand.js +1 -28
  31. package/dist-cjs/commands/ListVpcIngressConnectionsCommand.js +1 -28
  32. package/dist-cjs/commands/PauseServiceCommand.js +1 -29
  33. package/dist-cjs/commands/ResumeServiceCommand.js +1 -29
  34. package/dist-cjs/commands/StartDeploymentCommand.js +1 -28
  35. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  36. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  37. package/dist-cjs/commands/UpdateDefaultAutoScalingConfigurationCommand.js +1 -28
  38. package/dist-cjs/commands/UpdateServiceCommand.js +1 -29
  39. package/dist-cjs/commands/UpdateVpcIngressConnectionCommand.js +1 -28
  40. package/dist-cjs/commands/index.js +1 -40
  41. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  42. package/dist-cjs/extensionConfiguration.js +1 -2
  43. package/dist-cjs/index.js +3366 -11
  44. package/dist-cjs/models/AppRunnerServiceException.js +1 -12
  45. package/dist-cjs/models/index.js +1 -4
  46. package/dist-cjs/models/models_0.js +1 -275
  47. package/dist-cjs/pagination/DescribeCustomDomainsPaginator.js +1 -7
  48. package/dist-cjs/pagination/Interfaces.js +1 -2
  49. package/dist-cjs/pagination/ListAutoScalingConfigurationsPaginator.js +1 -7
  50. package/dist-cjs/pagination/ListConnectionsPaginator.js +1 -7
  51. package/dist-cjs/pagination/ListObservabilityConfigurationsPaginator.js +1 -7
  52. package/dist-cjs/pagination/ListOperationsPaginator.js +1 -7
  53. package/dist-cjs/pagination/ListServicesForAutoScalingConfigurationPaginator.js +1 -7
  54. package/dist-cjs/pagination/ListServicesPaginator.js +1 -7
  55. package/dist-cjs/pagination/ListVpcConnectorsPaginator.js +1 -7
  56. package/dist-cjs/pagination/ListVpcIngressConnectionsPaginator.js +1 -7
  57. package/dist-cjs/pagination/index.js +1 -13
  58. package/dist-cjs/protocols/Aws_json1_0.js +1 -2150
  59. package/dist-cjs/runtimeExtensions.js +1 -22
  60. package/package.json +40 -40
@@ -1,2150 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_DeleteVpcIngressConnectionCommand = exports.de_DeleteVpcConnectorCommand = exports.de_DeleteServiceCommand = exports.de_DeleteObservabilityConfigurationCommand = exports.de_DeleteConnectionCommand = exports.de_DeleteAutoScalingConfigurationCommand = exports.de_CreateVpcIngressConnectionCommand = exports.de_CreateVpcConnectorCommand = exports.de_CreateServiceCommand = exports.de_CreateObservabilityConfigurationCommand = exports.de_CreateConnectionCommand = exports.de_CreateAutoScalingConfigurationCommand = exports.de_AssociateCustomDomainCommand = exports.se_UpdateVpcIngressConnectionCommand = exports.se_UpdateServiceCommand = exports.se_UpdateDefaultAutoScalingConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartDeploymentCommand = exports.se_ResumeServiceCommand = exports.se_PauseServiceCommand = exports.se_ListVpcIngressConnectionsCommand = exports.se_ListVpcConnectorsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListServicesForAutoScalingConfigurationCommand = exports.se_ListServicesCommand = exports.se_ListOperationsCommand = exports.se_ListObservabilityConfigurationsCommand = exports.se_ListConnectionsCommand = exports.se_ListAutoScalingConfigurationsCommand = exports.se_DisassociateCustomDomainCommand = exports.se_DescribeVpcIngressConnectionCommand = exports.se_DescribeVpcConnectorCommand = exports.se_DescribeServiceCommand = exports.se_DescribeObservabilityConfigurationCommand = exports.se_DescribeCustomDomainsCommand = exports.se_DescribeAutoScalingConfigurationCommand = exports.se_DeleteVpcIngressConnectionCommand = exports.se_DeleteVpcConnectorCommand = exports.se_DeleteServiceCommand = exports.se_DeleteObservabilityConfigurationCommand = exports.se_DeleteConnectionCommand = exports.se_DeleteAutoScalingConfigurationCommand = exports.se_CreateVpcIngressConnectionCommand = exports.se_CreateVpcConnectorCommand = exports.se_CreateServiceCommand = exports.se_CreateObservabilityConfigurationCommand = exports.se_CreateConnectionCommand = exports.se_CreateAutoScalingConfigurationCommand = exports.se_AssociateCustomDomainCommand = void 0;
4
- exports.de_UpdateVpcIngressConnectionCommand = exports.de_UpdateServiceCommand = exports.de_UpdateDefaultAutoScalingConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartDeploymentCommand = exports.de_ResumeServiceCommand = exports.de_PauseServiceCommand = exports.de_ListVpcIngressConnectionsCommand = exports.de_ListVpcConnectorsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListServicesForAutoScalingConfigurationCommand = exports.de_ListServicesCommand = exports.de_ListOperationsCommand = exports.de_ListObservabilityConfigurationsCommand = exports.de_ListConnectionsCommand = exports.de_ListAutoScalingConfigurationsCommand = exports.de_DisassociateCustomDomainCommand = exports.de_DescribeVpcIngressConnectionCommand = exports.de_DescribeVpcConnectorCommand = exports.de_DescribeServiceCommand = exports.de_DescribeObservabilityConfigurationCommand = exports.de_DescribeCustomDomainsCommand = exports.de_DescribeAutoScalingConfigurationCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const AppRunnerServiceException_1 = require("../models/AppRunnerServiceException");
8
- const models_0_1 = require("../models/models_0");
9
- const se_AssociateCustomDomainCommand = async (input, context) => {
10
- const headers = sharedHeaders("AssociateCustomDomain");
11
- let body;
12
- body = JSON.stringify((0, smithy_client_1._json)(input));
13
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
14
- };
15
- exports.se_AssociateCustomDomainCommand = se_AssociateCustomDomainCommand;
16
- const se_CreateAutoScalingConfigurationCommand = async (input, context) => {
17
- const headers = sharedHeaders("CreateAutoScalingConfiguration");
18
- let body;
19
- body = JSON.stringify((0, smithy_client_1._json)(input));
20
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
21
- };
22
- exports.se_CreateAutoScalingConfigurationCommand = se_CreateAutoScalingConfigurationCommand;
23
- const se_CreateConnectionCommand = async (input, context) => {
24
- const headers = sharedHeaders("CreateConnection");
25
- let body;
26
- body = JSON.stringify((0, smithy_client_1._json)(input));
27
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
- };
29
- exports.se_CreateConnectionCommand = se_CreateConnectionCommand;
30
- const se_CreateObservabilityConfigurationCommand = async (input, context) => {
31
- const headers = sharedHeaders("CreateObservabilityConfiguration");
32
- let body;
33
- body = JSON.stringify((0, smithy_client_1._json)(input));
34
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
- };
36
- exports.se_CreateObservabilityConfigurationCommand = se_CreateObservabilityConfigurationCommand;
37
- const se_CreateServiceCommand = async (input, context) => {
38
- const headers = sharedHeaders("CreateService");
39
- let body;
40
- body = JSON.stringify((0, smithy_client_1._json)(input));
41
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
- };
43
- exports.se_CreateServiceCommand = se_CreateServiceCommand;
44
- const se_CreateVpcConnectorCommand = async (input, context) => {
45
- const headers = sharedHeaders("CreateVpcConnector");
46
- let body;
47
- body = JSON.stringify((0, smithy_client_1._json)(input));
48
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
- };
50
- exports.se_CreateVpcConnectorCommand = se_CreateVpcConnectorCommand;
51
- const se_CreateVpcIngressConnectionCommand = async (input, context) => {
52
- const headers = sharedHeaders("CreateVpcIngressConnection");
53
- let body;
54
- body = JSON.stringify((0, smithy_client_1._json)(input));
55
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
- };
57
- exports.se_CreateVpcIngressConnectionCommand = se_CreateVpcIngressConnectionCommand;
58
- const se_DeleteAutoScalingConfigurationCommand = async (input, context) => {
59
- const headers = sharedHeaders("DeleteAutoScalingConfiguration");
60
- let body;
61
- body = JSON.stringify((0, smithy_client_1._json)(input));
62
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
63
- };
64
- exports.se_DeleteAutoScalingConfigurationCommand = se_DeleteAutoScalingConfigurationCommand;
65
- const se_DeleteConnectionCommand = async (input, context) => {
66
- const headers = sharedHeaders("DeleteConnection");
67
- let body;
68
- body = JSON.stringify((0, smithy_client_1._json)(input));
69
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
- };
71
- exports.se_DeleteConnectionCommand = se_DeleteConnectionCommand;
72
- const se_DeleteObservabilityConfigurationCommand = async (input, context) => {
73
- const headers = sharedHeaders("DeleteObservabilityConfiguration");
74
- let body;
75
- body = JSON.stringify((0, smithy_client_1._json)(input));
76
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
- };
78
- exports.se_DeleteObservabilityConfigurationCommand = se_DeleteObservabilityConfigurationCommand;
79
- const se_DeleteServiceCommand = async (input, context) => {
80
- const headers = sharedHeaders("DeleteService");
81
- let body;
82
- body = JSON.stringify((0, smithy_client_1._json)(input));
83
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
- };
85
- exports.se_DeleteServiceCommand = se_DeleteServiceCommand;
86
- const se_DeleteVpcConnectorCommand = async (input, context) => {
87
- const headers = sharedHeaders("DeleteVpcConnector");
88
- let body;
89
- body = JSON.stringify((0, smithy_client_1._json)(input));
90
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
91
- };
92
- exports.se_DeleteVpcConnectorCommand = se_DeleteVpcConnectorCommand;
93
- const se_DeleteVpcIngressConnectionCommand = async (input, context) => {
94
- const headers = sharedHeaders("DeleteVpcIngressConnection");
95
- let body;
96
- body = JSON.stringify((0, smithy_client_1._json)(input));
97
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
- };
99
- exports.se_DeleteVpcIngressConnectionCommand = se_DeleteVpcIngressConnectionCommand;
100
- const se_DescribeAutoScalingConfigurationCommand = async (input, context) => {
101
- const headers = sharedHeaders("DescribeAutoScalingConfiguration");
102
- let body;
103
- body = JSON.stringify((0, smithy_client_1._json)(input));
104
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
105
- };
106
- exports.se_DescribeAutoScalingConfigurationCommand = se_DescribeAutoScalingConfigurationCommand;
107
- const se_DescribeCustomDomainsCommand = async (input, context) => {
108
- const headers = sharedHeaders("DescribeCustomDomains");
109
- let body;
110
- body = JSON.stringify((0, smithy_client_1._json)(input));
111
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
- };
113
- exports.se_DescribeCustomDomainsCommand = se_DescribeCustomDomainsCommand;
114
- const se_DescribeObservabilityConfigurationCommand = async (input, context) => {
115
- const headers = sharedHeaders("DescribeObservabilityConfiguration");
116
- let body;
117
- body = JSON.stringify((0, smithy_client_1._json)(input));
118
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
- };
120
- exports.se_DescribeObservabilityConfigurationCommand = se_DescribeObservabilityConfigurationCommand;
121
- const se_DescribeServiceCommand = async (input, context) => {
122
- const headers = sharedHeaders("DescribeService");
123
- let body;
124
- body = JSON.stringify((0, smithy_client_1._json)(input));
125
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
- };
127
- exports.se_DescribeServiceCommand = se_DescribeServiceCommand;
128
- const se_DescribeVpcConnectorCommand = async (input, context) => {
129
- const headers = sharedHeaders("DescribeVpcConnector");
130
- let body;
131
- body = JSON.stringify((0, smithy_client_1._json)(input));
132
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
133
- };
134
- exports.se_DescribeVpcConnectorCommand = se_DescribeVpcConnectorCommand;
135
- const se_DescribeVpcIngressConnectionCommand = async (input, context) => {
136
- const headers = sharedHeaders("DescribeVpcIngressConnection");
137
- let body;
138
- body = JSON.stringify((0, smithy_client_1._json)(input));
139
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
140
- };
141
- exports.se_DescribeVpcIngressConnectionCommand = se_DescribeVpcIngressConnectionCommand;
142
- const se_DisassociateCustomDomainCommand = async (input, context) => {
143
- const headers = sharedHeaders("DisassociateCustomDomain");
144
- let body;
145
- body = JSON.stringify((0, smithy_client_1._json)(input));
146
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
147
- };
148
- exports.se_DisassociateCustomDomainCommand = se_DisassociateCustomDomainCommand;
149
- const se_ListAutoScalingConfigurationsCommand = async (input, context) => {
150
- const headers = sharedHeaders("ListAutoScalingConfigurations");
151
- let body;
152
- body = JSON.stringify((0, smithy_client_1._json)(input));
153
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
- };
155
- exports.se_ListAutoScalingConfigurationsCommand = se_ListAutoScalingConfigurationsCommand;
156
- const se_ListConnectionsCommand = async (input, context) => {
157
- const headers = sharedHeaders("ListConnections");
158
- let body;
159
- body = JSON.stringify((0, smithy_client_1._json)(input));
160
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
- };
162
- exports.se_ListConnectionsCommand = se_ListConnectionsCommand;
163
- const se_ListObservabilityConfigurationsCommand = async (input, context) => {
164
- const headers = sharedHeaders("ListObservabilityConfigurations");
165
- let body;
166
- body = JSON.stringify((0, smithy_client_1._json)(input));
167
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
- };
169
- exports.se_ListObservabilityConfigurationsCommand = se_ListObservabilityConfigurationsCommand;
170
- const se_ListOperationsCommand = async (input, context) => {
171
- const headers = sharedHeaders("ListOperations");
172
- let body;
173
- body = JSON.stringify((0, smithy_client_1._json)(input));
174
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
- };
176
- exports.se_ListOperationsCommand = se_ListOperationsCommand;
177
- const se_ListServicesCommand = async (input, context) => {
178
- const headers = sharedHeaders("ListServices");
179
- let body;
180
- body = JSON.stringify((0, smithy_client_1._json)(input));
181
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
182
- };
183
- exports.se_ListServicesCommand = se_ListServicesCommand;
184
- const se_ListServicesForAutoScalingConfigurationCommand = async (input, context) => {
185
- const headers = sharedHeaders("ListServicesForAutoScalingConfiguration");
186
- let body;
187
- body = JSON.stringify((0, smithy_client_1._json)(input));
188
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
189
- };
190
- exports.se_ListServicesForAutoScalingConfigurationCommand = se_ListServicesForAutoScalingConfigurationCommand;
191
- const se_ListTagsForResourceCommand = async (input, context) => {
192
- const headers = sharedHeaders("ListTagsForResource");
193
- let body;
194
- body = JSON.stringify((0, smithy_client_1._json)(input));
195
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
- };
197
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
198
- const se_ListVpcConnectorsCommand = async (input, context) => {
199
- const headers = sharedHeaders("ListVpcConnectors");
200
- let body;
201
- body = JSON.stringify((0, smithy_client_1._json)(input));
202
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
- };
204
- exports.se_ListVpcConnectorsCommand = se_ListVpcConnectorsCommand;
205
- const se_ListVpcIngressConnectionsCommand = async (input, context) => {
206
- const headers = sharedHeaders("ListVpcIngressConnections");
207
- let body;
208
- body = JSON.stringify((0, smithy_client_1._json)(input));
209
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
- };
211
- exports.se_ListVpcIngressConnectionsCommand = se_ListVpcIngressConnectionsCommand;
212
- const se_PauseServiceCommand = async (input, context) => {
213
- const headers = sharedHeaders("PauseService");
214
- let body;
215
- body = JSON.stringify((0, smithy_client_1._json)(input));
216
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
217
- };
218
- exports.se_PauseServiceCommand = se_PauseServiceCommand;
219
- const se_ResumeServiceCommand = async (input, context) => {
220
- const headers = sharedHeaders("ResumeService");
221
- let body;
222
- body = JSON.stringify((0, smithy_client_1._json)(input));
223
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
224
- };
225
- exports.se_ResumeServiceCommand = se_ResumeServiceCommand;
226
- const se_StartDeploymentCommand = async (input, context) => {
227
- const headers = sharedHeaders("StartDeployment");
228
- let body;
229
- body = JSON.stringify((0, smithy_client_1._json)(input));
230
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
231
- };
232
- exports.se_StartDeploymentCommand = se_StartDeploymentCommand;
233
- const se_TagResourceCommand = async (input, context) => {
234
- const headers = sharedHeaders("TagResource");
235
- let body;
236
- body = JSON.stringify((0, smithy_client_1._json)(input));
237
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
- };
239
- exports.se_TagResourceCommand = se_TagResourceCommand;
240
- const se_UntagResourceCommand = async (input, context) => {
241
- const headers = sharedHeaders("UntagResource");
242
- let body;
243
- body = JSON.stringify((0, smithy_client_1._json)(input));
244
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
- };
246
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
247
- const se_UpdateDefaultAutoScalingConfigurationCommand = async (input, context) => {
248
- const headers = sharedHeaders("UpdateDefaultAutoScalingConfiguration");
249
- let body;
250
- body = JSON.stringify((0, smithy_client_1._json)(input));
251
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
- };
253
- exports.se_UpdateDefaultAutoScalingConfigurationCommand = se_UpdateDefaultAutoScalingConfigurationCommand;
254
- const se_UpdateServiceCommand = async (input, context) => {
255
- const headers = sharedHeaders("UpdateService");
256
- let body;
257
- body = JSON.stringify((0, smithy_client_1._json)(input));
258
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
259
- };
260
- exports.se_UpdateServiceCommand = se_UpdateServiceCommand;
261
- const se_UpdateVpcIngressConnectionCommand = async (input, context) => {
262
- const headers = sharedHeaders("UpdateVpcIngressConnection");
263
- let body;
264
- body = JSON.stringify((0, smithy_client_1._json)(input));
265
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
266
- };
267
- exports.se_UpdateVpcIngressConnectionCommand = se_UpdateVpcIngressConnectionCommand;
268
- const de_AssociateCustomDomainCommand = async (output, context) => {
269
- if (output.statusCode >= 300) {
270
- return de_AssociateCustomDomainCommandError(output, context);
271
- }
272
- const data = await parseBody(output.body, context);
273
- let contents = {};
274
- contents = (0, smithy_client_1._json)(data);
275
- const response = {
276
- $metadata: deserializeMetadata(output),
277
- ...contents,
278
- };
279
- return response;
280
- };
281
- exports.de_AssociateCustomDomainCommand = de_AssociateCustomDomainCommand;
282
- const de_AssociateCustomDomainCommandError = async (output, context) => {
283
- const parsedOutput = {
284
- ...output,
285
- body: await parseErrorBody(output.body, context),
286
- };
287
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
288
- switch (errorCode) {
289
- case "InternalServiceErrorException":
290
- case "com.amazonaws.apprunner#InternalServiceErrorException":
291
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
292
- case "InvalidRequestException":
293
- case "com.amazonaws.apprunner#InvalidRequestException":
294
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
295
- case "InvalidStateException":
296
- case "com.amazonaws.apprunner#InvalidStateException":
297
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
298
- default:
299
- const parsedBody = parsedOutput.body;
300
- return throwDefaultError({
301
- output,
302
- parsedBody,
303
- errorCode,
304
- });
305
- }
306
- };
307
- const de_CreateAutoScalingConfigurationCommand = async (output, context) => {
308
- if (output.statusCode >= 300) {
309
- return de_CreateAutoScalingConfigurationCommandError(output, context);
310
- }
311
- const data = await parseBody(output.body, context);
312
- let contents = {};
313
- contents = de_CreateAutoScalingConfigurationResponse(data, context);
314
- const response = {
315
- $metadata: deserializeMetadata(output),
316
- ...contents,
317
- };
318
- return response;
319
- };
320
- exports.de_CreateAutoScalingConfigurationCommand = de_CreateAutoScalingConfigurationCommand;
321
- const de_CreateAutoScalingConfigurationCommandError = async (output, context) => {
322
- const parsedOutput = {
323
- ...output,
324
- body: await parseErrorBody(output.body, context),
325
- };
326
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
327
- switch (errorCode) {
328
- case "InternalServiceErrorException":
329
- case "com.amazonaws.apprunner#InternalServiceErrorException":
330
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
331
- case "InvalidRequestException":
332
- case "com.amazonaws.apprunner#InvalidRequestException":
333
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
334
- case "ServiceQuotaExceededException":
335
- case "com.amazonaws.apprunner#ServiceQuotaExceededException":
336
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
337
- default:
338
- const parsedBody = parsedOutput.body;
339
- return throwDefaultError({
340
- output,
341
- parsedBody,
342
- errorCode,
343
- });
344
- }
345
- };
346
- const de_CreateConnectionCommand = async (output, context) => {
347
- if (output.statusCode >= 300) {
348
- return de_CreateConnectionCommandError(output, context);
349
- }
350
- const data = await parseBody(output.body, context);
351
- let contents = {};
352
- contents = de_CreateConnectionResponse(data, context);
353
- const response = {
354
- $metadata: deserializeMetadata(output),
355
- ...contents,
356
- };
357
- return response;
358
- };
359
- exports.de_CreateConnectionCommand = de_CreateConnectionCommand;
360
- const de_CreateConnectionCommandError = async (output, context) => {
361
- const parsedOutput = {
362
- ...output,
363
- body: await parseErrorBody(output.body, context),
364
- };
365
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
366
- switch (errorCode) {
367
- case "InternalServiceErrorException":
368
- case "com.amazonaws.apprunner#InternalServiceErrorException":
369
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
370
- case "InvalidRequestException":
371
- case "com.amazonaws.apprunner#InvalidRequestException":
372
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
373
- case "ServiceQuotaExceededException":
374
- case "com.amazonaws.apprunner#ServiceQuotaExceededException":
375
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
376
- default:
377
- const parsedBody = parsedOutput.body;
378
- return throwDefaultError({
379
- output,
380
- parsedBody,
381
- errorCode,
382
- });
383
- }
384
- };
385
- const de_CreateObservabilityConfigurationCommand = async (output, context) => {
386
- if (output.statusCode >= 300) {
387
- return de_CreateObservabilityConfigurationCommandError(output, context);
388
- }
389
- const data = await parseBody(output.body, context);
390
- let contents = {};
391
- contents = de_CreateObservabilityConfigurationResponse(data, context);
392
- const response = {
393
- $metadata: deserializeMetadata(output),
394
- ...contents,
395
- };
396
- return response;
397
- };
398
- exports.de_CreateObservabilityConfigurationCommand = de_CreateObservabilityConfigurationCommand;
399
- const de_CreateObservabilityConfigurationCommandError = async (output, context) => {
400
- const parsedOutput = {
401
- ...output,
402
- body: await parseErrorBody(output.body, context),
403
- };
404
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
405
- switch (errorCode) {
406
- case "InternalServiceErrorException":
407
- case "com.amazonaws.apprunner#InternalServiceErrorException":
408
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
409
- case "InvalidRequestException":
410
- case "com.amazonaws.apprunner#InvalidRequestException":
411
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
412
- case "ServiceQuotaExceededException":
413
- case "com.amazonaws.apprunner#ServiceQuotaExceededException":
414
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
415
- default:
416
- const parsedBody = parsedOutput.body;
417
- return throwDefaultError({
418
- output,
419
- parsedBody,
420
- errorCode,
421
- });
422
- }
423
- };
424
- const de_CreateServiceCommand = async (output, context) => {
425
- if (output.statusCode >= 300) {
426
- return de_CreateServiceCommandError(output, context);
427
- }
428
- const data = await parseBody(output.body, context);
429
- let contents = {};
430
- contents = de_CreateServiceResponse(data, context);
431
- const response = {
432
- $metadata: deserializeMetadata(output),
433
- ...contents,
434
- };
435
- return response;
436
- };
437
- exports.de_CreateServiceCommand = de_CreateServiceCommand;
438
- const de_CreateServiceCommandError = async (output, context) => {
439
- const parsedOutput = {
440
- ...output,
441
- body: await parseErrorBody(output.body, context),
442
- };
443
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
444
- switch (errorCode) {
445
- case "InternalServiceErrorException":
446
- case "com.amazonaws.apprunner#InternalServiceErrorException":
447
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
448
- case "InvalidRequestException":
449
- case "com.amazonaws.apprunner#InvalidRequestException":
450
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
451
- case "ServiceQuotaExceededException":
452
- case "com.amazonaws.apprunner#ServiceQuotaExceededException":
453
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
454
- default:
455
- const parsedBody = parsedOutput.body;
456
- return throwDefaultError({
457
- output,
458
- parsedBody,
459
- errorCode,
460
- });
461
- }
462
- };
463
- const de_CreateVpcConnectorCommand = async (output, context) => {
464
- if (output.statusCode >= 300) {
465
- return de_CreateVpcConnectorCommandError(output, context);
466
- }
467
- const data = await parseBody(output.body, context);
468
- let contents = {};
469
- contents = de_CreateVpcConnectorResponse(data, context);
470
- const response = {
471
- $metadata: deserializeMetadata(output),
472
- ...contents,
473
- };
474
- return response;
475
- };
476
- exports.de_CreateVpcConnectorCommand = de_CreateVpcConnectorCommand;
477
- const de_CreateVpcConnectorCommandError = async (output, context) => {
478
- const parsedOutput = {
479
- ...output,
480
- body: await parseErrorBody(output.body, context),
481
- };
482
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
483
- switch (errorCode) {
484
- case "InternalServiceErrorException":
485
- case "com.amazonaws.apprunner#InternalServiceErrorException":
486
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
487
- case "InvalidRequestException":
488
- case "com.amazonaws.apprunner#InvalidRequestException":
489
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
490
- case "ServiceQuotaExceededException":
491
- case "com.amazonaws.apprunner#ServiceQuotaExceededException":
492
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
493
- default:
494
- const parsedBody = parsedOutput.body;
495
- return throwDefaultError({
496
- output,
497
- parsedBody,
498
- errorCode,
499
- });
500
- }
501
- };
502
- const de_CreateVpcIngressConnectionCommand = async (output, context) => {
503
- if (output.statusCode >= 300) {
504
- return de_CreateVpcIngressConnectionCommandError(output, context);
505
- }
506
- const data = await parseBody(output.body, context);
507
- let contents = {};
508
- contents = de_CreateVpcIngressConnectionResponse(data, context);
509
- const response = {
510
- $metadata: deserializeMetadata(output),
511
- ...contents,
512
- };
513
- return response;
514
- };
515
- exports.de_CreateVpcIngressConnectionCommand = de_CreateVpcIngressConnectionCommand;
516
- const de_CreateVpcIngressConnectionCommandError = async (output, context) => {
517
- const parsedOutput = {
518
- ...output,
519
- body: await parseErrorBody(output.body, context),
520
- };
521
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
522
- switch (errorCode) {
523
- case "InternalServiceErrorException":
524
- case "com.amazonaws.apprunner#InternalServiceErrorException":
525
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
526
- case "InvalidRequestException":
527
- case "com.amazonaws.apprunner#InvalidRequestException":
528
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
529
- case "InvalidStateException":
530
- case "com.amazonaws.apprunner#InvalidStateException":
531
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
532
- case "ServiceQuotaExceededException":
533
- case "com.amazonaws.apprunner#ServiceQuotaExceededException":
534
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
535
- default:
536
- const parsedBody = parsedOutput.body;
537
- return throwDefaultError({
538
- output,
539
- parsedBody,
540
- errorCode,
541
- });
542
- }
543
- };
544
- const de_DeleteAutoScalingConfigurationCommand = async (output, context) => {
545
- if (output.statusCode >= 300) {
546
- return de_DeleteAutoScalingConfigurationCommandError(output, context);
547
- }
548
- const data = await parseBody(output.body, context);
549
- let contents = {};
550
- contents = de_DeleteAutoScalingConfigurationResponse(data, context);
551
- const response = {
552
- $metadata: deserializeMetadata(output),
553
- ...contents,
554
- };
555
- return response;
556
- };
557
- exports.de_DeleteAutoScalingConfigurationCommand = de_DeleteAutoScalingConfigurationCommand;
558
- const de_DeleteAutoScalingConfigurationCommandError = async (output, context) => {
559
- const parsedOutput = {
560
- ...output,
561
- body: await parseErrorBody(output.body, context),
562
- };
563
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
564
- switch (errorCode) {
565
- case "InternalServiceErrorException":
566
- case "com.amazonaws.apprunner#InternalServiceErrorException":
567
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
568
- case "InvalidRequestException":
569
- case "com.amazonaws.apprunner#InvalidRequestException":
570
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
571
- case "ResourceNotFoundException":
572
- case "com.amazonaws.apprunner#ResourceNotFoundException":
573
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
574
- default:
575
- const parsedBody = parsedOutput.body;
576
- return throwDefaultError({
577
- output,
578
- parsedBody,
579
- errorCode,
580
- });
581
- }
582
- };
583
- const de_DeleteConnectionCommand = async (output, context) => {
584
- if (output.statusCode >= 300) {
585
- return de_DeleteConnectionCommandError(output, context);
586
- }
587
- const data = await parseBody(output.body, context);
588
- let contents = {};
589
- contents = de_DeleteConnectionResponse(data, context);
590
- const response = {
591
- $metadata: deserializeMetadata(output),
592
- ...contents,
593
- };
594
- return response;
595
- };
596
- exports.de_DeleteConnectionCommand = de_DeleteConnectionCommand;
597
- const de_DeleteConnectionCommandError = async (output, context) => {
598
- const parsedOutput = {
599
- ...output,
600
- body: await parseErrorBody(output.body, context),
601
- };
602
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
603
- switch (errorCode) {
604
- case "InternalServiceErrorException":
605
- case "com.amazonaws.apprunner#InternalServiceErrorException":
606
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
607
- case "InvalidRequestException":
608
- case "com.amazonaws.apprunner#InvalidRequestException":
609
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
610
- case "ResourceNotFoundException":
611
- case "com.amazonaws.apprunner#ResourceNotFoundException":
612
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
613
- default:
614
- const parsedBody = parsedOutput.body;
615
- return throwDefaultError({
616
- output,
617
- parsedBody,
618
- errorCode,
619
- });
620
- }
621
- };
622
- const de_DeleteObservabilityConfigurationCommand = async (output, context) => {
623
- if (output.statusCode >= 300) {
624
- return de_DeleteObservabilityConfigurationCommandError(output, context);
625
- }
626
- const data = await parseBody(output.body, context);
627
- let contents = {};
628
- contents = de_DeleteObservabilityConfigurationResponse(data, context);
629
- const response = {
630
- $metadata: deserializeMetadata(output),
631
- ...contents,
632
- };
633
- return response;
634
- };
635
- exports.de_DeleteObservabilityConfigurationCommand = de_DeleteObservabilityConfigurationCommand;
636
- const de_DeleteObservabilityConfigurationCommandError = async (output, context) => {
637
- const parsedOutput = {
638
- ...output,
639
- body: await parseErrorBody(output.body, context),
640
- };
641
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
642
- switch (errorCode) {
643
- case "InternalServiceErrorException":
644
- case "com.amazonaws.apprunner#InternalServiceErrorException":
645
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
646
- case "InvalidRequestException":
647
- case "com.amazonaws.apprunner#InvalidRequestException":
648
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
649
- case "ResourceNotFoundException":
650
- case "com.amazonaws.apprunner#ResourceNotFoundException":
651
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
652
- default:
653
- const parsedBody = parsedOutput.body;
654
- return throwDefaultError({
655
- output,
656
- parsedBody,
657
- errorCode,
658
- });
659
- }
660
- };
661
- const de_DeleteServiceCommand = async (output, context) => {
662
- if (output.statusCode >= 300) {
663
- return de_DeleteServiceCommandError(output, context);
664
- }
665
- const data = await parseBody(output.body, context);
666
- let contents = {};
667
- contents = de_DeleteServiceResponse(data, context);
668
- const response = {
669
- $metadata: deserializeMetadata(output),
670
- ...contents,
671
- };
672
- return response;
673
- };
674
- exports.de_DeleteServiceCommand = de_DeleteServiceCommand;
675
- const de_DeleteServiceCommandError = async (output, context) => {
676
- const parsedOutput = {
677
- ...output,
678
- body: await parseErrorBody(output.body, context),
679
- };
680
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
681
- switch (errorCode) {
682
- case "InternalServiceErrorException":
683
- case "com.amazonaws.apprunner#InternalServiceErrorException":
684
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
685
- case "InvalidRequestException":
686
- case "com.amazonaws.apprunner#InvalidRequestException":
687
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
688
- case "InvalidStateException":
689
- case "com.amazonaws.apprunner#InvalidStateException":
690
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
691
- case "ResourceNotFoundException":
692
- case "com.amazonaws.apprunner#ResourceNotFoundException":
693
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
694
- default:
695
- const parsedBody = parsedOutput.body;
696
- return throwDefaultError({
697
- output,
698
- parsedBody,
699
- errorCode,
700
- });
701
- }
702
- };
703
- const de_DeleteVpcConnectorCommand = async (output, context) => {
704
- if (output.statusCode >= 300) {
705
- return de_DeleteVpcConnectorCommandError(output, context);
706
- }
707
- const data = await parseBody(output.body, context);
708
- let contents = {};
709
- contents = de_DeleteVpcConnectorResponse(data, context);
710
- const response = {
711
- $metadata: deserializeMetadata(output),
712
- ...contents,
713
- };
714
- return response;
715
- };
716
- exports.de_DeleteVpcConnectorCommand = de_DeleteVpcConnectorCommand;
717
- const de_DeleteVpcConnectorCommandError = async (output, context) => {
718
- const parsedOutput = {
719
- ...output,
720
- body: await parseErrorBody(output.body, context),
721
- };
722
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
723
- switch (errorCode) {
724
- case "InternalServiceErrorException":
725
- case "com.amazonaws.apprunner#InternalServiceErrorException":
726
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
727
- case "InvalidRequestException":
728
- case "com.amazonaws.apprunner#InvalidRequestException":
729
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
730
- case "ResourceNotFoundException":
731
- case "com.amazonaws.apprunner#ResourceNotFoundException":
732
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
733
- default:
734
- const parsedBody = parsedOutput.body;
735
- return throwDefaultError({
736
- output,
737
- parsedBody,
738
- errorCode,
739
- });
740
- }
741
- };
742
- const de_DeleteVpcIngressConnectionCommand = async (output, context) => {
743
- if (output.statusCode >= 300) {
744
- return de_DeleteVpcIngressConnectionCommandError(output, context);
745
- }
746
- const data = await parseBody(output.body, context);
747
- let contents = {};
748
- contents = de_DeleteVpcIngressConnectionResponse(data, context);
749
- const response = {
750
- $metadata: deserializeMetadata(output),
751
- ...contents,
752
- };
753
- return response;
754
- };
755
- exports.de_DeleteVpcIngressConnectionCommand = de_DeleteVpcIngressConnectionCommand;
756
- const de_DeleteVpcIngressConnectionCommandError = async (output, context) => {
757
- const parsedOutput = {
758
- ...output,
759
- body: await parseErrorBody(output.body, context),
760
- };
761
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
762
- switch (errorCode) {
763
- case "InternalServiceErrorException":
764
- case "com.amazonaws.apprunner#InternalServiceErrorException":
765
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
766
- case "InvalidRequestException":
767
- case "com.amazonaws.apprunner#InvalidRequestException":
768
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
769
- case "InvalidStateException":
770
- case "com.amazonaws.apprunner#InvalidStateException":
771
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
772
- case "ResourceNotFoundException":
773
- case "com.amazonaws.apprunner#ResourceNotFoundException":
774
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
775
- default:
776
- const parsedBody = parsedOutput.body;
777
- return throwDefaultError({
778
- output,
779
- parsedBody,
780
- errorCode,
781
- });
782
- }
783
- };
784
- const de_DescribeAutoScalingConfigurationCommand = async (output, context) => {
785
- if (output.statusCode >= 300) {
786
- return de_DescribeAutoScalingConfigurationCommandError(output, context);
787
- }
788
- const data = await parseBody(output.body, context);
789
- let contents = {};
790
- contents = de_DescribeAutoScalingConfigurationResponse(data, context);
791
- const response = {
792
- $metadata: deserializeMetadata(output),
793
- ...contents,
794
- };
795
- return response;
796
- };
797
- exports.de_DescribeAutoScalingConfigurationCommand = de_DescribeAutoScalingConfigurationCommand;
798
- const de_DescribeAutoScalingConfigurationCommandError = async (output, context) => {
799
- const parsedOutput = {
800
- ...output,
801
- body: await parseErrorBody(output.body, context),
802
- };
803
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
804
- switch (errorCode) {
805
- case "InternalServiceErrorException":
806
- case "com.amazonaws.apprunner#InternalServiceErrorException":
807
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
808
- case "InvalidRequestException":
809
- case "com.amazonaws.apprunner#InvalidRequestException":
810
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
811
- case "ResourceNotFoundException":
812
- case "com.amazonaws.apprunner#ResourceNotFoundException":
813
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
814
- default:
815
- const parsedBody = parsedOutput.body;
816
- return throwDefaultError({
817
- output,
818
- parsedBody,
819
- errorCode,
820
- });
821
- }
822
- };
823
- const de_DescribeCustomDomainsCommand = async (output, context) => {
824
- if (output.statusCode >= 300) {
825
- return de_DescribeCustomDomainsCommandError(output, context);
826
- }
827
- const data = await parseBody(output.body, context);
828
- let contents = {};
829
- contents = (0, smithy_client_1._json)(data);
830
- const response = {
831
- $metadata: deserializeMetadata(output),
832
- ...contents,
833
- };
834
- return response;
835
- };
836
- exports.de_DescribeCustomDomainsCommand = de_DescribeCustomDomainsCommand;
837
- const de_DescribeCustomDomainsCommandError = async (output, context) => {
838
- const parsedOutput = {
839
- ...output,
840
- body: await parseErrorBody(output.body, context),
841
- };
842
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
843
- switch (errorCode) {
844
- case "InternalServiceErrorException":
845
- case "com.amazonaws.apprunner#InternalServiceErrorException":
846
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
847
- case "InvalidRequestException":
848
- case "com.amazonaws.apprunner#InvalidRequestException":
849
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
850
- case "ResourceNotFoundException":
851
- case "com.amazonaws.apprunner#ResourceNotFoundException":
852
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
853
- default:
854
- const parsedBody = parsedOutput.body;
855
- return throwDefaultError({
856
- output,
857
- parsedBody,
858
- errorCode,
859
- });
860
- }
861
- };
862
- const de_DescribeObservabilityConfigurationCommand = async (output, context) => {
863
- if (output.statusCode >= 300) {
864
- return de_DescribeObservabilityConfigurationCommandError(output, context);
865
- }
866
- const data = await parseBody(output.body, context);
867
- let contents = {};
868
- contents = de_DescribeObservabilityConfigurationResponse(data, context);
869
- const response = {
870
- $metadata: deserializeMetadata(output),
871
- ...contents,
872
- };
873
- return response;
874
- };
875
- exports.de_DescribeObservabilityConfigurationCommand = de_DescribeObservabilityConfigurationCommand;
876
- const de_DescribeObservabilityConfigurationCommandError = async (output, context) => {
877
- const parsedOutput = {
878
- ...output,
879
- body: await parseErrorBody(output.body, context),
880
- };
881
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
882
- switch (errorCode) {
883
- case "InternalServiceErrorException":
884
- case "com.amazonaws.apprunner#InternalServiceErrorException":
885
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
886
- case "InvalidRequestException":
887
- case "com.amazonaws.apprunner#InvalidRequestException":
888
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
889
- case "ResourceNotFoundException":
890
- case "com.amazonaws.apprunner#ResourceNotFoundException":
891
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
892
- default:
893
- const parsedBody = parsedOutput.body;
894
- return throwDefaultError({
895
- output,
896
- parsedBody,
897
- errorCode,
898
- });
899
- }
900
- };
901
- const de_DescribeServiceCommand = async (output, context) => {
902
- if (output.statusCode >= 300) {
903
- return de_DescribeServiceCommandError(output, context);
904
- }
905
- const data = await parseBody(output.body, context);
906
- let contents = {};
907
- contents = de_DescribeServiceResponse(data, context);
908
- const response = {
909
- $metadata: deserializeMetadata(output),
910
- ...contents,
911
- };
912
- return response;
913
- };
914
- exports.de_DescribeServiceCommand = de_DescribeServiceCommand;
915
- const de_DescribeServiceCommandError = async (output, context) => {
916
- const parsedOutput = {
917
- ...output,
918
- body: await parseErrorBody(output.body, context),
919
- };
920
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
921
- switch (errorCode) {
922
- case "InternalServiceErrorException":
923
- case "com.amazonaws.apprunner#InternalServiceErrorException":
924
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
925
- case "InvalidRequestException":
926
- case "com.amazonaws.apprunner#InvalidRequestException":
927
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
928
- case "ResourceNotFoundException":
929
- case "com.amazonaws.apprunner#ResourceNotFoundException":
930
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
931
- default:
932
- const parsedBody = parsedOutput.body;
933
- return throwDefaultError({
934
- output,
935
- parsedBody,
936
- errorCode,
937
- });
938
- }
939
- };
940
- const de_DescribeVpcConnectorCommand = async (output, context) => {
941
- if (output.statusCode >= 300) {
942
- return de_DescribeVpcConnectorCommandError(output, context);
943
- }
944
- const data = await parseBody(output.body, context);
945
- let contents = {};
946
- contents = de_DescribeVpcConnectorResponse(data, context);
947
- const response = {
948
- $metadata: deserializeMetadata(output),
949
- ...contents,
950
- };
951
- return response;
952
- };
953
- exports.de_DescribeVpcConnectorCommand = de_DescribeVpcConnectorCommand;
954
- const de_DescribeVpcConnectorCommandError = async (output, context) => {
955
- const parsedOutput = {
956
- ...output,
957
- body: await parseErrorBody(output.body, context),
958
- };
959
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
960
- switch (errorCode) {
961
- case "InternalServiceErrorException":
962
- case "com.amazonaws.apprunner#InternalServiceErrorException":
963
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
964
- case "InvalidRequestException":
965
- case "com.amazonaws.apprunner#InvalidRequestException":
966
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
967
- case "ResourceNotFoundException":
968
- case "com.amazonaws.apprunner#ResourceNotFoundException":
969
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
970
- default:
971
- const parsedBody = parsedOutput.body;
972
- return throwDefaultError({
973
- output,
974
- parsedBody,
975
- errorCode,
976
- });
977
- }
978
- };
979
- const de_DescribeVpcIngressConnectionCommand = async (output, context) => {
980
- if (output.statusCode >= 300) {
981
- return de_DescribeVpcIngressConnectionCommandError(output, context);
982
- }
983
- const data = await parseBody(output.body, context);
984
- let contents = {};
985
- contents = de_DescribeVpcIngressConnectionResponse(data, context);
986
- const response = {
987
- $metadata: deserializeMetadata(output),
988
- ...contents,
989
- };
990
- return response;
991
- };
992
- exports.de_DescribeVpcIngressConnectionCommand = de_DescribeVpcIngressConnectionCommand;
993
- const de_DescribeVpcIngressConnectionCommandError = async (output, context) => {
994
- const parsedOutput = {
995
- ...output,
996
- body: await parseErrorBody(output.body, context),
997
- };
998
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
999
- switch (errorCode) {
1000
- case "InternalServiceErrorException":
1001
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1002
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1003
- case "InvalidRequestException":
1004
- case "com.amazonaws.apprunner#InvalidRequestException":
1005
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1006
- case "ResourceNotFoundException":
1007
- case "com.amazonaws.apprunner#ResourceNotFoundException":
1008
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1009
- default:
1010
- const parsedBody = parsedOutput.body;
1011
- return throwDefaultError({
1012
- output,
1013
- parsedBody,
1014
- errorCode,
1015
- });
1016
- }
1017
- };
1018
- const de_DisassociateCustomDomainCommand = async (output, context) => {
1019
- if (output.statusCode >= 300) {
1020
- return de_DisassociateCustomDomainCommandError(output, context);
1021
- }
1022
- const data = await parseBody(output.body, context);
1023
- let contents = {};
1024
- contents = (0, smithy_client_1._json)(data);
1025
- const response = {
1026
- $metadata: deserializeMetadata(output),
1027
- ...contents,
1028
- };
1029
- return response;
1030
- };
1031
- exports.de_DisassociateCustomDomainCommand = de_DisassociateCustomDomainCommand;
1032
- const de_DisassociateCustomDomainCommandError = async (output, context) => {
1033
- const parsedOutput = {
1034
- ...output,
1035
- body: await parseErrorBody(output.body, context),
1036
- };
1037
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1038
- switch (errorCode) {
1039
- case "InternalServiceErrorException":
1040
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1041
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1042
- case "InvalidRequestException":
1043
- case "com.amazonaws.apprunner#InvalidRequestException":
1044
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1045
- case "InvalidStateException":
1046
- case "com.amazonaws.apprunner#InvalidStateException":
1047
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1048
- case "ResourceNotFoundException":
1049
- case "com.amazonaws.apprunner#ResourceNotFoundException":
1050
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1051
- default:
1052
- const parsedBody = parsedOutput.body;
1053
- return throwDefaultError({
1054
- output,
1055
- parsedBody,
1056
- errorCode,
1057
- });
1058
- }
1059
- };
1060
- const de_ListAutoScalingConfigurationsCommand = async (output, context) => {
1061
- if (output.statusCode >= 300) {
1062
- return de_ListAutoScalingConfigurationsCommandError(output, context);
1063
- }
1064
- const data = await parseBody(output.body, context);
1065
- let contents = {};
1066
- contents = de_ListAutoScalingConfigurationsResponse(data, context);
1067
- const response = {
1068
- $metadata: deserializeMetadata(output),
1069
- ...contents,
1070
- };
1071
- return response;
1072
- };
1073
- exports.de_ListAutoScalingConfigurationsCommand = de_ListAutoScalingConfigurationsCommand;
1074
- const de_ListAutoScalingConfigurationsCommandError = async (output, context) => {
1075
- const parsedOutput = {
1076
- ...output,
1077
- body: await parseErrorBody(output.body, context),
1078
- };
1079
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1080
- switch (errorCode) {
1081
- case "InternalServiceErrorException":
1082
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1083
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1084
- case "InvalidRequestException":
1085
- case "com.amazonaws.apprunner#InvalidRequestException":
1086
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1087
- default:
1088
- const parsedBody = parsedOutput.body;
1089
- return throwDefaultError({
1090
- output,
1091
- parsedBody,
1092
- errorCode,
1093
- });
1094
- }
1095
- };
1096
- const de_ListConnectionsCommand = async (output, context) => {
1097
- if (output.statusCode >= 300) {
1098
- return de_ListConnectionsCommandError(output, context);
1099
- }
1100
- const data = await parseBody(output.body, context);
1101
- let contents = {};
1102
- contents = de_ListConnectionsResponse(data, context);
1103
- const response = {
1104
- $metadata: deserializeMetadata(output),
1105
- ...contents,
1106
- };
1107
- return response;
1108
- };
1109
- exports.de_ListConnectionsCommand = de_ListConnectionsCommand;
1110
- const de_ListConnectionsCommandError = async (output, context) => {
1111
- const parsedOutput = {
1112
- ...output,
1113
- body: await parseErrorBody(output.body, context),
1114
- };
1115
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1116
- switch (errorCode) {
1117
- case "InternalServiceErrorException":
1118
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1119
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1120
- case "InvalidRequestException":
1121
- case "com.amazonaws.apprunner#InvalidRequestException":
1122
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1123
- default:
1124
- const parsedBody = parsedOutput.body;
1125
- return throwDefaultError({
1126
- output,
1127
- parsedBody,
1128
- errorCode,
1129
- });
1130
- }
1131
- };
1132
- const de_ListObservabilityConfigurationsCommand = async (output, context) => {
1133
- if (output.statusCode >= 300) {
1134
- return de_ListObservabilityConfigurationsCommandError(output, context);
1135
- }
1136
- const data = await parseBody(output.body, context);
1137
- let contents = {};
1138
- contents = (0, smithy_client_1._json)(data);
1139
- const response = {
1140
- $metadata: deserializeMetadata(output),
1141
- ...contents,
1142
- };
1143
- return response;
1144
- };
1145
- exports.de_ListObservabilityConfigurationsCommand = de_ListObservabilityConfigurationsCommand;
1146
- const de_ListObservabilityConfigurationsCommandError = async (output, context) => {
1147
- const parsedOutput = {
1148
- ...output,
1149
- body: await parseErrorBody(output.body, context),
1150
- };
1151
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1152
- switch (errorCode) {
1153
- case "InternalServiceErrorException":
1154
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1155
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1156
- case "InvalidRequestException":
1157
- case "com.amazonaws.apprunner#InvalidRequestException":
1158
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1159
- default:
1160
- const parsedBody = parsedOutput.body;
1161
- return throwDefaultError({
1162
- output,
1163
- parsedBody,
1164
- errorCode,
1165
- });
1166
- }
1167
- };
1168
- const de_ListOperationsCommand = async (output, context) => {
1169
- if (output.statusCode >= 300) {
1170
- return de_ListOperationsCommandError(output, context);
1171
- }
1172
- const data = await parseBody(output.body, context);
1173
- let contents = {};
1174
- contents = de_ListOperationsResponse(data, context);
1175
- const response = {
1176
- $metadata: deserializeMetadata(output),
1177
- ...contents,
1178
- };
1179
- return response;
1180
- };
1181
- exports.de_ListOperationsCommand = de_ListOperationsCommand;
1182
- const de_ListOperationsCommandError = async (output, context) => {
1183
- const parsedOutput = {
1184
- ...output,
1185
- body: await parseErrorBody(output.body, context),
1186
- };
1187
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1188
- switch (errorCode) {
1189
- case "InternalServiceErrorException":
1190
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1191
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1192
- case "InvalidRequestException":
1193
- case "com.amazonaws.apprunner#InvalidRequestException":
1194
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1195
- case "ResourceNotFoundException":
1196
- case "com.amazonaws.apprunner#ResourceNotFoundException":
1197
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1198
- default:
1199
- const parsedBody = parsedOutput.body;
1200
- return throwDefaultError({
1201
- output,
1202
- parsedBody,
1203
- errorCode,
1204
- });
1205
- }
1206
- };
1207
- const de_ListServicesCommand = async (output, context) => {
1208
- if (output.statusCode >= 300) {
1209
- return de_ListServicesCommandError(output, context);
1210
- }
1211
- const data = await parseBody(output.body, context);
1212
- let contents = {};
1213
- contents = de_ListServicesResponse(data, context);
1214
- const response = {
1215
- $metadata: deserializeMetadata(output),
1216
- ...contents,
1217
- };
1218
- return response;
1219
- };
1220
- exports.de_ListServicesCommand = de_ListServicesCommand;
1221
- const de_ListServicesCommandError = async (output, context) => {
1222
- const parsedOutput = {
1223
- ...output,
1224
- body: await parseErrorBody(output.body, context),
1225
- };
1226
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1227
- switch (errorCode) {
1228
- case "InternalServiceErrorException":
1229
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1230
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1231
- case "InvalidRequestException":
1232
- case "com.amazonaws.apprunner#InvalidRequestException":
1233
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1234
- default:
1235
- const parsedBody = parsedOutput.body;
1236
- return throwDefaultError({
1237
- output,
1238
- parsedBody,
1239
- errorCode,
1240
- });
1241
- }
1242
- };
1243
- const de_ListServicesForAutoScalingConfigurationCommand = async (output, context) => {
1244
- if (output.statusCode >= 300) {
1245
- return de_ListServicesForAutoScalingConfigurationCommandError(output, context);
1246
- }
1247
- const data = await parseBody(output.body, context);
1248
- let contents = {};
1249
- contents = (0, smithy_client_1._json)(data);
1250
- const response = {
1251
- $metadata: deserializeMetadata(output),
1252
- ...contents,
1253
- };
1254
- return response;
1255
- };
1256
- exports.de_ListServicesForAutoScalingConfigurationCommand = de_ListServicesForAutoScalingConfigurationCommand;
1257
- const de_ListServicesForAutoScalingConfigurationCommandError = async (output, context) => {
1258
- const parsedOutput = {
1259
- ...output,
1260
- body: await parseErrorBody(output.body, context),
1261
- };
1262
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1263
- switch (errorCode) {
1264
- case "InternalServiceErrorException":
1265
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1266
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1267
- case "InvalidRequestException":
1268
- case "com.amazonaws.apprunner#InvalidRequestException":
1269
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1270
- case "ResourceNotFoundException":
1271
- case "com.amazonaws.apprunner#ResourceNotFoundException":
1272
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1273
- default:
1274
- const parsedBody = parsedOutput.body;
1275
- return throwDefaultError({
1276
- output,
1277
- parsedBody,
1278
- errorCode,
1279
- });
1280
- }
1281
- };
1282
- const de_ListTagsForResourceCommand = async (output, context) => {
1283
- if (output.statusCode >= 300) {
1284
- return de_ListTagsForResourceCommandError(output, context);
1285
- }
1286
- const data = await parseBody(output.body, context);
1287
- let contents = {};
1288
- contents = (0, smithy_client_1._json)(data);
1289
- const response = {
1290
- $metadata: deserializeMetadata(output),
1291
- ...contents,
1292
- };
1293
- return response;
1294
- };
1295
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1296
- const de_ListTagsForResourceCommandError = async (output, context) => {
1297
- const parsedOutput = {
1298
- ...output,
1299
- body: await parseErrorBody(output.body, context),
1300
- };
1301
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1302
- switch (errorCode) {
1303
- case "InternalServiceErrorException":
1304
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1305
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1306
- case "InvalidRequestException":
1307
- case "com.amazonaws.apprunner#InvalidRequestException":
1308
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1309
- case "InvalidStateException":
1310
- case "com.amazonaws.apprunner#InvalidStateException":
1311
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1312
- case "ResourceNotFoundException":
1313
- case "com.amazonaws.apprunner#ResourceNotFoundException":
1314
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1315
- default:
1316
- const parsedBody = parsedOutput.body;
1317
- return throwDefaultError({
1318
- output,
1319
- parsedBody,
1320
- errorCode,
1321
- });
1322
- }
1323
- };
1324
- const de_ListVpcConnectorsCommand = async (output, context) => {
1325
- if (output.statusCode >= 300) {
1326
- return de_ListVpcConnectorsCommandError(output, context);
1327
- }
1328
- const data = await parseBody(output.body, context);
1329
- let contents = {};
1330
- contents = de_ListVpcConnectorsResponse(data, context);
1331
- const response = {
1332
- $metadata: deserializeMetadata(output),
1333
- ...contents,
1334
- };
1335
- return response;
1336
- };
1337
- exports.de_ListVpcConnectorsCommand = de_ListVpcConnectorsCommand;
1338
- const de_ListVpcConnectorsCommandError = async (output, context) => {
1339
- const parsedOutput = {
1340
- ...output,
1341
- body: await parseErrorBody(output.body, context),
1342
- };
1343
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1344
- switch (errorCode) {
1345
- case "InternalServiceErrorException":
1346
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1347
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1348
- case "InvalidRequestException":
1349
- case "com.amazonaws.apprunner#InvalidRequestException":
1350
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1351
- default:
1352
- const parsedBody = parsedOutput.body;
1353
- return throwDefaultError({
1354
- output,
1355
- parsedBody,
1356
- errorCode,
1357
- });
1358
- }
1359
- };
1360
- const de_ListVpcIngressConnectionsCommand = async (output, context) => {
1361
- if (output.statusCode >= 300) {
1362
- return de_ListVpcIngressConnectionsCommandError(output, context);
1363
- }
1364
- const data = await parseBody(output.body, context);
1365
- let contents = {};
1366
- contents = (0, smithy_client_1._json)(data);
1367
- const response = {
1368
- $metadata: deserializeMetadata(output),
1369
- ...contents,
1370
- };
1371
- return response;
1372
- };
1373
- exports.de_ListVpcIngressConnectionsCommand = de_ListVpcIngressConnectionsCommand;
1374
- const de_ListVpcIngressConnectionsCommandError = async (output, context) => {
1375
- const parsedOutput = {
1376
- ...output,
1377
- body: await parseErrorBody(output.body, context),
1378
- };
1379
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1380
- switch (errorCode) {
1381
- case "InternalServiceErrorException":
1382
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1383
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1384
- case "InvalidRequestException":
1385
- case "com.amazonaws.apprunner#InvalidRequestException":
1386
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1387
- default:
1388
- const parsedBody = parsedOutput.body;
1389
- return throwDefaultError({
1390
- output,
1391
- parsedBody,
1392
- errorCode,
1393
- });
1394
- }
1395
- };
1396
- const de_PauseServiceCommand = async (output, context) => {
1397
- if (output.statusCode >= 300) {
1398
- return de_PauseServiceCommandError(output, context);
1399
- }
1400
- const data = await parseBody(output.body, context);
1401
- let contents = {};
1402
- contents = de_PauseServiceResponse(data, context);
1403
- const response = {
1404
- $metadata: deserializeMetadata(output),
1405
- ...contents,
1406
- };
1407
- return response;
1408
- };
1409
- exports.de_PauseServiceCommand = de_PauseServiceCommand;
1410
- const de_PauseServiceCommandError = async (output, context) => {
1411
- const parsedOutput = {
1412
- ...output,
1413
- body: await parseErrorBody(output.body, context),
1414
- };
1415
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1416
- switch (errorCode) {
1417
- case "InternalServiceErrorException":
1418
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1419
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1420
- case "InvalidRequestException":
1421
- case "com.amazonaws.apprunner#InvalidRequestException":
1422
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1423
- case "InvalidStateException":
1424
- case "com.amazonaws.apprunner#InvalidStateException":
1425
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1426
- case "ResourceNotFoundException":
1427
- case "com.amazonaws.apprunner#ResourceNotFoundException":
1428
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1429
- default:
1430
- const parsedBody = parsedOutput.body;
1431
- return throwDefaultError({
1432
- output,
1433
- parsedBody,
1434
- errorCode,
1435
- });
1436
- }
1437
- };
1438
- const de_ResumeServiceCommand = async (output, context) => {
1439
- if (output.statusCode >= 300) {
1440
- return de_ResumeServiceCommandError(output, context);
1441
- }
1442
- const data = await parseBody(output.body, context);
1443
- let contents = {};
1444
- contents = de_ResumeServiceResponse(data, context);
1445
- const response = {
1446
- $metadata: deserializeMetadata(output),
1447
- ...contents,
1448
- };
1449
- return response;
1450
- };
1451
- exports.de_ResumeServiceCommand = de_ResumeServiceCommand;
1452
- const de_ResumeServiceCommandError = async (output, context) => {
1453
- const parsedOutput = {
1454
- ...output,
1455
- body: await parseErrorBody(output.body, context),
1456
- };
1457
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1458
- switch (errorCode) {
1459
- case "InternalServiceErrorException":
1460
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1461
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1462
- case "InvalidRequestException":
1463
- case "com.amazonaws.apprunner#InvalidRequestException":
1464
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1465
- case "InvalidStateException":
1466
- case "com.amazonaws.apprunner#InvalidStateException":
1467
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1468
- case "ResourceNotFoundException":
1469
- case "com.amazonaws.apprunner#ResourceNotFoundException":
1470
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1471
- default:
1472
- const parsedBody = parsedOutput.body;
1473
- return throwDefaultError({
1474
- output,
1475
- parsedBody,
1476
- errorCode,
1477
- });
1478
- }
1479
- };
1480
- const de_StartDeploymentCommand = async (output, context) => {
1481
- if (output.statusCode >= 300) {
1482
- return de_StartDeploymentCommandError(output, context);
1483
- }
1484
- const data = await parseBody(output.body, context);
1485
- let contents = {};
1486
- contents = (0, smithy_client_1._json)(data);
1487
- const response = {
1488
- $metadata: deserializeMetadata(output),
1489
- ...contents,
1490
- };
1491
- return response;
1492
- };
1493
- exports.de_StartDeploymentCommand = de_StartDeploymentCommand;
1494
- const de_StartDeploymentCommandError = async (output, context) => {
1495
- const parsedOutput = {
1496
- ...output,
1497
- body: await parseErrorBody(output.body, context),
1498
- };
1499
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1500
- switch (errorCode) {
1501
- case "InternalServiceErrorException":
1502
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1503
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1504
- case "InvalidRequestException":
1505
- case "com.amazonaws.apprunner#InvalidRequestException":
1506
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1507
- case "ResourceNotFoundException":
1508
- case "com.amazonaws.apprunner#ResourceNotFoundException":
1509
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1510
- default:
1511
- const parsedBody = parsedOutput.body;
1512
- return throwDefaultError({
1513
- output,
1514
- parsedBody,
1515
- errorCode,
1516
- });
1517
- }
1518
- };
1519
- const de_TagResourceCommand = async (output, context) => {
1520
- if (output.statusCode >= 300) {
1521
- return de_TagResourceCommandError(output, context);
1522
- }
1523
- const data = await parseBody(output.body, context);
1524
- let contents = {};
1525
- contents = (0, smithy_client_1._json)(data);
1526
- const response = {
1527
- $metadata: deserializeMetadata(output),
1528
- ...contents,
1529
- };
1530
- return response;
1531
- };
1532
- exports.de_TagResourceCommand = de_TagResourceCommand;
1533
- const de_TagResourceCommandError = async (output, context) => {
1534
- const parsedOutput = {
1535
- ...output,
1536
- body: await parseErrorBody(output.body, context),
1537
- };
1538
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1539
- switch (errorCode) {
1540
- case "InternalServiceErrorException":
1541
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1542
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1543
- case "InvalidRequestException":
1544
- case "com.amazonaws.apprunner#InvalidRequestException":
1545
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1546
- case "InvalidStateException":
1547
- case "com.amazonaws.apprunner#InvalidStateException":
1548
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1549
- case "ResourceNotFoundException":
1550
- case "com.amazonaws.apprunner#ResourceNotFoundException":
1551
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1552
- default:
1553
- const parsedBody = parsedOutput.body;
1554
- return throwDefaultError({
1555
- output,
1556
- parsedBody,
1557
- errorCode,
1558
- });
1559
- }
1560
- };
1561
- const de_UntagResourceCommand = async (output, context) => {
1562
- if (output.statusCode >= 300) {
1563
- return de_UntagResourceCommandError(output, context);
1564
- }
1565
- const data = await parseBody(output.body, context);
1566
- let contents = {};
1567
- contents = (0, smithy_client_1._json)(data);
1568
- const response = {
1569
- $metadata: deserializeMetadata(output),
1570
- ...contents,
1571
- };
1572
- return response;
1573
- };
1574
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
1575
- const de_UntagResourceCommandError = async (output, context) => {
1576
- const parsedOutput = {
1577
- ...output,
1578
- body: await parseErrorBody(output.body, context),
1579
- };
1580
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1581
- switch (errorCode) {
1582
- case "InternalServiceErrorException":
1583
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1584
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1585
- case "InvalidRequestException":
1586
- case "com.amazonaws.apprunner#InvalidRequestException":
1587
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1588
- case "InvalidStateException":
1589
- case "com.amazonaws.apprunner#InvalidStateException":
1590
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1591
- case "ResourceNotFoundException":
1592
- case "com.amazonaws.apprunner#ResourceNotFoundException":
1593
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1594
- default:
1595
- const parsedBody = parsedOutput.body;
1596
- return throwDefaultError({
1597
- output,
1598
- parsedBody,
1599
- errorCode,
1600
- });
1601
- }
1602
- };
1603
- const de_UpdateDefaultAutoScalingConfigurationCommand = async (output, context) => {
1604
- if (output.statusCode >= 300) {
1605
- return de_UpdateDefaultAutoScalingConfigurationCommandError(output, context);
1606
- }
1607
- const data = await parseBody(output.body, context);
1608
- let contents = {};
1609
- contents = de_UpdateDefaultAutoScalingConfigurationResponse(data, context);
1610
- const response = {
1611
- $metadata: deserializeMetadata(output),
1612
- ...contents,
1613
- };
1614
- return response;
1615
- };
1616
- exports.de_UpdateDefaultAutoScalingConfigurationCommand = de_UpdateDefaultAutoScalingConfigurationCommand;
1617
- const de_UpdateDefaultAutoScalingConfigurationCommandError = async (output, context) => {
1618
- const parsedOutput = {
1619
- ...output,
1620
- body: await parseErrorBody(output.body, context),
1621
- };
1622
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1623
- switch (errorCode) {
1624
- case "InternalServiceErrorException":
1625
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1626
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1627
- case "InvalidRequestException":
1628
- case "com.amazonaws.apprunner#InvalidRequestException":
1629
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1630
- case "ResourceNotFoundException":
1631
- case "com.amazonaws.apprunner#ResourceNotFoundException":
1632
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1633
- default:
1634
- const parsedBody = parsedOutput.body;
1635
- return throwDefaultError({
1636
- output,
1637
- parsedBody,
1638
- errorCode,
1639
- });
1640
- }
1641
- };
1642
- const de_UpdateServiceCommand = async (output, context) => {
1643
- if (output.statusCode >= 300) {
1644
- return de_UpdateServiceCommandError(output, context);
1645
- }
1646
- const data = await parseBody(output.body, context);
1647
- let contents = {};
1648
- contents = de_UpdateServiceResponse(data, context);
1649
- const response = {
1650
- $metadata: deserializeMetadata(output),
1651
- ...contents,
1652
- };
1653
- return response;
1654
- };
1655
- exports.de_UpdateServiceCommand = de_UpdateServiceCommand;
1656
- const de_UpdateServiceCommandError = async (output, context) => {
1657
- const parsedOutput = {
1658
- ...output,
1659
- body: await parseErrorBody(output.body, context),
1660
- };
1661
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1662
- switch (errorCode) {
1663
- case "InternalServiceErrorException":
1664
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1665
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1666
- case "InvalidRequestException":
1667
- case "com.amazonaws.apprunner#InvalidRequestException":
1668
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1669
- case "InvalidStateException":
1670
- case "com.amazonaws.apprunner#InvalidStateException":
1671
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1672
- case "ResourceNotFoundException":
1673
- case "com.amazonaws.apprunner#ResourceNotFoundException":
1674
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1675
- default:
1676
- const parsedBody = parsedOutput.body;
1677
- return throwDefaultError({
1678
- output,
1679
- parsedBody,
1680
- errorCode,
1681
- });
1682
- }
1683
- };
1684
- const de_UpdateVpcIngressConnectionCommand = async (output, context) => {
1685
- if (output.statusCode >= 300) {
1686
- return de_UpdateVpcIngressConnectionCommandError(output, context);
1687
- }
1688
- const data = await parseBody(output.body, context);
1689
- let contents = {};
1690
- contents = de_UpdateVpcIngressConnectionResponse(data, context);
1691
- const response = {
1692
- $metadata: deserializeMetadata(output),
1693
- ...contents,
1694
- };
1695
- return response;
1696
- };
1697
- exports.de_UpdateVpcIngressConnectionCommand = de_UpdateVpcIngressConnectionCommand;
1698
- const de_UpdateVpcIngressConnectionCommandError = async (output, context) => {
1699
- const parsedOutput = {
1700
- ...output,
1701
- body: await parseErrorBody(output.body, context),
1702
- };
1703
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1704
- switch (errorCode) {
1705
- case "InternalServiceErrorException":
1706
- case "com.amazonaws.apprunner#InternalServiceErrorException":
1707
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1708
- case "InvalidRequestException":
1709
- case "com.amazonaws.apprunner#InvalidRequestException":
1710
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1711
- case "InvalidStateException":
1712
- case "com.amazonaws.apprunner#InvalidStateException":
1713
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1714
- case "ResourceNotFoundException":
1715
- case "com.amazonaws.apprunner#ResourceNotFoundException":
1716
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1717
- default:
1718
- const parsedBody = parsedOutput.body;
1719
- return throwDefaultError({
1720
- output,
1721
- parsedBody,
1722
- errorCode,
1723
- });
1724
- }
1725
- };
1726
- const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
1727
- const body = parsedOutput.body;
1728
- const deserialized = (0, smithy_client_1._json)(body);
1729
- const exception = new models_0_1.InternalServiceErrorException({
1730
- $metadata: deserializeMetadata(parsedOutput),
1731
- ...deserialized,
1732
- });
1733
- return (0, smithy_client_1.decorateServiceException)(exception, body);
1734
- };
1735
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1736
- const body = parsedOutput.body;
1737
- const deserialized = (0, smithy_client_1._json)(body);
1738
- const exception = new models_0_1.InvalidRequestException({
1739
- $metadata: deserializeMetadata(parsedOutput),
1740
- ...deserialized,
1741
- });
1742
- return (0, smithy_client_1.decorateServiceException)(exception, body);
1743
- };
1744
- const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
1745
- const body = parsedOutput.body;
1746
- const deserialized = (0, smithy_client_1._json)(body);
1747
- const exception = new models_0_1.InvalidStateException({
1748
- $metadata: deserializeMetadata(parsedOutput),
1749
- ...deserialized,
1750
- });
1751
- return (0, smithy_client_1.decorateServiceException)(exception, body);
1752
- };
1753
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1754
- const body = parsedOutput.body;
1755
- const deserialized = (0, smithy_client_1._json)(body);
1756
- const exception = new models_0_1.ResourceNotFoundException({
1757
- $metadata: deserializeMetadata(parsedOutput),
1758
- ...deserialized,
1759
- });
1760
- return (0, smithy_client_1.decorateServiceException)(exception, body);
1761
- };
1762
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1763
- const body = parsedOutput.body;
1764
- const deserialized = (0, smithy_client_1._json)(body);
1765
- const exception = new models_0_1.ServiceQuotaExceededException({
1766
- $metadata: deserializeMetadata(parsedOutput),
1767
- ...deserialized,
1768
- });
1769
- return (0, smithy_client_1.decorateServiceException)(exception, body);
1770
- };
1771
- const de_AutoScalingConfiguration = (output, context) => {
1772
- return (0, smithy_client_1.take)(output, {
1773
- AutoScalingConfigurationArn: smithy_client_1.expectString,
1774
- AutoScalingConfigurationName: smithy_client_1.expectString,
1775
- AutoScalingConfigurationRevision: smithy_client_1.expectInt32,
1776
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1777
- DeletedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1778
- HasAssociatedService: smithy_client_1.expectBoolean,
1779
- IsDefault: smithy_client_1.expectBoolean,
1780
- Latest: smithy_client_1.expectBoolean,
1781
- MaxConcurrency: smithy_client_1.expectInt32,
1782
- MaxSize: smithy_client_1.expectInt32,
1783
- MinSize: smithy_client_1.expectInt32,
1784
- Status: smithy_client_1.expectString,
1785
- });
1786
- };
1787
- const de_AutoScalingConfigurationSummary = (output, context) => {
1788
- return (0, smithy_client_1.take)(output, {
1789
- AutoScalingConfigurationArn: smithy_client_1.expectString,
1790
- AutoScalingConfigurationName: smithy_client_1.expectString,
1791
- AutoScalingConfigurationRevision: smithy_client_1.expectInt32,
1792
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1793
- HasAssociatedService: smithy_client_1.expectBoolean,
1794
- IsDefault: smithy_client_1.expectBoolean,
1795
- Status: smithy_client_1.expectString,
1796
- });
1797
- };
1798
- const de_AutoScalingConfigurationSummaryList = (output, context) => {
1799
- const retVal = (output || [])
1800
- .filter((e) => e != null)
1801
- .map((entry) => {
1802
- return de_AutoScalingConfigurationSummary(entry, context);
1803
- });
1804
- return retVal;
1805
- };
1806
- const de_Connection = (output, context) => {
1807
- return (0, smithy_client_1.take)(output, {
1808
- ConnectionArn: smithy_client_1.expectString,
1809
- ConnectionName: smithy_client_1.expectString,
1810
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1811
- ProviderType: smithy_client_1.expectString,
1812
- Status: smithy_client_1.expectString,
1813
- });
1814
- };
1815
- const de_ConnectionSummary = (output, context) => {
1816
- return (0, smithy_client_1.take)(output, {
1817
- ConnectionArn: smithy_client_1.expectString,
1818
- ConnectionName: smithy_client_1.expectString,
1819
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1820
- ProviderType: smithy_client_1.expectString,
1821
- Status: smithy_client_1.expectString,
1822
- });
1823
- };
1824
- const de_ConnectionSummaryList = (output, context) => {
1825
- const retVal = (output || [])
1826
- .filter((e) => e != null)
1827
- .map((entry) => {
1828
- return de_ConnectionSummary(entry, context);
1829
- });
1830
- return retVal;
1831
- };
1832
- const de_CreateAutoScalingConfigurationResponse = (output, context) => {
1833
- return (0, smithy_client_1.take)(output, {
1834
- AutoScalingConfiguration: (_) => de_AutoScalingConfiguration(_, context),
1835
- });
1836
- };
1837
- const de_CreateConnectionResponse = (output, context) => {
1838
- return (0, smithy_client_1.take)(output, {
1839
- Connection: (_) => de_Connection(_, context),
1840
- });
1841
- };
1842
- const de_CreateObservabilityConfigurationResponse = (output, context) => {
1843
- return (0, smithy_client_1.take)(output, {
1844
- ObservabilityConfiguration: (_) => de_ObservabilityConfiguration(_, context),
1845
- });
1846
- };
1847
- const de_CreateServiceResponse = (output, context) => {
1848
- return (0, smithy_client_1.take)(output, {
1849
- OperationId: smithy_client_1.expectString,
1850
- Service: (_) => de_Service(_, context),
1851
- });
1852
- };
1853
- const de_CreateVpcConnectorResponse = (output, context) => {
1854
- return (0, smithy_client_1.take)(output, {
1855
- VpcConnector: (_) => de_VpcConnector(_, context),
1856
- });
1857
- };
1858
- const de_CreateVpcIngressConnectionResponse = (output, context) => {
1859
- return (0, smithy_client_1.take)(output, {
1860
- VpcIngressConnection: (_) => de_VpcIngressConnection(_, context),
1861
- });
1862
- };
1863
- const de_DeleteAutoScalingConfigurationResponse = (output, context) => {
1864
- return (0, smithy_client_1.take)(output, {
1865
- AutoScalingConfiguration: (_) => de_AutoScalingConfiguration(_, context),
1866
- });
1867
- };
1868
- const de_DeleteConnectionResponse = (output, context) => {
1869
- return (0, smithy_client_1.take)(output, {
1870
- Connection: (_) => de_Connection(_, context),
1871
- });
1872
- };
1873
- const de_DeleteObservabilityConfigurationResponse = (output, context) => {
1874
- return (0, smithy_client_1.take)(output, {
1875
- ObservabilityConfiguration: (_) => de_ObservabilityConfiguration(_, context),
1876
- });
1877
- };
1878
- const de_DeleteServiceResponse = (output, context) => {
1879
- return (0, smithy_client_1.take)(output, {
1880
- OperationId: smithy_client_1.expectString,
1881
- Service: (_) => de_Service(_, context),
1882
- });
1883
- };
1884
- const de_DeleteVpcConnectorResponse = (output, context) => {
1885
- return (0, smithy_client_1.take)(output, {
1886
- VpcConnector: (_) => de_VpcConnector(_, context),
1887
- });
1888
- };
1889
- const de_DeleteVpcIngressConnectionResponse = (output, context) => {
1890
- return (0, smithy_client_1.take)(output, {
1891
- VpcIngressConnection: (_) => de_VpcIngressConnection(_, context),
1892
- });
1893
- };
1894
- const de_DescribeAutoScalingConfigurationResponse = (output, context) => {
1895
- return (0, smithy_client_1.take)(output, {
1896
- AutoScalingConfiguration: (_) => de_AutoScalingConfiguration(_, context),
1897
- });
1898
- };
1899
- const de_DescribeObservabilityConfigurationResponse = (output, context) => {
1900
- return (0, smithy_client_1.take)(output, {
1901
- ObservabilityConfiguration: (_) => de_ObservabilityConfiguration(_, context),
1902
- });
1903
- };
1904
- const de_DescribeServiceResponse = (output, context) => {
1905
- return (0, smithy_client_1.take)(output, {
1906
- Service: (_) => de_Service(_, context),
1907
- });
1908
- };
1909
- const de_DescribeVpcConnectorResponse = (output, context) => {
1910
- return (0, smithy_client_1.take)(output, {
1911
- VpcConnector: (_) => de_VpcConnector(_, context),
1912
- });
1913
- };
1914
- const de_DescribeVpcIngressConnectionResponse = (output, context) => {
1915
- return (0, smithy_client_1.take)(output, {
1916
- VpcIngressConnection: (_) => de_VpcIngressConnection(_, context),
1917
- });
1918
- };
1919
- const de_ListAutoScalingConfigurationsResponse = (output, context) => {
1920
- return (0, smithy_client_1.take)(output, {
1921
- AutoScalingConfigurationSummaryList: (_) => de_AutoScalingConfigurationSummaryList(_, context),
1922
- NextToken: smithy_client_1.expectString,
1923
- });
1924
- };
1925
- const de_ListConnectionsResponse = (output, context) => {
1926
- return (0, smithy_client_1.take)(output, {
1927
- ConnectionSummaryList: (_) => de_ConnectionSummaryList(_, context),
1928
- NextToken: smithy_client_1.expectString,
1929
- });
1930
- };
1931
- const de_ListOperationsResponse = (output, context) => {
1932
- return (0, smithy_client_1.take)(output, {
1933
- NextToken: smithy_client_1.expectString,
1934
- OperationSummaryList: (_) => de_OperationSummaryList(_, context),
1935
- });
1936
- };
1937
- const de_ListServicesResponse = (output, context) => {
1938
- return (0, smithy_client_1.take)(output, {
1939
- NextToken: smithy_client_1.expectString,
1940
- ServiceSummaryList: (_) => de_ServiceSummaryList(_, context),
1941
- });
1942
- };
1943
- const de_ListVpcConnectorsResponse = (output, context) => {
1944
- return (0, smithy_client_1.take)(output, {
1945
- NextToken: smithy_client_1.expectString,
1946
- VpcConnectors: (_) => de_VpcConnectors(_, context),
1947
- });
1948
- };
1949
- const de_ObservabilityConfiguration = (output, context) => {
1950
- return (0, smithy_client_1.take)(output, {
1951
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1952
- DeletedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1953
- Latest: smithy_client_1.expectBoolean,
1954
- ObservabilityConfigurationArn: smithy_client_1.expectString,
1955
- ObservabilityConfigurationName: smithy_client_1.expectString,
1956
- ObservabilityConfigurationRevision: smithy_client_1.expectInt32,
1957
- Status: smithy_client_1.expectString,
1958
- TraceConfiguration: smithy_client_1._json,
1959
- });
1960
- };
1961
- const de_OperationSummary = (output, context) => {
1962
- return (0, smithy_client_1.take)(output, {
1963
- EndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1964
- Id: smithy_client_1.expectString,
1965
- StartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1966
- Status: smithy_client_1.expectString,
1967
- TargetArn: smithy_client_1.expectString,
1968
- Type: smithy_client_1.expectString,
1969
- UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1970
- });
1971
- };
1972
- const de_OperationSummaryList = (output, context) => {
1973
- const retVal = (output || [])
1974
- .filter((e) => e != null)
1975
- .map((entry) => {
1976
- return de_OperationSummary(entry, context);
1977
- });
1978
- return retVal;
1979
- };
1980
- const de_PauseServiceResponse = (output, context) => {
1981
- return (0, smithy_client_1.take)(output, {
1982
- OperationId: smithy_client_1.expectString,
1983
- Service: (_) => de_Service(_, context),
1984
- });
1985
- };
1986
- const de_ResumeServiceResponse = (output, context) => {
1987
- return (0, smithy_client_1.take)(output, {
1988
- OperationId: smithy_client_1.expectString,
1989
- Service: (_) => de_Service(_, context),
1990
- });
1991
- };
1992
- const de_Service = (output, context) => {
1993
- return (0, smithy_client_1.take)(output, {
1994
- AutoScalingConfigurationSummary: (_) => de_AutoScalingConfigurationSummary(_, context),
1995
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1996
- DeletedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1997
- EncryptionConfiguration: smithy_client_1._json,
1998
- HealthCheckConfiguration: smithy_client_1._json,
1999
- InstanceConfiguration: smithy_client_1._json,
2000
- NetworkConfiguration: smithy_client_1._json,
2001
- ObservabilityConfiguration: smithy_client_1._json,
2002
- ServiceArn: smithy_client_1.expectString,
2003
- ServiceId: smithy_client_1.expectString,
2004
- ServiceName: smithy_client_1.expectString,
2005
- ServiceUrl: smithy_client_1.expectString,
2006
- SourceConfiguration: smithy_client_1._json,
2007
- Status: smithy_client_1.expectString,
2008
- UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2009
- });
2010
- };
2011
- const de_ServiceSummary = (output, context) => {
2012
- return (0, smithy_client_1.take)(output, {
2013
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2014
- ServiceArn: smithy_client_1.expectString,
2015
- ServiceId: smithy_client_1.expectString,
2016
- ServiceName: smithy_client_1.expectString,
2017
- ServiceUrl: smithy_client_1.expectString,
2018
- Status: smithy_client_1.expectString,
2019
- UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2020
- });
2021
- };
2022
- const de_ServiceSummaryList = (output, context) => {
2023
- const retVal = (output || [])
2024
- .filter((e) => e != null)
2025
- .map((entry) => {
2026
- return de_ServiceSummary(entry, context);
2027
- });
2028
- return retVal;
2029
- };
2030
- const de_UpdateDefaultAutoScalingConfigurationResponse = (output, context) => {
2031
- return (0, smithy_client_1.take)(output, {
2032
- AutoScalingConfiguration: (_) => de_AutoScalingConfiguration(_, context),
2033
- });
2034
- };
2035
- const de_UpdateServiceResponse = (output, context) => {
2036
- return (0, smithy_client_1.take)(output, {
2037
- OperationId: smithy_client_1.expectString,
2038
- Service: (_) => de_Service(_, context),
2039
- });
2040
- };
2041
- const de_UpdateVpcIngressConnectionResponse = (output, context) => {
2042
- return (0, smithy_client_1.take)(output, {
2043
- VpcIngressConnection: (_) => de_VpcIngressConnection(_, context),
2044
- });
2045
- };
2046
- const de_VpcConnector = (output, context) => {
2047
- return (0, smithy_client_1.take)(output, {
2048
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2049
- DeletedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2050
- SecurityGroups: smithy_client_1._json,
2051
- Status: smithy_client_1.expectString,
2052
- Subnets: smithy_client_1._json,
2053
- VpcConnectorArn: smithy_client_1.expectString,
2054
- VpcConnectorName: smithy_client_1.expectString,
2055
- VpcConnectorRevision: smithy_client_1.expectInt32,
2056
- });
2057
- };
2058
- const de_VpcConnectors = (output, context) => {
2059
- const retVal = (output || [])
2060
- .filter((e) => e != null)
2061
- .map((entry) => {
2062
- return de_VpcConnector(entry, context);
2063
- });
2064
- return retVal;
2065
- };
2066
- const de_VpcIngressConnection = (output, context) => {
2067
- return (0, smithy_client_1.take)(output, {
2068
- AccountId: smithy_client_1.expectString,
2069
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2070
- DeletedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2071
- DomainName: smithy_client_1.expectString,
2072
- IngressVpcConfiguration: smithy_client_1._json,
2073
- ServiceArn: smithy_client_1.expectString,
2074
- Status: smithy_client_1.expectString,
2075
- VpcIngressConnectionArn: smithy_client_1.expectString,
2076
- VpcIngressConnectionName: smithy_client_1.expectString,
2077
- });
2078
- };
2079
- const deserializeMetadata = (output) => ({
2080
- httpStatusCode: output.statusCode,
2081
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2082
- extendedRequestId: output.headers["x-amz-id-2"],
2083
- cfId: output.headers["x-amz-cf-id"],
2084
- });
2085
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
2086
- const throwDefaultError = (0, smithy_client_1.withBaseException)(AppRunnerServiceException_1.AppRunnerServiceException);
2087
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2088
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2089
- const contents = {
2090
- protocol,
2091
- hostname,
2092
- port,
2093
- method: "POST",
2094
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2095
- headers,
2096
- };
2097
- if (resolvedHostname !== undefined) {
2098
- contents.hostname = resolvedHostname;
2099
- }
2100
- if (body !== undefined) {
2101
- contents.body = body;
2102
- }
2103
- return new protocol_http_1.HttpRequest(contents);
2104
- };
2105
- function sharedHeaders(operation) {
2106
- return {
2107
- "content-type": "application/x-amz-json-1.0",
2108
- "x-amz-target": `AppRunner.${operation}`,
2109
- };
2110
- }
2111
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2112
- if (encoded.length) {
2113
- return JSON.parse(encoded);
2114
- }
2115
- return {};
2116
- });
2117
- const parseErrorBody = async (errorBody, context) => {
2118
- const value = await parseBody(errorBody, context);
2119
- value.message = value.message ?? value.Message;
2120
- return value;
2121
- };
2122
- const loadRestJsonErrorCode = (output, data) => {
2123
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2124
- const sanitizeErrorCode = (rawValue) => {
2125
- let cleanValue = rawValue;
2126
- if (typeof cleanValue === "number") {
2127
- cleanValue = cleanValue.toString();
2128
- }
2129
- if (cleanValue.indexOf(",") >= 0) {
2130
- cleanValue = cleanValue.split(",")[0];
2131
- }
2132
- if (cleanValue.indexOf(":") >= 0) {
2133
- cleanValue = cleanValue.split(":")[0];
2134
- }
2135
- if (cleanValue.indexOf("#") >= 0) {
2136
- cleanValue = cleanValue.split("#")[1];
2137
- }
2138
- return cleanValue;
2139
- };
2140
- const headerKey = findKey(output.headers, "x-amzn-errortype");
2141
- if (headerKey !== undefined) {
2142
- return sanitizeErrorCode(output.headers[headerKey]);
2143
- }
2144
- if (data.code !== undefined) {
2145
- return sanitizeErrorCode(data.code);
2146
- }
2147
- if (data["__type"] !== undefined) {
2148
- return sanitizeErrorCode(data["__type"]);
2149
- }
2150
- };
1
+ module.exports = require("../index.js");