@aws-sdk/client-amplifybackend 3.300.0 → 3.303.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist-cjs/models/models_0.js +91 -107
  2. package/dist-es/models/models_0.js +91 -107
  3. package/dist-types/commands/CloneBackendCommand.d.ts +1 -1
  4. package/dist-types/commands/CreateBackendAPICommand.d.ts +6 -6
  5. package/dist-types/commands/CreateBackendAuthCommand.d.ts +20 -20
  6. package/dist-types/commands/CreateBackendCommand.d.ts +1 -1
  7. package/dist-types/commands/CreateBackendConfigCommand.d.ts +1 -1
  8. package/dist-types/commands/CreateBackendStorageCommand.d.ts +5 -5
  9. package/dist-types/commands/CreateTokenCommand.d.ts +1 -1
  10. package/dist-types/commands/DeleteBackendAPICommand.d.ts +6 -6
  11. package/dist-types/commands/DeleteBackendAuthCommand.d.ts +1 -1
  12. package/dist-types/commands/DeleteBackendCommand.d.ts +1 -1
  13. package/dist-types/commands/DeleteBackendStorageCommand.d.ts +1 -1
  14. package/dist-types/commands/DeleteTokenCommand.d.ts +1 -1
  15. package/dist-types/commands/GenerateBackendAPIModelsCommand.d.ts +1 -1
  16. package/dist-types/commands/GetBackendAPICommand.d.ts +6 -6
  17. package/dist-types/commands/GetBackendAPIModelsCommand.d.ts +1 -1
  18. package/dist-types/commands/GetBackendAuthCommand.d.ts +1 -1
  19. package/dist-types/commands/GetBackendCommand.d.ts +1 -1
  20. package/dist-types/commands/GetBackendJobCommand.d.ts +1 -1
  21. package/dist-types/commands/GetBackendStorageCommand.d.ts +1 -1
  22. package/dist-types/commands/GetTokenCommand.d.ts +1 -1
  23. package/dist-types/commands/ImportBackendAuthCommand.d.ts +1 -1
  24. package/dist-types/commands/ImportBackendStorageCommand.d.ts +1 -1
  25. package/dist-types/commands/ListBackendJobsCommand.d.ts +1 -1
  26. package/dist-types/commands/ListS3BucketsCommand.d.ts +1 -1
  27. package/dist-types/commands/RemoveAllBackendsCommand.d.ts +1 -1
  28. package/dist-types/commands/RemoveBackendConfigCommand.d.ts +1 -1
  29. package/dist-types/commands/UpdateBackendAPICommand.d.ts +6 -6
  30. package/dist-types/commands/UpdateBackendAuthCommand.d.ts +19 -19
  31. package/dist-types/commands/UpdateBackendConfigCommand.d.ts +2 -2
  32. package/dist-types/commands/UpdateBackendJobCommand.d.ts +1 -1
  33. package/dist-types/commands/UpdateBackendStorageCommand.d.ts +5 -5
  34. package/dist-types/models/models_0.d.ts +171 -91
  35. package/dist-types/ts3.4/models/models_0.d.ts +116 -91
  36. package/package.json +34 -34
@@ -2,13 +2,18 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
2
2
  import { AmplifyBackendServiceException as __BaseException } from "./AmplifyBackendServiceException";
3
3
  /**
4
4
  * @public
5
+ * @enum
5
6
  */
6
- export declare enum AdditionalConstraintsElement {
7
- REQUIRE_DIGIT = "REQUIRE_DIGIT",
8
- REQUIRE_LOWERCASE = "REQUIRE_LOWERCASE",
9
- REQUIRE_SYMBOL = "REQUIRE_SYMBOL",
10
- REQUIRE_UPPERCASE = "REQUIRE_UPPERCASE"
11
- }
7
+ export declare const AdditionalConstraintsElement: {
8
+ readonly REQUIRE_DIGIT: "REQUIRE_DIGIT";
9
+ readonly REQUIRE_LOWERCASE: "REQUIRE_LOWERCASE";
10
+ readonly REQUIRE_SYMBOL: "REQUIRE_SYMBOL";
11
+ readonly REQUIRE_UPPERCASE: "REQUIRE_UPPERCASE";
12
+ };
13
+ /**
14
+ * @public
15
+ */
16
+ export type AdditionalConstraintsElement = (typeof AdditionalConstraintsElement)[keyof typeof AdditionalConstraintsElement];
12
17
  /**
13
18
  * @public
14
19
  * <p>An error returned if a request is not formed properly.</p>
@@ -191,13 +196,18 @@ export interface CreateBackendResponse {
191
196
  }
192
197
  /**
193
198
  * @public
199
+ * @enum
194
200
  */
