@aws-sdk/client-amplifybackend 3.54.1 → 3.55.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/CHANGELOG.md +11 -0
- package/dist-cjs/AmplifyBackendClient.js +13 -13
- package/dist-cjs/commands/CloneBackendCommand.js +3 -3
- package/dist-cjs/commands/CreateBackendAPICommand.js +3 -3
- package/dist-cjs/commands/CreateBackendAuthCommand.js +3 -3
- package/dist-cjs/commands/CreateBackendCommand.js +3 -3
- package/dist-cjs/commands/CreateBackendConfigCommand.js +3 -3
- package/dist-cjs/commands/CreateBackendStorageCommand.js +3 -3
- package/dist-cjs/commands/CreateTokenCommand.js +3 -3
- package/dist-cjs/commands/DeleteBackendAPICommand.js +3 -3
- package/dist-cjs/commands/DeleteBackendAuthCommand.js +3 -3
- package/dist-cjs/commands/DeleteBackendCommand.js +3 -3
- package/dist-cjs/commands/DeleteBackendStorageCommand.js +3 -3
- package/dist-cjs/commands/DeleteTokenCommand.js +3 -3
- package/dist-cjs/commands/GenerateBackendAPIModelsCommand.js +3 -3
- package/dist-cjs/commands/GetBackendAPICommand.js +3 -3
- package/dist-cjs/commands/GetBackendAPIModelsCommand.js +3 -3
- package/dist-cjs/commands/GetBackendAuthCommand.js +3 -3
- package/dist-cjs/commands/GetBackendCommand.js +3 -3
- package/dist-cjs/commands/GetBackendJobCommand.js +3 -3
- package/dist-cjs/commands/GetBackendStorageCommand.js +3 -3
- package/dist-cjs/commands/GetTokenCommand.js +3 -3
- package/dist-cjs/commands/ImportBackendAuthCommand.js +3 -3
- package/dist-cjs/commands/ImportBackendStorageCommand.js +3 -3
- package/dist-cjs/commands/ListBackendJobsCommand.js +3 -3
- package/dist-cjs/commands/ListS3BucketsCommand.js +3 -3
- package/dist-cjs/commands/RemoveAllBackendsCommand.js +3 -3
- package/dist-cjs/commands/RemoveBackendConfigCommand.js +3 -3
- package/dist-cjs/commands/UpdateBackendAPICommand.js +3 -3
- package/dist-cjs/commands/UpdateBackendAuthCommand.js +3 -3
- package/dist-cjs/commands/UpdateBackendConfigCommand.js +3 -3
- package/dist-cjs/commands/UpdateBackendJobCommand.js +3 -3
- package/dist-cjs/commands/UpdateBackendStorageCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/models/models_0.js +15 -3
- package/dist-cjs/protocols/Aws_restJson1.js +371 -325
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/AmplifyBackend.js +31 -31
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +70 -34
- package/dist-types/models/models_0.d.ts +68 -14
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/models/models_0.d.ts +30 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -11,7 +11,7 @@ class RemoveBackendConfigCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "AmplifyBackendClient";
|
|
@@ -27,10 +27,10 @@ class RemoveBackendConfigCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1RemoveBackendConfigCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1RemoveBackendConfigCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1RemoveBackendConfigCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1RemoveBackendConfigCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.RemoveBackendConfigCommand = RemoveBackendConfigCommand;
|
|
@@ -11,7 +11,7 @@ class UpdateBackendAPICommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "AmplifyBackendClient";
|
|
@@ -27,10 +27,10 @@ class UpdateBackendAPICommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1UpdateBackendAPICommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1UpdateBackendAPICommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1UpdateBackendAPICommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateBackendAPICommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.UpdateBackendAPICommand = UpdateBackendAPICommand;
|
|
@@ -11,7 +11,7 @@ class UpdateBackendAuthCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "AmplifyBackendClient";
|
|
@@ -27,10 +27,10 @@ class UpdateBackendAuthCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1UpdateBackendAuthCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1UpdateBackendAuthCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1UpdateBackendAuthCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateBackendAuthCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.UpdateBackendAuthCommand = UpdateBackendAuthCommand;
|
|
@@ -11,7 +11,7 @@ class UpdateBackendConfigCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "AmplifyBackendClient";
|
|
@@ -27,10 +27,10 @@ class UpdateBackendConfigCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1UpdateBackendConfigCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1UpdateBackendConfigCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1UpdateBackendConfigCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateBackendConfigCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.UpdateBackendConfigCommand = UpdateBackendConfigCommand;
|
|
@@ -11,7 +11,7 @@ class UpdateBackendJobCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "AmplifyBackendClient";
|
|
@@ -27,10 +27,10 @@ class UpdateBackendJobCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1UpdateBackendJobCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1UpdateBackendJobCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1UpdateBackendJobCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateBackendJobCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.UpdateBackendJobCommand = UpdateBackendJobCommand;
|
|
@@ -11,7 +11,7 @@ class UpdateBackendStorageCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "AmplifyBackendClient";
|
|
@@ -27,10 +27,10 @@ class UpdateBackendStorageCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1UpdateBackendStorageCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1UpdateBackendStorageCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1UpdateBackendStorageCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateBackendStorageCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.UpdateBackendStorageCommand = UpdateBackendStorageCommand;
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -122,7 +122,7 @@ const partitionHash = {
|
|
|
122
122
|
],
|
|
123
123
|
},
|
|
124
124
|
};
|
|
125
|
-
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
|
125
|
+
const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
|
|
126
126
|
...options,
|
|
127
127
|
signingService: "amplifybackend",
|
|
128
128
|
regionHash,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateBackendStorageResponse = exports.UpdateBackendStorageRequest = exports.UpdateBackendStorageResourceConfig = exports.UpdateBackendJobResponse = exports.UpdateBackendJobRequest = exports.UpdateBackendConfigResponse = exports.UpdateBackendConfigRequest = exports.LoginAuthConfigReqObj = exports.UpdateBackendAuthResponse = exports.UpdateBackendAuthRequest = exports.UpdateBackendAuthResourceConfig = exports.UpdateBackendAuthUserPoolConfig = exports.UpdateBackendAuthPasswordPolicyConfig = exports.UpdateBackendAuthOAuthConfig = void 0;
|
|
3
|
+
exports.CreateBackendStorageResourceConfig = exports.ServiceName = exports.BackendStoragePermissions = exports.UnAuthenticatedElement = exports.AuthenticatedElement = exports.CreateBackendConfigResponse = exports.CreateBackendConfigRequest = exports.CreateBackendAuthResponse = exports.CreateBackendAuthRequest = exports.CreateBackendAuthResourceConfig = exports.CreateBackendAuthUserPoolConfig = exports.CreateBackendAuthVerificationMessageConfig = exports.SignInMethod = exports.RequiredSignUpAttributesElement = exports.CreateBackendAuthPasswordPolicyConfig = exports.CreateBackendAuthOAuthConfig = exports.SocialProviderSettings = exports.BackendAuthAppleProviderConfig = exports.BackendAuthSocialProviderConfig = exports.OAuthScopesElement = exports.OAuthGrantType = exports.CreateBackendAuthMFAConfig = exports.Settings = exports.MfaTypesElement = exports.MFAMode = exports.CreateBackendAuthForgotPasswordConfig = exports.SmsSettings = exports.EmailSettings = exports.DeliveryMethod = exports.Service = exports.CreateBackendAuthIdentityPoolConfig = exports.AuthResources = exports.CreateBackendAPIResponse = exports.CreateBackendAPIRequest = exports.BackendAPIResourceConfig = exports.BackendAPIConflictResolution = exports.ResolutionStrategy = exports.BackendAPIAuthType = exports.BackendAPIAppSyncAuthSettings = exports.Mode = exports.CreateBackendResponse = exports.CreateBackendRequest = exports.ResourceConfig = exports.TooManyRequestsException = exports.NotFoundException = exports.GatewayTimeoutException = exports.CloneBackendResponse = exports.CloneBackendRequest = exports.BadRequestException = exports.AdditionalConstraintsElement = void 0;
|
|
4
|
+
exports.UpdateBackendAuthForgotPasswordConfig = exports.UpdateBackendAuthIdentityPoolConfig = exports.UpdateBackendAPIResponse = exports.UpdateBackendAPIRequest = exports.RemoveBackendConfigResponse = exports.RemoveBackendConfigRequest = exports.RemoveAllBackendsResponse = exports.RemoveAllBackendsRequest = exports.ListS3BucketsResponse = exports.S3BucketInfo = exports.ListS3BucketsRequest = exports.ListBackendJobsResponse = exports.BackendJobRespObj = exports.ListBackendJobsRequest = exports.ImportBackendStorageResponse = exports.ImportBackendStorageRequest = exports.ImportBackendAuthResponse = exports.ImportBackendAuthRequest = exports.GetTokenResponse = exports.GetTokenRequest = exports.GetBackendStorageResponse = exports.GetBackendStorageResourceConfig = exports.GetBackendStorageRequest = exports.GetBackendJobResponse = exports.GetBackendJobRequest = exports.GetBackendAuthResponse = exports.GetBackendAuthRequest = exports.GetBackendAPIModelsResponse = exports.Status = exports.GetBackendAPIModelsRequest = exports.GetBackendAPIResponse = exports.GetBackendAPIRequest = exports.GetBackendResponse = exports.GetBackendRequest = exports.GenerateBackendAPIModelsResponse = exports.GenerateBackendAPIModelsRequest = exports.DeleteTokenResponse = exports.DeleteTokenRequest = exports.DeleteBackendStorageResponse = exports.DeleteBackendStorageRequest = exports.DeleteBackendAuthResponse = exports.DeleteBackendAuthRequest = exports.DeleteBackendAPIResponse = exports.DeleteBackendAPIRequest = exports.DeleteBackendResponse = exports.DeleteBackendRequest = exports.CreateTokenResponse = exports.CreateTokenRequest = exports.CreateBackendStorageResponse = exports.CreateBackendStorageRequest = void 0;
|
|
5
|
+
exports.UpdateBackendStorageResponse = exports.UpdateBackendStorageRequest = exports.UpdateBackendStorageResourceConfig = exports.UpdateBackendJobResponse = exports.UpdateBackendJobRequest = exports.UpdateBackendConfigResponse = exports.UpdateBackendConfigRequest = exports.LoginAuthConfigReqObj = exports.UpdateBackendAuthResponse = exports.UpdateBackendAuthRequest = exports.UpdateBackendAuthResourceConfig = exports.UpdateBackendAuthUserPoolConfig = exports.UpdateBackendAuthVerificationMessageConfig = exports.UpdateBackendAuthPasswordPolicyConfig = exports.UpdateBackendAuthOAuthConfig = exports.UpdateBackendAuthMFAConfig = void 0;
|
|
6
6
|
const AmplifyBackendServiceException_1 = require("./AmplifyBackendServiceException");
|
|
7
7
|
var AdditionalConstraintsElement;
|
|
8
8
|
(function (AdditionalConstraintsElement) {
|
|
@@ -280,6 +280,12 @@ var SignInMethod;
|
|
|
280
280
|
SignInMethod["PHONE_NUMBER"] = "PHONE_NUMBER";
|
|
281
281
|
SignInMethod["USERNAME"] = "USERNAME";
|
|
282
282
|
})(SignInMethod = exports.SignInMethod || (exports.SignInMethod = {}));
|
|
283
|
+
var CreateBackendAuthVerificationMessageConfig;
|
|
284
|
+
(function (CreateBackendAuthVerificationMessageConfig) {
|
|
285
|
+
CreateBackendAuthVerificationMessageConfig.filterSensitiveLog = (obj) => ({
|
|
286
|
+
...obj,
|
|
287
|
+
});
|
|
288
|
+
})(CreateBackendAuthVerificationMessageConfig = exports.CreateBackendAuthVerificationMessageConfig || (exports.CreateBackendAuthVerificationMessageConfig = {}));
|
|
283
289
|
var CreateBackendAuthUserPoolConfig;
|
|
284
290
|
(function (CreateBackendAuthUserPoolConfig) {
|
|
285
291
|
CreateBackendAuthUserPoolConfig.filterSensitiveLog = (obj) => ({
|
|
@@ -661,6 +667,12 @@ var UpdateBackendAuthPasswordPolicyConfig;
|
|
|
661
667
|
...obj,
|
|
662
668
|
});
|
|
663
669
|
})(UpdateBackendAuthPasswordPolicyConfig = exports.UpdateBackendAuthPasswordPolicyConfig || (exports.UpdateBackendAuthPasswordPolicyConfig = {}));
|
|
670
|
+
var UpdateBackendAuthVerificationMessageConfig;
|
|
671
|
+
(function (UpdateBackendAuthVerificationMessageConfig) {
|
|
672
|
+
UpdateBackendAuthVerificationMessageConfig.filterSensitiveLog = (obj) => ({
|
|
673
|
+
...obj,
|
|
674
|
+
});
|
|
675
|
+
})(UpdateBackendAuthVerificationMessageConfig = exports.UpdateBackendAuthVerificationMessageConfig || (exports.UpdateBackendAuthVerificationMessageConfig = {}));
|
|
664
676
|
var UpdateBackendAuthUserPoolConfig;
|
|
665
677
|
(function (UpdateBackendAuthUserPoolConfig) {
|
|
666
678
|
UpdateBackendAuthUserPoolConfig.filterSensitiveLog = (obj) => ({
|