@aws-sdk/client-amplifybackend 3.490.0 → 3.495.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist-cjs/AmplifyBackend.js +1 -73
  2. package/dist-cjs/AmplifyBackendClient.js +1 -43
  3. package/dist-cjs/commands/CloneBackendCommand.js +1 -28
  4. package/dist-cjs/commands/CreateBackendAPICommand.js +1 -28
  5. package/dist-cjs/commands/CreateBackendAuthCommand.js +1 -29
  6. package/dist-cjs/commands/CreateBackendCommand.js +1 -28
  7. package/dist-cjs/commands/CreateBackendConfigCommand.js +1 -28
  8. package/dist-cjs/commands/CreateBackendStorageCommand.js +1 -28
  9. package/dist-cjs/commands/CreateTokenCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteBackendAPICommand.js +1 -28
  11. package/dist-cjs/commands/DeleteBackendAuthCommand.js +1 -28
  12. package/dist-cjs/commands/DeleteBackendCommand.js +1 -28
  13. package/dist-cjs/commands/DeleteBackendStorageCommand.js +1 -28
  14. package/dist-cjs/commands/DeleteTokenCommand.js +1 -28
  15. package/dist-cjs/commands/GenerateBackendAPIModelsCommand.js +1 -28
  16. package/dist-cjs/commands/GetBackendAPICommand.js +1 -28
  17. package/dist-cjs/commands/GetBackendAPIModelsCommand.js +1 -28
  18. package/dist-cjs/commands/GetBackendAuthCommand.js +1 -29
  19. package/dist-cjs/commands/GetBackendCommand.js +1 -28
  20. package/dist-cjs/commands/GetBackendJobCommand.js +1 -28
  21. package/dist-cjs/commands/GetBackendStorageCommand.js +1 -28
  22. package/dist-cjs/commands/GetTokenCommand.js +1 -28
  23. package/dist-cjs/commands/ImportBackendAuthCommand.js +1 -28
  24. package/dist-cjs/commands/ImportBackendStorageCommand.js +1 -28
  25. package/dist-cjs/commands/ListBackendJobsCommand.js +1 -28
  26. package/dist-cjs/commands/ListS3BucketsCommand.js +1 -28
  27. package/dist-cjs/commands/RemoveAllBackendsCommand.js +1 -28
  28. package/dist-cjs/commands/RemoveBackendConfigCommand.js +1 -28
  29. package/dist-cjs/commands/UpdateBackendAPICommand.js +1 -28
  30. package/dist-cjs/commands/UpdateBackendAuthCommand.js +1 -29
  31. package/dist-cjs/commands/UpdateBackendConfigCommand.js +1 -28
  32. package/dist-cjs/commands/UpdateBackendJobCommand.js +1 -28
  33. package/dist-cjs/commands/UpdateBackendStorageCommand.js +1 -28
  34. package/dist-cjs/commands/index.js +1 -34
  35. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  36. package/dist-cjs/extensionConfiguration.js +1 -2
  37. package/dist-cjs/index.js +3557 -10
  38. package/dist-cjs/models/AmplifyBackendServiceException.js +1 -12
  39. package/dist-cjs/models/index.js +1 -4
  40. package/dist-cjs/models/models_0.js +1 -267
  41. package/dist-cjs/protocols/Aws_restJson1.js +1 -2474
  42. package/dist-cjs/runtimeExtensions.js +1 -22
  43. package/package.json +40 -40