195
- export declare enum Mode {
196
- AMAZON_COGNITO_USER_POOLS = "AMAZON_COGNITO_USER_POOLS",
197
- API_KEY = "API_KEY",
198
- AWS_IAM = "AWS_IAM",
199
- OPENID_CONNECT = "OPENID_CONNECT"
200
- }
201
+ export declare const Mode: {
202
+ readonly AMAZON_COGNITO_USER_POOLS: "AMAZON_COGNITO_USER_POOLS";
203
+ readonly API_KEY: "API_KEY";
204
+ readonly AWS_IAM: "AWS_IAM";
205
+ readonly OPENID_CONNECT: "OPENID_CONNECT";
206
+ };
207
+ /**
208
+ * @public
209
+ */
210
+ export type Mode = (typeof Mode)[keyof typeof Mode];
201
211
  /**
202
212
  * @public
203
213
  * <p>The authentication settings for accessing provisioned data models in your Amplify project.</p>
@@ -252,13 +262,18 @@ export interface BackendAPIAuthType {
252
262
  }
253
263
  /**
254
264
  * @public
265
+ * @enum
255
266
  */
256
- export declare enum ResolutionStrategy {
257
- AUTOMERGE = "AUTOMERGE",
258
- LAMBDA = "LAMBDA",
259
- NONE = "NONE",
260
- OPTIMISTIC_CONCURRENCY = "OPTIMISTIC_CONCURRENCY"
261
- }
267
+ export declare const ResolutionStrategy: {
268
+ readonly AUTOMERGE: "AUTOMERGE";
269
+ readonly LAMBDA: "LAMBDA";
270
+ readonly NONE: "NONE";
271
+ readonly OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY";
272
+ };
273
+ /**
274
+ * @public
275
+ */
276
+ export type ResolutionStrategy = (typeof ResolutionStrategy)[keyof typeof ResolutionStrategy];
262
277
  /**
263
278
  * @public
264
279
  * <p>Describes the conflict resolution configuration for your data model configured in your Amplify project.</p>
@@ -352,11 +367,16 @@ export interface CreateBackendAPIResponse {
352
367
  }
353
368
  /**
354
369
  * @public
370
+ * @enum
355
371
  */
356
- export declare enum AuthResources {
357
- IDENTITY_POOL_AND_USER_POOL = "IDENTITY_POOL_AND_USER_POOL",
358
- USER_POOL_ONLY = "USER_POOL_ONLY"
359
- }
372
+ export declare const AuthResources: {
373
+ readonly IDENTITY_POOL_AND_USER_POOL: "IDENTITY_POOL_AND_USER_POOL";
374
+ readonly USER_POOL_ONLY: "USER_POOL_ONLY";
375
+ };
376
+ /**
377
+ * @public
378
+ */
379
+ export type AuthResources = (typeof AuthResources)[keyof typeof AuthResources];
360
380
  /**
361
381
  * @public
362
382
  * <p>Describes authorization configurations for the auth resources, configured as a part of your Amplify project.</p>
@@ -373,17 +393,27 @@ export interface CreateBackendAuthIdentityPoolConfig {
373
393
  }
374
394
  /**
375
395
  * @public
396
+ * @enum
376
397
  */
377
- export declare enum Service {
378
- COGNITO = "COGNITO"
379
- }
398
+ export declare const Service: {
399
+ readonly COGNITO: "COGNITO";
400
+ };
380
401
  /**
381
402
  * @public
382
403
  */
