@aws-sdk/client-amplifybackend 3.490.0 → 3.496.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 (43) hide show
  1. package/dist-cjs/AmplifyBackend.js +1 -73
  2. package/dist-cjs/AmplifyBackendClient.js +1 -43
  3. package/dist-cjs/commands/CloneBackendCommand.js +1 -28
  4. package/dist-cjs/commands/CreateBackendAPICommand.js +1 -28
  5. package/dist-cjs/commands/CreateBackendAuthCommand.js +1 -29
  6. package/dist-cjs/commands/CreateBackendCommand.js +1 -28
  7. package/dist-cjs/commands/CreateBackendConfigCommand.js +1 -28
  8. package/dist-cjs/commands/CreateBackendStorageCommand.js +1 -28
  9. package/dist-cjs/commands/CreateTokenCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteBackendAPICommand.js +1 -28
  11. package/dist-cjs/commands/DeleteBackendAuthCommand.js +1 -28
  12. package/dist-cjs/commands/DeleteBackendCommand.js +1 -28
  13. package/dist-cjs/commands/DeleteBackendStorageCommand.js +1 -28
  14. package/dist-cjs/commands/DeleteTokenCommand.js +1 -28
  15. package/dist-cjs/commands/GenerateBackendAPIModelsCommand.js +1 -28
  16. package/dist-cjs/commands/GetBackendAPICommand.js +1 -28
  17. package/dist-cjs/commands/GetBackendAPIModelsCommand.js +1 -28
  18. package/dist-cjs/commands/GetBackendAuthCommand.js +1 -29
  19. package/dist-cjs/commands/GetBackendCommand.js +1 -28
  20. package/dist-cjs/commands/GetBackendJobCommand.js +1 -28
  21. package/dist-cjs/commands/GetBackendStorageCommand.js +1 -28
  22. package/dist-cjs/commands/GetTokenCommand.js +1 -28
  23. package/dist-cjs/commands/ImportBackendAuthCommand.js +1 -28
  24. package/dist-cjs/commands/ImportBackendStorageCommand.js +1 -28
  25. package/dist-cjs/commands/ListBackendJobsCommand.js +1 -28
  26. package/dist-cjs/commands/ListS3BucketsCommand.js +1 -28
  27. package/dist-cjs/commands/RemoveAllBackendsCommand.js +1 -28
  28. package/dist-cjs/commands/RemoveBackendConfigCommand.js +1 -28
  29. package/dist-cjs/commands/UpdateBackendAPICommand.js +1 -28
  30. package/dist-cjs/commands/UpdateBackendAuthCommand.js +1 -29
  31. package/dist-cjs/commands/UpdateBackendConfigCommand.js +1 -28
  32. package/dist-cjs/commands/UpdateBackendJobCommand.js +1 -28
  33. package/dist-cjs/commands/UpdateBackendStorageCommand.js +1 -28
  34. package/dist-cjs/commands/index.js +1 -34
  35. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  36. package/dist-cjs/extensionConfiguration.js +1 -2
  37. package/dist-cjs/index.js +3559 -10
  38. package/dist-cjs/models/AmplifyBackendServiceException.js +1 -12
  39. package/dist-cjs/models/index.js +1 -4
  40. package/dist-cjs/models/models_0.js +1 -267
  41. package/dist-cjs/protocols/Aws_restJson1.js +1 -2474
  42. package/dist-cjs/runtimeExtensions.js +1 -22
  43. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,3560 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AmplifyBackendServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./AmplifyBackendClient"), exports);
