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