383
- export declare enum DeliveryMethod {
384
- EMAIL = "EMAIL",
385
- SMS = "SMS"
386
- }
404
+ export type Service = (typeof Service)[keyof typeof Service];
405
+ /**
406
+ * @public
407
+ * @enum
408
+ */
409
+ export declare const DeliveryMethod: {
410
+ readonly EMAIL: "EMAIL";
411
+ readonly SMS: "SMS";
412
+ };
413
+ /**
414
+ * @public
415
+ */
416
+ export type DeliveryMethod = (typeof DeliveryMethod)[keyof typeof DeliveryMethod];
387
417
  /**
388
418
  * @public
389
419
  * <p>The configuration for the email sent when an app user forgets their password.</p>
@@ -428,19 +458,29 @@ export interface CreateBackendAuthForgotPasswordConfig {
428
458
  }
429
459
  /**
430
460
  * @public
461
+ * @enum
431
462
  */
432
- export declare enum MFAMode {
433
- OFF = "OFF",
434
- ON = "ON",
435
- OPTIONAL = "OPTIONAL"
436
- }
463
+ export declare const MFAMode: {
464
+ readonly OFF: "OFF";
465
+ readonly ON: "ON";
466
+ readonly OPTIONAL: "OPTIONAL";
467
+ };
437
468
  /**
438
469
  * @public
439
470
  */
440
- export declare enum MfaTypesElement {
441
- SMS = "SMS",
442
- TOTP = "TOTP"
443
- }
471
+ export type MFAMode = (typeof MFAMode)[keyof typeof MFAMode];
472
+ /**
473
+ * @public
474
+ * @enum
475
+ */
476
+ export declare const MfaTypesElement: {
477
+ readonly SMS: "SMS";
478
+ readonly TOTP: "TOTP";
479
+ };
480
+ /**
481
+ * @public
482
+ */
483
+ export type MfaTypesElement = (typeof MfaTypesElement)[keyof typeof MfaTypesElement];
444
484
  /**
445
485
  * @public
446
486
  * <p>The settings of your MFA configuration for the backend of your Amplify project.</p>
@@ -471,21 +511,31 @@ export interface CreateBackendAuthMFAConfig {
471
511
  }
472
512
  /**
473
513
  * @public
514
+ * @enum
474
515
  */
475
- export declare enum OAuthGrantType {
476
- CODE = "CODE",
477
- IMPLICIT = "IMPLICIT"
478
- }
516
+ export declare const OAuthGrantType: {
517
+ readonly CODE: "CODE";
518
+ readonly IMPLICIT: "IMPLICIT";
519
+ };
479
520
  /**
480
521
  * @public
481
522
  */
482
- export declare enum OAuthScopesElement {
483
- AWS_COGNITO_SIGNIN_USER_ADMIN = "AWS_COGNITO_SIGNIN_USER_ADMIN",
484
- EMAIL = "EMAIL",
485
- OPENID = "OPENID",
486
- PHONE = "PHONE",
487
- PROFILE = "PROFILE"
488
- }
523
+ export type OAuthGrantType = (typeof OAuthGrantType)[keyof typeof OAuthGrantType];
524
+ /**
525
+ * @public
526
+ * @enum
527
+ */
528
+ export declare const OAuthScopesElement: {
529
+ readonly AWS_COGNITO_SIGNIN_USER_ADMIN: "AWS_COGNITO_SIGNIN_USER_ADMIN";
530
+ readonly EMAIL: "EMAIL";
531
+ readonly OPENID: "OPENID";
532
+ readonly PHONE: "PHONE";
533
+ readonly PROFILE: "PROFILE";
534
+ };
535
+ /**
536
+ * @public
537
+ */
538
+ export type OAuthScopesElement = (typeof OAuthScopesElement)[keyof typeof OAuthScopesElement];
489
539
  /**
490
540
  * @public
491
541
  * <p>Describes third-party social federation configurations for allowing your app users to sign in using OAuth.</p>
@@ -590,35 +640,45 @@ export interface CreateBackendAuthPasswordPolicyConfig {
590
640
  }
591
641
  /**
592
642
  * @public
643
+ * @enum
593
644
  */