6
- tslib_1.__exportStar(require("./AmplifyBackend"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./models"), exports);
9
- require("@aws-sdk/util-endpoints");
10
- var AmplifyBackendServiceException_1 = require("./models/AmplifyBackendServiceException");
11
- Object.defineProperty(exports, "AmplifyBackendServiceException", { enumerable: true, get: function () { return AmplifyBackendServiceException_1.AmplifyBackendServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AdditionalConstraintsElement: () => AdditionalConstraintsElement,
25
+ AmplifyBackend: () => AmplifyBackend,
26
+ AmplifyBackendClient: () => AmplifyBackendClient,
27
+ AmplifyBackendServiceException: () => AmplifyBackendServiceException,
28
+ AuthResources: () => AuthResources,
29
+ AuthenticatedElement: () => AuthenticatedElement,
30
+ BackendAuthAppleProviderConfigFilterSensitiveLog: () => BackendAuthAppleProviderConfigFilterSensitiveLog,
31
+ BackendAuthSocialProviderConfigFilterSensitiveLog: () => BackendAuthSocialProviderConfigFilterSensitiveLog,
32
+ BadRequestException: () => BadRequestException,
33
+ CloneBackendCommand: () => CloneBackendCommand,
34
+ CreateBackendAPICommand: () => CreateBackendAPICommand,
35
+ CreateBackendAuthCommand: () => CreateBackendAuthCommand,
36
+ CreateBackendAuthForgotPasswordConfigFilterSensitiveLog: () => CreateBackendAuthForgotPasswordConfigFilterSensitiveLog,
37
+ CreateBackendAuthOAuthConfigFilterSensitiveLog: () => CreateBackendAuthOAuthConfigFilterSensitiveLog,
38
+ CreateBackendAuthRequestFilterSensitiveLog: () => CreateBackendAuthRequestFilterSensitiveLog,
39
+ CreateBackendAuthResourceConfigFilterSensitiveLog: () => CreateBackendAuthResourceConfigFilterSensitiveLog,
40
+ CreateBackendAuthUserPoolConfigFilterSensitiveLog: () => CreateBackendAuthUserPoolConfigFilterSensitiveLog,
41
+ CreateBackendAuthVerificationMessageConfigFilterSensitiveLog: () => CreateBackendAuthVerificationMessageConfigFilterSensitiveLog,
42
+ CreateBackendCommand: () => CreateBackendCommand,
43
+ CreateBackendConfigCommand: () => CreateBackendConfigCommand,
44
+ CreateBackendStorageCommand: () => CreateBackendStorageCommand,
45
+ CreateTokenCommand: () => CreateTokenCommand,
46
+ DeleteBackendAPICommand: () => DeleteBackendAPICommand,
47
+ DeleteBackendAuthCommand: () => DeleteBackendAuthCommand,
48
+ DeleteBackendCommand: () => DeleteBackendCommand,
49
+ DeleteBackendStorageCommand: () => DeleteBackendStorageCommand,
50
+ DeleteTokenCommand: () => DeleteTokenCommand,
51
+ DeliveryMethod: () => DeliveryMethod,
52
+ EmailSettingsFilterSensitiveLog: () => EmailSettingsFilterSensitiveLog,
53
+ GatewayTimeoutException: () => GatewayTimeoutException,
54
+ GenerateBackendAPIModelsCommand: () => GenerateBackendAPIModelsCommand,
55
+ GetBackendAPICommand: () => GetBackendAPICommand,
56
+ GetBackendAPIModelsCommand: () => GetBackendAPIModelsCommand,
57
+ GetBackendAuthCommand: () => GetBackendAuthCommand,
58
+ GetBackendAuthResponseFilterSensitiveLog: () => GetBackendAuthResponseFilterSensitiveLog,
59
+ GetBackendCommand: () => GetBackendCommand,
60
+ GetBackendJobCommand: () => GetBackendJobCommand,
61
+ GetBackendStorageCommand: () => GetBackendStorageCommand,
62
+ GetTokenCommand: () => GetTokenCommand,
63
+ ImportBackendAuthCommand: () => ImportBackendAuthCommand,
64
+ ImportBackendStorageCommand: () => ImportBackendStorageCommand,
65
+ ListBackendJobsCommand: () => ListBackendJobsCommand,
66
+ ListS3BucketsCommand: () => ListS3BucketsCommand,
67
+ MFAMode: () => MFAMode,
68
+ MfaTypesElement: () => MfaTypesElement,
69
+ Mode: () => Mode,
70
+ NotFoundException: () => NotFoundException,
71
+ OAuthGrantType: () => OAuthGrantType,
72
+ OAuthScopesElement: () => OAuthScopesElement,
73
+ RemoveAllBackendsCommand: () => RemoveAllBackendsCommand,
74
+ RemoveBackendConfigCommand: () => RemoveBackendConfigCommand,
75
+ RequiredSignUpAttributesElement: () => RequiredSignUpAttributesElement,
76
+ ResolutionStrategy: () => ResolutionStrategy,
77
+ Service: () => Service,
78
+ ServiceName: () => ServiceName,
79
+ SignInMethod: () => SignInMethod,
80
+ SmsSettingsFilterSensitiveLog: () => SmsSettingsFilterSensitiveLog,
81
+ SocialProviderSettingsFilterSensitiveLog: () => SocialProviderSettingsFilterSensitiveLog,
82
+ Status: () => Status,
83
+ TooManyRequestsException: () => TooManyRequestsException,
84
+ UnAuthenticatedElement: () => UnAuthenticatedElement,
85
+ UpdateBackendAPICommand: () => UpdateBackendAPICommand,
86
+ UpdateBackendAuthCommand: () => UpdateBackendAuthCommand,
87
+ UpdateBackendAuthForgotPasswordConfigFilterSensitiveLog: () => UpdateBackendAuthForgotPasswordConfigFilterSensitiveLog,
88
+ UpdateBackendAuthOAuthConfigFilterSensitiveLog: () => UpdateBackendAuthOAuthConfigFilterSensitiveLog,
89
+ UpdateBackendAuthRequestFilterSensitiveLog: () => UpdateBackendAuthRequestFilterSensitiveLog,
90
+ UpdateBackendAuthResourceConfigFilterSensitiveLog: () => UpdateBackendAuthResourceConfigFilterSensitiveLog,
91
+ UpdateBackendAuthUserPoolConfigFilterSensitiveLog: () => UpdateBackendAuthUserPoolConfigFilterSensitiveLog,
92
+ UpdateBackendAuthVerificationMessageConfigFilterSensitiveLog: () => UpdateBackendAuthVerificationMessageConfigFilterSensitiveLog,
93
+ UpdateBackendConfigCommand: () => UpdateBackendConfigCommand,
94
+ UpdateBackendJobCommand: () => UpdateBackendJobCommand,
95
+ UpdateBackendStorageCommand: () => UpdateBackendStorageCommand,
96
+ __Client: () => import_smithy_client.Client
97
+ });
98
+ module.exports = __toCommonJS(src_exports);
99
+
100
+ // src/AmplifyBackendClient.ts
101
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
102
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
103
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
104
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
105
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
106
+ var import_config_resolver = require("@smithy/config-resolver");
107
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
108
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
109
+ var import_middleware_retry = require("@smithy/middleware-retry");
110
+
111
+
112
+ // src/endpoint/EndpointParameters.ts
113
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
114
+ return {
115
+ ...options,
116
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
117
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
118
+ defaultSigningName: "amplifybackend"
119
+ };
120
+ }, "resolveClientEndpointParameters");
121
+ var commonParams = {
122
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
123
+ Endpoint: { type: "builtInParams", name: "endpoint" },
124
+ Region: { type: "builtInParams", name: "region" },
125
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
126
+ };
127
+
128
+ // src/AmplifyBackendClient.ts
129
+ var import_runtimeConfig = require("././runtimeConfig");
130
+
131
+ // src/runtimeExtensions.ts
132
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
133
+ var import_protocol_http = require("@smithy/protocol-http");
134
+ var import_smithy_client = require("@smithy/smithy-client");
135
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
136
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
137
+ const extensionConfiguration = {
138
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
139
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
140
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
141
+ };
142
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
143
+ return {
144
+ ...runtimeConfig,
145
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
146
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
147
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
148
+ };
149
+ }, "resolveRuntimeExtensions");
150
+
151
+ // src/AmplifyBackendClient.ts
152
+ var _AmplifyBackendClient = class _AmplifyBackendClient extends import_smithy_client.Client {
153
+ constructor(...[configuration]) {
154
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
155
+ const _config_1 = resolveClientEndpointParameters(_config_0);
156
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
157
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
158
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
159
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
160
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
161
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
162
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
163
+ super(_config_8);
164
+ this.config = _config_8;
165
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
166
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
167
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
168
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
169
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
170
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
171
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
172
+ }
173
+ /**
174
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
175
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
176
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
177
+ */
178
+ destroy() {
179
+ super.destroy();
180
+ }
181
+ };
182
+ __name(_AmplifyBackendClient, "AmplifyBackendClient");
183
+ var AmplifyBackendClient = _AmplifyBackendClient;
184
+
185
+ // src/AmplifyBackend.ts
186
+
187
+
188
+ // src/commands/CloneBackendCommand.ts
189
+
190
+ var import_middleware_serde = require("@smithy/middleware-serde");
191
+
192
+ var import_types = require("@smithy/types");
193
+
194
+ // src/protocols/Aws_restJson1.ts
195
+ var import_core = require("@smithy/core");
196
+
197
+
198
+ // src/models/AmplifyBackendServiceException.ts
199
+
200
+ var _AmplifyBackendServiceException = class _AmplifyBackendServiceException extends import_smithy_client.ServiceException {
201
+ /**
202
+ * @internal
203
+ */
204
+ constructor(options) {
205
+ super(options);
206
+ Object.setPrototypeOf(this, _AmplifyBackendServiceException.prototype);
207
+ }
208
+ };
209
+ __name(_AmplifyBackendServiceException, "AmplifyBackendServiceException");
210
+ var AmplifyBackendServiceException = _AmplifyBackendServiceException;
211
+
212
+ // src/models/models_0.ts
213
+
214
+ var AdditionalConstraintsElement = {
215
+ REQUIRE_DIGIT: "REQUIRE_DIGIT",
216
+ REQUIRE_LOWERCASE: "REQUIRE_LOWERCASE",
217
+ REQUIRE_SYMBOL: "REQUIRE_SYMBOL",
218
+ REQUIRE_UPPERCASE: "REQUIRE_UPPERCASE"
219
+ };
220
+ var _BadRequestException = class _BadRequestException extends AmplifyBackendServiceException {
221
+ /**
222
+ * @internal
223
+ */
224
+ constructor(opts) {
225
+ super({
226
+ name: "BadRequestException",
227
+ $fault: "client",
228
+ ...opts
229
+ });
230
+ this.name = "BadRequestException";
231
+ this.$fault = "client";
232
+ Object.setPrototypeOf(this, _BadRequestException.prototype);
233
+ this.Message = opts.Message;
234
+ }
235
+ };
236
+ __name(_BadRequestException, "BadRequestException");
237
+ var BadRequestException = _BadRequestException;
238
+ var _GatewayTimeoutException = class _GatewayTimeoutException extends AmplifyBackendServiceException {
239
+ /**
240
+ * @internal
241
+ */
242
+ constructor(opts) {
243
+ super({
244
+ name: "GatewayTimeoutException",
245
+ $fault: "server",
246
+ ...opts
247
+ });
248
+ this.name = "GatewayTimeoutException";
249
+ this.$fault = "server";
250
+ Object.setPrototypeOf(this, _GatewayTimeoutException.prototype);
251
+ this.Message = opts.Message;
252
+ }
253
+ };
254
+ __name(_GatewayTimeoutException, "GatewayTimeoutException");
255
+ var GatewayTimeoutException = _GatewayTimeoutException;
256
+ var _NotFoundException = class _NotFoundException extends AmplifyBackendServiceException {
257
+ /**
258
+ * @internal
259
+ */
260
+ constructor(opts) {
261
+ super({
262
+ name: "NotFoundException",
263
+ $fault: "client",
264
+ ...opts
265
+ });
266
+ this.name = "NotFoundException";
267
+ this.$fault = "client";
268
+ Object.setPrototypeOf(this, _NotFoundException.prototype);
269
+ this.Message = opts.Message;
270
+ this.ResourceType = opts.ResourceType;
271
+ }
272
+ };
273
+ __name(_NotFoundException, "NotFoundException");
274
+ var NotFoundException = _NotFoundException;
275
+ var _TooManyRequestsException = class _TooManyRequestsException extends AmplifyBackendServiceException {
276
+ /**
277
+ * @internal
278
+ */
279
+ constructor(opts) {
280
+ super({
281
+ name: "TooManyRequestsException",
282
+ $fault: "client",
283
+ ...opts
284
+ });
285
+ this.name = "TooManyRequestsException";
286
+ this.$fault = "client";
287
+ Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
288
+ this.LimitType = opts.LimitType;
289
+ this.Message = opts.Message;
290
+ }
291
+ };
292
+ __name(_TooManyRequestsException, "TooManyRequestsException");
293
+ var TooManyRequestsException = _TooManyRequestsException;
294
+ var Mode = {
295
+ AMAZON_COGNITO_USER_POOLS: "AMAZON_COGNITO_USER_POOLS",
296
+ API_KEY: "API_KEY",
297
+ AWS_IAM: "AWS_IAM",
298
+ OPENID_CONNECT: "OPENID_CONNECT"
299
+ };
300
+ var ResolutionStrategy = {
301
+ AUTOMERGE: "AUTOMERGE",
302
+ LAMBDA: "LAMBDA",
303
+ NONE: "NONE",
304
+ OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY"
305
+ };
306
+ var AuthResources = {
307
+ IDENTITY_POOL_AND_USER_POOL: "IDENTITY_POOL_AND_USER_POOL",
308
+ USER_POOL_ONLY: "USER_POOL_ONLY"
309
+ };
310
+ var Service = {
311
+ COGNITO: "COGNITO"
312
+ };
313
+ var DeliveryMethod = {
314
+ EMAIL: "EMAIL",
315
+ SMS: "SMS"
316
+ };
317
+ var MFAMode = {
318
+ OFF: "OFF",
319
+ ON: "ON",
320
+ OPTIONAL: "OPTIONAL"
321
+ };
322
+ var MfaTypesElement = {
323
+ SMS: "SMS",
324
+ TOTP: "TOTP"
325
+ };
326
+ var OAuthGrantType = {
327
+ CODE: "CODE",
328
+ IMPLICIT: "IMPLICIT"
329
+ };
330
+ var OAuthScopesElement = {
331
+ AWS_COGNITO_SIGNIN_USER_ADMIN: "AWS_COGNITO_SIGNIN_USER_ADMIN",
332
+ EMAIL: "EMAIL",
333
+ OPENID: "OPENID",
334
+ PHONE: "PHONE",
335
+ PROFILE: "PROFILE"
336
+ };
337
+ var RequiredSignUpAttributesElement = {
338
+ ADDRESS: "ADDRESS",
339
+ BIRTHDATE: "BIRTHDATE",
340
+ EMAIL: "EMAIL",
341
+ FAMILY_NAME: "FAMILY_NAME",
342
+ GENDER: "GENDER",
343
+ GIVEN_NAME: "GIVEN_NAME",
344
+ LOCALE: "LOCALE",
345
+ MIDDLE_NAME: "MIDDLE_NAME",
346
+ NAME: "NAME",
347
+ NICKNAME: "NICKNAME",
348
+ PHONE_NUMBER: "PHONE_NUMBER",
349
+ PICTURE: "PICTURE",
350
+ PREFERRED_USERNAME: "PREFERRED_USERNAME",
351
+ PROFILE: "PROFILE",
352
+ UPDATED_AT: "UPDATED_AT",
353
+ WEBSITE: "WEBSITE",
354
+ ZONE_INFO: "ZONE_INFO"
355
+ };
356
+ var SignInMethod = {
357
+ EMAIL: "EMAIL",
358
+ EMAIL_AND_PHONE_NUMBER: "EMAIL_AND_PHONE_NUMBER",
359
+ PHONE_NUMBER: "PHONE_NUMBER",
360
+ USERNAME: "USERNAME"
361
+ };
362
+ var AuthenticatedElement = {
363
+ CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
364
+ DELETE: "DELETE",
365
+ READ: "READ"
366
+ };
367
+ var UnAuthenticatedElement = {
368
+ CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
369
+ DELETE: "DELETE",
370
+ READ: "READ"
371
+ };
372
+ var ServiceName = {
373
+ S3: "S3"
374
+ };
375
+ var Status = {
376
+ LATEST: "LATEST",
377
+ STALE: "STALE"
378
+ };
379
+ var EmailSettingsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
380
+ ...obj
381
+ }), "EmailSettingsFilterSensitiveLog");
382
+ var SmsSettingsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
383
+ ...obj
384
+ }), "SmsSettingsFilterSensitiveLog");
385
+ var CreateBackendAuthForgotPasswordConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
386
+ ...obj,
387
+ ...obj.EmailSettings && { EmailSettings: import_smithy_client.SENSITIVE_STRING },
388
+ ...obj.SmsSettings && { SmsSettings: import_smithy_client.SENSITIVE_STRING }
389
+ }), "CreateBackendAuthForgotPasswordConfigFilterSensitiveLog");
390
+ var BackendAuthSocialProviderConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
391
+ ...obj
392
+ }), "BackendAuthSocialProviderConfigFilterSensitiveLog");
393
+ var BackendAuthAppleProviderConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
394
+ ...obj
395
+ }), "BackendAuthAppleProviderConfigFilterSensitiveLog");
396
+ var SocialProviderSettingsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
397
+ ...obj,
398
+ ...obj.Facebook && { Facebook: import_smithy_client.SENSITIVE_STRING },
399
+ ...obj.Google && { Google: import_smithy_client.SENSITIVE_STRING },
400
+ ...obj.LoginWithAmazon && { LoginWithAmazon: import_smithy_client.SENSITIVE_STRING },
401
+ ...obj.SignInWithApple && { SignInWithApple: import_smithy_client.SENSITIVE_STRING }
402
+ }), "SocialProviderSettingsFilterSensitiveLog");
403
+ var CreateBackendAuthOAuthConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
404
+ ...obj,
405
+ ...obj.SocialProviderSettings && {
406
+ SocialProviderSettings: SocialProviderSettingsFilterSensitiveLog(obj.SocialProviderSettings)
407
+ }
408
+ }), "CreateBackendAuthOAuthConfigFilterSensitiveLog");
409
+ var CreateBackendAuthVerificationMessageConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
410
+ ...obj,
411
+ ...obj.EmailSettings && { EmailSettings: import_smithy_client.SENSITIVE_STRING },
412
+ ...obj.SmsSettings && { SmsSettings: import_smithy_client.SENSITIVE_STRING }
413
+ }), "CreateBackendAuthVerificationMessageConfigFilterSensitiveLog");
414
+ var CreateBackendAuthUserPoolConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
415
+ ...obj,
416
+ ...obj.ForgotPassword && {
417
+ ForgotPassword: CreateBackendAuthForgotPasswordConfigFilterSensitiveLog(obj.ForgotPassword)
418
+ },
419
+ ...obj.OAuth && { OAuth: CreateBackendAuthOAuthConfigFilterSensitiveLog(obj.OAuth) },
420
+ ...obj.VerificationMessage && {
421
+ VerificationMessage: CreateBackendAuthVerificationMessageConfigFilterSensitiveLog(obj.VerificationMessage)
422
+ }
423
+ }), "CreateBackendAuthUserPoolConfigFilterSensitiveLog");
424
+ var CreateBackendAuthResourceConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
425
+ ...obj,
426
+ ...obj.UserPoolConfigs && {
427
+ UserPoolConfigs: CreateBackendAuthUserPoolConfigFilterSensitiveLog(obj.UserPoolConfigs)
428
+ }
429
+ }), "CreateBackendAuthResourceConfigFilterSensitiveLog");
430
+ var CreateBackendAuthRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
431
+ ...obj,
432
+ ...obj.ResourceConfig && { ResourceConfig: CreateBackendAuthResourceConfigFilterSensitiveLog(obj.ResourceConfig) }
433
+ }), "CreateBackendAuthRequestFilterSensitiveLog");
434
+ var GetBackendAuthResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
435
+ ...obj,
436
+ ...obj.ResourceConfig && { ResourceConfig: CreateBackendAuthResourceConfigFilterSensitiveLog(obj.ResourceConfig) }
437
+ }), "GetBackendAuthResponseFilterSensitiveLog");
438
+ var UpdateBackendAuthForgotPasswordConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
439
+ ...obj,
440
+ ...obj.EmailSettings && { EmailSettings: import_smithy_client.SENSITIVE_STRING },
441
+ ...obj.SmsSettings && { SmsSettings: import_smithy_client.SENSITIVE_STRING }
442
+ }), "UpdateBackendAuthForgotPasswordConfigFilterSensitiveLog");
443
+ var UpdateBackendAuthOAuthConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
444
+ ...obj,
445
+ ...obj.SocialProviderSettings && {
446
+ SocialProviderSettings: SocialProviderSettingsFilterSensitiveLog(obj.SocialProviderSettings)
447
+ }
448
+ }), "UpdateBackendAuthOAuthConfigFilterSensitiveLog");
449
+ var UpdateBackendAuthVerificationMessageConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
450
+ ...obj,
451
+ ...obj.EmailSettings && { EmailSettings: import_smithy_client.SENSITIVE_STRING },
452
+ ...obj.SmsSettings && { SmsSettings: import_smithy_client.SENSITIVE_STRING }
453
+ }), "UpdateBackendAuthVerificationMessageConfigFilterSensitiveLog");
454
+ var UpdateBackendAuthUserPoolConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
455
+ ...obj,
456
+ ...obj.ForgotPassword && {
457
+ ForgotPassword: UpdateBackendAuthForgotPasswordConfigFilterSensitiveLog(obj.ForgotPassword)
458
+ },
459
+ ...obj.OAuth && { OAuth: UpdateBackendAuthOAuthConfigFilterSensitiveLog(obj.OAuth) },
460
+ ...obj.VerificationMessage && {
461
+ VerificationMessage: UpdateBackendAuthVerificationMessageConfigFilterSensitiveLog(obj.VerificationMessage)
462
+ }
463
+ }), "UpdateBackendAuthUserPoolConfigFilterSensitiveLog");
464
+ var UpdateBackendAuthResourceConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
465
+ ...obj,
466
+ ...obj.UserPoolConfigs && {
467
+ UserPoolConfigs: UpdateBackendAuthUserPoolConfigFilterSensitiveLog(obj.UserPoolConfigs)
468
+ }
469
+ }), "UpdateBackendAuthResourceConfigFilterSensitiveLog");
470
+ var UpdateBackendAuthRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
471
+ ...obj,
472
+ ...obj.ResourceConfig && { ResourceConfig: UpdateBackendAuthResourceConfigFilterSensitiveLog(obj.ResourceConfig) }
473
+ }), "UpdateBackendAuthRequestFilterSensitiveLog");
474
+
475
+ // src/protocols/Aws_restJson1.ts
476
+ var se_CloneBackendCommand = /* @__PURE__ */ __name(async (input, context) => {
477
+ const b = (0, import_core.requestBuilder)(input, context);
478
+ const headers = {
479
+ "content-type": "application/json"
480
+ };
481
+ b.bp("/backend/{AppId}/environments/{BackendEnvironmentName}/clone");
482
+ b.p("AppId", () => input.AppId, "{AppId}", false);
483
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
484
+ let body;
485
+ body = JSON.stringify(
486
+ (0, import_smithy_client.take)(input, {
487
+ targetEnvironmentName: [, , `TargetEnvironmentName`]
488
+ })
489
+ );
490
+ b.m("POST").h(headers).b(body);
491
+ return b.build();
492
+ }, "se_CloneBackendCommand");
493
+ var se_CreateBackendCommand = /* @__PURE__ */ __name(async (input, context) => {
494
+ const b = (0, import_core.requestBuilder)(input, context);
495
+ const headers = {
496
+ "content-type": "application/json"
497
+ };
498
+ b.bp("/backend");
499
+ let body;
500
+ body = JSON.stringify(
501
+ (0, import_smithy_client.take)(input, {
502
+ appId: [, , `AppId`],
503
+ appName: [, , `AppName`],
504
+ backendEnvironmentName: [, , `BackendEnvironmentName`],
505
+ resourceConfig: [, (_) => (0, import_smithy_client._json)(_), `ResourceConfig`],
506
+ resourceName: [, , `ResourceName`]
507
+ })
508
+ );
509
+ b.m("POST").h(headers).b(body);
510
+ return b.build();
511
+ }, "se_CreateBackendCommand");
512
+ var se_CreateBackendAPICommand = /* @__PURE__ */ __name(async (input, context) => {
513
+ const b = (0, import_core.requestBuilder)(input, context);
514
+ const headers = {
515
+ "content-type": "application/json"
516
+ };
517
+ b.bp("/backend/{AppId}/api");
518
+ b.p("AppId", () => input.AppId, "{AppId}", false);
519
+ let body;
520
+ body = JSON.stringify(
521
+ (0, import_smithy_client.take)(input, {
522
+ backendEnvironmentName: [, , `BackendEnvironmentName`],
523
+ resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
524
+ resourceName: [, , `ResourceName`]
525
+ })
526
+ );
527
+ b.m("POST").h(headers).b(body);
528
+ return b.build();
529
+ }, "se_CreateBackendAPICommand");
530
+ var se_CreateBackendAuthCommand = /* @__PURE__ */ __name(async (input, context) => {
531
+ const b = (0, import_core.requestBuilder)(input, context);
532
+ const headers = {
533
+ "content-type": "application/json"
534
+ };
535
+ b.bp("/backend/{AppId}/auth");
536
+ b.p("AppId", () => input.AppId, "{AppId}", false);
537
+ let body;
538
+ body = JSON.stringify(
539
+ (0, import_smithy_client.take)(input, {
540
+ backendEnvironmentName: [, , `BackendEnvironmentName`],
541
+ resourceConfig: [, (_) => se_CreateBackendAuthResourceConfig(_, context), `ResourceConfig`],
542
+ resourceName: [, , `ResourceName`]
543
+ })
544
+ );
545
+ b.m("POST").h(headers).b(body);
546
+ return b.build();
547
+ }, "se_CreateBackendAuthCommand");
548
+ var se_CreateBackendConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
549
+ const b = (0, import_core.requestBuilder)(input, context);
550
+ const headers = {
551
+ "content-type": "application/json"
552
+ };
553
+ b.bp("/backend/{AppId}/config");
554
+ b.p("AppId", () => input.AppId, "{AppId}", false);
555
+ let body;
556
+ body = JSON.stringify(
557
+ (0, import_smithy_client.take)(input, {
558
+ backendManagerAppId: [, , `BackendManagerAppId`]
559
+ })
560
+ );
561
+ b.m("POST").h(headers).b(body);
562
+ return b.build();
563
+ }, "se_CreateBackendConfigCommand");
564
+ var se_CreateBackendStorageCommand = /* @__PURE__ */ __name(async (input, context) => {
565
+ const b = (0, import_core.requestBuilder)(input, context);
566
+ const headers = {
567
+ "content-type": "application/json"
568
+ };
569
+ b.bp("/backend/{AppId}/storage");
570
+ b.p("AppId", () => input.AppId, "{AppId}", false);
571
+ let body;
572
+ body = JSON.stringify(
573
+ (0, import_smithy_client.take)(input, {
574
+ backendEnvironmentName: [, , `BackendEnvironmentName`],
575
+ resourceConfig: [, (_) => se_CreateBackendStorageResourceConfig(_, context), `ResourceConfig`],
576
+ resourceName: [, , `ResourceName`]
577
+ })
578
+ );
579
+ b.m("POST").h(headers).b(body);
580
+ return b.build();
581
+ }, "se_CreateBackendStorageCommand");
582
+ var se_CreateTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
583
+ const b = (0, import_core.requestBuilder)(input, context);
584
+ const headers = {};
585
+ b.bp("/backend/{AppId}/challenge");
586
+ b.p("AppId", () => input.AppId, "{AppId}", false);
587
+ let body;
588
+ b.m("POST").h(headers).b(body);
589
+ return b.build();
590
+ }, "se_CreateTokenCommand");
591
+ var se_DeleteBackendCommand = /* @__PURE__ */ __name(async (input, context) => {
592
+ const b = (0, import_core.requestBuilder)(input, context);
593
+ const headers = {};
594
+ b.bp("/backend/{AppId}/environments/{BackendEnvironmentName}/remove");
595
+ b.p("AppId", () => input.AppId, "{AppId}", false);
596
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
597
+ let body;
598
+ b.m("POST").h(headers).b(body);
599
+ return b.build();
600
+ }, "se_DeleteBackendCommand");
601
+ var se_DeleteBackendAPICommand = /* @__PURE__ */ __name(async (input, context) => {
602
+ const b = (0, import_core.requestBuilder)(input, context);
603
+ const headers = {
604
+ "content-type": "application/json"
605
+ };
606
+ b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/remove");
607
+ b.p("AppId", () => input.AppId, "{AppId}", false);
608
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
609
+ let body;
610
+ body = JSON.stringify(
611
+ (0, import_smithy_client.take)(input, {
612
+ resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
613
+ resourceName: [, , `ResourceName`]
614
+ })
615
+ );
616
+ b.m("POST").h(headers).b(body);
617
+ return b.build();
618
+ }, "se_DeleteBackendAPICommand");
619
+ var se_DeleteBackendAuthCommand = /* @__PURE__ */ __name(async (input, context) => {
620
+ const b = (0, import_core.requestBuilder)(input, context);
621
+ const headers = {
622
+ "content-type": "application/json"
623
+ };
624
+ b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}/remove");
625
+ b.p("AppId", () => input.AppId, "{AppId}", false);
626
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
627
+ let body;
628
+ body = JSON.stringify(
629
+ (0, import_smithy_client.take)(input, {
630
+ resourceName: [, , `ResourceName`]
631
+ })
632
+ );
633
+ b.m("POST").h(headers).b(body);
634
+ return b.build();
635
+ }, "se_DeleteBackendAuthCommand");
636
+ var se_DeleteBackendStorageCommand = /* @__PURE__ */ __name(async (input, context) => {
637
+ const b = (0, import_core.requestBuilder)(input, context);
638
+ const headers = {
639
+ "content-type": "application/json"
640
+ };
641
+ b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}/remove");
642
+ b.p("AppId", () => input.AppId, "{AppId}", false);
643
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
644
+ let body;
645
+ body = JSON.stringify(
646
+ (0, import_smithy_client.take)(input, {
647
+ resourceName: [, , `ResourceName`],
648
+ serviceName: [, , `ServiceName`]
649
+ })
650
+ );
651
+ b.m("POST").h(headers).b(body);
652
+ return b.build();
653
+ }, "se_DeleteBackendStorageCommand");
654
+ var se_DeleteTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
655
+ const b = (0, import_core.requestBuilder)(input, context);
656
+ const headers = {};
657
+ b.bp("/backend/{AppId}/challenge/{SessionId}/remove");
658
+ b.p("AppId", () => input.AppId, "{AppId}", false);
659
+ b.p("SessionId", () => input.SessionId, "{SessionId}", false);
660
+ let body;
661
+ b.m("POST").h(headers).b(body);
662
+ return b.build();
663
+ }, "se_DeleteTokenCommand");
664
+ var se_GenerateBackendAPIModelsCommand = /* @__PURE__ */ __name(async (input, context) => {
665
+ const b = (0, import_core.requestBuilder)(input, context);
666
+ const headers = {
667
+ "content-type": "application/json"
668
+ };
669
+ b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/generateModels");
670
+ b.p("AppId", () => input.AppId, "{AppId}", false);
671
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
672
+ let body;
673
+ body = JSON.stringify(
674
+ (0, import_smithy_client.take)(input, {
675
+ resourceName: [, , `ResourceName`]
676
+ })
677
+ );
678
+ b.m("POST").h(headers).b(body);
679
+ return b.build();
680
+ }, "se_GenerateBackendAPIModelsCommand");
681
+ var se_GetBackendCommand = /* @__PURE__ */ __name(async (input, context) => {
682
+ const b = (0, import_core.requestBuilder)(input, context);
683
+ const headers = {
684
+ "content-type": "application/json"
685
+ };
686
+ b.bp("/backend/{AppId}/details");
687
+ b.p("AppId", () => input.AppId, "{AppId}", false);
688
+ let body;
689
+ body = JSON.stringify(
690
+ (0, import_smithy_client.take)(input, {
691
+ backendEnvironmentName: [, , `BackendEnvironmentName`]
692
+ })
693
+ );
694
+ b.m("POST").h(headers).b(body);
695
+ return b.build();
696
+ }, "se_GetBackendCommand");
697
+ var se_GetBackendAPICommand = /* @__PURE__ */ __name(async (input, context) => {
698
+ const b = (0, import_core.requestBuilder)(input, context);
699
+ const headers = {
700
+ "content-type": "application/json"
701
+ };
702
+ b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/details");
703
+ b.p("AppId", () => input.AppId, "{AppId}", false);
704
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
705
+ let body;
706
+ body = JSON.stringify(
707
+ (0, import_smithy_client.take)(input, {
708
+ resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
709
+ resourceName: [, , `ResourceName`]
710
+ })
711
+ );
712
+ b.m("POST").h(headers).b(body);
713
+ return b.build();
714
+ }, "se_GetBackendAPICommand");
715
+ var se_GetBackendAPIModelsCommand = /* @__PURE__ */ __name(async (input, context) => {
716
+ const b = (0, import_core.requestBuilder)(input, context);
717
+ const headers = {
718
+ "content-type": "application/json"
719
+ };
720
+ b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/getModels");
721
+ b.p("AppId", () => input.AppId, "{AppId}", false);
722
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
723
+ let body;
724
+ body = JSON.stringify(
725
+ (0, import_smithy_client.take)(input, {
726
+ resourceName: [, , `ResourceName`]
727
+ })
728
+ );
729
+ b.m("POST").h(headers).b(body);
730
+ return b.build();
731
+ }, "se_GetBackendAPIModelsCommand");
732
+ var se_GetBackendAuthCommand = /* @__PURE__ */ __name(async (input, context) => {
733
+ const b = (0, import_core.requestBuilder)(input, context);
734
+ const headers = {
735
+ "content-type": "application/json"
736
+ };
737
+ b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}/details");
738
+ b.p("AppId", () => input.AppId, "{AppId}", false);
739
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
740
+ let body;
741
+ body = JSON.stringify(
742
+ (0, import_smithy_client.take)(input, {
743
+ resourceName: [, , `ResourceName`]
744
+ })
745
+ );
746
+ b.m("POST").h(headers).b(body);
747
+ return b.build();
748
+ }, "se_GetBackendAuthCommand");
749
+ var se_GetBackendJobCommand = /* @__PURE__ */ __name(async (input, context) => {
750
+ const b = (0, import_core.requestBuilder)(input, context);
751
+ const headers = {};
752
+ b.bp("/backend/{AppId}/job/{BackendEnvironmentName}/{JobId}");
753
+ b.p("AppId", () => input.AppId, "{AppId}", false);
754
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
755
+ b.p("JobId", () => input.JobId, "{JobId}", false);
756
+ let body;
757
+ b.m("GET").h(headers).b(body);
758
+ return b.build();
759
+ }, "se_GetBackendJobCommand");
760
+ var se_GetBackendStorageCommand = /* @__PURE__ */ __name(async (input, context) => {
761
+ const b = (0, import_core.requestBuilder)(input, context);
762
+ const headers = {
763
+ "content-type": "application/json"
764
+ };
765
+ b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}/details");
766
+ b.p("AppId", () => input.AppId, "{AppId}", false);
767
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
768
+ let body;
769
+ body = JSON.stringify(
770
+ (0, import_smithy_client.take)(input, {
771
+ resourceName: [, , `ResourceName`]
772
+ })
773
+ );
774
+ b.m("POST").h(headers).b(body);
775
+ return b.build();
776
+ }, "se_GetBackendStorageCommand");
777
+ var se_GetTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
778
+ const b = (0, import_core.requestBuilder)(input, context);
779
+ const headers = {};
780
+ b.bp("/backend/{AppId}/challenge/{SessionId}");
781
+ b.p("AppId", () => input.AppId, "{AppId}", false);
782
+ b.p("SessionId", () => input.SessionId, "{SessionId}", false);
783
+ let body;
784
+ b.m("GET").h(headers).b(body);
785
+ return b.build();
786
+ }, "se_GetTokenCommand");
787
+ var se_ImportBackendAuthCommand = /* @__PURE__ */ __name(async (input, context) => {
788
+ const b = (0, import_core.requestBuilder)(input, context);
789
+ const headers = {
790
+ "content-type": "application/json"
791
+ };
792
+ b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}/import");
793
+ b.p("AppId", () => input.AppId, "{AppId}", false);
794
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
795
+ let body;
796
+ body = JSON.stringify(
797
+ (0, import_smithy_client.take)(input, {
798
+ identityPoolId: [, , `IdentityPoolId`],
799
+ nativeClientId: [, , `NativeClientId`],
800
+ userPoolId: [, , `UserPoolId`],
801
+ webClientId: [, , `WebClientId`]
802
+ })
803
+ );
804
+ b.m("POST").h(headers).b(body);
805
+ return b.build();
806
+ }, "se_ImportBackendAuthCommand");
807
+ var se_ImportBackendStorageCommand = /* @__PURE__ */ __name(async (input, context) => {
808
+ const b = (0, import_core.requestBuilder)(input, context);
809
+ const headers = {
810
+ "content-type": "application/json"
811
+ };
812
+ b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}/import");
813
+ b.p("AppId", () => input.AppId, "{AppId}", false);
814
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
815
+ let body;
816
+ body = JSON.stringify(
817
+ (0, import_smithy_client.take)(input, {
818
+ bucketName: [, , `BucketName`],
819
+ serviceName: [, , `ServiceName`]
820
+ })
821
+ );
822
+ b.m("POST").h(headers).b(body);
823
+ return b.build();
824
+ }, "se_ImportBackendStorageCommand");
825
+ var se_ListBackendJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
826
+ const b = (0, import_core.requestBuilder)(input, context);
827
+ const headers = {
828
+ "content-type": "application/json"
829
+ };
830
+ b.bp("/backend/{AppId}/job/{BackendEnvironmentName}");
831
+ b.p("AppId", () => input.AppId, "{AppId}", false);
832
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
833
+ let body;
834
+ body = JSON.stringify(
835
+ (0, import_smithy_client.take)(input, {
836
+ jobId: [, , `JobId`],
837
+ maxResults: [, , `MaxResults`],
838
+ nextToken: [, , `NextToken`],
839
+ operation: [, , `Operation`],
840
+ status: [, , `Status`]
841
+ })
842
+ );
843
+ b.m("POST").h(headers).b(body);
844
+ return b.build();
845
+ }, "se_ListBackendJobsCommand");
846
+ var se_ListS3BucketsCommand = /* @__PURE__ */ __name(async (input, context) => {
847
+ const b = (0, import_core.requestBuilder)(input, context);
848
+ const headers = {
849
+ "content-type": "application/json"
850
+ };
851
+ b.bp("/s3Buckets");
852
+ let body;
853
+ body = JSON.stringify(
854
+ (0, import_smithy_client.take)(input, {
855
+ nextToken: [, , `NextToken`]
856
+ })
857
+ );
858
+ b.m("POST").h(headers).b(body);
859
+ return b.build();
860
+ }, "se_ListS3BucketsCommand");
861
+ var se_RemoveAllBackendsCommand = /* @__PURE__ */ __name(async (input, context) => {
862
+ const b = (0, import_core.requestBuilder)(input, context);
863
+ const headers = {
864
+ "content-type": "application/json"
865
+ };
866
+ b.bp("/backend/{AppId}/remove");
867
+ b.p("AppId", () => input.AppId, "{AppId}", false);
868
+ let body;
869
+ body = JSON.stringify(
870
+ (0, import_smithy_client.take)(input, {
871
+ cleanAmplifyApp: [, , `CleanAmplifyApp`]
872
+ })
873
+ );
874
+ b.m("POST").h(headers).b(body);
875
+ return b.build();
876
+ }, "se_RemoveAllBackendsCommand");
877
+ var se_RemoveBackendConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
878
+ const b = (0, import_core.requestBuilder)(input, context);
879
+ const headers = {};
880
+ b.bp("/backend/{AppId}/config/remove");
881
+ b.p("AppId", () => input.AppId, "{AppId}", false);
882
+ let body;
883
+ b.m("POST").h(headers).b(body);
884
+ return b.build();
885
+ }, "se_RemoveBackendConfigCommand");
886
+ var se_UpdateBackendAPICommand = /* @__PURE__ */ __name(async (input, context) => {
887
+ const b = (0, import_core.requestBuilder)(input, context);
888
+ const headers = {
889
+ "content-type": "application/json"
890
+ };
891
+ b.bp("/backend/{AppId}/api/{BackendEnvironmentName}");
892
+ b.p("AppId", () => input.AppId, "{AppId}", false);
893
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
894
+ let body;
895
+ body = JSON.stringify(
896
+ (0, import_smithy_client.take)(input, {
897
+ resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
898
+ resourceName: [, , `ResourceName`]
899
+ })
900
+ );
901
+ b.m("POST").h(headers).b(body);
902
+ return b.build();
903
+ }, "se_UpdateBackendAPICommand");
904
+ var se_UpdateBackendAuthCommand = /* @__PURE__ */ __name(async (input, context) => {
905
+ const b = (0, import_core.requestBuilder)(input, context);
906
+ const headers = {
907
+ "content-type": "application/json"
908
+ };
909
+ b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}");
910
+ b.p("AppId", () => input.AppId, "{AppId}", false);
911
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
912
+ let body;
913
+ body = JSON.stringify(
914
+ (0, import_smithy_client.take)(input, {
915
+ resourceConfig: [, (_) => se_UpdateBackendAuthResourceConfig(_, context), `ResourceConfig`],
916
+ resourceName: [, , `ResourceName`]
917
+ })
918
+ );
919
+ b.m("POST").h(headers).b(body);
920
+ return b.build();
921
+ }, "se_UpdateBackendAuthCommand");
922
+ var se_UpdateBackendConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
923
+ const b = (0, import_core.requestBuilder)(input, context);
924
+ const headers = {
925
+ "content-type": "application/json"
926
+ };
927
+ b.bp("/backend/{AppId}/config/update");
928
+ b.p("AppId", () => input.AppId, "{AppId}", false);
929
+ let body;
930
+ body = JSON.stringify(
931
+ (0, import_smithy_client.take)(input, {
932
+ loginAuthConfig: [, (_) => se_LoginAuthConfigReqObj(_, context), `LoginAuthConfig`]
933
+ })
934
+ );
935
+ b.m("POST").h(headers).b(body);
936
+ return b.build();
937
+ }, "se_UpdateBackendConfigCommand");
938
+ var se_UpdateBackendJobCommand = /* @__PURE__ */ __name(async (input, context) => {
939
+ const b = (0, import_core.requestBuilder)(input, context);
940
+ const headers = {
941
+ "content-type": "application/json"
942
+ };
943
+ b.bp("/backend/{AppId}/job/{BackendEnvironmentName}/{JobId}");
944
+ b.p("AppId", () => input.AppId, "{AppId}", false);
945
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
946
+ b.p("JobId", () => input.JobId, "{JobId}", false);
947
+ let body;
948
+ body = JSON.stringify(
949
+ (0, import_smithy_client.take)(input, {
950
+ operation: [, , `Operation`],
951
+ status: [, , `Status`]
952
+ })
953
+ );
954
+ b.m("POST").h(headers).b(body);
955
+ return b.build();
956
+ }, "se_UpdateBackendJobCommand");
957
+ var se_UpdateBackendStorageCommand = /* @__PURE__ */ __name(async (input, context) => {
958
+ const b = (0, import_core.requestBuilder)(input, context);
959
+ const headers = {
960
+ "content-type": "application/json"
961
+ };
962
+ b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}");
963
+ b.p("AppId", () => input.AppId, "{AppId}", false);
964
+ b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
965
+ let body;
966
+ body = JSON.stringify(
967
+ (0, import_smithy_client.take)(input, {
968
+ resourceConfig: [, (_) => se_UpdateBackendStorageResourceConfig(_, context), `ResourceConfig`],
969
+ resourceName: [, , `ResourceName`]
970
+ })
971
+ );
972
+ b.m("POST").h(headers).b(body);
973
+ return b.build();
974
+ }, "se_UpdateBackendStorageCommand");
975
+ var de_CloneBackendCommand = /* @__PURE__ */ __name(async (output, context) => {
976
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
977
+ return de_CloneBackendCommandError(output, context);
978
+ }
979
+ const contents = (0, import_smithy_client.map)({
980
+ $metadata: deserializeMetadata(output)
981
+ });
982
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
983
+ const doc = (0, import_smithy_client.take)(data, {
984
+ AppId: [, import_smithy_client.expectString, `appId`],
985
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
986
+ Error: [, import_smithy_client.expectString, `error`],
987
+ JobId: [, import_smithy_client.expectString, `jobId`],
988
+ Operation: [, import_smithy_client.expectString, `operation`],
989
+ Status: [, import_smithy_client.expectString, `status`]
990
+ });
991
+ Object.assign(contents, doc);
992
+ return contents;
993
+ }, "de_CloneBackendCommand");
994
+ var de_CloneBackendCommandError = /* @__PURE__ */ __name(async (output, context) => {
995
+ const parsedOutput = {
996
+ ...output,
997
+ body: await parseErrorBody(output.body, context)
998
+ };
999
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1000
+ switch (errorCode) {
1001
+ case "BadRequestException":
1002
+ case "com.amazonaws.amplifybackend#BadRequestException":
1003
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1004
+ case "GatewayTimeoutException":
1005
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1006
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1007
+ case "NotFoundException":
1008
+ case "com.amazonaws.amplifybackend#NotFoundException":
1009
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1010
+ case "TooManyRequestsException":
1011
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1012
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1013
+ default:
1014
+ const parsedBody = parsedOutput.body;
1015
+ return throwDefaultError({
1016
+ output,
1017
+ parsedBody,
1018
+ errorCode
1019
+ });
1020
+ }
1021
+ }, "de_CloneBackendCommandError");
1022
+ var de_CreateBackendCommand = /* @__PURE__ */ __name(async (output, context) => {
1023
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1024
+ return de_CreateBackendCommandError(output, context);
1025
+ }
1026
+ const contents = (0, import_smithy_client.map)({
1027
+ $metadata: deserializeMetadata(output)
1028
+ });
1029
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1030
+ const doc = (0, import_smithy_client.take)(data, {
1031
+ AppId: [, import_smithy_client.expectString, `appId`],
1032
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1033
+ Error: [, import_smithy_client.expectString, `error`],
1034
+ JobId: [, import_smithy_client.expectString, `jobId`],
1035
+ Operation: [, import_smithy_client.expectString, `operation`],
1036
+ Status: [, import_smithy_client.expectString, `status`]
1037
+ });
1038
+ Object.assign(contents, doc);
1039
+ return contents;
1040
+ }, "de_CreateBackendCommand");
1041
+ var de_CreateBackendCommandError = /* @__PURE__ */ __name(async (output, context) => {
1042
+ const parsedOutput = {
1043
+ ...output,
1044
+ body: await parseErrorBody(output.body, context)
1045
+ };
1046
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1047
+ switch (errorCode) {
1048
+ case "BadRequestException":
1049
+ case "com.amazonaws.amplifybackend#BadRequestException":
1050
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1051
+ case "GatewayTimeoutException":
1052
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1053
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1054
+ case "NotFoundException":
1055
+ case "com.amazonaws.amplifybackend#NotFoundException":
1056
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1057
+ case "TooManyRequestsException":
1058
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1059
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1060
+ default:
1061
+ const parsedBody = parsedOutput.body;
1062
+ return throwDefaultError({
1063
+ output,
1064
+ parsedBody,
1065
+ errorCode
1066
+ });
1067
+ }
1068
+ }, "de_CreateBackendCommandError");
1069
+ var de_CreateBackendAPICommand = /* @__PURE__ */ __name(async (output, context) => {
1070
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1071
+ return de_CreateBackendAPICommandError(output, context);
1072
+ }
1073
+ const contents = (0, import_smithy_client.map)({
1074
+ $metadata: deserializeMetadata(output)
1075
+ });
1076
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1077
+ const doc = (0, import_smithy_client.take)(data, {
1078
+ AppId: [, import_smithy_client.expectString, `appId`],
1079
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1080
+ Error: [, import_smithy_client.expectString, `error`],
1081
+ JobId: [, import_smithy_client.expectString, `jobId`],
1082
+ Operation: [, import_smithy_client.expectString, `operation`],
1083
+ Status: [, import_smithy_client.expectString, `status`]
1084
+ });
1085
+ Object.assign(contents, doc);
1086
+ return contents;
1087
+ }, "de_CreateBackendAPICommand");
1088
+ var de_CreateBackendAPICommandError = /* @__PURE__ */ __name(async (output, context) => {
1089
+ const parsedOutput = {
1090
+ ...output,
1091
+ body: await parseErrorBody(output.body, context)
1092
+ };
1093
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1094
+ switch (errorCode) {
1095
+ case "BadRequestException":
1096
+ case "com.amazonaws.amplifybackend#BadRequestException":
1097
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1098
+ case "GatewayTimeoutException":
1099
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1100
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1101
+ case "NotFoundException":
1102
+ case "com.amazonaws.amplifybackend#NotFoundException":
1103
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1104
+ case "TooManyRequestsException":
1105
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1106
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1107
+ default:
1108
+ const parsedBody = parsedOutput.body;
1109
+ return throwDefaultError({
1110
+ output,
1111
+ parsedBody,
1112
+ errorCode
1113
+ });
1114
+ }
1115
+ }, "de_CreateBackendAPICommandError");
1116
+ var de_CreateBackendAuthCommand = /* @__PURE__ */ __name(async (output, context) => {
1117
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1118
+ return de_CreateBackendAuthCommandError(output, context);
1119
+ }
1120
+ const contents = (0, import_smithy_client.map)({
1121
+ $metadata: deserializeMetadata(output)
1122
+ });
1123
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1124
+ const doc = (0, import_smithy_client.take)(data, {
1125
+ AppId: [, import_smithy_client.expectString, `appId`],
1126
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1127
+ Error: [, import_smithy_client.expectString, `error`],
1128
+ JobId: [, import_smithy_client.expectString, `jobId`],
1129
+ Operation: [, import_smithy_client.expectString, `operation`],
1130
+ Status: [, import_smithy_client.expectString, `status`]
1131
+ });
1132
+ Object.assign(contents, doc);
1133
+ return contents;
1134
+ }, "de_CreateBackendAuthCommand");
1135
+ var de_CreateBackendAuthCommandError = /* @__PURE__ */ __name(async (output, context) => {
1136
+ const parsedOutput = {
1137
+ ...output,
1138
+ body: await parseErrorBody(output.body, context)
1139
+ };
1140
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1141
+ switch (errorCode) {
1142
+ case "BadRequestException":
1143
+ case "com.amazonaws.amplifybackend#BadRequestException":
1144
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1145
+ case "GatewayTimeoutException":
1146
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1147
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1148
+ case "NotFoundException":
1149
+ case "com.amazonaws.amplifybackend#NotFoundException":
1150
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1151
+ case "TooManyRequestsException":
1152
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1153
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1154
+ default:
1155
+ const parsedBody = parsedOutput.body;
1156
+ return throwDefaultError({
1157
+ output,
1158
+ parsedBody,
1159
+ errorCode
1160
+ });
1161
+ }
1162
+ }, "de_CreateBackendAuthCommandError");
1163
+ var de_CreateBackendConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1164
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1165
+ return de_CreateBackendConfigCommandError(output, context);
1166
+ }
1167
+ const contents = (0, import_smithy_client.map)({
1168
+ $metadata: deserializeMetadata(output)
1169
+ });
1170
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1171
+ const doc = (0, import_smithy_client.take)(data, {
1172
+ AppId: [, import_smithy_client.expectString, `appId`],
1173
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1174
+ JobId: [, import_smithy_client.expectString, `jobId`],
1175
+ Status: [, import_smithy_client.expectString, `status`]
1176
+ });
1177
+ Object.assign(contents, doc);
1178
+ return contents;
1179
+ }, "de_CreateBackendConfigCommand");
1180
+ var de_CreateBackendConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
1181
+ const parsedOutput = {
1182
+ ...output,
1183
+ body: await parseErrorBody(output.body, context)
1184
+ };
1185
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1186
+ switch (errorCode) {
1187
+ case "BadRequestException":
1188
+ case "com.amazonaws.amplifybackend#BadRequestException":
1189
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1190
+ case "GatewayTimeoutException":
1191
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1192
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1193
+ case "NotFoundException":
1194
+ case "com.amazonaws.amplifybackend#NotFoundException":
1195
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1196
+ case "TooManyRequestsException":
1197
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1198
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1199
+ default:
1200
+ const parsedBody = parsedOutput.body;
1201
+ return throwDefaultError({
1202
+ output,
1203
+ parsedBody,
1204
+ errorCode
1205
+ });
1206
+ }
1207
+ }, "de_CreateBackendConfigCommandError");
1208
+ var de_CreateBackendStorageCommand = /* @__PURE__ */ __name(async (output, context) => {
1209
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1210
+ return de_CreateBackendStorageCommandError(output, context);
1211
+ }
1212
+ const contents = (0, import_smithy_client.map)({
1213
+ $metadata: deserializeMetadata(output)
1214
+ });
1215
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1216
+ const doc = (0, import_smithy_client.take)(data, {
1217
+ AppId: [, import_smithy_client.expectString, `appId`],
1218
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1219
+ JobId: [, import_smithy_client.expectString, `jobId`],
1220
+ Status: [, import_smithy_client.expectString, `status`]
1221
+ });
1222
+ Object.assign(contents, doc);
1223
+ return contents;
1224
+ }, "de_CreateBackendStorageCommand");
1225
+ var de_CreateBackendStorageCommandError = /* @__PURE__ */ __name(async (output, context) => {
1226
+ const parsedOutput = {
1227
+ ...output,
1228
+ body: await parseErrorBody(output.body, context)
1229
+ };
1230
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1231
+ switch (errorCode) {
1232
+ case "BadRequestException":
1233
+ case "com.amazonaws.amplifybackend#BadRequestException":
1234
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1235
+ case "GatewayTimeoutException":
1236
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1237
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1238
+ case "NotFoundException":
1239
+ case "com.amazonaws.amplifybackend#NotFoundException":
1240
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1241
+ case "TooManyRequestsException":
1242
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1243
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1244
+ default:
1245
+ const parsedBody = parsedOutput.body;
1246
+ return throwDefaultError({
1247
+ output,
1248
+ parsedBody,
1249
+ errorCode
1250
+ });
1251
+ }
1252
+ }, "de_CreateBackendStorageCommandError");
1253
+ var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
1254
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1255
+ return de_CreateTokenCommandError(output, context);
1256
+ }
1257
+ const contents = (0, import_smithy_client.map)({
1258
+ $metadata: deserializeMetadata(output)
1259
+ });
1260
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1261
+ const doc = (0, import_smithy_client.take)(data, {
1262
+ AppId: [, import_smithy_client.expectString, `appId`],
1263
+ ChallengeCode: [, import_smithy_client.expectString, `challengeCode`],
1264
+ SessionId: [, import_smithy_client.expectString, `sessionId`],
1265
+ Ttl: [, import_smithy_client.expectString, `ttl`]
1266
+ });
1267
+ Object.assign(contents, doc);
1268
+ return contents;
1269
+ }, "de_CreateTokenCommand");
1270
+ var de_CreateTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
1271
+ const parsedOutput = {
1272
+ ...output,
1273
+ body: await parseErrorBody(output.body, context)
1274
+ };
1275
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1276
+ switch (errorCode) {
1277
+ case "BadRequestException":
1278
+ case "com.amazonaws.amplifybackend#BadRequestException":
1279
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1280
+ case "GatewayTimeoutException":
1281
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1282
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1283
+ case "NotFoundException":
1284
+ case "com.amazonaws.amplifybackend#NotFoundException":
1285
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1286
+ case "TooManyRequestsException":
1287
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1288
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1289
+ default:
1290
+ const parsedBody = parsedOutput.body;
1291
+ return throwDefaultError({
1292
+ output,
1293
+ parsedBody,
1294
+ errorCode
1295
+ });
1296
+ }
1297
+ }, "de_CreateTokenCommandError");
1298
+ var de_DeleteBackendCommand = /* @__PURE__ */ __name(async (output, context) => {
1299
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1300
+ return de_DeleteBackendCommandError(output, context);
1301
+ }
1302
+ const contents = (0, import_smithy_client.map)({
1303
+ $metadata: deserializeMetadata(output)
1304
+ });
1305
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1306
+ const doc = (0, import_smithy_client.take)(data, {
1307
+ AppId: [, import_smithy_client.expectString, `appId`],
1308
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1309
+ Error: [, import_smithy_client.expectString, `error`],
1310
+ JobId: [, import_smithy_client.expectString, `jobId`],
1311
+ Operation: [, import_smithy_client.expectString, `operation`],
1312
+ Status: [, import_smithy_client.expectString, `status`]
1313
+ });
1314
+ Object.assign(contents, doc);
1315
+ return contents;
1316
+ }, "de_DeleteBackendCommand");
1317
+ var de_DeleteBackendCommandError = /* @__PURE__ */ __name(async (output, context) => {
1318
+ const parsedOutput = {
1319
+ ...output,
1320
+ body: await parseErrorBody(output.body, context)
1321
+ };
1322
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1323
+ switch (errorCode) {
1324
+ case "BadRequestException":
1325
+ case "com.amazonaws.amplifybackend#BadRequestException":
1326
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1327
+ case "GatewayTimeoutException":
1328
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1329
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1330
+ case "NotFoundException":
1331
+ case "com.amazonaws.amplifybackend#NotFoundException":
1332
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1333
+ case "TooManyRequestsException":
1334
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1335
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1336
+ default:
1337
+ const parsedBody = parsedOutput.body;
1338
+ return throwDefaultError({
1339
+ output,
1340
+ parsedBody,
1341
+ errorCode
1342
+ });
1343
+ }
1344
+ }, "de_DeleteBackendCommandError");
1345
+ var de_DeleteBackendAPICommand = /* @__PURE__ */ __name(async (output, context) => {
1346
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1347
+ return de_DeleteBackendAPICommandError(output, context);
1348
+ }
1349
+ const contents = (0, import_smithy_client.map)({
1350
+ $metadata: deserializeMetadata(output)
1351
+ });
1352
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1353
+ const doc = (0, import_smithy_client.take)(data, {
1354
+ AppId: [, import_smithy_client.expectString, `appId`],
1355
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1356
+ Error: [, import_smithy_client.expectString, `error`],
1357
+ JobId: [, import_smithy_client.expectString, `jobId`],
1358
+ Operation: [, import_smithy_client.expectString, `operation`],
1359
+ Status: [, import_smithy_client.expectString, `status`]
1360
+ });
1361
+ Object.assign(contents, doc);
1362
+ return contents;
1363
+ }, "de_DeleteBackendAPICommand");
1364
+ var de_DeleteBackendAPICommandError = /* @__PURE__ */ __name(async (output, context) => {
1365
+ const parsedOutput = {
1366
+ ...output,
1367
+ body: await parseErrorBody(output.body, context)
1368
+ };
1369
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1370
+ switch (errorCode) {
1371
+ case "BadRequestException":
1372
+ case "com.amazonaws.amplifybackend#BadRequestException":
1373
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1374
+ case "GatewayTimeoutException":
1375
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1376
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1377
+ case "NotFoundException":
1378
+ case "com.amazonaws.amplifybackend#NotFoundException":
1379
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1380
+ case "TooManyRequestsException":
1381
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1382
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1383
+ default:
1384
+ const parsedBody = parsedOutput.body;
1385
+ return throwDefaultError({
1386
+ output,
1387
+ parsedBody,
1388
+ errorCode
1389
+ });
1390
+ }
1391
+ }, "de_DeleteBackendAPICommandError");
1392
+ var de_DeleteBackendAuthCommand = /* @__PURE__ */ __name(async (output, context) => {
1393
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1394
+ return de_DeleteBackendAuthCommandError(output, context);
1395
+ }
1396
+ const contents = (0, import_smithy_client.map)({
1397
+ $metadata: deserializeMetadata(output)
1398
+ });
1399
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1400
+ const doc = (0, import_smithy_client.take)(data, {
1401
+ AppId: [, import_smithy_client.expectString, `appId`],
1402
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1403
+ Error: [, import_smithy_client.expectString, `error`],
1404
+ JobId: [, import_smithy_client.expectString, `jobId`],
1405
+ Operation: [, import_smithy_client.expectString, `operation`],
1406
+ Status: [, import_smithy_client.expectString, `status`]
1407
+ });
1408
+ Object.assign(contents, doc);
1409
+ return contents;
1410
+ }, "de_DeleteBackendAuthCommand");
1411
+ var de_DeleteBackendAuthCommandError = /* @__PURE__ */ __name(async (output, context) => {
1412
+ const parsedOutput = {
1413
+ ...output,
1414
+ body: await parseErrorBody(output.body, context)
1415
+ };
1416
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1417
+ switch (errorCode) {
1418
+ case "BadRequestException":
1419
+ case "com.amazonaws.amplifybackend#BadRequestException":
1420
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1421
+ case "GatewayTimeoutException":
1422
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1423
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1424
+ case "NotFoundException":
1425
+ case "com.amazonaws.amplifybackend#NotFoundException":
1426
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1427
+ case "TooManyRequestsException":
1428
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1429
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1430
+ default:
1431
+ const parsedBody = parsedOutput.body;
1432
+ return throwDefaultError({
1433
+ output,
1434
+ parsedBody,
1435
+ errorCode
1436
+ });
1437
+ }
1438
+ }, "de_DeleteBackendAuthCommandError");
1439
+ var de_DeleteBackendStorageCommand = /* @__PURE__ */ __name(async (output, context) => {
1440
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1441
+ return de_DeleteBackendStorageCommandError(output, context);
1442
+ }
1443
+ const contents = (0, import_smithy_client.map)({
1444
+ $metadata: deserializeMetadata(output)
1445
+ });
1446
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1447
+ const doc = (0, import_smithy_client.take)(data, {
1448
+ AppId: [, import_smithy_client.expectString, `appId`],
1449
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1450
+ JobId: [, import_smithy_client.expectString, `jobId`],
1451
+ Status: [, import_smithy_client.expectString, `status`]
1452
+ });
1453
+ Object.assign(contents, doc);
1454
+ return contents;
1455
+ }, "de_DeleteBackendStorageCommand");
1456
+ var de_DeleteBackendStorageCommandError = /* @__PURE__ */ __name(async (output, context) => {
1457
+ const parsedOutput = {
1458
+ ...output,
1459
+ body: await parseErrorBody(output.body, context)
1460
+ };
1461
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1462
+ switch (errorCode) {
1463
+ case "BadRequestException":
1464
+ case "com.amazonaws.amplifybackend#BadRequestException":
1465
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1466
+ case "GatewayTimeoutException":
1467
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1468
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1469
+ case "NotFoundException":
1470
+ case "com.amazonaws.amplifybackend#NotFoundException":
1471
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1472
+ case "TooManyRequestsException":
1473
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1474
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1475
+ default:
1476
+ const parsedBody = parsedOutput.body;
1477
+ return throwDefaultError({
1478
+ output,
1479
+ parsedBody,
1480
+ errorCode
1481
+ });
1482
+ }
1483
+ }, "de_DeleteBackendStorageCommandError");
1484
+ var de_DeleteTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
1485
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1486
+ return de_DeleteTokenCommandError(output, context);
1487
+ }
1488
+ const contents = (0, import_smithy_client.map)({
1489
+ $metadata: deserializeMetadata(output)
1490
+ });
1491
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1492
+ const doc = (0, import_smithy_client.take)(data, {
1493
+ IsSuccess: [, import_smithy_client.expectBoolean, `isSuccess`]
1494
+ });
1495
+ Object.assign(contents, doc);
1496
+ return contents;
1497
+ }, "de_DeleteTokenCommand");
1498
+ var de_DeleteTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
1499
+ const parsedOutput = {
1500
+ ...output,
1501
+ body: await parseErrorBody(output.body, context)
1502
+ };
1503
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1504
+ switch (errorCode) {
1505
+ case "BadRequestException":
1506
+ case "com.amazonaws.amplifybackend#BadRequestException":
1507
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1508
+ case "GatewayTimeoutException":
1509
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1510
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1511
+ case "NotFoundException":
1512
+ case "com.amazonaws.amplifybackend#NotFoundException":
1513
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1514
+ case "TooManyRequestsException":
1515
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1516
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1517
+ default:
1518
+ const parsedBody = parsedOutput.body;
1519
+ return throwDefaultError({
1520
+ output,
1521
+ parsedBody,
1522
+ errorCode
1523
+ });
1524
+ }
1525
+ }, "de_DeleteTokenCommandError");
1526
+ var de_GenerateBackendAPIModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
1527
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1528
+ return de_GenerateBackendAPIModelsCommandError(output, context);
1529
+ }
1530
+ const contents = (0, import_smithy_client.map)({
1531
+ $metadata: deserializeMetadata(output)
1532
+ });
1533
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1534
+ const doc = (0, import_smithy_client.take)(data, {
1535
+ AppId: [, import_smithy_client.expectString, `appId`],
1536
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1537
+ Error: [, import_smithy_client.expectString, `error`],
1538
+ JobId: [, import_smithy_client.expectString, `jobId`],
1539
+ Operation: [, import_smithy_client.expectString, `operation`],
1540
+ Status: [, import_smithy_client.expectString, `status`]
1541
+ });
1542
+ Object.assign(contents, doc);
1543
+ return contents;
1544
+ }, "de_GenerateBackendAPIModelsCommand");
1545
+ var de_GenerateBackendAPIModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1546
+ const parsedOutput = {
1547
+ ...output,
1548
+ body: await parseErrorBody(output.body, context)
1549
+ };
1550
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1551
+ switch (errorCode) {
1552
+ case "BadRequestException":
1553
+ case "com.amazonaws.amplifybackend#BadRequestException":
1554
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1555
+ case "GatewayTimeoutException":
1556
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1557
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1558
+ case "NotFoundException":
1559
+ case "com.amazonaws.amplifybackend#NotFoundException":
1560
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1561
+ case "TooManyRequestsException":
1562
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1563
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1564
+ default:
1565
+ const parsedBody = parsedOutput.body;
1566
+ return throwDefaultError({
1567
+ output,
1568
+ parsedBody,
1569
+ errorCode
1570
+ });
1571
+ }
1572
+ }, "de_GenerateBackendAPIModelsCommandError");
1573
+ var de_GetBackendCommand = /* @__PURE__ */ __name(async (output, context) => {
1574
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1575
+ return de_GetBackendCommandError(output, context);
1576
+ }
1577
+ const contents = (0, import_smithy_client.map)({
1578
+ $metadata: deserializeMetadata(output)
1579
+ });
1580
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1581
+ const doc = (0, import_smithy_client.take)(data, {
1582
+ AmplifyFeatureFlags: [, import_smithy_client.expectString, `amplifyFeatureFlags`],
1583
+ AmplifyMetaConfig: [, import_smithy_client.expectString, `amplifyMetaConfig`],
1584
+ AppId: [, import_smithy_client.expectString, `appId`],
1585
+ AppName: [, import_smithy_client.expectString, `appName`],
1586
+ BackendEnvironmentList: [, import_smithy_client._json, `backendEnvironmentList`],
1587
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1588
+ Error: [, import_smithy_client.expectString, `error`]
1589
+ });
1590
+ Object.assign(contents, doc);
1591
+ return contents;
1592
+ }, "de_GetBackendCommand");
1593
+ var de_GetBackendCommandError = /* @__PURE__ */ __name(async (output, context) => {
1594
+ const parsedOutput = {
1595
+ ...output,
1596
+ body: await parseErrorBody(output.body, context)
1597
+ };
1598
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1599
+ switch (errorCode) {
1600
+ case "BadRequestException":
1601
+ case "com.amazonaws.amplifybackend#BadRequestException":
1602
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1603
+ case "GatewayTimeoutException":
1604
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1605
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1606
+ case "NotFoundException":
1607
+ case "com.amazonaws.amplifybackend#NotFoundException":
1608
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1609
+ case "TooManyRequestsException":
1610
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1611
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1612
+ default:
1613
+ const parsedBody = parsedOutput.body;
1614
+ return throwDefaultError({
1615
+ output,
1616
+ parsedBody,
1617
+ errorCode
1618
+ });
1619
+ }
1620
+ }, "de_GetBackendCommandError");
1621
+ var de_GetBackendAPICommand = /* @__PURE__ */ __name(async (output, context) => {
1622
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1623
+ return de_GetBackendAPICommandError(output, context);
1624
+ }
1625
+ const contents = (0, import_smithy_client.map)({
1626
+ $metadata: deserializeMetadata(output)
1627
+ });
1628
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1629
+ const doc = (0, import_smithy_client.take)(data, {
1630
+ AppId: [, import_smithy_client.expectString, `appId`],
1631
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1632
+ Error: [, import_smithy_client.expectString, `error`],
1633
+ ResourceConfig: [, (_) => de_BackendAPIResourceConfig(_, context), `resourceConfig`],
1634
+ ResourceName: [, import_smithy_client.expectString, `resourceName`]
1635
+ });
1636
+ Object.assign(contents, doc);
1637
+ return contents;
1638
+ }, "de_GetBackendAPICommand");
1639
+ var de_GetBackendAPICommandError = /* @__PURE__ */ __name(async (output, context) => {
1640
+ const parsedOutput = {
1641
+ ...output,
1642
+ body: await parseErrorBody(output.body, context)
1643
+ };
1644
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1645
+ switch (errorCode) {
1646
+ case "BadRequestException":
1647
+ case "com.amazonaws.amplifybackend#BadRequestException":
1648
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1649
+ case "GatewayTimeoutException":
1650
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1651
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1652
+ case "NotFoundException":
1653
+ case "com.amazonaws.amplifybackend#NotFoundException":
1654
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1655
+ case "TooManyRequestsException":
1656
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1657
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1658
+ default:
1659
+ const parsedBody = parsedOutput.body;
1660
+ return throwDefaultError({
1661
+ output,
1662
+ parsedBody,
1663
+ errorCode
1664
+ });
1665
+ }
1666
+ }, "de_GetBackendAPICommandError");
1667
+ var de_GetBackendAPIModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
1668
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1669
+ return de_GetBackendAPIModelsCommandError(output, context);
1670
+ }
1671
+ const contents = (0, import_smithy_client.map)({
1672
+ $metadata: deserializeMetadata(output)
1673
+ });
1674
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1675
+ const doc = (0, import_smithy_client.take)(data, {
1676
+ ModelIntrospectionSchema: [, import_smithy_client.expectString, `modelIntrospectionSchema`],
1677
+ Models: [, import_smithy_client.expectString, `models`],
1678
+ Status: [, import_smithy_client.expectString, `status`]
1679
+ });
1680
+ Object.assign(contents, doc);
1681
+ return contents;
1682
+ }, "de_GetBackendAPIModelsCommand");
1683
+ var de_GetBackendAPIModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1684
+ const parsedOutput = {
1685
+ ...output,
1686
+ body: await parseErrorBody(output.body, context)
1687
+ };
1688
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1689
+ switch (errorCode) {
1690
+ case "BadRequestException":
1691
+ case "com.amazonaws.amplifybackend#BadRequestException":
1692
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1693
+ case "GatewayTimeoutException":
1694
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1695
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1696
+ case "NotFoundException":
1697
+ case "com.amazonaws.amplifybackend#NotFoundException":
1698
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1699
+ case "TooManyRequestsException":
1700
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1701
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1702
+ default:
1703
+ const parsedBody = parsedOutput.body;
1704
+ return throwDefaultError({
1705
+ output,
1706
+ parsedBody,
1707
+ errorCode
1708
+ });
1709
+ }
1710
+ }, "de_GetBackendAPIModelsCommandError");
1711
+ var de_GetBackendAuthCommand = /* @__PURE__ */ __name(async (output, context) => {
1712
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1713
+ return de_GetBackendAuthCommandError(output, context);
1714
+ }
1715
+ const contents = (0, import_smithy_client.map)({
1716
+ $metadata: deserializeMetadata(output)
1717
+ });
1718
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1719
+ const doc = (0, import_smithy_client.take)(data, {
1720
+ AppId: [, import_smithy_client.expectString, `appId`],
1721
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1722
+ Error: [, import_smithy_client.expectString, `error`],
1723
+ ResourceConfig: [, (_) => de_CreateBackendAuthResourceConfig(_, context), `resourceConfig`],
1724
+ ResourceName: [, import_smithy_client.expectString, `resourceName`]
1725
+ });
1726
+ Object.assign(contents, doc);
1727
+ return contents;
1728
+ }, "de_GetBackendAuthCommand");
1729
+ var de_GetBackendAuthCommandError = /* @__PURE__ */ __name(async (output, context) => {
1730
+ const parsedOutput = {
1731
+ ...output,
1732
+ body: await parseErrorBody(output.body, context)
1733
+ };
1734
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1735
+ switch (errorCode) {
1736
+ case "BadRequestException":
1737
+ case "com.amazonaws.amplifybackend#BadRequestException":
1738
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1739
+ case "GatewayTimeoutException":
1740
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1741
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1742
+ case "NotFoundException":
1743
+ case "com.amazonaws.amplifybackend#NotFoundException":
1744
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1745
+ case "TooManyRequestsException":
1746
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1747
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1748
+ default:
1749
+ const parsedBody = parsedOutput.body;
1750
+ return throwDefaultError({
1751
+ output,
1752
+ parsedBody,
1753
+ errorCode
1754
+ });
1755
+ }
1756
+ }, "de_GetBackendAuthCommandError");
1757
+ var de_GetBackendJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1758
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1759
+ return de_GetBackendJobCommandError(output, context);
1760
+ }
1761
+ const contents = (0, import_smithy_client.map)({
1762
+ $metadata: deserializeMetadata(output)
1763
+ });
1764
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1765
+ const doc = (0, import_smithy_client.take)(data, {
1766
+ AppId: [, import_smithy_client.expectString, `appId`],
1767
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1768
+ CreateTime: [, import_smithy_client.expectString, `createTime`],
1769
+ Error: [, import_smithy_client.expectString, `error`],
1770
+ JobId: [, import_smithy_client.expectString, `jobId`],
1771
+ Operation: [, import_smithy_client.expectString, `operation`],
1772
+ Status: [, import_smithy_client.expectString, `status`],
1773
+ UpdateTime: [, import_smithy_client.expectString, `updateTime`]
1774
+ });
1775
+ Object.assign(contents, doc);
1776
+ return contents;
1777
+ }, "de_GetBackendJobCommand");
1778
+ var de_GetBackendJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1779
+ const parsedOutput = {
1780
+ ...output,
1781
+ body: await parseErrorBody(output.body, context)
1782
+ };
1783
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1784
+ switch (errorCode) {
1785
+ case "BadRequestException":
1786
+ case "com.amazonaws.amplifybackend#BadRequestException":
1787
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1788
+ case "GatewayTimeoutException":
1789
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1790
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1791
+ case "NotFoundException":
1792
+ case "com.amazonaws.amplifybackend#NotFoundException":
1793
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1794
+ case "TooManyRequestsException":
1795
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1796
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1797
+ default:
1798
+ const parsedBody = parsedOutput.body;
1799
+ return throwDefaultError({
1800
+ output,
1801
+ parsedBody,
1802
+ errorCode
1803
+ });
1804
+ }
1805
+ }, "de_GetBackendJobCommandError");
1806
+ var de_GetBackendStorageCommand = /* @__PURE__ */ __name(async (output, context) => {
1807
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1808
+ return de_GetBackendStorageCommandError(output, context);
1809
+ }
1810
+ const contents = (0, import_smithy_client.map)({
1811
+ $metadata: deserializeMetadata(output)
1812
+ });
1813
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1814
+ const doc = (0, import_smithy_client.take)(data, {
1815
+ AppId: [, import_smithy_client.expectString, `appId`],
1816
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1817
+ ResourceConfig: [, (_) => de_GetBackendStorageResourceConfig(_, context), `resourceConfig`],
1818
+ ResourceName: [, import_smithy_client.expectString, `resourceName`]
1819
+ });
1820
+ Object.assign(contents, doc);
1821
+ return contents;
1822
+ }, "de_GetBackendStorageCommand");
1823
+ var de_GetBackendStorageCommandError = /* @__PURE__ */ __name(async (output, context) => {
1824
+ const parsedOutput = {
1825
+ ...output,
1826
+ body: await parseErrorBody(output.body, context)
1827
+ };
1828
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1829
+ switch (errorCode) {
1830
+ case "BadRequestException":
1831
+ case "com.amazonaws.amplifybackend#BadRequestException":
1832
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1833
+ case "GatewayTimeoutException":
1834
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1835
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1836
+ case "NotFoundException":
1837
+ case "com.amazonaws.amplifybackend#NotFoundException":
1838
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1839
+ case "TooManyRequestsException":
1840
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1841
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1842
+ default:
1843
+ const parsedBody = parsedOutput.body;
1844
+ return throwDefaultError({
1845
+ output,
1846
+ parsedBody,
1847
+ errorCode
1848
+ });
1849
+ }
1850
+ }, "de_GetBackendStorageCommandError");
1851
+ var de_GetTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
1852
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1853
+ return de_GetTokenCommandError(output, context);
1854
+ }
1855
+ const contents = (0, import_smithy_client.map)({
1856
+ $metadata: deserializeMetadata(output)
1857
+ });
1858
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1859
+ const doc = (0, import_smithy_client.take)(data, {
1860
+ AppId: [, import_smithy_client.expectString, `appId`],
1861
+ ChallengeCode: [, import_smithy_client.expectString, `challengeCode`],
1862
+ SessionId: [, import_smithy_client.expectString, `sessionId`],
1863
+ Ttl: [, import_smithy_client.expectString, `ttl`]
1864
+ });
1865
+ Object.assign(contents, doc);
1866
+ return contents;
1867
+ }, "de_GetTokenCommand");
1868
+ var de_GetTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
1869
+ const parsedOutput = {
1870
+ ...output,
1871
+ body: await parseErrorBody(output.body, context)
1872
+ };
1873
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1874
+ switch (errorCode) {
1875
+ case "BadRequestException":
1876
+ case "com.amazonaws.amplifybackend#BadRequestException":
1877
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1878
+ case "GatewayTimeoutException":
1879
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1880
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1881
+ case "NotFoundException":
1882
+ case "com.amazonaws.amplifybackend#NotFoundException":
1883
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1884
+ case "TooManyRequestsException":
1885
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1886
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1887
+ default:
1888
+ const parsedBody = parsedOutput.body;
1889
+ return throwDefaultError({
1890
+ output,
1891
+ parsedBody,
1892
+ errorCode
1893
+ });
1894
+ }
1895
+ }, "de_GetTokenCommandError");
1896
+ var de_ImportBackendAuthCommand = /* @__PURE__ */ __name(async (output, context) => {
1897
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1898
+ return de_ImportBackendAuthCommandError(output, context);
1899
+ }
1900
+ const contents = (0, import_smithy_client.map)({
1901
+ $metadata: deserializeMetadata(output)
1902
+ });
1903
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1904
+ const doc = (0, import_smithy_client.take)(data, {
1905
+ AppId: [, import_smithy_client.expectString, `appId`],
1906
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1907
+ Error: [, import_smithy_client.expectString, `error`],
1908
+ JobId: [, import_smithy_client.expectString, `jobId`],
1909
+ Operation: [, import_smithy_client.expectString, `operation`],
1910
+ Status: [, import_smithy_client.expectString, `status`]
1911
+ });
1912
+ Object.assign(contents, doc);
1913
+ return contents;
1914
+ }, "de_ImportBackendAuthCommand");
1915
+ var de_ImportBackendAuthCommandError = /* @__PURE__ */ __name(async (output, context) => {
1916
+ const parsedOutput = {
1917
+ ...output,
1918
+ body: await parseErrorBody(output.body, context)
1919
+ };
1920
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1921
+ switch (errorCode) {
1922
+ case "BadRequestException":
1923
+ case "com.amazonaws.amplifybackend#BadRequestException":
1924
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1925
+ case "GatewayTimeoutException":
1926
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1927
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1928
+ case "NotFoundException":
1929
+ case "com.amazonaws.amplifybackend#NotFoundException":
1930
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1931
+ case "TooManyRequestsException":
1932
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1933
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1934
+ default:
1935
+ const parsedBody = parsedOutput.body;
1936
+ return throwDefaultError({
1937
+ output,
1938
+ parsedBody,
1939
+ errorCode
1940
+ });
1941
+ }
1942
+ }, "de_ImportBackendAuthCommandError");
1943
+ var de_ImportBackendStorageCommand = /* @__PURE__ */ __name(async (output, context) => {
1944
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1945
+ return de_ImportBackendStorageCommandError(output, context);
1946
+ }
1947
+ const contents = (0, import_smithy_client.map)({
1948
+ $metadata: deserializeMetadata(output)
1949
+ });
1950
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1951
+ const doc = (0, import_smithy_client.take)(data, {
1952
+ AppId: [, import_smithy_client.expectString, `appId`],
1953
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
1954
+ JobId: [, import_smithy_client.expectString, `jobId`],
1955
+ Status: [, import_smithy_client.expectString, `status`]
1956
+ });
1957
+ Object.assign(contents, doc);
1958
+ return contents;
1959
+ }, "de_ImportBackendStorageCommand");
1960
+ var de_ImportBackendStorageCommandError = /* @__PURE__ */ __name(async (output, context) => {
1961
+ const parsedOutput = {
1962
+ ...output,
1963
+ body: await parseErrorBody(output.body, context)
1964
+ };
1965
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1966
+ switch (errorCode) {
1967
+ case "BadRequestException":
1968
+ case "com.amazonaws.amplifybackend#BadRequestException":
1969
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1970
+ case "GatewayTimeoutException":
1971
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1972
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1973
+ case "NotFoundException":
1974
+ case "com.amazonaws.amplifybackend#NotFoundException":
1975
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1976
+ case "TooManyRequestsException":
1977
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
1978
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1979
+ default:
1980
+ const parsedBody = parsedOutput.body;
1981
+ return throwDefaultError({
1982
+ output,
1983
+ parsedBody,
1984
+ errorCode
1985
+ });
1986
+ }
1987
+ }, "de_ImportBackendStorageCommandError");
1988
+ var de_ListBackendJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1989
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1990
+ return de_ListBackendJobsCommandError(output, context);
1991
+ }
1992
+ const contents = (0, import_smithy_client.map)({
1993
+ $metadata: deserializeMetadata(output)
1994
+ });
1995
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1996
+ const doc = (0, import_smithy_client.take)(data, {
1997
+ Jobs: [, (_) => de_ListOfBackendJobRespObj(_, context), `jobs`],
1998
+ NextToken: [, import_smithy_client.expectString, `nextToken`]
1999
+ });
2000
+ Object.assign(contents, doc);
2001
+ return contents;
2002
+ }, "de_ListBackendJobsCommand");
2003
+ var de_ListBackendJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2004
+ const parsedOutput = {
2005
+ ...output,
2006
+ body: await parseErrorBody(output.body, context)
2007
+ };
2008
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2009
+ switch (errorCode) {
2010
+ case "BadRequestException":
2011
+ case "com.amazonaws.amplifybackend#BadRequestException":
2012
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2013
+ case "GatewayTimeoutException":
2014
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2015
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2016
+ case "NotFoundException":
2017
+ case "com.amazonaws.amplifybackend#NotFoundException":
2018
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2019
+ case "TooManyRequestsException":
2020
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
2021
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2022
+ default:
2023
+ const parsedBody = parsedOutput.body;
2024
+ return throwDefaultError({
2025
+ output,
2026
+ parsedBody,
2027
+ errorCode
2028
+ });
2029
+ }
2030
+ }, "de_ListBackendJobsCommandError");
2031
+ var de_ListS3BucketsCommand = /* @__PURE__ */ __name(async (output, context) => {
2032
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2033
+ return de_ListS3BucketsCommandError(output, context);
2034
+ }
2035
+ const contents = (0, import_smithy_client.map)({
2036
+ $metadata: deserializeMetadata(output)
2037
+ });
2038
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2039
+ const doc = (0, import_smithy_client.take)(data, {
2040
+ Buckets: [, (_) => de_ListOfS3BucketInfo(_, context), `buckets`],
2041
+ NextToken: [, import_smithy_client.expectString, `nextToken`]
2042
+ });
2043
+ Object.assign(contents, doc);
2044
+ return contents;
2045
+ }, "de_ListS3BucketsCommand");
2046
+ var de_ListS3BucketsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2047
+ const parsedOutput = {
2048
+ ...output,
2049
+ body: await parseErrorBody(output.body, context)
2050
+ };
2051
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2052
+ switch (errorCode) {
2053
+ case "BadRequestException":
2054
+ case "com.amazonaws.amplifybackend#BadRequestException":
2055
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2056
+ case "GatewayTimeoutException":
2057
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2058
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2059
+ case "NotFoundException":
2060
+ case "com.amazonaws.amplifybackend#NotFoundException":
2061
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2062
+ case "TooManyRequestsException":
2063
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
2064
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2065
+ default:
2066
+ const parsedBody = parsedOutput.body;
2067
+ return throwDefaultError({
2068
+ output,
2069
+ parsedBody,
2070
+ errorCode
2071
+ });
2072
+ }
2073
+ }, "de_ListS3BucketsCommandError");
2074
+ var de_RemoveAllBackendsCommand = /* @__PURE__ */ __name(async (output, context) => {
2075
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2076
+ return de_RemoveAllBackendsCommandError(output, context);
2077
+ }
2078
+ const contents = (0, import_smithy_client.map)({
2079
+ $metadata: deserializeMetadata(output)
2080
+ });
2081
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2082
+ const doc = (0, import_smithy_client.take)(data, {
2083
+ AppId: [, import_smithy_client.expectString, `appId`],
2084
+ Error: [, import_smithy_client.expectString, `error`],
2085
+ JobId: [, import_smithy_client.expectString, `jobId`],
2086
+ Operation: [, import_smithy_client.expectString, `operation`],
2087
+ Status: [, import_smithy_client.expectString, `status`]
2088
+ });
2089
+ Object.assign(contents, doc);
2090
+ return contents;
2091
+ }, "de_RemoveAllBackendsCommand");
2092
+ var de_RemoveAllBackendsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2093
+ const parsedOutput = {
2094
+ ...output,
2095
+ body: await parseErrorBody(output.body, context)
2096
+ };
2097
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2098
+ switch (errorCode) {
2099
+ case "BadRequestException":
2100
+ case "com.amazonaws.amplifybackend#BadRequestException":
2101
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2102
+ case "GatewayTimeoutException":
2103
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2104
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2105
+ case "NotFoundException":
2106
+ case "com.amazonaws.amplifybackend#NotFoundException":
2107
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2108
+ case "TooManyRequestsException":
2109
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
2110
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2111
+ default:
2112
+ const parsedBody = parsedOutput.body;
2113
+ return throwDefaultError({
2114
+ output,
2115
+ parsedBody,
2116
+ errorCode
2117
+ });
2118
+ }
2119
+ }, "de_RemoveAllBackendsCommandError");
2120
+ var de_RemoveBackendConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
2121
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2122
+ return de_RemoveBackendConfigCommandError(output, context);
2123
+ }
2124
+ const contents = (0, import_smithy_client.map)({
2125
+ $metadata: deserializeMetadata(output)
2126
+ });
2127
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2128
+ const doc = (0, import_smithy_client.take)(data, {
2129
+ Error: [, import_smithy_client.expectString, `error`]
2130
+ });
2131
+ Object.assign(contents, doc);
2132
+ return contents;
2133
+ }, "de_RemoveBackendConfigCommand");
2134
+ var de_RemoveBackendConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
2135
+ const parsedOutput = {
2136
+ ...output,
2137
+ body: await parseErrorBody(output.body, context)
2138
+ };
2139
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2140
+ switch (errorCode) {
2141
+ case "BadRequestException":
2142
+ case "com.amazonaws.amplifybackend#BadRequestException":
2143
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2144
+ case "GatewayTimeoutException":
2145
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2146
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2147
+ case "NotFoundException":
2148
+ case "com.amazonaws.amplifybackend#NotFoundException":
2149
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2150
+ case "TooManyRequestsException":
2151
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
2152
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2153
+ default:
2154
+ const parsedBody = parsedOutput.body;
2155
+ return throwDefaultError({
2156
+ output,
2157
+ parsedBody,
2158
+ errorCode
2159
+ });
2160
+ }
2161
+ }, "de_RemoveBackendConfigCommandError");
2162
+ var de_UpdateBackendAPICommand = /* @__PURE__ */ __name(async (output, context) => {
2163
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2164
+ return de_UpdateBackendAPICommandError(output, context);
2165
+ }
2166
+ const contents = (0, import_smithy_client.map)({
2167
+ $metadata: deserializeMetadata(output)
2168
+ });
2169
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2170
+ const doc = (0, import_smithy_client.take)(data, {
2171
+ AppId: [, import_smithy_client.expectString, `appId`],
2172
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
2173
+ Error: [, import_smithy_client.expectString, `error`],
2174
+ JobId: [, import_smithy_client.expectString, `jobId`],
2175
+ Operation: [, import_smithy_client.expectString, `operation`],
2176
+ Status: [, import_smithy_client.expectString, `status`]
2177
+ });
2178
+ Object.assign(contents, doc);
2179
+ return contents;
2180
+ }, "de_UpdateBackendAPICommand");
2181
+ var de_UpdateBackendAPICommandError = /* @__PURE__ */ __name(async (output, context) => {
2182
+ const parsedOutput = {
2183
+ ...output,
2184
+ body: await parseErrorBody(output.body, context)
2185
+ };
2186
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2187
+ switch (errorCode) {
2188
+ case "BadRequestException":
2189
+ case "com.amazonaws.amplifybackend#BadRequestException":
2190
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2191
+ case "GatewayTimeoutException":
2192
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2193
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2194
+ case "NotFoundException":
2195
+ case "com.amazonaws.amplifybackend#NotFoundException":
2196
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2197
+ case "TooManyRequestsException":
2198
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
2199
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2200
+ default:
2201
+ const parsedBody = parsedOutput.body;
2202
+ return throwDefaultError({
2203
+ output,
2204
+ parsedBody,
2205
+ errorCode
2206
+ });
2207
+ }
2208
+ }, "de_UpdateBackendAPICommandError");
2209
+ var de_UpdateBackendAuthCommand = /* @__PURE__ */ __name(async (output, context) => {
2210
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2211
+ return de_UpdateBackendAuthCommandError(output, context);
2212
+ }
2213
+ const contents = (0, import_smithy_client.map)({
2214
+ $metadata: deserializeMetadata(output)
2215
+ });
2216
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2217
+ const doc = (0, import_smithy_client.take)(data, {
2218
+ AppId: [, import_smithy_client.expectString, `appId`],
2219
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
2220
+ Error: [, import_smithy_client.expectString, `error`],
2221
+ JobId: [, import_smithy_client.expectString, `jobId`],
2222
+ Operation: [, import_smithy_client.expectString, `operation`],
2223
+ Status: [, import_smithy_client.expectString, `status`]
2224
+ });
2225
+ Object.assign(contents, doc);
2226
+ return contents;
2227
+ }, "de_UpdateBackendAuthCommand");
2228
+ var de_UpdateBackendAuthCommandError = /* @__PURE__ */ __name(async (output, context) => {
2229
+ const parsedOutput = {
2230
+ ...output,
2231
+ body: await parseErrorBody(output.body, context)
2232
+ };
2233
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2234
+ switch (errorCode) {
2235
+ case "BadRequestException":
2236
+ case "com.amazonaws.amplifybackend#BadRequestException":
2237
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2238
+ case "GatewayTimeoutException":
2239
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2240
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2241
+ case "NotFoundException":
2242
+ case "com.amazonaws.amplifybackend#NotFoundException":
2243
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2244
+ case "TooManyRequestsException":
2245
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
2246
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2247
+ default:
2248
+ const parsedBody = parsedOutput.body;
2249
+ return throwDefaultError({
2250
+ output,
2251
+ parsedBody,
2252
+ errorCode
2253
+ });
2254
+ }
2255
+ }, "de_UpdateBackendAuthCommandError");
2256
+ var de_UpdateBackendConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
2257
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2258
+ return de_UpdateBackendConfigCommandError(output, context);
2259
+ }
2260
+ const contents = (0, import_smithy_client.map)({
2261
+ $metadata: deserializeMetadata(output)
2262
+ });
2263
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2264
+ const doc = (0, import_smithy_client.take)(data, {
2265
+ AppId: [, import_smithy_client.expectString, `appId`],
2266
+ BackendManagerAppId: [, import_smithy_client.expectString, `backendManagerAppId`],
2267
+ Error: [, import_smithy_client.expectString, `error`],
2268
+ LoginAuthConfig: [, (_) => de_LoginAuthConfigReqObj(_, context), `loginAuthConfig`]
2269
+ });
2270
+ Object.assign(contents, doc);
2271
+ return contents;
2272
+ }, "de_UpdateBackendConfigCommand");
2273
+ var de_UpdateBackendConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
2274
+ const parsedOutput = {
2275
+ ...output,
2276
+ body: await parseErrorBody(output.body, context)
2277
+ };
2278
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2279
+ switch (errorCode) {
2280
+ case "BadRequestException":
2281
+ case "com.amazonaws.amplifybackend#BadRequestException":
2282
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2283
+ case "GatewayTimeoutException":
2284
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2285
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2286
+ case "NotFoundException":
2287
+ case "com.amazonaws.amplifybackend#NotFoundException":
2288
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2289
+ case "TooManyRequestsException":
2290
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
2291
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2292
+ default:
2293
+ const parsedBody = parsedOutput.body;
2294
+ return throwDefaultError({
2295
+ output,
2296
+ parsedBody,
2297
+ errorCode
2298
+ });
2299
+ }
2300
+ }, "de_UpdateBackendConfigCommandError");
2301
+ var de_UpdateBackendJobCommand = /* @__PURE__ */ __name(async (output, context) => {
2302
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2303
+ return de_UpdateBackendJobCommandError(output, context);
2304
+ }
2305
+ const contents = (0, import_smithy_client.map)({
2306
+ $metadata: deserializeMetadata(output)
2307
+ });
2308
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2309
+ const doc = (0, import_smithy_client.take)(data, {
2310
+ AppId: [, import_smithy_client.expectString, `appId`],
2311
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
2312
+ CreateTime: [, import_smithy_client.expectString, `createTime`],
2313
+ Error: [, import_smithy_client.expectString, `error`],
2314
+ JobId: [, import_smithy_client.expectString, `jobId`],
2315
+ Operation: [, import_smithy_client.expectString, `operation`],
2316
+ Status: [, import_smithy_client.expectString, `status`],
2317
+ UpdateTime: [, import_smithy_client.expectString, `updateTime`]
2318
+ });
2319
+ Object.assign(contents, doc);
2320
+ return contents;
2321
+ }, "de_UpdateBackendJobCommand");
2322
+ var de_UpdateBackendJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
2323
+ const parsedOutput = {
2324
+ ...output,
2325
+ body: await parseErrorBody(output.body, context)
2326
+ };
2327
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2328
+ switch (errorCode) {
2329
+ case "BadRequestException":
2330
+ case "com.amazonaws.amplifybackend#BadRequestException":
2331
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2332
+ case "GatewayTimeoutException":
2333
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2334
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2335
+ case "NotFoundException":
2336
+ case "com.amazonaws.amplifybackend#NotFoundException":
2337
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2338
+ case "TooManyRequestsException":
2339
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
2340
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2341
+ default:
2342
+ const parsedBody = parsedOutput.body;
2343
+ return throwDefaultError({
2344
+ output,
2345
+ parsedBody,
2346
+ errorCode
2347
+ });
2348
+ }
2349
+ }, "de_UpdateBackendJobCommandError");
2350
+ var de_UpdateBackendStorageCommand = /* @__PURE__ */ __name(async (output, context) => {
2351
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2352
+ return de_UpdateBackendStorageCommandError(output, context);
2353
+ }
2354
+ const contents = (0, import_smithy_client.map)({
2355
+ $metadata: deserializeMetadata(output)
2356
+ });
2357
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2358
+ const doc = (0, import_smithy_client.take)(data, {
2359
+ AppId: [, import_smithy_client.expectString, `appId`],
2360
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
2361
+ JobId: [, import_smithy_client.expectString, `jobId`],
2362
+ Status: [, import_smithy_client.expectString, `status`]
2363
+ });
2364
+ Object.assign(contents, doc);
2365
+ return contents;
2366
+ }, "de_UpdateBackendStorageCommand");
2367
+ var de_UpdateBackendStorageCommandError = /* @__PURE__ */ __name(async (output, context) => {
2368
+ const parsedOutput = {
2369
+ ...output,
2370
+ body: await parseErrorBody(output.body, context)
2371
+ };
2372
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2373
+ switch (errorCode) {
2374
+ case "BadRequestException":
2375
+ case "com.amazonaws.amplifybackend#BadRequestException":
2376
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2377
+ case "GatewayTimeoutException":
2378
+ case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2379
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2380
+ case "NotFoundException":
2381
+ case "com.amazonaws.amplifybackend#NotFoundException":
2382
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2383
+ case "TooManyRequestsException":
2384
+ case "com.amazonaws.amplifybackend#TooManyRequestsException":
2385
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2386
+ default:
2387
+ const parsedBody = parsedOutput.body;
2388
+ return throwDefaultError({
2389
+ output,
2390
+ parsedBody,
2391
+ errorCode
2392
+ });
2393
+ }
2394
+ }, "de_UpdateBackendStorageCommandError");
2395
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(AmplifyBackendServiceException);
2396
+ var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2397
+ const contents = (0, import_smithy_client.map)({});
2398
+ const data = parsedOutput.body;
2399
+ const doc = (0, import_smithy_client.take)(data, {
2400
+ Message: [, import_smithy_client.expectString, `message`]
2401
+ });
2402
+ Object.assign(contents, doc);
2403
+ const exception = new BadRequestException({
2404
+ $metadata: deserializeMetadata(parsedOutput),
2405
+ ...contents
2406
+ });
2407
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2408
+ }, "de_BadRequestExceptionRes");
2409
+ var de_GatewayTimeoutExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2410
+ const contents = (0, import_smithy_client.map)({});
2411
+ const data = parsedOutput.body;
2412
+ const doc = (0, import_smithy_client.take)(data, {
2413
+ Message: [, import_smithy_client.expectString, `message`]
2414
+ });
2415
+ Object.assign(contents, doc);
2416
+ const exception = new GatewayTimeoutException({
2417
+ $metadata: deserializeMetadata(parsedOutput),
2418
+ ...contents
2419
+ });
2420
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2421
+ }, "de_GatewayTimeoutExceptionRes");
2422
+ var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2423
+ const contents = (0, import_smithy_client.map)({});
2424
+ const data = parsedOutput.body;
2425
+ const doc = (0, import_smithy_client.take)(data, {
2426
+ Message: [, import_smithy_client.expectString, `message`],
2427
+ ResourceType: [, import_smithy_client.expectString, `resourceType`]
2428
+ });
2429
+ Object.assign(contents, doc);
2430
+ const exception = new NotFoundException({
2431
+ $metadata: deserializeMetadata(parsedOutput),
2432
+ ...contents
2433
+ });
2434
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2435
+ }, "de_NotFoundExceptionRes");
2436
+ var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2437
+ const contents = (0, import_smithy_client.map)({});
2438
+ const data = parsedOutput.body;
2439
+ const doc = (0, import_smithy_client.take)(data, {
2440
+ LimitType: [, import_smithy_client.expectString, `limitType`],
2441
+ Message: [, import_smithy_client.expectString, `message`]
2442
+ });
2443
+ Object.assign(contents, doc);
2444
+ const exception = new TooManyRequestsException({
2445
+ $metadata: deserializeMetadata(parsedOutput),
2446
+ ...contents
2447
+ });
2448
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2449
+ }, "de_TooManyRequestsExceptionRes");
2450
+ var se_BackendAPIAppSyncAuthSettings = /* @__PURE__ */ __name((input, context) => {
2451
+ return (0, import_smithy_client.take)(input, {
2452
+ cognitoUserPoolId: [, , `CognitoUserPoolId`],
2453
+ description: [, , `Description`],
2454
+ expirationTime: [, import_smithy_client.serializeFloat, `ExpirationTime`],
2455
+ openIDAuthTTL: [, , `OpenIDAuthTTL`],
2456
+ openIDClientId: [, , `OpenIDClientId`],
2457
+ openIDIatTTL: [, , `OpenIDIatTTL`],
2458
+ openIDIssueURL: [, , `OpenIDIssueURL`],
2459
+ openIDProviderName: [, , `OpenIDProviderName`]
2460
+ });
2461
+ }, "se_BackendAPIAppSyncAuthSettings");
2462
+ var se_BackendAPIAuthType = /* @__PURE__ */ __name((input, context) => {
2463
+ return (0, import_smithy_client.take)(input, {
2464
+ mode: [, , `Mode`],
2465
+ settings: [, (_) => se_BackendAPIAppSyncAuthSettings(_, context), `Settings`]
2466
+ });
2467
+ }, "se_BackendAPIAuthType");
2468
+ var se_BackendAPIConflictResolution = /* @__PURE__ */ __name((input, context) => {
2469
+ return (0, import_smithy_client.take)(input, {
2470
+ resolutionStrategy: [, , `ResolutionStrategy`]
2471
+ });
2472
+ }, "se_BackendAPIConflictResolution");
2473
+ var se_BackendAPIResourceConfig = /* @__PURE__ */ __name((input, context) => {
2474
+ return (0, import_smithy_client.take)(input, {
2475
+ additionalAuthTypes: [, (_) => se_ListOfBackendAPIAuthType(_, context), `AdditionalAuthTypes`],
2476
+ apiName: [, , `ApiName`],
2477
+ conflictResolution: [, (_) => se_BackendAPIConflictResolution(_, context), `ConflictResolution`],
2478
+ defaultAuthType: [, (_) => se_BackendAPIAuthType(_, context), `DefaultAuthType`],
2479
+ service: [, , `Service`],
2480
+ transformSchema: [, , `TransformSchema`]
2481
+ });
2482
+ }, "se_BackendAPIResourceConfig");
2483
+ var se_BackendAuthAppleProviderConfig = /* @__PURE__ */ __name((input, context) => {
2484
+ return (0, import_smithy_client.take)(input, {
2485
+ client_id: [, , `ClientId`],
2486
+ key_id: [, , `KeyId`],
2487
+ private_key: [, , `PrivateKey`],
2488
+ team_id: [, , `TeamId`]
2489
+ });
2490
+ }, "se_BackendAuthAppleProviderConfig");
2491
+ var se_BackendAuthSocialProviderConfig = /* @__PURE__ */ __name((input, context) => {
2492
+ return (0, import_smithy_client.take)(input, {
2493
+ client_id: [, , `ClientId`],
2494
+ client_secret: [, , `ClientSecret`]
2495
+ });
2496
+ }, "se_BackendAuthSocialProviderConfig");
2497
+ var se_BackendStoragePermissions = /* @__PURE__ */ __name((input, context) => {
2498
+ return (0, import_smithy_client.take)(input, {
2499
+ authenticated: [, import_smithy_client._json, `Authenticated`],
2500
+ unAuthenticated: [, import_smithy_client._json, `UnAuthenticated`]
2501
+ });
2502
+ }, "se_BackendStoragePermissions");
2503
+ var se_CreateBackendAuthForgotPasswordConfig = /* @__PURE__ */ __name((input, context) => {
2504
+ return (0, import_smithy_client.take)(input, {
2505
+ deliveryMethod: [, , `DeliveryMethod`],
2506
+ emailSettings: [, (_) => se_EmailSettings(_, context), `EmailSettings`],
2507
+ smsSettings: [, (_) => se_SmsSettings(_, context), `SmsSettings`]
2508
+ });
2509
+ }, "se_CreateBackendAuthForgotPasswordConfig");
2510
+ var se_CreateBackendAuthIdentityPoolConfig = /* @__PURE__ */ __name((input, context) => {
2511
+ return (0, import_smithy_client.take)(input, {
2512
+ identityPoolName: [, , `IdentityPoolName`],
2513
+ unauthenticatedLogin: [, , `UnauthenticatedLogin`]
2514
+ });
2515
+ }, "se_CreateBackendAuthIdentityPoolConfig");
2516
+ var se_CreateBackendAuthMFAConfig = /* @__PURE__ */ __name((input, context) => {
2517
+ return (0, import_smithy_client.take)(input, {
2518
+ MFAMode: [],
2519
+ settings: [, (_) => se_Settings(_, context), `Settings`]
2520
+ });
2521
+ }, "se_CreateBackendAuthMFAConfig");
2522
+ var se_CreateBackendAuthOAuthConfig = /* @__PURE__ */ __name((input, context) => {
2523
+ return (0, import_smithy_client.take)(input, {
2524
+ domainPrefix: [, , `DomainPrefix`],
2525
+ oAuthGrantType: [, , `OAuthGrantType`],
2526
+ oAuthScopes: [, import_smithy_client._json, `OAuthScopes`],
2527
+ redirectSignInURIs: [, import_smithy_client._json, `RedirectSignInURIs`],
2528
+ redirectSignOutURIs: [, import_smithy_client._json, `RedirectSignOutURIs`],
2529
+ socialProviderSettings: [, (_) => se_SocialProviderSettings(_, context), `SocialProviderSettings`]
2530
+ });
2531
+ }, "se_CreateBackendAuthOAuthConfig");
2532
+ var se_CreateBackendAuthPasswordPolicyConfig = /* @__PURE__ */ __name((input, context) => {
2533
+ return (0, import_smithy_client.take)(input, {
2534
+ additionalConstraints: [, import_smithy_client._json, `AdditionalConstraints`],
2535
+ minimumLength: [, import_smithy_client.serializeFloat, `MinimumLength`]
2536
+ });
2537
+ }, "se_CreateBackendAuthPasswordPolicyConfig");
2538
+ var se_CreateBackendAuthResourceConfig = /* @__PURE__ */ __name((input, context) => {
2539
+ return (0, import_smithy_client.take)(input, {
2540
+ authResources: [, , `AuthResources`],
2541
+ identityPoolConfigs: [, (_) => se_CreateBackendAuthIdentityPoolConfig(_, context), `IdentityPoolConfigs`],
2542
+ service: [, , `Service`],
2543
+ userPoolConfigs: [, (_) => se_CreateBackendAuthUserPoolConfig(_, context), `UserPoolConfigs`]
2544
+ });
2545
+ }, "se_CreateBackendAuthResourceConfig");
2546
+ var se_CreateBackendAuthUserPoolConfig = /* @__PURE__ */ __name((input, context) => {
2547
+ return (0, import_smithy_client.take)(input, {
2548
+ forgotPassword: [, (_) => se_CreateBackendAuthForgotPasswordConfig(_, context), `ForgotPassword`],
2549
+ mfa: [, (_) => se_CreateBackendAuthMFAConfig(_, context), `Mfa`],
2550
+ oAuth: [, (_) => se_CreateBackendAuthOAuthConfig(_, context), `OAuth`],
2551
+ passwordPolicy: [, (_) => se_CreateBackendAuthPasswordPolicyConfig(_, context), `PasswordPolicy`],
2552
+ requiredSignUpAttributes: [, import_smithy_client._json, `RequiredSignUpAttributes`],
2553
+ signInMethod: [, , `SignInMethod`],
2554
+ userPoolName: [, , `UserPoolName`],
2555
+ verificationMessage: [, (_) => se_CreateBackendAuthVerificationMessageConfig(_, context), `VerificationMessage`]
2556
+ });
2557
+ }, "se_CreateBackendAuthUserPoolConfig");
2558
+ var se_CreateBackendAuthVerificationMessageConfig = /* @__PURE__ */ __name((input, context) => {
2559
+ return (0, import_smithy_client.take)(input, {
2560
+ deliveryMethod: [, , `DeliveryMethod`],
2561
+ emailSettings: [, (_) => se_EmailSettings(_, context), `EmailSettings`],
2562
+ smsSettings: [, (_) => se_SmsSettings(_, context), `SmsSettings`]
2563
+ });
2564
+ }, "se_CreateBackendAuthVerificationMessageConfig");
2565
+ var se_CreateBackendStorageResourceConfig = /* @__PURE__ */ __name((input, context) => {
2566
+ return (0, import_smithy_client.take)(input, {
2567
+ bucketName: [, , `BucketName`],
2568
+ permissions: [, (_) => se_BackendStoragePermissions(_, context), `Permissions`],
2569
+ serviceName: [, , `ServiceName`]
2570
+ });
2571
+ }, "se_CreateBackendStorageResourceConfig");
2572
+ var se_EmailSettings = /* @__PURE__ */ __name((input, context) => {
2573
+ return (0, import_smithy_client.take)(input, {
2574
+ emailMessage: [, , `EmailMessage`],
2575
+ emailSubject: [, , `EmailSubject`]
2576
+ });
2577
+ }, "se_EmailSettings");
2578
+ var se_ListOfBackendAPIAuthType = /* @__PURE__ */ __name((input, context) => {
2579
+ return input.filter((e) => e != null).map((entry) => {
2580
+ return se_BackendAPIAuthType(entry, context);
2581
+ });
2582
+ }, "se_ListOfBackendAPIAuthType");
2583
+ var se_LoginAuthConfigReqObj = /* @__PURE__ */ __name((input, context) => {
2584
+ return (0, import_smithy_client.take)(input, {
2585
+ aws_cognito_identity_pool_id: [, , `AwsCognitoIdentityPoolId`],
2586
+ aws_cognito_region: [, , `AwsCognitoRegion`],
2587
+ aws_user_pools_id: [, , `AwsUserPoolsId`],
2588
+ aws_user_pools_web_client_id: [, , `AwsUserPoolsWebClientId`]
2589
+ });
2590
+ }, "se_LoginAuthConfigReqObj");
2591
+ var se_Settings = /* @__PURE__ */ __name((input, context) => {
2592
+ return (0, import_smithy_client.take)(input, {
2593
+ mfaTypes: [, import_smithy_client._json, `MfaTypes`],
2594
+ smsMessage: [, , `SmsMessage`]
2595
+ });
2596
+ }, "se_Settings");
2597
+ var se_SmsSettings = /* @__PURE__ */ __name((input, context) => {
2598
+ return (0, import_smithy_client.take)(input, {
2599
+ smsMessage: [, , `SmsMessage`]
2600
+ });
2601
+ }, "se_SmsSettings");
2602
+ var se_SocialProviderSettings = /* @__PURE__ */ __name((input, context) => {
2603
+ return (0, import_smithy_client.take)(input, {
2604
+ Facebook: (_) => se_BackendAuthSocialProviderConfig(_, context),
2605
+ Google: (_) => se_BackendAuthSocialProviderConfig(_, context),
2606
+ LoginWithAmazon: (_) => se_BackendAuthSocialProviderConfig(_, context),
2607
+ SignInWithApple: (_) => se_BackendAuthAppleProviderConfig(_, context)
2608
+ });
2609
+ }, "se_SocialProviderSettings");
2610
+ var se_UpdateBackendAuthForgotPasswordConfig = /* @__PURE__ */ __name((input, context) => {
2611
+ return (0, import_smithy_client.take)(input, {
2612
+ deliveryMethod: [, , `DeliveryMethod`],
2613
+ emailSettings: [, (_) => se_EmailSettings(_, context), `EmailSettings`],
2614
+ smsSettings: [, (_) => se_SmsSettings(_, context), `SmsSettings`]
2615
+ });
2616
+ }, "se_UpdateBackendAuthForgotPasswordConfig");
2617
+ var se_UpdateBackendAuthIdentityPoolConfig = /* @__PURE__ */ __name((input, context) => {
2618
+ return (0, import_smithy_client.take)(input, {
2619
+ unauthenticatedLogin: [, , `UnauthenticatedLogin`]
2620
+ });
2621
+ }, "se_UpdateBackendAuthIdentityPoolConfig");
2622
+ var se_UpdateBackendAuthMFAConfig = /* @__PURE__ */ __name((input, context) => {
2623
+ return (0, import_smithy_client.take)(input, {
2624
+ MFAMode: [],
2625
+ settings: [, (_) => se_Settings(_, context), `Settings`]
2626
+ });
2627
+ }, "se_UpdateBackendAuthMFAConfig");
2628
+ var se_UpdateBackendAuthOAuthConfig = /* @__PURE__ */ __name((input, context) => {
2629
+ return (0, import_smithy_client.take)(input, {
2630
+ domainPrefix: [, , `DomainPrefix`],
2631
+ oAuthGrantType: [, , `OAuthGrantType`],
2632
+ oAuthScopes: [, import_smithy_client._json, `OAuthScopes`],
2633
+ redirectSignInURIs: [, import_smithy_client._json, `RedirectSignInURIs`],
2634
+ redirectSignOutURIs: [, import_smithy_client._json, `RedirectSignOutURIs`],
2635
+ socialProviderSettings: [, (_) => se_SocialProviderSettings(_, context), `SocialProviderSettings`]
2636
+ });
2637
+ }, "se_UpdateBackendAuthOAuthConfig");
2638
+ var se_UpdateBackendAuthPasswordPolicyConfig = /* @__PURE__ */ __name((input, context) => {
2639
+ return (0, import_smithy_client.take)(input, {
2640
+ additionalConstraints: [, import_smithy_client._json, `AdditionalConstraints`],
2641
+ minimumLength: [, import_smithy_client.serializeFloat, `MinimumLength`]
2642
+ });
2643
+ }, "se_UpdateBackendAuthPasswordPolicyConfig");
2644
+ var se_UpdateBackendAuthResourceConfig = /* @__PURE__ */ __name((input, context) => {
2645
+ return (0, import_smithy_client.take)(input, {
2646
+ authResources: [, , `AuthResources`],
2647
+ identityPoolConfigs: [, (_) => se_UpdateBackendAuthIdentityPoolConfig(_, context), `IdentityPoolConfigs`],
2648
+ service: [, , `Service`],
2649
+ userPoolConfigs: [, (_) => se_UpdateBackendAuthUserPoolConfig(_, context), `UserPoolConfigs`]
2650
+ });
2651
+ }, "se_UpdateBackendAuthResourceConfig");
2652
+ var se_UpdateBackendAuthUserPoolConfig = /* @__PURE__ */ __name((input, context) => {
2653
+ return (0, import_smithy_client.take)(input, {
2654
+ forgotPassword: [, (_) => se_UpdateBackendAuthForgotPasswordConfig(_, context), `ForgotPassword`],
2655
+ mfa: [, (_) => se_UpdateBackendAuthMFAConfig(_, context), `Mfa`],
2656
+ oAuth: [, (_) => se_UpdateBackendAuthOAuthConfig(_, context), `OAuth`],
2657
+ passwordPolicy: [, (_) => se_UpdateBackendAuthPasswordPolicyConfig(_, context), `PasswordPolicy`],
2658
+ verificationMessage: [, (_) => se_UpdateBackendAuthVerificationMessageConfig(_, context), `VerificationMessage`]
2659
+ });
2660
+ }, "se_UpdateBackendAuthUserPoolConfig");
2661
+ var se_UpdateBackendAuthVerificationMessageConfig = /* @__PURE__ */ __name((input, context) => {
2662
+ return (0, import_smithy_client.take)(input, {
2663
+ deliveryMethod: [, , `DeliveryMethod`],
2664
+ emailSettings: [, (_) => se_EmailSettings(_, context), `EmailSettings`],
2665
+ smsSettings: [, (_) => se_SmsSettings(_, context), `SmsSettings`]
2666
+ });
2667
+ }, "se_UpdateBackendAuthVerificationMessageConfig");
2668
+ var se_UpdateBackendStorageResourceConfig = /* @__PURE__ */ __name((input, context) => {
2669
+ return (0, import_smithy_client.take)(input, {
2670
+ permissions: [, (_) => se_BackendStoragePermissions(_, context), `Permissions`],
2671
+ serviceName: [, , `ServiceName`]
2672
+ });
2673
+ }, "se_UpdateBackendStorageResourceConfig");
2674
+ var de_BackendAPIAppSyncAuthSettings = /* @__PURE__ */ __name((output, context) => {
2675
+ return (0, import_smithy_client.take)(output, {
2676
+ CognitoUserPoolId: [, import_smithy_client.expectString, `cognitoUserPoolId`],
2677
+ Description: [, import_smithy_client.expectString, `description`],
2678
+ ExpirationTime: [, import_smithy_client.limitedParseDouble, `expirationTime`],
2679
+ OpenIDAuthTTL: [, import_smithy_client.expectString, `openIDAuthTTL`],
2680
+ OpenIDClientId: [, import_smithy_client.expectString, `openIDClientId`],
2681
+ OpenIDIatTTL: [, import_smithy_client.expectString, `openIDIatTTL`],
2682
+ OpenIDIssueURL: [, import_smithy_client.expectString, `openIDIssueURL`],
2683
+ OpenIDProviderName: [, import_smithy_client.expectString, `openIDProviderName`]
2684
+ });
2685
+ }, "de_BackendAPIAppSyncAuthSettings");
2686
+ var de_BackendAPIAuthType = /* @__PURE__ */ __name((output, context) => {
2687
+ return (0, import_smithy_client.take)(output, {
2688
+ Mode: [, import_smithy_client.expectString, `mode`],
2689
+ Settings: [, (_) => de_BackendAPIAppSyncAuthSettings(_, context), `settings`]
2690
+ });
2691
+ }, "de_BackendAPIAuthType");
2692
+ var de_BackendAPIConflictResolution = /* @__PURE__ */ __name((output, context) => {
2693
+ return (0, import_smithy_client.take)(output, {
2694
+ ResolutionStrategy: [, import_smithy_client.expectString, `resolutionStrategy`]
2695
+ });
2696
+ }, "de_BackendAPIConflictResolution");
2697
+ var de_BackendAPIResourceConfig = /* @__PURE__ */ __name((output, context) => {
2698
+ return (0, import_smithy_client.take)(output, {
2699
+ AdditionalAuthTypes: [, (_) => de_ListOfBackendAPIAuthType(_, context), `additionalAuthTypes`],
2700
+ ApiName: [, import_smithy_client.expectString, `apiName`],
2701
+ ConflictResolution: [, (_) => de_BackendAPIConflictResolution(_, context), `conflictResolution`],
2702
+ DefaultAuthType: [, (_) => de_BackendAPIAuthType(_, context), `defaultAuthType`],
2703
+ Service: [, import_smithy_client.expectString, `service`],
2704
+ TransformSchema: [, import_smithy_client.expectString, `transformSchema`]
2705
+ });
2706
+ }, "de_BackendAPIResourceConfig");
2707
+ var de_BackendAuthAppleProviderConfig = /* @__PURE__ */ __name((output, context) => {
2708
+ return (0, import_smithy_client.take)(output, {
2709
+ ClientId: [, import_smithy_client.expectString, `client_id`],
2710
+ KeyId: [, import_smithy_client.expectString, `key_id`],
2711
+ PrivateKey: [, import_smithy_client.expectString, `private_key`],
2712
+ TeamId: [, import_smithy_client.expectString, `team_id`]
2713
+ });
2714
+ }, "de_BackendAuthAppleProviderConfig");
2715
+ var de_BackendAuthSocialProviderConfig = /* @__PURE__ */ __name((output, context) => {
2716
+ return (0, import_smithy_client.take)(output, {
2717
+ ClientId: [, import_smithy_client.expectString, `client_id`],
2718
+ ClientSecret: [, import_smithy_client.expectString, `client_secret`]
2719
+ });
2720
+ }, "de_BackendAuthSocialProviderConfig");
2721
+ var de_BackendJobRespObj = /* @__PURE__ */ __name((output, context) => {
2722
+ return (0, import_smithy_client.take)(output, {
2723
+ AppId: [, import_smithy_client.expectString, `appId`],
2724
+ BackendEnvironmentName: [, import_smithy_client.expectString, `backendEnvironmentName`],
2725
+ CreateTime: [, import_smithy_client.expectString, `createTime`],
2726
+ Error: [, import_smithy_client.expectString, `error`],
2727
+ JobId: [, import_smithy_client.expectString, `jobId`],
2728
+ Operation: [, import_smithy_client.expectString, `operation`],
2729
+ Status: [, import_smithy_client.expectString, `status`],
2730
+ UpdateTime: [, import_smithy_client.expectString, `updateTime`]
2731
+ });
2732
+ }, "de_BackendJobRespObj");
2733
+ var de_BackendStoragePermissions = /* @__PURE__ */ __name((output, context) => {
2734
+ return (0, import_smithy_client.take)(output, {
2735
+ Authenticated: [, import_smithy_client._json, `authenticated`],
2736
+ UnAuthenticated: [, import_smithy_client._json, `unAuthenticated`]
2737
+ });
2738
+ }, "de_BackendStoragePermissions");
2739
+ var de_CreateBackendAuthForgotPasswordConfig = /* @__PURE__ */ __name((output, context) => {
2740
+ return (0, import_smithy_client.take)(output, {
2741
+ DeliveryMethod: [, import_smithy_client.expectString, `deliveryMethod`],
2742
+ EmailSettings: [, (_) => de_EmailSettings(_, context), `emailSettings`],
2743
+ SmsSettings: [, (_) => de_SmsSettings(_, context), `smsSettings`]
2744
+ });
2745
+ }, "de_CreateBackendAuthForgotPasswordConfig");
2746
+ var de_CreateBackendAuthIdentityPoolConfig = /* @__PURE__ */ __name((output, context) => {
2747
+ return (0, import_smithy_client.take)(output, {
2748
+ IdentityPoolName: [, import_smithy_client.expectString, `identityPoolName`],
2749
+ UnauthenticatedLogin: [, import_smithy_client.expectBoolean, `unauthenticatedLogin`]
2750
+ });
2751
+ }, "de_CreateBackendAuthIdentityPoolConfig");
2752
+ var de_CreateBackendAuthMFAConfig = /* @__PURE__ */ __name((output, context) => {
2753
+ return (0, import_smithy_client.take)(output, {
2754
+ MFAMode: import_smithy_client.expectString,
2755
+ Settings: [, (_) => de_Settings(_, context), `settings`]
2756
+ });
2757
+ }, "de_CreateBackendAuthMFAConfig");
2758
+ var de_CreateBackendAuthOAuthConfig = /* @__PURE__ */ __name((output, context) => {
2759
+ return (0, import_smithy_client.take)(output, {
2760
+ DomainPrefix: [, import_smithy_client.expectString, `domainPrefix`],
2761
+ OAuthGrantType: [, import_smithy_client.expectString, `oAuthGrantType`],
2762
+ OAuthScopes: [, import_smithy_client._json, `oAuthScopes`],
2763
+ RedirectSignInURIs: [, import_smithy_client._json, `redirectSignInURIs`],
2764
+ RedirectSignOutURIs: [, import_smithy_client._json, `redirectSignOutURIs`],
2765
+ SocialProviderSettings: [, (_) => de_SocialProviderSettings(_, context), `socialProviderSettings`]
2766
+ });
2767
+ }, "de_CreateBackendAuthOAuthConfig");
2768
+ var de_CreateBackendAuthPasswordPolicyConfig = /* @__PURE__ */ __name((output, context) => {
2769
+ return (0, import_smithy_client.take)(output, {
2770
+ AdditionalConstraints: [, import_smithy_client._json, `additionalConstraints`],
2771
+ MinimumLength: [, import_smithy_client.limitedParseDouble, `minimumLength`]
2772
+ });
2773
+ }, "de_CreateBackendAuthPasswordPolicyConfig");
2774
+ var de_CreateBackendAuthResourceConfig = /* @__PURE__ */ __name((output, context) => {
2775
+ return (0, import_smithy_client.take)(output, {
2776
+ AuthResources: [, import_smithy_client.expectString, `authResources`],
2777
+ IdentityPoolConfigs: [, (_) => de_CreateBackendAuthIdentityPoolConfig(_, context), `identityPoolConfigs`],
2778
+ Service: [, import_smithy_client.expectString, `service`],
2779
+ UserPoolConfigs: [, (_) => de_CreateBackendAuthUserPoolConfig(_, context), `userPoolConfigs`]
2780
+ });
2781
+ }, "de_CreateBackendAuthResourceConfig");
2782
+ var de_CreateBackendAuthUserPoolConfig = /* @__PURE__ */ __name((output, context) => {
2783
+ return (0, import_smithy_client.take)(output, {
2784
+ ForgotPassword: [, (_) => de_CreateBackendAuthForgotPasswordConfig(_, context), `forgotPassword`],
2785
+ Mfa: [, (_) => de_CreateBackendAuthMFAConfig(_, context), `mfa`],
2786
+ OAuth: [, (_) => de_CreateBackendAuthOAuthConfig(_, context), `oAuth`],
2787
+ PasswordPolicy: [, (_) => de_CreateBackendAuthPasswordPolicyConfig(_, context), `passwordPolicy`],
2788
+ RequiredSignUpAttributes: [, import_smithy_client._json, `requiredSignUpAttributes`],
2789
+ SignInMethod: [, import_smithy_client.expectString, `signInMethod`],
2790
+ UserPoolName: [, import_smithy_client.expectString, `userPoolName`],
2791
+ VerificationMessage: [
2792
+ ,
2793
+ (_) => de_CreateBackendAuthVerificationMessageConfig(_, context),
2794
+ `verificationMessage`
2795
+ ]
2796
+ });
2797
+ }, "de_CreateBackendAuthUserPoolConfig");
2798
+ var de_CreateBackendAuthVerificationMessageConfig = /* @__PURE__ */ __name((output, context) => {
2799
+ return (0, import_smithy_client.take)(output, {
2800
+ DeliveryMethod: [, import_smithy_client.expectString, `deliveryMethod`],
2801
+ EmailSettings: [, (_) => de_EmailSettings(_, context), `emailSettings`],
2802
+ SmsSettings: [, (_) => de_SmsSettings(_, context), `smsSettings`]
2803
+ });
2804
+ }, "de_CreateBackendAuthVerificationMessageConfig");
2805
+ var de_EmailSettings = /* @__PURE__ */ __name((output, context) => {
2806
+ return (0, import_smithy_client.take)(output, {
2807
+ EmailMessage: [, import_smithy_client.expectString, `emailMessage`],
2808
+ EmailSubject: [, import_smithy_client.expectString, `emailSubject`]
2809
+ });
2810
+ }, "de_EmailSettings");
2811
+ var de_GetBackendStorageResourceConfig = /* @__PURE__ */ __name((output, context) => {
2812
+ return (0, import_smithy_client.take)(output, {
2813
+ BucketName: [, import_smithy_client.expectString, `bucketName`],
2814
+ Imported: [, import_smithy_client.expectBoolean, `imported`],
2815
+ Permissions: [, (_) => de_BackendStoragePermissions(_, context), `permissions`],
2816
+ ServiceName: [, import_smithy_client.expectString, `serviceName`]
2817
+ });
2818
+ }, "de_GetBackendStorageResourceConfig");
2819
+ var de_ListOfBackendAPIAuthType = /* @__PURE__ */ __name((output, context) => {
2820
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2821
+ return de_BackendAPIAuthType(entry, context);
2822
+ });
2823
+ return retVal;
2824
+ }, "de_ListOfBackendAPIAuthType");
2825
+ var de_ListOfBackendJobRespObj = /* @__PURE__ */ __name((output, context) => {
2826
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2827
+ return de_BackendJobRespObj(entry, context);
2828
+ });
2829
+ return retVal;
2830
+ }, "de_ListOfBackendJobRespObj");
2831
+ var de_ListOfS3BucketInfo = /* @__PURE__ */ __name((output, context) => {
2832
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2833
+ return de_S3BucketInfo(entry, context);
2834
+ });
2835
+ return retVal;
2836
+ }, "de_ListOfS3BucketInfo");
2837
+ var de_LoginAuthConfigReqObj = /* @__PURE__ */ __name((output, context) => {
2838
+ return (0, import_smithy_client.take)(output, {
2839
+ AwsCognitoIdentityPoolId: [, import_smithy_client.expectString, `aws_cognito_identity_pool_id`],
2840
+ AwsCognitoRegion: [, import_smithy_client.expectString, `aws_cognito_region`],
2841
+ AwsUserPoolsId: [, import_smithy_client.expectString, `aws_user_pools_id`],
2842
+ AwsUserPoolsWebClientId: [, import_smithy_client.expectString, `aws_user_pools_web_client_id`]
2843
+ });
2844
+ }, "de_LoginAuthConfigReqObj");
2845
+ var de_S3BucketInfo = /* @__PURE__ */ __name((output, context) => {
2846
+ return (0, import_smithy_client.take)(output, {
2847
+ CreationDate: [, import_smithy_client.expectString, `creationDate`],
2848
+ Name: [, import_smithy_client.expectString, `name`]
2849
+ });
2850
+ }, "de_S3BucketInfo");
2851
+ var de_Settings = /* @__PURE__ */ __name((output, context) => {
2852
+ return (0, import_smithy_client.take)(output, {
2853
+ MfaTypes: [, import_smithy_client._json, `mfaTypes`],
2854
+ SmsMessage: [, import_smithy_client.expectString, `smsMessage`]
2855
+ });
2856
+ }, "de_Settings");
2857
+ var de_SmsSettings = /* @__PURE__ */ __name((output, context) => {
2858
+ return (0, import_smithy_client.take)(output, {
2859
+ SmsMessage: [, import_smithy_client.expectString, `smsMessage`]
2860
+ });
2861
+ }, "de_SmsSettings");
2862
+ var de_SocialProviderSettings = /* @__PURE__ */ __name((output, context) => {
2863
+ return (0, import_smithy_client.take)(output, {
2864
+ Facebook: (_) => de_BackendAuthSocialProviderConfig(_, context),
2865
+ Google: (_) => de_BackendAuthSocialProviderConfig(_, context),
2866
+ LoginWithAmazon: (_) => de_BackendAuthSocialProviderConfig(_, context),
2867
+ SignInWithApple: (_) => de_BackendAuthAppleProviderConfig(_, context)
2868
+ });
2869
+ }, "de_SocialProviderSettings");
2870
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2871
+ httpStatusCode: output.statusCode,
2872
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2873
+ extendedRequestId: output.headers["x-amz-id-2"],
2874
+ cfId: output.headers["x-amz-cf-id"]
2875
+ }), "deserializeMetadata");
2876
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2877
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2878
+ if (encoded.length) {
2879
+ return JSON.parse(encoded);
2880
+ }
2881
+ return {};
2882
+ }), "parseBody");
2883
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2884
+ const value = await parseBody(errorBody, context);
2885
+ value.message = value.message ?? value.Message;
2886
+ return value;
2887
+ }, "parseErrorBody");
2888
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2889
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2890
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2891
+ let cleanValue = rawValue;
2892
+ if (typeof cleanValue === "number") {
2893
+ cleanValue = cleanValue.toString();
2894
+ }
2895
+ if (cleanValue.indexOf(",") >= 0) {
2896
+ cleanValue = cleanValue.split(",")[0];
2897
+ }
2898
+ if (cleanValue.indexOf(":") >= 0) {
2899
+ cleanValue = cleanValue.split(":")[0];
2900
+ }
2901
+ if (cleanValue.indexOf("#") >= 0) {
2902
+ cleanValue = cleanValue.split("#")[1];
2903
+ }
2904
+ return cleanValue;
2905
+ }, "sanitizeErrorCode");
2906
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2907
+ if (headerKey !== void 0) {
2908
+ return sanitizeErrorCode(output.headers[headerKey]);
2909
+ }
2910
+ if (data.code !== void 0) {
2911
+ return sanitizeErrorCode(data.code);
2912
+ }
2913
+ if (data["__type"] !== void 0) {
2914
+ return sanitizeErrorCode(data["__type"]);
2915
+ }
2916
+ }, "loadRestJsonErrorCode");
2917
+
2918
+ // src/commands/CloneBackendCommand.ts
2919
+ var _CloneBackendCommand = class _CloneBackendCommand extends import_smithy_client.Command.classBuilder().ep({
2920
+ ...commonParams
2921
+ }).m(function(Command, cs, config, o) {
2922
+ return [
2923
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2924
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2925
+ ];
2926
+ }).s("AmplifyBackend", "CloneBackend", {}).n("AmplifyBackendClient", "CloneBackendCommand").f(void 0, void 0).ser(se_CloneBackendCommand).de(de_CloneBackendCommand).build() {
2927
+ };
2928
+ __name(_CloneBackendCommand, "CloneBackendCommand");
2929
+ var CloneBackendCommand = _CloneBackendCommand;
2930
+
2931
+ // src/commands/CreateBackendAPICommand.ts
2932
+
2933
+
2934
+
2935
+
2936
+ var _CreateBackendAPICommand = class _CreateBackendAPICommand extends import_smithy_client.Command.classBuilder().ep({
2937
+ ...commonParams
2938
+ }).m(function(Command, cs, config, o) {
2939
+ return [
2940
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2941
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2942
+ ];
2943
+ }).s("AmplifyBackend", "CreateBackendAPI", {}).n("AmplifyBackendClient", "CreateBackendAPICommand").f(void 0, void 0).ser(se_CreateBackendAPICommand).de(de_CreateBackendAPICommand).build() {
2944
+ };
2945
+ __name(_CreateBackendAPICommand, "CreateBackendAPICommand");
2946
+ var CreateBackendAPICommand = _CreateBackendAPICommand;
2947
+
2948
+ // src/commands/CreateBackendAuthCommand.ts
2949
+
2950
+
2951
+
2952
+
2953
+ var _CreateBackendAuthCommand = class _CreateBackendAuthCommand extends import_smithy_client.Command.classBuilder().ep({
2954
+ ...commonParams
2955
+ }).m(function(Command, cs, config, o) {
2956
+ return [
2957
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2958
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2959
+ ];
2960
+ }).s("AmplifyBackend", "CreateBackendAuth", {}).n("AmplifyBackendClient", "CreateBackendAuthCommand").f(CreateBackendAuthRequestFilterSensitiveLog, void 0).ser(se_CreateBackendAuthCommand).de(de_CreateBackendAuthCommand).build() {
2961
+ };
2962
+ __name(_CreateBackendAuthCommand, "CreateBackendAuthCommand");
2963
+ var CreateBackendAuthCommand = _CreateBackendAuthCommand;
2964
+
2965
+ // src/commands/CreateBackendCommand.ts
2966
+
2967
+
2968
+
2969
+
2970
+ var _CreateBackendCommand = class _CreateBackendCommand extends import_smithy_client.Command.classBuilder().ep({
2971
+ ...commonParams
2972
+ }).m(function(Command, cs, config, o) {
2973
+ return [
2974
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2975
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2976
+ ];
2977
+ }).s("AmplifyBackend", "CreateBackend", {}).n("AmplifyBackendClient", "CreateBackendCommand").f(void 0, void 0).ser(se_CreateBackendCommand).de(de_CreateBackendCommand).build() {
2978
+ };
2979
+ __name(_CreateBackendCommand, "CreateBackendCommand");
2980
+ var CreateBackendCommand = _CreateBackendCommand;
2981
+
2982
+ // src/commands/CreateBackendConfigCommand.ts
2983
+
2984
+
2985
+
2986
+
2987
+ var _CreateBackendConfigCommand = class _CreateBackendConfigCommand extends import_smithy_client.Command.classBuilder().ep({
2988
+ ...commonParams
2989
+ }).m(function(Command, cs, config, o) {
2990
+ return [
2991
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2992
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2993
+ ];
2994
+ }).s("AmplifyBackend", "CreateBackendConfig", {}).n("AmplifyBackendClient", "CreateBackendConfigCommand").f(void 0, void 0).ser(se_CreateBackendConfigCommand).de(de_CreateBackendConfigCommand).build() {
2995
+ };
2996
+ __name(_CreateBackendConfigCommand, "CreateBackendConfigCommand");
2997
+ var CreateBackendConfigCommand = _CreateBackendConfigCommand;
2998
+
2999
+ // src/commands/CreateBackendStorageCommand.ts
3000
+
3001
+
3002
+
3003
+
3004
+ var _CreateBackendStorageCommand = class _CreateBackendStorageCommand extends import_smithy_client.Command.classBuilder().ep({
3005
+ ...commonParams
3006
+ }).m(function(Command, cs, config, o) {
3007
+ return [
3008
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3009
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3010
+ ];
3011
+ }).s("AmplifyBackend", "CreateBackendStorage", {}).n("AmplifyBackendClient", "CreateBackendStorageCommand").f(void 0, void 0).ser(se_CreateBackendStorageCommand).de(de_CreateBackendStorageCommand).build() {
3012
+ };
3013
+ __name(_CreateBackendStorageCommand, "CreateBackendStorageCommand");
3014
+ var CreateBackendStorageCommand = _CreateBackendStorageCommand;
3015
+
3016
+ // src/commands/CreateTokenCommand.ts
3017
+
3018
+
3019
+
3020
+
3021
+ var _CreateTokenCommand = class _CreateTokenCommand extends import_smithy_client.Command.classBuilder().ep({
3022
+ ...commonParams
3023
+ }).m(function(Command, cs, config, o) {
3024
+ return [
3025
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3026
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3027
+ ];
3028
+ }).s("AmplifyBackend", "CreateToken", {}).n("AmplifyBackendClient", "CreateTokenCommand").f(void 0, void 0).ser(se_CreateTokenCommand).de(de_CreateTokenCommand).build() {
3029
+ };
3030
+ __name(_CreateTokenCommand, "CreateTokenCommand");
3031
+ var CreateTokenCommand = _CreateTokenCommand;
3032
+
3033
+ // src/commands/DeleteBackendAPICommand.ts
3034
+
3035
+
3036
+
3037
+
3038
+ var _DeleteBackendAPICommand = class _DeleteBackendAPICommand extends import_smithy_client.Command.classBuilder().ep({
3039
+ ...commonParams
3040
+ }).m(function(Command, cs, config, o) {
3041
+ return [
3042
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3043
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3044
+ ];
3045
+ }).s("AmplifyBackend", "DeleteBackendAPI", {}).n("AmplifyBackendClient", "DeleteBackendAPICommand").f(void 0, void 0).ser(se_DeleteBackendAPICommand).de(de_DeleteBackendAPICommand).build() {
3046
+ };
3047
+ __name(_DeleteBackendAPICommand, "DeleteBackendAPICommand");
3048
+ var DeleteBackendAPICommand = _DeleteBackendAPICommand;
3049
+
3050
+ // src/commands/DeleteBackendAuthCommand.ts
3051
+
3052
+
3053
+
3054
+
3055
+ var _DeleteBackendAuthCommand = class _DeleteBackendAuthCommand extends import_smithy_client.Command.classBuilder().ep({
3056
+ ...commonParams
3057
+ }).m(function(Command, cs, config, o) {
3058
+ return [
3059
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3060
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3061
+ ];
3062
+ }).s("AmplifyBackend", "DeleteBackendAuth", {}).n("AmplifyBackendClient", "DeleteBackendAuthCommand").f(void 0, void 0).ser(se_DeleteBackendAuthCommand).de(de_DeleteBackendAuthCommand).build() {
3063
+ };
3064
+ __name(_DeleteBackendAuthCommand, "DeleteBackendAuthCommand");
3065
+ var DeleteBackendAuthCommand = _DeleteBackendAuthCommand;
3066
+
3067
+ // src/commands/DeleteBackendCommand.ts
3068
+
3069
+
3070
+
3071
+
3072
+ var _DeleteBackendCommand = class _DeleteBackendCommand extends import_smithy_client.Command.classBuilder().ep({
3073
+ ...commonParams
3074
+ }).m(function(Command, cs, config, o) {
3075
+ return [
3076
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3077
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3078
+ ];
3079
+ }).s("AmplifyBackend", "DeleteBackend", {}).n("AmplifyBackendClient", "DeleteBackendCommand").f(void 0, void 0).ser(se_DeleteBackendCommand).de(de_DeleteBackendCommand).build() {
3080
+ };
3081
+ __name(_DeleteBackendCommand, "DeleteBackendCommand");
3082
+ var DeleteBackendCommand = _DeleteBackendCommand;
3083
+
3084
+ // src/commands/DeleteBackendStorageCommand.ts
3085
+
3086
+
3087
+
3088
+
3089
+ var _DeleteBackendStorageCommand = class _DeleteBackendStorageCommand extends import_smithy_client.Command.classBuilder().ep({
3090
+ ...commonParams
3091
+ }).m(function(Command, cs, config, o) {
3092
+ return [
3093
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3094
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3095
+ ];
3096
+ }).s("AmplifyBackend", "DeleteBackendStorage", {}).n("AmplifyBackendClient", "DeleteBackendStorageCommand").f(void 0, void 0).ser(se_DeleteBackendStorageCommand).de(de_DeleteBackendStorageCommand).build() {
3097
+ };
3098
+ __name(_DeleteBackendStorageCommand, "DeleteBackendStorageCommand");
3099
+ var DeleteBackendStorageCommand = _DeleteBackendStorageCommand;
3100
+
3101
+ // src/commands/DeleteTokenCommand.ts
3102
+
3103
+
3104
+
3105
+
3106
+ var _DeleteTokenCommand = class _DeleteTokenCommand extends import_smithy_client.Command.classBuilder().ep({
3107
+ ...commonParams
3108
+ }).m(function(Command, cs, config, o) {
3109
+ return [
3110
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3111
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3112
+ ];
3113
+ }).s("AmplifyBackend", "DeleteToken", {}).n("AmplifyBackendClient", "DeleteTokenCommand").f(void 0, void 0).ser(se_DeleteTokenCommand).de(de_DeleteTokenCommand).build() {
3114
+ };
3115
+ __name(_DeleteTokenCommand, "DeleteTokenCommand");
3116
+ var DeleteTokenCommand = _DeleteTokenCommand;
3117
+
3118
+ // src/commands/GenerateBackendAPIModelsCommand.ts
3119
+
3120
+
3121
+
3122
+
3123
+ var _GenerateBackendAPIModelsCommand = class _GenerateBackendAPIModelsCommand extends import_smithy_client.Command.classBuilder().ep({
3124
+ ...commonParams
3125
+ }).m(function(Command, cs, config, o) {
3126
+ return [
3127
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3128
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3129
+ ];
3130
+ }).s("AmplifyBackend", "GenerateBackendAPIModels", {}).n("AmplifyBackendClient", "GenerateBackendAPIModelsCommand").f(void 0, void 0).ser(se_GenerateBackendAPIModelsCommand).de(de_GenerateBackendAPIModelsCommand).build() {
3131
+ };
3132
+ __name(_GenerateBackendAPIModelsCommand, "GenerateBackendAPIModelsCommand");
3133
+ var GenerateBackendAPIModelsCommand = _GenerateBackendAPIModelsCommand;
3134
+
3135
+ // src/commands/GetBackendAPICommand.ts
3136
+
3137
+
3138
+
3139
+
3140
+ var _GetBackendAPICommand = class _GetBackendAPICommand extends import_smithy_client.Command.classBuilder().ep({
3141
+ ...commonParams
3142
+ }).m(function(Command, cs, config, o) {
3143
+ return [
3144
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3145
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3146
+ ];
3147
+ }).s("AmplifyBackend", "GetBackendAPI", {}).n("AmplifyBackendClient", "GetBackendAPICommand").f(void 0, void 0).ser(se_GetBackendAPICommand).de(de_GetBackendAPICommand).build() {
3148
+ };
3149
+ __name(_GetBackendAPICommand, "GetBackendAPICommand");
3150
+ var GetBackendAPICommand = _GetBackendAPICommand;
3151
+
3152
+ // src/commands/GetBackendAPIModelsCommand.ts
3153
+
3154
+
3155
+
3156
+
3157
+ var _GetBackendAPIModelsCommand = class _GetBackendAPIModelsCommand extends import_smithy_client.Command.classBuilder().ep({
3158
+ ...commonParams
3159
+ }).m(function(Command, cs, config, o) {
3160
+ return [
3161
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3162
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3163
+ ];
3164
+ }).s("AmplifyBackend", "GetBackendAPIModels", {}).n("AmplifyBackendClient", "GetBackendAPIModelsCommand").f(void 0, void 0).ser(se_GetBackendAPIModelsCommand).de(de_GetBackendAPIModelsCommand).build() {
3165
+ };
3166
+ __name(_GetBackendAPIModelsCommand, "GetBackendAPIModelsCommand");
3167
+ var GetBackendAPIModelsCommand = _GetBackendAPIModelsCommand;
3168
+
3169
+ // src/commands/GetBackendAuthCommand.ts
3170
+
3171
+
3172
+
3173
+
3174
+ var _GetBackendAuthCommand = class _GetBackendAuthCommand extends import_smithy_client.Command.classBuilder().ep({
3175
+ ...commonParams
3176
+ }).m(function(Command, cs, config, o) {
3177
+ return [
3178
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3179
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3180
+ ];
3181
+ }).s("AmplifyBackend", "GetBackendAuth", {}).n("AmplifyBackendClient", "GetBackendAuthCommand").f(void 0, GetBackendAuthResponseFilterSensitiveLog).ser(se_GetBackendAuthCommand).de(de_GetBackendAuthCommand).build() {
3182
+ };
3183
+ __name(_GetBackendAuthCommand, "GetBackendAuthCommand");
3184
+ var GetBackendAuthCommand = _GetBackendAuthCommand;
3185
+
3186
+ // src/commands/GetBackendCommand.ts
3187
+
3188
+
3189
+
3190
+
3191
+ var _GetBackendCommand = class _GetBackendCommand extends import_smithy_client.Command.classBuilder().ep({
3192
+ ...commonParams
3193
+ }).m(function(Command, cs, config, o) {
3194
+ return [
3195
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3196
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3197
+ ];
3198
+ }).s("AmplifyBackend", "GetBackend", {}).n("AmplifyBackendClient", "GetBackendCommand").f(void 0, void 0).ser(se_GetBackendCommand).de(de_GetBackendCommand).build() {
3199
+ };
3200
+ __name(_GetBackendCommand, "GetBackendCommand");
3201
+ var GetBackendCommand = _GetBackendCommand;
3202
+
3203
+ // src/commands/GetBackendJobCommand.ts
3204
+
3205
+
3206
+
3207
+
3208
+ var _GetBackendJobCommand = class _GetBackendJobCommand extends import_smithy_client.Command.classBuilder().ep({
3209
+ ...commonParams
3210
+ }).m(function(Command, cs, config, o) {
3211
+ return [
3212
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3213
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3214
+ ];
3215
+ }).s("AmplifyBackend", "GetBackendJob", {}).n("AmplifyBackendClient", "GetBackendJobCommand").f(void 0, void 0).ser(se_GetBackendJobCommand).de(de_GetBackendJobCommand).build() {
3216
+ };
3217
+ __name(_GetBackendJobCommand, "GetBackendJobCommand");
3218
+ var GetBackendJobCommand = _GetBackendJobCommand;
3219
+
3220
+ // src/commands/GetBackendStorageCommand.ts
3221
+
3222
+
3223
+
3224
+
3225
+ var _GetBackendStorageCommand = class _GetBackendStorageCommand extends import_smithy_client.Command.classBuilder().ep({
3226
+ ...commonParams
3227
+ }).m(function(Command, cs, config, o) {
3228
+ return [
3229
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3230
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3231
+ ];
3232
+ }).s("AmplifyBackend", "GetBackendStorage", {}).n("AmplifyBackendClient", "GetBackendStorageCommand").f(void 0, void 0).ser(se_GetBackendStorageCommand).de(de_GetBackendStorageCommand).build() {
3233
+ };
3234
+ __name(_GetBackendStorageCommand, "GetBackendStorageCommand");
3235
+ var GetBackendStorageCommand = _GetBackendStorageCommand;
3236
+
3237
+ // src/commands/GetTokenCommand.ts
3238
+
3239
+
3240
+
3241
+
3242
+ var _GetTokenCommand = class _GetTokenCommand extends import_smithy_client.Command.classBuilder().ep({
3243
+ ...commonParams
3244
+ }).m(function(Command, cs, config, o) {
3245
+ return [
3246
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3247
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3248
+ ];
3249
+ }).s("AmplifyBackend", "GetToken", {}).n("AmplifyBackendClient", "GetTokenCommand").f(void 0, void 0).ser(se_GetTokenCommand).de(de_GetTokenCommand).build() {
3250
+ };
3251
+ __name(_GetTokenCommand, "GetTokenCommand");
3252
+ var GetTokenCommand = _GetTokenCommand;
3253
+
3254
+ // src/commands/ImportBackendAuthCommand.ts
3255
+
3256
+
3257
+
3258
+
3259
+ var _ImportBackendAuthCommand = class _ImportBackendAuthCommand extends import_smithy_client.Command.classBuilder().ep({
3260
+ ...commonParams
3261
+ }).m(function(Command, cs, config, o) {
3262
+ return [
3263
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3264
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3265
+ ];
3266
+ }).s("AmplifyBackend", "ImportBackendAuth", {}).n("AmplifyBackendClient", "ImportBackendAuthCommand").f(void 0, void 0).ser(se_ImportBackendAuthCommand).de(de_ImportBackendAuthCommand).build() {
3267
+ };
3268
+ __name(_ImportBackendAuthCommand, "ImportBackendAuthCommand");
3269
+ var ImportBackendAuthCommand = _ImportBackendAuthCommand;
3270
+
3271
+ // src/commands/ImportBackendStorageCommand.ts
3272
+
3273
+
3274
+
3275
+
3276
+ var _ImportBackendStorageCommand = class _ImportBackendStorageCommand extends import_smithy_client.Command.classBuilder().ep({
3277
+ ...commonParams
3278
+ }).m(function(Command, cs, config, o) {
3279
+ return [
3280
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3281
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3282
+ ];
3283
+ }).s("AmplifyBackend", "ImportBackendStorage", {}).n("AmplifyBackendClient", "ImportBackendStorageCommand").f(void 0, void 0).ser(se_ImportBackendStorageCommand).de(de_ImportBackendStorageCommand).build() {
3284
+ };
3285
+ __name(_ImportBackendStorageCommand, "ImportBackendStorageCommand");
3286
+ var ImportBackendStorageCommand = _ImportBackendStorageCommand;
3287
+
3288
+ // src/commands/ListBackendJobsCommand.ts
3289
+
3290
+
3291
+
3292
+
3293
+ var _ListBackendJobsCommand = class _ListBackendJobsCommand extends import_smithy_client.Command.classBuilder().ep({
3294
+ ...commonParams
3295
+ }).m(function(Command, cs, config, o) {
3296
+ return [
3297
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3298
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3299
+ ];
3300
+ }).s("AmplifyBackend", "ListBackendJobs", {}).n("AmplifyBackendClient", "ListBackendJobsCommand").f(void 0, void 0).ser(se_ListBackendJobsCommand).de(de_ListBackendJobsCommand).build() {
3301
+ };
3302
+ __name(_ListBackendJobsCommand, "ListBackendJobsCommand");
3303
+ var ListBackendJobsCommand = _ListBackendJobsCommand;
3304
+
3305
+ // src/commands/ListS3BucketsCommand.ts
3306
+
3307
+
3308
+
3309
+
3310
+ var _ListS3BucketsCommand = class _ListS3BucketsCommand extends import_smithy_client.Command.classBuilder().ep({
3311
+ ...commonParams
3312
+ }).m(function(Command, cs, config, o) {
3313
+ return [
3314
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3315
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3316
+ ];
3317
+ }).s("AmplifyBackend", "ListS3Buckets", {}).n("AmplifyBackendClient", "ListS3BucketsCommand").f(void 0, void 0).ser(se_ListS3BucketsCommand).de(de_ListS3BucketsCommand).build() {
3318
+ };
3319
+ __name(_ListS3BucketsCommand, "ListS3BucketsCommand");
3320
+ var ListS3BucketsCommand = _ListS3BucketsCommand;
3321
+
3322
+ // src/commands/RemoveAllBackendsCommand.ts
3323
+
3324
+
3325
+
3326
+
3327
+ var _RemoveAllBackendsCommand = class _RemoveAllBackendsCommand extends import_smithy_client.Command.classBuilder().ep({
3328
+ ...commonParams
3329
+ }).m(function(Command, cs, config, o) {
3330
+ return [
3331
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3332
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3333
+ ];
3334
+ }).s("AmplifyBackend", "RemoveAllBackends", {}).n("AmplifyBackendClient", "RemoveAllBackendsCommand").f(void 0, void 0).ser(se_RemoveAllBackendsCommand).de(de_RemoveAllBackendsCommand).build() {
3335
+ };
3336
+ __name(_RemoveAllBackendsCommand, "RemoveAllBackendsCommand");
3337
+ var RemoveAllBackendsCommand = _RemoveAllBackendsCommand;
3338
+
3339
+ // src/commands/RemoveBackendConfigCommand.ts
3340
+
3341
+
3342
+
3343
+
3344
+ var _RemoveBackendConfigCommand = class _RemoveBackendConfigCommand extends import_smithy_client.Command.classBuilder().ep({
3345
+ ...commonParams
3346
+ }).m(function(Command, cs, config, o) {
3347
+ return [
3348
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3349
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3350
+ ];
3351
+ }).s("AmplifyBackend", "RemoveBackendConfig", {}).n("AmplifyBackendClient", "RemoveBackendConfigCommand").f(void 0, void 0).ser(se_RemoveBackendConfigCommand).de(de_RemoveBackendConfigCommand).build() {
3352
+ };
3353
+ __name(_RemoveBackendConfigCommand, "RemoveBackendConfigCommand");
3354
+ var RemoveBackendConfigCommand = _RemoveBackendConfigCommand;
3355
+
3356
+ // src/commands/UpdateBackendAPICommand.ts
3357
+
3358
+
3359
+
3360
+
3361
+ var _UpdateBackendAPICommand = class _UpdateBackendAPICommand extends import_smithy_client.Command.classBuilder().ep({
3362
+ ...commonParams
3363
+ }).m(function(Command, cs, config, o) {
3364
+ return [
3365
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3366
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3367
+ ];
3368
+ }).s("AmplifyBackend", "UpdateBackendAPI", {}).n("AmplifyBackendClient", "UpdateBackendAPICommand").f(void 0, void 0).ser(se_UpdateBackendAPICommand).de(de_UpdateBackendAPICommand).build() {
3369
+ };
3370
+ __name(_UpdateBackendAPICommand, "UpdateBackendAPICommand");
3371
+ var UpdateBackendAPICommand = _UpdateBackendAPICommand;
3372
+
3373
+ // src/commands/UpdateBackendAuthCommand.ts
3374
+
3375
+
3376
+
3377
+
3378
+ var _UpdateBackendAuthCommand = class _UpdateBackendAuthCommand extends import_smithy_client.Command.classBuilder().ep({
3379
+ ...commonParams
3380
+ }).m(function(Command, cs, config, o) {
3381
+ return [
3382
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3383
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3384
+ ];
3385
+ }).s("AmplifyBackend", "UpdateBackendAuth", {}).n("AmplifyBackendClient", "UpdateBackendAuthCommand").f(UpdateBackendAuthRequestFilterSensitiveLog, void 0).ser(se_UpdateBackendAuthCommand).de(de_UpdateBackendAuthCommand).build() {
3386
+ };
3387
+ __name(_UpdateBackendAuthCommand, "UpdateBackendAuthCommand");
3388
+ var UpdateBackendAuthCommand = _UpdateBackendAuthCommand;
3389
+
3390
+ // src/commands/UpdateBackendConfigCommand.ts
3391
+
3392
+
3393
+
3394
+
3395
+ var _UpdateBackendConfigCommand = class _UpdateBackendConfigCommand extends import_smithy_client.Command.classBuilder().ep({
3396
+ ...commonParams
3397
+ }).m(function(Command, cs, config, o) {
3398
+ return [
3399
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3400
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3401
+ ];
3402
+ }).s("AmplifyBackend", "UpdateBackendConfig", {}).n("AmplifyBackendClient", "UpdateBackendConfigCommand").f(void 0, void 0).ser(se_UpdateBackendConfigCommand).de(de_UpdateBackendConfigCommand).build() {
3403
+ };
3404
+ __name(_UpdateBackendConfigCommand, "UpdateBackendConfigCommand");
3405
+ var UpdateBackendConfigCommand = _UpdateBackendConfigCommand;
3406
+
3407
+ // src/commands/UpdateBackendJobCommand.ts
3408
+
3409
+
3410
+
3411
+
3412
+ var _UpdateBackendJobCommand = class _UpdateBackendJobCommand extends import_smithy_client.Command.classBuilder().ep({
3413
+ ...commonParams
3414
+ }).m(function(Command, cs, config, o) {
3415
+ return [
3416
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3417
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3418
+ ];
3419
+ }).s("AmplifyBackend", "UpdateBackendJob", {}).n("AmplifyBackendClient", "UpdateBackendJobCommand").f(void 0, void 0).ser(se_UpdateBackendJobCommand).de(de_UpdateBackendJobCommand).build() {
3420
+ };
3421
+ __name(_UpdateBackendJobCommand, "UpdateBackendJobCommand");
3422
+ var UpdateBackendJobCommand = _UpdateBackendJobCommand;
3423
+
3424
+ // src/commands/UpdateBackendStorageCommand.ts
3425
+
3426
+
3427
+
3428
+
3429
+ var _UpdateBackendStorageCommand = class _UpdateBackendStorageCommand extends import_smithy_client.Command.classBuilder().ep({
3430
+ ...commonParams
3431
+ }).m(function(Command, cs, config, o) {
3432
+ return [
3433
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3434
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3435
+ ];
3436
+ }).s("AmplifyBackend", "UpdateBackendStorage", {}).n("AmplifyBackendClient", "UpdateBackendStorageCommand").f(void 0, void 0).ser(se_UpdateBackendStorageCommand).de(de_UpdateBackendStorageCommand).build() {
3437
+ };
3438
+ __name(_UpdateBackendStorageCommand, "UpdateBackendStorageCommand");
3439
+ var UpdateBackendStorageCommand = _UpdateBackendStorageCommand;
3440
+
3441
+ // src/AmplifyBackend.ts
3442
+ var commands = {
3443
+ CloneBackendCommand,
3444
+ CreateBackendCommand,
3445
+ CreateBackendAPICommand,
3446
+ CreateBackendAuthCommand,
3447
+ CreateBackendConfigCommand,
3448
+ CreateBackendStorageCommand,
3449
+ CreateTokenCommand,
3450
+ DeleteBackendCommand,
3451
+ DeleteBackendAPICommand,
3452
+ DeleteBackendAuthCommand,
3453
+ DeleteBackendStorageCommand,
3454
+ DeleteTokenCommand,
3455
+ GenerateBackendAPIModelsCommand,
3456
+ GetBackendCommand,
3457
+ GetBackendAPICommand,
3458
+ GetBackendAPIModelsCommand,
3459
+ GetBackendAuthCommand,
3460
+ GetBackendJobCommand,
3461
+ GetBackendStorageCommand,
3462
+ GetTokenCommand,
3463
+ ImportBackendAuthCommand,
3464
+ ImportBackendStorageCommand,
3465
+ ListBackendJobsCommand,
3466
+ ListS3BucketsCommand,
3467
+ RemoveAllBackendsCommand,
3468
+ RemoveBackendConfigCommand,
3469
+ UpdateBackendAPICommand,
3470
+ UpdateBackendAuthCommand,
3471
+ UpdateBackendConfigCommand,
3472
+ UpdateBackendJobCommand,
3473
+ UpdateBackendStorageCommand
3474
+ };
3475
+ var _AmplifyBackend = class _AmplifyBackend extends AmplifyBackendClient {
3476
+ };
3477
+ __name(_AmplifyBackend, "AmplifyBackend");
3478
+ var AmplifyBackend = _AmplifyBackend;
3479
+ (0, import_smithy_client.createAggregatedClient)(commands, AmplifyBackend);
3480
+
3481
+ // src/index.ts
3482
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
3483
+ // Annotate the CommonJS export names for ESM import in node:
3484
+
3485
+ 0 && (module.exports = {
3486
+ AdditionalConstraintsElement,
3487
+ AmplifyBackend,
3488
+ AmplifyBackendClient,
3489
+ AmplifyBackendServiceException,
3490
+ AuthResources,
3491
+ AuthenticatedElement,
3492
+ BackendAuthAppleProviderConfigFilterSensitiveLog,
3493
+ BackendAuthSocialProviderConfigFilterSensitiveLog,
3494
+ BadRequestException,
3495
+ CloneBackendCommand,
3496
+ CreateBackendAPICommand,
3497
+ CreateBackendAuthCommand,
3498
+ CreateBackendAuthForgotPasswordConfigFilterSensitiveLog,
3499
+ CreateBackendAuthOAuthConfigFilterSensitiveLog,
3500
+ CreateBackendAuthRequestFilterSensitiveLog,
3501
+ CreateBackendAuthResourceConfigFilterSensitiveLog,
3502
+ CreateBackendAuthUserPoolConfigFilterSensitiveLog,
3503
+ CreateBackendAuthVerificationMessageConfigFilterSensitiveLog,
3504
+ CreateBackendCommand,
3505
+ CreateBackendConfigCommand,
3506
+ CreateBackendStorageCommand,
3507
+ CreateTokenCommand,
3508
+ DeleteBackendAPICommand,
3509
+ DeleteBackendAuthCommand,
3510
+ DeleteBackendCommand,
3511
+ DeleteBackendStorageCommand,
3512
+ DeleteTokenCommand,
3513
+ DeliveryMethod,
3514
+ EmailSettingsFilterSensitiveLog,
3515
+ GatewayTimeoutException,
3516
+ GenerateBackendAPIModelsCommand,
3517
+ GetBackendAPICommand,
3518
+ GetBackendAPIModelsCommand,
3519
+ GetBackendAuthCommand,
3520
+ GetBackendAuthResponseFilterSensitiveLog,
3521
+ GetBackendCommand,
3522
+ GetBackendJobCommand,
3523
+ GetBackendStorageCommand,
3524
+ GetTokenCommand,
3525
+ ImportBackendAuthCommand,
3526
+ ImportBackendStorageCommand,
3527
+ ListBackendJobsCommand,
3528
+ ListS3BucketsCommand,
3529
+ MFAMode,
3530
+ MfaTypesElement,
3531
+ Mode,
3532
+ NotFoundException,
3533
+ OAuthGrantType,
3534
+ OAuthScopesElement,
3535
+ RemoveAllBackendsCommand,
3536
+ RemoveBackendConfigCommand,
3537
+ RequiredSignUpAttributesElement,
3538
+ ResolutionStrategy,
3539
+ Service,
3540
+ ServiceName,
3541
+ SignInMethod,
3542
+ SmsSettingsFilterSensitiveLog,
3543
+ SocialProviderSettingsFilterSensitiveLog,
3544
+ Status,
3545
+ TooManyRequestsException,
3546
+ UnAuthenticatedElement,
3547
+ UpdateBackendAPICommand,
3548
+ UpdateBackendAuthCommand,
3549
+ UpdateBackendAuthForgotPasswordConfigFilterSensitiveLog,
3550
+ UpdateBackendAuthOAuthConfigFilterSensitiveLog,
3551
+ UpdateBackendAuthRequestFilterSensitiveLog,
3552
+ UpdateBackendAuthResourceConfigFilterSensitiveLog,
3553
+ UpdateBackendAuthUserPoolConfigFilterSensitiveLog,
3554
+ UpdateBackendAuthVerificationMessageConfigFilterSensitiveLog,
3555
+ UpdateBackendConfigCommand,
3556
+ UpdateBackendJobCommand,
3557
+ UpdateBackendStorageCommand,
3558
+ __Client
3559
+ });
3560
+