@aws-sdk/client-cognito-identity-provider 3.926.0 → 3.928.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/dist-cjs/index.js +4672 -5155
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/CognitoIdentityProviderClient.js +2 -0
  4. package/dist-es/commands/AddCustomAttributesCommand.js +3 -9
  5. package/dist-es/commands/AdminAddUserToGroupCommand.js +3 -10
  6. package/dist-es/commands/AdminConfirmSignUpCommand.js +3 -10
  7. package/dist-es/commands/AdminCreateUserCommand.js +3 -10
  8. package/dist-es/commands/AdminDeleteUserAttributesCommand.js +3 -10
  9. package/dist-es/commands/AdminDeleteUserCommand.js +3 -10
  10. package/dist-es/commands/AdminDisableProviderForUserCommand.js +3 -9
  11. package/dist-es/commands/AdminDisableUserCommand.js +3 -10
  12. package/dist-es/commands/AdminEnableUserCommand.js +3 -10
  13. package/dist-es/commands/AdminForgetDeviceCommand.js +3 -10
  14. package/dist-es/commands/AdminGetDeviceCommand.js +3 -10
  15. package/dist-es/commands/AdminGetUserCommand.js +3 -10
  16. package/dist-es/commands/AdminInitiateAuthCommand.js +3 -10
  17. package/dist-es/commands/AdminLinkProviderForUserCommand.js +3 -9
  18. package/dist-es/commands/AdminListDevicesCommand.js +3 -10
  19. package/dist-es/commands/AdminListGroupsForUserCommand.js +3 -10
  20. package/dist-es/commands/AdminListUserAuthEventsCommand.js +3 -10
  21. package/dist-es/commands/AdminRemoveUserFromGroupCommand.js +3 -10
  22. package/dist-es/commands/AdminResetUserPasswordCommand.js +3 -10
  23. package/dist-es/commands/AdminRespondToAuthChallengeCommand.js +3 -10
  24. package/dist-es/commands/AdminSetUserMFAPreferenceCommand.js +3 -10
  25. package/dist-es/commands/AdminSetUserPasswordCommand.js +3 -10
  26. package/dist-es/commands/AdminSetUserSettingsCommand.js +3 -10
  27. package/dist-es/commands/AdminUpdateAuthEventFeedbackCommand.js +3 -10
  28. package/dist-es/commands/AdminUpdateDeviceStatusCommand.js +3 -10
  29. package/dist-es/commands/AdminUpdateUserAttributesCommand.js +3 -10
  30. package/dist-es/commands/AdminUserGlobalSignOutCommand.js +3 -10
  31. package/dist-es/commands/AssociateSoftwareTokenCommand.js +3 -10
  32. package/dist-es/commands/ChangePasswordCommand.js +3 -10
  33. package/dist-es/commands/CompleteWebAuthnRegistrationCommand.js +3 -10
  34. package/dist-es/commands/ConfirmDeviceCommand.js +3 -10
  35. package/dist-es/commands/ConfirmForgotPasswordCommand.js +3 -10
  36. package/dist-es/commands/ConfirmSignUpCommand.js +3 -10
  37. package/dist-es/commands/CreateGroupCommand.js +3 -9
  38. package/dist-es/commands/CreateIdentityProviderCommand.js +3 -9
  39. package/dist-es/commands/CreateManagedLoginBrandingCommand.js +3 -10
  40. package/dist-es/commands/CreateResourceServerCommand.js +3 -9
  41. package/dist-es/commands/CreateTermsCommand.js +3 -10
  42. package/dist-es/commands/CreateUserImportJobCommand.js +3 -9
  43. package/dist-es/commands/CreateUserPoolClientCommand.js +3 -10
  44. package/dist-es/commands/CreateUserPoolCommand.js +3 -9
  45. package/dist-es/commands/CreateUserPoolDomainCommand.js +3 -9
  46. package/dist-es/commands/DeleteGroupCommand.js +3 -9
  47. package/dist-es/commands/DeleteIdentityProviderCommand.js +3 -9
  48. package/dist-es/commands/DeleteManagedLoginBrandingCommand.js +3 -9
  49. package/dist-es/commands/DeleteResourceServerCommand.js +3 -9
  50. package/dist-es/commands/DeleteTermsCommand.js +3 -9
  51. package/dist-es/commands/DeleteUserAttributesCommand.js +3 -10
  52. package/dist-es/commands/DeleteUserCommand.js +3 -10
  53. package/dist-es/commands/DeleteUserPoolClientCommand.js +3 -10
  54. package/dist-es/commands/DeleteUserPoolCommand.js +3 -9
  55. package/dist-es/commands/DeleteUserPoolDomainCommand.js +3 -9
  56. package/dist-es/commands/DeleteWebAuthnCredentialCommand.js +3 -10
  57. package/dist-es/commands/DescribeIdentityProviderCommand.js +3 -9
  58. package/dist-es/commands/DescribeManagedLoginBrandingByClientCommand.js +3 -10
  59. package/dist-es/commands/DescribeManagedLoginBrandingCommand.js +3 -9
  60. package/dist-es/commands/DescribeResourceServerCommand.js +3 -9
  61. package/dist-es/commands/DescribeRiskConfigurationCommand.js +3 -10
  62. package/dist-es/commands/DescribeTermsCommand.js +3 -10
  63. package/dist-es/commands/DescribeUserImportJobCommand.js +3 -9
  64. package/dist-es/commands/DescribeUserPoolClientCommand.js +3 -10
  65. package/dist-es/commands/DescribeUserPoolCommand.js +3 -9
  66. package/dist-es/commands/DescribeUserPoolDomainCommand.js +3 -9
  67. package/dist-es/commands/ForgetDeviceCommand.js +3 -10
  68. package/dist-es/commands/ForgotPasswordCommand.js +3 -10
  69. package/dist-es/commands/GetCSVHeaderCommand.js +3 -9
  70. package/dist-es/commands/GetDeviceCommand.js +3 -10
  71. package/dist-es/commands/GetGroupCommand.js +3 -9
  72. package/dist-es/commands/GetIdentityProviderByIdentifierCommand.js +3 -9
  73. package/dist-es/commands/GetLogDeliveryConfigurationCommand.js +3 -9
  74. package/dist-es/commands/GetSigningCertificateCommand.js +3 -9
  75. package/dist-es/commands/GetTokensFromRefreshTokenCommand.js +3 -11
  76. package/dist-es/commands/GetUICustomizationCommand.js +3 -10
  77. package/dist-es/commands/GetUserAttributeVerificationCodeCommand.js +3 -10
  78. package/dist-es/commands/GetUserAuthFactorsCommand.js +3 -10
  79. package/dist-es/commands/GetUserCommand.js +3 -10
  80. package/dist-es/commands/GetUserPoolMfaConfigCommand.js +3 -9
  81. package/dist-es/commands/GlobalSignOutCommand.js +3 -10
  82. package/dist-es/commands/InitiateAuthCommand.js +3 -10
  83. package/dist-es/commands/ListDevicesCommand.js +3 -10
  84. package/dist-es/commands/ListGroupsCommand.js +3 -9
  85. package/dist-es/commands/ListIdentityProvidersCommand.js +3 -9
  86. package/dist-es/commands/ListResourceServersCommand.js +3 -9
  87. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  88. package/dist-es/commands/ListTermsCommand.js +3 -9
  89. package/dist-es/commands/ListUserImportJobsCommand.js +3 -9
  90. package/dist-es/commands/ListUserPoolClientsCommand.js +3 -10
  91. package/dist-es/commands/ListUserPoolsCommand.js +3 -9
  92. package/dist-es/commands/ListUsersCommand.js +3 -10
  93. package/dist-es/commands/ListUsersInGroupCommand.js +3 -10
  94. package/dist-es/commands/ListWebAuthnCredentialsCommand.js +3 -10
  95. package/dist-es/commands/ResendConfirmationCodeCommand.js +3 -10
  96. package/dist-es/commands/RespondToAuthChallengeCommand.js +3 -10
  97. package/dist-es/commands/RevokeTokenCommand.js +3 -10
  98. package/dist-es/commands/SetLogDeliveryConfigurationCommand.js +3 -9
  99. package/dist-es/commands/SetRiskConfigurationCommand.js +3 -10
  100. package/dist-es/commands/SetUICustomizationCommand.js +3 -10
  101. package/dist-es/commands/SetUserMFAPreferenceCommand.js +3 -10
  102. package/dist-es/commands/SetUserPoolMfaConfigCommand.js +3 -9
  103. package/dist-es/commands/SetUserSettingsCommand.js +3 -10
  104. package/dist-es/commands/SignUpCommand.js +3 -10
  105. package/dist-es/commands/StartUserImportJobCommand.js +3 -9
  106. package/dist-es/commands/StartWebAuthnRegistrationCommand.js +3 -10
  107. package/dist-es/commands/StopUserImportJobCommand.js +3 -9
  108. package/dist-es/commands/TagResourceCommand.js +3 -9
  109. package/dist-es/commands/UntagResourceCommand.js +3 -9
  110. package/dist-es/commands/UpdateAuthEventFeedbackCommand.js +3 -10
  111. package/dist-es/commands/UpdateDeviceStatusCommand.js +3 -10
  112. package/dist-es/commands/UpdateGroupCommand.js +3 -9
  113. package/dist-es/commands/UpdateIdentityProviderCommand.js +3 -9
  114. package/dist-es/commands/UpdateManagedLoginBrandingCommand.js +3 -9
  115. package/dist-es/commands/UpdateResourceServerCommand.js +3 -9
  116. package/dist-es/commands/UpdateTermsCommand.js +3 -10
  117. package/dist-es/commands/UpdateUserAttributesCommand.js +3 -10
  118. package/dist-es/commands/UpdateUserPoolClientCommand.js +3 -10
  119. package/dist-es/commands/UpdateUserPoolCommand.js +3 -9
  120. package/dist-es/commands/UpdateUserPoolDomainCommand.js +3 -9
  121. package/dist-es/commands/VerifySoftwareTokenCommand.js +3 -10
  122. package/dist-es/commands/VerifyUserAttributeCommand.js +3 -10
  123. package/dist-es/models/models_0.js +0 -306
  124. package/dist-es/models/models_1.js +0 -205
  125. package/dist-es/runtimeConfig.shared.js +7 -0
  126. package/dist-es/schemas/schemas_0.js +4298 -0
  127. package/dist-types/CognitoIdentityProviderClient.d.ts +10 -1
  128. package/dist-types/models/models_0.d.ts +0 -260
  129. package/dist-types/models/models_1.d.ts +0 -164
  130. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  131. package/dist-types/runtimeConfig.d.ts +1 -0
  132. package/dist-types/runtimeConfig.native.d.ts +1 -0
  133. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  134. package/dist-types/schemas/schemas_0.d.ts +549 -0
  135. package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +4 -0
  136. package/dist-types/ts3.4/models/models_0.d.ts +0 -189
  137. package/dist-types/ts3.4/models/models_1.d.ts +0 -123
  138. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  139. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  140. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  141. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  142. package/dist-types/ts3.4/schemas/schemas_0.d.ts +556 -0
  143. package/package.json +5 -5
  144. package/dist-es/protocols/Aws_json1_1.js +0 -3548
  145. package/dist-types/protocols/Aws_json1_1.d.ts +0 -1073
  146. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -1433