594
- export declare enum RequiredSignUpAttributesElement {
595
- ADDRESS = "ADDRESS",
596
- BIRTHDATE = "BIRTHDATE",
597
- EMAIL = "EMAIL",
598
- FAMILY_NAME = "FAMILY_NAME",
599
- GENDER = "GENDER",
600
- GIVEN_NAME = "GIVEN_NAME",
601
- LOCALE = "LOCALE",
602
- MIDDLE_NAME = "MIDDLE_NAME",
603
- NAME = "NAME",
604
- NICKNAME = "NICKNAME",
605
- PHONE_NUMBER = "PHONE_NUMBER",
606
- PICTURE = "PICTURE",
607
- PREFERRED_USERNAME = "PREFERRED_USERNAME",
608
- PROFILE = "PROFILE",
609
- UPDATED_AT = "UPDATED_AT",
610
- WEBSITE = "WEBSITE",
611
- ZONE_INFO = "ZONE_INFO"
612
- }
645
+ export declare const RequiredSignUpAttributesElement: {
646
+ readonly ADDRESS: "ADDRESS";
647
+ readonly BIRTHDATE: "BIRTHDATE";
648
+ readonly EMAIL: "EMAIL";
649
+ readonly FAMILY_NAME: "FAMILY_NAME";
650
+ readonly GENDER: "GENDER";
651
+ readonly GIVEN_NAME: "GIVEN_NAME";
652
+ readonly LOCALE: "LOCALE";
653
+ readonly MIDDLE_NAME: "MIDDLE_NAME";
654
+ readonly NAME: "NAME";
655
+ readonly NICKNAME: "NICKNAME";
656
+ readonly PHONE_NUMBER: "PHONE_NUMBER";
657
+ readonly PICTURE: "PICTURE";
658
+ readonly PREFERRED_USERNAME: "PREFERRED_USERNAME";
659
+ readonly PROFILE: "PROFILE";
660
+ readonly UPDATED_AT: "UPDATED_AT";
661
+ readonly WEBSITE: "WEBSITE";
662
+ readonly ZONE_INFO: "ZONE_INFO";
663
+ };
613
664
  /**
614
665
  * @public
615
666
  */
616
- export declare enum SignInMethod {
617
- EMAIL = "EMAIL",
618
- EMAIL_AND_PHONE_NUMBER = "EMAIL_AND_PHONE_NUMBER",
619
- PHONE_NUMBER = "PHONE_NUMBER",
620
- USERNAME = "USERNAME"
621
- }
667
+ export type RequiredSignUpAttributesElement = (typeof RequiredSignUpAttributesElement)[keyof typeof RequiredSignUpAttributesElement];
668
+ /**
669
+ * @public
670
+ * @enum
671
+ */
672
+ export declare const SignInMethod: {
673
+ readonly EMAIL: "EMAIL";
674
+ readonly EMAIL_AND_PHONE_NUMBER: "EMAIL_AND_PHONE_NUMBER";
675
+ readonly PHONE_NUMBER: "PHONE_NUMBER";
676
+ readonly USERNAME: "USERNAME";
677
+ };
678
+ /**
679
+ * @public
680
+ */
681
+ export type SignInMethod = (typeof SignInMethod)[keyof typeof SignInMethod];
622
682
  /**
623
683
  * @public
624
684
  * <p>Creates an email or SMS verification message for the auth resource configured for your Amplify project.</p>
@@ -785,20 +845,30 @@ export interface CreateBackendConfigResponse {
785
845
  }
786
846
  /**
787
847
  * @public
848
+ * @enum
788
849
  */
789
- export declare enum AuthenticatedElement {
790
- CREATE_AND_UPDATE = "CREATE_AND_UPDATE",
791
- DELETE = "DELETE",
792
- READ = "READ"
793
- }
850
+ export declare const AuthenticatedElement: {
851
+ readonly CREATE_AND_UPDATE: "CREATE_AND_UPDATE";
852
+ readonly DELETE: "DELETE";
853
+ readonly READ: "READ";
854
+ };
794
855
  /**
795
856
  * @public
796
857
  */