@@ -1,12 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AmplifyBackendServiceException = exports.__ServiceException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
- class AmplifyBackendServiceException extends smithy_client_1.ServiceException {
7
- constructor(options) {
8
- super(options);
9
- Object.setPrototypeOf(this, AmplifyBackendServiceException.prototype);
10
- }
11
- }
12
- exports.AmplifyBackendServiceException = AmplifyBackendServiceException;
1
+ module.exports = require("../index.js");
@@ -1,4 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./models_0"), exports);
1
+ module.exports = require("../index.js");
@@ -1,267 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateBackendAuthRequestFilterSensitiveLog = exports.UpdateBackendAuthResourceConfigFilterSensitiveLog = exports.UpdateBackendAuthUserPoolConfigFilterSensitiveLog = exports.UpdateBackendAuthVerificationMessageConfigFilterSensitiveLog = exports.UpdateBackendAuthOAuthConfigFilterSensitiveLog = exports.UpdateBackendAuthForgotPasswordConfigFilterSensitiveLog = exports.GetBackendAuthResponseFilterSensitiveLog = exports.CreateBackendAuthRequestFilterSensitiveLog = exports.CreateBackendAuthResourceConfigFilterSensitiveLog = exports.CreateBackendAuthUserPoolConfigFilterSensitiveLog = exports.CreateBackendAuthVerificationMessageConfigFilterSensitiveLog = exports.CreateBackendAuthOAuthConfigFilterSensitiveLog = exports.SocialProviderSettingsFilterSensitiveLog = exports.BackendAuthAppleProviderConfigFilterSensitiveLog = exports.BackendAuthSocialProviderConfigFilterSensitiveLog = exports.CreateBackendAuthForgotPasswordConfigFilterSensitiveLog = exports.SmsSettingsFilterSensitiveLog = exports.EmailSettingsFilterSensitiveLog = exports.Status = exports.ServiceName = exports.UnAuthenticatedElement = exports.AuthenticatedElement = exports.SignInMethod = exports.RequiredSignUpAttributesElement = exports.OAuthScopesElement = exports.OAuthGrantType = exports.MfaTypesElement = exports.MFAMode = exports.DeliveryMethod = exports.Service = exports.AuthResources = exports.ResolutionStrategy = exports.Mode = exports.TooManyRequestsException = exports.NotFoundException = exports.GatewayTimeoutException = exports.BadRequestException = exports.AdditionalConstraintsElement = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- const AmplifyBackendServiceException_1 = require("./AmplifyBackendServiceException");
6
- exports.AdditionalConstraintsElement = {
7
- REQUIRE_DIGIT: "REQUIRE_DIGIT",
8
- REQUIRE_LOWERCASE: "REQUIRE_LOWERCASE",
9
- REQUIRE_SYMBOL: "REQUIRE_SYMBOL",
10
- REQUIRE_UPPERCASE: "REQUIRE_UPPERCASE",
11
- };
12
- class BadRequestException extends AmplifyBackendServiceException_1.AmplifyBackendServiceException {
13
- constructor(opts) {
14
- super({
15
- name: "BadRequestException",
16
- $fault: "client",
17
- ...opts,
18
- });
19
- this.name = "BadRequestException";
20
- this.$fault = "client";
21
- Object.setPrototypeOf(this, BadRequestException.prototype);
22
- this.Message = opts.Message;
23
- }
24
- }
25
- exports.BadRequestException = BadRequestException;
26
- class GatewayTimeoutException extends AmplifyBackendServiceException_1.AmplifyBackendServiceException {
27
- constructor(opts) {
28
- super({
29
- name: "GatewayTimeoutException",
30
- $fault: "server",
31
- ...opts,
32
- });
33
- this.name = "GatewayTimeoutException";
34
- this.$fault = "server";
35
- Object.setPrototypeOf(this, GatewayTimeoutException.prototype);
36
- this.Message = opts.Message;
37
- }
38
- }
39
- exports.GatewayTimeoutException = GatewayTimeoutException;
40
- class NotFoundException extends AmplifyBackendServiceException_1.AmplifyBackendServiceException {
41
- constructor(opts) {
42
- super({
43
- name: "NotFoundException",
44
- $fault: "client",
45
- ...opts,
46
- });
47
- this.name = "NotFoundException";
48
- this.$fault = "client";
49
- Object.setPrototypeOf(this, NotFoundException.prototype);
50
- this.Message = opts.Message;
51
- this.ResourceType = opts.ResourceType;
52
- }
53
- }
54
- exports.NotFoundException = NotFoundException;
55
- class TooManyRequestsException extends AmplifyBackendServiceException_1.AmplifyBackendServiceException {
56
- constructor(opts) {
57
- super({
58
- name: "TooManyRequestsException",
59
- $fault: "client",
60
- ...opts,
61
- });
62
- this.name = "TooManyRequestsException";
63
- this.$fault = "client";
64
- Object.setPrototypeOf(this, TooManyRequestsException.prototype);
65
- this.LimitType = opts.LimitType;
66
- this.Message = opts.Message;
67
- }
68
- }
69
- exports.TooManyRequestsException = TooManyRequestsException;
70
- exports.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
- };
76
- exports.ResolutionStrategy = {
77
- AUTOMERGE: "AUTOMERGE",
78
- LAMBDA: "LAMBDA",
79
- NONE: "NONE",
80
- OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY",
81
- };
82
- exports.AuthResources = {
83
- IDENTITY_POOL_AND_USER_POOL: "IDENTITY_POOL_AND_USER_POOL",
84
- USER_POOL_ONLY: "USER_POOL_ONLY",
85
- };
86
- exports.Service = {
87
- COGNITO: "COGNITO",
88
- };
89
- exports.DeliveryMethod = {
90
- EMAIL: "EMAIL",
91
- SMS: "SMS",
92
- };
93
- exports.MFAMode = {
94
- OFF: "OFF",
95
- ON: "ON",
96
- OPTIONAL: "OPTIONAL",
97
- };
98
- exports.MfaTypesElement = {
99
- SMS: "SMS",
100
- TOTP: "TOTP",
101
- };
102
- exports.OAuthGrantType = {
103
- CODE: "CODE",
104
- IMPLICIT: "IMPLICIT",
105
- };
106
- exports.OAuthScopesElement = {
107
- AWS_COGNITO_SIGNIN_USER_ADMIN: "AWS_COGNITO_SIGNIN_USER_ADMIN",
108
- EMAIL: "EMAIL",
109
- OPENID: "OPENID",
110
- PHONE: "PHONE",
111
- PROFILE: "PROFILE",
112
- };
113
- exports.RequiredSignUpAttributesElement = {
114
- ADDRESS: "ADDRESS",
115
- BIRTHDATE: "BIRTHDATE",
116
- EMAIL: "EMAIL",
117
- FAMILY_NAME: "FAMILY_NAME",
118
- GENDER: "GENDER",
119
- GIVEN_NAME: "GIVEN_NAME",
120
- LOCALE: "LOCALE",
121
- MIDDLE_NAME: "MIDDLE_NAME",
122
- NAME: "NAME",
123
- NICKNAME: "NICKNAME",
124
- PHONE_NUMBER: "PHONE_NUMBER",
125
- PICTURE: "PICTURE",
126
- PREFERRED_USERNAME: "PREFERRED_USERNAME",
127
- PROFILE: "PROFILE",
128
- UPDATED_AT: "UPDATED_AT",
129
- WEBSITE: "WEBSITE",
130
- ZONE_INFO: "ZONE_INFO",
131
- };
132
- exports.SignInMethod = {
133
- EMAIL: "EMAIL",
134
- EMAIL_AND_PHONE_NUMBER: "EMAIL_AND_PHONE_NUMBER",
135
- PHONE_NUMBER: "PHONE_NUMBER",
136
- USERNAME: "USERNAME",
137
- };
138
- exports.AuthenticatedElement = {
139
- CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
140
- DELETE: "DELETE",
141
- READ: "READ",
142
- };
143
- exports.UnAuthenticatedElement = {
144
- CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
145
- DELETE: "DELETE",
146
- READ: "READ",
147
- };
148
- exports.ServiceName = {
149
- S3: "S3",
150
- };
151
- exports.Status = {
152
- LATEST: "LATEST",
153
- STALE: "STALE",
154
- };
155
- const EmailSettingsFilterSensitiveLog = (obj) => ({
156
- ...obj,
157
- });
158
- exports.EmailSettingsFilterSensitiveLog = EmailSettingsFilterSensitiveLog;
159
- const SmsSettingsFilterSensitiveLog = (obj) => ({
160
- ...obj,
161
- });
162
- exports.SmsSettingsFilterSensitiveLog = SmsSettingsFilterSensitiveLog;
163
- const CreateBackendAuthForgotPasswordConfigFilterSensitiveLog = (obj) => ({
164
- ...obj,
165
- ...(obj.EmailSettings && { EmailSettings: smithy_client_1.SENSITIVE_STRING }),
166
- ...(obj.SmsSettings && { SmsSettings: smithy_client_1.SENSITIVE_STRING }),
167
- });
168
- exports.CreateBackendAuthForgotPasswordConfigFilterSensitiveLog = CreateBackendAuthForgotPasswordConfigFilterSensitiveLog;
169
- const BackendAuthSocialProviderConfigFilterSensitiveLog = (obj) => ({
170
- ...obj,
171
- });
172
- exports.BackendAuthSocialProviderConfigFilterSensitiveLog = BackendAuthSocialProviderConfigFilterSensitiveLog;
173
- const BackendAuthAppleProviderConfigFilterSensitiveLog = (obj) => ({
174
- ...obj,
175
- });
176
- exports.BackendAuthAppleProviderConfigFilterSensitiveLog = BackendAuthAppleProviderConfigFilterSensitiveLog;
177
- const SocialProviderSettingsFilterSensitiveLog = (obj) => ({
178
- ...obj,
179
- ...(obj.Facebook && { Facebook: smithy_client_1.SENSITIVE_STRING }),
180
- ...(obj.Google && { Google: smithy_client_1.SENSITIVE_STRING }),
181
- ...(obj.LoginWithAmazon && { LoginWithAmazon: smithy_client_1.SENSITIVE_STRING }),
182
- ...(obj.SignInWithApple && { SignInWithApple: smithy_client_1.SENSITIVE_STRING }),
183
- });
184
- exports.SocialProviderSettingsFilterSensitiveLog = SocialProviderSettingsFilterSensitiveLog;
185
- const CreateBackendAuthOAuthConfigFilterSensitiveLog = (obj) => ({
186
- ...obj,
187
- ...(obj.SocialProviderSettings && {
188
- SocialProviderSettings: (0, exports.SocialProviderSettingsFilterSensitiveLog)(obj.SocialProviderSettings),
189
- }),
190
- });
191
- exports.CreateBackendAuthOAuthConfigFilterSensitiveLog = CreateBackendAuthOAuthConfigFilterSensitiveLog;
192
- const CreateBackendAuthVerificationMessageConfigFilterSensitiveLog = (obj) => ({
193
- ...obj,
194
- ...(obj.EmailSettings && { EmailSettings: smithy_client_1.SENSITIVE_STRING }),
195
- ...(obj.SmsSettings && { SmsSettings: smithy_client_1.SENSITIVE_STRING }),
196
- });
197
- exports.CreateBackendAuthVerificationMessageConfigFilterSensitiveLog = CreateBackendAuthVerificationMessageConfigFilterSensitiveLog;
198
- const CreateBackendAuthUserPoolConfigFilterSensitiveLog = (obj) => ({
199
- ...obj,
200
- ...(obj.ForgotPassword && {
201
- ForgotPassword: (0, exports.CreateBackendAuthForgotPasswordConfigFilterSensitiveLog)(obj.ForgotPassword),
202
- }),
203
- ...(obj.OAuth && { OAuth: (0, exports.CreateBackendAuthOAuthConfigFilterSensitiveLog)(obj.OAuth) }),
204
- ...(obj.VerificationMessage && {
205
- VerificationMessage: (0, exports.CreateBackendAuthVerificationMessageConfigFilterSensitiveLog)(obj.VerificationMessage),
206
- }),
207
- });
208
- exports.CreateBackendAuthUserPoolConfigFilterSensitiveLog = CreateBackendAuthUserPoolConfigFilterSensitiveLog;
209
- const CreateBackendAuthResourceConfigFilterSensitiveLog = (obj) => ({
210
- ...obj,
211
- ...(obj.UserPoolConfigs && {
212
- UserPoolConfigs: (0, exports.CreateBackendAuthUserPoolConfigFilterSensitiveLog)(obj.UserPoolConfigs),
213
- }),
214
- });
215
- exports.CreateBackendAuthResourceConfigFilterSensitiveLog = CreateBackendAuthResourceConfigFilterSensitiveLog;
216
- const CreateBackendAuthRequestFilterSensitiveLog = (obj) => ({
217
- ...obj,
218
- ...(obj.ResourceConfig && { ResourceConfig: (0, exports.CreateBackendAuthResourceConfigFilterSensitiveLog)(obj.ResourceConfig) }),
219
- });
220
- exports.CreateBackendAuthRequestFilterSensitiveLog = CreateBackendAuthRequestFilterSensitiveLog;
221
- const GetBackendAuthResponseFilterSensitiveLog = (obj) => ({
222
- ...obj,
223
- ...(obj.ResourceConfig && { ResourceConfig: (0, exports.CreateBackendAuthResourceConfigFilterSensitiveLog)(obj.ResourceConfig) }),
224
- });
225
- exports.GetBackendAuthResponseFilterSensitiveLog = GetBackendAuthResponseFilterSensitiveLog;
226
- const UpdateBackendAuthForgotPasswordConfigFilterSensitiveLog = (obj) => ({
227
- ...obj,
228
- ...(obj.EmailSettings && { EmailSettings: smithy_client_1.SENSITIVE_STRING }),
229
- ...(obj.SmsSettings && { SmsSettings: smithy_client_1.SENSITIVE_STRING }),
230
- });
231
- exports.UpdateBackendAuthForgotPasswordConfigFilterSensitiveLog = UpdateBackendAuthForgotPasswordConfigFilterSensitiveLog;
232
- const UpdateBackendAuthOAuthConfigFilterSensitiveLog = (obj) => ({
233
- ...obj,
234
- ...(obj.SocialProviderSettings && {
235
- SocialProviderSettings: (0, exports.SocialProviderSettingsFilterSensitiveLog)(obj.SocialProviderSettings),
236
- }),
237
- });
238
- exports.UpdateBackendAuthOAuthConfigFilterSensitiveLog = UpdateBackendAuthOAuthConfigFilterSensitiveLog;
239
- const UpdateBackendAuthVerificationMessageConfigFilterSensitiveLog = (obj) => ({
240
- ...obj,
241
- ...(obj.EmailSettings && { EmailSettings: smithy_client_1.SENSITIVE_STRING }),
242
- ...(obj.SmsSettings && { SmsSettings: smithy_client_1.SENSITIVE_STRING }),
243
- });
244
- exports.UpdateBackendAuthVerificationMessageConfigFilterSensitiveLog = UpdateBackendAuthVerificationMessageConfigFilterSensitiveLog;
245
- const UpdateBackendAuthUserPoolConfigFilterSensitiveLog = (obj) => ({
246
- ...obj,
247
- ...(obj.ForgotPassword && {
248
- ForgotPassword: (0, exports.UpdateBackendAuthForgotPasswordConfigFilterSensitiveLog)(obj.ForgotPassword),
249
- }),
250
- ...(obj.OAuth && { OAuth: (0, exports.UpdateBackendAuthOAuthConfigFilterSensitiveLog)(obj.OAuth) }),
251
- ...(obj.VerificationMessage && {
252
- VerificationMessage: (0, exports.UpdateBackendAuthVerificationMessageConfigFilterSensitiveLog)(obj.VerificationMessage),
253
- }),
254
- });
255
- exports.UpdateBackendAuthUserPoolConfigFilterSensitiveLog = UpdateBackendAuthUserPoolConfigFilterSensitiveLog;
256
- const UpdateBackendAuthResourceConfigFilterSensitiveLog = (obj) => ({
257
- ...obj,
258
- ...(obj.UserPoolConfigs && {
259
- UserPoolConfigs: (0, exports.UpdateBackendAuthUserPoolConfigFilterSensitiveLog)(obj.UserPoolConfigs),
260
- }),
261
- });
262
- exports.UpdateBackendAuthResourceConfigFilterSensitiveLog = UpdateBackendAuthResourceConfigFilterSensitiveLog;
263
- const UpdateBackendAuthRequestFilterSensitiveLog = (obj) => ({
264
- ...obj,
265
- ...(obj.ResourceConfig && { ResourceConfig: (0, exports.UpdateBackendAuthResourceConfigFilterSensitiveLog)(obj.ResourceConfig) }),
266
- });
267
- exports.UpdateBackendAuthRequestFilterSensitiveLog = UpdateBackendAuthRequestFilterSensitiveLog;
1
+ module.exports = require("../index.js");