@aws-sdk/client-identitystore 3.161.0 → 3.165.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.
Files changed (94) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/Identitystore.js +225 -0
  4. package/dist-cjs/commands/CreateGroupCommand.js +36 -0
  5. package/dist-cjs/commands/CreateGroupMembershipCommand.js +36 -0
  6. package/dist-cjs/commands/CreateUserCommand.js +36 -0
  7. package/dist-cjs/commands/DeleteGroupCommand.js +36 -0
  8. package/dist-cjs/commands/DeleteGroupMembershipCommand.js +36 -0
  9. package/dist-cjs/commands/DeleteUserCommand.js +36 -0
  10. package/dist-cjs/commands/DescribeGroupMembershipCommand.js +36 -0
  11. package/dist-cjs/commands/GetGroupIdCommand.js +36 -0
  12. package/dist-cjs/commands/GetGroupMembershipIdCommand.js +36 -0
  13. package/dist-cjs/commands/GetUserIdCommand.js +36 -0
  14. package/dist-cjs/commands/IsMemberInGroupsCommand.js +36 -0
  15. package/dist-cjs/commands/ListGroupMembershipsCommand.js +36 -0
  16. package/dist-cjs/commands/ListGroupMembershipsForMemberCommand.js +36 -0
  17. package/dist-cjs/commands/UpdateGroupCommand.js +36 -0
  18. package/dist-cjs/commands/UpdateUserCommand.js +36 -0
  19. package/dist-cjs/commands/index.js +15 -0
  20. package/dist-cjs/models/models_0.js +360 -35
  21. package/dist-cjs/pagination/ListGroupMembershipsForMemberPaginator.js +36 -0
  22. package/dist-cjs/pagination/ListGroupMembershipsPaginator.js +36 -0
  23. package/dist-cjs/pagination/index.js +2 -0
  24. package/dist-cjs/protocols/Aws_json1_1.js +1478 -93
  25. package/dist-es/Identitystore.js +225 -0
  26. package/dist-es/commands/CreateGroupCommand.js +39 -0
  27. package/dist-es/commands/CreateGroupMembershipCommand.js +39 -0
  28. package/dist-es/commands/CreateUserCommand.js +39 -0
  29. package/dist-es/commands/DeleteGroupCommand.js +39 -0
  30. package/dist-es/commands/DeleteGroupMembershipCommand.js +39 -0
  31. package/dist-es/commands/DeleteUserCommand.js +39 -0
  32. package/dist-es/commands/DescribeGroupMembershipCommand.js +39 -0
  33. package/dist-es/commands/GetGroupIdCommand.js +39 -0
  34. package/dist-es/commands/GetGroupMembershipIdCommand.js +39 -0
  35. package/dist-es/commands/GetUserIdCommand.js +39 -0
  36. package/dist-es/commands/IsMemberInGroupsCommand.js +39 -0
  37. package/dist-es/commands/ListGroupMembershipsCommand.js +39 -0
  38. package/dist-es/commands/ListGroupMembershipsForMemberCommand.js +39 -0
  39. package/dist-es/commands/UpdateGroupCommand.js +39 -0
  40. package/dist-es/commands/UpdateUserCommand.js +39 -0
  41. package/dist-es/commands/index.js +15 -0
  42. package/dist-es/models/models_0.js +156 -34
  43. package/dist-es/pagination/ListGroupMembershipsForMemberPaginator.js +75 -0
  44. package/dist-es/pagination/ListGroupMembershipsPaginator.js +75 -0
  45. package/dist-es/pagination/index.js +2 -0
  46. package/dist-es/protocols/Aws_json1_1.js +1678 -50
  47. package/dist-types/Identitystore.d.ts +106 -2
  48. package/dist-types/IdentitystoreClient.d.ts +17 -2
  49. package/dist-types/commands/CreateGroupCommand.d.ts +35 -0
  50. package/dist-types/commands/CreateGroupMembershipCommand.d.ts +35 -0
  51. package/dist-types/commands/CreateUserCommand.d.ts +35 -0
  52. package/dist-types/commands/DeleteGroupCommand.d.ts +35 -0
  53. package/dist-types/commands/DeleteGroupMembershipCommand.d.ts +35 -0
  54. package/dist-types/commands/DeleteUserCommand.d.ts +35 -0
  55. package/dist-types/commands/DescribeGroupMembershipCommand.d.ts +35 -0
  56. package/dist-types/commands/DescribeUserCommand.d.ts +1 -2
  57. package/dist-types/commands/GetGroupIdCommand.d.ts +35 -0
  58. package/dist-types/commands/GetGroupMembershipIdCommand.d.ts +35 -0
  59. package/dist-types/commands/GetUserIdCommand.d.ts +35 -0
  60. package/dist-types/commands/IsMemberInGroupsCommand.d.ts +35 -0
  61. package/dist-types/commands/ListGroupMembershipsCommand.d.ts +35 -0
  62. package/dist-types/commands/ListGroupMembershipsForMemberCommand.d.ts +35 -0
  63. package/dist-types/commands/UpdateGroupCommand.d.ts +35 -0
  64. package/dist-types/commands/UpdateUserCommand.d.ts +35 -0
  65. package/dist-types/commands/index.d.ts +15 -0
  66. package/dist-types/models/models_0.d.ts +1122 -125
  67. package/dist-types/pagination/ListGroupMembershipsForMemberPaginator.d.ts +4 -0
  68. package/dist-types/pagination/ListGroupMembershipsPaginator.d.ts +4 -0
  69. package/dist-types/pagination/index.d.ts +2 -0
  70. package/dist-types/protocols/Aws_json1_1.d.ts +45 -0
  71. package/dist-types/ts3.4/Identitystore.d.ts +75 -0
  72. package/dist-types/ts3.4/IdentitystoreClient.d.ts +17 -2
  73. package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/CreateGroupMembershipCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +17 -0
  77. package/dist-types/ts3.4/commands/DeleteGroupMembershipCommand.d.ts +17 -0
  78. package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +17 -0
  79. package/dist-types/ts3.4/commands/DescribeGroupMembershipCommand.d.ts +17 -0
  80. package/dist-types/ts3.4/commands/GetGroupIdCommand.d.ts +17 -0
  81. package/dist-types/ts3.4/commands/GetGroupMembershipIdCommand.d.ts +17 -0
  82. package/dist-types/ts3.4/commands/GetUserIdCommand.d.ts +17 -0
  83. package/dist-types/ts3.4/commands/IsMemberInGroupsCommand.d.ts +17 -0
  84. package/dist-types/ts3.4/commands/ListGroupMembershipsCommand.d.ts +17 -0
  85. package/dist-types/ts3.4/commands/ListGroupMembershipsForMemberCommand.d.ts +17 -0
  86. package/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +17 -0
  87. package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +17 -0
  88. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  89. package/dist-types/ts3.4/models/models_0.d.ts +565 -29
  90. package/dist-types/ts3.4/pagination/ListGroupMembershipsForMemberPaginator.d.ts +4 -0
  91. package/dist-types/ts3.4/pagination/ListGroupMembershipsPaginator.d.ts +4 -0
  92. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  93. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +45 -0
  94. package/package.json +26 -26