797
- export declare enum UnAuthenticatedElement {
798
- CREATE_AND_UPDATE = "CREATE_AND_UPDATE",
799
- DELETE = "DELETE",
800
- READ = "READ"
801
- }
858
+ export type AuthenticatedElement = (typeof AuthenticatedElement)[keyof typeof AuthenticatedElement];
859
+ /**
860
+ * @public
861
+ * @enum
862
+ */
863
+ export declare const UnAuthenticatedElement: {
864
+ readonly CREATE_AND_UPDATE: "CREATE_AND_UPDATE";
865
+ readonly DELETE: "DELETE";
866
+ readonly READ: "READ";
867
+ };
868
+ /**
869
+ * @public
870
+ */
871
+ export type UnAuthenticatedElement = (typeof UnAuthenticatedElement)[keyof typeof UnAuthenticatedElement];
802
872
  /**
803
873
  * @public
804
874
  * <p>Describes the read, write, and delete permissions users have against your storage S3 bucket.</p>
@@ -815,10 +885,15 @@ export interface BackendStoragePermissions {
815
885
  }
816
886
  /**
817
887
  * @public
888
+ * @enum
818
889
  */
819
- export declare enum ServiceName {
820
- S3 = "S3"
821
- }
890
+ export declare const ServiceName: {
891
+ readonly S3: "S3";
892
+ };
893
+ /**
894
+ * @public
895
+ */
896
+ export type ServiceName = (typeof ServiceName)[keyof typeof ServiceName];
822
897
  /**
823
898
  * @public
824
899
  * <p>The resource configuration for creating backend storage.</p>
@@ -1276,11 +1351,16 @@ export interface GetBackendAPIModelsRequest {
1276
1351
  }
1277
1352
  /**
1278
1353
  * @public
1354
+ * @enum
1279
1355
  */
1280
- export declare enum Status {
1281
- LATEST = "LATEST",
1282
- STALE = "STALE"
1283
- }
1356
+ export declare const Status: {
1357
+ readonly LATEST: "LATEST";
1358
+ readonly STALE: "STALE";
1359
+ };
1360
+ /**
1361
+ * @public
1362
+ */
1363
+ export type Status = (typeof Status)[keyof typeof Status];
1284
1364
  /**
1285
1365
  * @public
1286
1366
  */
