@aws-sdk/client-cognito-identity-provider 3.46.0 → 3.47.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 +12 -0
- package/dist-cjs/endpoints.js +0 -20
- package/dist-cjs/models/models_0.js +6 -240
- package/dist-cjs/models/models_1.js +1 -7
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/endpoints.js +0 -20
- package/dist-es/models/models_0.js +0 -156
- package/dist-es/models/models_1.js +0 -4
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/CognitoIdentityProviderClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -234
- package/dist-types/models/models_1.d.ts +0 -6
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -156
- package/dist-types/ts3.4/models/models_1.d.ts +0 -4
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
12
|
+
* Support awsQueryError trait ([#3174](https://github.com/aws/aws-sdk-js-v3/issues/3174)) ([351bd3a](https://github.com/aws/aws-sdk-js-v3/commit/351bd3a40ad37be79d823d6a0e4e48304728ea6f))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
19
|
|
|
8
20
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
5
5
|
const regionHash = {
|
|
6
6
|
"us-east-1": {
|
|
7
7
|
variants: [
|
|
8
|
-
{
|
|
9
|
-
hostname: "cognito-idp.us-east-1.amazonaws.com",
|
|
10
|
-
tags: [],
|
|
11
|
-
},
|
|
12
8
|
{
|
|
13
9
|
hostname: "cognito-idp-fips.us-east-1.amazonaws.com",
|
|
14
10
|
tags: ["fips"],
|
|
@@ -17,10 +13,6 @@ const regionHash = {
|
|
|
17
13
|
},
|
|
18
14
|
"us-east-2": {
|
|
19
15
|
variants: [
|
|
20
|
-
{
|
|
21
|
-
hostname: "cognito-idp.us-east-2.amazonaws.com",
|
|
22
|
-
tags: [],
|
|
23
|
-
},
|
|
24
16
|
{
|
|
25
17
|
hostname: "cognito-idp-fips.us-east-2.amazonaws.com",
|
|
26
18
|
tags: ["fips"],
|
|
@@ -29,10 +21,6 @@ const regionHash = {
|
|
|
29
21
|
},
|
|
30
22
|
"us-gov-west-1": {
|
|
31
23
|
variants: [
|
|
32
|
-
{
|
|
33
|
-
hostname: "cognito-idp.us-gov-west-1.amazonaws.com",
|
|
34
|
-
tags: [],
|
|
35
|
-
},
|
|
36
24
|
{
|
|
37
25
|
hostname: "cognito-idp-fips.us-gov-west-1.amazonaws.com",
|
|
38
26
|
tags: ["fips"],
|
|
@@ -41,10 +29,6 @@ const regionHash = {
|
|
|
41
29
|
},
|
|
42
30
|
"us-west-1": {
|
|
43
31
|
variants: [
|
|
44
|
-
{
|
|
45
|
-
hostname: "cognito-idp.us-west-1.amazonaws.com",
|
|
46
|
-
tags: [],
|
|
47
|
-
},
|
|
48
32
|
{
|
|
49
33
|
hostname: "cognito-idp-fips.us-west-1.amazonaws.com",
|
|
50
34
|
tags: ["fips"],
|
|
@@ -53,10 +37,6 @@ const regionHash = {
|
|
|
53
37
|
},
|
|
54
38
|
"us-west-2": {
|
|
55
39
|
variants: [
|
|
56
|
-
{
|
|
57
|
-
hostname: "cognito-idp.us-west-2.amazonaws.com",
|
|
58
|
-
tags: [],
|
|
59
|
-
},
|
|
60
40
|
{
|
|
61
41
|
hostname: "cognito-idp-fips.us-west-2.amazonaws.com",
|
|
62
42
|
tags: ["fips"],
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.StartUserImportJobRequest = exports.SignUpResponse = exports.SignUpRequest = exports.SetUserSettingsResponse = exports.SetUserSettingsRequest = exports.SetUserPoolMfaConfigResponse = exports.SetUserPoolMfaConfigRequest = exports.SetUserMFAPreferenceResponse = exports.SetUserMFAPreferenceRequest = exports.SetUICustomizationResponse = exports.SetUICustomizationRequest =
|
|
3
|
+
exports.NewDeviceMetadataType = exports.AdminInitiateAuthRequest = exports.ContextDataType = exports.HttpHeader = exports.AuthFlowType = exports.AnalyticsMetadataType = exports.AdminGetUserResponse = exports.AdminGetUserRequest = exports.AdminGetDeviceResponse = exports.DeviceType = exports.AdminGetDeviceRequest = exports.AdminForgetDeviceRequest = exports.AdminEnableUserResponse = exports.AdminEnableUserRequest = exports.AdminDisableUserResponse = exports.AdminDisableUserRequest = exports.AdminDisableProviderForUserResponse = exports.AdminDisableProviderForUserRequest = exports.ProviderUserIdentifierType = exports.AdminDeleteUserAttributesResponse = exports.AdminDeleteUserAttributesRequest = exports.AdminDeleteUserRequest = exports.AdminCreateUserConfigType = exports.MessageTemplateType = exports.AdminCreateUserResponse = exports.UserType = exports.UserStatusType = exports.MFAOptionType = exports.AdminCreateUserRequest = exports.AttributeType = exports.MessageActionType = exports.DeliveryMediumType = exports.AdminConfirmSignUpResponse = exports.AdminConfirmSignUpRequest = exports.AdminAddUserToGroupRequest = exports.AddCustomAttributesResponse = exports.AddCustomAttributesRequest = exports.SchemaAttributeType = exports.StringAttributeConstraintsType = exports.NumberAttributeConstraintsType = exports.AttributeDataType = exports.AccountTakeoverRiskConfigurationType = exports.NotifyConfigurationType = exports.NotifyEmailType = exports.AccountTakeoverActionsType = exports.AccountTakeoverActionType = exports.AccountTakeoverEventActionType = exports.AccountRecoverySettingType = exports.RecoveryOptionType = exports.RecoveryOptionNameType = void 0;
|
|
4
|
+
exports.AssociateSoftwareTokenRequest = exports.AnalyticsConfigurationType = exports.AliasAttributeType = exports.AdvancedSecurityModeType = exports.AdminUserGlobalSignOutResponse = exports.AdminUserGlobalSignOutRequest = exports.AdminUpdateUserAttributesResponse = exports.AdminUpdateUserAttributesRequest = exports.AdminUpdateDeviceStatusResponse = exports.AdminUpdateDeviceStatusRequest = exports.DeviceRememberedStatusType = exports.AdminUpdateAuthEventFeedbackResponse = exports.AdminUpdateAuthEventFeedbackRequest = exports.AdminSetUserSettingsResponse = exports.AdminSetUserSettingsRequest = exports.AdminSetUserPasswordResponse = exports.AdminSetUserPasswordRequest = exports.AdminSetUserMFAPreferenceResponse = exports.AdminSetUserMFAPreferenceRequest = exports.SoftwareTokenMfaSettingsType = exports.SMSMfaSettingsType = exports.AdminRespondToAuthChallengeResponse = exports.AdminRespondToAuthChallengeRequest = exports.AdminResetUserPasswordResponse = exports.AdminResetUserPasswordRequest = exports.AdminRemoveUserFromGroupRequest = exports.AdminListUserAuthEventsResponse = exports.AuthEventType = exports.EventType = exports.EventRiskType = exports.RiskLevelType = exports.RiskDecisionType = exports.EventResponseType = exports.EventFeedbackType = exports.FeedbackValueType = exports.EventContextDataType = exports.ChallengeResponseType = exports.ChallengeResponse = exports.ChallengeName = exports.AdminListUserAuthEventsRequest = exports.AdminListGroupsForUserResponse = exports.GroupType = exports.AdminListGroupsForUserRequest = exports.AdminListDevicesResponse = exports.AdminListDevicesRequest = exports.AdminLinkProviderForUserResponse = exports.AdminLinkProviderForUserRequest = exports.AdminInitiateAuthResponse = exports.ChallengeNameType = exports.AuthenticationResultType = void 0;
|
|
5
|
+
exports.PreventUserExistenceErrorTypes = exports.ExplicitAuthFlowsType = exports.OAuthFlowType = exports.CreateUserPoolResponse = exports.UserPoolType = exports.StatusType = exports.CreateUserPoolRequest = exports.VerificationMessageTemplateType = exports.DefaultEmailOptionType = exports.UserPoolAddOnsType = exports.UsernameConfigurationType = exports.UsernameAttributeType = exports.SmsConfigurationType = exports.UserPoolPolicyType = exports.PasswordPolicyType = exports.UserPoolMfaType = exports.LambdaConfigType = exports.CustomSMSLambdaVersionConfigType = exports.CustomSMSSenderLambdaVersionType = exports.CustomEmailLambdaVersionConfigType = exports.CustomEmailSenderLambdaVersionType = exports.EmailConfigurationType = exports.EmailSendingAccountType = exports.DeviceConfigurationType = exports.VerifiedAttributeType = exports.CreateUserImportJobResponse = exports.UserImportJobType = exports.UserImportJobStatusType = exports.CreateUserImportJobRequest = exports.CreateResourceServerResponse = exports.ResourceServerType = exports.CreateResourceServerRequest = exports.ResourceServerScopeType = exports.CreateIdentityProviderResponse = exports.IdentityProviderType = exports.CreateIdentityProviderRequest = exports.IdentityProviderTypeType = exports.CreateGroupResponse = exports.CreateGroupRequest = exports.ConfirmSignUpResponse = exports.ConfirmSignUpRequest = exports.ConfirmForgotPasswordResponse = exports.ConfirmForgotPasswordRequest = exports.UserContextDataType = exports.ConfirmDeviceResponse = exports.ConfirmDeviceRequest = exports.DeviceSecretVerifierConfigType = exports.ChangePasswordResponse = exports.ChangePasswordRequest = exports.AssociateSoftwareTokenResponse = void 0;
|
|
6
|
+
exports.GetGroupResponse = exports.GetGroupRequest = exports.GetDeviceResponse = exports.GetDeviceRequest = exports.GetCSVHeaderResponse = exports.GetCSVHeaderRequest = exports.ForgotPasswordResponse = exports.CodeDeliveryDetailsType = exports.ForgotPasswordRequest = exports.ForgetDeviceRequest = exports.DescribeUserPoolDomainResponse = exports.DomainDescriptionType = exports.DomainStatusType = exports.DescribeUserPoolDomainRequest = exports.DescribeUserPoolClientResponse = exports.DescribeUserPoolClientRequest = exports.DescribeUserPoolResponse = exports.DescribeUserPoolRequest = exports.DescribeUserImportJobResponse = exports.DescribeUserImportJobRequest = exports.DescribeRiskConfigurationResponse = exports.RiskConfigurationType = exports.RiskExceptionConfigurationType = exports.CompromisedCredentialsRiskConfigurationType = exports.EventFilterType = exports.CompromisedCredentialsActionsType = exports.CompromisedCredentialsEventActionType = exports.DescribeRiskConfigurationRequest = exports.DescribeResourceServerResponse = exports.DescribeResourceServerRequest = exports.DescribeIdentityProviderResponse = exports.DescribeIdentityProviderRequest = exports.DeleteUserPoolDomainResponse = exports.DeleteUserPoolDomainRequest = exports.DeleteUserPoolClientRequest = exports.DeleteUserPoolRequest = exports.DeleteUserAttributesResponse = exports.DeleteUserAttributesRequest = exports.DeleteUserRequest = exports.DeleteResourceServerRequest = exports.DeleteIdentityProviderRequest = exports.DeleteGroupRequest = exports.CreateUserPoolDomainResponse = exports.CreateUserPoolDomainRequest = exports.CustomDomainConfigType = exports.CreateUserPoolClientResponse = exports.UserPoolClientType = exports.CreateUserPoolClientRequest = exports.TokenValidityUnitsType = exports.TimeUnitsType = void 0;
|
|
7
|
+
exports.SetRiskConfigurationResponse = exports.SetRiskConfigurationRequest = exports.RevokeTokenResponse = exports.RevokeTokenRequest = exports.RespondToAuthChallengeResponse = exports.RespondToAuthChallengeRequest = exports.ResendConfirmationCodeResponse = exports.ResendConfirmationCodeRequest = exports.ListUsersInGroupResponse = exports.ListUsersInGroupRequest = exports.ListUsersResponse = exports.ListUsersRequest = exports.ListUserPoolsResponse = exports.UserPoolDescriptionType = exports.ListUserPoolsRequest = exports.ListUserPoolClientsResponse = exports.UserPoolClientDescription = exports.ListUserPoolClientsRequest = exports.ListUserImportJobsResponse = exports.ListUserImportJobsRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListResourceServersResponse = exports.ListResourceServersRequest = exports.ListIdentityProvidersResponse = exports.ProviderDescription = exports.ListIdentityProvidersRequest = exports.ListGroupsResponse = exports.ListGroupsRequest = exports.ListDevicesResponse = exports.ListDevicesRequest = exports.InitiateAuthResponse = exports.InitiateAuthRequest = exports.GlobalSignOutResponse = exports.GlobalSignOutRequest = exports.GetUserPoolMfaConfigResponse = exports.SoftwareTokenMfaConfigType = exports.SmsMfaConfigType = exports.GetUserPoolMfaConfigRequest = exports.GetUserAttributeVerificationCodeResponse = exports.GetUserAttributeVerificationCodeRequest = exports.GetUserResponse = exports.GetUserRequest = exports.GetUICustomizationResponse = exports.UICustomizationType = exports.GetUICustomizationRequest = exports.GetSigningCertificateResponse = exports.GetSigningCertificateRequest = exports.GetIdentityProviderByIdentifierResponse = exports.GetIdentityProviderByIdentifierRequest = void 0;
|
|
8
|
+
exports.StartUserImportJobRequest = exports.SignUpResponse = exports.SignUpRequest = exports.SetUserSettingsResponse = exports.SetUserSettingsRequest = exports.SetUserPoolMfaConfigResponse = exports.SetUserPoolMfaConfigRequest = exports.SetUserMFAPreferenceResponse = exports.SetUserMFAPreferenceRequest = exports.SetUICustomizationResponse = exports.SetUICustomizationRequest = void 0;
|
|
9
9
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
10
10
|
var RecoveryOptionNameType;
|
|
11
11
|
(function (RecoveryOptionNameType) {
|
|
@@ -99,42 +99,6 @@ var AddCustomAttributesResponse;
|
|
|
99
99
|
...obj,
|
|
100
100
|
});
|
|
101
101
|
})(AddCustomAttributesResponse = exports.AddCustomAttributesResponse || (exports.AddCustomAttributesResponse = {}));
|
|
102
|
-
var InternalErrorException;
|
|
103
|
-
(function (InternalErrorException) {
|
|
104
|
-
InternalErrorException.filterSensitiveLog = (obj) => ({
|
|
105
|
-
...obj,
|
|
106
|
-
});
|
|
107
|
-
})(InternalErrorException = exports.InternalErrorException || (exports.InternalErrorException = {}));
|
|
108
|
-
var InvalidParameterException;
|
|
109
|
-
(function (InvalidParameterException) {
|
|
110
|
-
InvalidParameterException.filterSensitiveLog = (obj) => ({
|
|
111
|
-
...obj,
|
|
112
|
-
});
|
|
113
|
-
})(InvalidParameterException = exports.InvalidParameterException || (exports.InvalidParameterException = {}));
|
|
114
|
-
var NotAuthorizedException;
|
|
115
|
-
(function (NotAuthorizedException) {
|
|
116
|
-
NotAuthorizedException.filterSensitiveLog = (obj) => ({
|
|
117
|
-
...obj,
|
|
118
|
-
});
|
|
119
|
-
})(NotAuthorizedException = exports.NotAuthorizedException || (exports.NotAuthorizedException = {}));
|
|
120
|
-
var ResourceNotFoundException;
|
|
121
|
-
(function (ResourceNotFoundException) {
|
|
122
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
123
|
-
...obj,
|
|
124
|
-
});
|
|
125
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
126
|
-
var TooManyRequestsException;
|
|
127
|
-
(function (TooManyRequestsException) {
|
|
128
|
-
TooManyRequestsException.filterSensitiveLog = (obj) => ({
|
|
129
|
-
...obj,
|
|
130
|
-
});
|
|
131
|
-
})(TooManyRequestsException = exports.TooManyRequestsException || (exports.TooManyRequestsException = {}));
|
|
132
|
-
var UserImportInProgressException;
|
|
133
|
-
(function (UserImportInProgressException) {
|
|
134
|
-
UserImportInProgressException.filterSensitiveLog = (obj) => ({
|
|
135
|
-
...obj,
|
|
136
|
-
});
|
|
137
|
-
})(UserImportInProgressException = exports.UserImportInProgressException || (exports.UserImportInProgressException = {}));
|
|
138
102
|
var AdminAddUserToGroupRequest;
|
|
139
103
|
(function (AdminAddUserToGroupRequest) {
|
|
140
104
|
AdminAddUserToGroupRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -142,12 +106,6 @@ var AdminAddUserToGroupRequest;
|
|
|
142
106
|
...(obj.Username && { Username: smithy_client_1.SENSITIVE_STRING }),
|
|
143
107
|
});
|
|
144
108
|
})(AdminAddUserToGroupRequest = exports.AdminAddUserToGroupRequest || (exports.AdminAddUserToGroupRequest = {}));
|
|
145
|
-
var UserNotFoundException;
|
|
146
|
-
(function (UserNotFoundException) {
|
|
147
|
-
UserNotFoundException.filterSensitiveLog = (obj) => ({
|
|
148
|
-
...obj,
|
|
149
|
-
});
|
|
150
|
-
})(UserNotFoundException = exports.UserNotFoundException || (exports.UserNotFoundException = {}));
|
|
151
109
|
var AdminConfirmSignUpRequest;
|
|
152
110
|
(function (AdminConfirmSignUpRequest) {
|
|
153
111
|
AdminConfirmSignUpRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -161,36 +119,6 @@ var AdminConfirmSignUpResponse;
|
|
|
161
119
|
...obj,
|
|
162
120
|
});
|
|
163
121
|
})(AdminConfirmSignUpResponse = exports.AdminConfirmSignUpResponse || (exports.AdminConfirmSignUpResponse = {}));
|
|
164
|
-
var InvalidLambdaResponseException;
|
|
165
|
-
(function (InvalidLambdaResponseException) {
|
|
166
|
-
InvalidLambdaResponseException.filterSensitiveLog = (obj) => ({
|
|
167
|
-
...obj,
|
|
168
|
-
});
|
|
169
|
-
})(InvalidLambdaResponseException = exports.InvalidLambdaResponseException || (exports.InvalidLambdaResponseException = {}));
|
|
170
|
-
var LimitExceededException;
|
|
171
|
-
(function (LimitExceededException) {
|
|
172
|
-
LimitExceededException.filterSensitiveLog = (obj) => ({
|
|
173
|
-
...obj,
|
|
174
|
-
});
|
|
175
|
-
})(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
|
|
176
|
-
var TooManyFailedAttemptsException;
|
|
177
|
-
(function (TooManyFailedAttemptsException) {
|
|
178
|
-
TooManyFailedAttemptsException.filterSensitiveLog = (obj) => ({
|
|
179
|
-
...obj,
|
|
180
|
-
});
|
|
181
|
-
})(TooManyFailedAttemptsException = exports.TooManyFailedAttemptsException || (exports.TooManyFailedAttemptsException = {}));
|
|
182
|
-
var UnexpectedLambdaException;
|
|
183
|
-
(function (UnexpectedLambdaException) {
|
|
184
|
-
UnexpectedLambdaException.filterSensitiveLog = (obj) => ({
|
|
185
|
-
...obj,
|
|
186
|
-
});
|
|
187
|
-
})(UnexpectedLambdaException = exports.UnexpectedLambdaException || (exports.UnexpectedLambdaException = {}));
|
|
188
|
-
var UserLambdaValidationException;
|
|
189
|
-
(function (UserLambdaValidationException) {
|
|
190
|
-
UserLambdaValidationException.filterSensitiveLog = (obj) => ({
|
|
191
|
-
...obj,
|
|
192
|
-
});
|
|
193
|
-
})(UserLambdaValidationException = exports.UserLambdaValidationException || (exports.UserLambdaValidationException = {}));
|
|
194
122
|
var DeliveryMediumType;
|
|
195
123
|
(function (DeliveryMediumType) {
|
|
196
124
|
DeliveryMediumType["EMAIL"] = "EMAIL";
|
|
@@ -253,48 +181,6 @@ var AdminCreateUserResponse;
|
|
|
253
181
|
...(obj.User && { User: UserType.filterSensitiveLog(obj.User) }),
|
|
254
182
|
});
|
|
255
183
|
})(AdminCreateUserResponse = exports.AdminCreateUserResponse || (exports.AdminCreateUserResponse = {}));
|
|
256
|
-
var CodeDeliveryFailureException;
|
|
257
|
-
(function (CodeDeliveryFailureException) {
|
|
258
|
-
CodeDeliveryFailureException.filterSensitiveLog = (obj) => ({
|
|
259
|
-
...obj,
|
|
260
|
-
});
|
|
261
|
-
})(CodeDeliveryFailureException = exports.CodeDeliveryFailureException || (exports.CodeDeliveryFailureException = {}));
|
|
262
|
-
var InvalidPasswordException;
|
|
263
|
-
(function (InvalidPasswordException) {
|
|
264
|
-
InvalidPasswordException.filterSensitiveLog = (obj) => ({
|
|
265
|
-
...obj,
|
|
266
|
-
});
|
|
267
|
-
})(InvalidPasswordException = exports.InvalidPasswordException || (exports.InvalidPasswordException = {}));
|
|
268
|
-
var InvalidSmsRoleAccessPolicyException;
|
|
269
|
-
(function (InvalidSmsRoleAccessPolicyException) {
|
|
270
|
-
InvalidSmsRoleAccessPolicyException.filterSensitiveLog = (obj) => ({
|
|
271
|
-
...obj,
|
|
272
|
-
});
|
|
273
|
-
})(InvalidSmsRoleAccessPolicyException = exports.InvalidSmsRoleAccessPolicyException || (exports.InvalidSmsRoleAccessPolicyException = {}));
|
|
274
|
-
var InvalidSmsRoleTrustRelationshipException;
|
|
275
|
-
(function (InvalidSmsRoleTrustRelationshipException) {
|
|
276
|
-
InvalidSmsRoleTrustRelationshipException.filterSensitiveLog = (obj) => ({
|
|
277
|
-
...obj,
|
|
278
|
-
});
|
|
279
|
-
})(InvalidSmsRoleTrustRelationshipException = exports.InvalidSmsRoleTrustRelationshipException || (exports.InvalidSmsRoleTrustRelationshipException = {}));
|
|
280
|
-
var PreconditionNotMetException;
|
|
281
|
-
(function (PreconditionNotMetException) {
|
|
282
|
-
PreconditionNotMetException.filterSensitiveLog = (obj) => ({
|
|
283
|
-
...obj,
|
|
284
|
-
});
|
|
285
|
-
})(PreconditionNotMetException = exports.PreconditionNotMetException || (exports.PreconditionNotMetException = {}));
|
|
286
|
-
var UnsupportedUserStateException;
|
|
287
|
-
(function (UnsupportedUserStateException) {
|
|
288
|
-
UnsupportedUserStateException.filterSensitiveLog = (obj) => ({
|
|
289
|
-
...obj,
|
|
290
|
-
});
|
|
291
|
-
})(UnsupportedUserStateException = exports.UnsupportedUserStateException || (exports.UnsupportedUserStateException = {}));
|
|
292
|
-
var UsernameExistsException;
|
|
293
|
-
(function (UsernameExistsException) {
|
|
294
|
-
UsernameExistsException.filterSensitiveLog = (obj) => ({
|
|
295
|
-
...obj,
|
|
296
|
-
});
|
|
297
|
-
})(UsernameExistsException = exports.UsernameExistsException || (exports.UsernameExistsException = {}));
|
|
298
184
|
var MessageTemplateType;
|
|
299
185
|
(function (MessageTemplateType) {
|
|
300
186
|
MessageTemplateType.filterSensitiveLog = (obj) => ({
|
|
@@ -345,12 +231,6 @@ var AdminDisableProviderForUserResponse;
|
|
|
345
231
|
...obj,
|
|
346
232
|
});
|
|
347
233
|
})(AdminDisableProviderForUserResponse = exports.AdminDisableProviderForUserResponse || (exports.AdminDisableProviderForUserResponse = {}));
|
|
348
|
-
var AliasExistsException;
|
|
349
|
-
(function (AliasExistsException) {
|
|
350
|
-
AliasExistsException.filterSensitiveLog = (obj) => ({
|
|
351
|
-
...obj,
|
|
352
|
-
});
|
|
353
|
-
})(AliasExistsException = exports.AliasExistsException || (exports.AliasExistsException = {}));
|
|
354
234
|
var AdminDisableUserRequest;
|
|
355
235
|
(function (AdminDisableUserRequest) {
|
|
356
236
|
AdminDisableUserRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -384,12 +264,6 @@ var AdminForgetDeviceRequest;
|
|
|
384
264
|
...(obj.Username && { Username: smithy_client_1.SENSITIVE_STRING }),
|
|
385
265
|
});
|
|
386
266
|
})(AdminForgetDeviceRequest = exports.AdminForgetDeviceRequest || (exports.AdminForgetDeviceRequest = {}));
|
|
387
|
-
var InvalidUserPoolConfigurationException;
|
|
388
|
-
(function (InvalidUserPoolConfigurationException) {
|
|
389
|
-
InvalidUserPoolConfigurationException.filterSensitiveLog = (obj) => ({
|
|
390
|
-
...obj,
|
|
391
|
-
});
|
|
392
|
-
})(InvalidUserPoolConfigurationException = exports.InvalidUserPoolConfigurationException || (exports.InvalidUserPoolConfigurationException = {}));
|
|
393
267
|
var AdminGetDeviceRequest;
|
|
394
268
|
(function (AdminGetDeviceRequest) {
|
|
395
269
|
AdminGetDeviceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -503,24 +377,6 @@ var AdminInitiateAuthResponse;
|
|
|
503
377
|
}),
|
|
504
378
|
});
|
|
505
379
|
})(AdminInitiateAuthResponse = exports.AdminInitiateAuthResponse || (exports.AdminInitiateAuthResponse = {}));
|
|
506
|
-
var MFAMethodNotFoundException;
|
|
507
|
-
(function (MFAMethodNotFoundException) {
|
|
508
|
-
MFAMethodNotFoundException.filterSensitiveLog = (obj) => ({
|
|
509
|
-
...obj,
|
|
510
|
-
});
|
|
511
|
-
})(MFAMethodNotFoundException = exports.MFAMethodNotFoundException || (exports.MFAMethodNotFoundException = {}));
|
|
512
|
-
var PasswordResetRequiredException;
|
|
513
|
-
(function (PasswordResetRequiredException) {
|
|
514
|
-
PasswordResetRequiredException.filterSensitiveLog = (obj) => ({
|
|
515
|
-
...obj,
|
|
516
|
-
});
|
|
517
|
-
})(PasswordResetRequiredException = exports.PasswordResetRequiredException || (exports.PasswordResetRequiredException = {}));
|
|
518
|
-
var UserNotConfirmedException;
|
|
519
|
-
(function (UserNotConfirmedException) {
|
|
520
|
-
UserNotConfirmedException.filterSensitiveLog = (obj) => ({
|
|
521
|
-
...obj,
|
|
522
|
-
});
|
|
523
|
-
})(UserNotConfirmedException = exports.UserNotConfirmedException || (exports.UserNotConfirmedException = {}));
|
|
524
380
|
var AdminLinkProviderForUserRequest;
|
|
525
381
|
(function (AdminLinkProviderForUserRequest) {
|
|
526
382
|
AdminLinkProviderForUserRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -646,12 +502,6 @@ var AdminListUserAuthEventsResponse;
|
|
|
646
502
|
...obj,
|
|
647
503
|
});
|
|
648
504
|
})(AdminListUserAuthEventsResponse = exports.AdminListUserAuthEventsResponse || (exports.AdminListUserAuthEventsResponse = {}));
|
|
649
|
-
var UserPoolAddOnNotEnabledException;
|
|
650
|
-
(function (UserPoolAddOnNotEnabledException) {
|
|
651
|
-
UserPoolAddOnNotEnabledException.filterSensitiveLog = (obj) => ({
|
|
652
|
-
...obj,
|
|
653
|
-
});
|
|
654
|
-
})(UserPoolAddOnNotEnabledException = exports.UserPoolAddOnNotEnabledException || (exports.UserPoolAddOnNotEnabledException = {}));
|
|
655
505
|
var AdminRemoveUserFromGroupRequest;
|
|
656
506
|
(function (AdminRemoveUserFromGroupRequest) {
|
|
657
507
|
AdminRemoveUserFromGroupRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -672,12 +522,6 @@ var AdminResetUserPasswordResponse;
|
|
|
672
522
|
...obj,
|
|
673
523
|
});
|
|
674
524
|
})(AdminResetUserPasswordResponse = exports.AdminResetUserPasswordResponse || (exports.AdminResetUserPasswordResponse = {}));
|
|
675
|
-
var InvalidEmailRoleAccessPolicyException;
|
|
676
|
-
(function (InvalidEmailRoleAccessPolicyException) {
|
|
677
|
-
InvalidEmailRoleAccessPolicyException.filterSensitiveLog = (obj) => ({
|
|
678
|
-
...obj,
|
|
679
|
-
});
|
|
680
|
-
})(InvalidEmailRoleAccessPolicyException = exports.InvalidEmailRoleAccessPolicyException || (exports.InvalidEmailRoleAccessPolicyException = {}));
|
|
681
525
|
var AdminRespondToAuthChallengeRequest;
|
|
682
526
|
(function (AdminRespondToAuthChallengeRequest) {
|
|
683
527
|
AdminRespondToAuthChallengeRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -694,24 +538,6 @@ var AdminRespondToAuthChallengeResponse;
|
|
|
694
538
|
}),
|
|
695
539
|
});
|
|
696
540
|
})(AdminRespondToAuthChallengeResponse = exports.AdminRespondToAuthChallengeResponse || (exports.AdminRespondToAuthChallengeResponse = {}));
|
|
697
|
-
var CodeMismatchException;
|
|
698
|
-
(function (CodeMismatchException) {
|
|
699
|
-
CodeMismatchException.filterSensitiveLog = (obj) => ({
|
|
700
|
-
...obj,
|
|
701
|
-
});
|
|
702
|
-
})(CodeMismatchException = exports.CodeMismatchException || (exports.CodeMismatchException = {}));
|
|
703
|
-
var ExpiredCodeException;
|
|
704
|
-
(function (ExpiredCodeException) {
|
|
705
|
-
ExpiredCodeException.filterSensitiveLog = (obj) => ({
|
|
706
|
-
...obj,
|
|
707
|
-
});
|
|
708
|
-
})(ExpiredCodeException = exports.ExpiredCodeException || (exports.ExpiredCodeException = {}));
|
|
709
|
-
var SoftwareTokenMFANotFoundException;
|
|
710
|
-
(function (SoftwareTokenMFANotFoundException) {
|
|
711
|
-
SoftwareTokenMFANotFoundException.filterSensitiveLog = (obj) => ({
|
|
712
|
-
...obj,
|
|
713
|
-
});
|
|
714
|
-
})(SoftwareTokenMFANotFoundException = exports.SoftwareTokenMFANotFoundException || (exports.SoftwareTokenMFANotFoundException = {}));
|
|
715
541
|
var SMSMfaSettingsType;
|
|
716
542
|
(function (SMSMfaSettingsType) {
|
|
717
543
|
SMSMfaSettingsType.filterSensitiveLog = (obj) => ({
|
|
@@ -856,12 +682,6 @@ var AssociateSoftwareTokenResponse;
|
|
|
856
682
|
...(obj.SecretCode && { SecretCode: smithy_client_1.SENSITIVE_STRING }),
|
|
857
683
|
});
|
|
858
684
|
})(AssociateSoftwareTokenResponse = exports.AssociateSoftwareTokenResponse || (exports.AssociateSoftwareTokenResponse = {}));
|
|
859
|
-
var ConcurrentModificationException;
|
|
860
|
-
(function (ConcurrentModificationException) {
|
|
861
|
-
ConcurrentModificationException.filterSensitiveLog = (obj) => ({
|
|
862
|
-
...obj,
|
|
863
|
-
});
|
|
864
|
-
})(ConcurrentModificationException = exports.ConcurrentModificationException || (exports.ConcurrentModificationException = {}));
|
|
865
685
|
var ChangePasswordRequest;
|
|
866
686
|
(function (ChangePasswordRequest) {
|
|
867
687
|
ChangePasswordRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -945,12 +765,6 @@ var CreateGroupResponse;
|
|
|
945
765
|
...obj,
|
|
946
766
|
});
|
|
947
767
|
})(CreateGroupResponse = exports.CreateGroupResponse || (exports.CreateGroupResponse = {}));
|
|
948
|
-
var GroupExistsException;
|
|
949
|
-
(function (GroupExistsException) {
|
|
950
|
-
GroupExistsException.filterSensitiveLog = (obj) => ({
|
|
951
|
-
...obj,
|
|
952
|
-
});
|
|
953
|
-
})(GroupExistsException = exports.GroupExistsException || (exports.GroupExistsException = {}));
|
|
954
768
|
var IdentityProviderTypeType;
|
|
955
769
|
(function (IdentityProviderTypeType) {
|
|
956
770
|
IdentityProviderTypeType["Facebook"] = "Facebook";
|
|
@@ -978,12 +792,6 @@ var CreateIdentityProviderResponse;
|
|
|
978
792
|
...obj,
|
|
979
793
|
});
|
|
980
794
|
})(CreateIdentityProviderResponse = exports.CreateIdentityProviderResponse || (exports.CreateIdentityProviderResponse = {}));
|
|
981
|
-
var DuplicateProviderException;
|
|
982
|
-
(function (DuplicateProviderException) {
|
|
983
|
-
DuplicateProviderException.filterSensitiveLog = (obj) => ({
|
|
984
|
-
...obj,
|
|
985
|
-
});
|
|
986
|
-
})(DuplicateProviderException = exports.DuplicateProviderException || (exports.DuplicateProviderException = {}));
|
|
987
795
|
var ResourceServerScopeType;
|
|
988
796
|
(function (ResourceServerScopeType) {
|
|
989
797
|
ResourceServerScopeType.filterSensitiveLog = (obj) => ({
|
|
@@ -1160,12 +968,6 @@ var CreateUserPoolResponse;
|
|
|
1160
968
|
...obj,
|
|
1161
969
|
});
|
|
1162
970
|
})(CreateUserPoolResponse = exports.CreateUserPoolResponse || (exports.CreateUserPoolResponse = {}));
|
|
1163
|
-
var UserPoolTaggingException;
|
|
1164
|
-
(function (UserPoolTaggingException) {
|
|
1165
|
-
UserPoolTaggingException.filterSensitiveLog = (obj) => ({
|
|
1166
|
-
...obj,
|
|
1167
|
-
});
|
|
1168
|
-
})(UserPoolTaggingException = exports.UserPoolTaggingException || (exports.UserPoolTaggingException = {}));
|
|
1169
971
|
var OAuthFlowType;
|
|
1170
972
|
(function (OAuthFlowType) {
|
|
1171
973
|
OAuthFlowType["client_credentials"] = "client_credentials";
|
|
@@ -1222,18 +1024,6 @@ var CreateUserPoolClientResponse;
|
|
|
1222
1024
|
...(obj.UserPoolClient && { UserPoolClient: UserPoolClientType.filterSensitiveLog(obj.UserPoolClient) }),
|
|
1223
1025
|
});
|
|
1224
1026
|
})(CreateUserPoolClientResponse = exports.CreateUserPoolClientResponse || (exports.CreateUserPoolClientResponse = {}));
|
|
1225
|
-
var InvalidOAuthFlowException;
|
|
1226
|
-
(function (InvalidOAuthFlowException) {
|
|
1227
|
-
InvalidOAuthFlowException.filterSensitiveLog = (obj) => ({
|
|
1228
|
-
...obj,
|
|
1229
|
-
});
|
|
1230
|
-
})(InvalidOAuthFlowException = exports.InvalidOAuthFlowException || (exports.InvalidOAuthFlowException = {}));
|
|
1231
|
-
var ScopeDoesNotExistException;
|
|
1232
|
-
(function (ScopeDoesNotExistException) {
|
|
1233
|
-
ScopeDoesNotExistException.filterSensitiveLog = (obj) => ({
|
|
1234
|
-
...obj,
|
|
1235
|
-
});
|
|
1236
|
-
})(ScopeDoesNotExistException = exports.ScopeDoesNotExistException || (exports.ScopeDoesNotExistException = {}));
|
|
1237
1027
|
var CustomDomainConfigType;
|
|
1238
1028
|
(function (CustomDomainConfigType) {
|
|
1239
1029
|
CustomDomainConfigType.filterSensitiveLog = (obj) => ({
|
|
@@ -1264,12 +1054,6 @@ var DeleteIdentityProviderRequest;
|
|
|
1264
1054
|
...obj,
|
|
1265
1055
|
});
|
|
1266
1056
|
})(DeleteIdentityProviderRequest = exports.DeleteIdentityProviderRequest || (exports.DeleteIdentityProviderRequest = {}));
|
|
1267
|
-
var UnsupportedIdentityProviderException;
|
|
1268
|
-
(function (UnsupportedIdentityProviderException) {
|
|
1269
|
-
UnsupportedIdentityProviderException.filterSensitiveLog = (obj) => ({
|
|
1270
|
-
...obj,
|
|
1271
|
-
});
|
|
1272
|
-
})(UnsupportedIdentityProviderException = exports.UnsupportedIdentityProviderException || (exports.UnsupportedIdentityProviderException = {}));
|
|
1273
1057
|
var DeleteResourceServerRequest;
|
|
1274
1058
|
(function (DeleteResourceServerRequest) {
|
|
1275
1059
|
DeleteResourceServerRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1847,24 +1631,6 @@ var RevokeTokenResponse;
|
|
|
1847
1631
|
...obj,
|
|
1848
1632
|
});
|
|
1849
1633
|
})(RevokeTokenResponse = exports.RevokeTokenResponse || (exports.RevokeTokenResponse = {}));
|
|
1850
|
-
var UnauthorizedException;
|
|
1851
|
-
(function (UnauthorizedException) {
|
|
1852
|
-
UnauthorizedException.filterSensitiveLog = (obj) => ({
|
|
1853
|
-
...obj,
|
|
1854
|
-
});
|
|
1855
|
-
})(UnauthorizedException = exports.UnauthorizedException || (exports.UnauthorizedException = {}));
|
|
1856
|
-
var UnsupportedOperationException;
|
|
1857
|
-
(function (UnsupportedOperationException) {
|
|
1858
|
-
UnsupportedOperationException.filterSensitiveLog = (obj) => ({
|
|
1859
|
-
...obj,
|
|
1860
|
-
});
|
|
1861
|
-
})(UnsupportedOperationException = exports.UnsupportedOperationException || (exports.UnsupportedOperationException = {}));
|
|
1862
|
-
var UnsupportedTokenTypeException;
|
|
1863
|
-
(function (UnsupportedTokenTypeException) {
|
|
1864
|
-
UnsupportedTokenTypeException.filterSensitiveLog = (obj) => ({
|
|
1865
|
-
...obj,
|
|
1866
|
-
});
|
|
1867
|
-
})(UnsupportedTokenTypeException = exports.UnsupportedTokenTypeException || (exports.UnsupportedTokenTypeException = {}));
|
|
1868
1634
|
var SetRiskConfigurationRequest;
|
|
1869
1635
|
(function (SetRiskConfigurationRequest) {
|
|
1870
1636
|
SetRiskConfigurationRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VerifyUserAttributeResponse = exports.VerifyUserAttributeRequest = exports.VerifySoftwareTokenResponse = exports.VerifySoftwareTokenResponseType = exports.VerifySoftwareTokenRequest = exports.
|
|
3
|
+
exports.VerifyUserAttributeResponse = exports.VerifyUserAttributeRequest = exports.VerifySoftwareTokenResponse = exports.VerifySoftwareTokenResponseType = exports.VerifySoftwareTokenRequest = exports.UpdateUserPoolDomainResponse = exports.UpdateUserPoolDomainRequest = exports.UpdateUserPoolClientResponse = exports.UpdateUserPoolClientRequest = exports.UpdateUserPoolResponse = exports.UpdateUserPoolRequest = exports.UpdateUserAttributesResponse = exports.UpdateUserAttributesRequest = exports.UpdateResourceServerResponse = exports.UpdateResourceServerRequest = exports.UpdateIdentityProviderResponse = exports.UpdateIdentityProviderRequest = exports.UpdateGroupResponse = exports.UpdateGroupRequest = exports.UpdateDeviceStatusResponse = exports.UpdateDeviceStatusRequest = exports.UpdateAuthEventFeedbackResponse = exports.UpdateAuthEventFeedbackRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopUserImportJobResponse = exports.StopUserImportJobRequest = exports.StartUserImportJobResponse = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const models_0_1 = require("./models_0");
|
|
6
6
|
var StartUserImportJobResponse;
|
|
@@ -162,12 +162,6 @@ var UpdateUserPoolDomainResponse;
|
|
|
162
162
|
...obj,
|
|
163
163
|
});
|
|
164
164
|
})(UpdateUserPoolDomainResponse = exports.UpdateUserPoolDomainResponse || (exports.UpdateUserPoolDomainResponse = {}));
|
|
165
|
-
var EnableSoftwareTokenMFAException;
|
|
166
|
-
(function (EnableSoftwareTokenMFAException) {
|
|
167
|
-
EnableSoftwareTokenMFAException.filterSensitiveLog = (obj) => ({
|
|
168
|
-
...obj,
|
|
169
|
-
});
|
|
170
|
-
})(EnableSoftwareTokenMFAException = exports.EnableSoftwareTokenMFAException || (exports.EnableSoftwareTokenMFAException = {}));
|
|
171
165
|
var VerifySoftwareTokenRequest;
|
|
172
166
|
(function (VerifySoftwareTokenRequest) {
|
|
173
167
|
VerifySoftwareTokenRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
18
20
|
const getRuntimeConfig = (config) => {
|
|
19
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
21
25
|
return {
|
|
22
26
|
...clientSharedValues,
|
|
23
27
|
...config,
|
|
24
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
25
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
26
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
27
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
29
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
31
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
32
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
33
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
34
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
35
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
36
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"us-east-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "cognito-idp.us-east-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "cognito-idp-fips.us-east-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-2": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "cognito-idp.us-east-2.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "cognito-idp-fips.us-east-2.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-gov-west-1": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "cognito-idp.us-gov-west-1.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "cognito-idp-fips.us-gov-west-1.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -39,10 +27,6 @@ var regionHash = {
|
|
|
39
27
|
},
|
|
40
28
|
"us-west-1": {
|
|
41
29
|
variants: [
|
|
42
|
-
{
|
|
43
|
-
hostname: "cognito-idp.us-west-1.amazonaws.com",
|
|
44
|
-
tags: [],
|
|
45
|
-
},
|
|
46
30
|
{
|
|
47
31
|
hostname: "cognito-idp-fips.us-west-1.amazonaws.com",
|
|
48
32
|
tags: ["fips"],
|
|
@@ -51,10 +35,6 @@ var regionHash = {
|
|
|
51
35
|
},
|
|
52
36
|
"us-west-2": {
|
|
53
37
|
variants: [
|
|
54
|
-
{
|
|
55
|
-
hostname: "cognito-idp.us-west-2.amazonaws.com",
|
|
56
|
-
tags: [],
|
|
57
|
-
},
|
|
58
38
|
{
|
|
59
39
|
hostname: "cognito-idp-fips.us-west-2.amazonaws.com",
|
|
60
40
|
tags: ["fips"],
|