@aws-sdk/client-amplifybackend 3.388.0 → 3.390.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.
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const models_0_1 = require("../models/models_0");
8
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
10
  class CreateBackendAuthCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -30,7 +31,7 @@ class CreateBackendAuthCommand extends smithy_client_1.Command {
30
31
  logger,
31
32
  clientName,
32
33
  commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
+ inputFilterSensitiveLog: models_0_1.CreateBackendAuthRequestFilterSensitiveLog,
34
35
  outputFilterSensitiveLog: (_) => _,
35
36
  };
36
37
  const { requestHandler } = configuration;
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const models_0_1 = require("../models/models_0");
8
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
10
  class GetBackendAuthCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -31,7 +32,7 @@ class GetBackendAuthCommand extends smithy_client_1.Command {
31
32
  clientName,
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: models_0_1.GetBackendAuthResponseFilterSensitiveLog,
35
36
  };
36
37
  const { requestHandler } = configuration;
37
38
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const models_0_1 = require("../models/models_0");
8
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
10
  class UpdateBackendAuthCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -30,7 +31,7 @@ class UpdateBackendAuthCommand extends smithy_client_1.Command {
30
31
  logger,
31
32
  clientName,
32
33
  commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
+ inputFilterSensitiveLog: models_0_1.UpdateBackendAuthRequestFilterSensitiveLog,
34
35
  outputFilterSensitiveLog: (_) => _,
35
36
  };
36
37
  const { requestHandler } = configuration;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const q = "fn", r = "argv", s = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://amplifybackend-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://amplifybackend-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://amplifybackend.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://amplifybackend.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://amplifybackend-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://amplifybackend-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://amplifybackend.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://amplifybackend.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
7
7
  exports.ruleSet = _data;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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;
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");
4
5
  const AmplifyBackendServiceException_1 = require("./AmplifyBackendServiceException");
