@aws-sdk/client-identitystore 3.310.0 → 3.315.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 +130 -750
- package/dist-es/protocols/Aws_json1_1.js +132 -752
- package/package.json +6 -6
|
@@ -6,190 +6,133 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
6
6
|
const IdentitystoreServiceException_1 = require("../models/IdentitystoreServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_CreateGroupCommand = async (input, context) => {
|
|
9
|
-
const headers =
|
|
10
|
-
"content-type": "application/x-amz-json-1.1",
|
|
11
|
-
"x-amz-target": "AWSIdentityStore.CreateGroup",
|
|
12
|
-
};
|
|
9
|
+
const headers = sharedHeaders("CreateGroup");
|
|
13
10
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
15
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
13
|
};
|
|
17
14
|
exports.se_CreateGroupCommand = se_CreateGroupCommand;
|
|
18
15
|
const se_CreateGroupMembershipCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-amz-json-1.1",
|
|
21
|
-
"x-amz-target": "AWSIdentityStore.CreateGroupMembership",
|
|
22
|
-
};
|
|
16
|
+
const headers = sharedHeaders("CreateGroupMembership");
|
|
23
17
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
25
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
20
|
};
|
|
27
21
|
exports.se_CreateGroupMembershipCommand = se_CreateGroupMembershipCommand;
|
|
28
22
|
const se_CreateUserCommand = async (input, context) => {
|
|
29
|
-
const headers =
|
|
30
|
-
"content-type": "application/x-amz-json-1.1",
|
|
31
|
-
"x-amz-target": "AWSIdentityStore.CreateUser",
|
|
32
|
-
};
|
|
23
|
+
const headers = sharedHeaders("CreateUser");
|
|
33
24
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
27
|
};
|
|
37
28
|
exports.se_CreateUserCommand = se_CreateUserCommand;
|
|
38
29
|
const se_DeleteGroupCommand = async (input, context) => {
|
|
39
|
-
const headers =
|
|
40
|
-
"content-type": "application/x-amz-json-1.1",
|
|
41
|
-
"x-amz-target": "AWSIdentityStore.DeleteGroup",
|
|
42
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DeleteGroup");
|
|
43
31
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
45
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
34
|
};
|
|
47
35
|
exports.se_DeleteGroupCommand = se_DeleteGroupCommand;
|
|
48
36
|
const se_DeleteGroupMembershipCommand = async (input, context) => {
|
|
49
|
-
const headers =
|
|
50
|
-
"content-type": "application/x-amz-json-1.1",
|
|
51
|
-
"x-amz-target": "AWSIdentityStore.DeleteGroupMembership",
|
|
52
|
-
};
|
|
37
|
+
const headers = sharedHeaders("DeleteGroupMembership");
|
|
53
38
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
41
|
};
|
|
57
42
|
exports.se_DeleteGroupMembershipCommand = se_DeleteGroupMembershipCommand;
|
|
58
43
|
const se_DeleteUserCommand = async (input, context) => {
|
|
59
|
-
const headers =
|
|
60
|
-
"content-type": "application/x-amz-json-1.1",
|
|
61
|
-
"x-amz-target": "AWSIdentityStore.DeleteUser",
|
|
62
|
-
};
|
|
44
|
+
const headers = sharedHeaders("DeleteUser");
|
|
63
45
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
65
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
48
|
};
|
|
67
49
|
exports.se_DeleteUserCommand = se_DeleteUserCommand;
|
|
68
50
|
const se_DescribeGroupCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AWSIdentityStore.DescribeGroup",
|
|
72
|
-
};
|
|
51
|
+
const headers = sharedHeaders("DescribeGroup");
|
|
73
52
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
55
|
};
|
|
77
56
|
exports.se_DescribeGroupCommand = se_DescribeGroupCommand;
|
|
78
57
|
const se_DescribeGroupMembershipCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.1",
|
|
81
|
-
"x-amz-target": "AWSIdentityStore.DescribeGroupMembership",
|
|
82
|
-
};
|
|
58
|
+
const headers = sharedHeaders("DescribeGroupMembership");
|
|
83
59
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
60
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
62
|
};
|
|
87
63
|
exports.se_DescribeGroupMembershipCommand = se_DescribeGroupMembershipCommand;
|
|
88
64
|
const se_DescribeUserCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-amz-json-1.1",
|
|
91
|
-
"x-amz-target": "AWSIdentityStore.DescribeUser",
|
|
92
|
-
};
|
|
65
|
+
const headers = sharedHeaders("DescribeUser");
|
|
93
66
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
67
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
95
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
69
|
};
|
|
97
70
|
exports.se_DescribeUserCommand = se_DescribeUserCommand;
|
|
98
71
|
const se_GetGroupIdCommand = async (input, context) => {
|
|
99
|
-
const headers =
|
|
100
|
-
"content-type": "application/x-amz-json-1.1",
|
|
101
|
-
"x-amz-target": "AWSIdentityStore.GetGroupId",
|
|
102
|
-
};
|
|
72
|
+
const headers = sharedHeaders("GetGroupId");
|
|
103
73
|
let body;
|
|
104
74
|
body = JSON.stringify(se_GetGroupIdRequest(input, context));
|
|
105
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
76
|
};
|
|
107
77
|
exports.se_GetGroupIdCommand = se_GetGroupIdCommand;
|
|
108
78
|
const se_GetGroupMembershipIdCommand = async (input, context) => {
|
|
109
|
-
const headers =
|
|
110
|
-
"content-type": "application/x-amz-json-1.1",
|
|
111
|
-
"x-amz-target": "AWSIdentityStore.GetGroupMembershipId",
|
|
112
|
-
};
|
|
79
|
+
const headers = sharedHeaders("GetGroupMembershipId");
|
|
113
80
|
let body;
|
|
114
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
115
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
83
|
};
|
|
117
84
|
exports.se_GetGroupMembershipIdCommand = se_GetGroupMembershipIdCommand;
|
|
118
85
|
const se_GetUserIdCommand = async (input, context) => {
|
|
119
|
-
const headers =
|
|
120
|
-
"content-type": "application/x-amz-json-1.1",
|
|
121
|
-
"x-amz-target": "AWSIdentityStore.GetUserId",
|
|
122
|
-
};
|
|
86
|
+
const headers = sharedHeaders("GetUserId");
|
|
123
87
|
let body;
|
|
124
88
|
body = JSON.stringify(se_GetUserIdRequest(input, context));
|
|
125
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
90
|
};
|
|
127
91
|
exports.se_GetUserIdCommand = se_GetUserIdCommand;
|
|
128
92
|
const se_IsMemberInGroupsCommand = async (input, context) => {
|
|
129
|
-
const headers =
|
|
130
|
-
"content-type": "application/x-amz-json-1.1",
|
|
131
|
-
"x-amz-target": "AWSIdentityStore.IsMemberInGroups",
|
|
132
|
-
};
|
|
93
|
+
const headers = sharedHeaders("IsMemberInGroups");
|
|
133
94
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
135
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
97
|
};
|
|
137
98
|
exports.se_IsMemberInGroupsCommand = se_IsMemberInGroupsCommand;
|
|
138
99
|
const se_ListGroupMembershipsCommand = async (input, context) => {
|
|
139
|
-
const headers =
|
|
140
|
-
"content-type": "application/x-amz-json-1.1",
|
|
141
|
-
"x-amz-target": "AWSIdentityStore.ListGroupMemberships",
|
|
142
|
-
};
|
|
100
|
+
const headers = sharedHeaders("ListGroupMemberships");
|
|
143
101
|
let body;
|
|
144
|
-
body = JSON.stringify(
|
|
102
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
145
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
104
|
};
|
|
147
105
|
exports.se_ListGroupMembershipsCommand = se_ListGroupMembershipsCommand;
|
|
148
106
|
const se_ListGroupMembershipsForMemberCommand = async (input, context) => {
|
|
149
|
-
const headers =
|
|
150
|
-
"content-type": "application/x-amz-json-1.1",
|
|
151
|
-
"x-amz-target": "AWSIdentityStore.ListGroupMembershipsForMember",
|
|
152
|
-
};
|
|
107
|
+
const headers = sharedHeaders("ListGroupMembershipsForMember");
|
|
153
108
|
let body;
|
|
154
|
-
body = JSON.stringify(
|
|
109
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
155
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
111
|
};
|
|
157
112
|
exports.se_ListGroupMembershipsForMemberCommand = se_ListGroupMembershipsForMemberCommand;
|
|
158
113
|
const se_ListGroupsCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "AWSIdentityStore.ListGroups",
|
|
162
|
-
};
|
|
114
|
+
const headers = sharedHeaders("ListGroups");
|
|
163
115
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
165
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
118
|
};
|
|
167
119
|
exports.se_ListGroupsCommand = se_ListGroupsCommand;
|
|
168
120
|
const se_ListUsersCommand = async (input, context) => {
|
|
169
|
-
const headers =
|
|
170
|
-
"content-type": "application/x-amz-json-1.1",
|
|
171
|
-
"x-amz-target": "AWSIdentityStore.ListUsers",
|
|
172
|
-
};
|
|
121
|
+
const headers = sharedHeaders("ListUsers");
|
|
173
122
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
123
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
175
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
125
|
};
|
|
177
126
|
exports.se_ListUsersCommand = se_ListUsersCommand;
|
|
178
127
|
const se_UpdateGroupCommand = async (input, context) => {
|
|
179
|
-
const headers =
|
|
180
|
-
"content-type": "application/x-amz-json-1.1",
|
|
181
|
-
"x-amz-target": "AWSIdentityStore.UpdateGroup",
|
|
182
|
-
};
|
|
128
|
+
const headers = sharedHeaders("UpdateGroup");
|
|
183
129
|
let body;
|
|
184
130
|
body = JSON.stringify(se_UpdateGroupRequest(input, context));
|
|
185
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
132
|
};
|
|
187
133
|
exports.se_UpdateGroupCommand = se_UpdateGroupCommand;
|
|
188
134
|
const se_UpdateUserCommand = async (input, context) => {
|
|
189
|
-
const headers =
|
|
190
|
-
"content-type": "application/x-amz-json-1.1",
|
|
191
|
-
"x-amz-target": "AWSIdentityStore.UpdateUser",
|
|
192
|
-
};
|
|
135
|
+
const headers = sharedHeaders("UpdateUser");
|
|
193
136
|
let body;
|
|
194
137
|
body = JSON.stringify(se_UpdateUserRequest(input, context));
|
|
195
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -201,12 +144,12 @@ const de_CreateGroupCommand = async (output, context) => {
|
|
|
201
144
|
}
|
|
202
145
|
const data = await parseBody(output.body, context);
|
|
203
146
|
let contents = {};
|
|
204
|
-
contents =
|
|
147
|
+
contents = (0, smithy_client_1._json)(data);
|
|
205
148
|
const response = {
|
|
206
149
|
$metadata: deserializeMetadata(output),
|
|
207
150
|
...contents,
|
|
208
151
|
};
|
|
209
|
-
return
|
|
152
|
+
return response;
|
|
210
153
|
};
|
|
211
154
|
exports.de_CreateGroupCommand = de_CreateGroupCommand;
|
|
212
155
|
const de_CreateGroupCommandError = async (output, context) => {
|
|
@@ -239,10 +182,9 @@ const de_CreateGroupCommandError = async (output, context) => {
|
|
|
239
182
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
240
183
|
default:
|
|
241
184
|
const parsedBody = parsedOutput.body;
|
|
242
|
-
|
|
185
|
+
return throwDefaultError({
|
|
243
186
|
output,
|
|
244
187
|
parsedBody,
|
|
245
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
246
188
|
errorCode,
|
|
247
189
|
});
|
|
248
190
|
}
|
|
@@ -253,12 +195,12 @@ const de_CreateGroupMembershipCommand = async (output, context) => {
|
|
|
253
195
|
}
|
|
254
196
|
const data = await parseBody(output.body, context);
|
|
255
197
|
let contents = {};
|
|
256
|
-
contents =
|
|
198
|
+
contents = (0, smithy_client_1._json)(data);
|
|
257
199
|
const response = {
|
|
258
200
|
$metadata: deserializeMetadata(output),
|
|
259
201
|
...contents,
|
|
260
202
|
};
|
|
261
|
-
return
|
|
203
|
+
return response;
|
|
262
204
|
};
|
|
263
205
|
exports.de_CreateGroupMembershipCommand = de_CreateGroupMembershipCommand;
|
|
264
206
|
const de_CreateGroupMembershipCommandError = async (output, context) => {
|
|
@@ -291,10 +233,9 @@ const de_CreateGroupMembershipCommandError = async (output, context) => {
|
|
|
291
233
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
292
234
|
default:
|
|
293
235
|
const parsedBody = parsedOutput.body;
|
|
294
|
-
|
|
236
|
+
return throwDefaultError({
|
|
295
237
|
output,
|
|
296
238
|
parsedBody,
|
|
297
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
298
239
|
errorCode,
|
|
299
240
|
});
|
|
300
241
|
}
|
|
@@ -305,12 +246,12 @@ const de_CreateUserCommand = async (output, context) => {
|
|
|
305
246
|
}
|
|
306
247
|
const data = await parseBody(output.body, context);
|
|
307
248
|
let contents = {};
|
|
308
|
-
contents =
|
|
249
|
+
contents = (0, smithy_client_1._json)(data);
|
|
309
250
|
const response = {
|
|
310
251
|
$metadata: deserializeMetadata(output),
|
|
311
252
|
...contents,
|
|
312
253
|
};
|
|
313
|
-
return
|
|
254
|
+
return response;
|
|
314
255
|
};
|
|
315
256
|
exports.de_CreateUserCommand = de_CreateUserCommand;
|
|
316
257
|
const de_CreateUserCommandError = async (output, context) => {
|
|
@@ -343,10 +284,9 @@ const de_CreateUserCommandError = async (output, context) => {
|
|
|
343
284
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
344
285
|
default:
|
|
345
286
|
const parsedBody = parsedOutput.body;
|
|
346
|
-
|
|
287
|
+
return throwDefaultError({
|
|
347
288
|
output,
|
|
348
289
|
parsedBody,
|
|
349
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
350
290
|
errorCode,
|
|
351
291
|
});
|
|
352
292
|
}
|
|
@@ -357,12 +297,12 @@ const de_DeleteGroupCommand = async (output, context) => {
|
|
|
357
297
|
}
|
|
358
298
|
const data = await parseBody(output.body, context);
|
|
359
299
|
let contents = {};
|
|
360
|
-
contents =
|
|
300
|
+
contents = (0, smithy_client_1._json)(data);
|
|
361
301
|
const response = {
|
|
362
302
|
$metadata: deserializeMetadata(output),
|
|
363
303
|
...contents,
|
|
364
304
|
};
|
|
365
|
-
return
|
|
305
|
+
return response;
|
|
366
306
|
};
|
|
367
307
|
exports.de_DeleteGroupCommand = de_DeleteGroupCommand;
|
|
368
308
|
const de_DeleteGroupCommandError = async (output, context) => {
|
|
@@ -392,10 +332,9 @@ const de_DeleteGroupCommandError = async (output, context) => {
|
|
|
392
332
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
393
333
|
default:
|
|
394
334
|
const parsedBody = parsedOutput.body;
|
|
395
|
-
|
|
335
|
+
return throwDefaultError({
|
|
396
336
|
output,
|
|
397
337
|
parsedBody,
|
|
398
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
399
338
|
errorCode,
|
|
400
339
|
});
|
|
401
340
|
}
|
|
@@ -406,12 +345,12 @@ const de_DeleteGroupMembershipCommand = async (output, context) => {
|
|
|
406
345
|
}
|
|
407
346
|
const data = await parseBody(output.body, context);
|
|
408
347
|
let contents = {};
|
|
409
|
-
contents =
|
|
348
|
+
contents = (0, smithy_client_1._json)(data);
|
|
410
349
|
const response = {
|
|
411
350
|
$metadata: deserializeMetadata(output),
|
|
412
351
|
...contents,
|
|
413
352
|
};
|
|
414
|
-
return
|
|
353
|
+
return response;
|
|
415
354
|
};
|
|
416
355
|
exports.de_DeleteGroupMembershipCommand = de_DeleteGroupMembershipCommand;
|
|
417
356
|
const de_DeleteGroupMembershipCommandError = async (output, context) => {
|
|
@@ -441,10 +380,9 @@ const de_DeleteGroupMembershipCommandError = async (output, context) => {
|
|
|
441
380
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
442
381
|
default:
|
|
443
382
|
const parsedBody = parsedOutput.body;
|
|
444
|
-
|
|
383
|
+
return throwDefaultError({
|
|
445
384
|
output,
|
|
446
385
|
parsedBody,
|
|
447
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
448
386
|
errorCode,
|
|
449
387
|
});
|
|
450
388
|
}
|
|
@@ -455,12 +393,12 @@ const de_DeleteUserCommand = async (output, context) => {
|
|
|
455
393
|
}
|
|
456
394
|
const data = await parseBody(output.body, context);
|
|
457
395
|
let contents = {};
|
|
458
|
-
contents =
|
|
396
|
+
contents = (0, smithy_client_1._json)(data);
|
|
459
397
|
const response = {
|
|
460
398
|
$metadata: deserializeMetadata(output),
|
|
461
399
|
...contents,
|
|
462
400
|
};
|
|
463
|
-
return
|
|
401
|
+
return response;
|
|
464
402
|
};
|
|
465
403
|
exports.de_DeleteUserCommand = de_DeleteUserCommand;
|
|
466
404
|
const de_DeleteUserCommandError = async (output, context) => {
|
|
@@ -490,10 +428,9 @@ const de_DeleteUserCommandError = async (output, context) => {
|
|
|
490
428
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
491
429
|
default:
|
|
492
430
|
const parsedBody = parsedOutput.body;
|
|
493
|
-
|
|
431
|
+
return throwDefaultError({
|
|
494
432
|
output,
|
|
495
433
|
parsedBody,
|
|
496
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
497
434
|
errorCode,
|
|
498
435
|
});
|
|
499
436
|
}
|
|
@@ -504,12 +441,12 @@ const de_DescribeGroupCommand = async (output, context) => {
|
|
|
504
441
|
}
|
|
505
442
|
const data = await parseBody(output.body, context);
|
|
506
443
|
let contents = {};
|
|
507
|
-
contents =
|
|
444
|
+
contents = (0, smithy_client_1._json)(data);
|
|
508
445
|
const response = {
|
|
509
446
|
$metadata: deserializeMetadata(output),
|
|
510
447
|
...contents,
|
|
511
448
|
};
|
|
512
|
-
return
|
|
449
|
+
return response;
|
|
513
450
|
};
|
|
514
451
|
exports.de_DescribeGroupCommand = de_DescribeGroupCommand;
|
|
515
452
|
const de_DescribeGroupCommandError = async (output, context) => {
|
|
@@ -536,10 +473,9 @@ const de_DescribeGroupCommandError = async (output, context) => {
|
|
|
536
473
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
537
474
|
default:
|
|
538
475
|
const parsedBody = parsedOutput.body;
|
|
539
|
-
|
|
476
|
+
return throwDefaultError({
|
|
540
477
|
output,
|
|
541
478
|
parsedBody,
|
|
542
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
543
479
|
errorCode,
|
|
544
480
|
});
|
|
545
481
|
}
|
|
@@ -550,12 +486,12 @@ const de_DescribeGroupMembershipCommand = async (output, context) => {
|
|
|
550
486
|
}
|
|
551
487
|
const data = await parseBody(output.body, context);
|
|
552
488
|
let contents = {};
|
|
553
|
-
contents =
|
|
489
|
+
contents = (0, smithy_client_1._json)(data);
|
|
554
490
|
const response = {
|
|
555
491
|
$metadata: deserializeMetadata(output),
|
|
556
492
|
...contents,
|
|
557
493
|
};
|
|
558
|
-
return
|
|
494
|
+
return response;
|
|
559
495
|
};
|
|
560
496
|
exports.de_DescribeGroupMembershipCommand = de_DescribeGroupMembershipCommand;
|
|
561
497
|
const de_DescribeGroupMembershipCommandError = async (output, context) => {
|
|
@@ -582,10 +518,9 @@ const de_DescribeGroupMembershipCommandError = async (output, context) => {
|
|
|
582
518
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
583
519
|
default:
|
|
584
520
|
const parsedBody = parsedOutput.body;
|
|
585
|
-
|
|
521
|
+
return throwDefaultError({
|
|
586
522
|
output,
|
|
587
523
|
parsedBody,
|
|
588
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
589
524
|
errorCode,
|
|
590
525
|
});
|
|
591
526
|
}
|
|
@@ -596,12 +531,12 @@ const de_DescribeUserCommand = async (output, context) => {
|
|
|
596
531
|
}
|
|
597
532
|
const data = await parseBody(output.body, context);
|
|
598
533
|
let contents = {};
|
|
599
|
-
contents =
|
|
534
|
+
contents = (0, smithy_client_1._json)(data);
|
|
600
535
|
const response = {
|
|
601
536
|
$metadata: deserializeMetadata(output),
|
|
602
537
|
...contents,
|
|
603
538
|
};
|
|
604
|
-
return
|
|
539
|
+
return response;
|
|
605
540
|
};
|
|
606
541
|
exports.de_DescribeUserCommand = de_DescribeUserCommand;
|
|
607
542
|
const de_DescribeUserCommandError = async (output, context) => {
|
|
@@ -628,10 +563,9 @@ const de_DescribeUserCommandError = async (output, context) => {
|
|
|
628
563
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
629
564
|
default:
|
|
630
565
|
const parsedBody = parsedOutput.body;
|
|
631
|
-
|
|
566
|
+
return throwDefaultError({
|
|
632
567
|
output,
|
|
633
568
|
parsedBody,
|
|
634
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
635
569
|
errorCode,
|
|
636
570
|
});
|
|
637
571
|
}
|
|
@@ -642,12 +576,12 @@ const de_GetGroupIdCommand = async (output, context) => {
|
|
|
642
576
|
}
|
|
643
577
|
const data = await parseBody(output.body, context);
|
|
644
578
|
let contents = {};
|
|
645
|
-
contents =
|
|
579
|
+
contents = (0, smithy_client_1._json)(data);
|
|
646
580
|
const response = {
|
|
647
581
|
$metadata: deserializeMetadata(output),
|
|
648
582
|
...contents,
|
|
649
583
|
};
|
|
650
|
-
return
|
|
584
|
+
return response;
|
|
651
585
|
};
|
|
652
586
|
exports.de_GetGroupIdCommand = de_GetGroupIdCommand;
|
|
653
587
|
const de_GetGroupIdCommandError = async (output, context) => {
|
|
@@ -674,10 +608,9 @@ const de_GetGroupIdCommandError = async (output, context) => {
|
|
|
674
608
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
675
609
|
default:
|
|
676
610
|
const parsedBody = parsedOutput.body;
|
|
677
|
-
|
|
611
|
+
return throwDefaultError({
|
|
678
612
|
output,
|
|
679
613
|
parsedBody,
|
|
680
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
681
614
|
errorCode,
|
|
682
615
|
});
|
|
683
616
|
}
|
|
@@ -688,12 +621,12 @@ const de_GetGroupMembershipIdCommand = async (output, context) => {
|
|
|
688
621
|
}
|
|
689
622
|
const data = await parseBody(output.body, context);
|
|
690
623
|
let contents = {};
|
|
691
|
-
contents =
|
|
624
|
+
contents = (0, smithy_client_1._json)(data);
|
|
692
625
|
const response = {
|
|
693
626
|
$metadata: deserializeMetadata(output),
|
|
694
627
|
...contents,
|
|
695
628
|
};
|
|
696
|
-
return
|
|
629
|
+
return response;
|
|
697
630
|
};
|
|
698
631
|
exports.de_GetGroupMembershipIdCommand = de_GetGroupMembershipIdCommand;
|
|
699
632
|
const de_GetGroupMembershipIdCommandError = async (output, context) => {
|
|
@@ -720,10 +653,9 @@ const de_GetGroupMembershipIdCommandError = async (output, context) => {
|
|
|
720
653
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
721
654
|
default:
|
|
722
655
|
const parsedBody = parsedOutput.body;
|
|
723
|
-
|
|
656
|
+
return throwDefaultError({
|
|
724
657
|
output,
|
|
725
658
|
parsedBody,
|
|
726
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
727
659
|
errorCode,
|
|
728
660
|
});
|
|
729
661
|
}
|
|
@@ -734,12 +666,12 @@ const de_GetUserIdCommand = async (output, context) => {
|
|
|
734
666
|
}
|
|
735
667
|
const data = await parseBody(output.body, context);
|
|
736
668
|
let contents = {};
|
|
737
|
-
contents =
|
|
669
|
+
contents = (0, smithy_client_1._json)(data);
|
|
738
670
|
const response = {
|
|
739
671
|
$metadata: deserializeMetadata(output),
|
|
740
672
|
...contents,
|
|
741
673
|
};
|
|
742
|
-
return
|
|
674
|
+
return response;
|
|
743
675
|
};
|
|
744
676
|
exports.de_GetUserIdCommand = de_GetUserIdCommand;
|
|
745
677
|
const de_GetUserIdCommandError = async (output, context) => {
|
|
@@ -766,10 +698,9 @@ const de_GetUserIdCommandError = async (output, context) => {
|
|
|
766
698
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
767
699
|
default:
|
|
768
700
|
const parsedBody = parsedOutput.body;
|
|
769
|
-
|
|
701
|
+
return throwDefaultError({
|
|
770
702
|
output,
|
|
771
703
|
parsedBody,
|
|
772
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
773
704
|
errorCode,
|
|
774
705
|
});
|
|
775
706
|
}
|
|
@@ -780,12 +711,12 @@ const de_IsMemberInGroupsCommand = async (output, context) => {
|
|
|
780
711
|
}
|
|
781
712
|
const data = await parseBody(output.body, context);
|
|
782
713
|
let contents = {};
|
|
783
|
-
contents =
|
|
714
|
+
contents = (0, smithy_client_1._json)(data);
|
|
784
715
|
const response = {
|
|
785
716
|
$metadata: deserializeMetadata(output),
|
|
786
717
|
...contents,
|
|
787
718
|
};
|
|
788
|
-
return
|
|
719
|
+
return response;
|
|
789
720
|
};
|
|
790
721
|
exports.de_IsMemberInGroupsCommand = de_IsMemberInGroupsCommand;
|
|
791
722
|
const de_IsMemberInGroupsCommandError = async (output, context) => {
|
|
@@ -812,10 +743,9 @@ const de_IsMemberInGroupsCommandError = async (output, context) => {
|
|
|
812
743
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
813
744
|
default:
|
|
814
745
|
const parsedBody = parsedOutput.body;
|
|
815
|
-
|
|
746
|
+
return throwDefaultError({
|
|
816
747
|
output,
|
|
817
748
|
parsedBody,
|
|
818
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
819
749
|
errorCode,
|
|
820
750
|
});
|
|
821
751
|
}
|
|
@@ -826,12 +756,12 @@ const de_ListGroupMembershipsCommand = async (output, context) => {
|
|
|
826
756
|
}
|
|
827
757
|
const data = await parseBody(output.body, context);
|
|
828
758
|
let contents = {};
|
|
829
|
-
contents =
|
|
759
|
+
contents = (0, smithy_client_1._json)(data);
|
|
830
760
|
const response = {
|
|
831
761
|
$metadata: deserializeMetadata(output),
|
|
832
762
|
...contents,
|
|
833
763
|
};
|
|
834
|
-
return
|
|
764
|
+
return response;
|
|
835
765
|
};
|
|
836
766
|
exports.de_ListGroupMembershipsCommand = de_ListGroupMembershipsCommand;
|
|
837
767
|
const de_ListGroupMembershipsCommandError = async (output, context) => {
|
|
@@ -858,10 +788,9 @@ const de_ListGroupMembershipsCommandError = async (output, context) => {
|
|
|
858
788
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
859
789
|
default:
|
|
860
790
|
const parsedBody = parsedOutput.body;
|
|
861
|
-
|
|
791
|
+
return throwDefaultError({
|
|
862
792
|
output,
|
|
863
793
|
parsedBody,
|
|
864
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
865
794
|
errorCode,
|
|
866
795
|
});
|
|
867
796
|
}
|
|
@@ -872,12 +801,12 @@ const de_ListGroupMembershipsForMemberCommand = async (output, context) => {
|
|
|
872
801
|
}
|
|
873
802
|
const data = await parseBody(output.body, context);
|
|
874
803
|
let contents = {};
|
|
875
|
-
contents =
|
|
804
|
+
contents = (0, smithy_client_1._json)(data);
|
|
876
805
|
const response = {
|
|
877
806
|
$metadata: deserializeMetadata(output),
|
|
878
807
|
...contents,
|
|
879
808
|
};
|
|
880
|
-
return
|
|
809
|
+
return response;
|
|
881
810
|
};
|
|
882
811
|
exports.de_ListGroupMembershipsForMemberCommand = de_ListGroupMembershipsForMemberCommand;
|
|
883
812
|
const de_ListGroupMembershipsForMemberCommandError = async (output, context) => {
|
|
@@ -904,10 +833,9 @@ const de_ListGroupMembershipsForMemberCommandError = async (output, context) =>
|
|
|
904
833
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
905
834
|
default:
|
|
906
835
|
const parsedBody = parsedOutput.body;
|
|
907
|
-
|
|
836
|
+
return throwDefaultError({
|
|
908
837
|
output,
|
|
909
838
|
parsedBody,
|
|
910
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
911
839
|
errorCode,
|
|
912
840
|
});
|
|
913
841
|
}
|
|
@@ -918,12 +846,12 @@ const de_ListGroupsCommand = async (output, context) => {
|
|
|
918
846
|
}
|
|
919
847
|
const data = await parseBody(output.body, context);
|
|
920
848
|
let contents = {};
|
|
921
|
-
contents =
|
|
849
|
+
contents = (0, smithy_client_1._json)(data);
|
|
922
850
|
const response = {
|
|
923
851
|
$metadata: deserializeMetadata(output),
|
|
924
852
|
...contents,
|
|
925
853
|
};
|
|
926
|
-
return
|
|
854
|
+
return response;
|
|
927
855
|
};
|
|
928
856
|
exports.de_ListGroupsCommand = de_ListGroupsCommand;
|
|
929
857
|
const de_ListGroupsCommandError = async (output, context) => {
|
|
@@ -950,10 +878,9 @@ const de_ListGroupsCommandError = async (output, context) => {
|
|
|
950
878
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
951
879
|
default:
|
|
952
880
|
const parsedBody = parsedOutput.body;
|
|
953
|
-
|
|
881
|
+
return throwDefaultError({
|
|
954
882
|
output,
|
|
955
883
|
parsedBody,
|
|
956
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
957
884
|
errorCode,
|
|
958
885
|
});
|
|
959
886
|
}
|
|
@@ -964,12 +891,12 @@ const de_ListUsersCommand = async (output, context) => {
|
|
|
964
891
|
}
|
|
965
892
|
const data = await parseBody(output.body, context);
|
|
966
893
|
let contents = {};
|
|
967
|
-
contents =
|
|
894
|
+
contents = (0, smithy_client_1._json)(data);
|
|
968
895
|
const response = {
|
|
969
896
|
$metadata: deserializeMetadata(output),
|
|
970
897
|
...contents,
|
|
971
898
|
};
|
|
972
|
-
return
|
|
899
|
+
return response;
|
|
973
900
|
};
|
|
974
901
|
exports.de_ListUsersCommand = de_ListUsersCommand;
|
|
975
902
|
const de_ListUsersCommandError = async (output, context) => {
|
|
@@ -996,10 +923,9 @@ const de_ListUsersCommandError = async (output, context) => {
|
|
|
996
923
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
997
924
|
default:
|
|
998
925
|
const parsedBody = parsedOutput.body;
|
|
999
|
-
|
|
926
|
+
return throwDefaultError({
|
|
1000
927
|
output,
|
|
1001
928
|
parsedBody,
|
|
1002
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
1003
929
|
errorCode,
|
|
1004
930
|
});
|
|
1005
931
|
}
|
|
@@ -1010,12 +936,12 @@ const de_UpdateGroupCommand = async (output, context) => {
|
|
|
1010
936
|
}
|
|
1011
937
|
const data = await parseBody(output.body, context);
|
|
1012
938
|
let contents = {};
|
|
1013
|
-
contents =
|
|
939
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1014
940
|
const response = {
|
|
1015
941
|
$metadata: deserializeMetadata(output),
|
|
1016
942
|
...contents,
|
|
1017
943
|
};
|
|
1018
|
-
return
|
|
944
|
+
return response;
|
|
1019
945
|
};
|
|
1020
946
|
exports.de_UpdateGroupCommand = de_UpdateGroupCommand;
|
|
1021
947
|
const de_UpdateGroupCommandError = async (output, context) => {
|
|
@@ -1048,10 +974,9 @@ const de_UpdateGroupCommandError = async (output, context) => {
|
|
|
1048
974
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1049
975
|
default:
|
|
1050
976
|
const parsedBody = parsedOutput.body;
|
|
1051
|
-
|
|
977
|
+
return throwDefaultError({
|
|
1052
978
|
output,
|
|
1053
979
|
parsedBody,
|
|
1054
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
1055
980
|
errorCode,
|
|
1056
981
|
});
|
|
1057
982
|
}
|
|
@@ -1062,12 +987,12 @@ const de_UpdateUserCommand = async (output, context) => {
|
|
|
1062
987
|
}
|
|
1063
988
|
const data = await parseBody(output.body, context);
|
|
1064
989
|
let contents = {};
|
|
1065
|
-
contents =
|
|
990
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1066
991
|
const response = {
|
|
1067
992
|
$metadata: deserializeMetadata(output),
|
|
1068
993
|
...contents,
|
|
1069
994
|
};
|
|
1070
|
-
return
|
|
995
|
+
return response;
|
|
1071
996
|
};
|
|
1072
997
|
exports.de_UpdateUserCommand = de_UpdateUserCommand;
|
|
1073
998
|
const de_UpdateUserCommandError = async (output, context) => {
|
|
@@ -1100,17 +1025,16 @@ const de_UpdateUserCommandError = async (output, context) => {
|
|
|
1100
1025
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1101
1026
|
default:
|
|
1102
1027
|
const parsedBody = parsedOutput.body;
|
|
1103
|
-
|
|
1028
|
+
return throwDefaultError({
|
|
1104
1029
|
output,
|
|
1105
1030
|
parsedBody,
|
|
1106
|
-
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
1107
1031
|
errorCode,
|
|
1108
1032
|
});
|
|
1109
1033
|
}
|
|
1110
1034
|
};
|
|
1111
1035
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1112
1036
|
const body = parsedOutput.body;
|
|
1113
|
-
const deserialized =
|
|
1037
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1114
1038
|
const exception = new models_0_1.AccessDeniedException({
|
|
1115
1039
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1116
1040
|
...deserialized,
|
|
@@ -1119,7 +1043,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1119
1043
|
};
|
|
1120
1044
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1121
1045
|
const body = parsedOutput.body;
|
|
1122
|
-
const deserialized =
|
|
1046
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1123
1047
|
const exception = new models_0_1.ConflictException({
|
|
1124
1048
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1125
1049
|
...deserialized,
|
|
@@ -1128,7 +1052,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1128
1052
|
};
|
|
1129
1053
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1130
1054
|
const body = parsedOutput.body;
|
|
1131
|
-
const deserialized =
|
|
1055
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1132
1056
|
const exception = new models_0_1.InternalServerException({
|
|
1133
1057
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1134
1058
|
...deserialized,
|
|
@@ -1137,7 +1061,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1137
1061
|
};
|
|
1138
1062
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1139
1063
|
const body = parsedOutput.body;
|
|
1140
|
-
const deserialized =
|
|
1064
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1141
1065
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1142
1066
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1143
1067
|
...deserialized,
|
|
@@ -1146,7 +1070,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1146
1070
|
};
|
|
1147
1071
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1148
1072
|
const body = parsedOutput.body;
|
|
1149
|
-
const deserialized =
|
|
1073
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1150
1074
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1151
1075
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1152
1076
|
...deserialized,
|
|
@@ -1155,7 +1079,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1155
1079
|
};
|
|
1156
1080
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1157
1081
|
const body = parsedOutput.body;
|
|
1158
|
-
const deserialized =
|
|
1082
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1159
1083
|
const exception = new models_0_1.ThrottlingException({
|
|
1160
1084
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1161
1085
|
...deserialized,
|
|
@@ -1164,44 +1088,25 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1164
1088
|
};
|
|
1165
1089
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1166
1090
|
const body = parsedOutput.body;
|
|
1167
|
-
const deserialized =
|
|
1091
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1168
1092
|
const exception = new models_0_1.ValidationException({
|
|
1169
1093
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1170
1094
|
...deserialized,
|
|
1171
1095
|
});
|
|
1172
1096
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1173
1097
|
};
|
|
1174
|
-
const se_Address = (input, context) => {
|
|
1175
|
-
return {
|
|
1176
|
-
...(input.Country != null && { Country: input.Country }),
|
|
1177
|
-
...(input.Formatted != null && { Formatted: input.Formatted }),
|
|
1178
|
-
...(input.Locality != null && { Locality: input.Locality }),
|
|
1179
|
-
...(input.PostalCode != null && { PostalCode: input.PostalCode }),
|
|
1180
|
-
...(input.Primary != null && { Primary: input.Primary }),
|
|
1181
|
-
...(input.Region != null && { Region: input.Region }),
|
|
1182
|
-
...(input.StreetAddress != null && { StreetAddress: input.StreetAddress }),
|
|
1183
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1184
|
-
};
|
|
1185
|
-
};
|
|
1186
|
-
const se_Addresses = (input, context) => {
|
|
1187
|
-
return input
|
|
1188
|
-
.filter((e) => e != null)
|
|
1189
|
-
.map((entry) => {
|
|
1190
|
-
return se_Address(entry, context);
|
|
1191
|
-
});
|
|
1192
|
-
};
|
|
1193
1098
|
const se_AlternateIdentifier = (input, context) => {
|
|
1194
1099
|
return models_0_1.AlternateIdentifier.visit(input, {
|
|
1195
|
-
ExternalId: (value) => ({ ExternalId:
|
|
1100
|
+
ExternalId: (value) => ({ ExternalId: (0, smithy_client_1._json)(value) }),
|
|
1196
1101
|
UniqueAttribute: (value) => ({ UniqueAttribute: se_UniqueAttribute(value, context) }),
|
|
1197
1102
|
_: (name, value) => ({ name: value }),
|
|
1198
1103
|
});
|
|
1199
1104
|
};
|
|
1200
1105
|
const se_AttributeOperation = (input, context) => {
|
|
1201
|
-
return {
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
};
|
|
1106
|
+
return (0, smithy_client_1.take)(input, {
|
|
1107
|
+
AttributePath: [],
|
|
1108
|
+
AttributeValue: (_) => se_AttributeValue(_, context),
|
|
1109
|
+
});
|
|
1205
1110
|
};
|
|
1206
1111
|
const se_AttributeOperations = (input, context) => {
|
|
1207
1112
|
return input
|
|
@@ -1213,569 +1118,37 @@ const se_AttributeOperations = (input, context) => {
|
|
|
1213
1118
|
const se_AttributeValue = (input, context) => {
|
|
1214
1119
|
return input;
|
|
1215
1120
|
};
|
|
1216
|
-
const se_CreateGroupMembershipRequest = (input, context) => {
|
|
1217
|
-
return {
|
|
1218
|
-
...(input.GroupId != null && { GroupId: input.GroupId }),
|
|
1219
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1220
|
-
...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
|
|
1221
|
-
};
|
|
1222
|
-
};
|
|
1223
|
-
const se_CreateGroupRequest = (input, context) => {
|
|
1224
|
-
return {
|
|
1225
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1226
|
-
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
1227
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1228
|
-
};
|
|
1229
|
-
};
|
|
1230
|
-
const se_CreateUserRequest = (input, context) => {
|
|
1231
|
-
return {
|
|
1232
|
-
...(input.Addresses != null && { Addresses: se_Addresses(input.Addresses, context) }),
|
|
1233
|
-
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
1234
|
-
...(input.Emails != null && { Emails: se_Emails(input.Emails, context) }),
|
|
1235
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1236
|
-
...(input.Locale != null && { Locale: input.Locale }),
|
|
1237
|
-
...(input.Name != null && { Name: se_Name(input.Name, context) }),
|
|
1238
|
-
...(input.NickName != null && { NickName: input.NickName }),
|
|
1239
|
-
...(input.PhoneNumbers != null && { PhoneNumbers: se_PhoneNumbers(input.PhoneNumbers, context) }),
|
|
1240
|
-
...(input.PreferredLanguage != null && { PreferredLanguage: input.PreferredLanguage }),
|
|
1241
|
-
...(input.ProfileUrl != null && { ProfileUrl: input.ProfileUrl }),
|
|
1242
|
-
...(input.Timezone != null && { Timezone: input.Timezone }),
|
|
1243
|
-
...(input.Title != null && { Title: input.Title }),
|
|
1244
|
-
...(input.UserName != null && { UserName: input.UserName }),
|
|
1245
|
-
...(input.UserType != null && { UserType: input.UserType }),
|
|
1246
|
-
};
|
|
1247
|
-
};
|
|
1248
|
-
const se_DeleteGroupMembershipRequest = (input, context) => {
|
|
1249
|
-
return {
|
|
1250
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1251
|
-
...(input.MembershipId != null && { MembershipId: input.MembershipId }),
|
|
1252
|
-
};
|
|
1253
|
-
};
|
|
1254
|
-
const se_DeleteGroupRequest = (input, context) => {
|
|
1255
|
-
return {
|
|
1256
|
-
...(input.GroupId != null && { GroupId: input.GroupId }),
|
|
1257
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1258
|
-
};
|
|
1259
|
-
};
|
|
1260
|
-
const se_DeleteUserRequest = (input, context) => {
|
|
1261
|
-
return {
|
|
1262
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1263
|
-
...(input.UserId != null && { UserId: input.UserId }),
|
|
1264
|
-
};
|
|
1265
|
-
};
|
|
1266
|
-
const se_DescribeGroupMembershipRequest = (input, context) => {
|
|
1267
|
-
return {
|
|
1268
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1269
|
-
...(input.MembershipId != null && { MembershipId: input.MembershipId }),
|
|
1270
|
-
};
|
|
1271
|
-
};
|
|
1272
|
-
const se_DescribeGroupRequest = (input, context) => {
|
|
1273
|
-
return {
|
|
1274
|
-
...(input.GroupId != null && { GroupId: input.GroupId }),
|
|
1275
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1276
|
-
};
|
|
1277
|
-
};
|
|
1278
|
-
const se_DescribeUserRequest = (input, context) => {
|
|
1279
|
-
return {
|
|
1280
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1281
|
-
...(input.UserId != null && { UserId: input.UserId }),
|
|
1282
|
-
};
|
|
1283
|
-
};
|
|
1284
|
-
const se_Email = (input, context) => {
|
|
1285
|
-
return {
|
|
1286
|
-
...(input.Primary != null && { Primary: input.Primary }),
|
|
1287
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1288
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1289
|
-
};
|
|
1290
|
-
};
|
|
1291
|
-
const se_Emails = (input, context) => {
|
|
1292
|
-
return input
|
|
1293
|
-
.filter((e) => e != null)
|
|
1294
|
-
.map((entry) => {
|
|
1295
|
-
return se_Email(entry, context);
|
|
1296
|
-
});
|
|
1297
|
-
};
|
|
1298
|
-
const se_ExternalId = (input, context) => {
|
|
1299
|
-
return {
|
|
1300
|
-
...(input.Id != null && { Id: input.Id }),
|
|
1301
|
-
...(input.Issuer != null && { Issuer: input.Issuer }),
|
|
1302
|
-
};
|
|
1303
|
-
};
|
|
1304
|
-
const se_Filter = (input, context) => {
|
|
1305
|
-
return {
|
|
1306
|
-
...(input.AttributePath != null && { AttributePath: input.AttributePath }),
|
|
1307
|
-
...(input.AttributeValue != null && { AttributeValue: input.AttributeValue }),
|
|
1308
|
-
};
|
|
1309
|
-
};
|
|
1310
|
-
const se_Filters = (input, context) => {
|
|
1311
|
-
return input
|
|
1312
|
-
.filter((e) => e != null)
|
|
1313
|
-
.map((entry) => {
|
|
1314
|
-
return se_Filter(entry, context);
|
|
1315
|
-
});
|
|
1316
|
-
};
|
|
1317
1121
|
const se_GetGroupIdRequest = (input, context) => {
|
|
1318
|
-
return {
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
}),
|
|
1322
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1323
|
-
};
|
|
1324
|
-
};
|
|
1325
|
-
const se_GetGroupMembershipIdRequest = (input, context) => {
|
|
1326
|
-
return {
|
|
1327
|
-
...(input.GroupId != null && { GroupId: input.GroupId }),
|
|
1328
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1329
|
-
...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
|
|
1330
|
-
};
|
|
1331
|
-
};
|
|
1332
|
-
const se_GetUserIdRequest = (input, context) => {
|
|
1333
|
-
return {
|
|
1334
|
-
...(input.AlternateIdentifier != null && {
|
|
1335
|
-
AlternateIdentifier: se_AlternateIdentifier(input.AlternateIdentifier, context),
|
|
1336
|
-
}),
|
|
1337
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1338
|
-
};
|
|
1339
|
-
};
|
|
1340
|
-
const se_GroupIds = (input, context) => {
|
|
1341
|
-
return input
|
|
1342
|
-
.filter((e) => e != null)
|
|
1343
|
-
.map((entry) => {
|
|
1344
|
-
return entry;
|
|
1122
|
+
return (0, smithy_client_1.take)(input, {
|
|
1123
|
+
AlternateIdentifier: (_) => se_AlternateIdentifier(_, context),
|
|
1124
|
+
IdentityStoreId: [],
|
|
1345
1125
|
});
|
|
1346
1126
|
};
|
|
1347
|
-
const
|
|
1348
|
-
return {
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
|
|
1352
|
-
};
|
|
1353
|
-
};
|
|
1354
|
-
const se_ListGroupMembershipsForMemberRequest = (input, context) => {
|
|
1355
|
-
return {
|
|
1356
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1357
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1358
|
-
...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
|
|
1359
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1360
|
-
};
|
|
1361
|
-
};
|
|
1362
|
-
const se_ListGroupMembershipsRequest = (input, context) => {
|
|
1363
|
-
return {
|
|
1364
|
-
...(input.GroupId != null && { GroupId: input.GroupId }),
|
|
1365
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1366
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1367
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1368
|
-
};
|
|
1369
|
-
};
|
|
1370
|
-
const se_ListGroupsRequest = (input, context) => {
|
|
1371
|
-
return {
|
|
1372
|
-
...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
|
|
1373
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1374
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1375
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1376
|
-
};
|
|
1377
|
-
};
|
|
1378
|
-
const se_ListUsersRequest = (input, context) => {
|
|
1379
|
-
return {
|
|
1380
|
-
...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
|
|
1381
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1382
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1383
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1384
|
-
};
|
|
1385
|
-
};
|
|
1386
|
-
const se_MemberId = (input, context) => {
|
|
1387
|
-
return models_0_1.MemberId.visit(input, {
|
|
1388
|
-
UserId: (value) => ({ UserId: value }),
|
|
1389
|
-
_: (name, value) => ({ name: value }),
|
|
1390
|
-
});
|
|
1391
|
-
};
|
|
1392
|
-
const se_Name = (input, context) => {
|
|
1393
|
-
return {
|
|
1394
|
-
...(input.FamilyName != null && { FamilyName: input.FamilyName }),
|
|
1395
|
-
...(input.Formatted != null && { Formatted: input.Formatted }),
|
|
1396
|
-
...(input.GivenName != null && { GivenName: input.GivenName }),
|
|
1397
|
-
...(input.HonorificPrefix != null && { HonorificPrefix: input.HonorificPrefix }),
|
|
1398
|
-
...(input.HonorificSuffix != null && { HonorificSuffix: input.HonorificSuffix }),
|
|
1399
|
-
...(input.MiddleName != null && { MiddleName: input.MiddleName }),
|
|
1400
|
-
};
|
|
1401
|
-
};
|
|
1402
|
-
const se_PhoneNumber = (input, context) => {
|
|
1403
|
-
return {
|
|
1404
|
-
...(input.Primary != null && { Primary: input.Primary }),
|
|
1405
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1406
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1407
|
-
};
|
|
1408
|
-
};
|
|
1409
|
-
const se_PhoneNumbers = (input, context) => {
|
|
1410
|
-
return input
|
|
1411
|
-
.filter((e) => e != null)
|
|
1412
|
-
.map((entry) => {
|
|
1413
|
-
return se_PhoneNumber(entry, context);
|
|
1127
|
+
const se_GetUserIdRequest = (input, context) => {
|
|
1128
|
+
return (0, smithy_client_1.take)(input, {
|
|
1129
|
+
AlternateIdentifier: (_) => se_AlternateIdentifier(_, context),
|
|
1130
|
+
IdentityStoreId: [],
|
|
1414
1131
|
});
|
|
1415
1132
|
};
|
|
1416
1133
|
const se_UniqueAttribute = (input, context) => {
|
|
1417
|
-
return {
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
};
|
|
1421
|
-
};
|
|
1422
|
-
const se_UpdateGroupRequest = (input, context) => {
|
|
1423
|
-
return {
|
|
1424
|
-
...(input.GroupId != null && { GroupId: input.GroupId }),
|
|
1425
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1426
|
-
...(input.Operations != null && { Operations: se_AttributeOperations(input.Operations, context) }),
|
|
1427
|
-
};
|
|
1428
|
-
};
|
|
1429
|
-
const se_UpdateUserRequest = (input, context) => {
|
|
1430
|
-
return {
|
|
1431
|
-
...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
|
|
1432
|
-
...(input.Operations != null && { Operations: se_AttributeOperations(input.Operations, context) }),
|
|
1433
|
-
...(input.UserId != null && { UserId: input.UserId }),
|
|
1434
|
-
};
|
|
1435
|
-
};
|
|
1436
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1437
|
-
return {
|
|
1438
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1439
|
-
RequestId: (0, smithy_client_1.expectString)(output.RequestId),
|
|
1440
|
-
};
|
|
1441
|
-
};
|
|
1442
|
-
const de_Address = (output, context) => {
|
|
1443
|
-
return {
|
|
1444
|
-
Country: (0, smithy_client_1.expectString)(output.Country),
|
|
1445
|
-
Formatted: (0, smithy_client_1.expectString)(output.Formatted),
|
|
1446
|
-
Locality: (0, smithy_client_1.expectString)(output.Locality),
|
|
1447
|
-
PostalCode: (0, smithy_client_1.expectString)(output.PostalCode),
|
|
1448
|
-
Primary: (0, smithy_client_1.expectBoolean)(output.Primary),
|
|
1449
|
-
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
1450
|
-
StreetAddress: (0, smithy_client_1.expectString)(output.StreetAddress),
|
|
1451
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1452
|
-
};
|
|
1453
|
-
};
|
|
1454
|
-
const de_Addresses = (output, context) => {
|
|
1455
|
-
const retVal = (output || [])
|
|
1456
|
-
.filter((e) => e != null)
|
|
1457
|
-
.map((entry) => {
|
|
1458
|
-
if (entry === null) {
|
|
1459
|
-
return null;
|
|
1460
|
-
}
|
|
1461
|
-
return de_Address(entry, context);
|
|
1462
|
-
});
|
|
1463
|
-
return retVal;
|
|
1464
|
-
};
|
|
1465
|
-
const de_ConflictException = (output, context) => {
|
|
1466
|
-
return {
|
|
1467
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1468
|
-
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
1469
|
-
RequestId: (0, smithy_client_1.expectString)(output.RequestId),
|
|
1470
|
-
};
|
|
1471
|
-
};
|
|
1472
|
-
const de_CreateGroupMembershipResponse = (output, context) => {
|
|
1473
|
-
return {
|
|
1474
|
-
IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
|
|
1475
|
-
MembershipId: (0, smithy_client_1.expectString)(output.MembershipId),
|
|
1476
|
-
};
|
|
1477
|
-
};
|
|
1478
|
-
const de_CreateGroupResponse = (output, context) => {
|
|
1479
|
-
return {
|
|
1480
|
-
GroupId: (0, smithy_client_1.expectString)(output.GroupId),
|
|
1481
|
-
IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
|
|
1482
|
-
};
|
|
1483
|
-
};
|
|
1484
|
-
const de_CreateUserResponse = (output, context) => {
|
|
1485
|
-
return {
|
|
1486
|
-
IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
|
|
1487
|
-
UserId: (0, smithy_client_1.expectString)(output.UserId),
|
|
1488
|
-
};
|
|
1489
|
-
};
|
|
1490
|
-
const de_DeleteGroupMembershipResponse = (output, context) => {
|
|
1491
|
-
return {};
|
|
1492
|
-
};
|
|
1493
|
-
const de_DeleteGroupResponse = (output, context) => {
|
|
1494
|
-
return {};
|
|
1495
|
-
};
|
|
1496
|
-
const de_DeleteUserResponse = (output, context) => {
|
|
1497
|
-
return {};
|
|
1498
|
-
};
|
|
1499
|
-
const de_DescribeGroupMembershipResponse = (output, context) => {
|
|
1500
|
-
return {
|
|
1501
|
-
GroupId: (0, smithy_client_1.expectString)(output.GroupId),
|
|
1502
|
-
IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
|
|
1503
|
-
MemberId: output.MemberId != null ? de_MemberId((0, smithy_client_1.expectUnion)(output.MemberId), context) : undefined,
|
|
1504
|
-
MembershipId: (0, smithy_client_1.expectString)(output.MembershipId),
|
|
1505
|
-
};
|
|
1506
|
-
};
|
|
1507
|
-
const de_DescribeGroupResponse = (output, context) => {
|
|
1508
|
-
return {
|
|
1509
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1510
|
-
DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
|
|
1511
|
-
ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
|
|
1512
|
-
GroupId: (0, smithy_client_1.expectString)(output.GroupId),
|
|
1513
|
-
IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
|
|
1514
|
-
};
|
|
1515
|
-
};
|
|
1516
|
-
const de_DescribeUserResponse = (output, context) => {
|
|
1517
|
-
return {
|
|
1518
|
-
Addresses: output.Addresses != null ? de_Addresses(output.Addresses, context) : undefined,
|
|
1519
|
-
DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
|
|
1520
|
-
Emails: output.Emails != null ? de_Emails(output.Emails, context) : undefined,
|
|
1521
|
-
ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
|
|
1522
|
-
IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
|
|
1523
|
-
Locale: (0, smithy_client_1.expectString)(output.Locale),
|
|
1524
|
-
Name: output.Name != null ? de_Name(output.Name, context) : undefined,
|
|
1525
|
-
NickName: (0, smithy_client_1.expectString)(output.NickName),
|
|
1526
|
-
PhoneNumbers: output.PhoneNumbers != null ? de_PhoneNumbers(output.PhoneNumbers, context) : undefined,
|
|
1527
|
-
PreferredLanguage: (0, smithy_client_1.expectString)(output.PreferredLanguage),
|
|
1528
|
-
ProfileUrl: (0, smithy_client_1.expectString)(output.ProfileUrl),
|
|
1529
|
-
Timezone: (0, smithy_client_1.expectString)(output.Timezone),
|
|
1530
|
-
Title: (0, smithy_client_1.expectString)(output.Title),
|
|
1531
|
-
UserId: (0, smithy_client_1.expectString)(output.UserId),
|
|
1532
|
-
UserName: (0, smithy_client_1.expectString)(output.UserName),
|
|
1533
|
-
UserType: (0, smithy_client_1.expectString)(output.UserType),
|
|
1534
|
-
};
|
|
1535
|
-
};
|
|
1536
|
-
const de_Email = (output, context) => {
|
|
1537
|
-
return {
|
|
1538
|
-
Primary: (0, smithy_client_1.expectBoolean)(output.Primary),
|
|
1539
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1540
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1541
|
-
};
|
|
1542
|
-
};
|
|
1543
|
-
const de_Emails = (output, context) => {
|
|
1544
|
-
const retVal = (output || [])
|
|
1545
|
-
.filter((e) => e != null)
|
|
1546
|
-
.map((entry) => {
|
|
1547
|
-
if (entry === null) {
|
|
1548
|
-
return null;
|
|
1549
|
-
}
|
|
1550
|
-
return de_Email(entry, context);
|
|
1551
|
-
});
|
|
1552
|
-
return retVal;
|
|
1553
|
-
};
|
|
1554
|
-
const de_ExternalId = (output, context) => {
|
|
1555
|
-
return {
|
|
1556
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1557
|
-
Issuer: (0, smithy_client_1.expectString)(output.Issuer),
|
|
1558
|
-
};
|
|
1559
|
-
};
|
|
1560
|
-
const de_ExternalIds = (output, context) => {
|
|
1561
|
-
const retVal = (output || [])
|
|
1562
|
-
.filter((e) => e != null)
|
|
1563
|
-
.map((entry) => {
|
|
1564
|
-
if (entry === null) {
|
|
1565
|
-
return null;
|
|
1566
|
-
}
|
|
1567
|
-
return de_ExternalId(entry, context);
|
|
1568
|
-
});
|
|
1569
|
-
return retVal;
|
|
1570
|
-
};
|
|
1571
|
-
const de_GetGroupIdResponse = (output, context) => {
|
|
1572
|
-
return {
|
|
1573
|
-
GroupId: (0, smithy_client_1.expectString)(output.GroupId),
|
|
1574
|
-
IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
|
|
1575
|
-
};
|
|
1576
|
-
};
|
|
1577
|
-
const de_GetGroupMembershipIdResponse = (output, context) => {
|
|
1578
|
-
return {
|
|
1579
|
-
IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
|
|
1580
|
-
MembershipId: (0, smithy_client_1.expectString)(output.MembershipId),
|
|
1581
|
-
};
|
|
1582
|
-
};
|
|
1583
|
-
const de_GetUserIdResponse = (output, context) => {
|
|
1584
|
-
return {
|
|
1585
|
-
IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
|
|
1586
|
-
UserId: (0, smithy_client_1.expectString)(output.UserId),
|
|
1587
|
-
};
|
|
1588
|
-
};
|
|
1589
|
-
const de_Group = (output, context) => {
|
|
1590
|
-
return {
|
|
1591
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1592
|
-
DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
|
|
1593
|
-
ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
|
|
1594
|
-
GroupId: (0, smithy_client_1.expectString)(output.GroupId),
|
|
1595
|
-
IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
|
|
1596
|
-
};
|
|
1597
|
-
};
|
|
1598
|
-
const de_GroupMembership = (output, context) => {
|
|
1599
|
-
return {
|
|
1600
|
-
GroupId: (0, smithy_client_1.expectString)(output.GroupId),
|
|
1601
|
-
IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
|
|
1602
|
-
MemberId: output.MemberId != null ? de_MemberId((0, smithy_client_1.expectUnion)(output.MemberId), context) : undefined,
|
|
1603
|
-
MembershipId: (0, smithy_client_1.expectString)(output.MembershipId),
|
|
1604
|
-
};
|
|
1605
|
-
};
|
|
1606
|
-
const de_GroupMembershipExistenceResult = (output, context) => {
|
|
1607
|
-
return {
|
|
1608
|
-
GroupId: (0, smithy_client_1.expectString)(output.GroupId),
|
|
1609
|
-
MemberId: output.MemberId != null ? de_MemberId((0, smithy_client_1.expectUnion)(output.MemberId), context) : undefined,
|
|
1610
|
-
MembershipExists: (0, smithy_client_1.expectBoolean)(output.MembershipExists),
|
|
1611
|
-
};
|
|
1612
|
-
};
|
|
1613
|
-
const de_GroupMembershipExistenceResults = (output, context) => {
|
|
1614
|
-
const retVal = (output || [])
|
|
1615
|
-
.filter((e) => e != null)
|
|
1616
|
-
.map((entry) => {
|
|
1617
|
-
if (entry === null) {
|
|
1618
|
-
return null;
|
|
1619
|
-
}
|
|
1620
|
-
return de_GroupMembershipExistenceResult(entry, context);
|
|
1621
|
-
});
|
|
1622
|
-
return retVal;
|
|
1623
|
-
};
|
|
1624
|
-
const de_GroupMemberships = (output, context) => {
|
|
1625
|
-
const retVal = (output || [])
|
|
1626
|
-
.filter((e) => e != null)
|
|
1627
|
-
.map((entry) => {
|
|
1628
|
-
if (entry === null) {
|
|
1629
|
-
return null;
|
|
1630
|
-
}
|
|
1631
|
-
return de_GroupMembership(entry, context);
|
|
1134
|
+
return (0, smithy_client_1.take)(input, {
|
|
1135
|
+
AttributePath: [],
|
|
1136
|
+
AttributeValue: (_) => se_AttributeValue(_, context),
|
|
1632
1137
|
});
|
|
1633
|
-
return retVal;
|
|
1634
|
-
};
|
|
1635
|
-
const de_Groups = (output, context) => {
|
|
1636
|
-
const retVal = (output || [])
|
|
1637
|
-
.filter((e) => e != null)
|
|
1638
|
-
.map((entry) => {
|
|
1639
|
-
if (entry === null) {
|
|
1640
|
-
return null;
|
|
1641
|
-
}
|
|
1642
|
-
return de_Group(entry, context);
|
|
1643
|
-
});
|
|
1644
|
-
return retVal;
|
|
1645
|
-
};
|
|
1646
|
-
const de_InternalServerException = (output, context) => {
|
|
1647
|
-
return {
|
|
1648
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1649
|
-
RequestId: (0, smithy_client_1.expectString)(output.RequestId),
|
|
1650
|
-
RetryAfterSeconds: (0, smithy_client_1.expectInt32)(output.RetryAfterSeconds),
|
|
1651
|
-
};
|
|
1652
|
-
};
|
|
1653
|
-
const de_IsMemberInGroupsResponse = (output, context) => {
|
|
1654
|
-
return {
|
|
1655
|
-
Results: output.Results != null ? de_GroupMembershipExistenceResults(output.Results, context) : undefined,
|
|
1656
|
-
};
|
|
1657
|
-
};
|
|
1658
|
-
const de_ListGroupMembershipsForMemberResponse = (output, context) => {
|
|
1659
|
-
return {
|
|
1660
|
-
GroupMemberships: output.GroupMemberships != null ? de_GroupMemberships(output.GroupMemberships, context) : undefined,
|
|
1661
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1662
|
-
};
|
|
1663
|
-
};
|
|
1664
|
-
const de_ListGroupMembershipsResponse = (output, context) => {
|
|
1665
|
-
return {
|
|
1666
|
-
GroupMemberships: output.GroupMemberships != null ? de_GroupMemberships(output.GroupMemberships, context) : undefined,
|
|
1667
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1668
|
-
};
|
|
1669
|
-
};
|
|
1670
|
-
const de_ListGroupsResponse = (output, context) => {
|
|
1671
|
-
return {
|
|
1672
|
-
Groups: output.Groups != null ? de_Groups(output.Groups, context) : undefined,
|
|
1673
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1674
|
-
};
|
|
1675
|
-
};
|
|
1676
|
-
const de_ListUsersResponse = (output, context) => {
|
|
1677
|
-
return {
|
|
1678
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1679
|
-
Users: output.Users != null ? de_Users(output.Users, context) : undefined,
|
|
1680
|
-
};
|
|
1681
|
-
};
|
|
1682
|
-
const de_MemberId = (output, context) => {
|
|
1683
|
-
if ((0, smithy_client_1.expectString)(output.UserId) !== undefined) {
|
|
1684
|
-
return { UserId: (0, smithy_client_1.expectString)(output.UserId) };
|
|
1685
|
-
}
|
|
1686
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1687
1138
|
};
|
|
1688
|
-
const
|
|
1689
|
-
return {
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
HonorificPrefix: (0, smithy_client_1.expectString)(output.HonorificPrefix),
|
|
1694
|
-
HonorificSuffix: (0, smithy_client_1.expectString)(output.HonorificSuffix),
|
|
1695
|
-
MiddleName: (0, smithy_client_1.expectString)(output.MiddleName),
|
|
1696
|
-
};
|
|
1697
|
-
};
|
|
1698
|
-
const de_PhoneNumber = (output, context) => {
|
|
1699
|
-
return {
|
|
1700
|
-
Primary: (0, smithy_client_1.expectBoolean)(output.Primary),
|
|
1701
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1702
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1703
|
-
};
|
|
1704
|
-
};
|
|
1705
|
-
const de_PhoneNumbers = (output, context) => {
|
|
1706
|
-
const retVal = (output || [])
|
|
1707
|
-
.filter((e) => e != null)
|
|
1708
|
-
.map((entry) => {
|
|
1709
|
-
if (entry === null) {
|
|
1710
|
-
return null;
|
|
1711
|
-
}
|
|
1712
|
-
return de_PhoneNumber(entry, context);
|
|
1139
|
+
const se_UpdateGroupRequest = (input, context) => {
|
|
1140
|
+
return (0, smithy_client_1.take)(input, {
|
|
1141
|
+
GroupId: [],
|
|
1142
|
+
IdentityStoreId: [],
|
|
1143
|
+
Operations: (_) => se_AttributeOperations(_, context),
|
|
1713
1144
|
});
|
|
1714
|
-
return retVal;
|
|
1715
|
-
};
|
|
1716
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1717
|
-
return {
|
|
1718
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1719
|
-
RequestId: (0, smithy_client_1.expectString)(output.RequestId),
|
|
1720
|
-
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
1721
|
-
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
1722
|
-
};
|
|
1723
|
-
};
|
|
1724
|
-
const de_ServiceQuotaExceededException = (output, context) => {
|
|
1725
|
-
return {
|
|
1726
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1727
|
-
RequestId: (0, smithy_client_1.expectString)(output.RequestId),
|
|
1728
|
-
};
|
|
1729
|
-
};
|
|
1730
|
-
const de_ThrottlingException = (output, context) => {
|
|
1731
|
-
return {
|
|
1732
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1733
|
-
RequestId: (0, smithy_client_1.expectString)(output.RequestId),
|
|
1734
|
-
RetryAfterSeconds: (0, smithy_client_1.expectInt32)(output.RetryAfterSeconds),
|
|
1735
|
-
};
|
|
1736
|
-
};
|
|
1737
|
-
const de_UpdateGroupResponse = (output, context) => {
|
|
1738
|
-
return {};
|
|
1739
|
-
};
|
|
1740
|
-
const de_UpdateUserResponse = (output, context) => {
|
|
1741
|
-
return {};
|
|
1742
1145
|
};
|
|
1743
|
-
const
|
|
1744
|
-
return {
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
|
|
1749
|
-
IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
|
|
1750
|
-
Locale: (0, smithy_client_1.expectString)(output.Locale),
|
|
1751
|
-
Name: output.Name != null ? de_Name(output.Name, context) : undefined,
|
|
1752
|
-
NickName: (0, smithy_client_1.expectString)(output.NickName),
|
|
1753
|
-
PhoneNumbers: output.PhoneNumbers != null ? de_PhoneNumbers(output.PhoneNumbers, context) : undefined,
|
|
1754
|
-
PreferredLanguage: (0, smithy_client_1.expectString)(output.PreferredLanguage),
|
|
1755
|
-
ProfileUrl: (0, smithy_client_1.expectString)(output.ProfileUrl),
|
|
1756
|
-
Timezone: (0, smithy_client_1.expectString)(output.Timezone),
|
|
1757
|
-
Title: (0, smithy_client_1.expectString)(output.Title),
|
|
1758
|
-
UserId: (0, smithy_client_1.expectString)(output.UserId),
|
|
1759
|
-
UserName: (0, smithy_client_1.expectString)(output.UserName),
|
|
1760
|
-
UserType: (0, smithy_client_1.expectString)(output.UserType),
|
|
1761
|
-
};
|
|
1762
|
-
};
|
|
1763
|
-
const de_Users = (output, context) => {
|
|
1764
|
-
const retVal = (output || [])
|
|
1765
|
-
.filter((e) => e != null)
|
|
1766
|
-
.map((entry) => {
|
|
1767
|
-
if (entry === null) {
|
|
1768
|
-
return null;
|
|
1769
|
-
}
|
|
1770
|
-
return de_User(entry, context);
|
|
1146
|
+
const se_UpdateUserRequest = (input, context) => {
|
|
1147
|
+
return (0, smithy_client_1.take)(input, {
|
|
1148
|
+
IdentityStoreId: [],
|
|
1149
|
+
Operations: (_) => se_AttributeOperations(_, context),
|
|
1150
|
+
UserId: [],
|
|
1771
1151
|
});
|
|
1772
|
-
return retVal;
|
|
1773
|
-
};
|
|
1774
|
-
const de_ValidationException = (output, context) => {
|
|
1775
|
-
return {
|
|
1776
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1777
|
-
RequestId: (0, smithy_client_1.expectString)(output.RequestId),
|
|
1778
|
-
};
|
|
1779
1152
|
};
|
|
1780
1153
|
const deserializeMetadata = (output) => ({
|
|
1781
1154
|
httpStatusCode: output.statusCode,
|
|
@@ -1790,6 +1163,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1790
1163
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1791
1164
|
};
|
|
1792
1165
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1166
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(IdentitystoreServiceException_1.IdentitystoreServiceException);
|
|
1793
1167
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1794
1168
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1795
1169
|
const contents = {
|
|
@@ -1808,6 +1182,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1808
1182
|
}
|
|
1809
1183
|
return new protocol_http_1.HttpRequest(contents);
|
|
1810
1184
|
};
|
|
1185
|
+
function sharedHeaders(operation) {
|
|
1186
|
+
return {
|
|
1187
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1188
|
+
"x-amz-target": `AWSIdentityStore.${operation}`,
|
|
1189
|
+
};
|
|
1190
|
+
}
|
|
1811
1191
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1812
1192
|
if (encoded.length) {
|
|
1813
1193
|
return JSON.parse(encoded);
|