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