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