5
6
  exports.AdditionalConstraintsElement = {
6
7
  REQUIRE_DIGIT: "REQUIRE_DIGIT",
@@ -151,3 +152,116 @@ exports.Status = {
151
152
  LATEST: "LATEST",
152
153
  STALE: "STALE",
153
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,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { CreateBackendAuthRequestFilterSensitiveLog, } from "../models/models_0";
4
5
  import { de_CreateBackendAuthCommand, se_CreateBackendAuthCommand } from "../protocols/Aws_restJson1";
5
6
  export { $Command };
6
7
  export class CreateBackendAuthCommand extends $Command {
@@ -27,7 +28,7 @@ export class CreateBackendAuthCommand extends $Command {
27
28
  logger,
28
29
  clientName,
29
30
  commandName,
30
- inputFilterSensitiveLog: (_) => _,
31
+ inputFilterSensitiveLog: CreateBackendAuthRequestFilterSensitiveLog,
31
32
  outputFilterSensitiveLog: (_) => _,
32
33
  };
33
34
  const { requestHandler } = configuration;
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { GetBackendAuthResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { de_GetBackendAuthCommand, se_GetBackendAuthCommand } from "../protocols/Aws_restJson1";
5
6
  export { $Command };
6
7
  export class GetBackendAuthCommand extends $Command {
@@ -28,7 +29,7 @@ export class GetBackendAuthCommand extends $Command {
28
29
  clientName,
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
- outputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: GetBackendAuthResponseFilterSensitiveLog,
32
33
  };
33
34
  const { requestHandler } = configuration;
34
35
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { UpdateBackendAuthRequestFilterSensitiveLog, } from "../models/models_0";
4
5
  import { de_UpdateBackendAuthCommand, se_UpdateBackendAuthCommand } from "../protocols/Aws_restJson1";
5
6
  export { $Command };
6
7
  export class UpdateBackendAuthCommand extends $Command {
@@ -27,7 +28,7 @@ export class UpdateBackendAuthCommand extends $Command {
27
28
  logger,
28
29
  clientName,
29
30
  commandName,
30
- inputFilterSensitiveLog: (_) => _,
31
+ inputFilterSensitiveLog: UpdateBackendAuthRequestFilterSensitiveLog,
31
32
  outputFilterSensitiveLog: (_) => _,
32
33
  };
33
34
  const { requestHandler } = configuration;
@@ -1,4 +1,4 @@
1
- const q = "fn", r = "argv", s = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://amplifybackend-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://amplifybackend-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://amplifybackend.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://amplifybackend.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://amplifybackend-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://amplifybackend-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://amplifybackend.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://amplifybackend.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
4
  export const ruleSet = _data;
@@ -1,3 +1,4 @@
1
+ import { SENSITIVE_STRING } from "@smithy/smithy-client";
1
2
  import { AmplifyBackendServiceException as __BaseException } from "./AmplifyBackendServiceException";
2
3
  export const AdditionalConstraintsElement = {
3
4
  REQUIRE_DIGIT: "REQUIRE_DIGIT",
@@ -144,3 +145,98 @@ export const Status = {
144
145
  LATEST: "LATEST",
145
146
  STALE: "STALE",
146
147
  };
148
+ export const EmailSettingsFilterSensitiveLog = (obj) => ({
149
+ ...obj,
150
+ });
151
+ export const SmsSettingsFilterSensitiveLog = (obj) => ({
152
+ ...obj,
153
+ });
154
+ export const CreateBackendAuthForgotPasswordConfigFilterSensitiveLog = (obj) => ({
155
+ ...obj,
156
+ ...(obj.EmailSettings && { EmailSettings: SENSITIVE_STRING }),
157
+ ...(obj.SmsSettings && { SmsSettings: SENSITIVE_STRING }),
158
+ });
159
+ export const BackendAuthSocialProviderConfigFilterSensitiveLog = (obj) => ({
160
+ ...obj,
161
+ });
162
+ export const BackendAuthAppleProviderConfigFilterSensitiveLog = (obj) => ({
163
+ ...obj,
164
+ });
165
+ export const SocialProviderSettingsFilterSensitiveLog = (obj) => ({
166
+ ...obj,
167
+ ...(obj.Facebook && { Facebook: SENSITIVE_STRING }),
168
+ ...(obj.Google && { Google: SENSITIVE_STRING }),
169
+ ...(obj.LoginWithAmazon && { LoginWithAmazon: SENSITIVE_STRING }),
170
+ ...(obj.SignInWithApple && { SignInWithApple: SENSITIVE_STRING }),
171
+ });
172
+ export const CreateBackendAuthOAuthConfigFilterSensitiveLog = (obj) => ({
173
+ ...obj,
174
+ ...(obj.SocialProviderSettings && {
175
+ SocialProviderSettings: SocialProviderSettingsFilterSensitiveLog(obj.SocialProviderSettings),
176
+ }),
177
+ });
178
+ export const CreateBackendAuthVerificationMessageConfigFilterSensitiveLog = (obj) => ({
179
+ ...obj,
180
+ ...(obj.EmailSettings && { EmailSettings: SENSITIVE_STRING }),
181
+ ...(obj.SmsSettings && { SmsSettings: SENSITIVE_STRING }),
182
+ });
183
+ export const CreateBackendAuthUserPoolConfigFilterSensitiveLog = (obj) => ({
184
+ ...obj,
185
+ ...(obj.ForgotPassword && {
186
+ ForgotPassword: CreateBackendAuthForgotPasswordConfigFilterSensitiveLog(obj.ForgotPassword),
187
+ }),
188
+ ...(obj.OAuth && { OAuth: CreateBackendAuthOAuthConfigFilterSensitiveLog(obj.OAuth) }),
189
+ ...(obj.VerificationMessage && {
190
+ VerificationMessage: CreateBackendAuthVerificationMessageConfigFilterSensitiveLog(obj.VerificationMessage),
191
+ }),
192
+ });
193
+ export const CreateBackendAuthResourceConfigFilterSensitiveLog = (obj) => ({
194
+ ...obj,
195
+ ...(obj.UserPoolConfigs && {
196
+ UserPoolConfigs: CreateBackendAuthUserPoolConfigFilterSensitiveLog(obj.UserPoolConfigs),
197
+ }),
198
+ });
199
+ export const CreateBackendAuthRequestFilterSensitiveLog = (obj) => ({
200
+ ...obj,
201
+ ...(obj.ResourceConfig && { ResourceConfig: CreateBackendAuthResourceConfigFilterSensitiveLog(obj.ResourceConfig) }),
202
+ });
203
+ export const GetBackendAuthResponseFilterSensitiveLog = (obj) => ({
204
+ ...obj,
205
+ ...(obj.ResourceConfig && { ResourceConfig: CreateBackendAuthResourceConfigFilterSensitiveLog(obj.ResourceConfig) }),
206
+ });
207
+ export const UpdateBackendAuthForgotPasswordConfigFilterSensitiveLog = (obj) => ({
208
+ ...obj,
209
+ ...(obj.EmailSettings && { EmailSettings: SENSITIVE_STRING }),
210
+ ...(obj.SmsSettings && { SmsSettings: SENSITIVE_STRING }),
211
+ });
212
+ export const UpdateBackendAuthOAuthConfigFilterSensitiveLog = (obj) => ({
213
+ ...obj,
214
+ ...(obj.SocialProviderSettings && {
215
+ SocialProviderSettings: SocialProviderSettingsFilterSensitiveLog(obj.SocialProviderSettings),
216
+ }),
217
+ });
218
+ export const UpdateBackendAuthVerificationMessageConfigFilterSensitiveLog = (obj) => ({
219
+ ...obj,
220
+ ...(obj.EmailSettings && { EmailSettings: SENSITIVE_STRING }),
221
+ ...(obj.SmsSettings && { SmsSettings: SENSITIVE_STRING }),
222
+ });
223
+ export const UpdateBackendAuthUserPoolConfigFilterSensitiveLog = (obj) => ({
224
+ ...obj,
225
+ ...(obj.ForgotPassword && {
226
+ ForgotPassword: UpdateBackendAuthForgotPasswordConfigFilterSensitiveLog(obj.ForgotPassword),
227
+ }),
228
+ ...(obj.OAuth && { OAuth: UpdateBackendAuthOAuthConfigFilterSensitiveLog(obj.OAuth) }),
229
+ ...(obj.VerificationMessage && {
230
+ VerificationMessage: UpdateBackendAuthVerificationMessageConfigFilterSensitiveLog(obj.VerificationMessage),
231
+ }),
232
+ });
233
+ export const UpdateBackendAuthResourceConfigFilterSensitiveLog = (obj) => ({
234
+ ...obj,
235
+ ...(obj.UserPoolConfigs && {
236
+ UserPoolConfigs: UpdateBackendAuthUserPoolConfigFilterSensitiveLog(obj.UserPoolConfigs),
237
+ }),
238
+ });
239
+ export const UpdateBackendAuthRequestFilterSensitiveLog = (obj) => ({
240
+ ...obj,
241
+ ...(obj.ResourceConfig && { ResourceConfig: UpdateBackendAuthResourceConfigFilterSensitiveLog(obj.ResourceConfig) }),
242
+ });
@@ -15,7 +15,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
15
15
  defaultSigningName: string;
16
16
  };
17
17
  export interface EndpointParameters extends __EndpointParameters {
18
- Region: string;
18
+ Region?: string;
19
19
  UseDualStack?: boolean;
20
20
  UseFIPS?: boolean;
21
21
  Endpoint?: string;
@@ -2651,3 +2651,75 @@ export interface UpdateBackendStorageResponse {
2651
2651
  */
2652
2652
  Status?: string;
2653
2653
  }
2654
+ /**
2655
+ * @internal
2656
+ */
2657
+ export declare const EmailSettingsFilterSensitiveLog: (obj: EmailSettings) => any;
2658
+ /**
2659
+ * @internal
2660
+ */
2661
+ export declare const SmsSettingsFilterSensitiveLog: (obj: SmsSettings) => any;
2662
+ /**
2663
+ * @internal
2664
+ */
2665
+ export declare const CreateBackendAuthForgotPasswordConfigFilterSensitiveLog: (obj: CreateBackendAuthForgotPasswordConfig) => any;
2666
+ /**
2667
+ * @internal
2668
+ */
2669
+ export declare const BackendAuthSocialProviderConfigFilterSensitiveLog: (obj: BackendAuthSocialProviderConfig) => any;
2670
+ /**
2671
+ * @internal
2672
+ */
2673
+ export declare const BackendAuthAppleProviderConfigFilterSensitiveLog: (obj: BackendAuthAppleProviderConfig) => any;
2674
+ /**
2675
+ * @internal
2676
+ */
2677
+ export declare const SocialProviderSettingsFilterSensitiveLog: (obj: SocialProviderSettings) => any;
2678
+ /**
2679
+ * @internal
2680
+ */
2681
+ export declare const CreateBackendAuthOAuthConfigFilterSensitiveLog: (obj: CreateBackendAuthOAuthConfig) => any;
2682
+ /**
2683
+ * @internal
2684
+ */
2685
+ export declare const CreateBackendAuthVerificationMessageConfigFilterSensitiveLog: (obj: CreateBackendAuthVerificationMessageConfig) => any;
2686
+ /**
2687
+ * @internal
2688
+ */
2689
+ export declare const CreateBackendAuthUserPoolConfigFilterSensitiveLog: (obj: CreateBackendAuthUserPoolConfig) => any;
2690
+ /**
2691
+ * @internal
2692
+ */
2693
+ export declare const CreateBackendAuthResourceConfigFilterSensitiveLog: (obj: CreateBackendAuthResourceConfig) => any;
2694
+ /**
2695
+ * @internal
2696
+ */
2697
+ export declare const CreateBackendAuthRequestFilterSensitiveLog: (obj: CreateBackendAuthRequest) => any;
2698
+ /**
2699
+ * @internal
2700
+ */
2701
+ export declare const GetBackendAuthResponseFilterSensitiveLog: (obj: GetBackendAuthResponse) => any;
2702
+ /**
2703
+ * @internal
2704
+ */
2705
+ export declare const UpdateBackendAuthForgotPasswordConfigFilterSensitiveLog: (obj: UpdateBackendAuthForgotPasswordConfig) => any;
2706
+ /**
2707
+ * @internal
2708
+ */
2709
+ export declare const UpdateBackendAuthOAuthConfigFilterSensitiveLog: (obj: UpdateBackendAuthOAuthConfig) => any;
2710
+ /**
2711
+ * @internal
2712
+ */
2713
+ export declare const UpdateBackendAuthVerificationMessageConfigFilterSensitiveLog: (obj: UpdateBackendAuthVerificationMessageConfig) => any;
2714
+ /**
2715
+ * @internal
2716
+ */
2717
+ export declare const UpdateBackendAuthUserPoolConfigFilterSensitiveLog: (obj: UpdateBackendAuthUserPoolConfig) => any;
2718
+ /**
2719
+ * @internal
2720
+ */
2721
+ export declare const UpdateBackendAuthResourceConfigFilterSensitiveLog: (obj: UpdateBackendAuthResourceConfig) => any;
2722
+ /**
2723
+ * @internal
2724
+ */
2725
+ export declare const UpdateBackendAuthRequestFilterSensitiveLog: (obj: UpdateBackendAuthRequest) => any;
@@ -26,7 +26,7 @@ export declare const resolveClientEndpointParameters: <T>(
26
26
  defaultSigningName: string;
27
27
  };
28
28
  export interface EndpointParameters extends __EndpointParameters {
29
- Region: string;
29
+ Region?: string;
30
30
  UseDualStack?: boolean;
31
31
  UseFIPS?: boolean;
32
32
  Endpoint?: string;
@@ -704,3 +704,55 @@ export interface UpdateBackendStorageResponse {
704
704
  JobId?: string;
705
705
  Status?: string;
706
706
  }
707
+ export declare const EmailSettingsFilterSensitiveLog: (
708
+ obj: EmailSettings
709
+ ) => any;
710
+ export declare const SmsSettingsFilterSensitiveLog: (obj: SmsSettings) => any;
711
+ export declare const CreateBackendAuthForgotPasswordConfigFilterSensitiveLog: (
712
+ obj: CreateBackendAuthForgotPasswordConfig
713
+ ) => any;
714
+ export declare const BackendAuthSocialProviderConfigFilterSensitiveLog: (
715
+ obj: BackendAuthSocialProviderConfig
716
+ ) => any;
717
+ export declare const BackendAuthAppleProviderConfigFilterSensitiveLog: (
718
+ obj: BackendAuthAppleProviderConfig
719
+ ) => any;
720
+ export declare const SocialProviderSettingsFilterSensitiveLog: (
721
+ obj: SocialProviderSettings
722
+ ) => any;
723
+ export declare const CreateBackendAuthOAuthConfigFilterSensitiveLog: (
724
+ obj: CreateBackendAuthOAuthConfig
725
+ ) => any;
726
+ export declare const CreateBackendAuthVerificationMessageConfigFilterSensitiveLog: (
727
+ obj: CreateBackendAuthVerificationMessageConfig
728
+ ) => any;
729
+ export declare const CreateBackendAuthUserPoolConfigFilterSensitiveLog: (
730
+ obj: CreateBackendAuthUserPoolConfig
731
+ ) => any;
732
+ export declare const CreateBackendAuthResourceConfigFilterSensitiveLog: (
733
+ obj: CreateBackendAuthResourceConfig
734
+ ) => any;
735
+ export declare const CreateBackendAuthRequestFilterSensitiveLog: (
736
+ obj: CreateBackendAuthRequest
737
+ ) => any;
738
+ export declare const GetBackendAuthResponseFilterSensitiveLog: (
739
+ obj: GetBackendAuthResponse
740
+ ) => any;
741
+ export declare const UpdateBackendAuthForgotPasswordConfigFilterSensitiveLog: (
742
+ obj: UpdateBackendAuthForgotPasswordConfig
743
+ ) => any;
744
+ export declare const UpdateBackendAuthOAuthConfigFilterSensitiveLog: (
745
+ obj: UpdateBackendAuthOAuthConfig
746
+ ) => any;
747
+ export declare const UpdateBackendAuthVerificationMessageConfigFilterSensitiveLog: (
748
+ obj: UpdateBackendAuthVerificationMessageConfig
749
+ ) => any;
750
+ export declare const UpdateBackendAuthUserPoolConfigFilterSensitiveLog: (
751
+ obj: UpdateBackendAuthUserPoolConfig
752
+ ) => any;
753
+ export declare const UpdateBackendAuthResourceConfigFilterSensitiveLog: (
754
+ obj: UpdateBackendAuthResourceConfig
755
+ ) => any;
756
+ export declare const UpdateBackendAuthRequestFilterSensitiveLog: (
757
+ obj: UpdateBackendAuthRequest
758
+ ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-amplifybackend",
3
3
  "description": "AWS SDK for JavaScript Amplifybackend Client for Node.js, Browser and React Native",
4
- "version": "3.388.0",
4
+ "version": "3.390.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",