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