@aws-sdk/client-cognito-identity-provider 3.309.0 → 3.312.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_1.js +107 -404
- package/dist-es/protocols/Aws_json1_1.js +107 -404
- package/package.json +35 -35
|
@@ -4,910 +4,607 @@ import { CognitoIdentityProviderServiceException as __BaseException } from "../m
|
|
|
4
4
|
import { AliasExistsException, CodeDeliveryFailureException, CodeMismatchException, ConcurrentModificationException, DuplicateProviderException, ExpiredCodeException, ForbiddenException, GroupExistsException, InternalErrorException, InvalidEmailRoleAccessPolicyException, InvalidLambdaResponseException, InvalidOAuthFlowException, InvalidParameterException, InvalidPasswordException, InvalidSmsRoleAccessPolicyException, InvalidSmsRoleTrustRelationshipException, InvalidUserPoolConfigurationException, LimitExceededException, MFAMethodNotFoundException, NotAuthorizedException, PasswordResetRequiredException, PreconditionNotMetException, ResourceNotFoundException, ScopeDoesNotExistException, SoftwareTokenMFANotFoundException, TooManyFailedAttemptsException, TooManyRequestsException, UnauthorizedException, UnexpectedLambdaException, UnsupportedIdentityProviderException, UnsupportedOperationException, UnsupportedTokenTypeException, UnsupportedUserStateException, UserImportInProgressException, UserLambdaValidationException, UsernameExistsException, UserNotConfirmedException, UserNotFoundException, UserPoolAddOnNotEnabledException, UserPoolTaggingException, } from "../models/models_0";
|
|
5
5
|
import { EnableSoftwareTokenMFAException, } from "../models/models_1";
|
|
6
6
|
export const se_AddCustomAttributesCommand = async (input, context) => {
|
|
7
|
-
const headers =
|
|
8
|
-
"content-type": "application/x-amz-json-1.1",
|
|
9
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AddCustomAttributes",
|
|
10
|
-
};
|
|
7
|
+
const headers = sharedHeaders("AddCustomAttributes");
|
|
11
8
|
let body;
|
|
12
9
|
body = JSON.stringify(se_AddCustomAttributesRequest(input, context));
|
|
13
10
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
11
|
};
|
|
15
12
|
export const se_AdminAddUserToGroupCommand = async (input, context) => {
|
|
16
|
-
const headers =
|
|
17
|
-
"content-type": "application/x-amz-json-1.1",
|
|
18
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminAddUserToGroup",
|
|
19
|
-
};
|
|
13
|
+
const headers = sharedHeaders("AdminAddUserToGroup");
|
|
20
14
|
let body;
|
|
21
15
|
body = JSON.stringify(se_AdminAddUserToGroupRequest(input, context));
|
|
22
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
17
|
};
|
|
24
18
|
export const se_AdminConfirmSignUpCommand = async (input, context) => {
|
|
25
|
-
const headers =
|
|
26
|
-
"content-type": "application/x-amz-json-1.1",
|
|
27
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminConfirmSignUp",
|
|
28
|
-
};
|
|
19
|
+
const headers = sharedHeaders("AdminConfirmSignUp");
|
|
29
20
|
let body;
|
|
30
21
|
body = JSON.stringify(se_AdminConfirmSignUpRequest(input, context));
|
|
31
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
23
|
};
|
|
33
24
|
export const se_AdminCreateUserCommand = async (input, context) => {
|
|
34
|
-
const headers =
|
|
35
|
-
"content-type": "application/x-amz-json-1.1",
|
|
36
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminCreateUser",
|
|
37
|
-
};
|
|
25
|
+
const headers = sharedHeaders("AdminCreateUser");
|
|
38
26
|
let body;
|
|
39
27
|
body = JSON.stringify(se_AdminCreateUserRequest(input, context));
|
|
40
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
29
|
};
|
|
42
30
|
export const se_AdminDeleteUserCommand = async (input, context) => {
|
|
43
|
-
const headers =
|
|
44
|
-
"content-type": "application/x-amz-json-1.1",
|
|
45
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminDeleteUser",
|
|
46
|
-
};
|
|
31
|
+
const headers = sharedHeaders("AdminDeleteUser");
|
|
47
32
|
let body;
|
|
48
33
|
body = JSON.stringify(se_AdminDeleteUserRequest(input, context));
|
|
49
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
35
|
};
|
|
51
36
|
export const se_AdminDeleteUserAttributesCommand = async (input, context) => {
|
|
52
|
-
const headers =
|
|
53
|
-
"content-type": "application/x-amz-json-1.1",
|
|
54
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminDeleteUserAttributes",
|
|
55
|
-
};
|
|
37
|
+
const headers = sharedHeaders("AdminDeleteUserAttributes");
|
|
56
38
|
let body;
|
|
57
39
|
body = JSON.stringify(se_AdminDeleteUserAttributesRequest(input, context));
|
|
58
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
41
|
};
|
|
60
42
|
export const se_AdminDisableProviderForUserCommand = async (input, context) => {
|
|
61
|
-
const headers =
|
|
62
|
-
"content-type": "application/x-amz-json-1.1",
|
|
63
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminDisableProviderForUser",
|
|
64
|
-
};
|
|
43
|
+
const headers = sharedHeaders("AdminDisableProviderForUser");
|
|
65
44
|
let body;
|
|
66
45
|
body = JSON.stringify(se_AdminDisableProviderForUserRequest(input, context));
|
|
67
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
47
|
};
|
|
69
48
|
export const se_AdminDisableUserCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.1",
|
|
72
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminDisableUser",
|
|
73
|
-
};
|
|
49
|
+
const headers = sharedHeaders("AdminDisableUser");
|
|
74
50
|
let body;
|
|
75
51
|
body = JSON.stringify(se_AdminDisableUserRequest(input, context));
|
|
76
52
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
53
|
};
|
|
78
54
|
export const se_AdminEnableUserCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.1",
|
|
81
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminEnableUser",
|
|
82
|
-
};
|
|
55
|
+
const headers = sharedHeaders("AdminEnableUser");
|
|
83
56
|
let body;
|
|
84
57
|
body = JSON.stringify(se_AdminEnableUserRequest(input, context));
|
|
85
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
59
|
};
|
|
87
60
|
export const se_AdminForgetDeviceCommand = async (input, context) => {
|
|
88
|
-
const headers =
|
|
89
|
-
"content-type": "application/x-amz-json-1.1",
|
|
90
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminForgetDevice",
|
|
91
|
-
};
|
|
61
|
+
const headers = sharedHeaders("AdminForgetDevice");
|
|
92
62
|
let body;
|
|
93
63
|
body = JSON.stringify(se_AdminForgetDeviceRequest(input, context));
|
|
94
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
65
|
};
|
|
96
66
|
export const se_AdminGetDeviceCommand = async (input, context) => {
|
|
97
|
-
const headers =
|
|
98
|
-
"content-type": "application/x-amz-json-1.1",
|
|
99
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminGetDevice",
|
|
100
|
-
};
|
|
67
|
+
const headers = sharedHeaders("AdminGetDevice");
|
|
101
68
|
let body;
|
|
102
69
|
body = JSON.stringify(se_AdminGetDeviceRequest(input, context));
|
|
103
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
71
|
};
|
|
105
72
|
export const se_AdminGetUserCommand = async (input, context) => {
|
|
106
|
-
const headers =
|
|
107
|
-
"content-type": "application/x-amz-json-1.1",
|
|
108
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminGetUser",
|
|
109
|
-
};
|
|
73
|
+
const headers = sharedHeaders("AdminGetUser");
|
|
110
74
|
let body;
|
|
111
75
|
body = JSON.stringify(se_AdminGetUserRequest(input, context));
|
|
112
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
77
|
};
|
|
114
78
|
export const se_AdminInitiateAuthCommand = async (input, context) => {
|
|
115
|
-
const headers =
|
|
116
|
-
"content-type": "application/x-amz-json-1.1",
|
|
117
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminInitiateAuth",
|
|
118
|
-
};
|
|
79
|
+
const headers = sharedHeaders("AdminInitiateAuth");
|
|
119
80
|
let body;
|
|
120
81
|
body = JSON.stringify(se_AdminInitiateAuthRequest(input, context));
|
|
121
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
83
|
};
|
|
123
84
|
export const se_AdminLinkProviderForUserCommand = async (input, context) => {
|
|
124
|
-
const headers =
|
|
125
|
-
"content-type": "application/x-amz-json-1.1",
|
|
126
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminLinkProviderForUser",
|
|
127
|
-
};
|
|
85
|
+
const headers = sharedHeaders("AdminLinkProviderForUser");
|
|
128
86
|
let body;
|
|
129
87
|
body = JSON.stringify(se_AdminLinkProviderForUserRequest(input, context));
|
|
130
88
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
89
|
};
|
|
132
90
|
export const se_AdminListDevicesCommand = async (input, context) => {
|
|
133
|
-
const headers =
|
|
134
|
-
"content-type": "application/x-amz-json-1.1",
|
|
135
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminListDevices",
|
|
136
|
-
};
|
|
91
|
+
const headers = sharedHeaders("AdminListDevices");
|
|
137
92
|
let body;
|
|
138
93
|
body = JSON.stringify(se_AdminListDevicesRequest(input, context));
|
|
139
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
95
|
};
|
|
141
96
|
export const se_AdminListGroupsForUserCommand = async (input, context) => {
|
|
142
|
-
const headers =
|
|
143
|
-
"content-type": "application/x-amz-json-1.1",
|
|
144
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminListGroupsForUser",
|
|
145
|
-
};
|
|
97
|
+
const headers = sharedHeaders("AdminListGroupsForUser");
|
|
146
98
|
let body;
|
|
147
99
|
body = JSON.stringify(se_AdminListGroupsForUserRequest(input, context));
|
|
148
100
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
101
|
};
|
|
150
102
|
export const se_AdminListUserAuthEventsCommand = async (input, context) => {
|
|
151
|
-
const headers =
|
|
152
|
-
"content-type": "application/x-amz-json-1.1",
|
|
153
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminListUserAuthEvents",
|
|
154
|
-
};
|
|
103
|
+
const headers = sharedHeaders("AdminListUserAuthEvents");
|
|
155
104
|
let body;
|
|
156
105
|
body = JSON.stringify(se_AdminListUserAuthEventsRequest(input, context));
|
|
157
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
107
|
};
|
|
159
108
|
export const se_AdminRemoveUserFromGroupCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.1",
|
|
162
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminRemoveUserFromGroup",
|
|
163
|
-
};
|
|
109
|
+
const headers = sharedHeaders("AdminRemoveUserFromGroup");
|
|
164
110
|
let body;
|
|
165
111
|
body = JSON.stringify(se_AdminRemoveUserFromGroupRequest(input, context));
|
|
166
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
113
|
};
|
|
168
114
|
export const se_AdminResetUserPasswordCommand = async (input, context) => {
|
|
169
|
-
const headers =
|
|
170
|
-
"content-type": "application/x-amz-json-1.1",
|
|
171
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminResetUserPassword",
|
|
172
|
-
};
|
|
115
|
+
const headers = sharedHeaders("AdminResetUserPassword");
|
|
173
116
|
let body;
|
|
174
117
|
body = JSON.stringify(se_AdminResetUserPasswordRequest(input, context));
|
|
175
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
119
|
};
|
|
177
120
|
export const se_AdminRespondToAuthChallengeCommand = async (input, context) => {
|
|
178
|
-
const headers =
|
|
179
|
-
"content-type": "application/x-amz-json-1.1",
|
|
180
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminRespondToAuthChallenge",
|
|
181
|
-
};
|
|
121
|
+
const headers = sharedHeaders("AdminRespondToAuthChallenge");
|
|
182
122
|
let body;
|
|
183
123
|
body = JSON.stringify(se_AdminRespondToAuthChallengeRequest(input, context));
|
|
184
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
125
|
};
|
|
186
126
|
export const se_AdminSetUserMFAPreferenceCommand = async (input, context) => {
|
|
187
|
-
const headers =
|
|
188
|
-
"content-type": "application/x-amz-json-1.1",
|
|
189
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminSetUserMFAPreference",
|
|
190
|
-
};
|
|
127
|
+
const headers = sharedHeaders("AdminSetUserMFAPreference");
|
|
191
128
|
let body;
|
|
192
129
|
body = JSON.stringify(se_AdminSetUserMFAPreferenceRequest(input, context));
|
|
193
130
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
194
131
|
};
|
|
195
132
|
export const se_AdminSetUserPasswordCommand = async (input, context) => {
|
|
196
|
-
const headers =
|
|
197
|
-
"content-type": "application/x-amz-json-1.1",
|
|
198
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminSetUserPassword",
|
|
199
|
-
};
|
|
133
|
+
const headers = sharedHeaders("AdminSetUserPassword");
|
|
200
134
|
let body;
|
|
201
135
|
body = JSON.stringify(se_AdminSetUserPasswordRequest(input, context));
|
|
202
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
137
|
};
|
|
204
138
|
export const se_AdminSetUserSettingsCommand = async (input, context) => {
|
|
205
|
-
const headers =
|
|
206
|
-
"content-type": "application/x-amz-json-1.1",
|
|
207
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminSetUserSettings",
|
|
208
|
-
};
|
|
139
|
+
const headers = sharedHeaders("AdminSetUserSettings");
|
|
209
140
|
let body;
|
|
210
141
|
body = JSON.stringify(se_AdminSetUserSettingsRequest(input, context));
|
|
211
142
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
143
|
};
|
|
213
144
|
export const se_AdminUpdateAuthEventFeedbackCommand = async (input, context) => {
|
|
214
|
-
const headers =
|
|
215
|
-
"content-type": "application/x-amz-json-1.1",
|
|
216
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminUpdateAuthEventFeedback",
|
|
217
|
-
};
|
|
145
|
+
const headers = sharedHeaders("AdminUpdateAuthEventFeedback");
|
|
218
146
|
let body;
|
|
219
147
|
body = JSON.stringify(se_AdminUpdateAuthEventFeedbackRequest(input, context));
|
|
220
148
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
149
|
};
|
|
222
150
|
export const se_AdminUpdateDeviceStatusCommand = async (input, context) => {
|
|
223
|
-
const headers =
|
|
224
|
-
"content-type": "application/x-amz-json-1.1",
|
|
225
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminUpdateDeviceStatus",
|
|
226
|
-
};
|
|
151
|
+
const headers = sharedHeaders("AdminUpdateDeviceStatus");
|
|
227
152
|
let body;
|
|
228
153
|
body = JSON.stringify(se_AdminUpdateDeviceStatusRequest(input, context));
|
|
229
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
230
155
|
};
|
|
231
156
|
export const se_AdminUpdateUserAttributesCommand = async (input, context) => {
|
|
232
|
-
const headers =
|
|
233
|
-
"content-type": "application/x-amz-json-1.1",
|
|
234
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminUpdateUserAttributes",
|
|
235
|
-
};
|
|
157
|
+
const headers = sharedHeaders("AdminUpdateUserAttributes");
|
|
236
158
|
let body;
|
|
237
159
|
body = JSON.stringify(se_AdminUpdateUserAttributesRequest(input, context));
|
|
238
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
161
|
};
|
|
240
162
|
export const se_AdminUserGlobalSignOutCommand = async (input, context) => {
|
|
241
|
-
const headers =
|
|
242
|
-
"content-type": "application/x-amz-json-1.1",
|
|
243
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AdminUserGlobalSignOut",
|
|
244
|
-
};
|
|
163
|
+
const headers = sharedHeaders("AdminUserGlobalSignOut");
|
|
245
164
|
let body;
|
|
246
165
|
body = JSON.stringify(se_AdminUserGlobalSignOutRequest(input, context));
|
|
247
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
167
|
};
|
|
249
168
|
export const se_AssociateSoftwareTokenCommand = async (input, context) => {
|
|
250
|
-
const headers =
|
|
251
|
-
"content-type": "application/x-amz-json-1.1",
|
|
252
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.AssociateSoftwareToken",
|
|
253
|
-
};
|
|
169
|
+
const headers = sharedHeaders("AssociateSoftwareToken");
|
|
254
170
|
let body;
|
|
255
171
|
body = JSON.stringify(se_AssociateSoftwareTokenRequest(input, context));
|
|
256
172
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
173
|
};
|
|
258
174
|
export const se_ChangePasswordCommand = async (input, context) => {
|
|
259
|
-
const headers =
|
|
260
|
-
"content-type": "application/x-amz-json-1.1",
|
|
261
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ChangePassword",
|
|
262
|
-
};
|
|
175
|
+
const headers = sharedHeaders("ChangePassword");
|
|
263
176
|
let body;
|
|
264
177
|
body = JSON.stringify(se_ChangePasswordRequest(input, context));
|
|
265
178
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
266
179
|
};
|
|
267
180
|
export const se_ConfirmDeviceCommand = async (input, context) => {
|
|
268
|
-
const headers =
|
|
269
|
-
"content-type": "application/x-amz-json-1.1",
|
|
270
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ConfirmDevice",
|
|
271
|
-
};
|
|
181
|
+
const headers = sharedHeaders("ConfirmDevice");
|
|
272
182
|
let body;
|
|
273
183
|
body = JSON.stringify(se_ConfirmDeviceRequest(input, context));
|
|
274
184
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
185
|
};
|
|
276
186
|
export const se_ConfirmForgotPasswordCommand = async (input, context) => {
|
|
277
|
-
const headers =
|
|
278
|
-
"content-type": "application/x-amz-json-1.1",
|
|
279
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ConfirmForgotPassword",
|
|
280
|
-
};
|
|
187
|
+
const headers = sharedHeaders("ConfirmForgotPassword");
|
|
281
188
|
let body;
|
|
282
189
|
body = JSON.stringify(se_ConfirmForgotPasswordRequest(input, context));
|
|
283
190
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
284
191
|
};
|
|
285
192
|
export const se_ConfirmSignUpCommand = async (input, context) => {
|
|
286
|
-
const headers =
|
|
287
|
-
"content-type": "application/x-amz-json-1.1",
|
|
288
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ConfirmSignUp",
|
|
289
|
-
};
|
|
193
|
+
const headers = sharedHeaders("ConfirmSignUp");
|
|
290
194
|
let body;
|
|
291
195
|
body = JSON.stringify(se_ConfirmSignUpRequest(input, context));
|
|
292
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
197
|
};
|
|
294
198
|
export const se_CreateGroupCommand = async (input, context) => {
|
|
295
|
-
const headers =
|
|
296
|
-
"content-type": "application/x-amz-json-1.1",
|
|
297
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.CreateGroup",
|
|
298
|
-
};
|
|
199
|
+
const headers = sharedHeaders("CreateGroup");
|
|
299
200
|
let body;
|
|
300
201
|
body = JSON.stringify(se_CreateGroupRequest(input, context));
|
|
301
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
302
203
|
};
|
|
303
204
|
export const se_CreateIdentityProviderCommand = async (input, context) => {
|
|
304
|
-
const headers =
|
|
305
|
-
"content-type": "application/x-amz-json-1.1",
|
|
306
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.CreateIdentityProvider",
|
|
307
|
-
};
|
|
205
|
+
const headers = sharedHeaders("CreateIdentityProvider");
|
|
308
206
|
let body;
|
|
309
207
|
body = JSON.stringify(se_CreateIdentityProviderRequest(input, context));
|
|
310
208
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
311
209
|
};
|
|
312
210
|
export const se_CreateResourceServerCommand = async (input, context) => {
|
|
313
|
-
const headers =
|
|
314
|
-
"content-type": "application/x-amz-json-1.1",
|
|
315
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.CreateResourceServer",
|
|
316
|
-
};
|
|
211
|
+
const headers = sharedHeaders("CreateResourceServer");
|
|
317
212
|
let body;
|
|
318
213
|
body = JSON.stringify(se_CreateResourceServerRequest(input, context));
|
|
319
214
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
320
215
|
};
|
|
321
216
|
export const se_CreateUserImportJobCommand = async (input, context) => {
|
|
322
|
-
const headers =
|
|
323
|
-
"content-type": "application/x-amz-json-1.1",
|
|
324
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.CreateUserImportJob",
|
|
325
|
-
};
|
|
217
|
+
const headers = sharedHeaders("CreateUserImportJob");
|
|
326
218
|
let body;
|
|
327
219
|
body = JSON.stringify(se_CreateUserImportJobRequest(input, context));
|
|
328
220
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
221
|
};
|
|
330
222
|
export const se_CreateUserPoolCommand = async (input, context) => {
|
|
331
|
-
const headers =
|
|
332
|
-
"content-type": "application/x-amz-json-1.1",
|
|
333
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.CreateUserPool",
|
|
334
|
-
};
|
|
223
|
+
const headers = sharedHeaders("CreateUserPool");
|
|
335
224
|
let body;
|
|
336
225
|
body = JSON.stringify(se_CreateUserPoolRequest(input, context));
|
|
337
226
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
227
|
};
|
|
339
228
|
export const se_CreateUserPoolClientCommand = async (input, context) => {
|
|
340
|
-
const headers =
|
|
341
|
-
"content-type": "application/x-amz-json-1.1",
|
|
342
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.CreateUserPoolClient",
|
|
343
|
-
};
|
|
229
|
+
const headers = sharedHeaders("CreateUserPoolClient");
|
|
344
230
|
let body;
|
|
345
231
|
body = JSON.stringify(se_CreateUserPoolClientRequest(input, context));
|
|
346
232
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
233
|
};
|
|
348
234
|
export const se_CreateUserPoolDomainCommand = async (input, context) => {
|
|
349
|
-
const headers =
|
|
350
|
-
"content-type": "application/x-amz-json-1.1",
|
|
351
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.CreateUserPoolDomain",
|
|
352
|
-
};
|
|
235
|
+
const headers = sharedHeaders("CreateUserPoolDomain");
|
|
353
236
|
let body;
|
|
354
237
|
body = JSON.stringify(se_CreateUserPoolDomainRequest(input, context));
|
|
355
238
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
356
239
|
};
|
|
357
240
|
export const se_DeleteGroupCommand = async (input, context) => {
|
|
358
|
-
const headers =
|
|
359
|
-
"content-type": "application/x-amz-json-1.1",
|
|
360
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.DeleteGroup",
|
|
361
|
-
};
|
|
241
|
+
const headers = sharedHeaders("DeleteGroup");
|
|
362
242
|
let body;
|
|
363
243
|
body = JSON.stringify(se_DeleteGroupRequest(input, context));
|
|
364
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
365
245
|
};
|
|
366
246
|
export const se_DeleteIdentityProviderCommand = async (input, context) => {
|
|
367
|
-
const headers =
|
|
368
|
-
"content-type": "application/x-amz-json-1.1",
|
|
369
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.DeleteIdentityProvider",
|
|
370
|
-
};
|
|
247
|
+
const headers = sharedHeaders("DeleteIdentityProvider");
|
|
371
248
|
let body;
|
|
372
249
|
body = JSON.stringify(se_DeleteIdentityProviderRequest(input, context));
|
|
373
250
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
374
251
|
};
|
|
375
252
|
export const se_DeleteResourceServerCommand = async (input, context) => {
|
|
376
|
-
const headers =
|
|
377
|
-
"content-type": "application/x-amz-json-1.1",
|
|
378
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.DeleteResourceServer",
|
|
379
|
-
};
|
|
253
|
+
const headers = sharedHeaders("DeleteResourceServer");
|
|
380
254
|
let body;
|
|
381
255
|
body = JSON.stringify(se_DeleteResourceServerRequest(input, context));
|
|
382
256
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
383
257
|
};
|
|
384
258
|
export const se_DeleteUserCommand = async (input, context) => {
|
|
385
|
-
const headers =
|
|
386
|
-
"content-type": "application/x-amz-json-1.1",
|
|
387
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.DeleteUser",
|
|
388
|
-
};
|
|
259
|
+
const headers = sharedHeaders("DeleteUser");
|
|
389
260
|
let body;
|
|
390
261
|
body = JSON.stringify(se_DeleteUserRequest(input, context));
|
|
391
262
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
392
263
|
};
|
|
393
264
|
export const se_DeleteUserAttributesCommand = async (input, context) => {
|
|
394
|
-
const headers =
|
|
395
|
-
"content-type": "application/x-amz-json-1.1",
|
|
396
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.DeleteUserAttributes",
|
|
397
|
-
};
|
|
265
|
+
const headers = sharedHeaders("DeleteUserAttributes");
|
|
398
266
|
let body;
|
|
399
267
|
body = JSON.stringify(se_DeleteUserAttributesRequest(input, context));
|
|
400
268
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
269
|
};
|
|
402
270
|
export const se_DeleteUserPoolCommand = async (input, context) => {
|
|
403
|
-
const headers =
|
|
404
|
-
"content-type": "application/x-amz-json-1.1",
|
|
405
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.DeleteUserPool",
|
|
406
|
-
};
|
|
271
|
+
const headers = sharedHeaders("DeleteUserPool");
|
|
407
272
|
let body;
|
|
408
273
|
body = JSON.stringify(se_DeleteUserPoolRequest(input, context));
|
|
409
274
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
410
275
|
};
|
|
411
276
|
export const se_DeleteUserPoolClientCommand = async (input, context) => {
|
|
412
|
-
const headers =
|
|
413
|
-
"content-type": "application/x-amz-json-1.1",
|
|
414
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.DeleteUserPoolClient",
|
|
415
|
-
};
|
|
277
|
+
const headers = sharedHeaders("DeleteUserPoolClient");
|
|
416
278
|
let body;
|
|
417
279
|
body = JSON.stringify(se_DeleteUserPoolClientRequest(input, context));
|
|
418
280
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
419
281
|
};
|
|
420
282
|
export const se_DeleteUserPoolDomainCommand = async (input, context) => {
|
|
421
|
-
const headers =
|
|
422
|
-
"content-type": "application/x-amz-json-1.1",
|
|
423
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.DeleteUserPoolDomain",
|
|
424
|
-
};
|
|
283
|
+
const headers = sharedHeaders("DeleteUserPoolDomain");
|
|
425
284
|
let body;
|
|
426
285
|
body = JSON.stringify(se_DeleteUserPoolDomainRequest(input, context));
|
|
427
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
428
287
|
};
|
|
429
288
|
export const se_DescribeIdentityProviderCommand = async (input, context) => {
|
|
430
|
-
const headers =
|
|
431
|
-
"content-type": "application/x-amz-json-1.1",
|
|
432
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.DescribeIdentityProvider",
|
|
433
|
-
};
|
|
289
|
+
const headers = sharedHeaders("DescribeIdentityProvider");
|
|
434
290
|
let body;
|
|
435
291
|
body = JSON.stringify(se_DescribeIdentityProviderRequest(input, context));
|
|
436
292
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
437
293
|
};
|
|
438
294
|
export const se_DescribeResourceServerCommand = async (input, context) => {
|
|
439
|
-
const headers =
|
|
440
|
-
"content-type": "application/x-amz-json-1.1",
|
|
441
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.DescribeResourceServer",
|
|
442
|
-
};
|
|
295
|
+
const headers = sharedHeaders("DescribeResourceServer");
|
|
443
296
|
let body;
|
|
444
297
|
body = JSON.stringify(se_DescribeResourceServerRequest(input, context));
|
|
445
298
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
446
299
|
};
|
|
447
300
|
export const se_DescribeRiskConfigurationCommand = async (input, context) => {
|
|
448
|
-
const headers =
|
|
449
|
-
"content-type": "application/x-amz-json-1.1",
|
|
450
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.DescribeRiskConfiguration",
|
|
451
|
-
};
|
|
301
|
+
const headers = sharedHeaders("DescribeRiskConfiguration");
|
|
452
302
|
let body;
|
|
453
303
|
body = JSON.stringify(se_DescribeRiskConfigurationRequest(input, context));
|
|
454
304
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
455
305
|
};
|
|
456
306
|
export const se_DescribeUserImportJobCommand = async (input, context) => {
|
|
457
|
-
const headers =
|
|
458
|
-
"content-type": "application/x-amz-json-1.1",
|
|
459
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.DescribeUserImportJob",
|
|
460
|
-
};
|
|
307
|
+
const headers = sharedHeaders("DescribeUserImportJob");
|
|
461
308
|
let body;
|
|
462
309
|
body = JSON.stringify(se_DescribeUserImportJobRequest(input, context));
|
|
463
310
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
464
311
|
};
|
|
465
312
|
export const se_DescribeUserPoolCommand = async (input, context) => {
|
|
466
|
-
const headers =
|
|
467
|
-
"content-type": "application/x-amz-json-1.1",
|
|
468
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.DescribeUserPool",
|
|
469
|
-
};
|
|
313
|
+
const headers = sharedHeaders("DescribeUserPool");
|
|
470
314
|
let body;
|
|
471
315
|
body = JSON.stringify(se_DescribeUserPoolRequest(input, context));
|
|
472
316
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
473
317
|
};
|
|
474
318
|
export const se_DescribeUserPoolClientCommand = async (input, context) => {
|
|
475
|
-
const headers =
|
|
476
|
-
"content-type": "application/x-amz-json-1.1",
|
|
477
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.DescribeUserPoolClient",
|
|
478
|
-
};
|
|
319
|
+
const headers = sharedHeaders("DescribeUserPoolClient");
|
|
479
320
|
let body;
|
|
480
321
|
body = JSON.stringify(se_DescribeUserPoolClientRequest(input, context));
|
|
481
322
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
482
323
|
};
|
|
483
324
|
export const se_DescribeUserPoolDomainCommand = async (input, context) => {
|
|
484
|
-
const headers =
|
|
485
|
-
"content-type": "application/x-amz-json-1.1",
|
|
486
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.DescribeUserPoolDomain",
|
|
487
|
-
};
|
|
325
|
+
const headers = sharedHeaders("DescribeUserPoolDomain");
|
|
488
326
|
let body;
|
|
489
327
|
body = JSON.stringify(se_DescribeUserPoolDomainRequest(input, context));
|
|
490
328
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
491
329
|
};
|
|
492
330
|
export const se_ForgetDeviceCommand = async (input, context) => {
|
|
493
|
-
const headers =
|
|
494
|
-
"content-type": "application/x-amz-json-1.1",
|
|
495
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ForgetDevice",
|
|
496
|
-
};
|
|
331
|
+
const headers = sharedHeaders("ForgetDevice");
|
|
497
332
|
let body;
|
|
498
333
|
body = JSON.stringify(se_ForgetDeviceRequest(input, context));
|
|
499
334
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
500
335
|
};
|
|
501
336
|
export const se_ForgotPasswordCommand = async (input, context) => {
|
|
502
|
-
const headers =
|
|
503
|
-
"content-type": "application/x-amz-json-1.1",
|
|
504
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ForgotPassword",
|
|
505
|
-
};
|
|
337
|
+
const headers = sharedHeaders("ForgotPassword");
|
|
506
338
|
let body;
|
|
507
339
|
body = JSON.stringify(se_ForgotPasswordRequest(input, context));
|
|
508
340
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
509
341
|
};
|
|
510
342
|
export const se_GetCSVHeaderCommand = async (input, context) => {
|
|
511
|
-
const headers =
|
|
512
|
-
"content-type": "application/x-amz-json-1.1",
|
|
513
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.GetCSVHeader",
|
|
514
|
-
};
|
|
343
|
+
const headers = sharedHeaders("GetCSVHeader");
|
|
515
344
|
let body;
|
|
516
345
|
body = JSON.stringify(se_GetCSVHeaderRequest(input, context));
|
|
517
346
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
518
347
|
};
|
|
519
348
|
export const se_GetDeviceCommand = async (input, context) => {
|
|
520
|
-
const headers =
|
|
521
|
-
"content-type": "application/x-amz-json-1.1",
|
|
522
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.GetDevice",
|
|
523
|
-
};
|
|
349
|
+
const headers = sharedHeaders("GetDevice");
|
|
524
350
|
let body;
|
|
525
351
|
body = JSON.stringify(se_GetDeviceRequest(input, context));
|
|
526
352
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
527
353
|
};
|
|
528
354
|
export const se_GetGroupCommand = async (input, context) => {
|
|
529
|
-
const headers =
|
|
530
|
-
"content-type": "application/x-amz-json-1.1",
|
|
531
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.GetGroup",
|
|
532
|
-
};
|
|
355
|
+
const headers = sharedHeaders("GetGroup");
|
|
533
356
|
let body;
|
|
534
357
|
body = JSON.stringify(se_GetGroupRequest(input, context));
|
|
535
358
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
536
359
|
};
|
|
537
360
|
export const se_GetIdentityProviderByIdentifierCommand = async (input, context) => {
|
|
538
|
-
const headers =
|
|
539
|
-
"content-type": "application/x-amz-json-1.1",
|
|
540
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.GetIdentityProviderByIdentifier",
|
|
541
|
-
};
|
|
361
|
+
const headers = sharedHeaders("GetIdentityProviderByIdentifier");
|
|
542
362
|
let body;
|
|
543
363
|
body = JSON.stringify(se_GetIdentityProviderByIdentifierRequest(input, context));
|
|
544
364
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
545
365
|
};
|
|
546
366
|
export const se_GetSigningCertificateCommand = async (input, context) => {
|
|
547
|
-
const headers =
|
|
548
|
-
"content-type": "application/x-amz-json-1.1",
|
|
549
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.GetSigningCertificate",
|
|
550
|
-
};
|
|
367
|
+
const headers = sharedHeaders("GetSigningCertificate");
|
|
551
368
|
let body;
|
|
552
369
|
body = JSON.stringify(se_GetSigningCertificateRequest(input, context));
|
|
553
370
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
554
371
|
};
|
|
555
372
|
export const se_GetUICustomizationCommand = async (input, context) => {
|
|
556
|
-
const headers =
|
|
557
|
-
"content-type": "application/x-amz-json-1.1",
|
|
558
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.GetUICustomization",
|
|
559
|
-
};
|
|
373
|
+
const headers = sharedHeaders("GetUICustomization");
|
|
560
374
|
let body;
|
|
561
375
|
body = JSON.stringify(se_GetUICustomizationRequest(input, context));
|
|
562
376
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
563
377
|
};
|
|
564
378
|
export const se_GetUserCommand = async (input, context) => {
|
|
565
|
-
const headers =
|
|
566
|
-
"content-type": "application/x-amz-json-1.1",
|
|
567
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.GetUser",
|
|
568
|
-
};
|
|
379
|
+
const headers = sharedHeaders("GetUser");
|
|
569
380
|
let body;
|
|
570
381
|
body = JSON.stringify(se_GetUserRequest(input, context));
|
|
571
382
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
572
383
|
};
|
|
573
384
|
export const se_GetUserAttributeVerificationCodeCommand = async (input, context) => {
|
|
574
|
-
const headers =
|
|
575
|
-
"content-type": "application/x-amz-json-1.1",
|
|
576
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.GetUserAttributeVerificationCode",
|
|
577
|
-
};
|
|
385
|
+
const headers = sharedHeaders("GetUserAttributeVerificationCode");
|
|
578
386
|
let body;
|
|
579
387
|
body = JSON.stringify(se_GetUserAttributeVerificationCodeRequest(input, context));
|
|
580
388
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
581
389
|
};
|
|
582
390
|
export const se_GetUserPoolMfaConfigCommand = async (input, context) => {
|
|
583
|
-
const headers =
|
|
584
|
-
"content-type": "application/x-amz-json-1.1",
|
|
585
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.GetUserPoolMfaConfig",
|
|
586
|
-
};
|
|
391
|
+
const headers = sharedHeaders("GetUserPoolMfaConfig");
|
|
587
392
|
let body;
|
|
588
393
|
body = JSON.stringify(se_GetUserPoolMfaConfigRequest(input, context));
|
|
589
394
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
590
395
|
};
|
|
591
396
|
export const se_GlobalSignOutCommand = async (input, context) => {
|
|
592
|
-
const headers =
|
|
593
|
-
"content-type": "application/x-amz-json-1.1",
|
|
594
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.GlobalSignOut",
|
|
595
|
-
};
|
|
397
|
+
const headers = sharedHeaders("GlobalSignOut");
|
|
596
398
|
let body;
|
|
597
399
|
body = JSON.stringify(se_GlobalSignOutRequest(input, context));
|
|
598
400
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
599
401
|
};
|
|
600
402
|
export const se_InitiateAuthCommand = async (input, context) => {
|
|
601
|
-
const headers =
|
|
602
|
-
"content-type": "application/x-amz-json-1.1",
|
|
603
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.InitiateAuth",
|
|
604
|
-
};
|
|
403
|
+
const headers = sharedHeaders("InitiateAuth");
|
|
605
404
|
let body;
|
|
606
405
|
body = JSON.stringify(se_InitiateAuthRequest(input, context));
|
|
607
406
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
608
407
|
};
|
|
609
408
|
export const se_ListDevicesCommand = async (input, context) => {
|
|
610
|
-
const headers =
|
|
611
|
-
"content-type": "application/x-amz-json-1.1",
|
|
612
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ListDevices",
|
|
613
|
-
};
|
|
409
|
+
const headers = sharedHeaders("ListDevices");
|
|
614
410
|
let body;
|
|
615
411
|
body = JSON.stringify(se_ListDevicesRequest(input, context));
|
|
616
412
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
617
413
|
};
|
|
618
414
|
export const se_ListGroupsCommand = async (input, context) => {
|
|
619
|
-
const headers =
|
|
620
|
-
"content-type": "application/x-amz-json-1.1",
|
|
621
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ListGroups",
|
|
622
|
-
};
|
|
415
|
+
const headers = sharedHeaders("ListGroups");
|
|
623
416
|
let body;
|
|
624
417
|
body = JSON.stringify(se_ListGroupsRequest(input, context));
|
|
625
418
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
626
419
|
};
|
|
627
420
|
export const se_ListIdentityProvidersCommand = async (input, context) => {
|
|
628
|
-
const headers =
|
|
629
|
-
"content-type": "application/x-amz-json-1.1",
|
|
630
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ListIdentityProviders",
|
|
631
|
-
};
|
|
421
|
+
const headers = sharedHeaders("ListIdentityProviders");
|
|
632
422
|
let body;
|
|
633
423
|
body = JSON.stringify(se_ListIdentityProvidersRequest(input, context));
|
|
634
424
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
635
425
|
};
|
|
636
426
|
export const se_ListResourceServersCommand = async (input, context) => {
|
|
637
|
-
const headers =
|
|
638
|
-
"content-type": "application/x-amz-json-1.1",
|
|
639
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ListResourceServers",
|
|
640
|
-
};
|
|
427
|
+
const headers = sharedHeaders("ListResourceServers");
|
|
641
428
|
let body;
|
|
642
429
|
body = JSON.stringify(se_ListResourceServersRequest(input, context));
|
|
643
430
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
644
431
|
};
|
|
645
432
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
646
|
-
const headers =
|
|
647
|
-
"content-type": "application/x-amz-json-1.1",
|
|
648
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ListTagsForResource",
|
|
649
|
-
};
|
|
433
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
650
434
|
let body;
|
|
651
435
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
652
436
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
653
437
|
};
|
|
654
438
|
export const se_ListUserImportJobsCommand = async (input, context) => {
|
|
655
|
-
const headers =
|
|
656
|
-
"content-type": "application/x-amz-json-1.1",
|
|
657
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ListUserImportJobs",
|
|
658
|
-
};
|
|
439
|
+
const headers = sharedHeaders("ListUserImportJobs");
|
|
659
440
|
let body;
|
|
660
441
|
body = JSON.stringify(se_ListUserImportJobsRequest(input, context));
|
|
661
442
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
662
443
|
};
|
|
663
444
|
export const se_ListUserPoolClientsCommand = async (input, context) => {
|
|
664
|
-
const headers =
|
|
665
|
-
"content-type": "application/x-amz-json-1.1",
|
|
666
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ListUserPoolClients",
|
|
667
|
-
};
|
|
445
|
+
const headers = sharedHeaders("ListUserPoolClients");
|
|
668
446
|
let body;
|
|
669
447
|
body = JSON.stringify(se_ListUserPoolClientsRequest(input, context));
|
|
670
448
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
671
449
|
};
|
|
672
450
|
export const se_ListUserPoolsCommand = async (input, context) => {
|
|
673
|
-
const headers =
|
|
674
|
-
"content-type": "application/x-amz-json-1.1",
|
|
675
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ListUserPools",
|
|
676
|
-
};
|
|
451
|
+
const headers = sharedHeaders("ListUserPools");
|
|
677
452
|
let body;
|
|
678
453
|
body = JSON.stringify(se_ListUserPoolsRequest(input, context));
|
|
679
454
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
680
455
|
};
|
|
681
456
|
export const se_ListUsersCommand = async (input, context) => {
|
|
682
|
-
const headers =
|
|
683
|
-
"content-type": "application/x-amz-json-1.1",
|
|
684
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ListUsers",
|
|
685
|
-
};
|
|
457
|
+
const headers = sharedHeaders("ListUsers");
|
|
686
458
|
let body;
|
|
687
459
|
body = JSON.stringify(se_ListUsersRequest(input, context));
|
|
688
460
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
689
461
|
};
|
|
690
462
|
export const se_ListUsersInGroupCommand = async (input, context) => {
|
|
691
|
-
const headers =
|
|
692
|
-
"content-type": "application/x-amz-json-1.1",
|
|
693
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ListUsersInGroup",
|
|
694
|
-
};
|
|
463
|
+
const headers = sharedHeaders("ListUsersInGroup");
|
|
695
464
|
let body;
|
|
696
465
|
body = JSON.stringify(se_ListUsersInGroupRequest(input, context));
|
|
697
466
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
698
467
|
};
|
|
699
468
|
export const se_ResendConfirmationCodeCommand = async (input, context) => {
|
|
700
|
-
const headers =
|
|
701
|
-
"content-type": "application/x-amz-json-1.1",
|
|
702
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.ResendConfirmationCode",
|
|
703
|
-
};
|
|
469
|
+
const headers = sharedHeaders("ResendConfirmationCode");
|
|
704
470
|
let body;
|
|
705
471
|
body = JSON.stringify(se_ResendConfirmationCodeRequest(input, context));
|
|
706
472
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
707
473
|
};
|
|
708
474
|
export const se_RespondToAuthChallengeCommand = async (input, context) => {
|
|
709
|
-
const headers =
|
|
710
|
-
"content-type": "application/x-amz-json-1.1",
|
|
711
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.RespondToAuthChallenge",
|
|
712
|
-
};
|
|
475
|
+
const headers = sharedHeaders("RespondToAuthChallenge");
|
|
713
476
|
let body;
|
|
714
477
|
body = JSON.stringify(se_RespondToAuthChallengeRequest(input, context));
|
|
715
478
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
716
479
|
};
|
|
717
480
|
export const se_RevokeTokenCommand = async (input, context) => {
|
|
718
|
-
const headers =
|
|
719
|
-
"content-type": "application/x-amz-json-1.1",
|
|
720
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.RevokeToken",
|
|
721
|
-
};
|
|
481
|
+
const headers = sharedHeaders("RevokeToken");
|
|
722
482
|
let body;
|
|
723
483
|
body = JSON.stringify(se_RevokeTokenRequest(input, context));
|
|
724
484
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
725
485
|
};
|
|
726
486
|
export const se_SetRiskConfigurationCommand = async (input, context) => {
|
|
727
|
-
const headers =
|
|
728
|
-
"content-type": "application/x-amz-json-1.1",
|
|
729
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.SetRiskConfiguration",
|
|
730
|
-
};
|
|
487
|
+
const headers = sharedHeaders("SetRiskConfiguration");
|
|
731
488
|
let body;
|
|
732
489
|
body = JSON.stringify(se_SetRiskConfigurationRequest(input, context));
|
|
733
490
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
734
491
|
};
|
|
735
492
|
export const se_SetUICustomizationCommand = async (input, context) => {
|
|
736
|
-
const headers =
|
|
737
|
-
"content-type": "application/x-amz-json-1.1",
|
|
738
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.SetUICustomization",
|
|
739
|
-
};
|
|
493
|
+
const headers = sharedHeaders("SetUICustomization");
|
|
740
494
|
let body;
|
|
741
495
|
body = JSON.stringify(se_SetUICustomizationRequest(input, context));
|
|
742
496
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
743
497
|
};
|
|
744
498
|
export const se_SetUserMFAPreferenceCommand = async (input, context) => {
|
|
745
|
-
const headers =
|
|
746
|
-
"content-type": "application/x-amz-json-1.1",
|
|
747
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.SetUserMFAPreference",
|
|
748
|
-
};
|
|
499
|
+
const headers = sharedHeaders("SetUserMFAPreference");
|
|
749
500
|
let body;
|
|
750
501
|
body = JSON.stringify(se_SetUserMFAPreferenceRequest(input, context));
|
|
751
502
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
752
503
|
};
|
|
753
504
|
export const se_SetUserPoolMfaConfigCommand = async (input, context) => {
|
|
754
|
-
const headers =
|
|
755
|
-
"content-type": "application/x-amz-json-1.1",
|
|
756
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.SetUserPoolMfaConfig",
|
|
757
|
-
};
|
|
505
|
+
const headers = sharedHeaders("SetUserPoolMfaConfig");
|
|
758
506
|
let body;
|
|
759
507
|
body = JSON.stringify(se_SetUserPoolMfaConfigRequest(input, context));
|
|
760
508
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
761
509
|
};
|
|
762
510
|
export const se_SetUserSettingsCommand = async (input, context) => {
|
|
763
|
-
const headers =
|
|
764
|
-
"content-type": "application/x-amz-json-1.1",
|
|
765
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.SetUserSettings",
|
|
766
|
-
};
|
|
511
|
+
const headers = sharedHeaders("SetUserSettings");
|
|
767
512
|
let body;
|
|
768
513
|
body = JSON.stringify(se_SetUserSettingsRequest(input, context));
|
|
769
514
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
770
515
|
};
|
|
771
516
|
export const se_SignUpCommand = async (input, context) => {
|
|
772
|
-
const headers =
|
|
773
|
-
"content-type": "application/x-amz-json-1.1",
|
|
774
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.SignUp",
|
|
775
|
-
};
|
|
517
|
+
const headers = sharedHeaders("SignUp");
|
|
776
518
|
let body;
|
|
777
519
|
body = JSON.stringify(se_SignUpRequest(input, context));
|
|
778
520
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
779
521
|
};
|
|
780
522
|
export const se_StartUserImportJobCommand = async (input, context) => {
|
|
781
|
-
const headers =
|
|
782
|
-
"content-type": "application/x-amz-json-1.1",
|
|
783
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.StartUserImportJob",
|
|
784
|
-
};
|
|
523
|
+
const headers = sharedHeaders("StartUserImportJob");
|
|
785
524
|
let body;
|
|
786
525
|
body = JSON.stringify(se_StartUserImportJobRequest(input, context));
|
|
787
526
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
788
527
|
};
|
|
789
528
|
export const se_StopUserImportJobCommand = async (input, context) => {
|
|
790
|
-
const headers =
|
|
791
|
-
"content-type": "application/x-amz-json-1.1",
|
|
792
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.StopUserImportJob",
|
|
793
|
-
};
|
|
529
|
+
const headers = sharedHeaders("StopUserImportJob");
|
|
794
530
|
let body;
|
|
795
531
|
body = JSON.stringify(se_StopUserImportJobRequest(input, context));
|
|
796
532
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
797
533
|
};
|
|
798
534
|
export const se_TagResourceCommand = async (input, context) => {
|
|
799
|
-
const headers =
|
|
800
|
-
"content-type": "application/x-amz-json-1.1",
|
|
801
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.TagResource",
|
|
802
|
-
};
|
|
535
|
+
const headers = sharedHeaders("TagResource");
|
|
803
536
|
let body;
|
|
804
537
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
805
538
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
806
539
|
};
|
|
807
540
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
808
|
-
const headers =
|
|
809
|
-
"content-type": "application/x-amz-json-1.1",
|
|
810
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.UntagResource",
|
|
811
|
-
};
|
|
541
|
+
const headers = sharedHeaders("UntagResource");
|
|
812
542
|
let body;
|
|
813
543
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
814
544
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
815
545
|
};
|
|
816
546
|
export const se_UpdateAuthEventFeedbackCommand = async (input, context) => {
|
|
817
|
-
const headers =
|
|
818
|
-
"content-type": "application/x-amz-json-1.1",
|
|
819
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.UpdateAuthEventFeedback",
|
|
820
|
-
};
|
|
547
|
+
const headers = sharedHeaders("UpdateAuthEventFeedback");
|
|
821
548
|
let body;
|
|
822
549
|
body = JSON.stringify(se_UpdateAuthEventFeedbackRequest(input, context));
|
|
823
550
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
824
551
|
};
|
|
825
552
|
export const se_UpdateDeviceStatusCommand = async (input, context) => {
|
|
826
|
-
const headers =
|
|
827
|
-
"content-type": "application/x-amz-json-1.1",
|
|
828
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.UpdateDeviceStatus",
|
|
829
|
-
};
|
|
553
|
+
const headers = sharedHeaders("UpdateDeviceStatus");
|
|
830
554
|
let body;
|
|
831
555
|
body = JSON.stringify(se_UpdateDeviceStatusRequest(input, context));
|
|
832
556
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
833
557
|
};
|
|
834
558
|
export const se_UpdateGroupCommand = async (input, context) => {
|
|
835
|
-
const headers =
|
|
836
|
-
"content-type": "application/x-amz-json-1.1",
|
|
837
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.UpdateGroup",
|
|
838
|
-
};
|
|
559
|
+
const headers = sharedHeaders("UpdateGroup");
|
|
839
560
|
let body;
|
|
840
561
|
body = JSON.stringify(se_UpdateGroupRequest(input, context));
|
|
841
562
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
842
563
|
};
|
|
843
564
|
export const se_UpdateIdentityProviderCommand = async (input, context) => {
|
|
844
|
-
const headers =
|
|
845
|
-
"content-type": "application/x-amz-json-1.1",
|
|
846
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.UpdateIdentityProvider",
|
|
847
|
-
};
|
|
565
|
+
const headers = sharedHeaders("UpdateIdentityProvider");
|
|
848
566
|
let body;
|
|
849
567
|
body = JSON.stringify(se_UpdateIdentityProviderRequest(input, context));
|
|
850
568
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
851
569
|
};
|
|
852
570
|
export const se_UpdateResourceServerCommand = async (input, context) => {
|
|
853
|
-
const headers =
|
|
854
|
-
"content-type": "application/x-amz-json-1.1",
|
|
855
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.UpdateResourceServer",
|
|
856
|
-
};
|
|
571
|
+
const headers = sharedHeaders("UpdateResourceServer");
|
|
857
572
|
let body;
|
|
858
573
|
body = JSON.stringify(se_UpdateResourceServerRequest(input, context));
|
|
859
574
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
860
575
|
};
|
|
861
576
|
export const se_UpdateUserAttributesCommand = async (input, context) => {
|
|
862
|
-
const headers =
|
|
863
|
-
"content-type": "application/x-amz-json-1.1",
|
|
864
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.UpdateUserAttributes",
|
|
865
|
-
};
|
|
577
|
+
const headers = sharedHeaders("UpdateUserAttributes");
|
|
866
578
|
let body;
|
|
867
579
|
body = JSON.stringify(se_UpdateUserAttributesRequest(input, context));
|
|
868
580
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
869
581
|
};
|
|
870
582
|
export const se_UpdateUserPoolCommand = async (input, context) => {
|
|
871
|
-
const headers =
|
|
872
|
-
"content-type": "application/x-amz-json-1.1",
|
|
873
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.UpdateUserPool",
|
|
874
|
-
};
|
|
583
|
+
const headers = sharedHeaders("UpdateUserPool");
|
|
875
584
|
let body;
|
|
876
585
|
body = JSON.stringify(se_UpdateUserPoolRequest(input, context));
|
|
877
586
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
878
587
|
};
|
|
879
588
|
export const se_UpdateUserPoolClientCommand = async (input, context) => {
|
|
880
|
-
const headers =
|
|
881
|
-
"content-type": "application/x-amz-json-1.1",
|
|
882
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.UpdateUserPoolClient",
|
|
883
|
-
};
|
|
589
|
+
const headers = sharedHeaders("UpdateUserPoolClient");
|
|
884
590
|
let body;
|
|
885
591
|
body = JSON.stringify(se_UpdateUserPoolClientRequest(input, context));
|
|
886
592
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
887
593
|
};
|
|
888
594
|
export const se_UpdateUserPoolDomainCommand = async (input, context) => {
|
|
889
|
-
const headers =
|
|
890
|
-
"content-type": "application/x-amz-json-1.1",
|
|
891
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.UpdateUserPoolDomain",
|
|
892
|
-
};
|
|
595
|
+
const headers = sharedHeaders("UpdateUserPoolDomain");
|
|
893
596
|
let body;
|
|
894
597
|
body = JSON.stringify(se_UpdateUserPoolDomainRequest(input, context));
|
|
895
598
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
896
599
|
};
|
|
897
600
|
export const se_VerifySoftwareTokenCommand = async (input, context) => {
|
|
898
|
-
const headers =
|
|
899
|
-
"content-type": "application/x-amz-json-1.1",
|
|
900
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.VerifySoftwareToken",
|
|
901
|
-
};
|
|
601
|
+
const headers = sharedHeaders("VerifySoftwareToken");
|
|
902
602
|
let body;
|
|
903
603
|
body = JSON.stringify(se_VerifySoftwareTokenRequest(input, context));
|
|
904
604
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
905
605
|
};
|
|
906
606
|
export const se_VerifyUserAttributeCommand = async (input, context) => {
|
|
907
|
-
const headers =
|
|
908
|
-
"content-type": "application/x-amz-json-1.1",
|
|
909
|
-
"x-amz-target": "AWSCognitoIdentityProviderService.VerifyUserAttribute",
|
|
910
|
-
};
|
|
607
|
+
const headers = sharedHeaders("VerifyUserAttribute");
|
|
911
608
|
let body;
|
|
912
609
|
body = JSON.stringify(se_VerifyUserAttributeRequest(input, context));
|
|
913
610
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -9849,6 +9546,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
9849
9546
|
}
|
|
9850
9547
|
return new __HttpRequest(contents);
|
|
9851
9548
|
};
|
|
9549
|
+
function sharedHeaders(operation) {
|
|
9550
|
+
return {
|
|
9551
|
+
"content-type": "application/x-amz-json-1.1",
|
|
9552
|
+
"x-amz-target": `AWSCognitoIdentityProviderService.${operation}`,
|
|
9553
|
+
};
|
|
9554
|
+
}
|
|
9852
9555
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
9853
9556
|
if (encoded.length) {
|
|
9854
9557
|
return JSON.parse(encoded);
|