@aws-sdk/client-amplifybackend 3.1074.0 → 3.1076.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.
package/dist-cjs/index.js CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultAmplifyBackendHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CloneBackend$, CreateBackendAPI$, CreateBackendAuth$, CreateBackend$, CreateBackendConfig$, CreateBackendStorage$, CreateToken$, DeleteBackendAPI$, DeleteBackendAuth$, DeleteBackend$, DeleteBackendStorage$, DeleteToken$, GenerateBackendAPIModels$, GetBackendAPI$, GetBackendAPIModels$, GetBackendAuth$, GetBackend$, GetBackendJob$, GetBackendStorage$, GetToken$, ImportBackendAuth$, ImportBackendStorage$, ListBackendJobs$, ListS3Buckets$, RemoveAllBackends$, RemoveBackendConfig$, UpdateBackendAPI$, UpdateBackendAuth$, UpdateBackendConfig$, UpdateBackendJob$, UpdateBackendStorage$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { AmplifyBackendServiceException } = require("./models/AmplifyBackendServiceException");
18
- exports.AmplifyBackendServiceException = AmplifyBackendServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultAmplifyBackendHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "amplifybackend",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultAmplifyBackendHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,1155 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://amplifybackend-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://amplifybackend-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://amplifybackend.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://amplifybackend.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class AmplifyBackendServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, AmplifyBackendServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class BadRequestException extends AmplifyBackendServiceException {
140
+ name = "BadRequestException";
141
+ $fault = "client";
142
+ Message;
143
+ constructor(opts) {
144
+ super({
145
+ name: "BadRequestException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, BadRequestException.prototype);
150
+ this.Message = opts.Message;
151
+ }
152
+ }
153
+ class GatewayTimeoutException extends AmplifyBackendServiceException {
154
+ name = "GatewayTimeoutException";
155
+ $fault = "server";
156
+ Message;
157
+ constructor(opts) {
158
+ super({
159
+ name: "GatewayTimeoutException",
160
+ $fault: "server",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, GatewayTimeoutException.prototype);
164
+ this.Message = opts.Message;
165
+ }
166
+ }
167
+ class NotFoundException extends AmplifyBackendServiceException {
168
+ name = "NotFoundException";
169
+ $fault = "client";
170
+ Message;
171
+ ResourceType;
172
+ constructor(opts) {
173
+ super({
174
+ name: "NotFoundException",
175
+ $fault: "client",
176
+ ...opts,
177
+ });
178
+ Object.setPrototypeOf(this, NotFoundException.prototype);
179
+ this.Message = opts.Message;
180
+ this.ResourceType = opts.ResourceType;
181
+ }
182
+ }
183
+ class TooManyRequestsException extends AmplifyBackendServiceException {
184
+ name = "TooManyRequestsException";
185
+ $fault = "client";
186
+ LimitType;
187
+ Message;
188
+ constructor(opts) {
189
+ super({
190
+ name: "TooManyRequestsException",
191
+ $fault: "client",
192
+ ...opts,
193
+ });
194
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
195
+ this.LimitType = opts.LimitType;
196
+ this.Message = opts.Message;
197
+ }
198
+ }
199
+
200
+ const _A = "Authenticated";
201
+ const _AAT = "AdditionalAuthTypes";
202
+ const _AC = "AdditionalConstraints";
203
+ const _ACIPI = "AwsCognitoIdentityPoolId";
204
+ const _ACR = "AwsCognitoRegion";
205
+ const _AFF = "AmplifyFeatureFlags";
206
+ const _AI = "AppId";
207
+ const _AMC = "AmplifyMetaConfig";
208
+ const _AN = "ApiName";
209
+ const _ANp = "AppName";
210
+ const _AR = "AuthResources";
211
+ const _AUPI = "AwsUserPoolsId";
212
+ const _AUPWCI = "AwsUserPoolsWebClientId";
213
+ const _B = "Buckets";
214
+ const _BAAPC = "BackendAuthAppleProviderConfig";
215
+ const _BAPIASAS = "BackendAPIAppSyncAuthSettings";
216
+ const _BAPIAT = "BackendAPIAuthType";
217
+ const _BAPICR = "BackendAPIConflictResolution";
218
+ const _BAPIRC = "BackendAPIResourceConfig";
219
+ const _BASPC = "BackendAuthSocialProviderConfig";
220
+ const _BEL = "BackendEnvironmentList";
221
+ const _BEN = "BackendEnvironmentName";
222
+ const _BJRO = "BackendJobRespObj";
223
+ const _BMAI = "BackendManagerAppId";
224
+ const _BN = "BucketName";
225
+ const _BRE = "BadRequestException";
226
+ const _BSP = "BackendStoragePermissions";
227
+ const _CAA = "CleanAmplifyApp";
228
+ const _CB = "CloneBackend";
229
+ const _CBA = "CreateBackendAuth";
230
+ const _CBAFPC = "CreateBackendAuthForgotPasswordConfig";
231
+ const _CBAIPC = "CreateBackendAuthIdentityPoolConfig";
232
+ const _CBAMFAC = "CreateBackendAuthMFAConfig";
233
+ const _CBAOAC = "CreateBackendAuthOAuthConfig";
234
+ const _CBAPI = "CreateBackendAPI";
235
+ const _CBAPIR = "CreateBackendAPIRequest";
236
+ const _CBAPIRr = "CreateBackendAPIResponse";
237
+ const _CBAPPC = "CreateBackendAuthPasswordPolicyConfig";
238
+ const _CBAR = "CreateBackendAuthRequest";
239
+ const _CBARC = "CreateBackendAuthResourceConfig";
240
+ const _CBARr = "CreateBackendAuthResponse";
241
+ const _CBAUPC = "CreateBackendAuthUserPoolConfig";
242
+ const _CBAVMC = "CreateBackendAuthVerificationMessageConfig";
243
+ const _CBC = "CreateBackendConfig";
244
+ const _CBCR = "CreateBackendConfigRequest";
245
+ const _CBCRr = "CreateBackendConfigResponse";
246
+ const _CBR = "CloneBackendRequest";
247
+ const _CBRl = "CloneBackendResponse";
248
+ const _CBRr = "CreateBackendRequest";
249
+ const _CBRre = "CreateBackendResponse";
250
+ const _CBS = "CreateBackendStorage";
251
+ const _CBSR = "CreateBackendStorageRequest";
252
+ const _CBSRC = "CreateBackendStorageResourceConfig";
253
+ const _CBSRr = "CreateBackendStorageResponse";
254
+ const _CBr = "CreateBackend";
255
+ const _CC = "ChallengeCode";
256
+ const _CD = "CreationDate";
257
+ const _CI = "ClientId";
258
+ const _CR = "ConflictResolution";
259
+ const _CS = "ClientSecret";
260
+ const _CT = "CreateTime";
261
+ const _CTR = "CreateTokenRequest";
262
+ const _CTRr = "CreateTokenResponse";
263
+ const _CTr = "CreateToken";
264
+ const _CUPI = "CognitoUserPoolId";
265
+ const _D = "Description";
266
+ const _DAT = "DefaultAuthType";
267
+ const _DB = "DeleteBackend";
268
+ const _DBA = "DeleteBackendAuth";
269
+ const _DBAPI = "DeleteBackendAPI";
270
+ const _DBAPIR = "DeleteBackendAPIRequest";
271
+ const _DBAPIRe = "DeleteBackendAPIResponse";
272
+ const _DBAR = "DeleteBackendAuthRequest";
273
+ const _DBARe = "DeleteBackendAuthResponse";
274
+ const _DBR = "DeleteBackendRequest";
275
+ const _DBRe = "DeleteBackendResponse";
276
+ const _DBS = "DeleteBackendStorage";
277
+ const _DBSR = "DeleteBackendStorageRequest";
278
+ const _DBSRe = "DeleteBackendStorageResponse";
279
+ const _DM = "DeliveryMethod";
280
+ const _DP = "DomainPrefix";
281
+ const _DT = "DeleteToken";
282
+ const _DTR = "DeleteTokenRequest";
283
+ const _DTRe = "DeleteTokenResponse";
284
+ const _E = "Error";
285
+ const _EM = "EmailMessage";
286
+ const _ES = "EmailSettings";
287
+ const _ESm = "EmailSubject";
288
+ const _ET = "ExpirationTime";
289
+ const _F = "Facebook";
290
+ const _FP = "ForgotPassword";
291
+ const _G = "Google";
292
+ const _GB = "GetBackend";
293
+ const _GBA = "GetBackendAuth";
294
+ const _GBAPI = "GetBackendAPI";
295
+ const _GBAPIM = "GenerateBackendAPIModels";
296
+ const _GBAPIMR = "GenerateBackendAPIModelsRequest";
297
+ const _GBAPIMRe = "GenerateBackendAPIModelsResponse";
298
+ const _GBAPIMRet = "GetBackendAPIModelsRequest";
299
+ const _GBAPIMReta = "GetBackendAPIModelsResponse";
300
+ const _GBAPIMe = "GetBackendAPIModels";
301
+ const _GBAPIR = "GetBackendAPIRequest";
302
+ const _GBAPIRe = "GetBackendAPIResponse";
303
+ const _GBAR = "GetBackendAuthRequest";
304
+ const _GBARe = "GetBackendAuthResponse";
305
+ const _GBJ = "GetBackendJob";
306
+ const _GBJR = "GetBackendJobRequest";
307
+ const _GBJRe = "GetBackendJobResponse";
308
+ const _GBR = "GetBackendRequest";
309
+ const _GBRe = "GetBackendResponse";
310
+ const _GBS = "GetBackendStorage";
311
+ const _GBSR = "GetBackendStorageRequest";
312
+ const _GBSRC = "GetBackendStorageResourceConfig";
313
+ const _GBSRe = "GetBackendStorageResponse";
314
+ const _GT = "GetToken";
315
+ const _GTE = "GatewayTimeoutException";
316
+ const _GTR = "GetTokenRequest";
317
+ const _GTRe = "GetTokenResponse";
318
+ const _I = "Imported";
319
+ const _IBA = "ImportBackendAuth";
320
+ const _IBAR = "ImportBackendAuthRequest";
321
+ const _IBARm = "ImportBackendAuthResponse";
322
+ const _IBS = "ImportBackendStorage";
323
+ const _IBSR = "ImportBackendStorageRequest";
324
+ const _IBSRm = "ImportBackendStorageResponse";
325
+ const _IPC = "IdentityPoolConfigs";
326
+ const _IPI = "IdentityPoolId";
327
+ const _IPN = "IdentityPoolName";
328
+ const _IS = "IsSuccess";
329
+ const _J = "Jobs";
330
+ const _JI = "JobId";
331
+ const _KI = "KeyId";
332
+ const _LAC = "LoginAuthConfig";
333
+ const _LACRO = "LoginAuthConfigReqObj";
334
+ const _LBJ = "ListBackendJobs";
335
+ const _LBJR = "ListBackendJobsRequest";
336
+ const _LBJRi = "ListBackendJobsResponse";
337
+ const _LOBAPIAT = "ListOfBackendAPIAuthType";
338
+ const _LOBJRO = "ListOfBackendJobRespObj";
339
+ const _LOSBI = "ListOfS3BucketInfo";
340
+ const _LSB = "ListS3Buckets";
341
+ const _LSBR = "ListS3BucketsRequest";
342
+ const _LSBRi = "ListS3BucketsResponse";
343
+ const _LT = "LimitType";
344
+ const _LWA = "LoginWithAmazon";
345
+ const _M = "Message";
346
+ const _MFAM = "MFAMode";
347
+ const _MIS = "ModelIntrospectionSchema";
348
+ const _ML = "MinimumLength";
349
+ const _MR = "MaxResults";
350
+ const _MT = "MfaTypes";
351
+ const _Mf = "Mfa";
352
+ const _Mo = "Mode";
353
+ const _Mod = "Models";
354
+ const _N = "Name";
355
+ const _NCI = "NativeClientId";
356
+ const _NFE = "NotFoundException";
357
+ const _NT = "NextToken";
358
+ const _O = "Operation";
359
+ const _OA = "OAuth";
360
+ const _OAGT = "OAuthGrantType";
361
+ const _OAS = "OAuthScopes";
362
+ const _OIDATTL = "OpenIDAuthTTL";
363
+ const _OIDCI = "OpenIDClientId";
364
+ const _OIDITTL = "OpenIDIatTTL";
365
+ const _OIDIURL = "OpenIDIssueURL";
366
+ const _OIDPN = "OpenIDProviderName";
367
+ const _P = "Permissions";
368
+ const _PK = "PrivateKey";
369
+ const _PP = "PasswordPolicy";
370
+ const _RAB = "RemoveAllBackends";
371
+ const _RABR = "RemoveAllBackendsRequest";
372
+ const _RABRe = "RemoveAllBackendsResponse";
373
+ const _RBC = "RemoveBackendConfig";
374
+ const _RBCR = "RemoveBackendConfigRequest";
375
+ const _RBCRe = "RemoveBackendConfigResponse";
376
+ const _RC = "ResourceConfig";
377
+ const _RN = "ResourceName";
378
+ const _RS = "ResolutionStrategy";
379
+ const _RSIURI = "RedirectSignInURIs";
380
+ const _RSOURI = "RedirectSignOutURIs";
381
+ const _RSUA = "RequiredSignUpAttributes";
382
+ const _RT = "ResourceType";
383
+ const _S = "Settings";
384
+ const _SBI = "S3BucketInfo";
385
+ const _SI = "SessionId";
386
+ const _SIM = "SignInMethod";
387
+ const _SIWA = "SignInWithApple";
388
+ const _SM = "SmsMessage";
389
+ const _SN = "ServiceName";
390
+ const _SPS = "SocialProviderSettings";
391
+ const _SS = "SmsSettings";
392
+ const _Se = "Service";
393
+ const _St = "Status";
394
+ const _T = "Ttl";
395
+ const _TEN = "TargetEnvironmentName";
396
+ const _TI = "TeamId";
397
+ const _TMRE = "TooManyRequestsException";
398
+ const _TS = "TransformSchema";
399
+ const _UA = "UnAuthenticated";
400
+ const _UBA = "UpdateBackendAuth";
401
+ const _UBAFPC = "UpdateBackendAuthForgotPasswordConfig";
402
+ const _UBAIPC = "UpdateBackendAuthIdentityPoolConfig";
403
+ const _UBAMFAC = "UpdateBackendAuthMFAConfig";
404
+ const _UBAOAC = "UpdateBackendAuthOAuthConfig";
405
+ const _UBAPI = "UpdateBackendAPI";
406
+ const _UBAPIR = "UpdateBackendAPIRequest";
407
+ const _UBAPIRp = "UpdateBackendAPIResponse";
408
+ const _UBAPPC = "UpdateBackendAuthPasswordPolicyConfig";
409
+ const _UBAR = "UpdateBackendAuthRequest";
410
+ const _UBARC = "UpdateBackendAuthResourceConfig";
411
+ const _UBARp = "UpdateBackendAuthResponse";
412
+ const _UBAUPC = "UpdateBackendAuthUserPoolConfig";
413
+ const _UBAVMC = "UpdateBackendAuthVerificationMessageConfig";
414
+ const _UBC = "UpdateBackendConfig";
415
+ const _UBCR = "UpdateBackendConfigRequest";
416
+ const _UBCRp = "UpdateBackendConfigResponse";
417
+ const _UBJ = "UpdateBackendJob";
418
+ const _UBJR = "UpdateBackendJobRequest";
419
+ const _UBJRp = "UpdateBackendJobResponse";
420
+ const _UBS = "UpdateBackendStorage";
421
+ const _UBSR = "UpdateBackendStorageRequest";
422
+ const _UBSRC = "UpdateBackendStorageResourceConfig";
423
+ const _UBSRp = "UpdateBackendStorageResponse";
424
+ const _UL = "UnauthenticatedLogin";
425
+ const _UPC = "UserPoolConfigs";
426
+ const _UPI = "UserPoolId";
427
+ const _UPN = "UserPoolName";
428
+ const _UT = "UpdateTime";
429
+ const _VM = "VerificationMessage";
430
+ const _WCI = "WebClientId";
431
+ const _a = "authenticated";
432
+ const _aAT = "additionalAuthTypes";
433
+ const _aC = "additionalConstraints";
434
+ const _aFF = "amplifyFeatureFlags";
435
+ const _aI = "appId";
436
+ const _aMC = "amplifyMetaConfig";
437
+ const _aN = "apiName";
438
+ const _aNp = "appName";
439
+ const _aR = "authResources";
440
+ const _acipi = "aws_cognito_identity_pool_id";
441
+ const _acr = "aws_cognito_region";
442
+ const _aupi = "aws_user_pools_id";
443
+ const _aupwci = "aws_user_pools_web_client_id";
444
+ const _b = "buckets";
445
+ const _bEL = "backendEnvironmentList";
446
+ const _bEN = "backendEnvironmentName";
447
+ const _bMAI = "backendManagerAppId";
448
+ const _bN = "bucketName";
449
+ const _c = "client";
450
+ const _cAA = "cleanAmplifyApp";
451
+ const _cC = "challengeCode";
452
+ const _cD = "creationDate";
453
+ const _cR = "conflictResolution";
454
+ const _cT = "createTime";
455
+ const _cUPI = "cognitoUserPoolId";
456
+ const _ci = "client_id";
457
+ const _cs = "client_secret";
458
+ const _d = "description";
459
+ const _dAT = "defaultAuthType";
460
+ const _dM = "deliveryMethod";
461
+ const _dP = "domainPrefix";
462
+ const _e = "error";
463
+ const _eM = "emailMessage";
464
+ const _eS = "emailSettings";
465
+ const _eSm = "emailSubject";
466
+ const _eT = "expirationTime";
467
+ const _fP = "forgotPassword";
468
+ const _h = "http";
469
+ const _hE = "httpError";
470
+ const _i = "imported";
471
+ const _iPC = "identityPoolConfigs";
472
+ const _iPI = "identityPoolId";
473
+ const _iPN = "identityPoolName";
474
+ const _iS = "isSuccess";
475
+ const _j = "jobs";
476
+ const _jI = "jobId";
477
+ const _jN = "jsonName";
478
+ const _ki = "key_id";
479
+ const _lAC = "loginAuthConfig";
480
+ const _lT = "limitType";
481
+ const _m = "message";
482
+ const _mIS = "modelIntrospectionSchema";
483
+ const _mL = "minimumLength";
484
+ const _mR = "maxResults";
485
+ const _mT = "mfaTypes";
486
+ const _mf = "mfa";
487
+ const _mo = "mode";
488
+ const _mod = "models";
489
+ const _n = "name";
490
+ const _nCI = "nativeClientId";
491
+ const _nT = "nextToken";
492
+ const _o = "operation";
493
+ const _oA = "oAuth";
494
+ const _oAGT = "oAuthGrantType";
495
+ const _oAS = "oAuthScopes";
496
+ const _oIDATTL = "openIDAuthTTL";
497
+ const _oIDCI = "openIDClientId";
498
+ const _oIDITTL = "openIDIatTTL";
499
+ const _oIDIURL = "openIDIssueURL";
500
+ const _oIDPN = "openIDProviderName";
501
+ const _p = "permissions";
502
+ const _pP = "passwordPolicy";
503
+ const _pk = "private_key";
504
+ const _rC = "resourceConfig";
505
+ const _rN = "resourceName";
506
+ const _rS = "resolutionStrategy";
507
+ const _rSIURI = "redirectSignInURIs";
508
+ const _rSOURI = "redirectSignOutURIs";
509
+ const _rSUA = "requiredSignUpAttributes";
510
+ const _rT = "resourceType";
511
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.amplifybackend";
512
+ const _sI = "sessionId";
513
+ const _sIM = "signInMethod";
514
+ const _sM = "smsMessage";
515
+ const _sN = "serviceName";
516
+ const _sPS = "socialProviderSettings";
517
+ const _sS = "smsSettings";
518
+ const _se = "server";
519
+ const _ser = "service";
520
+ const _set = "settings";
521
+ const _st = "status";
522
+ const _t = "ttl";
523
+ const _tEN = "targetEnvironmentName";
524
+ const _tS = "transformSchema";
525
+ const _ti = "team_id";
526
+ const _uA = "unAuthenticated";
527
+ const _uL = "unauthenticatedLogin";
528
+ const _uPC = "userPoolConfigs";
529
+ const _uPI = "userPoolId";
530
+ const _uPN = "userPoolName";
531
+ const _uT = "updateTime";
532
+ const _vM = "verificationMessage";
533
+ const _wCI = "webClientId";
534
+ const n0 = "com.amazonaws.amplifybackend";
535
+ const _s_registry = TypeRegistry.for(_s);
536
+ var AmplifyBackendServiceException$ = [-3, _s, "AmplifyBackendServiceException", 0, [], []];
537
+ _s_registry.registerError(AmplifyBackendServiceException$, AmplifyBackendServiceException);
538
+ const n0_registry = TypeRegistry.for(n0);
539
+ var BadRequestException$ = [-3, n0, _BRE,
540
+ { [_e]: _c, [_hE]: 400 },
541
+ [_M],
542
+ [[0, { [_jN]: _m }]]
543
+ ];
544
+ n0_registry.registerError(BadRequestException$, BadRequestException);
545
+ var GatewayTimeoutException$ = [-3, n0, _GTE,
546
+ { [_e]: _se, [_hE]: 504 },
547
+ [_M],
548
+ [[0, { [_jN]: _m }]]
549
+ ];
550
+ n0_registry.registerError(GatewayTimeoutException$, GatewayTimeoutException);
551
+ var NotFoundException$ = [-3, n0, _NFE,
552
+ { [_e]: _c, [_hE]: 404 },
553
+ [_M, _RT],
554
+ [[0, { [_jN]: _m }], [0, { [_jN]: _rT }]]
555
+ ];
556
+ n0_registry.registerError(NotFoundException$, NotFoundException);
557
+ var TooManyRequestsException$ = [-3, n0, _TMRE,
558
+ { [_e]: _c, [_hE]: 429 },
559
+ [_LT, _M],
560
+ [[0, { [_jN]: _lT }], [0, { [_jN]: _m }]]
561
+ ];
562
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
563
+ const errorTypeRegistries = [
564
+ _s_registry,
565
+ n0_registry,
566
+ ];
567
+ var BackendAPIAppSyncAuthSettings$ = [3, n0, _BAPIASAS,
568
+ 0,
569
+ [_CUPI, _D, _ET, _OIDATTL, _OIDCI, _OIDITTL, _OIDIURL, _OIDPN],
570
+ [[0, { [_jN]: _cUPI }], [0, { [_jN]: _d }], [1, { [_jN]: _eT }], [0, { [_jN]: _oIDATTL }], [0, { [_jN]: _oIDCI }], [0, { [_jN]: _oIDITTL }], [0, { [_jN]: _oIDIURL }], [0, { [_jN]: _oIDPN }]]
571
+ ];
572
+ var BackendAPIAuthType$ = [3, n0, _BAPIAT,
573
+ 0,
574
+ [_Mo, _S],
575
+ [[0, { [_jN]: _mo }], [() => BackendAPIAppSyncAuthSettings$, { [_jN]: _set }]]
576
+ ];
577
+ var BackendAPIConflictResolution$ = [3, n0, _BAPICR,
578
+ 0,
579
+ [_RS],
580
+ [[0, { [_jN]: _rS }]]
581
+ ];
582
+ var BackendAPIResourceConfig$ = [3, n0, _BAPIRC,
583
+ 0,
584
+ [_AAT, _AN, _CR, _DAT, _Se, _TS],
585
+ [[() => ListOfBackendAPIAuthType, { [_jN]: _aAT }], [0, { [_jN]: _aN }], [() => BackendAPIConflictResolution$, { [_jN]: _cR }], [() => BackendAPIAuthType$, { [_jN]: _dAT }], [0, { [_jN]: _ser }], [0, { [_jN]: _tS }]]
586
+ ];
587
+ var BackendAuthAppleProviderConfig$ = [3, n0, _BAAPC,
588
+ 8,
589
+ [_CI, _KI, _PK, _TI],
590
+ [[0, { [_jN]: _ci }], [0, { [_jN]: _ki }], [0, { [_jN]: _pk }], [0, { [_jN]: _ti }]]
591
+ ];
592
+ var BackendAuthSocialProviderConfig$ = [3, n0, _BASPC,
593
+ 8,
594
+ [_CI, _CS],
595
+ [[0, { [_jN]: _ci }], [0, { [_jN]: _cs }]]
596
+ ];
597
+ var BackendJobRespObj$ = [3, n0, _BJRO,
598
+ 0,
599
+ [_AI, _BEN, _CT, _E, _JI, _O, _St, _UT],
600
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _cT }], [0, { [_jN]: _e }], [0, { [_jN]: _jI }], [0, { [_jN]: _o }], [0, { [_jN]: _st }], [0, { [_jN]: _uT }]], 2
601
+ ];
602
+ var BackendStoragePermissions$ = [3, n0, _BSP,
603
+ 0,
604
+ [_A, _UA],
605
+ [[64 | 0, { [_jN]: _a }], [64 | 0, { [_jN]: _uA }]], 1
606
+ ];
607
+ var CloneBackendRequest$ = [3, n0, _CBR,
608
+ 0,
609
+ [_AI, _BEN, _TEN],
610
+ [[0, 1], [0, 1], [0, { [_jN]: _tEN }]], 3
611
+ ];
612
+ var CloneBackendResponse$ = [3, n0, _CBRl,
613
+ 0,
614
+ [_AI, _BEN, _E, _JI, _O, _St],
615
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _e }], [0, { [_jN]: _jI }], [0, { [_jN]: _o }], [0, { [_jN]: _st }]]
616
+ ];
617
+ var CreateBackendAPIRequest$ = [3, n0, _CBAPIR,
618
+ 0,
619
+ [_AI, _BEN, _RC, _RN],
620
+ [[0, 1], [0, { [_jN]: _bEN }], [() => BackendAPIResourceConfig$, { [_jN]: _rC }], [0, { [_jN]: _rN }]], 4
621
+ ];
622
+ var CreateBackendAPIResponse$ = [3, n0, _CBAPIRr,
623
+ 0,
624
+ [_AI, _BEN, _E, _JI, _O, _St],
625
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _e }], [0, { [_jN]: _jI }], [0, { [_jN]: _o }], [0, { [_jN]: _st }]]
626
+ ];
627
+ var CreateBackendAuthForgotPasswordConfig$ = [3, n0, _CBAFPC,
628
+ 0,
629
+ [_DM, _ES, _SS],
630
+ [[0, { [_jN]: _dM }], [() => EmailSettings$, { [_jN]: _eS }], [() => SmsSettings$, { [_jN]: _sS }]], 1
631
+ ];
632
+ var CreateBackendAuthIdentityPoolConfig$ = [3, n0, _CBAIPC,
633
+ 0,
634
+ [_IPN, _UL],
635
+ [[0, { [_jN]: _iPN }], [2, { [_jN]: _uL }]], 2
636
+ ];
637
+ var CreateBackendAuthMFAConfig$ = [3, n0, _CBAMFAC,
638
+ 0,
639
+ [_MFAM, _S],
640
+ [0, [() => Settings$, { [_jN]: _set }]], 1
641
+ ];
642
+ var CreateBackendAuthOAuthConfig$ = [3, n0, _CBAOAC,
643
+ 0,
644
+ [_OAGT, _OAS, _RSIURI, _RSOURI, _DP, _SPS],
645
+ [[0, { [_jN]: _oAGT }], [64 | 0, { [_jN]: _oAS }], [64 | 0, { [_jN]: _rSIURI }], [64 | 0, { [_jN]: _rSOURI }], [0, { [_jN]: _dP }], [() => SocialProviderSettings$, { [_jN]: _sPS }]], 4
646
+ ];
647
+ var CreateBackendAuthPasswordPolicyConfig$ = [3, n0, _CBAPPC,
648
+ 0,
649
+ [_ML, _AC],
650
+ [[1, { [_jN]: _mL }], [64 | 0, { [_jN]: _aC }]], 1
651
+ ];
652
+ var CreateBackendAuthRequest$ = [3, n0, _CBAR,
653
+ 0,
654
+ [_AI, _BEN, _RC, _RN],
655
+ [[0, 1], [0, { [_jN]: _bEN }], [() => CreateBackendAuthResourceConfig$, { [_jN]: _rC }], [0, { [_jN]: _rN }]], 4
656
+ ];
657
+ var CreateBackendAuthResourceConfig$ = [3, n0, _CBARC,
658
+ 0,
659
+ [_AR, _Se, _UPC, _IPC],
660
+ [[0, { [_jN]: _aR }], [0, { [_jN]: _ser }], [() => CreateBackendAuthUserPoolConfig$, { [_jN]: _uPC }], [() => CreateBackendAuthIdentityPoolConfig$, { [_jN]: _iPC }]], 3
661
+ ];
662
+ var CreateBackendAuthResponse$ = [3, n0, _CBARr,
663
+ 0,
664
+ [_AI, _BEN, _E, _JI, _O, _St],
665
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _e }], [0, { [_jN]: _jI }], [0, { [_jN]: _o }], [0, { [_jN]: _st }]]
666
+ ];
667
+ var CreateBackendAuthUserPoolConfig$ = [3, n0, _CBAUPC,
668
+ 0,
669
+ [_RSUA, _SIM, _UPN, _FP, _Mf, _OA, _PP, _VM],
670
+ [[64 | 0, { [_jN]: _rSUA }], [0, { [_jN]: _sIM }], [0, { [_jN]: _uPN }], [() => CreateBackendAuthForgotPasswordConfig$, { [_jN]: _fP }], [() => CreateBackendAuthMFAConfig$, { [_jN]: _mf }], [() => CreateBackendAuthOAuthConfig$, { [_jN]: _oA }], [() => CreateBackendAuthPasswordPolicyConfig$, { [_jN]: _pP }], [() => CreateBackendAuthVerificationMessageConfig$, { [_jN]: _vM }]], 3
671
+ ];
672
+ var CreateBackendAuthVerificationMessageConfig$ = [3, n0, _CBAVMC,
673
+ 0,
674
+ [_DM, _ES, _SS],
675
+ [[0, { [_jN]: _dM }], [() => EmailSettings$, { [_jN]: _eS }], [() => SmsSettings$, { [_jN]: _sS }]], 1
676
+ ];
677
+ var CreateBackendConfigRequest$ = [3, n0, _CBCR,
678
+ 0,
679
+ [_AI, _BMAI],
680
+ [[0, 1], [0, { [_jN]: _bMAI }]], 1
681
+ ];
682
+ var CreateBackendConfigResponse$ = [3, n0, _CBCRr,
683
+ 0,
684
+ [_AI, _BEN, _JI, _St],
685
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _jI }], [0, { [_jN]: _st }]]
686
+ ];
687
+ var CreateBackendRequest$ = [3, n0, _CBRr,
688
+ 0,
689
+ [_AI, _ANp, _BEN, _RC, _RN],
690
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _aNp }], [0, { [_jN]: _bEN }], [() => ResourceConfig$, { [_jN]: _rC }], [0, { [_jN]: _rN }]], 3
691
+ ];
692
+ var CreateBackendResponse$ = [3, n0, _CBRre,
693
+ 0,
694
+ [_AI, _BEN, _E, _JI, _O, _St],
695
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _e }], [0, { [_jN]: _jI }], [0, { [_jN]: _o }], [0, { [_jN]: _st }]]
696
+ ];
697
+ var CreateBackendStorageRequest$ = [3, n0, _CBSR,
698
+ 0,
699
+ [_AI, _BEN, _RC, _RN],
700
+ [[0, 1], [0, { [_jN]: _bEN }], [() => CreateBackendStorageResourceConfig$, { [_jN]: _rC }], [0, { [_jN]: _rN }]], 4
701
+ ];
702
+ var CreateBackendStorageResourceConfig$ = [3, n0, _CBSRC,
703
+ 0,
704
+ [_P, _SN, _BN],
705
+ [[() => BackendStoragePermissions$, { [_jN]: _p }], [0, { [_jN]: _sN }], [0, { [_jN]: _bN }]], 2
706
+ ];
707
+ var CreateBackendStorageResponse$ = [3, n0, _CBSRr,
708
+ 0,
709
+ [_AI, _BEN, _JI, _St],
710
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _jI }], [0, { [_jN]: _st }]]
711
+ ];
712
+ var CreateTokenRequest$ = [3, n0, _CTR,
713
+ 0,
714
+ [_AI],
715
+ [[0, 1]], 1
716
+ ];
717
+ var CreateTokenResponse$ = [3, n0, _CTRr,
718
+ 0,
719
+ [_AI, _CC, _SI, _T],
720
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _cC }], [0, { [_jN]: _sI }], [0, { [_jN]: _t }]]
721
+ ];
722
+ var DeleteBackendAPIRequest$ = [3, n0, _DBAPIR,
723
+ 0,
724
+ [_AI, _BEN, _RN, _RC],
725
+ [[0, 1], [0, 1], [0, { [_jN]: _rN }], [() => BackendAPIResourceConfig$, { [_jN]: _rC }]], 3
726
+ ];
727
+ var DeleteBackendAPIResponse$ = [3, n0, _DBAPIRe,
728
+ 0,
729
+ [_AI, _BEN, _E, _JI, _O, _St],
730
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _e }], [0, { [_jN]: _jI }], [0, { [_jN]: _o }], [0, { [_jN]: _st }]]
731
+ ];
732
+ var DeleteBackendAuthRequest$ = [3, n0, _DBAR,
733
+ 0,
734
+ [_AI, _BEN, _RN],
735
+ [[0, 1], [0, 1], [0, { [_jN]: _rN }]], 3
736
+ ];
737
+ var DeleteBackendAuthResponse$ = [3, n0, _DBARe,
738
+ 0,
739
+ [_AI, _BEN, _E, _JI, _O, _St],
740
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _e }], [0, { [_jN]: _jI }], [0, { [_jN]: _o }], [0, { [_jN]: _st }]]
741
+ ];
742
+ var DeleteBackendRequest$ = [3, n0, _DBR,
743
+ 0,
744
+ [_AI, _BEN],
745
+ [[0, 1], [0, 1]], 2
746
+ ];
747
+ var DeleteBackendResponse$ = [3, n0, _DBRe,
748
+ 0,
749
+ [_AI, _BEN, _E, _JI, _O, _St],
750
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _e }], [0, { [_jN]: _jI }], [0, { [_jN]: _o }], [0, { [_jN]: _st }]]
751
+ ];
752
+ var DeleteBackendStorageRequest$ = [3, n0, _DBSR,
753
+ 0,
754
+ [_AI, _BEN, _RN, _SN],
755
+ [[0, 1], [0, 1], [0, { [_jN]: _rN }], [0, { [_jN]: _sN }]], 4
756
+ ];
757
+ var DeleteBackendStorageResponse$ = [3, n0, _DBSRe,
758
+ 0,
759
+ [_AI, _BEN, _JI, _St],
760
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _jI }], [0, { [_jN]: _st }]]
761
+ ];
762
+ var DeleteTokenRequest$ = [3, n0, _DTR,
763
+ 0,
764
+ [_AI, _SI],
765
+ [[0, 1], [0, 1]], 2
766
+ ];
767
+ var DeleteTokenResponse$ = [3, n0, _DTRe,
768
+ 0,
769
+ [_IS],
770
+ [[2, { [_jN]: _iS }]]
771
+ ];
772
+ var EmailSettings$ = [3, n0, _ES,
773
+ 8,
774
+ [_EM, _ESm],
775
+ [[0, { [_jN]: _eM }], [0, { [_jN]: _eSm }]]
776
+ ];
777
+ var GenerateBackendAPIModelsRequest$ = [3, n0, _GBAPIMR,
778
+ 0,
779
+ [_AI, _BEN, _RN],
780
+ [[0, 1], [0, 1], [0, { [_jN]: _rN }]], 3
781
+ ];
782
+ var GenerateBackendAPIModelsResponse$ = [3, n0, _GBAPIMRe,
783
+ 0,
784
+ [_AI, _BEN, _E, _JI, _O, _St],
785
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _e }], [0, { [_jN]: _jI }], [0, { [_jN]: _o }], [0, { [_jN]: _st }]]
786
+ ];
787
+ var GetBackendAPIModelsRequest$ = [3, n0, _GBAPIMRet,
788
+ 0,
789
+ [_AI, _BEN, _RN],
790
+ [[0, 1], [0, 1], [0, { [_jN]: _rN }]], 3
791
+ ];
792
+ var GetBackendAPIModelsResponse$ = [3, n0, _GBAPIMReta,
793
+ 0,
794
+ [_Mod, _St, _MIS],
795
+ [[0, { [_jN]: _mod }], [0, { [_jN]: _st }], [0, { [_jN]: _mIS }]]
796
+ ];
797
+ var GetBackendAPIRequest$ = [3, n0, _GBAPIR,
798
+ 0,
799
+ [_AI, _BEN, _RN, _RC],
800
+ [[0, 1], [0, 1], [0, { [_jN]: _rN }], [() => BackendAPIResourceConfig$, { [_jN]: _rC }]], 3
801
+ ];
802
+ var GetBackendAPIResponse$ = [3, n0, _GBAPIRe,
803
+ 0,
804
+ [_AI, _BEN, _E, _RC, _RN],
805
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _e }], [() => BackendAPIResourceConfig$, { [_jN]: _rC }], [0, { [_jN]: _rN }]]
806
+ ];
807
+ var GetBackendAuthRequest$ = [3, n0, _GBAR,
808
+ 0,
809
+ [_AI, _BEN, _RN],
810
+ [[0, 1], [0, 1], [0, { [_jN]: _rN }]], 3
811
+ ];
812
+ var GetBackendAuthResponse$ = [3, n0, _GBARe,
813
+ 0,
814
+ [_AI, _BEN, _E, _RC, _RN],
815
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _e }], [() => CreateBackendAuthResourceConfig$, { [_jN]: _rC }], [0, { [_jN]: _rN }]]
816
+ ];
817
+ var GetBackendJobRequest$ = [3, n0, _GBJR,
818
+ 0,
819
+ [_AI, _BEN, _JI],
820
+ [[0, 1], [0, 1], [0, 1]], 3
821
+ ];
822
+ var GetBackendJobResponse$ = [3, n0, _GBJRe,
823
+ 0,
824
+ [_AI, _BEN, _CT, _E, _JI, _O, _St, _UT],
825
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _cT }], [0, { [_jN]: _e }], [0, { [_jN]: _jI }], [0, { [_jN]: _o }], [0, { [_jN]: _st }], [0, { [_jN]: _uT }]]
826
+ ];
827
+ var GetBackendRequest$ = [3, n0, _GBR,
828
+ 0,
829
+ [_AI, _BEN],
830
+ [[0, 1], [0, { [_jN]: _bEN }]], 1
831
+ ];
832
+ var GetBackendResponse$ = [3, n0, _GBRe,
833
+ 0,
834
+ [_AFF, _AMC, _AI, _ANp, _BEL, _BEN, _E],
835
+ [[0, { [_jN]: _aFF }], [0, { [_jN]: _aMC }], [0, { [_jN]: _aI }], [0, { [_jN]: _aNp }], [64 | 0, { [_jN]: _bEL }], [0, { [_jN]: _bEN }], [0, { [_jN]: _e }]]
836
+ ];
837
+ var GetBackendStorageRequest$ = [3, n0, _GBSR,
838
+ 0,
839
+ [_AI, _BEN, _RN],
840
+ [[0, 1], [0, 1], [0, { [_jN]: _rN }]], 3
841
+ ];
842
+ var GetBackendStorageResourceConfig$ = [3, n0, _GBSRC,
843
+ 0,
844
+ [_I, _SN, _BN, _P],
845
+ [[2, { [_jN]: _i }], [0, { [_jN]: _sN }], [0, { [_jN]: _bN }], [() => BackendStoragePermissions$, { [_jN]: _p }]], 2
846
+ ];
847
+ var GetBackendStorageResponse$ = [3, n0, _GBSRe,
848
+ 0,
849
+ [_AI, _BEN, _RC, _RN],
850
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [() => GetBackendStorageResourceConfig$, { [_jN]: _rC }], [0, { [_jN]: _rN }]]
851
+ ];
852
+ var GetTokenRequest$ = [3, n0, _GTR,
853
+ 0,
854
+ [_AI, _SI],
855
+ [[0, 1], [0, 1]], 2
856
+ ];
857
+ var GetTokenResponse$ = [3, n0, _GTRe,
858
+ 0,
859
+ [_AI, _CC, _SI, _T],
860
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _cC }], [0, { [_jN]: _sI }], [0, { [_jN]: _t }]]
861
+ ];
862
+ var ImportBackendAuthRequest$ = [3, n0, _IBAR,
863
+ 0,
864
+ [_AI, _BEN, _NCI, _UPI, _WCI, _IPI],
865
+ [[0, 1], [0, 1], [0, { [_jN]: _nCI }], [0, { [_jN]: _uPI }], [0, { [_jN]: _wCI }], [0, { [_jN]: _iPI }]], 5
866
+ ];
867
+ var ImportBackendAuthResponse$ = [3, n0, _IBARm,
868
+ 0,
869
+ [_AI, _BEN, _E, _JI, _O, _St],
870
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _e }], [0, { [_jN]: _jI }], [0, { [_jN]: _o }], [0, { [_jN]: _st }]]
871
+ ];
872
+ var ImportBackendStorageRequest$ = [3, n0, _IBSR,
873
+ 0,
874
+ [_AI, _BEN, _SN, _BN],
875
+ [[0, 1], [0, 1], [0, { [_jN]: _sN }], [0, { [_jN]: _bN }]], 3
876
+ ];
877
+ var ImportBackendStorageResponse$ = [3, n0, _IBSRm,
878
+ 0,
879
+ [_AI, _BEN, _JI, _St],
880
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _jI }], [0, { [_jN]: _st }]]
881
+ ];
882
+ var ListBackendJobsRequest$ = [3, n0, _LBJR,
883
+ 0,
884
+ [_AI, _BEN, _JI, _MR, _NT, _O, _St],
885
+ [[0, 1], [0, 1], [0, { [_jN]: _jI }], [1, { [_jN]: _mR }], [0, { [_jN]: _nT }], [0, { [_jN]: _o }], [0, { [_jN]: _st }]], 2
886
+ ];
887
+ var ListBackendJobsResponse$ = [3, n0, _LBJRi,
888
+ 0,
889
+ [_J, _NT],
890
+ [[() => ListOfBackendJobRespObj, { [_jN]: _j }], [0, { [_jN]: _nT }]]
891
+ ];
892
+ var ListS3BucketsRequest$ = [3, n0, _LSBR,
893
+ 0,
894
+ [_NT],
895
+ [[0, { [_jN]: _nT }]]
896
+ ];
897
+ var ListS3BucketsResponse$ = [3, n0, _LSBRi,
898
+ 0,
899
+ [_B, _NT],
900
+ [[() => ListOfS3BucketInfo, { [_jN]: _b }], [0, { [_jN]: _nT }]]
901
+ ];
902
+ var LoginAuthConfigReqObj$ = [3, n0, _LACRO,
903
+ 0,
904
+ [_ACIPI, _ACR, _AUPI, _AUPWCI],
905
+ [[0, { [_jN]: _acipi }], [0, { [_jN]: _acr }], [0, { [_jN]: _aupi }], [0, { [_jN]: _aupwci }]]
906
+ ];
907
+ var RemoveAllBackendsRequest$ = [3, n0, _RABR,
908
+ 0,
909
+ [_AI, _CAA],
910
+ [[0, 1], [2, { [_jN]: _cAA }]], 1
911
+ ];
912
+ var RemoveAllBackendsResponse$ = [3, n0, _RABRe,
913
+ 0,
914
+ [_AI, _E, _JI, _O, _St],
915
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _e }], [0, { [_jN]: _jI }], [0, { [_jN]: _o }], [0, { [_jN]: _st }]]
916
+ ];
917
+ var RemoveBackendConfigRequest$ = [3, n0, _RBCR,
918
+ 0,
919
+ [_AI],
920
+ [[0, 1]], 1
921
+ ];
922
+ var RemoveBackendConfigResponse$ = [3, n0, _RBCRe,
923
+ 0,
924
+ [_E],
925
+ [[0, { [_jN]: _e }]]
926
+ ];
927
+ var ResourceConfig$ = [3, n0, _RC,
928
+ 0,
929
+ [],
930
+ []
931
+ ];
932
+ var S3BucketInfo$ = [3, n0, _SBI,
933
+ 0,
934
+ [_CD, _N],
935
+ [[0, { [_jN]: _cD }], [0, { [_jN]: _n }]]
936
+ ];
937
+ var Settings$ = [3, n0, _S,
938
+ 0,
939
+ [_MT, _SM],
940
+ [[64 | 0, { [_jN]: _mT }], [0, { [_jN]: _sM }]]
941
+ ];
942
+ var SmsSettings$ = [3, n0, _SS,
943
+ 8,
944
+ [_SM],
945
+ [[0, { [_jN]: _sM }]]
946
+ ];
947
+ var SocialProviderSettings$ = [3, n0, _SPS,
948
+ 0,
949
+ [_F, _G, _LWA, _SIWA],
950
+ [[() => BackendAuthSocialProviderConfig$, 0], [() => BackendAuthSocialProviderConfig$, 0], [() => BackendAuthSocialProviderConfig$, 0], [() => BackendAuthAppleProviderConfig$, 0]]
951
+ ];
952
+ var UpdateBackendAPIRequest$ = [3, n0, _UBAPIR,
953
+ 0,
954
+ [_AI, _BEN, _RN, _RC],
955
+ [[0, 1], [0, 1], [0, { [_jN]: _rN }], [() => BackendAPIResourceConfig$, { [_jN]: _rC }]], 3
956
+ ];
957
+ var UpdateBackendAPIResponse$ = [3, n0, _UBAPIRp,
958
+ 0,
959
+ [_AI, _BEN, _E, _JI, _O, _St],
960
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _e }], [0, { [_jN]: _jI }], [0, { [_jN]: _o }], [0, { [_jN]: _st }]]
961
+ ];
962
+ var UpdateBackendAuthForgotPasswordConfig$ = [3, n0, _UBAFPC,
963
+ 0,
964
+ [_DM, _ES, _SS],
965
+ [[0, { [_jN]: _dM }], [() => EmailSettings$, { [_jN]: _eS }], [() => SmsSettings$, { [_jN]: _sS }]]
966
+ ];
967
+ var UpdateBackendAuthIdentityPoolConfig$ = [3, n0, _UBAIPC,
968
+ 0,
969
+ [_UL],
970
+ [[2, { [_jN]: _uL }]]
971
+ ];
972
+ var UpdateBackendAuthMFAConfig$ = [3, n0, _UBAMFAC,
973
+ 0,
974
+ [_MFAM, _S],
975
+ [0, [() => Settings$, { [_jN]: _set }]]
976
+ ];
977
+ var UpdateBackendAuthOAuthConfig$ = [3, n0, _UBAOAC,
978
+ 0,
979
+ [_DP, _OAGT, _OAS, _RSIURI, _RSOURI, _SPS],
980
+ [[0, { [_jN]: _dP }], [0, { [_jN]: _oAGT }], [64 | 0, { [_jN]: _oAS }], [64 | 0, { [_jN]: _rSIURI }], [64 | 0, { [_jN]: _rSOURI }], [() => SocialProviderSettings$, { [_jN]: _sPS }]]
981
+ ];
982
+ var UpdateBackendAuthPasswordPolicyConfig$ = [3, n0, _UBAPPC,
983
+ 0,
984
+ [_AC, _ML],
985
+ [[64 | 0, { [_jN]: _aC }], [1, { [_jN]: _mL }]]
986
+ ];
987
+ var UpdateBackendAuthRequest$ = [3, n0, _UBAR,
988
+ 0,
989
+ [_AI, _BEN, _RC, _RN],
990
+ [[0, 1], [0, 1], [() => UpdateBackendAuthResourceConfig$, { [_jN]: _rC }], [0, { [_jN]: _rN }]], 4
991
+ ];
992
+ var UpdateBackendAuthResourceConfig$ = [3, n0, _UBARC,
993
+ 0,
994
+ [_AR, _Se, _UPC, _IPC],
995
+ [[0, { [_jN]: _aR }], [0, { [_jN]: _ser }], [() => UpdateBackendAuthUserPoolConfig$, { [_jN]: _uPC }], [() => UpdateBackendAuthIdentityPoolConfig$, { [_jN]: _iPC }]], 3
996
+ ];
997
+ var UpdateBackendAuthResponse$ = [3, n0, _UBARp,
998
+ 0,
999
+ [_AI, _BEN, _E, _JI, _O, _St],
1000
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _e }], [0, { [_jN]: _jI }], [0, { [_jN]: _o }], [0, { [_jN]: _st }]]
1001
+ ];
1002
+ var UpdateBackendAuthUserPoolConfig$ = [3, n0, _UBAUPC,
1003
+ 0,
1004
+ [_FP, _Mf, _OA, _PP, _VM],
1005
+ [[() => UpdateBackendAuthForgotPasswordConfig$, { [_jN]: _fP }], [() => UpdateBackendAuthMFAConfig$, { [_jN]: _mf }], [() => UpdateBackendAuthOAuthConfig$, { [_jN]: _oA }], [() => UpdateBackendAuthPasswordPolicyConfig$, { [_jN]: _pP }], [() => UpdateBackendAuthVerificationMessageConfig$, { [_jN]: _vM }]]
1006
+ ];
1007
+ var UpdateBackendAuthVerificationMessageConfig$ = [3, n0, _UBAVMC,
1008
+ 0,
1009
+ [_DM, _ES, _SS],
1010
+ [[0, { [_jN]: _dM }], [() => EmailSettings$, { [_jN]: _eS }], [() => SmsSettings$, { [_jN]: _sS }]], 1
1011
+ ];
1012
+ var UpdateBackendConfigRequest$ = [3, n0, _UBCR,
1013
+ 0,
1014
+ [_AI, _LAC],
1015
+ [[0, 1], [() => LoginAuthConfigReqObj$, { [_jN]: _lAC }]], 1
1016
+ ];
1017
+ var UpdateBackendConfigResponse$ = [3, n0, _UBCRp,
1018
+ 0,
1019
+ [_AI, _BMAI, _E, _LAC],
1020
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bMAI }], [0, { [_jN]: _e }], [() => LoginAuthConfigReqObj$, { [_jN]: _lAC }]]
1021
+ ];
1022
+ var UpdateBackendJobRequest$ = [3, n0, _UBJR,
1023
+ 0,
1024
+ [_AI, _BEN, _JI, _O, _St],
1025
+ [[0, 1], [0, 1], [0, 1], [0, { [_jN]: _o }], [0, { [_jN]: _st }]], 3
1026
+ ];
1027
+ var UpdateBackendJobResponse$ = [3, n0, _UBJRp,
1028
+ 0,
1029
+ [_AI, _BEN, _CT, _E, _JI, _O, _St, _UT],
1030
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _cT }], [0, { [_jN]: _e }], [0, { [_jN]: _jI }], [0, { [_jN]: _o }], [0, { [_jN]: _st }], [0, { [_jN]: _uT }]]
1031
+ ];
1032
+ var UpdateBackendStorageRequest$ = [3, n0, _UBSR,
1033
+ 0,
1034
+ [_AI, _BEN, _RC, _RN],
1035
+ [[0, 1], [0, 1], [() => UpdateBackendStorageResourceConfig$, { [_jN]: _rC }], [0, { [_jN]: _rN }]], 4
1036
+ ];
1037
+ var UpdateBackendStorageResourceConfig$ = [3, n0, _UBSRC,
1038
+ 0,
1039
+ [_P, _SN],
1040
+ [[() => BackendStoragePermissions$, { [_jN]: _p }], [0, { [_jN]: _sN }]], 2
1041
+ ];
1042
+ var UpdateBackendStorageResponse$ = [3, n0, _UBSRp,
1043
+ 0,
1044
+ [_AI, _BEN, _JI, _St],
1045
+ [[0, { [_jN]: _aI }], [0, { [_jN]: _bEN }], [0, { [_jN]: _jI }], [0, { [_jN]: _st }]]
1046
+ ];
1047
+ var ListOfBackendAPIAuthType = [1, n0, _LOBAPIAT,
1048
+ 0, [() => BackendAPIAuthType$,
1049
+ 0]
1050
+ ];
1051
+ var ListOfBackendJobRespObj = [1, n0, _LOBJRO,
1052
+ 0, [() => BackendJobRespObj$,
1053
+ 0]
1054
+ ];
1055
+ var ListOfS3BucketInfo = [1, n0, _LOSBI,
1056
+ 0, [() => S3BucketInfo$,
1057
+ 0]
1058
+ ];
1059
+ var CloneBackend$ = [9, n0, _CB,
1060
+ { [_h]: ["POST", "/backend/{AppId}/environments/{BackendEnvironmentName}/clone", 200] }, () => CloneBackendRequest$, () => CloneBackendResponse$
1061
+ ];
1062
+ var CreateBackend$ = [9, n0, _CBr,
1063
+ { [_h]: ["POST", "/backend", 200] }, () => CreateBackendRequest$, () => CreateBackendResponse$
1064
+ ];
1065
+ var CreateBackendAPI$ = [9, n0, _CBAPI,
1066
+ { [_h]: ["POST", "/backend/{AppId}/api", 200] }, () => CreateBackendAPIRequest$, () => CreateBackendAPIResponse$
1067
+ ];
1068
+ var CreateBackendAuth$ = [9, n0, _CBA,
1069
+ { [_h]: ["POST", "/backend/{AppId}/auth", 200] }, () => CreateBackendAuthRequest$, () => CreateBackendAuthResponse$
1070
+ ];
1071
+ var CreateBackendConfig$ = [9, n0, _CBC,
1072
+ { [_h]: ["POST", "/backend/{AppId}/config", 200] }, () => CreateBackendConfigRequest$, () => CreateBackendConfigResponse$
1073
+ ];
1074
+ var CreateBackendStorage$ = [9, n0, _CBS,
1075
+ { [_h]: ["POST", "/backend/{AppId}/storage", 200] }, () => CreateBackendStorageRequest$, () => CreateBackendStorageResponse$
1076
+ ];
1077
+ var CreateToken$ = [9, n0, _CTr,
1078
+ { [_h]: ["POST", "/backend/{AppId}/challenge", 200] }, () => CreateTokenRequest$, () => CreateTokenResponse$
1079
+ ];
1080
+ var DeleteBackend$ = [9, n0, _DB,
1081
+ { [_h]: ["POST", "/backend/{AppId}/environments/{BackendEnvironmentName}/remove", 200] }, () => DeleteBackendRequest$, () => DeleteBackendResponse$
1082
+ ];
1083
+ var DeleteBackendAPI$ = [9, n0, _DBAPI,
1084
+ { [_h]: ["POST", "/backend/{AppId}/api/{BackendEnvironmentName}/remove", 200] }, () => DeleteBackendAPIRequest$, () => DeleteBackendAPIResponse$
1085
+ ];
1086
+ var DeleteBackendAuth$ = [9, n0, _DBA,
1087
+ { [_h]: ["POST", "/backend/{AppId}/auth/{BackendEnvironmentName}/remove", 200] }, () => DeleteBackendAuthRequest$, () => DeleteBackendAuthResponse$
1088
+ ];
1089
+ var DeleteBackendStorage$ = [9, n0, _DBS,
1090
+ { [_h]: ["POST", "/backend/{AppId}/storage/{BackendEnvironmentName}/remove", 200] }, () => DeleteBackendStorageRequest$, () => DeleteBackendStorageResponse$
1091
+ ];
1092
+ var DeleteToken$ = [9, n0, _DT,
1093
+ { [_h]: ["POST", "/backend/{AppId}/challenge/{SessionId}/remove", 200] }, () => DeleteTokenRequest$, () => DeleteTokenResponse$
1094
+ ];
1095
+ var GenerateBackendAPIModels$ = [9, n0, _GBAPIM,
1096
+ { [_h]: ["POST", "/backend/{AppId}/api/{BackendEnvironmentName}/generateModels", 200] }, () => GenerateBackendAPIModelsRequest$, () => GenerateBackendAPIModelsResponse$
1097
+ ];
1098
+ var GetBackend$ = [9, n0, _GB,
1099
+ { [_h]: ["POST", "/backend/{AppId}/details", 200] }, () => GetBackendRequest$, () => GetBackendResponse$
1100
+ ];
1101
+ var GetBackendAPI$ = [9, n0, _GBAPI,
1102
+ { [_h]: ["POST", "/backend/{AppId}/api/{BackendEnvironmentName}/details", 200] }, () => GetBackendAPIRequest$, () => GetBackendAPIResponse$
1103
+ ];
1104
+ var GetBackendAPIModels$ = [9, n0, _GBAPIMe,
1105
+ { [_h]: ["POST", "/backend/{AppId}/api/{BackendEnvironmentName}/getModels", 200] }, () => GetBackendAPIModelsRequest$, () => GetBackendAPIModelsResponse$
1106
+ ];
1107
+ var GetBackendAuth$ = [9, n0, _GBA,
1108
+ { [_h]: ["POST", "/backend/{AppId}/auth/{BackendEnvironmentName}/details", 200] }, () => GetBackendAuthRequest$, () => GetBackendAuthResponse$
1109
+ ];
1110
+ var GetBackendJob$ = [9, n0, _GBJ,
1111
+ { [_h]: ["GET", "/backend/{AppId}/job/{BackendEnvironmentName}/{JobId}", 200] }, () => GetBackendJobRequest$, () => GetBackendJobResponse$
1112
+ ];
1113
+ var GetBackendStorage$ = [9, n0, _GBS,
1114
+ { [_h]: ["POST", "/backend/{AppId}/storage/{BackendEnvironmentName}/details", 200] }, () => GetBackendStorageRequest$, () => GetBackendStorageResponse$
1115
+ ];
1116
+ var GetToken$ = [9, n0, _GT,
1117
+ { [_h]: ["GET", "/backend/{AppId}/challenge/{SessionId}", 200] }, () => GetTokenRequest$, () => GetTokenResponse$
1118
+ ];
1119
+ var ImportBackendAuth$ = [9, n0, _IBA,
1120
+ { [_h]: ["POST", "/backend/{AppId}/auth/{BackendEnvironmentName}/import", 200] }, () => ImportBackendAuthRequest$, () => ImportBackendAuthResponse$
1121
+ ];
1122
+ var ImportBackendStorage$ = [9, n0, _IBS,
1123
+ { [_h]: ["POST", "/backend/{AppId}/storage/{BackendEnvironmentName}/import", 200] }, () => ImportBackendStorageRequest$, () => ImportBackendStorageResponse$
1124
+ ];
1125
+ var ListBackendJobs$ = [9, n0, _LBJ,
1126
+ { [_h]: ["POST", "/backend/{AppId}/job/{BackendEnvironmentName}", 200] }, () => ListBackendJobsRequest$, () => ListBackendJobsResponse$
1127
+ ];
1128
+ var ListS3Buckets$ = [9, n0, _LSB,
1129
+ { [_h]: ["POST", "/s3Buckets", 200] }, () => ListS3BucketsRequest$, () => ListS3BucketsResponse$
1130
+ ];
1131
+ var RemoveAllBackends$ = [9, n0, _RAB,
1132
+ { [_h]: ["POST", "/backend/{AppId}/remove", 200] }, () => RemoveAllBackendsRequest$, () => RemoveAllBackendsResponse$
1133
+ ];
1134
+ var RemoveBackendConfig$ = [9, n0, _RBC,
1135
+ { [_h]: ["POST", "/backend/{AppId}/config/remove", 200] }, () => RemoveBackendConfigRequest$, () => RemoveBackendConfigResponse$
1136
+ ];
1137
+ var UpdateBackendAPI$ = [9, n0, _UBAPI,
1138
+ { [_h]: ["POST", "/backend/{AppId}/api/{BackendEnvironmentName}", 200] }, () => UpdateBackendAPIRequest$, () => UpdateBackendAPIResponse$
1139
+ ];
1140
+ var UpdateBackendAuth$ = [9, n0, _UBA,
1141
+ { [_h]: ["POST", "/backend/{AppId}/auth/{BackendEnvironmentName}", 200] }, () => UpdateBackendAuthRequest$, () => UpdateBackendAuthResponse$
1142
+ ];
1143
+ var UpdateBackendConfig$ = [9, n0, _UBC,
1144
+ { [_h]: ["POST", "/backend/{AppId}/config/update", 200] }, () => UpdateBackendConfigRequest$, () => UpdateBackendConfigResponse$
1145
+ ];
1146
+ var UpdateBackendJob$ = [9, n0, _UBJ,
1147
+ { [_h]: ["POST", "/backend/{AppId}/job/{BackendEnvironmentName}/{JobId}", 200] }, () => UpdateBackendJobRequest$, () => UpdateBackendJobResponse$
1148
+ ];
1149
+ var UpdateBackendStorage$ = [9, n0, _UBS,
1150
+ { [_h]: ["POST", "/backend/{AppId}/storage/{BackendEnvironmentName}", 200] }, () => UpdateBackendStorageRequest$, () => UpdateBackendStorageResponse$
1151
+ ];
1152
+
1153
+ const getRuntimeConfig$1 = (config) => {
1154
+ return {
1155
+ apiVersion: "2020-08-11",
1156
+ base64Decoder: config?.base64Decoder ?? fromBase64,
1157
+ base64Encoder: config?.base64Encoder ?? toBase64,
1158
+ disableHostPrefix: config?.disableHostPrefix ?? false,
1159
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
1160
+ extensions: config?.extensions ?? [],
1161
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultAmplifyBackendHttpAuthSchemeProvider,
1162
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
1163
+ {
1164
+ schemeId: "aws.auth#sigv4",
1165
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
1166
+ signer: new AwsSdkSigV4Signer(),
1167
+ },
1168
+ ],
1169
+ logger: config?.logger ?? new NoOpLogger(),
1170
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
1171
+ protocolSettings: config?.protocolSettings ?? {
1172
+ defaultNamespace: "com.amazonaws.amplifybackend",
1173
+ errorTypeRegistries,
1174
+ version: "2020-08-11",
1175
+ serviceTarget: "AmplifyBackend",
1176
+ },
1177
+ serviceId: config?.serviceId ?? "AmplifyBackend",
1178
+ urlParser: config?.urlParser ?? parseUrl,
1179
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1180
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
1181
+ };
1182
+ };
1183
+
1184
+ const getRuntimeConfig = (config) => {
1185
+ emitWarningIfUnsupportedVersion(process.version);
1186
+ const defaultsMode = resolveDefaultsModeConfig(config);
1187
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
1188
+ const clientSharedValues = getRuntimeConfig$1(config);
1189
+ emitWarningIfUnsupportedVersion$1(process.version);
1190
+ const loaderConfig = {
1191
+ profile: config?.profile,
1192
+ logger: clientSharedValues.logger,
1193
+ };
1194
+ return {
1195
+ ...clientSharedValues,
1196
+ ...config,
1197
+ runtime: "node",
1198
+ defaultsMode,
1199
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
1200
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
1201
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
1202
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
1203
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1204
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
1205
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
1206
+ retryMode: config?.retryMode ??
1207
+ loadConfig({
1208
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1209
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1210
+ }, config),
1211
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1212
+ streamCollector: config?.streamCollector ?? streamCollector,
1213
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1214
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1215
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
1216
+ };
1217
+ };
1218
+
34
1219
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
1220
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
1221
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -615,49 +1800,187 @@ const Status = {
615
1800
  exports.AdditionalConstraintsElement = AdditionalConstraintsElement;
616
1801
  exports.AmplifyBackend = AmplifyBackend;
617
1802
  exports.AmplifyBackendClient = AmplifyBackendClient;
1803
+ exports.AmplifyBackendServiceException = AmplifyBackendServiceException;
1804
+ exports.AmplifyBackendServiceException$ = AmplifyBackendServiceException$;
618
1805
  exports.AuthResources = AuthResources;
619
1806
  exports.AuthenticatedElement = AuthenticatedElement;
1807
+ exports.BackendAPIAppSyncAuthSettings$ = BackendAPIAppSyncAuthSettings$;
1808
+ exports.BackendAPIAuthType$ = BackendAPIAuthType$;
1809
+ exports.BackendAPIConflictResolution$ = BackendAPIConflictResolution$;
1810
+ exports.BackendAPIResourceConfig$ = BackendAPIResourceConfig$;
1811
+ exports.BackendAuthAppleProviderConfig$ = BackendAuthAppleProviderConfig$;
1812
+ exports.BackendAuthSocialProviderConfig$ = BackendAuthSocialProviderConfig$;
1813
+ exports.BackendJobRespObj$ = BackendJobRespObj$;
1814
+ exports.BackendStoragePermissions$ = BackendStoragePermissions$;
1815
+ exports.BadRequestException = BadRequestException;
1816
+ exports.BadRequestException$ = BadRequestException$;
1817
+ exports.CloneBackend$ = CloneBackend$;
620
1818
  exports.CloneBackendCommand = CloneBackendCommand;
1819
+ exports.CloneBackendRequest$ = CloneBackendRequest$;
1820
+ exports.CloneBackendResponse$ = CloneBackendResponse$;
1821
+ exports.CreateBackend$ = CreateBackend$;
1822
+ exports.CreateBackendAPI$ = CreateBackendAPI$;
621
1823
  exports.CreateBackendAPICommand = CreateBackendAPICommand;
1824
+ exports.CreateBackendAPIRequest$ = CreateBackendAPIRequest$;
1825
+ exports.CreateBackendAPIResponse$ = CreateBackendAPIResponse$;
1826
+ exports.CreateBackendAuth$ = CreateBackendAuth$;
622
1827
  exports.CreateBackendAuthCommand = CreateBackendAuthCommand;
1828
+ exports.CreateBackendAuthForgotPasswordConfig$ = CreateBackendAuthForgotPasswordConfig$;
1829
+ exports.CreateBackendAuthIdentityPoolConfig$ = CreateBackendAuthIdentityPoolConfig$;
1830
+ exports.CreateBackendAuthMFAConfig$ = CreateBackendAuthMFAConfig$;
1831
+ exports.CreateBackendAuthOAuthConfig$ = CreateBackendAuthOAuthConfig$;
1832
+ exports.CreateBackendAuthPasswordPolicyConfig$ = CreateBackendAuthPasswordPolicyConfig$;
1833
+ exports.CreateBackendAuthRequest$ = CreateBackendAuthRequest$;
1834
+ exports.CreateBackendAuthResourceConfig$ = CreateBackendAuthResourceConfig$;
1835
+ exports.CreateBackendAuthResponse$ = CreateBackendAuthResponse$;
1836
+ exports.CreateBackendAuthUserPoolConfig$ = CreateBackendAuthUserPoolConfig$;
1837
+ exports.CreateBackendAuthVerificationMessageConfig$ = CreateBackendAuthVerificationMessageConfig$;
623
1838
  exports.CreateBackendCommand = CreateBackendCommand;
1839
+ exports.CreateBackendConfig$ = CreateBackendConfig$;
624
1840
  exports.CreateBackendConfigCommand = CreateBackendConfigCommand;
1841
+ exports.CreateBackendConfigRequest$ = CreateBackendConfigRequest$;
1842
+ exports.CreateBackendConfigResponse$ = CreateBackendConfigResponse$;
1843
+ exports.CreateBackendRequest$ = CreateBackendRequest$;
1844
+ exports.CreateBackendResponse$ = CreateBackendResponse$;
1845
+ exports.CreateBackendStorage$ = CreateBackendStorage$;
625
1846
  exports.CreateBackendStorageCommand = CreateBackendStorageCommand;
1847
+ exports.CreateBackendStorageRequest$ = CreateBackendStorageRequest$;
1848
+ exports.CreateBackendStorageResourceConfig$ = CreateBackendStorageResourceConfig$;
1849
+ exports.CreateBackendStorageResponse$ = CreateBackendStorageResponse$;
1850
+ exports.CreateToken$ = CreateToken$;
626
1851
  exports.CreateTokenCommand = CreateTokenCommand;
1852
+ exports.CreateTokenRequest$ = CreateTokenRequest$;
1853
+ exports.CreateTokenResponse$ = CreateTokenResponse$;
1854
+ exports.DeleteBackend$ = DeleteBackend$;
1855
+ exports.DeleteBackendAPI$ = DeleteBackendAPI$;
627
1856
  exports.DeleteBackendAPICommand = DeleteBackendAPICommand;
1857
+ exports.DeleteBackendAPIRequest$ = DeleteBackendAPIRequest$;
1858
+ exports.DeleteBackendAPIResponse$ = DeleteBackendAPIResponse$;
1859
+ exports.DeleteBackendAuth$ = DeleteBackendAuth$;
628
1860
  exports.DeleteBackendAuthCommand = DeleteBackendAuthCommand;
1861
+ exports.DeleteBackendAuthRequest$ = DeleteBackendAuthRequest$;
1862
+ exports.DeleteBackendAuthResponse$ = DeleteBackendAuthResponse$;
629
1863
  exports.DeleteBackendCommand = DeleteBackendCommand;
1864
+ exports.DeleteBackendRequest$ = DeleteBackendRequest$;
1865
+ exports.DeleteBackendResponse$ = DeleteBackendResponse$;
1866
+ exports.DeleteBackendStorage$ = DeleteBackendStorage$;
630
1867
  exports.DeleteBackendStorageCommand = DeleteBackendStorageCommand;
1868
+ exports.DeleteBackendStorageRequest$ = DeleteBackendStorageRequest$;
1869
+ exports.DeleteBackendStorageResponse$ = DeleteBackendStorageResponse$;
1870
+ exports.DeleteToken$ = DeleteToken$;
631
1871
  exports.DeleteTokenCommand = DeleteTokenCommand;
1872
+ exports.DeleteTokenRequest$ = DeleteTokenRequest$;
1873
+ exports.DeleteTokenResponse$ = DeleteTokenResponse$;
632
1874
  exports.DeliveryMethod = DeliveryMethod;
1875
+ exports.EmailSettings$ = EmailSettings$;
1876
+ exports.GatewayTimeoutException = GatewayTimeoutException;
1877
+ exports.GatewayTimeoutException$ = GatewayTimeoutException$;
1878
+ exports.GenerateBackendAPIModels$ = GenerateBackendAPIModels$;
633
1879
  exports.GenerateBackendAPIModelsCommand = GenerateBackendAPIModelsCommand;
1880
+ exports.GenerateBackendAPIModelsRequest$ = GenerateBackendAPIModelsRequest$;
1881
+ exports.GenerateBackendAPIModelsResponse$ = GenerateBackendAPIModelsResponse$;
1882
+ exports.GetBackend$ = GetBackend$;
1883
+ exports.GetBackendAPI$ = GetBackendAPI$;
634
1884
  exports.GetBackendAPICommand = GetBackendAPICommand;
1885
+ exports.GetBackendAPIModels$ = GetBackendAPIModels$;
635
1886
  exports.GetBackendAPIModelsCommand = GetBackendAPIModelsCommand;
1887
+ exports.GetBackendAPIModelsRequest$ = GetBackendAPIModelsRequest$;
1888
+ exports.GetBackendAPIModelsResponse$ = GetBackendAPIModelsResponse$;
1889
+ exports.GetBackendAPIRequest$ = GetBackendAPIRequest$;
1890
+ exports.GetBackendAPIResponse$ = GetBackendAPIResponse$;
1891
+ exports.GetBackendAuth$ = GetBackendAuth$;
636
1892
  exports.GetBackendAuthCommand = GetBackendAuthCommand;
1893
+ exports.GetBackendAuthRequest$ = GetBackendAuthRequest$;
1894
+ exports.GetBackendAuthResponse$ = GetBackendAuthResponse$;
637
1895
  exports.GetBackendCommand = GetBackendCommand;
1896
+ exports.GetBackendJob$ = GetBackendJob$;
638
1897
  exports.GetBackendJobCommand = GetBackendJobCommand;
1898
+ exports.GetBackendJobRequest$ = GetBackendJobRequest$;
1899
+ exports.GetBackendJobResponse$ = GetBackendJobResponse$;
1900
+ exports.GetBackendRequest$ = GetBackendRequest$;
1901
+ exports.GetBackendResponse$ = GetBackendResponse$;
1902
+ exports.GetBackendStorage$ = GetBackendStorage$;
639
1903
  exports.GetBackendStorageCommand = GetBackendStorageCommand;
1904
+ exports.GetBackendStorageRequest$ = GetBackendStorageRequest$;
1905
+ exports.GetBackendStorageResourceConfig$ = GetBackendStorageResourceConfig$;
1906
+ exports.GetBackendStorageResponse$ = GetBackendStorageResponse$;
1907
+ exports.GetToken$ = GetToken$;
640
1908
  exports.GetTokenCommand = GetTokenCommand;
1909
+ exports.GetTokenRequest$ = GetTokenRequest$;
1910
+ exports.GetTokenResponse$ = GetTokenResponse$;
1911
+ exports.ImportBackendAuth$ = ImportBackendAuth$;
641
1912
  exports.ImportBackendAuthCommand = ImportBackendAuthCommand;
1913
+ exports.ImportBackendAuthRequest$ = ImportBackendAuthRequest$;
1914
+ exports.ImportBackendAuthResponse$ = ImportBackendAuthResponse$;
1915
+ exports.ImportBackendStorage$ = ImportBackendStorage$;
642
1916
  exports.ImportBackendStorageCommand = ImportBackendStorageCommand;
1917
+ exports.ImportBackendStorageRequest$ = ImportBackendStorageRequest$;
1918
+ exports.ImportBackendStorageResponse$ = ImportBackendStorageResponse$;
1919
+ exports.ListBackendJobs$ = ListBackendJobs$;
643
1920
  exports.ListBackendJobsCommand = ListBackendJobsCommand;
1921
+ exports.ListBackendJobsRequest$ = ListBackendJobsRequest$;
1922
+ exports.ListBackendJobsResponse$ = ListBackendJobsResponse$;
1923
+ exports.ListS3Buckets$ = ListS3Buckets$;
644
1924
  exports.ListS3BucketsCommand = ListS3BucketsCommand;
1925
+ exports.ListS3BucketsRequest$ = ListS3BucketsRequest$;
1926
+ exports.ListS3BucketsResponse$ = ListS3BucketsResponse$;
1927
+ exports.LoginAuthConfigReqObj$ = LoginAuthConfigReqObj$;
645
1928
  exports.MFAMode = MFAMode;
646
1929
  exports.MfaTypesElement = MfaTypesElement;
647
1930
  exports.Mode = Mode;
1931
+ exports.NotFoundException = NotFoundException;
1932
+ exports.NotFoundException$ = NotFoundException$;
648
1933
  exports.OAuthGrantType = OAuthGrantType;
649
1934
  exports.OAuthScopesElement = OAuthScopesElement;
1935
+ exports.RemoveAllBackends$ = RemoveAllBackends$;
650
1936
  exports.RemoveAllBackendsCommand = RemoveAllBackendsCommand;
1937
+ exports.RemoveAllBackendsRequest$ = RemoveAllBackendsRequest$;
1938
+ exports.RemoveAllBackendsResponse$ = RemoveAllBackendsResponse$;
1939
+ exports.RemoveBackendConfig$ = RemoveBackendConfig$;
651
1940
  exports.RemoveBackendConfigCommand = RemoveBackendConfigCommand;
1941
+ exports.RemoveBackendConfigRequest$ = RemoveBackendConfigRequest$;
1942
+ exports.RemoveBackendConfigResponse$ = RemoveBackendConfigResponse$;
652
1943
  exports.RequiredSignUpAttributesElement = RequiredSignUpAttributesElement;
653
1944
  exports.ResolutionStrategy = ResolutionStrategy;
1945
+ exports.ResourceConfig$ = ResourceConfig$;
1946
+ exports.S3BucketInfo$ = S3BucketInfo$;
654
1947
  exports.Service = Service;
655
1948
  exports.ServiceName = ServiceName;
1949
+ exports.Settings$ = Settings$;
656
1950
  exports.SignInMethod = SignInMethod;
1951
+ exports.SmsSettings$ = SmsSettings$;
1952
+ exports.SocialProviderSettings$ = SocialProviderSettings$;
657
1953
  exports.Status = Status;
1954
+ exports.TooManyRequestsException = TooManyRequestsException;
1955
+ exports.TooManyRequestsException$ = TooManyRequestsException$;
658
1956
  exports.UnAuthenticatedElement = UnAuthenticatedElement;
1957
+ exports.UpdateBackendAPI$ = UpdateBackendAPI$;
659
1958
  exports.UpdateBackendAPICommand = UpdateBackendAPICommand;
1959
+ exports.UpdateBackendAPIRequest$ = UpdateBackendAPIRequest$;
1960
+ exports.UpdateBackendAPIResponse$ = UpdateBackendAPIResponse$;
1961
+ exports.UpdateBackendAuth$ = UpdateBackendAuth$;
660
1962
  exports.UpdateBackendAuthCommand = UpdateBackendAuthCommand;
1963
+ exports.UpdateBackendAuthForgotPasswordConfig$ = UpdateBackendAuthForgotPasswordConfig$;
1964
+ exports.UpdateBackendAuthIdentityPoolConfig$ = UpdateBackendAuthIdentityPoolConfig$;
1965
+ exports.UpdateBackendAuthMFAConfig$ = UpdateBackendAuthMFAConfig$;
1966
+ exports.UpdateBackendAuthOAuthConfig$ = UpdateBackendAuthOAuthConfig$;
1967
+ exports.UpdateBackendAuthPasswordPolicyConfig$ = UpdateBackendAuthPasswordPolicyConfig$;
1968
+ exports.UpdateBackendAuthRequest$ = UpdateBackendAuthRequest$;
1969
+ exports.UpdateBackendAuthResourceConfig$ = UpdateBackendAuthResourceConfig$;
1970
+ exports.UpdateBackendAuthResponse$ = UpdateBackendAuthResponse$;
1971
+ exports.UpdateBackendAuthUserPoolConfig$ = UpdateBackendAuthUserPoolConfig$;
1972
+ exports.UpdateBackendAuthVerificationMessageConfig$ = UpdateBackendAuthVerificationMessageConfig$;
1973
+ exports.UpdateBackendConfig$ = UpdateBackendConfig$;
661
1974
  exports.UpdateBackendConfigCommand = UpdateBackendConfigCommand;
1975
+ exports.UpdateBackendConfigRequest$ = UpdateBackendConfigRequest$;
1976
+ exports.UpdateBackendConfigResponse$ = UpdateBackendConfigResponse$;
1977
+ exports.UpdateBackendJob$ = UpdateBackendJob$;
662
1978
  exports.UpdateBackendJobCommand = UpdateBackendJobCommand;
1979
+ exports.UpdateBackendJobRequest$ = UpdateBackendJobRequest$;
1980
+ exports.UpdateBackendJobResponse$ = UpdateBackendJobResponse$;
1981
+ exports.UpdateBackendStorage$ = UpdateBackendStorage$;
663
1982
  exports.UpdateBackendStorageCommand = UpdateBackendStorageCommand;
1983
+ exports.UpdateBackendStorageRequest$ = UpdateBackendStorageRequest$;
1984
+ exports.UpdateBackendStorageResourceConfig$ = UpdateBackendStorageResourceConfig$;
1985
+ exports.UpdateBackendStorageResponse$ = UpdateBackendStorageResponse$;
1986
+ exports.errorTypeRegistries = errorTypeRegistries;