@@ -1,10 +1,70 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_json1_1ListUsersCommand = exports.deserializeAws_json1_1ListGroupsCommand = exports.deserializeAws_json1_1DescribeUserCommand = exports.deserializeAws_json1_1DescribeGroupCommand = exports.serializeAws_json1_1ListUsersCommand = exports.serializeAws_json1_1ListGroupsCommand = exports.serializeAws_json1_1DescribeUserCommand = exports.serializeAws_json1_1DescribeGroupCommand = void 0;
3
+ exports.deserializeAws_json1_1UpdateUserCommand = exports.deserializeAws_json1_1UpdateGroupCommand = exports.deserializeAws_json1_1ListUsersCommand = exports.deserializeAws_json1_1ListGroupsCommand = exports.deserializeAws_json1_1ListGroupMembershipsForMemberCommand = exports.deserializeAws_json1_1ListGroupMembershipsCommand = exports.deserializeAws_json1_1IsMemberInGroupsCommand = exports.deserializeAws_json1_1GetUserIdCommand = exports.deserializeAws_json1_1GetGroupMembershipIdCommand = exports.deserializeAws_json1_1GetGroupIdCommand = exports.deserializeAws_json1_1DescribeUserCommand = exports.deserializeAws_json1_1DescribeGroupMembershipCommand = exports.deserializeAws_json1_1DescribeGroupCommand = exports.deserializeAws_json1_1DeleteUserCommand = exports.deserializeAws_json1_1DeleteGroupMembershipCommand = exports.deserializeAws_json1_1DeleteGroupCommand = exports.deserializeAws_json1_1CreateUserCommand = exports.deserializeAws_json1_1CreateGroupMembershipCommand = exports.deserializeAws_json1_1CreateGroupCommand = exports.serializeAws_json1_1UpdateUserCommand = exports.serializeAws_json1_1UpdateGroupCommand = exports.serializeAws_json1_1ListUsersCommand = exports.serializeAws_json1_1ListGroupsCommand = exports.serializeAws_json1_1ListGroupMembershipsForMemberCommand = exports.serializeAws_json1_1ListGroupMembershipsCommand = exports.serializeAws_json1_1IsMemberInGroupsCommand = exports.serializeAws_json1_1GetUserIdCommand = exports.serializeAws_json1_1GetGroupMembershipIdCommand = exports.serializeAws_json1_1GetGroupIdCommand = exports.serializeAws_json1_1DescribeUserCommand = exports.serializeAws_json1_1DescribeGroupMembershipCommand = exports.serializeAws_json1_1DescribeGroupCommand = exports.serializeAws_json1_1DeleteUserCommand = exports.serializeAws_json1_1DeleteGroupMembershipCommand = exports.serializeAws_json1_1DeleteGroupCommand = exports.serializeAws_json1_1CreateUserCommand = exports.serializeAws_json1_1CreateGroupMembershipCommand = exports.serializeAws_json1_1CreateGroupCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const IdentitystoreServiceException_1 = require("../models/IdentitystoreServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
+ const serializeAws_json1_1CreateGroupCommand = async (input, context) => {
9
+ const headers = {
10
+ "content-type": "application/x-amz-json-1.1",
11
+ "x-amz-target": "AWSIdentityStore.CreateGroup",
12
+ };
13
+ let body;
14
+ body = JSON.stringify(serializeAws_json1_1CreateGroupRequest(input, context));
15
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
+ };
17
+ exports.serializeAws_json1_1CreateGroupCommand = serializeAws_json1_1CreateGroupCommand;
18
+ const serializeAws_json1_1CreateGroupMembershipCommand = async (input, context) => {
19
+ const headers = {
20
+ "content-type": "application/x-amz-json-1.1",
21
+ "x-amz-target": "AWSIdentityStore.CreateGroupMembership",
22
+ };
23
+ let body;
24
+ body = JSON.stringify(serializeAws_json1_1CreateGroupMembershipRequest(input, context));
25
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
26
+ };
27
+ exports.serializeAws_json1_1CreateGroupMembershipCommand = serializeAws_json1_1CreateGroupMembershipCommand;
28
+ const serializeAws_json1_1CreateUserCommand = async (input, context) => {
29
+ const headers = {
30
+ "content-type": "application/x-amz-json-1.1",
31
+ "x-amz-target": "AWSIdentityStore.CreateUser",
32
+ };
33
+ let body;
34
+ body = JSON.stringify(serializeAws_json1_1CreateUserRequest(input, context));
35
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
+ };
37
+ exports.serializeAws_json1_1CreateUserCommand = serializeAws_json1_1CreateUserCommand;
38
+ const serializeAws_json1_1DeleteGroupCommand = async (input, context) => {
39
+ const headers = {
40
+ "content-type": "application/x-amz-json-1.1",
41
+ "x-amz-target": "AWSIdentityStore.DeleteGroup",
42
+ };
43
+ let body;
44
+ body = JSON.stringify(serializeAws_json1_1DeleteGroupRequest(input, context));
45
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
+ };
47
+ exports.serializeAws_json1_1DeleteGroupCommand = serializeAws_json1_1DeleteGroupCommand;
48
+ const serializeAws_json1_1DeleteGroupMembershipCommand = async (input, context) => {
49
+ const headers = {
50
+ "content-type": "application/x-amz-json-1.1",
51
+ "x-amz-target": "AWSIdentityStore.DeleteGroupMembership",
52
+ };
53
+ let body;
54
+ body = JSON.stringify(serializeAws_json1_1DeleteGroupMembershipRequest(input, context));
55
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
+ };
57
+ exports.serializeAws_json1_1DeleteGroupMembershipCommand = serializeAws_json1_1DeleteGroupMembershipCommand;
58
+ const serializeAws_json1_1DeleteUserCommand = async (input, context) => {
59
+ const headers = {
60
+ "content-type": "application/x-amz-json-1.1",
61
+ "x-amz-target": "AWSIdentityStore.DeleteUser",
62
+ };
63
+ let body;
64
+ body = JSON.stringify(serializeAws_json1_1DeleteUserRequest(input, context));
65
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
+ };
67
+ exports.serializeAws_json1_1DeleteUserCommand = serializeAws_json1_1DeleteUserCommand;
8
68
  const serializeAws_json1_1DescribeGroupCommand = async (input, context) => {
9
69
  const headers = {
10
70
  "content-type": "application/x-amz-json-1.1",
@@ -15,6 +75,16 @@ const serializeAws_json1_1DescribeGroupCommand = async (input, context) => {
15
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
76
  };
17
77
  exports.serializeAws_json1_1DescribeGroupCommand = serializeAws_json1_1DescribeGroupCommand;
78
+ const serializeAws_json1_1DescribeGroupMembershipCommand = async (input, context) => {
79
+ const headers = {
80
+ "content-type": "application/x-amz-json-1.1",
81
+ "x-amz-target": "AWSIdentityStore.DescribeGroupMembership",
82
+ };
83
+ let body;
84
+ body = JSON.stringify(serializeAws_json1_1DescribeGroupMembershipRequest(input, context));
85
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
86
+ };
87
+ exports.serializeAws_json1_1DescribeGroupMembershipCommand = serializeAws_json1_1DescribeGroupMembershipCommand;
18
88
  const serializeAws_json1_1DescribeUserCommand = async (input, context) => {
19
89
  const headers = {
20
90
  "content-type": "application/x-amz-json-1.1",
@@ -25,6 +95,66 @@ const serializeAws_json1_1DescribeUserCommand = async (input, context) => {
25
95
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
26
96
  };
27
97
  exports.serializeAws_json1_1DescribeUserCommand = serializeAws_json1_1DescribeUserCommand;
98
+ const serializeAws_json1_1GetGroupIdCommand = async (input, context) => {
99
+ const headers = {
100
+ "content-type": "application/x-amz-json-1.1",
101
+ "x-amz-target": "AWSIdentityStore.GetGroupId",
102
+ };
103
+ let body;
104
+ body = JSON.stringify(serializeAws_json1_1GetGroupIdRequest(input, context));
105
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
+ };
107
+ exports.serializeAws_json1_1GetGroupIdCommand = serializeAws_json1_1GetGroupIdCommand;
108
+ const serializeAws_json1_1GetGroupMembershipIdCommand = async (input, context) => {
109
+ const headers = {
110
+ "content-type": "application/x-amz-json-1.1",
111
+ "x-amz-target": "AWSIdentityStore.GetGroupMembershipId",
112
+ };
113
+ let body;
114
+ body = JSON.stringify(serializeAws_json1_1GetGroupMembershipIdRequest(input, context));
115
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
116
+ };
117
+ exports.serializeAws_json1_1GetGroupMembershipIdCommand = serializeAws_json1_1GetGroupMembershipIdCommand;
118
+ const serializeAws_json1_1GetUserIdCommand = async (input, context) => {
119
+ const headers = {
120
+ "content-type": "application/x-amz-json-1.1",
121
+ "x-amz-target": "AWSIdentityStore.GetUserId",
122
+ };
123
+ let body;
124
+ body = JSON.stringify(serializeAws_json1_1GetUserIdRequest(input, context));
125
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
+ };
127
+ exports.serializeAws_json1_1GetUserIdCommand = serializeAws_json1_1GetUserIdCommand;
128
+ const serializeAws_json1_1IsMemberInGroupsCommand = async (input, context) => {
129
+ const headers = {
130
+ "content-type": "application/x-amz-json-1.1",
131
+ "x-amz-target": "AWSIdentityStore.IsMemberInGroups",
132
+ };
133
+ let body;
134
+ body = JSON.stringify(serializeAws_json1_1IsMemberInGroupsRequest(input, context));
135
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
136
+ };
137
+ exports.serializeAws_json1_1IsMemberInGroupsCommand = serializeAws_json1_1IsMemberInGroupsCommand;
138
+ const serializeAws_json1_1ListGroupMembershipsCommand = async (input, context) => {
139
+ const headers = {
140
+ "content-type": "application/x-amz-json-1.1",
141
+ "x-amz-target": "AWSIdentityStore.ListGroupMemberships",
142
+ };
143
+ let body;
144
+ body = JSON.stringify(serializeAws_json1_1ListGroupMembershipsRequest(input, context));
145
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
146
+ };
147
+ exports.serializeAws_json1_1ListGroupMembershipsCommand = serializeAws_json1_1ListGroupMembershipsCommand;
148
+ const serializeAws_json1_1ListGroupMembershipsForMemberCommand = async (input, context) => {
149
+ const headers = {
150
+ "content-type": "application/x-amz-json-1.1",
151
+ "x-amz-target": "AWSIdentityStore.ListGroupMembershipsForMember",
152
+ };
153
+ let body;
154
+ body = JSON.stringify(serializeAws_json1_1ListGroupMembershipsForMemberRequest(input, context));
155
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
+ };
157
+ exports.serializeAws_json1_1ListGroupMembershipsForMemberCommand = serializeAws_json1_1ListGroupMembershipsForMemberCommand;
28
158
  const serializeAws_json1_1ListGroupsCommand = async (input, context) => {
29
159
  const headers = {
30
160
  "content-type": "application/x-amz-json-1.1",
@@ -45,21 +175,41 @@ const serializeAws_json1_1ListUsersCommand = async (input, context) => {
45
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
176
  };
47
177
  exports.serializeAws_json1_1ListUsersCommand = serializeAws_json1_1ListUsersCommand;
48
- const deserializeAws_json1_1DescribeGroupCommand = async (output, context) => {
178
+ const serializeAws_json1_1UpdateGroupCommand = async (input, context) => {
179
+ const headers = {
180
+ "content-type": "application/x-amz-json-1.1",
181
+ "x-amz-target": "AWSIdentityStore.UpdateGroup",
182
+ };
183
+ let body;
184
+ body = JSON.stringify(serializeAws_json1_1UpdateGroupRequest(input, context));
185
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
+ };
187
+ exports.serializeAws_json1_1UpdateGroupCommand = serializeAws_json1_1UpdateGroupCommand;
188
+ const serializeAws_json1_1UpdateUserCommand = async (input, context) => {
189
+ const headers = {
190
+ "content-type": "application/x-amz-json-1.1",
191
+ "x-amz-target": "AWSIdentityStore.UpdateUser",
192
+ };
193
+ let body;
194
+ body = JSON.stringify(serializeAws_json1_1UpdateUserRequest(input, context));
195
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
+ };
197
+ exports.serializeAws_json1_1UpdateUserCommand = serializeAws_json1_1UpdateUserCommand;
198
+ const deserializeAws_json1_1CreateGroupCommand = async (output, context) => {
49
199
  if (output.statusCode >= 300) {
50
- return deserializeAws_json1_1DescribeGroupCommandError(output, context);
200
+ return deserializeAws_json1_1CreateGroupCommandError(output, context);
51
201
  }
52
202
  const data = await parseBody(output.body, context);
53
203
  let contents = {};
54
- contents = deserializeAws_json1_1DescribeGroupResponse(data, context);
204
+ contents = deserializeAws_json1_1CreateGroupResponse(data, context);
55
205
  const response = {
56
206
  $metadata: deserializeMetadata(output),
57
207
  ...contents,
58
208
  };
59
209
  return Promise.resolve(response);
60
210
  };
61
- exports.deserializeAws_json1_1DescribeGroupCommand = deserializeAws_json1_1DescribeGroupCommand;
62
- const deserializeAws_json1_1DescribeGroupCommandError = async (output, context) => {
211
+ exports.deserializeAws_json1_1CreateGroupCommand = deserializeAws_json1_1CreateGroupCommand;
212
+ const deserializeAws_json1_1CreateGroupCommandError = async (output, context) => {
63
213
  const parsedOutput = {
64
214
  ...output,
65
215
  body: await parseBody(output.body, context),
@@ -69,12 +219,18 @@ const deserializeAws_json1_1DescribeGroupCommandError = async (output, context)
69
219
  case "AccessDeniedException":
70
220
  case "com.amazonaws.identitystore#AccessDeniedException":
71
221
  throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
222
+ case "ConflictException":
223
+ case "com.amazonaws.identitystore#ConflictException":
224
+ throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
72
225
  case "InternalServerException":
73
226
  case "com.amazonaws.identitystore#InternalServerException":
74
227
  throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
75
228
  case "ResourceNotFoundException":
76
229
  case "com.amazonaws.identitystore#ResourceNotFoundException":
77
230
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
231
+ case "ServiceQuotaExceededException":
232
+ case "com.amazonaws.identitystore#ServiceQuotaExceededException":
233
+ throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
78
234
  case "ThrottlingException":
79
235
  case "com.amazonaws.identitystore#ThrottlingException":
80
236
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
@@ -91,21 +247,21 @@ const deserializeAws_json1_1DescribeGroupCommandError = async (output, context)
91
247
  });
92
248
  }
93
249
  };
94
- const deserializeAws_json1_1DescribeUserCommand = async (output, context) => {
250
+ const deserializeAws_json1_1CreateGroupMembershipCommand = async (output, context) => {
95
251
  if (output.statusCode >= 300) {
96
- return deserializeAws_json1_1DescribeUserCommandError(output, context);
252
+ return deserializeAws_json1_1CreateGroupMembershipCommandError(output, context);
97
253
  }
98
254
  const data = await parseBody(output.body, context);
99
255
  let contents = {};
100
- contents = deserializeAws_json1_1DescribeUserResponse(data, context);
256
+ contents = deserializeAws_json1_1CreateGroupMembershipResponse(data, context);
101
257
  const response = {
102
258
  $metadata: deserializeMetadata(output),
103
259
  ...contents,
104
260
  };
105
261
  return Promise.resolve(response);
106
262
  };
107
- exports.deserializeAws_json1_1DescribeUserCommand = deserializeAws_json1_1DescribeUserCommand;
108
- const deserializeAws_json1_1DescribeUserCommandError = async (output, context) => {
263
+ exports.deserializeAws_json1_1CreateGroupMembershipCommand = deserializeAws_json1_1CreateGroupMembershipCommand;
264
+ const deserializeAws_json1_1CreateGroupMembershipCommandError = async (output, context) => {
109
265
  const parsedOutput = {
110
266
  ...output,
111
267
  body: await parseBody(output.body, context),
@@ -115,12 +271,18 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
115
271
  case "AccessDeniedException":
116
272
  case "com.amazonaws.identitystore#AccessDeniedException":
117
273
  throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
274
+ case "ConflictException":
275
+ case "com.amazonaws.identitystore#ConflictException":
276
+ throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
118
277
  case "InternalServerException":
119
278
  case "com.amazonaws.identitystore#InternalServerException":
120
279
  throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
121
280
  case "ResourceNotFoundException":
122
281
  case "com.amazonaws.identitystore#ResourceNotFoundException":
123
282
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
283
+ case "ServiceQuotaExceededException":
284
+ case "com.amazonaws.identitystore#ServiceQuotaExceededException":
285
+ throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
124
286
  case "ThrottlingException":
125
287
  case "com.amazonaws.identitystore#ThrottlingException":
126
288
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
@@ -137,21 +299,21 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
137
299
  });
138
300
  }
139
301
  };
140
- const deserializeAws_json1_1ListGroupsCommand = async (output, context) => {
302
+ const deserializeAws_json1_1CreateUserCommand = async (output, context) => {
141
303
  if (output.statusCode >= 300) {
142
- return deserializeAws_json1_1ListGroupsCommandError(output, context);
304
+ return deserializeAws_json1_1CreateUserCommandError(output, context);
143
305
  }
144
306
  const data = await parseBody(output.body, context);
145
307
  let contents = {};
146
- contents = deserializeAws_json1_1ListGroupsResponse(data, context);
308
+ contents = deserializeAws_json1_1CreateUserResponse(data, context);
147
309
  const response = {
148
310
  $metadata: deserializeMetadata(output),
149
311
  ...contents,
150
312
  };
151
313
  return Promise.resolve(response);
152
314
  };
153
- exports.deserializeAws_json1_1ListGroupsCommand = deserializeAws_json1_1ListGroupsCommand;
154
- const deserializeAws_json1_1ListGroupsCommandError = async (output, context) => {
315
+ exports.deserializeAws_json1_1CreateUserCommand = deserializeAws_json1_1CreateUserCommand;
316
+ const deserializeAws_json1_1CreateUserCommandError = async (output, context) => {
155
317
  const parsedOutput = {
156
318
  ...output,
157
319
  body: await parseBody(output.body, context),
@@ -161,12 +323,18 @@ const deserializeAws_json1_1ListGroupsCommandError = async (output, context) =>
161
323
  case "AccessDeniedException":
162
324
  case "com.amazonaws.identitystore#AccessDeniedException":
163
325
  throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
326
+ case "ConflictException":
327
+ case "com.amazonaws.identitystore#ConflictException":
328
+ throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
164
329
  case "InternalServerException":
165
330
  case "com.amazonaws.identitystore#InternalServerException":
166
331
  throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
167
332
  case "ResourceNotFoundException":
168
333
  case "com.amazonaws.identitystore#ResourceNotFoundException":
169
334
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
335
+ case "ServiceQuotaExceededException":
336
+ case "com.amazonaws.identitystore#ServiceQuotaExceededException":
337
+ throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
170
338
  case "ThrottlingException":
171
339
  case "com.amazonaws.identitystore#ThrottlingException":
172
340
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
@@ -183,21 +351,21 @@ const deserializeAws_json1_1ListGroupsCommandError = async (output, context) =>
183
351
  });
184
352
  }
185
353
  };
186
- const deserializeAws_json1_1ListUsersCommand = async (output, context) => {
354
+ const deserializeAws_json1_1DeleteGroupCommand = async (output, context) => {
187
355
  if (output.statusCode >= 300) {
188
- return deserializeAws_json1_1ListUsersCommandError(output, context);
356
+ return deserializeAws_json1_1DeleteGroupCommandError(output, context);
189
357
  }
190
358
  const data = await parseBody(output.body, context);
191
359
  let contents = {};
192
- contents = deserializeAws_json1_1ListUsersResponse(data, context);
360
+ contents = deserializeAws_json1_1DeleteGroupResponse(data, context);
193
361
  const response = {
194
362
  $metadata: deserializeMetadata(output),
195
363
  ...contents,
196
364
  };
197
365
  return Promise.resolve(response);
198
366
  };
199
- exports.deserializeAws_json1_1ListUsersCommand = deserializeAws_json1_1ListUsersCommand;
200
- const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
367
+ exports.deserializeAws_json1_1DeleteGroupCommand = deserializeAws_json1_1DeleteGroupCommand;
368
+ const deserializeAws_json1_1DeleteGroupCommandError = async (output, context) => {
201
369
  const parsedOutput = {
202
370
  ...output,
203
371
  body: await parseBody(output.body, context),
@@ -207,6 +375,9 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
207
375
  case "AccessDeniedException":
208
376
  case "com.amazonaws.identitystore#AccessDeniedException":
209
377
  throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
378
+ case "ConflictException":
379
+ case "com.amazonaws.identitystore#ConflictException":
380
+ throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
210
381
  case "InternalServerException":
211
382
  case "com.amazonaws.identitystore#InternalServerException":
212
383
  throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
@@ -229,116 +400,1242 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
229
400
  });
230
401
  }
231
402
  };
232
- const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
233
- const body = parsedOutput.body;
234
- const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
235
- const exception = new models_0_1.AccessDeniedException({
236
- $metadata: deserializeMetadata(parsedOutput),
237
- ...deserialized,
238
- });
239
- return (0, smithy_client_1.decorateServiceException)(exception, body);
240
- };
241
- const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
242
- const body = parsedOutput.body;
243
- const deserialized = deserializeAws_json1_1InternalServerException(body, context);
244
- const exception = new models_0_1.InternalServerException({
245
- $metadata: deserializeMetadata(parsedOutput),
246
- ...deserialized,
247
- });
248
- return (0, smithy_client_1.decorateServiceException)(exception, body);
249
- };
250
- const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
251
- const body = parsedOutput.body;
252
- const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
253
- const exception = new models_0_1.ResourceNotFoundException({
254
- $metadata: deserializeMetadata(parsedOutput),
255
- ...deserialized,
256
- });
257
- return (0, smithy_client_1.decorateServiceException)(exception, body);
258
- };
259
- const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
260
- const body = parsedOutput.body;
261
- const deserialized = deserializeAws_json1_1ThrottlingException(body, context);
262
- const exception = new models_0_1.ThrottlingException({
263
- $metadata: deserializeMetadata(parsedOutput),
264
- ...deserialized,
265
- });
266
- return (0, smithy_client_1.decorateServiceException)(exception, body);
267
- };
268
- const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => {
269
- const body = parsedOutput.body;
270
- const deserialized = deserializeAws_json1_1ValidationException(body, context);
271
- const exception = new models_0_1.ValidationException({
272
- $metadata: deserializeMetadata(parsedOutput),
273
- ...deserialized,
274
- });
275
- return (0, smithy_client_1.decorateServiceException)(exception, body);
276
- };
277
- const serializeAws_json1_1DescribeGroupRequest = (input, context) => {
278
- return {
279
- ...(input.GroupId != null && { GroupId: input.GroupId }),
280
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
403
+ const deserializeAws_json1_1DeleteGroupMembershipCommand = async (output, context) => {
404
+ if (output.statusCode >= 300) {
405
+ return deserializeAws_json1_1DeleteGroupMembershipCommandError(output, context);
406
+ }
407
+ const data = await parseBody(output.body, context);
408
+ let contents = {};
409
+ contents = deserializeAws_json1_1DeleteGroupMembershipResponse(data, context);
410
+ const response = {
411
+ $metadata: deserializeMetadata(output),
412
+ ...contents,
281
413
  };
414
+ return Promise.resolve(response);
282
415
  };
283
- const serializeAws_json1_1DescribeUserRequest = (input, context) => {
284
- return {
285
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
286
- ...(input.UserId != null && { UserId: input.UserId }),
416
+ exports.deserializeAws_json1_1DeleteGroupMembershipCommand = deserializeAws_json1_1DeleteGroupMembershipCommand;
417
+ const deserializeAws_json1_1DeleteGroupMembershipCommandError = async (output, context) => {
418
+ const parsedOutput = {
419
+ ...output,
420
+ body: await parseBody(output.body, context),
287
421
  };
422
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
423
+ switch (errorCode) {
424
+ case "AccessDeniedException":
425
+ case "com.amazonaws.identitystore#AccessDeniedException":
426
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
427
+ case "ConflictException":
428
+ case "com.amazonaws.identitystore#ConflictException":
429
+ throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
430
+ case "InternalServerException":
431
+ case "com.amazonaws.identitystore#InternalServerException":
432
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
433
+ case "ResourceNotFoundException":
434
+ case "com.amazonaws.identitystore#ResourceNotFoundException":
435
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
436
+ case "ThrottlingException":
437
+ case "com.amazonaws.identitystore#ThrottlingException":
438
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
439
+ case "ValidationException":
440
+ case "com.amazonaws.identitystore#ValidationException":
441
+ throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
442
+ default:
443
+ const parsedBody = parsedOutput.body;
444
+ (0, smithy_client_1.throwDefaultError)({
445
+ output,
446
+ parsedBody,
447
+ exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
448
+ errorCode,
449
+ });
450
+ }
288
451
  };
289
- const serializeAws_json1_1Filter = (input, context) => {
290
- return {
291
- ...(input.AttributePath != null && { AttributePath: input.AttributePath }),
292
- ...(input.AttributeValue != null && { AttributeValue: input.AttributeValue }),
452
+ const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
453
+ if (output.statusCode >= 300) {
454
+ return deserializeAws_json1_1DeleteUserCommandError(output, context);
455
+ }
456
+ const data = await parseBody(output.body, context);
457
+ let contents = {};
458
+ contents = deserializeAws_json1_1DeleteUserResponse(data, context);
459
+ const response = {
460
+ $metadata: deserializeMetadata(output),
461
+ ...contents,
293
462
  };
463
+ return Promise.resolve(response);
294
464
  };
295
- const serializeAws_json1_1Filters = (input, context) => {
296
- return input
297
- .filter((e) => e != null)
298
- .map((entry) => {
299
- return serializeAws_json1_1Filter(entry, context);
300
- });
301
- };
302
- const serializeAws_json1_1ListGroupsRequest = (input, context) => {
303
- return {
304
- ...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
305
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
306
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
307
- ...(input.NextToken != null && { NextToken: input.NextToken }),
465
+ exports.deserializeAws_json1_1DeleteUserCommand = deserializeAws_json1_1DeleteUserCommand;
466
+ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) => {
467
+ const parsedOutput = {
468
+ ...output,
469
+ body: await parseBody(output.body, context),
308
470
  };
471
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
472
+ switch (errorCode) {
473
+ case "AccessDeniedException":
474
+ case "com.amazonaws.identitystore#AccessDeniedException":
475
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
476
+ case "ConflictException":
477
+ case "com.amazonaws.identitystore#ConflictException":
478
+ throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
479
+ case "InternalServerException":
480
+ case "com.amazonaws.identitystore#InternalServerException":
481
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
482
+ case "ResourceNotFoundException":
483
+ case "com.amazonaws.identitystore#ResourceNotFoundException":
484
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
485
+ case "ThrottlingException":
486
+ case "com.amazonaws.identitystore#ThrottlingException":
487
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
488
+ case "ValidationException":
489
+ case "com.amazonaws.identitystore#ValidationException":
490
+ throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
491
+ default:
492
+ const parsedBody = parsedOutput.body;
493
+ (0, smithy_client_1.throwDefaultError)({
494
+ output,
495
+ parsedBody,
496
+ exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
497
+ errorCode,
498
+ });
499
+ }
309
500
  };
310
- const serializeAws_json1_1ListUsersRequest = (input, context) => {
311
- return {
501
+ const deserializeAws_json1_1DescribeGroupCommand = async (output, context) => {
502
+ if (output.statusCode >= 300) {
503
+ return deserializeAws_json1_1DescribeGroupCommandError(output, context);
504
+ }
505
+ const data = await parseBody(output.body, context);
506
+ let contents = {};
507
+ contents = deserializeAws_json1_1DescribeGroupResponse(data, context);
508
+ const response = {
509
+ $metadata: deserializeMetadata(output),
510
+ ...contents,
511
+ };
512
+ return Promise.resolve(response);
513
+ };
514
+ exports.deserializeAws_json1_1DescribeGroupCommand = deserializeAws_json1_1DescribeGroupCommand;
515
+ const deserializeAws_json1_1DescribeGroupCommandError = async (output, context) => {
516
+ const parsedOutput = {
517
+ ...output,
518
+ body: await parseBody(output.body, context),
519
+ };
520
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
521
+ switch (errorCode) {
522
+ case "AccessDeniedException":
523
+ case "com.amazonaws.identitystore#AccessDeniedException":
524
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
525
+ case "InternalServerException":
526
+ case "com.amazonaws.identitystore#InternalServerException":
527
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
528
+ case "ResourceNotFoundException":
529
+ case "com.amazonaws.identitystore#ResourceNotFoundException":
530
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
531
+ case "ThrottlingException":
532
+ case "com.amazonaws.identitystore#ThrottlingException":
533
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
534
+ case "ValidationException":
535
+ case "com.amazonaws.identitystore#ValidationException":
536
+ throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
537
+ default:
538
+ const parsedBody = parsedOutput.body;
539
+ (0, smithy_client_1.throwDefaultError)({
540
+ output,
541
+ parsedBody,
542
+ exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
543
+ errorCode,
544
+ });
545
+ }
546
+ };
547
+ const deserializeAws_json1_1DescribeGroupMembershipCommand = async (output, context) => {
548
+ if (output.statusCode >= 300) {
549
+ return deserializeAws_json1_1DescribeGroupMembershipCommandError(output, context);
550
+ }
551
+ const data = await parseBody(output.body, context);
552
+ let contents = {};
553
+ contents = deserializeAws_json1_1DescribeGroupMembershipResponse(data, context);
554
+ const response = {
555
+ $metadata: deserializeMetadata(output),
556
+ ...contents,
557
+ };
558
+ return Promise.resolve(response);
559
+ };
560
+ exports.deserializeAws_json1_1DescribeGroupMembershipCommand = deserializeAws_json1_1DescribeGroupMembershipCommand;
561
+ const deserializeAws_json1_1DescribeGroupMembershipCommandError = async (output, context) => {
562
+ const parsedOutput = {
563
+ ...output,
564
+ body: await parseBody(output.body, context),
565
+ };
566
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
567
+ switch (errorCode) {
568
+ case "AccessDeniedException":
569
+ case "com.amazonaws.identitystore#AccessDeniedException":
570
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
571
+ case "InternalServerException":
572
+ case "com.amazonaws.identitystore#InternalServerException":
573
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
574
+ case "ResourceNotFoundException":
575
+ case "com.amazonaws.identitystore#ResourceNotFoundException":
576
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
577
+ case "ThrottlingException":
578
+ case "com.amazonaws.identitystore#ThrottlingException":
579
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
580
+ case "ValidationException":
581
+ case "com.amazonaws.identitystore#ValidationException":
582
+ throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
583
+ default:
584
+ const parsedBody = parsedOutput.body;
585
+ (0, smithy_client_1.throwDefaultError)({
586
+ output,
587
+ parsedBody,
588
+ exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
589
+ errorCode,
590
+ });
591
+ }
592
+ };
593
+ const deserializeAws_json1_1DescribeUserCommand = async (output, context) => {
594
+ if (output.statusCode >= 300) {
595
+ return deserializeAws_json1_1DescribeUserCommandError(output, context);
596
+ }
597
+ const data = await parseBody(output.body, context);
598
+ let contents = {};
599
+ contents = deserializeAws_json1_1DescribeUserResponse(data, context);
600
+ const response = {
601
+ $metadata: deserializeMetadata(output),
602
+ ...contents,
603
+ };
604
+ return Promise.resolve(response);
605
+ };
606
+ exports.deserializeAws_json1_1DescribeUserCommand = deserializeAws_json1_1DescribeUserCommand;
607
+ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) => {
608
+ const parsedOutput = {
609
+ ...output,
610
+ body: await parseBody(output.body, context),
611
+ };
612
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
613
+ switch (errorCode) {
614
+ case "AccessDeniedException":
615
+ case "com.amazonaws.identitystore#AccessDeniedException":
616
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
617
+ case "InternalServerException":
618
+ case "com.amazonaws.identitystore#InternalServerException":
619
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
620
+ case "ResourceNotFoundException":
621
+ case "com.amazonaws.identitystore#ResourceNotFoundException":
622
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
623
+ case "ThrottlingException":
624
+ case "com.amazonaws.identitystore#ThrottlingException":
625
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
626
+ case "ValidationException":
627
+ case "com.amazonaws.identitystore#ValidationException":
628
+ throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
629
+ default:
630
+ const parsedBody = parsedOutput.body;
631
+ (0, smithy_client_1.throwDefaultError)({
632
+ output,
633
+ parsedBody,
634
+ exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
635
+ errorCode,
636
+ });
637
+ }
638
+ };
639
+ const deserializeAws_json1_1GetGroupIdCommand = async (output, context) => {
640
+ if (output.statusCode >= 300) {
641
+ return deserializeAws_json1_1GetGroupIdCommandError(output, context);
642
+ }
643
+ const data = await parseBody(output.body, context);
644
+ let contents = {};
645
+ contents = deserializeAws_json1_1GetGroupIdResponse(data, context);
646
+ const response = {
647
+ $metadata: deserializeMetadata(output),
648
+ ...contents,
649
+ };
650
+ return Promise.resolve(response);
651
+ };
652
+ exports.deserializeAws_json1_1GetGroupIdCommand = deserializeAws_json1_1GetGroupIdCommand;
653
+ const deserializeAws_json1_1GetGroupIdCommandError = async (output, context) => {
654
+ const parsedOutput = {
655
+ ...output,
656
+ body: await parseBody(output.body, context),
657
+ };
658
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
659
+ switch (errorCode) {
660
+ case "AccessDeniedException":
661
+ case "com.amazonaws.identitystore#AccessDeniedException":
662
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
663
+ case "InternalServerException":
664
+ case "com.amazonaws.identitystore#InternalServerException":
665
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
666
+ case "ResourceNotFoundException":
667
+ case "com.amazonaws.identitystore#ResourceNotFoundException":
668
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
669
+ case "ThrottlingException":
670
+ case "com.amazonaws.identitystore#ThrottlingException":
671
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
672
+ case "ValidationException":
673
+ case "com.amazonaws.identitystore#ValidationException":
674
+ throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
675
+ default:
676
+ const parsedBody = parsedOutput.body;
677
+ (0, smithy_client_1.throwDefaultError)({
678
+ output,
679
+ parsedBody,
680
+ exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
681
+ errorCode,
682
+ });
683
+ }
684
+ };
685
+ const deserializeAws_json1_1GetGroupMembershipIdCommand = async (output, context) => {
686
+ if (output.statusCode >= 300) {
687
+ return deserializeAws_json1_1GetGroupMembershipIdCommandError(output, context);
688
+ }
689
+ const data = await parseBody(output.body, context);
690
+ let contents = {};
691
+ contents = deserializeAws_json1_1GetGroupMembershipIdResponse(data, context);
692
+ const response = {
693
+ $metadata: deserializeMetadata(output),
694
+ ...contents,
695
+ };
696
+ return Promise.resolve(response);
697
+ };
698
+ exports.deserializeAws_json1_1GetGroupMembershipIdCommand = deserializeAws_json1_1GetGroupMembershipIdCommand;
699
+ const deserializeAws_json1_1GetGroupMembershipIdCommandError = async (output, context) => {
700
+ const parsedOutput = {
701
+ ...output,
702
+ body: await parseBody(output.body, context),
703
+ };
704
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
705
+ switch (errorCode) {
706
+ case "AccessDeniedException":
707
+ case "com.amazonaws.identitystore#AccessDeniedException":
708
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
709
+ case "InternalServerException":
710
+ case "com.amazonaws.identitystore#InternalServerException":
711
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
712
+ case "ResourceNotFoundException":
713
+ case "com.amazonaws.identitystore#ResourceNotFoundException":
714
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
715
+ case "ThrottlingException":
716
+ case "com.amazonaws.identitystore#ThrottlingException":
717
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
718
+ case "ValidationException":
719
+ case "com.amazonaws.identitystore#ValidationException":
720
+ throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
721
+ default:
722
+ const parsedBody = parsedOutput.body;
723
+ (0, smithy_client_1.throwDefaultError)({
724
+ output,
725
+ parsedBody,
726
+ exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
727
+ errorCode,
728
+ });
729
+ }
730
+ };
731
+ const deserializeAws_json1_1GetUserIdCommand = async (output, context) => {
732
+ if (output.statusCode >= 300) {
733
+ return deserializeAws_json1_1GetUserIdCommandError(output, context);
734
+ }
735
+ const data = await parseBody(output.body, context);
736
+ let contents = {};
737
+ contents = deserializeAws_json1_1GetUserIdResponse(data, context);
738
+ const response = {
739
+ $metadata: deserializeMetadata(output),
740
+ ...contents,
741
+ };
742
+ return Promise.resolve(response);
743
+ };
744
+ exports.deserializeAws_json1_1GetUserIdCommand = deserializeAws_json1_1GetUserIdCommand;
745
+ const deserializeAws_json1_1GetUserIdCommandError = async (output, context) => {
746
+ const parsedOutput = {
747
+ ...output,
748
+ body: await parseBody(output.body, context),
749
+ };
750
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
751
+ switch (errorCode) {
752
+ case "AccessDeniedException":
753
+ case "com.amazonaws.identitystore#AccessDeniedException":
754
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
755
+ case "InternalServerException":
756
+ case "com.amazonaws.identitystore#InternalServerException":
757
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
758
+ case "ResourceNotFoundException":
759
+ case "com.amazonaws.identitystore#ResourceNotFoundException":
760
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
761
+ case "ThrottlingException":
762
+ case "com.amazonaws.identitystore#ThrottlingException":
763
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
764
+ case "ValidationException":
765
+ case "com.amazonaws.identitystore#ValidationException":
766
+ throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
767
+ default:
768
+ const parsedBody = parsedOutput.body;
769
+ (0, smithy_client_1.throwDefaultError)({
770
+ output,
771
+ parsedBody,
772
+ exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
773
+ errorCode,
774
+ });
775
+ }
776
+ };
777
+ const deserializeAws_json1_1IsMemberInGroupsCommand = async (output, context) => {
778
+ if (output.statusCode >= 300) {
779
+ return deserializeAws_json1_1IsMemberInGroupsCommandError(output, context);
780
+ }
781
+ const data = await parseBody(output.body, context);
782
+ let contents = {};
783
+ contents = deserializeAws_json1_1IsMemberInGroupsResponse(data, context);
784
+ const response = {
785
+ $metadata: deserializeMetadata(output),
786
+ ...contents,
787
+ };
788
+ return Promise.resolve(response);
789
+ };
790
+ exports.deserializeAws_json1_1IsMemberInGroupsCommand = deserializeAws_json1_1IsMemberInGroupsCommand;
791
+ const deserializeAws_json1_1IsMemberInGroupsCommandError = async (output, context) => {
792
+ const parsedOutput = {
793
+ ...output,
794
+ body: await parseBody(output.body, context),
795
+ };
796
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
797
+ switch (errorCode) {
798
+ case "AccessDeniedException":
799
+ case "com.amazonaws.identitystore#AccessDeniedException":
800
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
801
+ case "InternalServerException":
802
+ case "com.amazonaws.identitystore#InternalServerException":
803
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
804
+ case "ResourceNotFoundException":
805
+ case "com.amazonaws.identitystore#ResourceNotFoundException":
806
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
807
+ case "ThrottlingException":
808
+ case "com.amazonaws.identitystore#ThrottlingException":
809
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
810
+ case "ValidationException":
811
+ case "com.amazonaws.identitystore#ValidationException":
812
+ throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
813
+ default:
814
+ const parsedBody = parsedOutput.body;
815
+ (0, smithy_client_1.throwDefaultError)({
816
+ output,
817
+ parsedBody,
818
+ exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
819
+ errorCode,
820
+ });
821
+ }
822
+ };
823
+ const deserializeAws_json1_1ListGroupMembershipsCommand = async (output, context) => {
824
+ if (output.statusCode >= 300) {
825
+ return deserializeAws_json1_1ListGroupMembershipsCommandError(output, context);
826
+ }
827
+ const data = await parseBody(output.body, context);
828
+ let contents = {};
829
+ contents = deserializeAws_json1_1ListGroupMembershipsResponse(data, context);
830
+ const response = {
831
+ $metadata: deserializeMetadata(output),
832
+ ...contents,
833
+ };
834
+ return Promise.resolve(response);
835
+ };
836
+ exports.deserializeAws_json1_1ListGroupMembershipsCommand = deserializeAws_json1_1ListGroupMembershipsCommand;
837
+ const deserializeAws_json1_1ListGroupMembershipsCommandError = async (output, context) => {
838
+ const parsedOutput = {
839
+ ...output,
840
+ body: await parseBody(output.body, context),
841
+ };
842
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
843
+ switch (errorCode) {
844
+ case "AccessDeniedException":
845
+ case "com.amazonaws.identitystore#AccessDeniedException":
846
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
847
+ case "InternalServerException":
848
+ case "com.amazonaws.identitystore#InternalServerException":
849
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
850
+ case "ResourceNotFoundException":
851
+ case "com.amazonaws.identitystore#ResourceNotFoundException":
852
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
853
+ case "ThrottlingException":
854
+ case "com.amazonaws.identitystore#ThrottlingException":
855
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
856
+ case "ValidationException":
857
+ case "com.amazonaws.identitystore#ValidationException":
858
+ throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
859
+ default:
860
+ const parsedBody = parsedOutput.body;
861
+ (0, smithy_client_1.throwDefaultError)({
862
+ output,
863
+ parsedBody,
864
+ exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
865
+ errorCode,
866
+ });
867
+ }
868
+ };
869
+ const deserializeAws_json1_1ListGroupMembershipsForMemberCommand = async (output, context) => {
870
+ if (output.statusCode >= 300) {
871
+ return deserializeAws_json1_1ListGroupMembershipsForMemberCommandError(output, context);
872
+ }
873
+ const data = await parseBody(output.body, context);
874
+ let contents = {};
875
+ contents = deserializeAws_json1_1ListGroupMembershipsForMemberResponse(data, context);
876
+ const response = {
877
+ $metadata: deserializeMetadata(output),
878
+ ...contents,
879
+ };
880
+ return Promise.resolve(response);
881
+ };
882
+ exports.deserializeAws_json1_1ListGroupMembershipsForMemberCommand = deserializeAws_json1_1ListGroupMembershipsForMemberCommand;
883
+ const deserializeAws_json1_1ListGroupMembershipsForMemberCommandError = async (output, context) => {
884
+ const parsedOutput = {
885
+ ...output,
886
+ body: await parseBody(output.body, context),
887
+ };
888
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
889
+ switch (errorCode) {
890
+ case "AccessDeniedException":
891
+ case "com.amazonaws.identitystore#AccessDeniedException":
892
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
893
+ case "InternalServerException":
894
+ case "com.amazonaws.identitystore#InternalServerException":
895
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
896
+ case "ResourceNotFoundException":
897
+ case "com.amazonaws.identitystore#ResourceNotFoundException":
898
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
899
+ case "ThrottlingException":
900
+ case "com.amazonaws.identitystore#ThrottlingException":
901
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
902
+ case "ValidationException":
903
+ case "com.amazonaws.identitystore#ValidationException":
904
+ throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
905
+ default:
906
+ const parsedBody = parsedOutput.body;
907
+ (0, smithy_client_1.throwDefaultError)({
908
+ output,
909
+ parsedBody,
910
+ exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
911
+ errorCode,
912
+ });
913
+ }
914
+ };
915
+ const deserializeAws_json1_1ListGroupsCommand = async (output, context) => {
916
+ if (output.statusCode >= 300) {
917
+ return deserializeAws_json1_1ListGroupsCommandError(output, context);
918
+ }
919
+ const data = await parseBody(output.body, context);
920
+ let contents = {};
921
+ contents = deserializeAws_json1_1ListGroupsResponse(data, context);
922
+ const response = {
923
+ $metadata: deserializeMetadata(output),
924
+ ...contents,
925
+ };
926
+ return Promise.resolve(response);
927
+ };
928
+ exports.deserializeAws_json1_1ListGroupsCommand = deserializeAws_json1_1ListGroupsCommand;
929
+ const deserializeAws_json1_1ListGroupsCommandError = async (output, context) => {
930
+ const parsedOutput = {
931
+ ...output,
932
+ body: await parseBody(output.body, context),
933
+ };
934
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
935
+ switch (errorCode) {
936
+ case "AccessDeniedException":
937
+ case "com.amazonaws.identitystore#AccessDeniedException":
938
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
939
+ case "InternalServerException":
940
+ case "com.amazonaws.identitystore#InternalServerException":
941
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
942
+ case "ResourceNotFoundException":
943
+ case "com.amazonaws.identitystore#ResourceNotFoundException":
944
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
945
+ case "ThrottlingException":
946
+ case "com.amazonaws.identitystore#ThrottlingException":
947
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
948
+ case "ValidationException":
949
+ case "com.amazonaws.identitystore#ValidationException":
950
+ throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
951
+ default:
952
+ const parsedBody = parsedOutput.body;
953
+ (0, smithy_client_1.throwDefaultError)({
954
+ output,
955
+ parsedBody,
956
+ exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
957
+ errorCode,
958
+ });
959
+ }
960
+ };
961
+ const deserializeAws_json1_1ListUsersCommand = async (output, context) => {
962
+ if (output.statusCode >= 300) {
963
+ return deserializeAws_json1_1ListUsersCommandError(output, context);
964
+ }
965
+ const data = await parseBody(output.body, context);
966
+ let contents = {};
967
+ contents = deserializeAws_json1_1ListUsersResponse(data, context);
968
+ const response = {
969
+ $metadata: deserializeMetadata(output),
970
+ ...contents,
971
+ };
972
+ return Promise.resolve(response);
973
+ };
974
+ exports.deserializeAws_json1_1ListUsersCommand = deserializeAws_json1_1ListUsersCommand;
975
+ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
976
+ const parsedOutput = {
977
+ ...output,
978
+ body: await parseBody(output.body, context),
979
+ };
980
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
981
+ switch (errorCode) {
982
+ case "AccessDeniedException":
983
+ case "com.amazonaws.identitystore#AccessDeniedException":
984
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
985
+ case "InternalServerException":
986
+ case "com.amazonaws.identitystore#InternalServerException":
987
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
988
+ case "ResourceNotFoundException":
989
+ case "com.amazonaws.identitystore#ResourceNotFoundException":
990
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
991
+ case "ThrottlingException":
992
+ case "com.amazonaws.identitystore#ThrottlingException":
993
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
994
+ case "ValidationException":
995
+ case "com.amazonaws.identitystore#ValidationException":
996
+ throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
997
+ default:
998
+ const parsedBody = parsedOutput.body;
999
+ (0, smithy_client_1.throwDefaultError)({
1000
+ output,
1001
+ parsedBody,
1002
+ exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
1003
+ errorCode,
1004
+ });
1005
+ }
1006
+ };
1007
+ const deserializeAws_json1_1UpdateGroupCommand = async (output, context) => {
1008
+ if (output.statusCode >= 300) {
1009
+ return deserializeAws_json1_1UpdateGroupCommandError(output, context);
1010
+ }
1011
+ const data = await parseBody(output.body, context);
1012
+ let contents = {};
1013
+ contents = deserializeAws_json1_1UpdateGroupResponse(data, context);
1014
+ const response = {
1015
+ $metadata: deserializeMetadata(output),
1016
+ ...contents,
1017
+ };
1018
+ return Promise.resolve(response);
1019
+ };
1020
+ exports.deserializeAws_json1_1UpdateGroupCommand = deserializeAws_json1_1UpdateGroupCommand;
1021
+ const deserializeAws_json1_1UpdateGroupCommandError = async (output, context) => {
1022
+ const parsedOutput = {
1023
+ ...output,
1024
+ body: await parseBody(output.body, context),
1025
+ };
1026
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1027
+ switch (errorCode) {
1028
+ case "AccessDeniedException":
1029
+ case "com.amazonaws.identitystore#AccessDeniedException":
1030
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
1031
+ case "ConflictException":
1032
+ case "com.amazonaws.identitystore#ConflictException":
1033
+ throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
1034
+ case "InternalServerException":
1035
+ case "com.amazonaws.identitystore#InternalServerException":
1036
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
1037
+ case "ResourceNotFoundException":
1038
+ case "com.amazonaws.identitystore#ResourceNotFoundException":
1039
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1040
+ case "ServiceQuotaExceededException":
1041
+ case "com.amazonaws.identitystore#ServiceQuotaExceededException":
1042
+ throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1043
+ case "ThrottlingException":
1044
+ case "com.amazonaws.identitystore#ThrottlingException":
1045
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
1046
+ case "ValidationException":
1047
+ case "com.amazonaws.identitystore#ValidationException":
1048
+ throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
1049
+ default:
1050
+ const parsedBody = parsedOutput.body;
1051
+ (0, smithy_client_1.throwDefaultError)({
1052
+ output,
1053
+ parsedBody,
1054
+ exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
1055
+ errorCode,
1056
+ });
1057
+ }
1058
+ };
1059
+ const deserializeAws_json1_1UpdateUserCommand = async (output, context) => {
1060
+ if (output.statusCode >= 300) {
1061
+ return deserializeAws_json1_1UpdateUserCommandError(output, context);
1062
+ }
1063
+ const data = await parseBody(output.body, context);
1064
+ let contents = {};
1065
+ contents = deserializeAws_json1_1UpdateUserResponse(data, context);
1066
+ const response = {
1067
+ $metadata: deserializeMetadata(output),
1068
+ ...contents,
1069
+ };
1070
+ return Promise.resolve(response);
1071
+ };
1072
+ exports.deserializeAws_json1_1UpdateUserCommand = deserializeAws_json1_1UpdateUserCommand;
1073
+ const deserializeAws_json1_1UpdateUserCommandError = async (output, context) => {
1074
+ const parsedOutput = {
1075
+ ...output,
1076
+ body: await parseBody(output.body, context),
1077
+ };
1078
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1079
+ switch (errorCode) {
1080
+ case "AccessDeniedException":
1081
+ case "com.amazonaws.identitystore#AccessDeniedException":
1082
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
1083
+ case "ConflictException":
1084
+ case "com.amazonaws.identitystore#ConflictException":
1085
+ throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
1086
+ case "InternalServerException":
1087
+ case "com.amazonaws.identitystore#InternalServerException":
1088
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
1089
+ case "ResourceNotFoundException":
1090
+ case "com.amazonaws.identitystore#ResourceNotFoundException":
1091
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1092
+ case "ServiceQuotaExceededException":
1093
+ case "com.amazonaws.identitystore#ServiceQuotaExceededException":
1094
+ throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1095
+ case "ThrottlingException":
1096
+ case "com.amazonaws.identitystore#ThrottlingException":
1097
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
1098
+ case "ValidationException":
1099
+ case "com.amazonaws.identitystore#ValidationException":
1100
+ throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
1101
+ default:
1102
+ const parsedBody = parsedOutput.body;
1103
+ (0, smithy_client_1.throwDefaultError)({
1104
+ output,
1105
+ parsedBody,
1106
+ exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
1107
+ errorCode,
1108
+ });
1109
+ }
1110
+ };
1111
+ const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
1112
+ const body = parsedOutput.body;
1113
+ const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
1114
+ const exception = new models_0_1.AccessDeniedException({
1115
+ $metadata: deserializeMetadata(parsedOutput),
1116
+ ...deserialized,
1117
+ });
1118
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1119
+ };
1120
+ const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, context) => {
1121
+ const body = parsedOutput.body;
1122
+ const deserialized = deserializeAws_json1_1ConflictException(body, context);
1123
+ const exception = new models_0_1.ConflictException({
1124
+ $metadata: deserializeMetadata(parsedOutput),
1125
+ ...deserialized,
1126
+ });
1127
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1128
+ };
1129
+ const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
1130
+ const body = parsedOutput.body;
1131
+ const deserialized = deserializeAws_json1_1InternalServerException(body, context);
1132
+ const exception = new models_0_1.InternalServerException({
1133
+ $metadata: deserializeMetadata(parsedOutput),
1134
+ ...deserialized,
1135
+ });
1136
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1137
+ };
1138
+ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1139
+ const body = parsedOutput.body;
1140
+ const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
1141
+ const exception = new models_0_1.ResourceNotFoundException({
1142
+ $metadata: deserializeMetadata(parsedOutput),
1143
+ ...deserialized,
1144
+ });
1145
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1146
+ };
1147
+ const deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
1148
+ const body = parsedOutput.body;
1149
+ const deserialized = deserializeAws_json1_1ServiceQuotaExceededException(body, context);
1150
+ const exception = new models_0_1.ServiceQuotaExceededException({
1151
+ $metadata: deserializeMetadata(parsedOutput),
1152
+ ...deserialized,
1153
+ });
1154
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1155
+ };
1156
+ const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
1157
+ const body = parsedOutput.body;
1158
+ const deserialized = deserializeAws_json1_1ThrottlingException(body, context);
1159
+ const exception = new models_0_1.ThrottlingException({
1160
+ $metadata: deserializeMetadata(parsedOutput),
1161
+ ...deserialized,
1162
+ });
1163
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1164
+ };
1165
+ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => {
1166
+ const body = parsedOutput.body;
1167
+ const deserialized = deserializeAws_json1_1ValidationException(body, context);
1168
+ const exception = new models_0_1.ValidationException({
1169
+ $metadata: deserializeMetadata(parsedOutput),
1170
+ ...deserialized,
1171
+ });
1172
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1173
+ };
1174
+ const serializeAws_json1_1Address = (input, context) => {
1175
+ return {
1176
+ ...(input.Country != null && { Country: input.Country }),
1177
+ ...(input.Formatted != null && { Formatted: input.Formatted }),
1178
+ ...(input.Locality != null && { Locality: input.Locality }),
1179
+ ...(input.PostalCode != null && { PostalCode: input.PostalCode }),
1180
+ ...(input.Primary != null && { Primary: input.Primary }),
1181
+ ...(input.Region != null && { Region: input.Region }),
1182
+ ...(input.StreetAddress != null && { StreetAddress: input.StreetAddress }),
1183
+ ...(input.Type != null && { Type: input.Type }),
1184
+ };
1185
+ };
1186
+ const serializeAws_json1_1Addresses = (input, context) => {
1187
+ return input
1188
+ .filter((e) => e != null)
1189
+ .map((entry) => {
1190
+ return serializeAws_json1_1Address(entry, context);
1191
+ });
1192
+ };
1193
+ const serializeAws_json1_1AlternateIdentifier = (input, context) => {
1194
+ return models_0_1.AlternateIdentifier.visit(input, {
1195
+ ExternalId: (value) => ({ ExternalId: serializeAws_json1_1ExternalId(value, context) }),
1196
+ UniqueAttribute: (value) => ({ UniqueAttribute: serializeAws_json1_1UniqueAttribute(value, context) }),
1197
+ _: (name, value) => ({ name: value }),
1198
+ });
1199
+ };
1200
+ const serializeAws_json1_1AttributeOperation = (input, context) => {
1201
+ return {
1202
+ ...(input.AttributePath != null && { AttributePath: input.AttributePath }),
1203
+ ...(input.AttributeValue != null && {
1204
+ AttributeValue: serializeAws_json1_1AttributeValue(input.AttributeValue, context),
1205
+ }),
1206
+ };
1207
+ };
1208
+ const serializeAws_json1_1AttributeOperations = (input, context) => {
1209
+ return input
1210
+ .filter((e) => e != null)
1211
+ .map((entry) => {
1212
+ return serializeAws_json1_1AttributeOperation(entry, context);
1213
+ });
1214
+ };
1215
+ const serializeAws_json1_1AttributeValue = (input, context) => {
1216
+ return input;
1217
+ };
1218
+ const serializeAws_json1_1CreateGroupMembershipRequest = (input, context) => {
1219
+ return {
1220
+ ...(input.GroupId != null && { GroupId: input.GroupId }),
1221
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1222
+ ...(input.MemberId != null && { MemberId: serializeAws_json1_1MemberId(input.MemberId, context) }),
1223
+ };
1224
+ };
1225
+ const serializeAws_json1_1CreateGroupRequest = (input, context) => {
1226
+ return {
1227
+ ...(input.Description != null && { Description: input.Description }),
1228
+ ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
1229
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1230
+ };
1231
+ };
1232
+ const serializeAws_json1_1CreateUserRequest = (input, context) => {
1233
+ return {
1234
+ ...(input.Addresses != null && { Addresses: serializeAws_json1_1Addresses(input.Addresses, context) }),
1235
+ ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
1236
+ ...(input.Emails != null && { Emails: serializeAws_json1_1Emails(input.Emails, context) }),
1237
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1238
+ ...(input.Locale != null && { Locale: input.Locale }),
1239
+ ...(input.Name != null && { Name: serializeAws_json1_1Name(input.Name, context) }),
1240
+ ...(input.NickName != null && { NickName: input.NickName }),
1241
+ ...(input.PhoneNumbers != null && { PhoneNumbers: serializeAws_json1_1PhoneNumbers(input.PhoneNumbers, context) }),
1242
+ ...(input.PreferredLanguage != null && { PreferredLanguage: input.PreferredLanguage }),
1243
+ ...(input.ProfileUrl != null && { ProfileUrl: input.ProfileUrl }),
1244
+ ...(input.Timezone != null && { Timezone: input.Timezone }),
1245
+ ...(input.Title != null && { Title: input.Title }),
1246
+ ...(input.UserName != null && { UserName: input.UserName }),
1247
+ ...(input.UserType != null && { UserType: input.UserType }),
1248
+ };
1249
+ };
1250
+ const serializeAws_json1_1DeleteGroupMembershipRequest = (input, context) => {
1251
+ return {
1252
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1253
+ ...(input.MembershipId != null && { MembershipId: input.MembershipId }),
1254
+ };
1255
+ };
1256
+ const serializeAws_json1_1DeleteGroupRequest = (input, context) => {
1257
+ return {
1258
+ ...(input.GroupId != null && { GroupId: input.GroupId }),
1259
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1260
+ };
1261
+ };
1262
+ const serializeAws_json1_1DeleteUserRequest = (input, context) => {
1263
+ return {
1264
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1265
+ ...(input.UserId != null && { UserId: input.UserId }),
1266
+ };
1267
+ };
1268
+ const serializeAws_json1_1DescribeGroupMembershipRequest = (input, context) => {
1269
+ return {
1270
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1271
+ ...(input.MembershipId != null && { MembershipId: input.MembershipId }),
1272
+ };
1273
+ };
1274
+ const serializeAws_json1_1DescribeGroupRequest = (input, context) => {
1275
+ return {
1276
+ ...(input.GroupId != null && { GroupId: input.GroupId }),
1277
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1278
+ };
1279
+ };
1280
+ const serializeAws_json1_1DescribeUserRequest = (input, context) => {
1281
+ return {
1282
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1283
+ ...(input.UserId != null && { UserId: input.UserId }),
1284
+ };
1285
+ };
1286
+ const serializeAws_json1_1Email = (input, context) => {
1287
+ return {
1288
+ ...(input.Primary != null && { Primary: input.Primary }),
1289
+ ...(input.Type != null && { Type: input.Type }),
1290
+ ...(input.Value != null && { Value: input.Value }),
1291
+ };
1292
+ };
1293
+ const serializeAws_json1_1Emails = (input, context) => {
1294
+ return input
1295
+ .filter((e) => e != null)
1296
+ .map((entry) => {
1297
+ return serializeAws_json1_1Email(entry, context);
1298
+ });
1299
+ };
1300
+ const serializeAws_json1_1ExternalId = (input, context) => {
1301
+ return {
1302
+ ...(input.Id != null && { Id: input.Id }),
1303
+ ...(input.Issuer != null && { Issuer: input.Issuer }),
1304
+ };
1305
+ };
1306
+ const serializeAws_json1_1Filter = (input, context) => {
1307
+ return {
1308
+ ...(input.AttributePath != null && { AttributePath: input.AttributePath }),
1309
+ ...(input.AttributeValue != null && { AttributeValue: input.AttributeValue }),
1310
+ };
1311
+ };
1312
+ const serializeAws_json1_1Filters = (input, context) => {
1313
+ return input
1314
+ .filter((e) => e != null)
1315
+ .map((entry) => {
1316
+ return serializeAws_json1_1Filter(entry, context);
1317
+ });
1318
+ };
1319
+ const serializeAws_json1_1GetGroupIdRequest = (input, context) => {
1320
+ return {
1321
+ ...(input.AlternateIdentifier != null && {
1322
+ AlternateIdentifier: serializeAws_json1_1AlternateIdentifier(input.AlternateIdentifier, context),
1323
+ }),
1324
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1325
+ };
1326
+ };
1327
+ const serializeAws_json1_1GetGroupMembershipIdRequest = (input, context) => {
1328
+ return {
1329
+ ...(input.GroupId != null && { GroupId: input.GroupId }),
1330
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1331
+ ...(input.MemberId != null && { MemberId: serializeAws_json1_1MemberId(input.MemberId, context) }),
1332
+ };
1333
+ };
1334
+ const serializeAws_json1_1GetUserIdRequest = (input, context) => {
1335
+ return {
1336
+ ...(input.AlternateIdentifier != null && {
1337
+ AlternateIdentifier: serializeAws_json1_1AlternateIdentifier(input.AlternateIdentifier, context),
1338
+ }),
1339
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1340
+ };
1341
+ };
1342
+ const serializeAws_json1_1GroupIds = (input, context) => {
1343
+ return input
1344
+ .filter((e) => e != null)
1345
+ .map((entry) => {
1346
+ return entry;
1347
+ });
1348
+ };
1349
+ const serializeAws_json1_1IsMemberInGroupsRequest = (input, context) => {
1350
+ return {
1351
+ ...(input.GroupIds != null && { GroupIds: serializeAws_json1_1GroupIds(input.GroupIds, context) }),
1352
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1353
+ ...(input.MemberId != null && { MemberId: serializeAws_json1_1MemberId(input.MemberId, context) }),
1354
+ };
1355
+ };
1356
+ const serializeAws_json1_1ListGroupMembershipsForMemberRequest = (input, context) => {
1357
+ return {
1358
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1359
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1360
+ ...(input.MemberId != null && { MemberId: serializeAws_json1_1MemberId(input.MemberId, context) }),
1361
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1362
+ };
1363
+ };
1364
+ const serializeAws_json1_1ListGroupMembershipsRequest = (input, context) => {
1365
+ return {
1366
+ ...(input.GroupId != null && { GroupId: input.GroupId }),
1367
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1368
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1369
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1370
+ };
1371
+ };
1372
+ const serializeAws_json1_1ListGroupsRequest = (input, context) => {
1373
+ return {
1374
+ ...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
1375
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1376
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1377
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1378
+ };
1379
+ };
1380
+ const serializeAws_json1_1ListUsersRequest = (input, context) => {
1381
+ return {
312
1382
  ...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
313
1383
  ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
314
1384
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
315
1385
  ...(input.NextToken != null && { NextToken: input.NextToken }),
316
1386
  };
317
1387
  };
1388
+ const serializeAws_json1_1MemberId = (input, context) => {
1389
+ return models_0_1.MemberId.visit(input, {
1390
+ UserId: (value) => ({ UserId: value }),
1391
+ _: (name, value) => ({ name: value }),
1392
+ });
1393
+ };
1394
+ const serializeAws_json1_1Name = (input, context) => {
1395
+ return {
1396
+ ...(input.FamilyName != null && { FamilyName: input.FamilyName }),
1397
+ ...(input.Formatted != null && { Formatted: input.Formatted }),
1398
+ ...(input.GivenName != null && { GivenName: input.GivenName }),
1399
+ ...(input.HonorificPrefix != null && { HonorificPrefix: input.HonorificPrefix }),
1400
+ ...(input.HonorificSuffix != null && { HonorificSuffix: input.HonorificSuffix }),
1401
+ ...(input.MiddleName != null && { MiddleName: input.MiddleName }),
1402
+ };
1403
+ };
1404
+ const serializeAws_json1_1PhoneNumber = (input, context) => {
1405
+ return {
1406
+ ...(input.Primary != null && { Primary: input.Primary }),
1407
+ ...(input.Type != null && { Type: input.Type }),
1408
+ ...(input.Value != null && { Value: input.Value }),
1409
+ };
1410
+ };
1411
+ const serializeAws_json1_1PhoneNumbers = (input, context) => {
1412
+ return input
1413
+ .filter((e) => e != null)
1414
+ .map((entry) => {
1415
+ return serializeAws_json1_1PhoneNumber(entry, context);
1416
+ });
1417
+ };
1418
+ const serializeAws_json1_1UniqueAttribute = (input, context) => {
1419
+ return {
1420
+ ...(input.AttributePath != null && { AttributePath: input.AttributePath }),
1421
+ ...(input.AttributeValue != null && {
1422
+ AttributeValue: serializeAws_json1_1AttributeValue(input.AttributeValue, context),
1423
+ }),
1424
+ };
1425
+ };
1426
+ const serializeAws_json1_1UpdateGroupRequest = (input, context) => {
1427
+ return {
1428
+ ...(input.GroupId != null && { GroupId: input.GroupId }),
1429
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1430
+ ...(input.Operations != null && { Operations: serializeAws_json1_1AttributeOperations(input.Operations, context) }),
1431
+ };
1432
+ };
1433
+ const serializeAws_json1_1UpdateUserRequest = (input, context) => {
1434
+ return {
1435
+ ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1436
+ ...(input.Operations != null && { Operations: serializeAws_json1_1AttributeOperations(input.Operations, context) }),
1437
+ ...(input.UserId != null && { UserId: input.UserId }),
1438
+ };
1439
+ };
318
1440
  const deserializeAws_json1_1AccessDeniedException = (output, context) => {
319
1441
  return {
320
1442
  Message: (0, smithy_client_1.expectString)(output.Message),
321
1443
  RequestId: (0, smithy_client_1.expectString)(output.RequestId),
322
1444
  };
323
1445
  };
1446
+ const deserializeAws_json1_1Address = (output, context) => {
1447
+ return {
1448
+ Country: (0, smithy_client_1.expectString)(output.Country),
1449
+ Formatted: (0, smithy_client_1.expectString)(output.Formatted),
1450
+ Locality: (0, smithy_client_1.expectString)(output.Locality),
1451
+ PostalCode: (0, smithy_client_1.expectString)(output.PostalCode),
1452
+ Primary: (0, smithy_client_1.expectBoolean)(output.Primary),
1453
+ Region: (0, smithy_client_1.expectString)(output.Region),
1454
+ StreetAddress: (0, smithy_client_1.expectString)(output.StreetAddress),
1455
+ Type: (0, smithy_client_1.expectString)(output.Type),
1456
+ };
1457
+ };
1458
+ const deserializeAws_json1_1Addresses = (output, context) => {
1459
+ const retVal = (output || [])
1460
+ .filter((e) => e != null)
1461
+ .map((entry) => {
1462
+ if (entry === null) {
1463
+ return null;
1464
+ }
1465
+ return deserializeAws_json1_1Address(entry, context);
1466
+ });
1467
+ return retVal;
1468
+ };
1469
+ const deserializeAws_json1_1ConflictException = (output, context) => {
1470
+ return {
1471
+ Message: (0, smithy_client_1.expectString)(output.Message),
1472
+ Reason: (0, smithy_client_1.expectString)(output.Reason),
1473
+ RequestId: (0, smithy_client_1.expectString)(output.RequestId),
1474
+ };
1475
+ };
1476
+ const deserializeAws_json1_1CreateGroupMembershipResponse = (output, context) => {
1477
+ return {
1478
+ IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1479
+ MembershipId: (0, smithy_client_1.expectString)(output.MembershipId),
1480
+ };
1481
+ };
1482
+ const deserializeAws_json1_1CreateGroupResponse = (output, context) => {
1483
+ return {
1484
+ GroupId: (0, smithy_client_1.expectString)(output.GroupId),
1485
+ IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1486
+ };
1487
+ };
1488
+ const deserializeAws_json1_1CreateUserResponse = (output, context) => {
1489
+ return {
1490
+ IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1491
+ UserId: (0, smithy_client_1.expectString)(output.UserId),
1492
+ };
1493
+ };
1494
+ const deserializeAws_json1_1DeleteGroupMembershipResponse = (output, context) => {
1495
+ return {};
1496
+ };
1497
+ const deserializeAws_json1_1DeleteGroupResponse = (output, context) => {
1498
+ return {};
1499
+ };
1500
+ const deserializeAws_json1_1DeleteUserResponse = (output, context) => {
1501
+ return {};
1502
+ };
1503
+ const deserializeAws_json1_1DescribeGroupMembershipResponse = (output, context) => {
1504
+ return {
1505
+ GroupId: (0, smithy_client_1.expectString)(output.GroupId),
1506
+ IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1507
+ MemberId: output.MemberId != null ? deserializeAws_json1_1MemberId((0, smithy_client_1.expectUnion)(output.MemberId), context) : undefined,
1508
+ MembershipId: (0, smithy_client_1.expectString)(output.MembershipId),
1509
+ };
1510
+ };
324
1511
  const deserializeAws_json1_1DescribeGroupResponse = (output, context) => {
325
1512
  return {
1513
+ Description: (0, smithy_client_1.expectString)(output.Description),
326
1514
  DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
1515
+ ExternalIds: output.ExternalIds != null ? deserializeAws_json1_1ExternalIds(output.ExternalIds, context) : undefined,
327
1516
  GroupId: (0, smithy_client_1.expectString)(output.GroupId),
1517
+ IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
328
1518
  };
329
1519
  };
330
1520
  const deserializeAws_json1_1DescribeUserResponse = (output, context) => {
331
1521
  return {
1522
+ Addresses: output.Addresses != null ? deserializeAws_json1_1Addresses(output.Addresses, context) : undefined,
1523
+ DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
1524
+ Emails: output.Emails != null ? deserializeAws_json1_1Emails(output.Emails, context) : undefined,
1525
+ ExternalIds: output.ExternalIds != null ? deserializeAws_json1_1ExternalIds(output.ExternalIds, context) : undefined,
1526
+ IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1527
+ Locale: (0, smithy_client_1.expectString)(output.Locale),
1528
+ Name: output.Name != null ? deserializeAws_json1_1Name(output.Name, context) : undefined,
1529
+ NickName: (0, smithy_client_1.expectString)(output.NickName),
1530
+ PhoneNumbers: output.PhoneNumbers != null ? deserializeAws_json1_1PhoneNumbers(output.PhoneNumbers, context) : undefined,
1531
+ PreferredLanguage: (0, smithy_client_1.expectString)(output.PreferredLanguage),
1532
+ ProfileUrl: (0, smithy_client_1.expectString)(output.ProfileUrl),
1533
+ Timezone: (0, smithy_client_1.expectString)(output.Timezone),
1534
+ Title: (0, smithy_client_1.expectString)(output.Title),
332
1535
  UserId: (0, smithy_client_1.expectString)(output.UserId),
333
1536
  UserName: (0, smithy_client_1.expectString)(output.UserName),
1537
+ UserType: (0, smithy_client_1.expectString)(output.UserType),
1538
+ };
1539
+ };
1540
+ const deserializeAws_json1_1Email = (output, context) => {
1541
+ return {
1542
+ Primary: (0, smithy_client_1.expectBoolean)(output.Primary),
1543
+ Type: (0, smithy_client_1.expectString)(output.Type),
1544
+ Value: (0, smithy_client_1.expectString)(output.Value),
1545
+ };
1546
+ };
1547
+ const deserializeAws_json1_1Emails = (output, context) => {
1548
+ const retVal = (output || [])
1549
+ .filter((e) => e != null)
1550
+ .map((entry) => {
1551
+ if (entry === null) {
1552
+ return null;
1553
+ }
1554
+ return deserializeAws_json1_1Email(entry, context);
1555
+ });
1556
+ return retVal;
1557
+ };
1558
+ const deserializeAws_json1_1ExternalId = (output, context) => {
1559
+ return {
1560
+ Id: (0, smithy_client_1.expectString)(output.Id),
1561
+ Issuer: (0, smithy_client_1.expectString)(output.Issuer),
1562
+ };
1563
+ };
1564
+ const deserializeAws_json1_1ExternalIds = (output, context) => {
1565
+ const retVal = (output || [])
1566
+ .filter((e) => e != null)
1567
+ .map((entry) => {
1568
+ if (entry === null) {
1569
+ return null;
1570
+ }
1571
+ return deserializeAws_json1_1ExternalId(entry, context);
1572
+ });
1573
+ return retVal;
1574
+ };
1575
+ const deserializeAws_json1_1GetGroupIdResponse = (output, context) => {
1576
+ return {
1577
+ GroupId: (0, smithy_client_1.expectString)(output.GroupId),
1578
+ IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1579
+ };
1580
+ };
1581
+ const deserializeAws_json1_1GetGroupMembershipIdResponse = (output, context) => {
1582
+ return {
1583
+ IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1584
+ MembershipId: (0, smithy_client_1.expectString)(output.MembershipId),
1585
+ };
1586
+ };
1587
+ const deserializeAws_json1_1GetUserIdResponse = (output, context) => {
1588
+ return {
1589
+ IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1590
+ UserId: (0, smithy_client_1.expectString)(output.UserId),
334
1591
  };
335
1592
  };
336
1593
  const deserializeAws_json1_1Group = (output, context) => {
337
1594
  return {
1595
+ Description: (0, smithy_client_1.expectString)(output.Description),
338
1596
  DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
1597
+ ExternalIds: output.ExternalIds != null ? deserializeAws_json1_1ExternalIds(output.ExternalIds, context) : undefined,
1598
+ GroupId: (0, smithy_client_1.expectString)(output.GroupId),
1599
+ IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1600
+ };
1601
+ };
1602
+ const deserializeAws_json1_1GroupMembership = (output, context) => {
1603
+ return {
1604
+ GroupId: (0, smithy_client_1.expectString)(output.GroupId),
1605
+ IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1606
+ MemberId: output.MemberId != null ? deserializeAws_json1_1MemberId((0, smithy_client_1.expectUnion)(output.MemberId), context) : undefined,
1607
+ MembershipId: (0, smithy_client_1.expectString)(output.MembershipId),
1608
+ };
1609
+ };
1610
+ const deserializeAws_json1_1GroupMembershipExistenceResult = (output, context) => {
1611
+ return {
339
1612
  GroupId: (0, smithy_client_1.expectString)(output.GroupId),
1613
+ MemberId: output.MemberId != null ? deserializeAws_json1_1MemberId((0, smithy_client_1.expectUnion)(output.MemberId), context) : undefined,
1614
+ MembershipExists: (0, smithy_client_1.expectBoolean)(output.MembershipExists),
340
1615
  };
341
1616
  };
1617
+ const deserializeAws_json1_1GroupMembershipExistenceResults = (output, context) => {
1618
+ const retVal = (output || [])
1619
+ .filter((e) => e != null)
1620
+ .map((entry) => {
1621
+ if (entry === null) {
1622
+ return null;
1623
+ }
1624
+ return deserializeAws_json1_1GroupMembershipExistenceResult(entry, context);
1625
+ });
1626
+ return retVal;
1627
+ };
1628
+ const deserializeAws_json1_1GroupMemberships = (output, context) => {
1629
+ const retVal = (output || [])
1630
+ .filter((e) => e != null)
1631
+ .map((entry) => {
1632
+ if (entry === null) {
1633
+ return null;
1634
+ }
1635
+ return deserializeAws_json1_1GroupMembership(entry, context);
1636
+ });
1637
+ return retVal;
1638
+ };
342
1639
  const deserializeAws_json1_1Groups = (output, context) => {
343
1640
  const retVal = (output || [])
344
1641
  .filter((e) => e != null)
@@ -354,6 +1651,30 @@ const deserializeAws_json1_1InternalServerException = (output, context) => {
354
1651
  return {
355
1652
  Message: (0, smithy_client_1.expectString)(output.Message),
356
1653
  RequestId: (0, smithy_client_1.expectString)(output.RequestId),
1654
+ RetryAfterSeconds: (0, smithy_client_1.expectInt32)(output.RetryAfterSeconds),
1655
+ };
1656
+ };
1657
+ const deserializeAws_json1_1IsMemberInGroupsResponse = (output, context) => {
1658
+ return {
1659
+ Results: output.Results != null
1660
+ ? deserializeAws_json1_1GroupMembershipExistenceResults(output.Results, context)
1661
+ : undefined,
1662
+ };
1663
+ };
1664
+ const deserializeAws_json1_1ListGroupMembershipsForMemberResponse = (output, context) => {
1665
+ return {
1666
+ GroupMemberships: output.GroupMemberships != null
1667
+ ? deserializeAws_json1_1GroupMemberships(output.GroupMemberships, context)
1668
+ : undefined,
1669
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1670
+ };
1671
+ };
1672
+ const deserializeAws_json1_1ListGroupMembershipsResponse = (output, context) => {
1673
+ return {
1674
+ GroupMemberships: output.GroupMemberships != null
1675
+ ? deserializeAws_json1_1GroupMemberships(output.GroupMemberships, context)
1676
+ : undefined,
1677
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
357
1678
  };
358
1679
  };
359
1680
  const deserializeAws_json1_1ListGroupsResponse = (output, context) => {
@@ -368,6 +1689,40 @@ const deserializeAws_json1_1ListUsersResponse = (output, context) => {
368
1689
  Users: output.Users != null ? deserializeAws_json1_1Users(output.Users, context) : undefined,
369
1690
  };
370
1691
  };
1692
+ const deserializeAws_json1_1MemberId = (output, context) => {
1693
+ if ((0, smithy_client_1.expectString)(output.UserId) !== undefined) {
1694
+ return { UserId: (0, smithy_client_1.expectString)(output.UserId) };
1695
+ }
1696
+ return { $unknown: Object.entries(output)[0] };
1697
+ };
1698
+ const deserializeAws_json1_1Name = (output, context) => {
1699
+ return {
1700
+ FamilyName: (0, smithy_client_1.expectString)(output.FamilyName),
1701
+ Formatted: (0, smithy_client_1.expectString)(output.Formatted),
1702
+ GivenName: (0, smithy_client_1.expectString)(output.GivenName),
1703
+ HonorificPrefix: (0, smithy_client_1.expectString)(output.HonorificPrefix),
1704
+ HonorificSuffix: (0, smithy_client_1.expectString)(output.HonorificSuffix),
1705
+ MiddleName: (0, smithy_client_1.expectString)(output.MiddleName),
1706
+ };
1707
+ };
1708
+ const deserializeAws_json1_1PhoneNumber = (output, context) => {
1709
+ return {
1710
+ Primary: (0, smithy_client_1.expectBoolean)(output.Primary),
1711
+ Type: (0, smithy_client_1.expectString)(output.Type),
1712
+ Value: (0, smithy_client_1.expectString)(output.Value),
1713
+ };
1714
+ };
1715
+ const deserializeAws_json1_1PhoneNumbers = (output, context) => {
1716
+ const retVal = (output || [])
1717
+ .filter((e) => e != null)
1718
+ .map((entry) => {
1719
+ if (entry === null) {
1720
+ return null;
1721
+ }
1722
+ return deserializeAws_json1_1PhoneNumber(entry, context);
1723
+ });
1724
+ return retVal;
1725
+ };
371
1726
  const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
372
1727
  return {
373
1728
  Message: (0, smithy_client_1.expectString)(output.Message),
@@ -376,16 +1731,43 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
376
1731
  ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
377
1732
  };
378
1733
  };
1734
+ const deserializeAws_json1_1ServiceQuotaExceededException = (output, context) => {
1735
+ return {
1736
+ Message: (0, smithy_client_1.expectString)(output.Message),
1737
+ RequestId: (0, smithy_client_1.expectString)(output.RequestId),
1738
+ };
1739
+ };
379
1740
  const deserializeAws_json1_1ThrottlingException = (output, context) => {
380
1741
  return {
381
1742
  Message: (0, smithy_client_1.expectString)(output.Message),
382
1743
  RequestId: (0, smithy_client_1.expectString)(output.RequestId),
1744
+ RetryAfterSeconds: (0, smithy_client_1.expectInt32)(output.RetryAfterSeconds),
383
1745
  };
384
1746
  };
1747
+ const deserializeAws_json1_1UpdateGroupResponse = (output, context) => {
1748
+ return {};
1749
+ };
1750
+ const deserializeAws_json1_1UpdateUserResponse = (output, context) => {
1751
+ return {};
1752
+ };
385
1753
  const deserializeAws_json1_1User = (output, context) => {
386
1754
  return {
1755
+ Addresses: output.Addresses != null ? deserializeAws_json1_1Addresses(output.Addresses, context) : undefined,
1756
+ DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
1757
+ Emails: output.Emails != null ? deserializeAws_json1_1Emails(output.Emails, context) : undefined,
1758
+ ExternalIds: output.ExternalIds != null ? deserializeAws_json1_1ExternalIds(output.ExternalIds, context) : undefined,
1759
+ IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1760
+ Locale: (0, smithy_client_1.expectString)(output.Locale),
1761
+ Name: output.Name != null ? deserializeAws_json1_1Name(output.Name, context) : undefined,
1762
+ NickName: (0, smithy_client_1.expectString)(output.NickName),
1763
+ PhoneNumbers: output.PhoneNumbers != null ? deserializeAws_json1_1PhoneNumbers(output.PhoneNumbers, context) : undefined,
1764
+ PreferredLanguage: (0, smithy_client_1.expectString)(output.PreferredLanguage),
1765
+ ProfileUrl: (0, smithy_client_1.expectString)(output.ProfileUrl),
1766
+ Timezone: (0, smithy_client_1.expectString)(output.Timezone),
1767
+ Title: (0, smithy_client_1.expectString)(output.Title),
387
1768
  UserId: (0, smithy_client_1.expectString)(output.UserId),
388
1769
  UserName: (0, smithy_client_1.expectString)(output.UserName),
1770
+ UserType: (0, smithy_client_1.expectString)(output.UserType),
389
1771
  };
390
1772
  };
391
1773
  const deserializeAws_json1_1Users = (output, context) => {
@@ -452,6 +1834,9 @@ const loadRestJsonErrorCode = (output, data) => {
452
1834
  if (typeof cleanValue === "number") {
453
1835
  cleanValue = cleanValue.toString();
454
1836
  }
1837
+ if (cleanValue.indexOf(",") >= 0) {
1838
+ cleanValue = cleanValue.split(",")[0];
1839
+ }
455
1840
  if (cleanValue.indexOf(":") >= 0) {
456
1841
  cleanValue = cleanValue.split(":")[0];
457
1842
  }