@@ -1,3548 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { CognitoIdentityProviderServiceException as __BaseException } from "../models/CognitoIdentityProviderServiceException";
5
- import { AliasExistsException, CodeDeliveryFailureException, CodeMismatchException, ConcurrentModificationException, DeviceKeyExistsException, DuplicateProviderException, ExpiredCodeException, FeatureUnavailableInTierException, ForbiddenException, GroupExistsException, InternalErrorException, InvalidEmailRoleAccessPolicyException, InvalidLambdaResponseException, InvalidOAuthFlowException, InvalidParameterException, InvalidPasswordException, InvalidSmsRoleAccessPolicyException, InvalidSmsRoleTrustRelationshipException, InvalidUserPoolConfigurationException, LimitExceededException, ManagedLoginBrandingExistsException, MFAMethodNotFoundException, NotAuthorizedException, PasswordHistoryPolicyViolationException, PasswordResetRequiredException, PreconditionNotMetException, ResourceNotFoundException, ScopeDoesNotExistException, SoftwareTokenMFANotFoundException, TermsExistsException, TierChangeNotAllowedException, TooManyFailedAttemptsException, TooManyRequestsException, UnexpectedLambdaException, UnsupportedIdentityProviderException, UnsupportedOperationException, UnsupportedUserStateException, UserImportInProgressException, UserLambdaValidationException, UsernameExistsException, UserNotConfirmedException, UserNotFoundException, UserPoolAddOnNotEnabledException, UserPoolTaggingException, WebAuthnChallengeNotFoundException, WebAuthnClientMismatchException, WebAuthnCredentialNotSupportedException, WebAuthnNotEnabledException, WebAuthnOriginNotAllowedException, WebAuthnRelyingPartyMismatchException, } from "../models/models_0";
6
- import { EnableSoftwareTokenMFAException, RefreshTokenReuseException, UnauthorizedException, UnsupportedTokenTypeException, WebAuthnConfigurationMissingException, } from "../models/models_1";
7
- export const se_AddCustomAttributesCommand = async (input, context) => {
8
- const headers = sharedHeaders("AddCustomAttributes");
9
- let body;
10
- body = JSON.stringify(_json(input));
11
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
12
- };
13
- export const se_AdminAddUserToGroupCommand = async (input, context) => {
14
- const headers = sharedHeaders("AdminAddUserToGroup");
15
- let body;
16
- body = JSON.stringify(_json(input));
17
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
- };
19
- export const se_AdminConfirmSignUpCommand = async (input, context) => {
20
- const headers = sharedHeaders("AdminConfirmSignUp");
21
- let body;
22
- body = JSON.stringify(_json(input));
23
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
- };
25
- export const se_AdminCreateUserCommand = async (input, context) => {
26
- const headers = sharedHeaders("AdminCreateUser");
27
- let body;
28
- body = JSON.stringify(_json(input));
29
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
- };
31
- export const se_AdminDeleteUserCommand = async (input, context) => {
32
- const headers = sharedHeaders("AdminDeleteUser");
33
- let body;
34
- body = JSON.stringify(_json(input));
35
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
- };
37
- export const se_AdminDeleteUserAttributesCommand = async (input, context) => {
38
- const headers = sharedHeaders("AdminDeleteUserAttributes");
39
- let body;
40
- body = JSON.stringify(_json(input));
41
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
- };
43
- export const se_AdminDisableProviderForUserCommand = async (input, context) => {
44
- const headers = sharedHeaders("AdminDisableProviderForUser");
45
- let body;
46
- body = JSON.stringify(_json(input));
47
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
- };
49
- export const se_AdminDisableUserCommand = async (input, context) => {
50
- const headers = sharedHeaders("AdminDisableUser");
51
- let body;
52
- body = JSON.stringify(_json(input));
53
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
- };
55
- export const se_AdminEnableUserCommand = async (input, context) => {
56
- const headers = sharedHeaders("AdminEnableUser");
57
- let body;
58
- body = JSON.stringify(_json(input));
59
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
60
- };
61
- export const se_AdminForgetDeviceCommand = async (input, context) => {
62
- const headers = sharedHeaders("AdminForgetDevice");
63
- let body;
64
- body = JSON.stringify(_json(input));
65
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
- };
67
- export const se_AdminGetDeviceCommand = async (input, context) => {
68
- const headers = sharedHeaders("AdminGetDevice");
69
- let body;
70
- body = JSON.stringify(_json(input));
71
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
72
- };
73
- export const se_AdminGetUserCommand = async (input, context) => {
74
- const headers = sharedHeaders("AdminGetUser");
75
- let body;
76
- body = JSON.stringify(_json(input));
77
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
- };
79
- export const se_AdminInitiateAuthCommand = async (input, context) => {
80
- const headers = sharedHeaders("AdminInitiateAuth");
81
- let body;
82
- body = JSON.stringify(_json(input));
83
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
- };
85
- export const se_AdminLinkProviderForUserCommand = async (input, context) => {
86
- const headers = sharedHeaders("AdminLinkProviderForUser");
87
- let body;
88
- body = JSON.stringify(_json(input));
89
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
- };
91
- export const se_AdminListDevicesCommand = async (input, context) => {
92
- const headers = sharedHeaders("AdminListDevices");
93
- let body;
94
- body = JSON.stringify(_json(input));
95
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
96
- };
97
- export const se_AdminListGroupsForUserCommand = async (input, context) => {
98
- const headers = sharedHeaders("AdminListGroupsForUser");
99
- let body;
100
- body = JSON.stringify(_json(input));
101
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
102
- };
103
- export const se_AdminListUserAuthEventsCommand = async (input, context) => {
104
- const headers = sharedHeaders("AdminListUserAuthEvents");
105
- let body;
106
- body = JSON.stringify(_json(input));
107
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
- };
109
- export const se_AdminRemoveUserFromGroupCommand = async (input, context) => {
110
- const headers = sharedHeaders("AdminRemoveUserFromGroup");
111
- let body;
112
- body = JSON.stringify(_json(input));
113
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
114
- };
115
- export const se_AdminResetUserPasswordCommand = async (input, context) => {
116
- const headers = sharedHeaders("AdminResetUserPassword");
117
- let body;
118
- body = JSON.stringify(_json(input));
119
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
- };
121
- export const se_AdminRespondToAuthChallengeCommand = async (input, context) => {
122
- const headers = sharedHeaders("AdminRespondToAuthChallenge");
123
- let body;
124
- body = JSON.stringify(_json(input));
125
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
- };
127
- export const se_AdminSetUserMFAPreferenceCommand = async (input, context) => {
128
- const headers = sharedHeaders("AdminSetUserMFAPreference");
129
- let body;
130
- body = JSON.stringify(_json(input));
131
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
132
- };
133
- export const se_AdminSetUserPasswordCommand = async (input, context) => {
134
- const headers = sharedHeaders("AdminSetUserPassword");
135
- let body;
136
- body = JSON.stringify(_json(input));
137
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
- };
139
- export const se_AdminSetUserSettingsCommand = async (input, context) => {
140
- const headers = sharedHeaders("AdminSetUserSettings");
141
- let body;
142
- body = JSON.stringify(_json(input));
143
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
144
- };
145
- export const se_AdminUpdateAuthEventFeedbackCommand = async (input, context) => {
146
- const headers = sharedHeaders("AdminUpdateAuthEventFeedback");
147
- let body;
148
- body = JSON.stringify(_json(input));
149
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
- };
151
- export const se_AdminUpdateDeviceStatusCommand = async (input, context) => {
152
- const headers = sharedHeaders("AdminUpdateDeviceStatus");
153
- let body;
154
- body = JSON.stringify(_json(input));
155
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
- };
157
- export const se_AdminUpdateUserAttributesCommand = async (input, context) => {
158
- const headers = sharedHeaders("AdminUpdateUserAttributes");
159
- let body;
160
- body = JSON.stringify(_json(input));
161
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
- };
163
- export const se_AdminUserGlobalSignOutCommand = async (input, context) => {
164
- const headers = sharedHeaders("AdminUserGlobalSignOut");
165
- let body;
166
- body = JSON.stringify(_json(input));
167
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
- };
169
- export const se_AssociateSoftwareTokenCommand = async (input, context) => {
170
- const headers = sharedHeaders("AssociateSoftwareToken");
171
- let body;
172
- body = JSON.stringify(_json(input));
173
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
174
- };
175
- export const se_ChangePasswordCommand = async (input, context) => {
176
- const headers = sharedHeaders("ChangePassword");
177
- let body;
178
- body = JSON.stringify(_json(input));
179
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
180
- };
181
- export const se_CompleteWebAuthnRegistrationCommand = async (input, context) => {
182
- const headers = sharedHeaders("CompleteWebAuthnRegistration");
183
- let body;
184
- body = JSON.stringify(se_CompleteWebAuthnRegistrationRequest(input, context));
185
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
- };
187
- export const se_ConfirmDeviceCommand = async (input, context) => {
188
- const headers = sharedHeaders("ConfirmDevice");
189
- let body;
190
- body = JSON.stringify(_json(input));
191
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
192
- };
193
- export const se_ConfirmForgotPasswordCommand = async (input, context) => {
194
- const headers = sharedHeaders("ConfirmForgotPassword");
195
- let body;
196
- body = JSON.stringify(_json(input));
197
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
- };
199
- export const se_ConfirmSignUpCommand = async (input, context) => {
200
- const headers = sharedHeaders("ConfirmSignUp");
201
- let body;
202
- body = JSON.stringify(_json(input));
203
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
- };
205
- export const se_CreateGroupCommand = async (input, context) => {
206
- const headers = sharedHeaders("CreateGroup");
207
- let body;
208
- body = JSON.stringify(_json(input));
209
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
- };
211
- export const se_CreateIdentityProviderCommand = async (input, context) => {
212
- const headers = sharedHeaders("CreateIdentityProvider");
213
- let body;
214
- body = JSON.stringify(_json(input));
215
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
216
- };
217
- export const se_CreateManagedLoginBrandingCommand = async (input, context) => {
218
- const headers = sharedHeaders("CreateManagedLoginBranding");
219
- let body;
220
- body = JSON.stringify(se_CreateManagedLoginBrandingRequest(input, context));
221
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
222
- };
223
- export const se_CreateResourceServerCommand = async (input, context) => {
224
- const headers = sharedHeaders("CreateResourceServer");
225
- let body;
226
- body = JSON.stringify(_json(input));
227
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
- };
229
- export const se_CreateTermsCommand = async (input, context) => {
230
- const headers = sharedHeaders("CreateTerms");
231
- let body;
232
- body = JSON.stringify(_json(input));
233
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
- };
235
- export const se_CreateUserImportJobCommand = async (input, context) => {
236
- const headers = sharedHeaders("CreateUserImportJob");
237
- let body;
238
- body = JSON.stringify(_json(input));
239
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
240
- };
241
- export const se_CreateUserPoolCommand = async (input, context) => {
242
- const headers = sharedHeaders("CreateUserPool");
243
- let body;
244
- body = JSON.stringify(_json(input));
245
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
- };
247
- export const se_CreateUserPoolClientCommand = async (input, context) => {
248
- const headers = sharedHeaders("CreateUserPoolClient");
249
- let body;
250
- body = JSON.stringify(_json(input));
251
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
- };
253
- export const se_CreateUserPoolDomainCommand = async (input, context) => {
254
- const headers = sharedHeaders("CreateUserPoolDomain");
255
- let body;
256
- body = JSON.stringify(_json(input));
257
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
- };
259
- export const se_DeleteGroupCommand = async (input, context) => {
260
- const headers = sharedHeaders("DeleteGroup");
261
- let body;
262
- body = JSON.stringify(_json(input));
263
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
264
- };
265
- export const se_DeleteIdentityProviderCommand = async (input, context) => {
266
- const headers = sharedHeaders("DeleteIdentityProvider");
267
- let body;
268
- body = JSON.stringify(_json(input));
269
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
270
- };
271
- export const se_DeleteManagedLoginBrandingCommand = async (input, context) => {
272
- const headers = sharedHeaders("DeleteManagedLoginBranding");
273
- let body;
274
- body = JSON.stringify(_json(input));
275
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
276
- };
277
- export const se_DeleteResourceServerCommand = async (input, context) => {
278
- const headers = sharedHeaders("DeleteResourceServer");
279
- let body;
280
- body = JSON.stringify(_json(input));
281
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
282
- };
283
- export const se_DeleteTermsCommand = async (input, context) => {
284
- const headers = sharedHeaders("DeleteTerms");
285
- let body;
286
- body = JSON.stringify(_json(input));
287
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
- };
289
- export const se_DeleteUserCommand = async (input, context) => {
290
- const headers = sharedHeaders("DeleteUser");
291
- let body;
292
- body = JSON.stringify(_json(input));
293
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
- };
295
- export const se_DeleteUserAttributesCommand = async (input, context) => {
296
- const headers = sharedHeaders("DeleteUserAttributes");
297
- let body;
298
- body = JSON.stringify(_json(input));
299
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
300
- };
301
- export const se_DeleteUserPoolCommand = async (input, context) => {
302
- const headers = sharedHeaders("DeleteUserPool");
303
- let body;
304
- body = JSON.stringify(_json(input));
305
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
306
- };
307
- export const se_DeleteUserPoolClientCommand = async (input, context) => {
308
- const headers = sharedHeaders("DeleteUserPoolClient");
309
- let body;
310
- body = JSON.stringify(_json(input));
311
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
312
- };
313
- export const se_DeleteUserPoolDomainCommand = async (input, context) => {
314
- const headers = sharedHeaders("DeleteUserPoolDomain");
315
- let body;
316
- body = JSON.stringify(_json(input));
317
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
- };
319
- export const se_DeleteWebAuthnCredentialCommand = async (input, context) => {
320
- const headers = sharedHeaders("DeleteWebAuthnCredential");
321
- let body;
322
- body = JSON.stringify(_json(input));
323
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
324
- };
325
- export const se_DescribeIdentityProviderCommand = async (input, context) => {
326
- const headers = sharedHeaders("DescribeIdentityProvider");
327
- let body;
328
- body = JSON.stringify(_json(input));
329
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
- };
331
- export const se_DescribeManagedLoginBrandingCommand = async (input, context) => {
332
- const headers = sharedHeaders("DescribeManagedLoginBranding");
333
- let body;
334
- body = JSON.stringify(_json(input));
335
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
336
- };
337
- export const se_DescribeManagedLoginBrandingByClientCommand = async (input, context) => {
338
- const headers = sharedHeaders("DescribeManagedLoginBrandingByClient");
339
- let body;
340
- body = JSON.stringify(_json(input));
341
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
342
- };
343
- export const se_DescribeResourceServerCommand = async (input, context) => {
344
- const headers = sharedHeaders("DescribeResourceServer");
345
- let body;
346
- body = JSON.stringify(_json(input));
347
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
348
- };
349
- export const se_DescribeRiskConfigurationCommand = async (input, context) => {
350
- const headers = sharedHeaders("DescribeRiskConfiguration");
351
- let body;
352
- body = JSON.stringify(_json(input));
353
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
354
- };
355
- export const se_DescribeTermsCommand = async (input, context) => {
356
- const headers = sharedHeaders("DescribeTerms");
357
- let body;
358
- body = JSON.stringify(_json(input));
359
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
360
- };
361
- export const se_DescribeUserImportJobCommand = async (input, context) => {
362
- const headers = sharedHeaders("DescribeUserImportJob");
363
- let body;
364
- body = JSON.stringify(_json(input));
365
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
366
- };
367
- export const se_DescribeUserPoolCommand = async (input, context) => {
368
- const headers = sharedHeaders("DescribeUserPool");
369
- let body;
370
- body = JSON.stringify(_json(input));
371
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
- };
373
- export const se_DescribeUserPoolClientCommand = async (input, context) => {
374
- const headers = sharedHeaders("DescribeUserPoolClient");
375
- let body;
376
- body = JSON.stringify(_json(input));
377
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
378
- };
379
- export const se_DescribeUserPoolDomainCommand = async (input, context) => {
380
- const headers = sharedHeaders("DescribeUserPoolDomain");
381
- let body;
382
- body = JSON.stringify(_json(input));
383
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
384
- };
385
- export const se_ForgetDeviceCommand = async (input, context) => {
386
- const headers = sharedHeaders("ForgetDevice");
387
- let body;
388
- body = JSON.stringify(_json(input));
389
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
390
- };
391
- export const se_ForgotPasswordCommand = async (input, context) => {
392
- const headers = sharedHeaders("ForgotPassword");
393
- let body;
394
- body = JSON.stringify(_json(input));
395
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
396
- };
397
- export const se_GetCSVHeaderCommand = async (input, context) => {
398
- const headers = sharedHeaders("GetCSVHeader");
399
- let body;
400
- body = JSON.stringify(_json(input));
401
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
402
- };
403
- export const se_GetDeviceCommand = async (input, context) => {
404
- const headers = sharedHeaders("GetDevice");
405
- let body;
406
- body = JSON.stringify(_json(input));
407
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
408
- };
409
- export const se_GetGroupCommand = async (input, context) => {
410
- const headers = sharedHeaders("GetGroup");
411
- let body;
412
- body = JSON.stringify(_json(input));
413
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
- };
415
- export const se_GetIdentityProviderByIdentifierCommand = async (input, context) => {
416
- const headers = sharedHeaders("GetIdentityProviderByIdentifier");
417
- let body;
418
- body = JSON.stringify(_json(input));
419
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
420
- };
421
- export const se_GetLogDeliveryConfigurationCommand = async (input, context) => {
422
- const headers = sharedHeaders("GetLogDeliveryConfiguration");
423
- let body;
424
- body = JSON.stringify(_json(input));
425
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
426
- };
427
- export const se_GetSigningCertificateCommand = async (input, context) => {
428
- const headers = sharedHeaders("GetSigningCertificate");
429
- let body;
430
- body = JSON.stringify(_json(input));
431
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
432
- };
433
- export const se_GetTokensFromRefreshTokenCommand = async (input, context) => {
434
- const headers = sharedHeaders("GetTokensFromRefreshToken");
435
- let body;
436
- body = JSON.stringify(_json(input));
437
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
438
- };
439
- export const se_GetUICustomizationCommand = async (input, context) => {
440
- const headers = sharedHeaders("GetUICustomization");
441
- let body;
442
- body = JSON.stringify(_json(input));
443
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
444
- };
445
- export const se_GetUserCommand = async (input, context) => {
446
- const headers = sharedHeaders("GetUser");
447
- let body;
448
- body = JSON.stringify(_json(input));
449
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
450
- };
451
- export const se_GetUserAttributeVerificationCodeCommand = async (input, context) => {
452
- const headers = sharedHeaders("GetUserAttributeVerificationCode");
453
- let body;
454
- body = JSON.stringify(_json(input));
455
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
456
- };
457
- export const se_GetUserAuthFactorsCommand = async (input, context) => {
458
- const headers = sharedHeaders("GetUserAuthFactors");
459
- let body;
460
- body = JSON.stringify(_json(input));
461
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
462
- };
463
- export const se_GetUserPoolMfaConfigCommand = async (input, context) => {
464
- const headers = sharedHeaders("GetUserPoolMfaConfig");
465
- let body;
466
- body = JSON.stringify(_json(input));
467
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
468
- };
469
- export const se_GlobalSignOutCommand = async (input, context) => {
470
- const headers = sharedHeaders("GlobalSignOut");
471
- let body;
472
- body = JSON.stringify(_json(input));
473
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
474
- };
475
- export const se_InitiateAuthCommand = async (input, context) => {
476
- const headers = sharedHeaders("InitiateAuth");
477
- let body;
478
- body = JSON.stringify(_json(input));
479
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
480
- };
481
- export const se_ListDevicesCommand = async (input, context) => {
482
- const headers = sharedHeaders("ListDevices");
483
- let body;
484
- body = JSON.stringify(_json(input));
485
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
486
- };
487
- export const se_ListGroupsCommand = async (input, context) => {
488
- const headers = sharedHeaders("ListGroups");
489
- let body;
490
- body = JSON.stringify(_json(input));
491
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
492
- };
493
- export const se_ListIdentityProvidersCommand = async (input, context) => {
494
- const headers = sharedHeaders("ListIdentityProviders");
495
- let body;
496
- body = JSON.stringify(_json(input));
497
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
498
- };
499
- export const se_ListResourceServersCommand = async (input, context) => {
500
- const headers = sharedHeaders("ListResourceServers");
501
- let body;
502
- body = JSON.stringify(_json(input));
503
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
504
- };
505
- export const se_ListTagsForResourceCommand = async (input, context) => {
506
- const headers = sharedHeaders("ListTagsForResource");
507
- let body;
508
- body = JSON.stringify(_json(input));
509
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
510
- };
511
- export const se_ListTermsCommand = async (input, context) => {
512
- const headers = sharedHeaders("ListTerms");
513
- let body;
514
- body = JSON.stringify(_json(input));
515
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
516
- };
517
- export const se_ListUserImportJobsCommand = async (input, context) => {
518
- const headers = sharedHeaders("ListUserImportJobs");
519
- let body;
520
- body = JSON.stringify(_json(input));
521
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
522
- };
523
- export const se_ListUserPoolClientsCommand = async (input, context) => {
524
- const headers = sharedHeaders("ListUserPoolClients");
525
- let body;
526
- body = JSON.stringify(_json(input));
527
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
528
- };
529
- export const se_ListUserPoolsCommand = async (input, context) => {
530
- const headers = sharedHeaders("ListUserPools");
531
- let body;
532
- body = JSON.stringify(_json(input));
533
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
534
- };
535
- export const se_ListUsersCommand = async (input, context) => {
536
- const headers = sharedHeaders("ListUsers");
537
- let body;
538
- body = JSON.stringify(_json(input));
539
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
540
- };
541
- export const se_ListUsersInGroupCommand = async (input, context) => {
542
- const headers = sharedHeaders("ListUsersInGroup");
543
- let body;
544
- body = JSON.stringify(_json(input));
545
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
546
- };
547
- export const se_ListWebAuthnCredentialsCommand = async (input, context) => {
548
- const headers = sharedHeaders("ListWebAuthnCredentials");
549
- let body;
550
- body = JSON.stringify(_json(input));
551
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
552
- };
553
- export const se_ResendConfirmationCodeCommand = async (input, context) => {
554
- const headers = sharedHeaders("ResendConfirmationCode");
555
- let body;
556
- body = JSON.stringify(_json(input));
557
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
558
- };
559
- export const se_RespondToAuthChallengeCommand = async (input, context) => {
560
- const headers = sharedHeaders("RespondToAuthChallenge");
561
- let body;
562
- body = JSON.stringify(_json(input));
563
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
564
- };
565
- export const se_RevokeTokenCommand = async (input, context) => {
566
- const headers = sharedHeaders("RevokeToken");
567
- let body;
568
- body = JSON.stringify(_json(input));
569
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
570
- };
571
- export const se_SetLogDeliveryConfigurationCommand = async (input, context) => {
572
- const headers = sharedHeaders("SetLogDeliveryConfiguration");
573
- let body;
574
- body = JSON.stringify(_json(input));
575
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
576
- };
577
- export const se_SetRiskConfigurationCommand = async (input, context) => {
578
- const headers = sharedHeaders("SetRiskConfiguration");
579
- let body;
580
- body = JSON.stringify(_json(input));
581
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
582
- };
583
- export const se_SetUICustomizationCommand = async (input, context) => {
584
- const headers = sharedHeaders("SetUICustomization");
585
- let body;
586
- body = JSON.stringify(se_SetUICustomizationRequest(input, context));
587
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
588
- };
589
- export const se_SetUserMFAPreferenceCommand = async (input, context) => {
590
- const headers = sharedHeaders("SetUserMFAPreference");
591
- let body;
592
- body = JSON.stringify(_json(input));
593
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
594
- };
595
- export const se_SetUserPoolMfaConfigCommand = async (input, context) => {
596
- const headers = sharedHeaders("SetUserPoolMfaConfig");
597
- let body;
598
- body = JSON.stringify(_json(input));
599
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
600
- };
601
- export const se_SetUserSettingsCommand = async (input, context) => {
602
- const headers = sharedHeaders("SetUserSettings");
603
- let body;
604
- body = JSON.stringify(_json(input));
605
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
606
- };
607
- export const se_SignUpCommand = async (input, context) => {
608
- const headers = sharedHeaders("SignUp");
609
- let body;
610
- body = JSON.stringify(_json(input));
611
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
612
- };
613
- export const se_StartUserImportJobCommand = async (input, context) => {
614
- const headers = sharedHeaders("StartUserImportJob");
615
- let body;
616
- body = JSON.stringify(_json(input));
617
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
618
- };
619
- export const se_StartWebAuthnRegistrationCommand = async (input, context) => {
620
- const headers = sharedHeaders("StartWebAuthnRegistration");
621
- let body;
622
- body = JSON.stringify(_json(input));
623
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
624
- };
625
- export const se_StopUserImportJobCommand = async (input, context) => {
626
- const headers = sharedHeaders("StopUserImportJob");
627
- let body;
628
- body = JSON.stringify(_json(input));
629
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
630
- };
631
- export const se_TagResourceCommand = async (input, context) => {
632
- const headers = sharedHeaders("TagResource");
633
- let body;
634
- body = JSON.stringify(_json(input));
635
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
636
- };
637
- export const se_UntagResourceCommand = async (input, context) => {
638
- const headers = sharedHeaders("UntagResource");
639
- let body;
640
- body = JSON.stringify(_json(input));
641
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
642
- };
643
- export const se_UpdateAuthEventFeedbackCommand = async (input, context) => {
644
- const headers = sharedHeaders("UpdateAuthEventFeedback");
645
- let body;
646
- body = JSON.stringify(_json(input));
647
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
648
- };
649
- export const se_UpdateDeviceStatusCommand = async (input, context) => {
650
- const headers = sharedHeaders("UpdateDeviceStatus");
651
- let body;
652
- body = JSON.stringify(_json(input));
653
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
654
- };
655
- export const se_UpdateGroupCommand = async (input, context) => {
656
- const headers = sharedHeaders("UpdateGroup");
657
- let body;
658
- body = JSON.stringify(_json(input));
659
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
660
- };
661
- export const se_UpdateIdentityProviderCommand = async (input, context) => {
662
- const headers = sharedHeaders("UpdateIdentityProvider");
663
- let body;
664
- body = JSON.stringify(_json(input));
665
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
666
- };
667
- export const se_UpdateManagedLoginBrandingCommand = async (input, context) => {
668
- const headers = sharedHeaders("UpdateManagedLoginBranding");
669
- let body;
670
- body = JSON.stringify(se_UpdateManagedLoginBrandingRequest(input, context));
671
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
672
- };
673
- export const se_UpdateResourceServerCommand = async (input, context) => {
674
- const headers = sharedHeaders("UpdateResourceServer");
675
- let body;
676
- body = JSON.stringify(_json(input));
677
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
678
- };
679
- export const se_UpdateTermsCommand = async (input, context) => {
680
- const headers = sharedHeaders("UpdateTerms");
681
- let body;
682
- body = JSON.stringify(_json(input));
683
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
684
- };
685
- export const se_UpdateUserAttributesCommand = async (input, context) => {
686
- const headers = sharedHeaders("UpdateUserAttributes");
687
- let body;
688
- body = JSON.stringify(_json(input));
689
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
690
- };
691
- export const se_UpdateUserPoolCommand = async (input, context) => {
692
- const headers = sharedHeaders("UpdateUserPool");
693
- let body;
694
- body = JSON.stringify(_json(input));
695
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
696
- };
697
- export const se_UpdateUserPoolClientCommand = async (input, context) => {
698
- const headers = sharedHeaders("UpdateUserPoolClient");
699
- let body;
700
- body = JSON.stringify(_json(input));
701
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
702
- };
703
- export const se_UpdateUserPoolDomainCommand = async (input, context) => {
704
- const headers = sharedHeaders("UpdateUserPoolDomain");
705
- let body;
706
- body = JSON.stringify(_json(input));
707
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
708
- };
709
- export const se_VerifySoftwareTokenCommand = async (input, context) => {
710
- const headers = sharedHeaders("VerifySoftwareToken");
711
- let body;
712
- body = JSON.stringify(_json(input));
713
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
714
- };
715
- export const se_VerifyUserAttributeCommand = async (input, context) => {
716
- const headers = sharedHeaders("VerifyUserAttribute");
717
- let body;
718
- body = JSON.stringify(_json(input));
719
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
720
- };
721
- export const de_AddCustomAttributesCommand = async (output, context) => {
722
- if (output.statusCode >= 300) {
723
- return de_CommandError(output, context);
724
- }
725
- const data = await parseBody(output.body, context);
726
- let contents = {};
727
- contents = _json(data);
728
- const response = {
729
- $metadata: deserializeMetadata(output),
730
- ...contents,
731
- };
732
- return response;
733
- };
734
- export const de_AdminAddUserToGroupCommand = async (output, context) => {
735
- if (output.statusCode >= 300) {
736
- return de_CommandError(output, context);
737
- }
738
- await collectBody(output.body, context);
739
- const response = {
740
- $metadata: deserializeMetadata(output),
741
- };
742
- return response;
743
- };
744
- export const de_AdminConfirmSignUpCommand = async (output, context) => {
745
- if (output.statusCode >= 300) {
746
- return de_CommandError(output, context);
747
- }
748
- const data = await parseBody(output.body, context);
749
- let contents = {};
750
- contents = _json(data);
751
- const response = {
752
- $metadata: deserializeMetadata(output),
753
- ...contents,
754
- };
755
- return response;
756
- };
757
- export const de_AdminCreateUserCommand = async (output, context) => {
758
- if (output.statusCode >= 300) {
759
- return de_CommandError(output, context);
760
- }
761
- const data = await parseBody(output.body, context);
762
- let contents = {};
763
- contents = de_AdminCreateUserResponse(data, context);
764
- const response = {
765
- $metadata: deserializeMetadata(output),
766
- ...contents,
767
- };
768
- return response;
769
- };
770
- export const de_AdminDeleteUserCommand = async (output, context) => {
771
- if (output.statusCode >= 300) {
772
- return de_CommandError(output, context);
773
- }
774
- await collectBody(output.body, context);
775
- const response = {
776
- $metadata: deserializeMetadata(output),
777
- };
778
- return response;
779
- };
780
- export const de_AdminDeleteUserAttributesCommand = async (output, context) => {
781
- if (output.statusCode >= 300) {
782
- return de_CommandError(output, context);
783
- }
784
- const data = await parseBody(output.body, context);
785
- let contents = {};
786
- contents = _json(data);
787
- const response = {
788
- $metadata: deserializeMetadata(output),
789
- ...contents,
790
- };
791
- return response;
792
- };
793
- export const de_AdminDisableProviderForUserCommand = async (output, context) => {
794
- if (output.statusCode >= 300) {
795
- return de_CommandError(output, context);
796
- }
797
- const data = await parseBody(output.body, context);
798
- let contents = {};
799
- contents = _json(data);
800
- const response = {
801
- $metadata: deserializeMetadata(output),
802
- ...contents,
803
- };
804
- return response;
805
- };
806
- export const de_AdminDisableUserCommand = async (output, context) => {
807
- if (output.statusCode >= 300) {
808
- return de_CommandError(output, context);
809
- }
810
- const data = await parseBody(output.body, context);
811
- let contents = {};
812
- contents = _json(data);
813
- const response = {
814
- $metadata: deserializeMetadata(output),
815
- ...contents,
816
- };
817
- return response;
818
- };
819
- export const de_AdminEnableUserCommand = async (output, context) => {
820
- if (output.statusCode >= 300) {
821
- return de_CommandError(output, context);
822
- }
823
- const data = await parseBody(output.body, context);
824
- let contents = {};
825
- contents = _json(data);
826
- const response = {
827
- $metadata: deserializeMetadata(output),
828
- ...contents,
829
- };
830
- return response;
831
- };
832
- export const de_AdminForgetDeviceCommand = async (output, context) => {
833
- if (output.statusCode >= 300) {
834
- return de_CommandError(output, context);
835
- }
836
- await collectBody(output.body, context);
837
- const response = {
838
- $metadata: deserializeMetadata(output),
839
- };
840
- return response;
841
- };
842
- export const de_AdminGetDeviceCommand = async (output, context) => {
843
- if (output.statusCode >= 300) {
844
- return de_CommandError(output, context);
845
- }
846
- const data = await parseBody(output.body, context);
847
- let contents = {};
848
- contents = de_AdminGetDeviceResponse(data, context);
849
- const response = {
850
- $metadata: deserializeMetadata(output),
851
- ...contents,
852
- };
853
- return response;
854
- };
855
- export const de_AdminGetUserCommand = async (output, context) => {
856
- if (output.statusCode >= 300) {
857
- return de_CommandError(output, context);
858
- }
859
- const data = await parseBody(output.body, context);
860
- let contents = {};
861
- contents = de_AdminGetUserResponse(data, context);
862
- const response = {
863
- $metadata: deserializeMetadata(output),
864
- ...contents,
865
- };
866
- return response;
867
- };
868
- export const de_AdminInitiateAuthCommand = async (output, context) => {
869
- if (output.statusCode >= 300) {
870
- return de_CommandError(output, context);
871
- }
872
- const data = await parseBody(output.body, context);
873
- let contents = {};
874
- contents = _json(data);
875
- const response = {
876
- $metadata: deserializeMetadata(output),
877
- ...contents,
878
- };
879
- return response;
880
- };
881
- export const de_AdminLinkProviderForUserCommand = async (output, context) => {
882
- if (output.statusCode >= 300) {
883
- return de_CommandError(output, context);
884
- }
885
- const data = await parseBody(output.body, context);
886
- let contents = {};
887
- contents = _json(data);
888
- const response = {
889
- $metadata: deserializeMetadata(output),
890
- ...contents,
891
- };
892
- return response;
893
- };
894
- export const de_AdminListDevicesCommand = async (output, context) => {
895
- if (output.statusCode >= 300) {
896
- return de_CommandError(output, context);
897
- }
898
- const data = await parseBody(output.body, context);
899
- let contents = {};
900
- contents = de_AdminListDevicesResponse(data, context);
901
- const response = {
902
- $metadata: deserializeMetadata(output),
903
- ...contents,
904
- };
905
- return response;
906
- };
907
- export const de_AdminListGroupsForUserCommand = async (output, context) => {
908
- if (output.statusCode >= 300) {
909
- return de_CommandError(output, context);
910
- }
911
- const data = await parseBody(output.body, context);
912
- let contents = {};
913
- contents = de_AdminListGroupsForUserResponse(data, context);
914
- const response = {
915
- $metadata: deserializeMetadata(output),
916
- ...contents,
917
- };
918
- return response;
919
- };
920
- export const de_AdminListUserAuthEventsCommand = async (output, context) => {
921
- if (output.statusCode >= 300) {
922
- return de_CommandError(output, context);
923
- }
924
- const data = await parseBody(output.body, context);
925
- let contents = {};
926
- contents = de_AdminListUserAuthEventsResponse(data, context);
927
- const response = {
928
- $metadata: deserializeMetadata(output),
929
- ...contents,
930
- };
931
- return response;
932
- };
933
- export const de_AdminRemoveUserFromGroupCommand = async (output, context) => {
934
- if (output.statusCode >= 300) {
935
- return de_CommandError(output, context);
936
- }
937
- await collectBody(output.body, context);
938
- const response = {
939
- $metadata: deserializeMetadata(output),
940
- };
941
- return response;
942
- };
943
- export const de_AdminResetUserPasswordCommand = async (output, context) => {
944
- if (output.statusCode >= 300) {
945
- return de_CommandError(output, context);
946
- }
947
- const data = await parseBody(output.body, context);
948
- let contents = {};
949
- contents = _json(data);
950
- const response = {
951
- $metadata: deserializeMetadata(output),
952
- ...contents,
953
- };
954
- return response;
955
- };
956
- export const de_AdminRespondToAuthChallengeCommand = async (output, context) => {
957
- if (output.statusCode >= 300) {
958
- return de_CommandError(output, context);
959
- }
960
- const data = await parseBody(output.body, context);
961
- let contents = {};
962
- contents = _json(data);
963
- const response = {
964
- $metadata: deserializeMetadata(output),
965
- ...contents,
966
- };
967
- return response;
968
- };
969
- export const de_AdminSetUserMFAPreferenceCommand = async (output, context) => {
970
- if (output.statusCode >= 300) {
971
- return de_CommandError(output, context);
972
- }
973
- const data = await parseBody(output.body, context);
974
- let contents = {};
975
- contents = _json(data);
976
- const response = {
977
- $metadata: deserializeMetadata(output),
978
- ...contents,
979
- };
980
- return response;
981
- };
982
- export const de_AdminSetUserPasswordCommand = async (output, context) => {
983
- if (output.statusCode >= 300) {
984
- return de_CommandError(output, context);
985
- }
986
- const data = await parseBody(output.body, context);
987
- let contents = {};
988
- contents = _json(data);
989
- const response = {
990
- $metadata: deserializeMetadata(output),
991
- ...contents,
992
- };
993
- return response;
994
- };
995
- export const de_AdminSetUserSettingsCommand = async (output, context) => {
996
- if (output.statusCode >= 300) {
997
- return de_CommandError(output, context);
998
- }
999
- const data = await parseBody(output.body, context);
1000
- let contents = {};
1001
- contents = _json(data);
1002
- const response = {
1003
- $metadata: deserializeMetadata(output),
1004
- ...contents,
1005
- };
1006
- return response;
1007
- };
1008
- export const de_AdminUpdateAuthEventFeedbackCommand = async (output, context) => {
1009
- if (output.statusCode >= 300) {
1010
- return de_CommandError(output, context);
1011
- }
1012
- const data = await parseBody(output.body, context);
1013
- let contents = {};
1014
- contents = _json(data);
1015
- const response = {
1016
- $metadata: deserializeMetadata(output),
1017
- ...contents,
1018
- };
1019
- return response;
1020
- };
1021
- export const de_AdminUpdateDeviceStatusCommand = async (output, context) => {
1022
- if (output.statusCode >= 300) {
1023
- return de_CommandError(output, context);
1024
- }
1025
- const data = await parseBody(output.body, context);
1026
- let contents = {};
1027
- contents = _json(data);
1028
- const response = {
1029
- $metadata: deserializeMetadata(output),
1030
- ...contents,
1031
- };
1032
- return response;
1033
- };
1034
- export const de_AdminUpdateUserAttributesCommand = async (output, context) => {
1035
- if (output.statusCode >= 300) {
1036
- return de_CommandError(output, context);
1037
- }
1038
- const data = await parseBody(output.body, context);
1039
- let contents = {};
1040
- contents = _json(data);
1041
- const response = {
1042
- $metadata: deserializeMetadata(output),
1043
- ...contents,
1044
- };
1045
- return response;
1046
- };
1047
- export const de_AdminUserGlobalSignOutCommand = async (output, context) => {
1048
- if (output.statusCode >= 300) {
1049
- return de_CommandError(output, context);
1050
- }
1051
- const data = await parseBody(output.body, context);
1052
- let contents = {};
1053
- contents = _json(data);
1054
- const response = {
1055
- $metadata: deserializeMetadata(output),
1056
- ...contents,
1057
- };
1058
- return response;
1059
- };
1060
- export const de_AssociateSoftwareTokenCommand = async (output, context) => {
1061
- if (output.statusCode >= 300) {
1062
- return de_CommandError(output, context);
1063
- }
1064
- const data = await parseBody(output.body, context);
1065
- let contents = {};
1066
- contents = _json(data);
1067
- const response = {
1068
- $metadata: deserializeMetadata(output),
1069
- ...contents,
1070
- };
1071
- return response;
1072
- };
1073
- export const de_ChangePasswordCommand = async (output, context) => {
1074
- if (output.statusCode >= 300) {
1075
- return de_CommandError(output, context);
1076
- }
1077
- const data = await parseBody(output.body, context);
1078
- let contents = {};
1079
- contents = _json(data);
1080
- const response = {
1081
- $metadata: deserializeMetadata(output),
1082
- ...contents,
1083
- };
1084
- return response;
1085
- };
1086
- export const de_CompleteWebAuthnRegistrationCommand = async (output, context) => {
1087
- if (output.statusCode >= 300) {
1088
- return de_CommandError(output, context);
1089
- }
1090
- const data = await parseBody(output.body, context);
1091
- let contents = {};
1092
- contents = _json(data);
1093
- const response = {
1094
- $metadata: deserializeMetadata(output),
1095
- ...contents,
1096
- };
1097
- return response;
1098
- };
1099
- export const de_ConfirmDeviceCommand = async (output, context) => {
1100
- if (output.statusCode >= 300) {
1101
- return de_CommandError(output, context);
1102
- }
1103
- const data = await parseBody(output.body, context);
1104
- let contents = {};
1105
- contents = _json(data);
1106
- const response = {
1107
- $metadata: deserializeMetadata(output),
1108
- ...contents,
1109
- };
1110
- return response;
1111
- };
1112
- export const de_ConfirmForgotPasswordCommand = async (output, context) => {
1113
- if (output.statusCode >= 300) {
1114
- return de_CommandError(output, context);
1115
- }
1116
- const data = await parseBody(output.body, context);
1117
- let contents = {};
1118
- contents = _json(data);
1119
- const response = {
1120
- $metadata: deserializeMetadata(output),
1121
- ...contents,
1122
- };
1123
- return response;
1124
- };
1125
- export const de_ConfirmSignUpCommand = async (output, context) => {
1126
- if (output.statusCode >= 300) {
1127
- return de_CommandError(output, context);
1128
- }
1129
- const data = await parseBody(output.body, context);
1130
- let contents = {};
1131
- contents = _json(data);
1132
- const response = {
1133
- $metadata: deserializeMetadata(output),
1134
- ...contents,
1135
- };
1136
- return response;
1137
- };
1138
- export const de_CreateGroupCommand = async (output, context) => {
1139
- if (output.statusCode >= 300) {
1140
- return de_CommandError(output, context);
1141
- }
1142
- const data = await parseBody(output.body, context);
1143
- let contents = {};
1144
- contents = de_CreateGroupResponse(data, context);
1145
- const response = {
1146
- $metadata: deserializeMetadata(output),
1147
- ...contents,
1148
- };
1149
- return response;
1150
- };
1151
- export const de_CreateIdentityProviderCommand = async (output, context) => {
1152
- if (output.statusCode >= 300) {
1153
- return de_CommandError(output, context);
1154
- }
1155
- const data = await parseBody(output.body, context);
1156
- let contents = {};
1157
- contents = de_CreateIdentityProviderResponse(data, context);
1158
- const response = {
1159
- $metadata: deserializeMetadata(output),
1160
- ...contents,
1161
- };
1162
- return response;
1163
- };
1164
- export const de_CreateManagedLoginBrandingCommand = async (output, context) => {
1165
- if (output.statusCode >= 300) {
1166
- return de_CommandError(output, context);
1167
- }
1168
- const data = await parseBody(output.body, context);
1169
- let contents = {};
1170
- contents = de_CreateManagedLoginBrandingResponse(data, context);
1171
- const response = {
1172
- $metadata: deserializeMetadata(output),
1173
- ...contents,
1174
- };
1175
- return response;
1176
- };
1177
- export const de_CreateResourceServerCommand = async (output, context) => {
1178
- if (output.statusCode >= 300) {
1179
- return de_CommandError(output, context);
1180
- }
1181
- const data = await parseBody(output.body, context);
1182
- let contents = {};
1183
- contents = _json(data);
1184
- const response = {
1185
- $metadata: deserializeMetadata(output),
1186
- ...contents,
1187
- };
1188
- return response;
1189
- };
1190
- export const de_CreateTermsCommand = async (output, context) => {
1191
- if (output.statusCode >= 300) {
1192
- return de_CommandError(output, context);
1193
- }
1194
- const data = await parseBody(output.body, context);
1195
- let contents = {};
1196
- contents = de_CreateTermsResponse(data, context);
1197
- const response = {
1198
- $metadata: deserializeMetadata(output),
1199
- ...contents,
1200
- };
1201
- return response;
1202
- };
1203
- export const de_CreateUserImportJobCommand = async (output, context) => {
1204
- if (output.statusCode >= 300) {
1205
- return de_CommandError(output, context);
1206
- }
1207
- const data = await parseBody(output.body, context);
1208
- let contents = {};
1209
- contents = de_CreateUserImportJobResponse(data, context);
1210
- const response = {
1211
- $metadata: deserializeMetadata(output),
1212
- ...contents,
1213
- };
1214
- return response;
1215
- };
1216
- export const de_CreateUserPoolCommand = async (output, context) => {
1217
- if (output.statusCode >= 300) {
1218
- return de_CommandError(output, context);
1219
- }
1220
- const data = await parseBody(output.body, context);
1221
- let contents = {};
1222
- contents = de_CreateUserPoolResponse(data, context);
1223
- const response = {
1224
- $metadata: deserializeMetadata(output),
1225
- ...contents,
1226
- };
1227
- return response;
1228
- };
1229
- export const de_CreateUserPoolClientCommand = async (output, context) => {
1230
- if (output.statusCode >= 300) {
1231
- return de_CommandError(output, context);
1232
- }
1233
- const data = await parseBody(output.body, context);
1234
- let contents = {};
1235
- contents = de_CreateUserPoolClientResponse(data, context);
1236
- const response = {
1237
- $metadata: deserializeMetadata(output),
1238
- ...contents,
1239
- };
1240
- return response;
1241
- };
1242
- export const de_CreateUserPoolDomainCommand = async (output, context) => {
1243
- if (output.statusCode >= 300) {
1244
- return de_CommandError(output, context);
1245
- }
1246
- const data = await parseBody(output.body, context);
1247
- let contents = {};
1248
- contents = _json(data);
1249
- const response = {
1250
- $metadata: deserializeMetadata(output),
1251
- ...contents,
1252
- };
1253
- return response;
1254
- };
1255
- export const de_DeleteGroupCommand = async (output, context) => {
1256
- if (output.statusCode >= 300) {
1257
- return de_CommandError(output, context);
1258
- }
1259
- await collectBody(output.body, context);
1260
- const response = {
1261
- $metadata: deserializeMetadata(output),
1262
- };
1263
- return response;
1264
- };
1265
- export const de_DeleteIdentityProviderCommand = async (output, context) => {
1266
- if (output.statusCode >= 300) {
1267
- return de_CommandError(output, context);
1268
- }
1269
- await collectBody(output.body, context);
1270
- const response = {
1271
- $metadata: deserializeMetadata(output),
1272
- };
1273
- return response;
1274
- };
1275
- export const de_DeleteManagedLoginBrandingCommand = async (output, context) => {
1276
- if (output.statusCode >= 300) {
1277
- return de_CommandError(output, context);
1278
- }
1279
- await collectBody(output.body, context);
1280
- const response = {
1281
- $metadata: deserializeMetadata(output),
1282
- };
1283
- return response;
1284
- };
1285
- export const de_DeleteResourceServerCommand = async (output, context) => {
1286
- if (output.statusCode >= 300) {
1287
- return de_CommandError(output, context);
1288
- }
1289
- await collectBody(output.body, context);
1290
- const response = {
1291
- $metadata: deserializeMetadata(output),
1292
- };
1293
- return response;
1294
- };
1295
- export const de_DeleteTermsCommand = async (output, context) => {
1296
- if (output.statusCode >= 300) {
1297
- return de_CommandError(output, context);
1298
- }
1299
- await collectBody(output.body, context);
1300
- const response = {
1301
- $metadata: deserializeMetadata(output),
1302
- };
1303
- return response;
1304
- };
1305
- export const de_DeleteUserCommand = async (output, context) => {
1306
- if (output.statusCode >= 300) {
1307
- return de_CommandError(output, context);
1308
- }
1309
- await collectBody(output.body, context);
1310
- const response = {
1311
- $metadata: deserializeMetadata(output),
1312
- };
1313
- return response;
1314
- };
1315
- export const de_DeleteUserAttributesCommand = async (output, context) => {
1316
- if (output.statusCode >= 300) {
1317
- return de_CommandError(output, context);
1318
- }
1319
- const data = await parseBody(output.body, context);
1320
- let contents = {};
1321
- contents = _json(data);
1322
- const response = {
1323
- $metadata: deserializeMetadata(output),
1324
- ...contents,
1325
- };
1326
- return response;
1327
- };
1328
- export const de_DeleteUserPoolCommand = async (output, context) => {
1329
- if (output.statusCode >= 300) {
1330
- return de_CommandError(output, context);
1331
- }
1332
- await collectBody(output.body, context);
1333
- const response = {
1334
- $metadata: deserializeMetadata(output),
1335
- };
1336
- return response;
1337
- };
1338
- export const de_DeleteUserPoolClientCommand = async (output, context) => {
1339
- if (output.statusCode >= 300) {
1340
- return de_CommandError(output, context);
1341
- }
1342
- await collectBody(output.body, context);
1343
- const response = {
1344
- $metadata: deserializeMetadata(output),
1345
- };
1346
- return response;
1347
- };
1348
- export const de_DeleteUserPoolDomainCommand = async (output, context) => {
1349
- if (output.statusCode >= 300) {
1350
- return de_CommandError(output, context);
1351
- }
1352
- const data = await parseBody(output.body, context);
1353
- let contents = {};
1354
- contents = _json(data);
1355
- const response = {
1356
- $metadata: deserializeMetadata(output),
1357
- ...contents,
1358
- };
1359
- return response;
1360
- };
1361
- export const de_DeleteWebAuthnCredentialCommand = async (output, context) => {
1362
- if (output.statusCode >= 300) {
1363
- return de_CommandError(output, context);
1364
- }
1365
- const data = await parseBody(output.body, context);
1366
- let contents = {};
1367
- contents = _json(data);
1368
- const response = {
1369
- $metadata: deserializeMetadata(output),
1370
- ...contents,
1371
- };
1372
- return response;
1373
- };
1374
- export const de_DescribeIdentityProviderCommand = async (output, context) => {
1375
- if (output.statusCode >= 300) {
1376
- return de_CommandError(output, context);
1377
- }
1378
- const data = await parseBody(output.body, context);
1379
- let contents = {};
1380
- contents = de_DescribeIdentityProviderResponse(data, context);
1381
- const response = {
1382
- $metadata: deserializeMetadata(output),
1383
- ...contents,
1384
- };
1385
- return response;
1386
- };
1387
- export const de_DescribeManagedLoginBrandingCommand = async (output, context) => {
1388
- if (output.statusCode >= 300) {
1389
- return de_CommandError(output, context);
1390
- }
1391
- const data = await parseBody(output.body, context);
1392
- let contents = {};
1393
- contents = de_DescribeManagedLoginBrandingResponse(data, context);
1394
- const response = {
1395
- $metadata: deserializeMetadata(output),
1396
- ...contents,
1397
- };
1398
- return response;
1399
- };
1400
- export const de_DescribeManagedLoginBrandingByClientCommand = async (output, context) => {
1401
- if (output.statusCode >= 300) {
1402
- return de_CommandError(output, context);
1403
- }
1404
- const data = await parseBody(output.body, context);
1405
- let contents = {};
1406
- contents = de_DescribeManagedLoginBrandingByClientResponse(data, context);
1407
- const response = {
1408
- $metadata: deserializeMetadata(output),
1409
- ...contents,
1410
- };
1411
- return response;
1412
- };
1413
- export const de_DescribeResourceServerCommand = async (output, context) => {
1414
- if (output.statusCode >= 300) {
1415
- return de_CommandError(output, context);
1416
- }
1417
- const data = await parseBody(output.body, context);
1418
- let contents = {};
1419
- contents = _json(data);
1420
- const response = {
1421
- $metadata: deserializeMetadata(output),
1422
- ...contents,
1423
- };
1424
- return response;
1425
- };
1426
- export const de_DescribeRiskConfigurationCommand = async (output, context) => {
1427
- if (output.statusCode >= 300) {
1428
- return de_CommandError(output, context);
1429
- }
1430
- const data = await parseBody(output.body, context);
1431
- let contents = {};
1432
- contents = de_DescribeRiskConfigurationResponse(data, context);
1433
- const response = {
1434
- $metadata: deserializeMetadata(output),
1435
- ...contents,
1436
- };
1437
- return response;
1438
- };
1439
- export const de_DescribeTermsCommand = async (output, context) => {
1440
- if (output.statusCode >= 300) {
1441
- return de_CommandError(output, context);
1442
- }
1443
- const data = await parseBody(output.body, context);
1444
- let contents = {};
1445
- contents = de_DescribeTermsResponse(data, context);
1446
- const response = {
1447
- $metadata: deserializeMetadata(output),
1448
- ...contents,
1449
- };
1450
- return response;
1451
- };
1452
- export const de_DescribeUserImportJobCommand = async (output, context) => {
1453
- if (output.statusCode >= 300) {
1454
- return de_CommandError(output, context);
1455
- }
1456
- const data = await parseBody(output.body, context);
1457
- let contents = {};
1458
- contents = de_DescribeUserImportJobResponse(data, context);
1459
- const response = {
1460
- $metadata: deserializeMetadata(output),
1461
- ...contents,
1462
- };
1463
- return response;
1464
- };
1465
- export const de_DescribeUserPoolCommand = async (output, context) => {
1466
- if (output.statusCode >= 300) {
1467
- return de_CommandError(output, context);
1468
- }
1469
- const data = await parseBody(output.body, context);
1470
- let contents = {};
1471
- contents = de_DescribeUserPoolResponse(data, context);
1472
- const response = {
1473
- $metadata: deserializeMetadata(output),
1474
- ...contents,
1475
- };
1476
- return response;
1477
- };
1478
- export const de_DescribeUserPoolClientCommand = async (output, context) => {
1479
- if (output.statusCode >= 300) {
1480
- return de_CommandError(output, context);
1481
- }
1482
- const data = await parseBody(output.body, context);
1483
- let contents = {};
1484
- contents = de_DescribeUserPoolClientResponse(data, context);
1485
- const response = {
1486
- $metadata: deserializeMetadata(output),
1487
- ...contents,
1488
- };
1489
- return response;
1490
- };
1491
- export const de_DescribeUserPoolDomainCommand = async (output, context) => {
1492
- if (output.statusCode >= 300) {
1493
- return de_CommandError(output, context);
1494
- }
1495
- const data = await parseBody(output.body, context);
1496
- let contents = {};
1497
- contents = _json(data);
1498
- const response = {
1499
- $metadata: deserializeMetadata(output),
1500
- ...contents,
1501
- };
1502
- return response;
1503
- };
1504
- export const de_ForgetDeviceCommand = async (output, context) => {
1505
- if (output.statusCode >= 300) {
1506
- return de_CommandError(output, context);
1507
- }
1508
- await collectBody(output.body, context);
1509
- const response = {
1510
- $metadata: deserializeMetadata(output),
1511
- };
1512
- return response;
1513
- };
1514
- export const de_ForgotPasswordCommand = async (output, context) => {
1515
- if (output.statusCode >= 300) {
1516
- return de_CommandError(output, context);
1517
- }
1518
- const data = await parseBody(output.body, context);
1519
- let contents = {};
1520
- contents = _json(data);
1521
- const response = {
1522
- $metadata: deserializeMetadata(output),
1523
- ...contents,
1524
- };
1525
- return response;
1526
- };
1527
- export const de_GetCSVHeaderCommand = async (output, context) => {
1528
- if (output.statusCode >= 300) {
1529
- return de_CommandError(output, context);
1530
- }
1531
- const data = await parseBody(output.body, context);
1532
- let contents = {};
1533
- contents = _json(data);
1534
- const response = {
1535
- $metadata: deserializeMetadata(output),
1536
- ...contents,
1537
- };
1538
- return response;
1539
- };
1540
- export const de_GetDeviceCommand = async (output, context) => {
1541
- if (output.statusCode >= 300) {
1542
- return de_CommandError(output, context);
1543
- }
1544
- const data = await parseBody(output.body, context);
1545
- let contents = {};
1546
- contents = de_GetDeviceResponse(data, context);
1547
- const response = {
1548
- $metadata: deserializeMetadata(output),
1549
- ...contents,
1550
- };
1551
- return response;
1552
- };
1553
- export const de_GetGroupCommand = async (output, context) => {
1554
- if (output.statusCode >= 300) {
1555
- return de_CommandError(output, context);
1556
- }
1557
- const data = await parseBody(output.body, context);
1558
- let contents = {};
1559
- contents = de_GetGroupResponse(data, context);
1560
- const response = {
1561
- $metadata: deserializeMetadata(output),
1562
- ...contents,
1563
- };
1564
- return response;
1565
- };
1566
- export const de_GetIdentityProviderByIdentifierCommand = async (output, context) => {
1567
- if (output.statusCode >= 300) {
1568
- return de_CommandError(output, context);
1569
- }
1570
- const data = await parseBody(output.body, context);
1571
- let contents = {};
1572
- contents = de_GetIdentityProviderByIdentifierResponse(data, context);
1573
- const response = {
1574
- $metadata: deserializeMetadata(output),
1575
- ...contents,
1576
- };
1577
- return response;
1578
- };
1579
- export const de_GetLogDeliveryConfigurationCommand = async (output, context) => {
1580
- if (output.statusCode >= 300) {
1581
- return de_CommandError(output, context);
1582
- }
1583
- const data = await parseBody(output.body, context);
1584
- let contents = {};
1585
- contents = _json(data);
1586
- const response = {
1587
- $metadata: deserializeMetadata(output),
1588
- ...contents,
1589
- };
1590
- return response;
1591
- };
1592
- export const de_GetSigningCertificateCommand = async (output, context) => {
1593
- if (output.statusCode >= 300) {
1594
- return de_CommandError(output, context);
1595
- }
1596
- const data = await parseBody(output.body, context);
1597
- let contents = {};
1598
- contents = _json(data);
1599
- const response = {
1600
- $metadata: deserializeMetadata(output),
1601
- ...contents,
1602
- };
1603
- return response;
1604
- };
1605
- export const de_GetTokensFromRefreshTokenCommand = async (output, context) => {
1606
- if (output.statusCode >= 300) {
1607
- return de_CommandError(output, context);
1608
- }
1609
- const data = await parseBody(output.body, context);
1610
- let contents = {};
1611
- contents = _json(data);
1612
- const response = {
1613
- $metadata: deserializeMetadata(output),
1614
- ...contents,
1615
- };
1616
- return response;
1617
- };
1618
- export const de_GetUICustomizationCommand = async (output, context) => {
1619
- if (output.statusCode >= 300) {
1620
- return de_CommandError(output, context);
1621
- }
1622
- const data = await parseBody(output.body, context);
1623
- let contents = {};
1624
- contents = de_GetUICustomizationResponse(data, context);
1625
- const response = {
1626
- $metadata: deserializeMetadata(output),
1627
- ...contents,
1628
- };
1629
- return response;
1630
- };
1631
- export const de_GetUserCommand = async (output, context) => {
1632
- if (output.statusCode >= 300) {
1633
- return de_CommandError(output, context);
1634
- }
1635
- const data = await parseBody(output.body, context);
1636
- let contents = {};
1637
- contents = _json(data);
1638
- const response = {
1639
- $metadata: deserializeMetadata(output),
1640
- ...contents,
1641
- };
1642
- return response;
1643
- };
1644
- export const de_GetUserAttributeVerificationCodeCommand = async (output, context) => {
1645
- if (output.statusCode >= 300) {
1646
- return de_CommandError(output, context);
1647
- }
1648
- const data = await parseBody(output.body, context);
1649
- let contents = {};
1650
- contents = _json(data);
1651
- const response = {
1652
- $metadata: deserializeMetadata(output),
1653
- ...contents,
1654
- };
1655
- return response;
1656
- };
1657
- export const de_GetUserAuthFactorsCommand = async (output, context) => {
1658
- if (output.statusCode >= 300) {
1659
- return de_CommandError(output, context);
1660
- }
1661
- const data = await parseBody(output.body, context);
1662
- let contents = {};
1663
- contents = _json(data);
1664
- const response = {
1665
- $metadata: deserializeMetadata(output),
1666
- ...contents,
1667
- };
1668
- return response;
1669
- };
1670
- export const de_GetUserPoolMfaConfigCommand = async (output, context) => {
1671
- if (output.statusCode >= 300) {
1672
- return de_CommandError(output, context);
1673
- }
1674
- const data = await parseBody(output.body, context);
1675
- let contents = {};
1676
- contents = _json(data);
1677
- const response = {
1678
- $metadata: deserializeMetadata(output),
1679
- ...contents,
1680
- };
1681
- return response;
1682
- };
1683
- export const de_GlobalSignOutCommand = async (output, context) => {
1684
- if (output.statusCode >= 300) {
1685
- return de_CommandError(output, context);
1686
- }
1687
- const data = await parseBody(output.body, context);
1688
- let contents = {};
1689
- contents = _json(data);
1690
- const response = {
1691
- $metadata: deserializeMetadata(output),
1692
- ...contents,
1693
- };
1694
- return response;
1695
- };
1696
- export const de_InitiateAuthCommand = async (output, context) => {
1697
- if (output.statusCode >= 300) {
1698
- return de_CommandError(output, context);
1699
- }
1700
- const data = await parseBody(output.body, context);
1701
- let contents = {};
1702
- contents = _json(data);
1703
- const response = {
1704
- $metadata: deserializeMetadata(output),
1705
- ...contents,
1706
- };
1707
- return response;
1708
- };
1709
- export const de_ListDevicesCommand = async (output, context) => {
1710
- if (output.statusCode >= 300) {
1711
- return de_CommandError(output, context);
1712
- }
1713
- const data = await parseBody(output.body, context);
1714
- let contents = {};
1715
- contents = de_ListDevicesResponse(data, context);
1716
- const response = {
1717
- $metadata: deserializeMetadata(output),
1718
- ...contents,
1719
- };
1720
- return response;
1721
- };
1722
- export const de_ListGroupsCommand = async (output, context) => {
1723
- if (output.statusCode >= 300) {
1724
- return de_CommandError(output, context);
1725
- }
1726
- const data = await parseBody(output.body, context);
1727
- let contents = {};
1728
- contents = de_ListGroupsResponse(data, context);
1729
- const response = {
1730
- $metadata: deserializeMetadata(output),
1731
- ...contents,
1732
- };
1733
- return response;
1734
- };
1735
- export const de_ListIdentityProvidersCommand = async (output, context) => {
1736
- if (output.statusCode >= 300) {
1737
- return de_CommandError(output, context);
1738
- }
1739
- const data = await parseBody(output.body, context);
1740
- let contents = {};
1741
- contents = de_ListIdentityProvidersResponse(data, context);
1742
- const response = {
1743
- $metadata: deserializeMetadata(output),
1744
- ...contents,
1745
- };
1746
- return response;
1747
- };
1748
- export const de_ListResourceServersCommand = async (output, context) => {
1749
- if (output.statusCode >= 300) {
1750
- return de_CommandError(output, context);
1751
- }
1752
- const data = await parseBody(output.body, context);
1753
- let contents = {};
1754
- contents = _json(data);
1755
- const response = {
1756
- $metadata: deserializeMetadata(output),
1757
- ...contents,
1758
- };
1759
- return response;
1760
- };
1761
- export const de_ListTagsForResourceCommand = async (output, context) => {
1762
- if (output.statusCode >= 300) {
1763
- return de_CommandError(output, context);
1764
- }
1765
- const data = await parseBody(output.body, context);
1766
- let contents = {};
1767
- contents = _json(data);
1768
- const response = {
1769
- $metadata: deserializeMetadata(output),
1770
- ...contents,
1771
- };
1772
- return response;
1773
- };
1774
- export const de_ListTermsCommand = async (output, context) => {
1775
- if (output.statusCode >= 300) {
1776
- return de_CommandError(output, context);
1777
- }
1778
- const data = await parseBody(output.body, context);
1779
- let contents = {};
1780
- contents = de_ListTermsResponse(data, context);
1781
- const response = {
1782
- $metadata: deserializeMetadata(output),
1783
- ...contents,
1784
- };
1785
- return response;
1786
- };
1787
- export const de_ListUserImportJobsCommand = async (output, context) => {
1788
- if (output.statusCode >= 300) {
1789
- return de_CommandError(output, context);
1790
- }
1791
- const data = await parseBody(output.body, context);
1792
- let contents = {};
1793
- contents = de_ListUserImportJobsResponse(data, context);
1794
- const response = {
1795
- $metadata: deserializeMetadata(output),
1796
- ...contents,
1797
- };
1798
- return response;
1799
- };
1800
- export const de_ListUserPoolClientsCommand = async (output, context) => {
1801
- if (output.statusCode >= 300) {
1802
- return de_CommandError(output, context);
1803
- }
1804
- const data = await parseBody(output.body, context);
1805
- let contents = {};
1806
- contents = _json(data);
1807
- const response = {
1808
- $metadata: deserializeMetadata(output),
1809
- ...contents,
1810
- };
1811
- return response;
1812
- };
1813
- export const de_ListUserPoolsCommand = async (output, context) => {
1814
- if (output.statusCode >= 300) {
1815
- return de_CommandError(output, context);
1816
- }
1817
- const data = await parseBody(output.body, context);
1818
- let contents = {};
1819
- contents = de_ListUserPoolsResponse(data, context);
1820
- const response = {
1821
- $metadata: deserializeMetadata(output),
1822
- ...contents,
1823
- };
1824
- return response;
1825
- };
1826
- export const de_ListUsersCommand = async (output, context) => {
1827
- if (output.statusCode >= 300) {
1828
- return de_CommandError(output, context);
1829
- }
1830
- const data = await parseBody(output.body, context);
1831
- let contents = {};
1832
- contents = de_ListUsersResponse(data, context);
1833
- const response = {
1834
- $metadata: deserializeMetadata(output),
1835
- ...contents,
1836
- };
1837
- return response;
1838
- };
1839
- export const de_ListUsersInGroupCommand = async (output, context) => {
1840
- if (output.statusCode >= 300) {
1841
- return de_CommandError(output, context);
1842
- }
1843
- const data = await parseBody(output.body, context);
1844
- let contents = {};
1845
- contents = de_ListUsersInGroupResponse(data, context);
1846
- const response = {
1847
- $metadata: deserializeMetadata(output),
1848
- ...contents,
1849
- };
1850
- return response;
1851
- };
1852
- export const de_ListWebAuthnCredentialsCommand = async (output, context) => {
1853
- if (output.statusCode >= 300) {
1854
- return de_CommandError(output, context);
1855
- }
1856
- const data = await parseBody(output.body, context);
1857
- let contents = {};
1858
- contents = de_ListWebAuthnCredentialsResponse(data, context);
1859
- const response = {
1860
- $metadata: deserializeMetadata(output),
1861
- ...contents,
1862
- };
1863
- return response;
1864
- };
1865
- export const de_ResendConfirmationCodeCommand = async (output, context) => {
1866
- if (output.statusCode >= 300) {
1867
- return de_CommandError(output, context);
1868
- }
1869
- const data = await parseBody(output.body, context);
1870
- let contents = {};
1871
- contents = _json(data);
1872
- const response = {
1873
- $metadata: deserializeMetadata(output),
1874
- ...contents,
1875
- };
1876
- return response;
1877
- };
1878
- export const de_RespondToAuthChallengeCommand = async (output, context) => {
1879
- if (output.statusCode >= 300) {
1880
- return de_CommandError(output, context);
1881
- }
1882
- const data = await parseBody(output.body, context);
1883
- let contents = {};
1884
- contents = _json(data);
1885
- const response = {
1886
- $metadata: deserializeMetadata(output),
1887
- ...contents,
1888
- };
1889
- return response;
1890
- };
1891
- export const de_RevokeTokenCommand = async (output, context) => {
1892
- if (output.statusCode >= 300) {
1893
- return de_CommandError(output, context);
1894
- }
1895
- const data = await parseBody(output.body, context);
1896
- let contents = {};
1897
- contents = _json(data);
1898
- const response = {
1899
- $metadata: deserializeMetadata(output),
1900
- ...contents,
1901
- };
1902
- return response;
1903
- };
1904
- export const de_SetLogDeliveryConfigurationCommand = async (output, context) => {
1905
- if (output.statusCode >= 300) {
1906
- return de_CommandError(output, context);
1907
- }
1908
- const data = await parseBody(output.body, context);
1909
- let contents = {};
1910
- contents = _json(data);
1911
- const response = {
1912
- $metadata: deserializeMetadata(output),
1913
- ...contents,
1914
- };
1915
- return response;
1916
- };
1917
- export const de_SetRiskConfigurationCommand = async (output, context) => {
1918
- if (output.statusCode >= 300) {
1919
- return de_CommandError(output, context);
1920
- }
1921
- const data = await parseBody(output.body, context);
1922
- let contents = {};
1923
- contents = de_SetRiskConfigurationResponse(data, context);
1924
- const response = {
1925
- $metadata: deserializeMetadata(output),
1926
- ...contents,
1927
- };
1928
- return response;
1929
- };
1930
- export const de_SetUICustomizationCommand = async (output, context) => {
1931
- if (output.statusCode >= 300) {
1932
- return de_CommandError(output, context);
1933
- }
1934
- const data = await parseBody(output.body, context);
1935
- let contents = {};
1936
- contents = de_SetUICustomizationResponse(data, context);
1937
- const response = {
1938
- $metadata: deserializeMetadata(output),
1939
- ...contents,
1940
- };
1941
- return response;
1942
- };
1943
- export const de_SetUserMFAPreferenceCommand = async (output, context) => {
1944
- if (output.statusCode >= 300) {
1945
- return de_CommandError(output, context);
1946
- }
1947
- const data = await parseBody(output.body, context);
1948
- let contents = {};
1949
- contents = _json(data);
1950
- const response = {
1951
- $metadata: deserializeMetadata(output),
1952
- ...contents,
1953
- };
1954
- return response;
1955
- };
1956
- export const de_SetUserPoolMfaConfigCommand = async (output, context) => {
1957
- if (output.statusCode >= 300) {
1958
- return de_CommandError(output, context);
1959
- }
1960
- const data = await parseBody(output.body, context);
1961
- let contents = {};
1962
- contents = _json(data);
1963
- const response = {
1964
- $metadata: deserializeMetadata(output),
1965
- ...contents,
1966
- };
1967
- return response;
1968
- };
1969
- export const de_SetUserSettingsCommand = async (output, context) => {
1970
- if (output.statusCode >= 300) {
1971
- return de_CommandError(output, context);
1972
- }
1973
- const data = await parseBody(output.body, context);
1974
- let contents = {};
1975
- contents = _json(data);
1976
- const response = {
1977
- $metadata: deserializeMetadata(output),
1978
- ...contents,
1979
- };
1980
- return response;
1981
- };
1982
- export const de_SignUpCommand = async (output, context) => {
1983
- if (output.statusCode >= 300) {
1984
- return de_CommandError(output, context);
1985
- }
1986
- const data = await parseBody(output.body, context);
1987
- let contents = {};
1988
- contents = _json(data);
1989
- const response = {
1990
- $metadata: deserializeMetadata(output),
1991
- ...contents,
1992
- };
1993
- return response;
1994
- };
1995
- export const de_StartUserImportJobCommand = async (output, context) => {
1996
- if (output.statusCode >= 300) {
1997
- return de_CommandError(output, context);
1998
- }
1999
- const data = await parseBody(output.body, context);
2000
- let contents = {};
2001
- contents = de_StartUserImportJobResponse(data, context);
2002
- const response = {
2003
- $metadata: deserializeMetadata(output),
2004
- ...contents,
2005
- };
2006
- return response;
2007
- };
2008
- export const de_StartWebAuthnRegistrationCommand = async (output, context) => {
2009
- if (output.statusCode >= 300) {
2010
- return de_CommandError(output, context);
2011
- }
2012
- const data = await parseBody(output.body, context);
2013
- let contents = {};
2014
- contents = de_StartWebAuthnRegistrationResponse(data, context);
2015
- const response = {
2016
- $metadata: deserializeMetadata(output),
2017
- ...contents,
2018
- };
2019
- return response;
2020
- };
2021
- export const de_StopUserImportJobCommand = async (output, context) => {
2022
- if (output.statusCode >= 300) {
2023
- return de_CommandError(output, context);
2024
- }
2025
- const data = await parseBody(output.body, context);
2026
- let contents = {};
2027
- contents = de_StopUserImportJobResponse(data, context);
2028
- const response = {
2029
- $metadata: deserializeMetadata(output),
2030
- ...contents,
2031
- };
2032
- return response;
2033
- };
2034
- export const de_TagResourceCommand = async (output, context) => {
2035
- if (output.statusCode >= 300) {
2036
- return de_CommandError(output, context);
2037
- }
2038
- const data = await parseBody(output.body, context);
2039
- let contents = {};
2040
- contents = _json(data);
2041
- const response = {
2042
- $metadata: deserializeMetadata(output),
2043
- ...contents,
2044
- };
2045
- return response;
2046
- };
2047
- export const de_UntagResourceCommand = async (output, context) => {
2048
- if (output.statusCode >= 300) {
2049
- return de_CommandError(output, context);
2050
- }
2051
- const data = await parseBody(output.body, context);
2052
- let contents = {};
2053
- contents = _json(data);
2054
- const response = {
2055
- $metadata: deserializeMetadata(output),
2056
- ...contents,
2057
- };
2058
- return response;
2059
- };
2060
- export const de_UpdateAuthEventFeedbackCommand = async (output, context) => {
2061
- if (output.statusCode >= 300) {
2062
- return de_CommandError(output, context);
2063
- }
2064
- const data = await parseBody(output.body, context);
2065
- let contents = {};
2066
- contents = _json(data);
2067
- const response = {
2068
- $metadata: deserializeMetadata(output),
2069
- ...contents,
2070
- };
2071
- return response;
2072
- };
2073
- export const de_UpdateDeviceStatusCommand = async (output, context) => {
2074
- if (output.statusCode >= 300) {
2075
- return de_CommandError(output, context);
2076
- }
2077
- const data = await parseBody(output.body, context);
2078
- let contents = {};
2079
- contents = _json(data);
2080
- const response = {
2081
- $metadata: deserializeMetadata(output),
2082
- ...contents,
2083
- };
2084
- return response;
2085
- };
2086
- export const de_UpdateGroupCommand = async (output, context) => {
2087
- if (output.statusCode >= 300) {
2088
- return de_CommandError(output, context);
2089
- }
2090
- const data = await parseBody(output.body, context);
2091
- let contents = {};
2092
- contents = de_UpdateGroupResponse(data, context);
2093
- const response = {
2094
- $metadata: deserializeMetadata(output),
2095
- ...contents,
2096
- };
2097
- return response;
2098
- };
2099
- export const de_UpdateIdentityProviderCommand = async (output, context) => {
2100
- if (output.statusCode >= 300) {
2101
- return de_CommandError(output, context);
2102
- }
2103
- const data = await parseBody(output.body, context);
2104
- let contents = {};
2105
- contents = de_UpdateIdentityProviderResponse(data, context);
2106
- const response = {
2107
- $metadata: deserializeMetadata(output),
2108
- ...contents,
2109
- };
2110
- return response;
2111
- };
2112
- export const de_UpdateManagedLoginBrandingCommand = async (output, context) => {
2113
- if (output.statusCode >= 300) {
2114
- return de_CommandError(output, context);
2115
- }
2116
- const data = await parseBody(output.body, context);
2117
- let contents = {};
2118
- contents = de_UpdateManagedLoginBrandingResponse(data, context);
2119
- const response = {
2120
- $metadata: deserializeMetadata(output),
2121
- ...contents,
2122
- };
2123
- return response;
2124
- };
2125
- export const de_UpdateResourceServerCommand = async (output, context) => {
2126
- if (output.statusCode >= 300) {
2127
- return de_CommandError(output, context);
2128
- }
2129
- const data = await parseBody(output.body, context);
2130
- let contents = {};
2131
- contents = _json(data);
2132
- const response = {
2133
- $metadata: deserializeMetadata(output),
2134
- ...contents,
2135
- };
2136
- return response;
2137
- };
2138
- export const de_UpdateTermsCommand = async (output, context) => {
2139
- if (output.statusCode >= 300) {
2140
- return de_CommandError(output, context);
2141
- }
2142
- const data = await parseBody(output.body, context);
2143
- let contents = {};
2144
- contents = de_UpdateTermsResponse(data, context);
2145
- const response = {
2146
- $metadata: deserializeMetadata(output),
2147
- ...contents,
2148
- };
2149
- return response;
2150
- };
2151
- export const de_UpdateUserAttributesCommand = async (output, context) => {
2152
- if (output.statusCode >= 300) {
2153
- return de_CommandError(output, context);
2154
- }
2155
- const data = await parseBody(output.body, context);
2156
- let contents = {};
2157
- contents = _json(data);
2158
- const response = {
2159
- $metadata: deserializeMetadata(output),
2160
- ...contents,
2161
- };
2162
- return response;
2163
- };
2164
- export const de_UpdateUserPoolCommand = async (output, context) => {
2165
- if (output.statusCode >= 300) {
2166
- return de_CommandError(output, context);
2167
- }
2168
- const data = await parseBody(output.body, context);
2169
- let contents = {};
2170
- contents = _json(data);
2171
- const response = {
2172
- $metadata: deserializeMetadata(output),
2173
- ...contents,
2174
- };
2175
- return response;
2176
- };
2177
- export const de_UpdateUserPoolClientCommand = async (output, context) => {
2178
- if (output.statusCode >= 300) {
2179
- return de_CommandError(output, context);
2180
- }
2181
- const data = await parseBody(output.body, context);
2182
- let contents = {};
2183
- contents = de_UpdateUserPoolClientResponse(data, context);
2184
- const response = {
2185
- $metadata: deserializeMetadata(output),
2186
- ...contents,
2187
- };
2188
- return response;
2189
- };
2190
- export const de_UpdateUserPoolDomainCommand = async (output, context) => {
2191
- if (output.statusCode >= 300) {
2192
- return de_CommandError(output, context);
2193
- }
2194
- const data = await parseBody(output.body, context);
2195
- let contents = {};
2196
- contents = _json(data);
2197
- const response = {
2198
- $metadata: deserializeMetadata(output),
2199
- ...contents,
2200
- };
2201
- return response;
2202
- };
2203
- export const de_VerifySoftwareTokenCommand = async (output, context) => {
2204
- if (output.statusCode >= 300) {
2205
- return de_CommandError(output, context);
2206
- }
2207
- const data = await parseBody(output.body, context);
2208
- let contents = {};
2209
- contents = _json(data);
2210
- const response = {
2211
- $metadata: deserializeMetadata(output),
2212
- ...contents,
2213
- };
2214
- return response;
2215
- };
2216
- export const de_VerifyUserAttributeCommand = async (output, context) => {
2217
- if (output.statusCode >= 300) {
2218
- return de_CommandError(output, context);
2219
- }
2220
- const data = await parseBody(output.body, context);
2221
- let contents = {};
2222
- contents = _json(data);
2223
- const response = {
2224
- $metadata: deserializeMetadata(output),
2225
- ...contents,
2226
- };
2227
- return response;
2228
- };
2229
- const de_CommandError = async (output, context) => {
2230
- const parsedOutput = {
2231
- ...output,
2232
- body: await parseErrorBody(output.body, context),
2233
- };
2234
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2235
- switch (errorCode) {
2236
- case "InternalErrorException":
2237
- case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
2238
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
2239
- case "InvalidParameterException":
2240
- case "com.amazonaws.cognitoidentityprovider#InvalidParameterException":
2241
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2242
- case "NotAuthorizedException":
2243
- case "com.amazonaws.cognitoidentityprovider#NotAuthorizedException":
2244
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
2245
- case "ResourceNotFoundException":
2246
- case "com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":
2247
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2248
- case "TooManyRequestsException":
2249
- case "com.amazonaws.cognitoidentityprovider#TooManyRequestsException":
2250
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2251
- case "UserImportInProgressException":
2252
- case "com.amazonaws.cognitoidentityprovider#UserImportInProgressException":
2253
- throw await de_UserImportInProgressExceptionRes(parsedOutput, context);
2254
- case "UserNotFoundException":
2255
- case "com.amazonaws.cognitoidentityprovider#UserNotFoundException":
2256
- throw await de_UserNotFoundExceptionRes(parsedOutput, context);
2257
- case "InvalidLambdaResponseException":
2258
- case "com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":
2259
- throw await de_InvalidLambdaResponseExceptionRes(parsedOutput, context);
2260
- case "LimitExceededException":
2261
- case "com.amazonaws.cognitoidentityprovider#LimitExceededException":
2262
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2263
- case "TooManyFailedAttemptsException":
2264
- case "com.amazonaws.cognitoidentityprovider#TooManyFailedAttemptsException":
2265
- throw await de_TooManyFailedAttemptsExceptionRes(parsedOutput, context);
2266
- case "UnexpectedLambdaException":
2267
- case "com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":
2268
- throw await de_UnexpectedLambdaExceptionRes(parsedOutput, context);
2269
- case "UserLambdaValidationException":
2270
- case "com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":
2271
- throw await de_UserLambdaValidationExceptionRes(parsedOutput, context);
2272
- case "CodeDeliveryFailureException":
2273
- case "com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":
2274
- throw await de_CodeDeliveryFailureExceptionRes(parsedOutput, context);
2275
- case "InvalidPasswordException":
2276
- case "com.amazonaws.cognitoidentityprovider#InvalidPasswordException":
2277
- throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
2278
- case "InvalidSmsRoleAccessPolicyException":
2279
- case "com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":
2280
- throw await de_InvalidSmsRoleAccessPolicyExceptionRes(parsedOutput, context);
2281
- case "InvalidSmsRoleTrustRelationshipException":
2282
- case "com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":
2283
- throw await de_InvalidSmsRoleTrustRelationshipExceptionRes(parsedOutput, context);
2284
- case "PreconditionNotMetException":
2285
- case "com.amazonaws.cognitoidentityprovider#PreconditionNotMetException":
2286
- throw await de_PreconditionNotMetExceptionRes(parsedOutput, context);
2287
- case "UnsupportedUserStateException":
2288
- case "com.amazonaws.cognitoidentityprovider#UnsupportedUserStateException":
2289
- throw await de_UnsupportedUserStateExceptionRes(parsedOutput, context);
2290
- case "UsernameExistsException":
2291
- case "com.amazonaws.cognitoidentityprovider#UsernameExistsException":
2292
- throw await de_UsernameExistsExceptionRes(parsedOutput, context);
2293
- case "AliasExistsException":
2294
- case "com.amazonaws.cognitoidentityprovider#AliasExistsException":
2295
- throw await de_AliasExistsExceptionRes(parsedOutput, context);
2296
- case "InvalidUserPoolConfigurationException":
2297
- case "com.amazonaws.cognitoidentityprovider#InvalidUserPoolConfigurationException":
2298
- throw await de_InvalidUserPoolConfigurationExceptionRes(parsedOutput, context);
2299
- case "InvalidEmailRoleAccessPolicyException":
2300
- case "com.amazonaws.cognitoidentityprovider#InvalidEmailRoleAccessPolicyException":
2301
- throw await de_InvalidEmailRoleAccessPolicyExceptionRes(parsedOutput, context);
2302
- case "MFAMethodNotFoundException":
2303
- case "com.amazonaws.cognitoidentityprovider#MFAMethodNotFoundException":
2304
- throw await de_MFAMethodNotFoundExceptionRes(parsedOutput, context);
2305
- case "PasswordResetRequiredException":
2306
- case "com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException":
2307
- throw await de_PasswordResetRequiredExceptionRes(parsedOutput, context);
2308
- case "UnsupportedOperationException":
2309
- case "com.amazonaws.cognitoidentityprovider#UnsupportedOperationException":
2310
- throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2311
- case "UserNotConfirmedException":
2312
- case "com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":
2313
- throw await de_UserNotConfirmedExceptionRes(parsedOutput, context);
2314
- case "UserPoolAddOnNotEnabledException":
2315
- case "com.amazonaws.cognitoidentityprovider#UserPoolAddOnNotEnabledException":
2316
- throw await de_UserPoolAddOnNotEnabledExceptionRes(parsedOutput, context);
2317
- case "CodeMismatchException":
2318
- case "com.amazonaws.cognitoidentityprovider#CodeMismatchException":
2319
- throw await de_CodeMismatchExceptionRes(parsedOutput, context);
2320
- case "ExpiredCodeException":
2321
- case "com.amazonaws.cognitoidentityprovider#ExpiredCodeException":
2322
- throw await de_ExpiredCodeExceptionRes(parsedOutput, context);
2323
- case "PasswordHistoryPolicyViolationException":
2324
- case "com.amazonaws.cognitoidentityprovider#PasswordHistoryPolicyViolationException":
2325
- throw await de_PasswordHistoryPolicyViolationExceptionRes(parsedOutput, context);
2326
- case "SoftwareTokenMFANotFoundException":
2327
- case "com.amazonaws.cognitoidentityprovider#SoftwareTokenMFANotFoundException":
2328
- throw await de_SoftwareTokenMFANotFoundExceptionRes(parsedOutput, context);
2329
- case "ConcurrentModificationException":
2330
- case "com.amazonaws.cognitoidentityprovider#ConcurrentModificationException":
2331
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
2332
- case "ForbiddenException":
2333
- case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
2334
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2335
- case "WebAuthnChallengeNotFoundException":
2336
- case "com.amazonaws.cognitoidentityprovider#WebAuthnChallengeNotFoundException":
2337
- throw await de_WebAuthnChallengeNotFoundExceptionRes(parsedOutput, context);
2338
- case "WebAuthnClientMismatchException":
2339
- case "com.amazonaws.cognitoidentityprovider#WebAuthnClientMismatchException":
2340
- throw await de_WebAuthnClientMismatchExceptionRes(parsedOutput, context);
2341
- case "WebAuthnCredentialNotSupportedException":
2342
- case "com.amazonaws.cognitoidentityprovider#WebAuthnCredentialNotSupportedException":
2343
- throw await de_WebAuthnCredentialNotSupportedExceptionRes(parsedOutput, context);
2344
- case "WebAuthnNotEnabledException":
2345
- case "com.amazonaws.cognitoidentityprovider#WebAuthnNotEnabledException":
2346
- throw await de_WebAuthnNotEnabledExceptionRes(parsedOutput, context);
2347
- case "WebAuthnOriginNotAllowedException":
2348
- case "com.amazonaws.cognitoidentityprovider#WebAuthnOriginNotAllowedException":
2349
- throw await de_WebAuthnOriginNotAllowedExceptionRes(parsedOutput, context);
2350
- case "WebAuthnRelyingPartyMismatchException":
2351
- case "com.amazonaws.cognitoidentityprovider#WebAuthnRelyingPartyMismatchException":
2352
- throw await de_WebAuthnRelyingPartyMismatchExceptionRes(parsedOutput, context);
2353
- case "DeviceKeyExistsException":
2354
- case "com.amazonaws.cognitoidentityprovider#DeviceKeyExistsException":
2355
- throw await de_DeviceKeyExistsExceptionRes(parsedOutput, context);
2356
- case "GroupExistsException":
2357
- case "com.amazonaws.cognitoidentityprovider#GroupExistsException":
2358
- throw await de_GroupExistsExceptionRes(parsedOutput, context);
2359
- case "DuplicateProviderException":
2360
- case "com.amazonaws.cognitoidentityprovider#DuplicateProviderException":
2361
- throw await de_DuplicateProviderExceptionRes(parsedOutput, context);
2362
- case "ManagedLoginBrandingExistsException":
2363
- case "com.amazonaws.cognitoidentityprovider#ManagedLoginBrandingExistsException":
2364
- throw await de_ManagedLoginBrandingExistsExceptionRes(parsedOutput, context);
2365
- case "TermsExistsException":
2366
- case "com.amazonaws.cognitoidentityprovider#TermsExistsException":
2367
- throw await de_TermsExistsExceptionRes(parsedOutput, context);
2368
- case "FeatureUnavailableInTierException":
2369
- case "com.amazonaws.cognitoidentityprovider#FeatureUnavailableInTierException":
2370
- throw await de_FeatureUnavailableInTierExceptionRes(parsedOutput, context);
2371
- case "TierChangeNotAllowedException":
2372
- case "com.amazonaws.cognitoidentityprovider#TierChangeNotAllowedException":
2373
- throw await de_TierChangeNotAllowedExceptionRes(parsedOutput, context);
2374
- case "UserPoolTaggingException":
2375
- case "com.amazonaws.cognitoidentityprovider#UserPoolTaggingException":
2376
- throw await de_UserPoolTaggingExceptionRes(parsedOutput, context);
2377
- case "InvalidOAuthFlowException":
2378
- case "com.amazonaws.cognitoidentityprovider#InvalidOAuthFlowException":
2379
- throw await de_InvalidOAuthFlowExceptionRes(parsedOutput, context);
2380
- case "ScopeDoesNotExistException":
2381
- case "com.amazonaws.cognitoidentityprovider#ScopeDoesNotExistException":
2382
- throw await de_ScopeDoesNotExistExceptionRes(parsedOutput, context);
2383
- case "UnsupportedIdentityProviderException":
2384
- case "com.amazonaws.cognitoidentityprovider#UnsupportedIdentityProviderException":
2385
- throw await de_UnsupportedIdentityProviderExceptionRes(parsedOutput, context);
2386
- case "RefreshTokenReuseException":
2387
- case "com.amazonaws.cognitoidentityprovider#RefreshTokenReuseException":
2388
- throw await de_RefreshTokenReuseExceptionRes(parsedOutput, context);
2389
- case "UnauthorizedException":
2390
- case "com.amazonaws.cognitoidentityprovider#UnauthorizedException":
2391
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2392
- case "UnsupportedTokenTypeException":
2393
- case "com.amazonaws.cognitoidentityprovider#UnsupportedTokenTypeException":
2394
- throw await de_UnsupportedTokenTypeExceptionRes(parsedOutput, context);
2395
- case "WebAuthnConfigurationMissingException":
2396
- case "com.amazonaws.cognitoidentityprovider#WebAuthnConfigurationMissingException":
2397
- throw await de_WebAuthnConfigurationMissingExceptionRes(parsedOutput, context);
2398
- case "EnableSoftwareTokenMFAException":
2399
- case "com.amazonaws.cognitoidentityprovider#EnableSoftwareTokenMFAException":
2400
- throw await de_EnableSoftwareTokenMFAExceptionRes(parsedOutput, context);
2401
- default:
2402
- const parsedBody = parsedOutput.body;
2403
- return throwDefaultError({
2404
- output,
2405
- parsedBody,
2406
- errorCode,
2407
- });
2408
- }
2409
- };
2410
- const de_AliasExistsExceptionRes = async (parsedOutput, context) => {
2411
- const body = parsedOutput.body;
2412
- const deserialized = _json(body);
2413
- const exception = new AliasExistsException({
2414
- $metadata: deserializeMetadata(parsedOutput),
2415
- ...deserialized,
2416
- });
2417
- return __decorateServiceException(exception, body);
2418
- };
2419
- const de_CodeDeliveryFailureExceptionRes = async (parsedOutput, context) => {
2420
- const body = parsedOutput.body;
2421
- const deserialized = _json(body);
2422
- const exception = new CodeDeliveryFailureException({
2423
- $metadata: deserializeMetadata(parsedOutput),
2424
- ...deserialized,
2425
- });
2426
- return __decorateServiceException(exception, body);
2427
- };
2428
- const de_CodeMismatchExceptionRes = async (parsedOutput, context) => {
2429
- const body = parsedOutput.body;
2430
- const deserialized = _json(body);
2431
- const exception = new CodeMismatchException({
2432
- $metadata: deserializeMetadata(parsedOutput),
2433
- ...deserialized,
2434
- });
2435
- return __decorateServiceException(exception, body);
2436
- };
2437
- const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
2438
- const body = parsedOutput.body;
2439
- const deserialized = _json(body);
2440
- const exception = new ConcurrentModificationException({
2441
- $metadata: deserializeMetadata(parsedOutput),
2442
- ...deserialized,
2443
- });
2444
- return __decorateServiceException(exception, body);
2445
- };
2446
- const de_DeviceKeyExistsExceptionRes = async (parsedOutput, context) => {
2447
- const body = parsedOutput.body;
2448
- const deserialized = _json(body);
2449
- const exception = new DeviceKeyExistsException({
2450
- $metadata: deserializeMetadata(parsedOutput),
2451
- ...deserialized,
2452
- });
2453
- return __decorateServiceException(exception, body);
2454
- };
2455
- const de_DuplicateProviderExceptionRes = async (parsedOutput, context) => {
2456
- const body = parsedOutput.body;
2457
- const deserialized = _json(body);
2458
- const exception = new DuplicateProviderException({
2459
- $metadata: deserializeMetadata(parsedOutput),
2460
- ...deserialized,
2461
- });
2462
- return __decorateServiceException(exception, body);
2463
- };
2464
- const de_EnableSoftwareTokenMFAExceptionRes = async (parsedOutput, context) => {
2465
- const body = parsedOutput.body;
2466
- const deserialized = _json(body);
2467
- const exception = new EnableSoftwareTokenMFAException({
2468
- $metadata: deserializeMetadata(parsedOutput),
2469
- ...deserialized,
2470
- });
2471
- return __decorateServiceException(exception, body);
2472
- };
2473
- const de_ExpiredCodeExceptionRes = async (parsedOutput, context) => {
2474
- const body = parsedOutput.body;
2475
- const deserialized = _json(body);
2476
- const exception = new ExpiredCodeException({
2477
- $metadata: deserializeMetadata(parsedOutput),
2478
- ...deserialized,
2479
- });
2480
- return __decorateServiceException(exception, body);
2481
- };
2482
- const de_FeatureUnavailableInTierExceptionRes = async (parsedOutput, context) => {
2483
- const body = parsedOutput.body;
2484
- const deserialized = _json(body);
2485
- const exception = new FeatureUnavailableInTierException({
2486
- $metadata: deserializeMetadata(parsedOutput),
2487
- ...deserialized,
2488
- });
2489
- return __decorateServiceException(exception, body);
2490
- };
2491
- const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
2492
- const body = parsedOutput.body;
2493
- const deserialized = _json(body);
2494
- const exception = new ForbiddenException({
2495
- $metadata: deserializeMetadata(parsedOutput),
2496
- ...deserialized,
2497
- });
2498
- return __decorateServiceException(exception, body);
2499
- };
2500
- const de_GroupExistsExceptionRes = async (parsedOutput, context) => {
2501
- const body = parsedOutput.body;
2502
- const deserialized = _json(body);
2503
- const exception = new GroupExistsException({
2504
- $metadata: deserializeMetadata(parsedOutput),
2505
- ...deserialized,
2506
- });
2507
- return __decorateServiceException(exception, body);
2508
- };
2509
- const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
2510
- const body = parsedOutput.body;
2511
- const deserialized = _json(body);
2512
- const exception = new InternalErrorException({
2513
- $metadata: deserializeMetadata(parsedOutput),
2514
- ...deserialized,
2515
- });
2516
- return __decorateServiceException(exception, body);
2517
- };
2518
- const de_InvalidEmailRoleAccessPolicyExceptionRes = async (parsedOutput, context) => {
2519
- const body = parsedOutput.body;
2520
- const deserialized = _json(body);
2521
- const exception = new InvalidEmailRoleAccessPolicyException({
2522
- $metadata: deserializeMetadata(parsedOutput),
2523
- ...deserialized,
2524
- });
2525
- return __decorateServiceException(exception, body);
2526
- };
2527
- const de_InvalidLambdaResponseExceptionRes = async (parsedOutput, context) => {
2528
- const body = parsedOutput.body;
2529
- const deserialized = _json(body);
2530
- const exception = new InvalidLambdaResponseException({
2531
- $metadata: deserializeMetadata(parsedOutput),
2532
- ...deserialized,
2533
- });
2534
- return __decorateServiceException(exception, body);
2535
- };
2536
- const de_InvalidOAuthFlowExceptionRes = async (parsedOutput, context) => {
2537
- const body = parsedOutput.body;
2538
- const deserialized = _json(body);
2539
- const exception = new InvalidOAuthFlowException({
2540
- $metadata: deserializeMetadata(parsedOutput),
2541
- ...deserialized,
2542
- });
2543
- return __decorateServiceException(exception, body);
2544
- };
2545
- const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
2546
- const body = parsedOutput.body;
2547
- const deserialized = _json(body);
2548
- const exception = new InvalidParameterException({
2549
- $metadata: deserializeMetadata(parsedOutput),
2550
- ...deserialized,
2551
- });
2552
- return __decorateServiceException(exception, body);
2553
- };
2554
- const de_InvalidPasswordExceptionRes = async (parsedOutput, context) => {
2555
- const body = parsedOutput.body;
2556
- const deserialized = _json(body);
2557
- const exception = new InvalidPasswordException({
2558
- $metadata: deserializeMetadata(parsedOutput),
2559
- ...deserialized,
2560
- });
2561
- return __decorateServiceException(exception, body);
2562
- };
2563
- const de_InvalidSmsRoleAccessPolicyExceptionRes = async (parsedOutput, context) => {
2564
- const body = parsedOutput.body;
2565
- const deserialized = _json(body);
2566
- const exception = new InvalidSmsRoleAccessPolicyException({
2567
- $metadata: deserializeMetadata(parsedOutput),
2568
- ...deserialized,
2569
- });
2570
- return __decorateServiceException(exception, body);
2571
- };
2572
- const de_InvalidSmsRoleTrustRelationshipExceptionRes = async (parsedOutput, context) => {
2573
- const body = parsedOutput.body;
2574
- const deserialized = _json(body);
2575
- const exception = new InvalidSmsRoleTrustRelationshipException({
2576
- $metadata: deserializeMetadata(parsedOutput),
2577
- ...deserialized,
2578
- });
2579
- return __decorateServiceException(exception, body);
2580
- };
2581
- const de_InvalidUserPoolConfigurationExceptionRes = async (parsedOutput, context) => {
2582
- const body = parsedOutput.body;
2583
- const deserialized = _json(body);
2584
- const exception = new InvalidUserPoolConfigurationException({
2585
- $metadata: deserializeMetadata(parsedOutput),
2586
- ...deserialized,
2587
- });
2588
- return __decorateServiceException(exception, body);
2589
- };
2590
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2591
- const body = parsedOutput.body;
2592
- const deserialized = _json(body);
2593
- const exception = new LimitExceededException({
2594
- $metadata: deserializeMetadata(parsedOutput),
2595
- ...deserialized,
2596
- });
2597
- return __decorateServiceException(exception, body);
2598
- };
2599
- const de_ManagedLoginBrandingExistsExceptionRes = async (parsedOutput, context) => {
2600
- const body = parsedOutput.body;
2601
- const deserialized = _json(body);
2602
- const exception = new ManagedLoginBrandingExistsException({
2603
- $metadata: deserializeMetadata(parsedOutput),
2604
- ...deserialized,
2605
- });
2606
- return __decorateServiceException(exception, body);
2607
- };
2608
- const de_MFAMethodNotFoundExceptionRes = async (parsedOutput, context) => {
2609
- const body = parsedOutput.body;
2610
- const deserialized = _json(body);
2611
- const exception = new MFAMethodNotFoundException({
2612
- $metadata: deserializeMetadata(parsedOutput),
2613
- ...deserialized,
2614
- });
2615
- return __decorateServiceException(exception, body);
2616
- };
2617
- const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
2618
- const body = parsedOutput.body;
2619
- const deserialized = _json(body);
2620
- const exception = new NotAuthorizedException({
2621
- $metadata: deserializeMetadata(parsedOutput),
2622
- ...deserialized,
2623
- });
2624
- return __decorateServiceException(exception, body);
2625
- };
2626
- const de_PasswordHistoryPolicyViolationExceptionRes = async (parsedOutput, context) => {
2627
- const body = parsedOutput.body;
2628
- const deserialized = _json(body);
2629
- const exception = new PasswordHistoryPolicyViolationException({
2630
- $metadata: deserializeMetadata(parsedOutput),
2631
- ...deserialized,
2632
- });
2633
- return __decorateServiceException(exception, body);
2634
- };
2635
- const de_PasswordResetRequiredExceptionRes = async (parsedOutput, context) => {
2636
- const body = parsedOutput.body;
2637
- const deserialized = _json(body);
2638
- const exception = new PasswordResetRequiredException({
2639
- $metadata: deserializeMetadata(parsedOutput),
2640
- ...deserialized,
2641
- });
2642
- return __decorateServiceException(exception, body);
2643
- };
2644
- const de_PreconditionNotMetExceptionRes = async (parsedOutput, context) => {
2645
- const body = parsedOutput.body;
2646
- const deserialized = _json(body);
2647
- const exception = new PreconditionNotMetException({
2648
- $metadata: deserializeMetadata(parsedOutput),
2649
- ...deserialized,
2650
- });
2651
- return __decorateServiceException(exception, body);
2652
- };
2653
- const de_RefreshTokenReuseExceptionRes = async (parsedOutput, context) => {
2654
- const body = parsedOutput.body;
2655
- const deserialized = _json(body);
2656
- const exception = new RefreshTokenReuseException({
2657
- $metadata: deserializeMetadata(parsedOutput),
2658
- ...deserialized,
2659
- });
2660
- return __decorateServiceException(exception, body);
2661
- };
2662
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2663
- const body = parsedOutput.body;
2664
- const deserialized = _json(body);
2665
- const exception = new ResourceNotFoundException({
2666
- $metadata: deserializeMetadata(parsedOutput),
2667
- ...deserialized,
2668
- });
2669
- return __decorateServiceException(exception, body);
2670
- };
2671
- const de_ScopeDoesNotExistExceptionRes = async (parsedOutput, context) => {
2672
- const body = parsedOutput.body;
2673
- const deserialized = _json(body);
2674
- const exception = new ScopeDoesNotExistException({
2675
- $metadata: deserializeMetadata(parsedOutput),
2676
- ...deserialized,
2677
- });
2678
- return __decorateServiceException(exception, body);
2679
- };
2680
- const de_SoftwareTokenMFANotFoundExceptionRes = async (parsedOutput, context) => {
2681
- const body = parsedOutput.body;
2682
- const deserialized = _json(body);
2683
- const exception = new SoftwareTokenMFANotFoundException({
2684
- $metadata: deserializeMetadata(parsedOutput),
2685
- ...deserialized,
2686
- });
2687
- return __decorateServiceException(exception, body);
2688
- };
2689
- const de_TermsExistsExceptionRes = async (parsedOutput, context) => {
2690
- const body = parsedOutput.body;
2691
- const deserialized = _json(body);
2692
- const exception = new TermsExistsException({
2693
- $metadata: deserializeMetadata(parsedOutput),
2694
- ...deserialized,
2695
- });
2696
- return __decorateServiceException(exception, body);
2697
- };
2698
- const de_TierChangeNotAllowedExceptionRes = async (parsedOutput, context) => {
2699
- const body = parsedOutput.body;
2700
- const deserialized = _json(body);
2701
- const exception = new TierChangeNotAllowedException({
2702
- $metadata: deserializeMetadata(parsedOutput),
2703
- ...deserialized,
2704
- });
2705
- return __decorateServiceException(exception, body);
2706
- };
2707
- const de_TooManyFailedAttemptsExceptionRes = async (parsedOutput, context) => {
2708
- const body = parsedOutput.body;
2709
- const deserialized = _json(body);
2710
- const exception = new TooManyFailedAttemptsException({
2711
- $metadata: deserializeMetadata(parsedOutput),
2712
- ...deserialized,
2713
- });
2714
- return __decorateServiceException(exception, body);
2715
- };
2716
- const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
2717
- const body = parsedOutput.body;
2718
- const deserialized = _json(body);
2719
- const exception = new TooManyRequestsException({
2720
- $metadata: deserializeMetadata(parsedOutput),
2721
- ...deserialized,
2722
- });
2723
- return __decorateServiceException(exception, body);
2724
- };
2725
- const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
2726
- const body = parsedOutput.body;
2727
- const deserialized = _json(body);
2728
- const exception = new UnauthorizedException({
2729
- $metadata: deserializeMetadata(parsedOutput),
2730
- ...deserialized,
2731
- });
2732
- return __decorateServiceException(exception, body);
2733
- };
2734
- const de_UnexpectedLambdaExceptionRes = async (parsedOutput, context) => {
2735
- const body = parsedOutput.body;
2736
- const deserialized = _json(body);
2737
- const exception = new UnexpectedLambdaException({
2738
- $metadata: deserializeMetadata(parsedOutput),
2739
- ...deserialized,
2740
- });
2741
- return __decorateServiceException(exception, body);
2742
- };
2743
- const de_UnsupportedIdentityProviderExceptionRes = async (parsedOutput, context) => {
2744
- const body = parsedOutput.body;
2745
- const deserialized = _json(body);
2746
- const exception = new UnsupportedIdentityProviderException({
2747
- $metadata: deserializeMetadata(parsedOutput),
2748
- ...deserialized,
2749
- });
2750
- return __decorateServiceException(exception, body);
2751
- };
2752
- const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
2753
- const body = parsedOutput.body;
2754
- const deserialized = _json(body);
2755
- const exception = new UnsupportedOperationException({
2756
- $metadata: deserializeMetadata(parsedOutput),
2757
- ...deserialized,
2758
- });
2759
- return __decorateServiceException(exception, body);
2760
- };
2761
- const de_UnsupportedTokenTypeExceptionRes = async (parsedOutput, context) => {
2762
- const body = parsedOutput.body;
2763
- const deserialized = _json(body);
2764
- const exception = new UnsupportedTokenTypeException({
2765
- $metadata: deserializeMetadata(parsedOutput),
2766
- ...deserialized,
2767
- });
2768
- return __decorateServiceException(exception, body);
2769
- };
2770
- const de_UnsupportedUserStateExceptionRes = async (parsedOutput, context) => {
2771
- const body = parsedOutput.body;
2772
- const deserialized = _json(body);
2773
- const exception = new UnsupportedUserStateException({
2774
- $metadata: deserializeMetadata(parsedOutput),
2775
- ...deserialized,
2776
- });
2777
- return __decorateServiceException(exception, body);
2778
- };
2779
- const de_UserImportInProgressExceptionRes = async (parsedOutput, context) => {
2780
- const body = parsedOutput.body;
2781
- const deserialized = _json(body);
2782
- const exception = new UserImportInProgressException({
2783
- $metadata: deserializeMetadata(parsedOutput),
2784
- ...deserialized,
2785
- });
2786
- return __decorateServiceException(exception, body);
2787
- };
2788
- const de_UserLambdaValidationExceptionRes = async (parsedOutput, context) => {
2789
- const body = parsedOutput.body;
2790
- const deserialized = _json(body);
2791
- const exception = new UserLambdaValidationException({
2792
- $metadata: deserializeMetadata(parsedOutput),
2793
- ...deserialized,
2794
- });
2795
- return __decorateServiceException(exception, body);
2796
- };
2797
- const de_UsernameExistsExceptionRes = async (parsedOutput, context) => {
2798
- const body = parsedOutput.body;
2799
- const deserialized = _json(body);
2800
- const exception = new UsernameExistsException({
2801
- $metadata: deserializeMetadata(parsedOutput),
2802
- ...deserialized,
2803
- });
2804
- return __decorateServiceException(exception, body);
2805
- };
2806
- const de_UserNotConfirmedExceptionRes = async (parsedOutput, context) => {
2807
- const body = parsedOutput.body;
2808
- const deserialized = _json(body);
2809
- const exception = new UserNotConfirmedException({
2810
- $metadata: deserializeMetadata(parsedOutput),
2811
- ...deserialized,
2812
- });
2813
- return __decorateServiceException(exception, body);
2814
- };
2815
- const de_UserNotFoundExceptionRes = async (parsedOutput, context) => {
2816
- const body = parsedOutput.body;
2817
- const deserialized = _json(body);
2818
- const exception = new UserNotFoundException({
2819
- $metadata: deserializeMetadata(parsedOutput),
2820
- ...deserialized,
2821
- });
2822
- return __decorateServiceException(exception, body);
2823
- };
2824
- const de_UserPoolAddOnNotEnabledExceptionRes = async (parsedOutput, context) => {
2825
- const body = parsedOutput.body;
2826
- const deserialized = _json(body);
2827
- const exception = new UserPoolAddOnNotEnabledException({
2828
- $metadata: deserializeMetadata(parsedOutput),
2829
- ...deserialized,
2830
- });
2831
- return __decorateServiceException(exception, body);
2832
- };
2833
- const de_UserPoolTaggingExceptionRes = async (parsedOutput, context) => {
2834
- const body = parsedOutput.body;
2835
- const deserialized = _json(body);
2836
- const exception = new UserPoolTaggingException({
2837
- $metadata: deserializeMetadata(parsedOutput),
2838
- ...deserialized,
2839
- });
2840
- return __decorateServiceException(exception, body);
2841
- };
2842
- const de_WebAuthnChallengeNotFoundExceptionRes = async (parsedOutput, context) => {
2843
- const body = parsedOutput.body;
2844
- const deserialized = _json(body);
2845
- const exception = new WebAuthnChallengeNotFoundException({
2846
- $metadata: deserializeMetadata(parsedOutput),
2847
- ...deserialized,
2848
- });
2849
- return __decorateServiceException(exception, body);
2850
- };
2851
- const de_WebAuthnClientMismatchExceptionRes = async (parsedOutput, context) => {
2852
- const body = parsedOutput.body;
2853
- const deserialized = _json(body);
2854
- const exception = new WebAuthnClientMismatchException({
2855
- $metadata: deserializeMetadata(parsedOutput),
2856
- ...deserialized,
2857
- });
2858
- return __decorateServiceException(exception, body);
2859
- };
2860
- const de_WebAuthnConfigurationMissingExceptionRes = async (parsedOutput, context) => {
2861
- const body = parsedOutput.body;
2862
- const deserialized = _json(body);
2863
- const exception = new WebAuthnConfigurationMissingException({
2864
- $metadata: deserializeMetadata(parsedOutput),
2865
- ...deserialized,
2866
- });
2867
- return __decorateServiceException(exception, body);
2868
- };
2869
- const de_WebAuthnCredentialNotSupportedExceptionRes = async (parsedOutput, context) => {
2870
- const body = parsedOutput.body;
2871
- const deserialized = _json(body);
2872
- const exception = new WebAuthnCredentialNotSupportedException({
2873
- $metadata: deserializeMetadata(parsedOutput),
2874
- ...deserialized,
2875
- });
2876
- return __decorateServiceException(exception, body);
2877
- };
2878
- const de_WebAuthnNotEnabledExceptionRes = async (parsedOutput, context) => {
2879
- const body = parsedOutput.body;
2880
- const deserialized = _json(body);
2881
- const exception = new WebAuthnNotEnabledException({
2882
- $metadata: deserializeMetadata(parsedOutput),
2883
- ...deserialized,
2884
- });
2885
- return __decorateServiceException(exception, body);
2886
- };
2887
- const de_WebAuthnOriginNotAllowedExceptionRes = async (parsedOutput, context) => {
2888
- const body = parsedOutput.body;
2889
- const deserialized = _json(body);
2890
- const exception = new WebAuthnOriginNotAllowedException({
2891
- $metadata: deserializeMetadata(parsedOutput),
2892
- ...deserialized,
2893
- });
2894
- return __decorateServiceException(exception, body);
2895
- };
2896
- const de_WebAuthnRelyingPartyMismatchExceptionRes = async (parsedOutput, context) => {
2897
- const body = parsedOutput.body;
2898
- const deserialized = _json(body);
2899
- const exception = new WebAuthnRelyingPartyMismatchException({
2900
- $metadata: deserializeMetadata(parsedOutput),
2901
- ...deserialized,
2902
- });
2903
- return __decorateServiceException(exception, body);
2904
- };
2905
- const se_AssetListType = (input, context) => {
2906
- return input
2907
- .filter((e) => e != null)
2908
- .map((entry) => {
2909
- return se_AssetType(entry, context);
2910
- });
2911
- };
2912
- const se_AssetType = (input, context) => {
2913
- return take(input, {
2914
- Bytes: context.base64Encoder,
2915
- Category: [],
2916
- ColorMode: [],
2917
- Extension: [],
2918
- ResourceId: [],
2919
- });
2920
- };
2921
- const se_CompleteWebAuthnRegistrationRequest = (input, context) => {
2922
- return take(input, {
2923
- AccessToken: [],
2924
- Credential: (_) => se_Document(_, context),
2925
- });
2926
- };
2927
- const se_CreateManagedLoginBrandingRequest = (input, context) => {
2928
- return take(input, {
2929
- Assets: (_) => se_AssetListType(_, context),
2930
- ClientId: [],
2931
- Settings: (_) => se_Document(_, context),
2932
- UseCognitoProvidedValues: [],
2933
- UserPoolId: [],
2934
- });
2935
- };
2936
- const se_Document = (input, context) => {
2937
- return input;
2938
- };
2939
- const se_SetUICustomizationRequest = (input, context) => {
2940
- return take(input, {
2941
- CSS: [],
2942
- ClientId: [],
2943
- ImageFile: context.base64Encoder,
2944
- UserPoolId: [],
2945
- });
2946
- };
2947
- const se_UpdateManagedLoginBrandingRequest = (input, context) => {
2948
- return take(input, {
2949
- Assets: (_) => se_AssetListType(_, context),
2950
- ManagedLoginBrandingId: [],
2951
- Settings: (_) => se_Document(_, context),
2952
- UseCognitoProvidedValues: [],
2953
- UserPoolId: [],
2954
- });
2955
- };
2956
- const de_AdminCreateUserResponse = (output, context) => {
2957
- return take(output, {
2958
- User: (_) => de_UserType(_, context),
2959
- });
2960
- };
2961
- const de_AdminGetDeviceResponse = (output, context) => {
2962
- return take(output, {
2963
- Device: (_) => de_DeviceType(_, context),
2964
- });
2965
- };
2966
- const de_AdminGetUserResponse = (output, context) => {
2967
- return take(output, {
2968
- Enabled: __expectBoolean,
2969
- MFAOptions: _json,
2970
- PreferredMfaSetting: __expectString,
2971
- UserAttributes: _json,
2972
- UserCreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2973
- UserLastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2974
- UserMFASettingList: _json,
2975
- UserStatus: __expectString,
2976
- Username: __expectString,
2977
- });
2978
- };
2979
- const de_AdminListDevicesResponse = (output, context) => {
2980
- return take(output, {
2981
- Devices: (_) => de_DeviceListType(_, context),
2982
- PaginationToken: __expectString,
2983
- });
2984
- };
2985
- const de_AdminListGroupsForUserResponse = (output, context) => {
2986
- return take(output, {
2987
- Groups: (_) => de_GroupListType(_, context),
2988
- NextToken: __expectString,
2989
- });
2990
- };
2991
- const de_AdminListUserAuthEventsResponse = (output, context) => {
2992
- return take(output, {
2993
- AuthEvents: (_) => de_AuthEventsType(_, context),
2994
- NextToken: __expectString,
2995
- });
2996
- };
2997
- const de_AssetListType = (output, context) => {
2998
- const retVal = (output || [])
2999
- .filter((e) => e != null)
3000
- .map((entry) => {
3001
- return de_AssetType(entry, context);
3002
- });
3003
- return retVal;
3004
- };
3005
- const de_AssetType = (output, context) => {
3006
- return take(output, {
3007
- Bytes: context.base64Decoder,
3008
- Category: __expectString,
3009
- ColorMode: __expectString,
3010
- Extension: __expectString,
3011
- ResourceId: __expectString,
3012
- });
3013
- };
3014
- const de_AuthEventsType = (output, context) => {
3015
- const retVal = (output || [])
3016
- .filter((e) => e != null)
3017
- .map((entry) => {
3018
- return de_AuthEventType(entry, context);
3019
- });
3020
- return retVal;
3021
- };
3022
- const de_AuthEventType = (output, context) => {
3023
- return take(output, {
3024
- ChallengeResponses: _json,
3025
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3026
- EventContextData: _json,
3027
- EventFeedback: (_) => de_EventFeedbackType(_, context),
3028
- EventId: __expectString,
3029
- EventResponse: __expectString,
3030
- EventRisk: _json,
3031
- EventType: __expectString,
3032
- });
3033
- };
3034
- const de_CreateGroupResponse = (output, context) => {
3035
- return take(output, {
3036
- Group: (_) => de_GroupType(_, context),
3037
- });
3038
- };
3039
- const de_CreateIdentityProviderResponse = (output, context) => {
3040
- return take(output, {
3041
- IdentityProvider: (_) => de_IdentityProviderType(_, context),
3042
- });
3043
- };
3044
- const de_CreateManagedLoginBrandingResponse = (output, context) => {
3045
- return take(output, {
3046
- ManagedLoginBranding: (_) => de_ManagedLoginBrandingType(_, context),
3047
- });
3048
- };
3049
- const de_CreateTermsResponse = (output, context) => {
3050
- return take(output, {
3051
- Terms: (_) => de_TermsType(_, context),
3052
- });
3053
- };
3054
- const de_CreateUserImportJobResponse = (output, context) => {
3055
- return take(output, {
3056
- UserImportJob: (_) => de_UserImportJobType(_, context),
3057
- });
3058
- };
3059
- const de_CreateUserPoolClientResponse = (output, context) => {
3060
- return take(output, {
3061
- UserPoolClient: (_) => de_UserPoolClientType(_, context),
3062
- });
3063
- };
3064
- const de_CreateUserPoolResponse = (output, context) => {
3065
- return take(output, {
3066
- UserPool: (_) => de_UserPoolType(_, context),
3067
- });
3068
- };
3069
- const de_DescribeIdentityProviderResponse = (output, context) => {
3070
- return take(output, {
3071
- IdentityProvider: (_) => de_IdentityProviderType(_, context),
3072
- });
3073
- };
3074
- const de_DescribeManagedLoginBrandingByClientResponse = (output, context) => {
3075
- return take(output, {
3076
- ManagedLoginBranding: (_) => de_ManagedLoginBrandingType(_, context),
3077
- });
3078
- };
3079
- const de_DescribeManagedLoginBrandingResponse = (output, context) => {
3080
- return take(output, {
3081
- ManagedLoginBranding: (_) => de_ManagedLoginBrandingType(_, context),
3082
- });
3083
- };
3084
- const de_DescribeRiskConfigurationResponse = (output, context) => {
3085
- return take(output, {
3086
- RiskConfiguration: (_) => de_RiskConfigurationType(_, context),
3087
- });
3088
- };
3089
- const de_DescribeTermsResponse = (output, context) => {
3090
- return take(output, {
3091
- Terms: (_) => de_TermsType(_, context),
3092
- });
3093
- };
3094
- const de_DescribeUserImportJobResponse = (output, context) => {
3095
- return take(output, {
3096
- UserImportJob: (_) => de_UserImportJobType(_, context),
3097
- });
3098
- };
3099
- const de_DescribeUserPoolClientResponse = (output, context) => {
3100
- return take(output, {
3101
- UserPoolClient: (_) => de_UserPoolClientType(_, context),
3102
- });
3103
- };
3104
- const de_DescribeUserPoolResponse = (output, context) => {
3105
- return take(output, {
3106
- UserPool: (_) => de_UserPoolType(_, context),
3107
- });
3108
- };
3109
- const de_DeviceListType = (output, context) => {
3110
- const retVal = (output || [])
3111
- .filter((e) => e != null)
3112
- .map((entry) => {
3113
- return de_DeviceType(entry, context);
3114
- });
3115
- return retVal;
3116
- };
3117
- const de_DeviceType = (output, context) => {
3118
- return take(output, {
3119
- DeviceAttributes: _json,
3120
- DeviceCreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3121
- DeviceKey: __expectString,
3122
- DeviceLastAuthenticatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3123
- DeviceLastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3124
- });
3125
- };
3126
- const de_Document = (output, context) => {
3127
- return output;
3128
- };
3129
- const de_EventFeedbackType = (output, context) => {
3130
- return take(output, {
3131
- FeedbackDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3132
- FeedbackValue: __expectString,
3133
- Provider: __expectString,
3134
- });
3135
- };
3136
- const de_GetDeviceResponse = (output, context) => {
3137
- return take(output, {
3138
- Device: (_) => de_DeviceType(_, context),
3139
- });
3140
- };
3141
- const de_GetGroupResponse = (output, context) => {
3142
- return take(output, {
3143
- Group: (_) => de_GroupType(_, context),
3144
- });
3145
- };
3146
- const de_GetIdentityProviderByIdentifierResponse = (output, context) => {
3147
- return take(output, {
3148
- IdentityProvider: (_) => de_IdentityProviderType(_, context),
3149
- });
3150
- };
3151
- const de_GetUICustomizationResponse = (output, context) => {
3152
- return take(output, {
3153
- UICustomization: (_) => de_UICustomizationType(_, context),
3154
- });
3155
- };
3156
- const de_GroupListType = (output, context) => {
3157
- const retVal = (output || [])
3158
- .filter((e) => e != null)
3159
- .map((entry) => {
3160
- return de_GroupType(entry, context);
3161
- });
3162
- return retVal;
3163
- };
3164
- const de_GroupType = (output, context) => {
3165
- return take(output, {
3166
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3167
- Description: __expectString,
3168
- GroupName: __expectString,
3169
- LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3170
- Precedence: __expectInt32,
3171
- RoleArn: __expectString,
3172
- UserPoolId: __expectString,
3173
- });
3174
- };
3175
- const de_IdentityProviderType = (output, context) => {
3176
- return take(output, {
3177
- AttributeMapping: _json,
3178
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3179
- IdpIdentifiers: _json,
3180
- LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3181
- ProviderDetails: _json,
3182
- ProviderName: __expectString,
3183
- ProviderType: __expectString,
3184
- UserPoolId: __expectString,
3185
- });
3186
- };
3187
- const de_ListDevicesResponse = (output, context) => {
3188
- return take(output, {
3189
- Devices: (_) => de_DeviceListType(_, context),
3190
- PaginationToken: __expectString,
3191
- });
3192
- };
3193
- const de_ListGroupsResponse = (output, context) => {
3194
- return take(output, {
3195
- Groups: (_) => de_GroupListType(_, context),
3196
- NextToken: __expectString,
3197
- });
3198
- };
3199
- const de_ListIdentityProvidersResponse = (output, context) => {
3200
- return take(output, {
3201
- NextToken: __expectString,
3202
- Providers: (_) => de_ProvidersListType(_, context),
3203
- });
3204
- };
3205
- const de_ListTermsResponse = (output, context) => {
3206
- return take(output, {
3207
- NextToken: __expectString,
3208
- Terms: (_) => de_TermsDescriptionListType(_, context),
3209
- });
3210
- };
3211
- const de_ListUserImportJobsResponse = (output, context) => {
3212
- return take(output, {
3213
- PaginationToken: __expectString,
3214
- UserImportJobs: (_) => de_UserImportJobsListType(_, context),
3215
- });
3216
- };
3217
- const de_ListUserPoolsResponse = (output, context) => {
3218
- return take(output, {
3219
- NextToken: __expectString,
3220
- UserPools: (_) => de_UserPoolListType(_, context),
3221
- });
3222
- };
3223
- const de_ListUsersInGroupResponse = (output, context) => {
3224
- return take(output, {
3225
- NextToken: __expectString,
3226
- Users: (_) => de_UsersListType(_, context),
3227
- });
3228
- };
3229
- const de_ListUsersResponse = (output, context) => {
3230
- return take(output, {
3231
- PaginationToken: __expectString,
3232
- Users: (_) => de_UsersListType(_, context),
3233
- });
3234
- };
3235
- const de_ListWebAuthnCredentialsResponse = (output, context) => {
3236
- return take(output, {
3237
- Credentials: (_) => de_WebAuthnCredentialDescriptionListType(_, context),
3238
- NextToken: __expectString,
3239
- });
3240
- };
3241
- const de_ManagedLoginBrandingType = (output, context) => {
3242
- return take(output, {
3243
- Assets: (_) => de_AssetListType(_, context),
3244
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3245
- LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3246
- ManagedLoginBrandingId: __expectString,
3247
- Settings: (_) => de_Document(_, context),
3248
- UseCognitoProvidedValues: __expectBoolean,
3249
- UserPoolId: __expectString,
3250
- });
3251
- };
3252
- const de_ProviderDescription = (output, context) => {
3253
- return take(output, {
3254
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3255
- LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3256
- ProviderName: __expectString,
3257
- ProviderType: __expectString,
3258
- });
3259
- };
3260
- const de_ProvidersListType = (output, context) => {
3261
- const retVal = (output || [])
3262
- .filter((e) => e != null)
3263
- .map((entry) => {
3264
- return de_ProviderDescription(entry, context);
3265
- });
3266
- return retVal;
3267
- };
3268
- const de_RiskConfigurationType = (output, context) => {
3269
- return take(output, {
3270
- AccountTakeoverRiskConfiguration: _json,
3271
- ClientId: __expectString,
3272
- CompromisedCredentialsRiskConfiguration: _json,
3273
- LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3274
- RiskExceptionConfiguration: _json,
3275
- UserPoolId: __expectString,
3276
- });
3277
- };
3278
- const de_SetRiskConfigurationResponse = (output, context) => {
3279
- return take(output, {
3280
- RiskConfiguration: (_) => de_RiskConfigurationType(_, context),
3281
- });
3282
- };
3283
- const de_SetUICustomizationResponse = (output, context) => {
3284
- return take(output, {
3285
- UICustomization: (_) => de_UICustomizationType(_, context),
3286
- });
3287
- };
3288
- const de_StartUserImportJobResponse = (output, context) => {
3289
- return take(output, {
3290
- UserImportJob: (_) => de_UserImportJobType(_, context),
3291
- });
3292
- };
3293
- const de_StartWebAuthnRegistrationResponse = (output, context) => {
3294
- return take(output, {
3295
- CredentialCreationOptions: (_) => de_Document(_, context),
3296
- });
3297
- };
3298
- const de_StopUserImportJobResponse = (output, context) => {
3299
- return take(output, {
3300
- UserImportJob: (_) => de_UserImportJobType(_, context),
3301
- });
3302
- };
3303
- const de_TermsDescriptionListType = (output, context) => {
3304
- const retVal = (output || [])
3305
- .filter((e) => e != null)
3306
- .map((entry) => {
3307
- return de_TermsDescriptionType(entry, context);
3308
- });
3309
- return retVal;
3310
- };
3311
- const de_TermsDescriptionType = (output, context) => {
3312
- return take(output, {
3313
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3314
- Enforcement: __expectString,
3315
- LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3316
- TermsId: __expectString,
3317
- TermsName: __expectString,
3318
- });
3319
- };
3320
- const de_TermsType = (output, context) => {
3321
- return take(output, {
3322
- ClientId: __expectString,
3323
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3324
- Enforcement: __expectString,
3325
- LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3326
- Links: _json,
3327
- TermsId: __expectString,
3328
- TermsName: __expectString,
3329
- TermsSource: __expectString,
3330
- UserPoolId: __expectString,
3331
- });
3332
- };
3333
- const de_UICustomizationType = (output, context) => {
3334
- return take(output, {
3335
- CSS: __expectString,
3336
- CSSVersion: __expectString,
3337
- ClientId: __expectString,
3338
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3339
- ImageUrl: __expectString,
3340
- LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3341
- UserPoolId: __expectString,
3342
- });
3343
- };
3344
- const de_UpdateGroupResponse = (output, context) => {
3345
- return take(output, {
3346
- Group: (_) => de_GroupType(_, context),
3347
- });
3348
- };
3349
- const de_UpdateIdentityProviderResponse = (output, context) => {
3350
- return take(output, {
3351
- IdentityProvider: (_) => de_IdentityProviderType(_, context),
3352
- });
3353
- };
3354
- const de_UpdateManagedLoginBrandingResponse = (output, context) => {
3355
- return take(output, {
3356
- ManagedLoginBranding: (_) => de_ManagedLoginBrandingType(_, context),
3357
- });
3358
- };
3359
- const de_UpdateTermsResponse = (output, context) => {
3360
- return take(output, {
3361
- Terms: (_) => de_TermsType(_, context),
3362
- });
3363
- };
3364
- const de_UpdateUserPoolClientResponse = (output, context) => {
3365
- return take(output, {
3366
- UserPoolClient: (_) => de_UserPoolClientType(_, context),
3367
- });
3368
- };
3369
- const de_UserImportJobsListType = (output, context) => {
3370
- const retVal = (output || [])
3371
- .filter((e) => e != null)
3372
- .map((entry) => {
3373
- return de_UserImportJobType(entry, context);
3374
- });
3375
- return retVal;
3376
- };
3377
- const de_UserImportJobType = (output, context) => {
3378
- return take(output, {
3379
- CloudWatchLogsRoleArn: __expectString,
3380
- CompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3381
- CompletionMessage: __expectString,
3382
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3383
- FailedUsers: __expectLong,
3384
- ImportedUsers: __expectLong,
3385
- JobId: __expectString,
3386
- JobName: __expectString,
3387
- PreSignedUrl: __expectString,
3388
- SkippedUsers: __expectLong,
3389
- StartDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3390
- Status: __expectString,
3391
- UserPoolId: __expectString,
3392
- });
3393
- };
3394
- const de_UserPoolClientType = (output, context) => {
3395
- return take(output, {
3396
- AccessTokenValidity: __expectInt32,
3397
- AllowedOAuthFlows: _json,
3398
- AllowedOAuthFlowsUserPoolClient: __expectBoolean,
3399
- AllowedOAuthScopes: _json,
3400
- AnalyticsConfiguration: _json,
3401
- AuthSessionValidity: __expectInt32,
3402
- CallbackURLs: _json,
3403
- ClientId: __expectString,
3404
- ClientName: __expectString,
3405
- ClientSecret: __expectString,
3406
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3407
- DefaultRedirectURI: __expectString,
3408
- EnablePropagateAdditionalUserContextData: __expectBoolean,
3409
- EnableTokenRevocation: __expectBoolean,
3410
- ExplicitAuthFlows: _json,
3411
- IdTokenValidity: __expectInt32,
3412
- LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3413
- LogoutURLs: _json,
3414
- PreventUserExistenceErrors: __expectString,
3415
- ReadAttributes: _json,
3416
- RefreshTokenRotation: _json,
3417
- RefreshTokenValidity: __expectInt32,
3418
- SupportedIdentityProviders: _json,
3419
- TokenValidityUnits: _json,
3420
- UserPoolId: __expectString,
3421
- WriteAttributes: _json,
3422
- });
3423
- };
3424
- const de_UserPoolDescriptionType = (output, context) => {
3425
- return take(output, {
3426
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3427
- Id: __expectString,
3428
- LambdaConfig: _json,
3429
- LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3430
- Name: __expectString,
3431
- Status: __expectString,
3432
- });
3433
- };
3434
- const de_UserPoolListType = (output, context) => {
3435
- const retVal = (output || [])
3436
- .filter((e) => e != null)
3437
- .map((entry) => {
3438
- return de_UserPoolDescriptionType(entry, context);
3439
- });
3440
- return retVal;
3441
- };
3442
- const de_UserPoolType = (output, context) => {
3443
- return take(output, {
3444
- AccountRecoverySetting: _json,
3445
- AdminCreateUserConfig: _json,
3446
- AliasAttributes: _json,
3447
- Arn: __expectString,
3448
- AutoVerifiedAttributes: _json,
3449
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3450
- CustomDomain: __expectString,
3451
- DeletionProtection: __expectString,
3452
- DeviceConfiguration: _json,
3453
- Domain: __expectString,
3454
- EmailConfiguration: _json,
3455
- EmailConfigurationFailure: __expectString,
3456
- EmailVerificationMessage: __expectString,
3457
- EmailVerificationSubject: __expectString,
3458
- EstimatedNumberOfUsers: __expectInt32,
3459
- Id: __expectString,
3460
- LambdaConfig: _json,
3461
- LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3462
- MfaConfiguration: __expectString,
3463
- Name: __expectString,
3464
- Policies: _json,
3465
- SchemaAttributes: _json,
3466
- SmsAuthenticationMessage: __expectString,
3467
- SmsConfiguration: _json,
3468
- SmsConfigurationFailure: __expectString,
3469
- SmsVerificationMessage: __expectString,
3470
- Status: __expectString,
3471
- UserAttributeUpdateSettings: _json,
3472
- UserPoolAddOns: _json,
3473
- UserPoolTags: _json,
3474
- UserPoolTier: __expectString,
3475
- UsernameAttributes: _json,
3476
- UsernameConfiguration: _json,
3477
- VerificationMessageTemplate: _json,
3478
- });
3479
- };
3480
- const de_UsersListType = (output, context) => {
3481
- const retVal = (output || [])
3482
- .filter((e) => e != null)
3483
- .map((entry) => {
3484
- return de_UserType(entry, context);
3485
- });
3486
- return retVal;
3487
- };
3488
- const de_UserType = (output, context) => {
3489
- return take(output, {
3490
- Attributes: _json,
3491
- Enabled: __expectBoolean,
3492
- MFAOptions: _json,
3493
- UserCreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3494
- UserLastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3495
- UserStatus: __expectString,
3496
- Username: __expectString,
3497
- });
3498
- };
3499
- const de_WebAuthnCredentialDescription = (output, context) => {
3500
- return take(output, {
3501
- AuthenticatorAttachment: __expectString,
3502
- AuthenticatorTransports: _json,
3503
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3504
- CredentialId: __expectString,
3505
- FriendlyCredentialName: __expectString,
3506
- RelyingPartyId: __expectString,
3507
- });
3508
- };
3509
- const de_WebAuthnCredentialDescriptionListType = (output, context) => {
3510
- const retVal = (output || [])
3511
- .filter((e) => e != null)
3512
- .map((entry) => {
3513
- return de_WebAuthnCredentialDescription(entry, context);
3514
- });
3515
- return retVal;
3516
- };
3517
- const deserializeMetadata = (output) => ({
3518
- httpStatusCode: output.statusCode,
3519
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3520
- extendedRequestId: output.headers["x-amz-id-2"],
3521
- cfId: output.headers["x-amz-cf-id"],
3522
- });
3523
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3524
- const throwDefaultError = withBaseException(__BaseException);
3525
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3526
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3527
- const contents = {
3528
- protocol,
3529
- hostname,
3530
- port,
3531
- method: "POST",
3532
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
3533
- headers,
3534
- };
3535
- if (resolvedHostname !== undefined) {
3536
- contents.hostname = resolvedHostname;
3537
- }
3538
- if (body !== undefined) {
3539
- contents.body = body;
3540
- }
3541
- return new __HttpRequest(contents);
3542
- };
3543
- function sharedHeaders(operation) {
3544
- return {
3545
- "content-type": "application/x-amz-json-1.1",
3546
- "x-amz-target": `AWSCognitoIdentityProviderService.${operation}`,
3547
- };
3548
- }