@@ -1,11 +1,13 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { AmplifyBackendServiceException as __BaseException } from "./AmplifyBackendServiceException";
3
- export declare enum AdditionalConstraintsElement {
4
- REQUIRE_DIGIT = "REQUIRE_DIGIT",
5
- REQUIRE_LOWERCASE = "REQUIRE_LOWERCASE",
6
- REQUIRE_SYMBOL = "REQUIRE_SYMBOL",
7
- REQUIRE_UPPERCASE = "REQUIRE_UPPERCASE",
8
- }
3
+ export declare const AdditionalConstraintsElement: {
4
+ readonly REQUIRE_DIGIT: "REQUIRE_DIGIT";
5
+ readonly REQUIRE_LOWERCASE: "REQUIRE_LOWERCASE";
6
+ readonly REQUIRE_SYMBOL: "REQUIRE_SYMBOL";
7
+ readonly REQUIRE_UPPERCASE: "REQUIRE_UPPERCASE";
8
+ };
9
+ export type AdditionalConstraintsElement =
10
+ (typeof AdditionalConstraintsElement)[keyof typeof AdditionalConstraintsElement];
9
11
  export declare class BadRequestException extends __BaseException {
10
12
  readonly name: "BadRequestException";
11
13
  readonly $fault: "client";
@@ -67,12 +69,13 @@ export interface CreateBackendResponse {
67
69
  Operation?: string;
68
70
  Status?: string;
69
71
  }
70
- export declare enum Mode {
71
- AMAZON_COGNITO_USER_POOLS = "AMAZON_COGNITO_USER_POOLS",
72
- API_KEY = "API_KEY",
73
- AWS_IAM = "AWS_IAM",
74
- OPENID_CONNECT = "OPENID_CONNECT",
75
- }
72
+ export declare const Mode: {
73
+ readonly AMAZON_COGNITO_USER_POOLS: "AMAZON_COGNITO_USER_POOLS";
74
+ readonly API_KEY: "API_KEY";
75
+ readonly AWS_IAM: "AWS_IAM";
76
+ readonly OPENID_CONNECT: "OPENID_CONNECT";
77
+ };
78
+ export type Mode = (typeof Mode)[keyof typeof Mode];
76
79
  export interface BackendAPIAppSyncAuthSettings {
77
80
  CognitoUserPoolId?: string;
78
81
  Description?: string;
@@ -87,12 +90,14 @@ export interface BackendAPIAuthType {
87
90
  Mode?: Mode | string;
88
91
  Settings?: BackendAPIAppSyncAuthSettings;
89
92
  }
90
- export declare enum ResolutionStrategy {
91
- AUTOMERGE = "AUTOMERGE",
92
- LAMBDA = "LAMBDA",
93
- NONE = "NONE",
94
- OPTIMISTIC_CONCURRENCY = "OPTIMISTIC_CONCURRENCY",
95
- }
93
+ export declare const ResolutionStrategy: {
94
+ readonly AUTOMERGE: "AUTOMERGE";
95
+ readonly LAMBDA: "LAMBDA";
96
+ readonly NONE: "NONE";
97
+ readonly OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY";
98
+ };
99
+ export type ResolutionStrategy =
100
+ (typeof ResolutionStrategy)[keyof typeof ResolutionStrategy];
96
101
  export interface BackendAPIConflictResolution {
97
102
  ResolutionStrategy?: ResolutionStrategy | string;
98
103
  }
@@ -118,21 +123,25 @@ export interface CreateBackendAPIResponse {
118
123
  Operation?: string;
119
124
  Status?: string;
120
125
  }
121
- export declare enum AuthResources {
122
- IDENTITY_POOL_AND_USER_POOL = "IDENTITY_POOL_AND_USER_POOL",
123
- USER_POOL_ONLY = "USER_POOL_ONLY",
124
- }
126
+ export declare const AuthResources: {
127
+ readonly IDENTITY_POOL_AND_USER_POOL: "IDENTITY_POOL_AND_USER_POOL";
128
+ readonly USER_POOL_ONLY: "USER_POOL_ONLY";
129
+ };
130
+ export type AuthResources = (typeof AuthResources)[keyof typeof AuthResources];
125
131
  export interface CreateBackendAuthIdentityPoolConfig {
126
132
  IdentityPoolName: string | undefined;
127
133
  UnauthenticatedLogin: boolean | undefined;
128
134
  }
129
- export declare enum Service {
130
- COGNITO = "COGNITO",
131
- }
132
- export declare enum DeliveryMethod {
133
- EMAIL = "EMAIL",
134
- SMS = "SMS",
135
- }
135
+ export declare const Service: {
136
+ readonly COGNITO: "COGNITO";
137
+ };
138
+ export type Service = (typeof Service)[keyof typeof Service];
139
+ export declare const DeliveryMethod: {
140
+ readonly EMAIL: "EMAIL";
141
+ readonly SMS: "SMS";
142
+ };
143
+ export type DeliveryMethod =
144
+ (typeof DeliveryMethod)[keyof typeof DeliveryMethod];
136
145
  export interface EmailSettings {
137
146
  EmailMessage?: string;
138
147
  EmailSubject?: string;
@@ -145,15 +154,18 @@ export interface CreateBackendAuthForgotPasswordConfig {
145
154
  EmailSettings?: EmailSettings;
146
155
  SmsSettings?: SmsSettings;
147
156
  }
148
- export declare enum MFAMode {
149
- OFF = "OFF",
150
- ON = "ON",
151
- OPTIONAL = "OPTIONAL",
152
- }
153
- export declare enum MfaTypesElement {
154
- SMS = "SMS",
155
- TOTP = "TOTP",
156
- }
157
+ export declare const MFAMode: {
158
+ readonly OFF: "OFF";
159
+ readonly ON: "ON";
160
+ readonly OPTIONAL: "OPTIONAL";
161
+ };
162
+ export type MFAMode = (typeof MFAMode)[keyof typeof MFAMode];
163
+ export declare const MfaTypesElement: {
164
+ readonly SMS: "SMS";
165
+ readonly TOTP: "TOTP";
166
+ };
167
+ export type MfaTypesElement =
168
+ (typeof MfaTypesElement)[keyof typeof MfaTypesElement];
157
169
  export interface Settings {
158
170
  MfaTypes?: (MfaTypesElement | string)[];
159
171
  SmsMessage?: string;
@@ -162,17 +174,21 @@ export interface CreateBackendAuthMFAConfig {
162
174
  MFAMode: MFAMode | string | undefined;
163
175
  Settings?: Settings;
164
176
  }
165
- export declare enum OAuthGrantType {
166
- CODE = "CODE",
167
- IMPLICIT = "IMPLICIT",
168
- }
169
- export declare enum OAuthScopesElement {
170
- AWS_COGNITO_SIGNIN_USER_ADMIN = "AWS_COGNITO_SIGNIN_USER_ADMIN",
171
- EMAIL = "EMAIL",
172
- OPENID = "OPENID",
173
- PHONE = "PHONE",
174
- PROFILE = "PROFILE",
175
- }
177
+ export declare const OAuthGrantType: {
178
+ readonly CODE: "CODE";
179
+ readonly IMPLICIT: "IMPLICIT";
180
+ };
181
+ export type OAuthGrantType =
182
+ (typeof OAuthGrantType)[keyof typeof OAuthGrantType];
183
+ export declare const OAuthScopesElement: {
184
+ readonly AWS_COGNITO_SIGNIN_USER_ADMIN: "AWS_COGNITO_SIGNIN_USER_ADMIN";
185
+ readonly EMAIL: "EMAIL";
186
+ readonly OPENID: "OPENID";
187
+ readonly PHONE: "PHONE";
188
+ readonly PROFILE: "PROFILE";
189
+ };
190
+ export type OAuthScopesElement =
191
+ (typeof OAuthScopesElement)[keyof typeof OAuthScopesElement];
176
192
  export interface BackendAuthSocialProviderConfig {
177
193
  ClientId?: string;
178
194
  ClientSecret?: string;
@@ -201,31 +217,34 @@ export interface CreateBackendAuthPasswordPolicyConfig {
201
217
  AdditionalConstraints?: (AdditionalConstraintsElement | string)[];
202
218
  MinimumLength: number | undefined;
203
219
  }
204
- export declare enum RequiredSignUpAttributesElement {
205
- ADDRESS = "ADDRESS",
206
- BIRTHDATE = "BIRTHDATE",
207
- EMAIL = "EMAIL",
208
- FAMILY_NAME = "FAMILY_NAME",
209
- GENDER = "GENDER",
210
- GIVEN_NAME = "GIVEN_NAME",
211
- LOCALE = "LOCALE",
212
- MIDDLE_NAME = "MIDDLE_NAME",
213
- NAME = "NAME",
214
- NICKNAME = "NICKNAME",
215
- PHONE_NUMBER = "PHONE_NUMBER",
216
- PICTURE = "PICTURE",
217
- PREFERRED_USERNAME = "PREFERRED_USERNAME",
218
- PROFILE = "PROFILE",
219
- UPDATED_AT = "UPDATED_AT",
220
- WEBSITE = "WEBSITE",
221
- ZONE_INFO = "ZONE_INFO",
222
- }
223
- export declare enum SignInMethod {
224
- EMAIL = "EMAIL",
225
- EMAIL_AND_PHONE_NUMBER = "EMAIL_AND_PHONE_NUMBER",
226
- PHONE_NUMBER = "PHONE_NUMBER",
227
- USERNAME = "USERNAME",
228
- }
220
+ export declare const RequiredSignUpAttributesElement: {
221
+ readonly ADDRESS: "ADDRESS";
222
+ readonly BIRTHDATE: "BIRTHDATE";
223
+ readonly EMAIL: "EMAIL";
224
+ readonly FAMILY_NAME: "FAMILY_NAME";
225
+ readonly GENDER: "GENDER";
226
+ readonly GIVEN_NAME: "GIVEN_NAME";
227
+ readonly LOCALE: "LOCALE";
228
+ readonly MIDDLE_NAME: "MIDDLE_NAME";
229
+ readonly NAME: "NAME";
230
+ readonly NICKNAME: "NICKNAME";
231
+ readonly PHONE_NUMBER: "PHONE_NUMBER";
232
+ readonly PICTURE: "PICTURE";
233
+ readonly PREFERRED_USERNAME: "PREFERRED_USERNAME";
234
+ readonly PROFILE: "PROFILE";
235
+ readonly UPDATED_AT: "UPDATED_AT";
236
+ readonly WEBSITE: "WEBSITE";
237
+ readonly ZONE_INFO: "ZONE_INFO";
238
+ };
239
+ export type RequiredSignUpAttributesElement =
240
+ (typeof RequiredSignUpAttributesElement)[keyof typeof RequiredSignUpAttributesElement];
241
+ export declare const SignInMethod: {
242
+ readonly EMAIL: "EMAIL";
243
+ readonly EMAIL_AND_PHONE_NUMBER: "EMAIL_AND_PHONE_NUMBER";
244
+ readonly PHONE_NUMBER: "PHONE_NUMBER";
245
+ readonly USERNAME: "USERNAME";
246
+ };
247
+ export type SignInMethod = (typeof SignInMethod)[keyof typeof SignInMethod];
229
248
  export interface CreateBackendAuthVerificationMessageConfig {
230
249
  DeliveryMethod: DeliveryMethod | string | undefined;
231
250
  EmailSettings?: EmailSettings;
@@ -273,23 +292,28 @@ export interface CreateBackendConfigResponse {
273
292
  JobId?: string;
274
293
  Status?: string;
275
294
  }
276
- export declare enum AuthenticatedElement {
277
- CREATE_AND_UPDATE = "CREATE_AND_UPDATE",
278
- DELETE = "DELETE",
279
- READ = "READ",
280
- }
281
- export declare enum UnAuthenticatedElement {
282
- CREATE_AND_UPDATE = "CREATE_AND_UPDATE",
283
- DELETE = "DELETE",
284
- READ = "READ",
285
- }
295
+ export declare const AuthenticatedElement: {
296
+ readonly CREATE_AND_UPDATE: "CREATE_AND_UPDATE";
297
+ readonly DELETE: "DELETE";
298
+ readonly READ: "READ";
299
+ };
300
+ export type AuthenticatedElement =
301
+ (typeof AuthenticatedElement)[keyof typeof AuthenticatedElement];
302
+ export declare const UnAuthenticatedElement: {
303
+ readonly CREATE_AND_UPDATE: "CREATE_AND_UPDATE";
304
+ readonly DELETE: "DELETE";
305
+ readonly READ: "READ";
306
+ };
307
+ export type UnAuthenticatedElement =
308
+ (typeof UnAuthenticatedElement)[keyof typeof UnAuthenticatedElement];
286
309
  export interface BackendStoragePermissions {
287
310
  Authenticated: (AuthenticatedElement | string)[] | undefined;
288
311
  UnAuthenticated?: (UnAuthenticatedElement | string)[];
289
312
  }
290
- export declare enum ServiceName {
291
- S3 = "S3",
292
- }
313
+ export declare const ServiceName: {
314
+ readonly S3: "S3";
315
+ };
316
+ export type ServiceName = (typeof ServiceName)[keyof typeof ServiceName];
293
317
  export interface CreateBackendStorageResourceConfig {
294
318
  BucketName?: string;
295
319
  Permissions: BackendStoragePermissions | undefined;
@@ -418,10 +442,11 @@ export interface GetBackendAPIModelsRequest {
418
442
  BackendEnvironmentName: string | undefined;
419
443
  ResourceName: string | undefined;
420
444
  }
421
- export declare enum Status {
422
- LATEST = "LATEST",
423
- STALE = "STALE",
424
- }
445
+ export declare const Status: {
446
+ readonly LATEST: "LATEST";
447
+ readonly STALE: "STALE";
448
+ };
449
+ export type Status = (typeof Status)[keyof typeof Status];
425
450
  export interface GetBackendAPIModelsResponse {
426
451
  Models?: string;
427
452
  Status?: Status | string;