@aws-sdk/client-identitystore 3.315.0 → 3.316.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Identitystore = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateGroupCommand_1 = require("./commands/CreateGroupCommand");
5
6
  const CreateGroupMembershipCommand_1 = require("./commands/CreateGroupMembershipCommand");
6
7
  const CreateUserCommand_1 = require("./commands/CreateUserCommand");
@@ -21,272 +22,28 @@ const ListUsersCommand_1 = require("./commands/ListUsersCommand");
21
22
  const UpdateGroupCommand_1 = require("./commands/UpdateGroupCommand");
22
23
  const UpdateUserCommand_1 = require("./commands/UpdateUserCommand");
23
24
  const IdentitystoreClient_1 = require("./IdentitystoreClient");
25
+ const commands = {
26
+ CreateGroupCommand: CreateGroupCommand_1.CreateGroupCommand,
27
+ CreateGroupMembershipCommand: CreateGroupMembershipCommand_1.CreateGroupMembershipCommand,
28
+ CreateUserCommand: CreateUserCommand_1.CreateUserCommand,
29
+ DeleteGroupCommand: DeleteGroupCommand_1.DeleteGroupCommand,
30
+ DeleteGroupMembershipCommand: DeleteGroupMembershipCommand_1.DeleteGroupMembershipCommand,
31
+ DeleteUserCommand: DeleteUserCommand_1.DeleteUserCommand,
32
+ DescribeGroupCommand: DescribeGroupCommand_1.DescribeGroupCommand,
33
+ DescribeGroupMembershipCommand: DescribeGroupMembershipCommand_1.DescribeGroupMembershipCommand,
34
+ DescribeUserCommand: DescribeUserCommand_1.DescribeUserCommand,
35
+ GetGroupIdCommand: GetGroupIdCommand_1.GetGroupIdCommand,
36
+ GetGroupMembershipIdCommand: GetGroupMembershipIdCommand_1.GetGroupMembershipIdCommand,
37
+ GetUserIdCommand: GetUserIdCommand_1.GetUserIdCommand,
38
+ IsMemberInGroupsCommand: IsMemberInGroupsCommand_1.IsMemberInGroupsCommand,
39
+ ListGroupMembershipsCommand: ListGroupMembershipsCommand_1.ListGroupMembershipsCommand,
40
+ ListGroupMembershipsForMemberCommand: ListGroupMembershipsForMemberCommand_1.ListGroupMembershipsForMemberCommand,
41
+ ListGroupsCommand: ListGroupsCommand_1.ListGroupsCommand,
42
+ ListUsersCommand: ListUsersCommand_1.ListUsersCommand,
43
+ UpdateGroupCommand: UpdateGroupCommand_1.UpdateGroupCommand,
44
+ UpdateUserCommand: UpdateUserCommand_1.UpdateUserCommand,
45
+ };
24
46
  class Identitystore extends IdentitystoreClient_1.IdentitystoreClient {
25
- createGroup(args, optionsOrCb, cb) {
26
- const command = new CreateGroupCommand_1.CreateGroupCommand(args);
27
- if (typeof optionsOrCb === "function") {
28
- this.send(command, optionsOrCb);
29
- }
30
- else if (typeof cb === "function") {
31
- if (typeof optionsOrCb !== "object")
32
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
33
- this.send(command, optionsOrCb || {}, cb);
34
- }
35
- else {
36
- return this.send(command, optionsOrCb);
37
- }
38
- }
39
- createGroupMembership(args, optionsOrCb, cb) {
40
- const command = new CreateGroupMembershipCommand_1.CreateGroupMembershipCommand(args);
41
- if (typeof optionsOrCb === "function") {
42
- this.send(command, optionsOrCb);
43
- }
44
- else if (typeof cb === "function") {
45
- if (typeof optionsOrCb !== "object")
46
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
47
- this.send(command, optionsOrCb || {}, cb);
48
- }
49
- else {
50
- return this.send(command, optionsOrCb);
51
- }
52
- }
53
- createUser(args, optionsOrCb, cb) {
54
- const command = new CreateUserCommand_1.CreateUserCommand(args);
55
- if (typeof optionsOrCb === "function") {
56
- this.send(command, optionsOrCb);
57
- }
58
- else if (typeof cb === "function") {
59
- if (typeof optionsOrCb !== "object")
60
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
61
- this.send(command, optionsOrCb || {}, cb);
62
- }
63
- else {
64
- return this.send(command, optionsOrCb);
65
- }
66
- }
67
- deleteGroup(args, optionsOrCb, cb) {
68
- const command = new DeleteGroupCommand_1.DeleteGroupCommand(args);
69
- if (typeof optionsOrCb === "function") {
70
- this.send(command, optionsOrCb);
71
- }
72
- else if (typeof cb === "function") {
73
- if (typeof optionsOrCb !== "object")
74
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
75
- this.send(command, optionsOrCb || {}, cb);
76
- }
77
- else {
78
- return this.send(command, optionsOrCb);
79
- }
80
- }
81
- deleteGroupMembership(args, optionsOrCb, cb) {
82
- const command = new DeleteGroupMembershipCommand_1.DeleteGroupMembershipCommand(args);
83
- if (typeof optionsOrCb === "function") {
84
- this.send(command, optionsOrCb);
85
- }
86
- else if (typeof cb === "function") {
87
- if (typeof optionsOrCb !== "object")
88
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
89
- this.send(command, optionsOrCb || {}, cb);
90
- }
91
- else {
92
- return this.send(command, optionsOrCb);
93
- }
94
- }
95
- deleteUser(args, optionsOrCb, cb) {
96
- const command = new DeleteUserCommand_1.DeleteUserCommand(args);
97
- if (typeof optionsOrCb === "function") {
98
- this.send(command, optionsOrCb);
99
- }
100
- else if (typeof cb === "function") {
101
- if (typeof optionsOrCb !== "object")
102
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
103
- this.send(command, optionsOrCb || {}, cb);
104
- }
105
- else {
106
- return this.send(command, optionsOrCb);
107
- }
108
- }
109
- describeGroup(args, optionsOrCb, cb) {
110
- const command = new DescribeGroupCommand_1.DescribeGroupCommand(args);
111
- if (typeof optionsOrCb === "function") {
112
- this.send(command, optionsOrCb);
113
- }
114
- else if (typeof cb === "function") {
115
- if (typeof optionsOrCb !== "object")
116
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
117
- this.send(command, optionsOrCb || {}, cb);
118
- }
119
- else {
120
- return this.send(command, optionsOrCb);
121
- }
122
- }
123
- describeGroupMembership(args, optionsOrCb, cb) {
124
- const command = new DescribeGroupMembershipCommand_1.DescribeGroupMembershipCommand(args);
125
- if (typeof optionsOrCb === "function") {
126
- this.send(command, optionsOrCb);
127
- }
128
- else if (typeof cb === "function") {
129
- if (typeof optionsOrCb !== "object")
130
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
131
- this.send(command, optionsOrCb || {}, cb);
132
- }
133
- else {
134
- return this.send(command, optionsOrCb);
135
- }
136
- }
137
- describeUser(args, optionsOrCb, cb) {
138
- const command = new DescribeUserCommand_1.DescribeUserCommand(args);
139
- if (typeof optionsOrCb === "function") {
140
- this.send(command, optionsOrCb);
141
- }
142
- else if (typeof cb === "function") {
143
- if (typeof optionsOrCb !== "object")
144
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
145
- this.send(command, optionsOrCb || {}, cb);
146
- }
147
- else {
148
- return this.send(command, optionsOrCb);
149
- }
150
- }
151
- getGroupId(args, optionsOrCb, cb) {
152
- const command = new GetGroupIdCommand_1.GetGroupIdCommand(args);
153
- if (typeof optionsOrCb === "function") {
154
- this.send(command, optionsOrCb);
155
- }
156
- else if (typeof cb === "function") {
157
- if (typeof optionsOrCb !== "object")
158
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
159
- this.send(command, optionsOrCb || {}, cb);
160
- }
161
- else {
162
- return this.send(command, optionsOrCb);
163
- }
164
- }
165
- getGroupMembershipId(args, optionsOrCb, cb) {
166
- const command = new GetGroupMembershipIdCommand_1.GetGroupMembershipIdCommand(args);
167
- if (typeof optionsOrCb === "function") {
168
- this.send(command, optionsOrCb);
169
- }
170
- else if (typeof cb === "function") {
171
- if (typeof optionsOrCb !== "object")
172
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
173
- this.send(command, optionsOrCb || {}, cb);
174
- }
175
- else {
176
- return this.send(command, optionsOrCb);
177
- }
178
- }
179
- getUserId(args, optionsOrCb, cb) {
180
- const command = new GetUserIdCommand_1.GetUserIdCommand(args);
181
- if (typeof optionsOrCb === "function") {
182
- this.send(command, optionsOrCb);
183
- }
184
- else if (typeof cb === "function") {
185
- if (typeof optionsOrCb !== "object")
186
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
187
- this.send(command, optionsOrCb || {}, cb);
188
- }
189
- else {
190
- return this.send(command, optionsOrCb);
191
- }
192
- }
193
- isMemberInGroups(args, optionsOrCb, cb) {
194
- const command = new IsMemberInGroupsCommand_1.IsMemberInGroupsCommand(args);
195
- if (typeof optionsOrCb === "function") {
196
- this.send(command, optionsOrCb);
197
- }
198
- else if (typeof cb === "function") {
199
- if (typeof optionsOrCb !== "object")
200
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
201
- this.send(command, optionsOrCb || {}, cb);
202
- }
203
- else {
204
- return this.send(command, optionsOrCb);
205
- }
206
- }
207
- listGroupMemberships(args, optionsOrCb, cb) {
208
- const command = new ListGroupMembershipsCommand_1.ListGroupMembershipsCommand(args);
209
- if (typeof optionsOrCb === "function") {
210
- this.send(command, optionsOrCb);
211
- }
212
- else if (typeof cb === "function") {
213
- if (typeof optionsOrCb !== "object")
214
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
215
- this.send(command, optionsOrCb || {}, cb);
216
- }
217
- else {
218
- return this.send(command, optionsOrCb);
219
- }
220
- }
221
- listGroupMembershipsForMember(args, optionsOrCb, cb) {
222
- const command = new ListGroupMembershipsForMemberCommand_1.ListGroupMembershipsForMemberCommand(args);
223
- if (typeof optionsOrCb === "function") {
224
- this.send(command, optionsOrCb);
225
- }
226
- else if (typeof cb === "function") {
227
- if (typeof optionsOrCb !== "object")
228
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
229
- this.send(command, optionsOrCb || {}, cb);
230
- }
231
- else {
232
- return this.send(command, optionsOrCb);
233
- }
234
- }
235
- listGroups(args, optionsOrCb, cb) {
236
- const command = new ListGroupsCommand_1.ListGroupsCommand(args);
237
- if (typeof optionsOrCb === "function") {
238
- this.send(command, optionsOrCb);
239
- }
240
- else if (typeof cb === "function") {
241
- if (typeof optionsOrCb !== "object")
242
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
243
- this.send(command, optionsOrCb || {}, cb);
244
- }
245
- else {
246
- return this.send(command, optionsOrCb);
247
- }
248
- }
249
- listUsers(args, optionsOrCb, cb) {
250
- const command = new ListUsersCommand_1.ListUsersCommand(args);
251
- if (typeof optionsOrCb === "function") {
252
- this.send(command, optionsOrCb);
253
- }
254
- else if (typeof cb === "function") {
255
- if (typeof optionsOrCb !== "object")
256
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
257
- this.send(command, optionsOrCb || {}, cb);
258
- }
259
- else {
260
- return this.send(command, optionsOrCb);
261
- }
262
- }
263
- updateGroup(args, optionsOrCb, cb) {
264
- const command = new UpdateGroupCommand_1.UpdateGroupCommand(args);
265
- if (typeof optionsOrCb === "function") {
266
- this.send(command, optionsOrCb);
267
- }
268
- else if (typeof cb === "function") {
269
- if (typeof optionsOrCb !== "object")
270
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
271
- this.send(command, optionsOrCb || {}, cb);
272
- }
273
- else {
274
- return this.send(command, optionsOrCb);
275
- }
276
- }
277
- updateUser(args, optionsOrCb, cb) {
278
- const command = new UpdateUserCommand_1.UpdateUserCommand(args);
279
- if (typeof optionsOrCb === "function") {
280
- this.send(command, optionsOrCb);
281
- }
282
- else if (typeof cb === "function") {
283
- if (typeof optionsOrCb !== "object")
284
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
285
- this.send(command, optionsOrCb || {}, cb);
286
- }
287
- else {
288
- return this.send(command, optionsOrCb);
289
- }
290
- }
291
47
  }
292
48
  exports.Identitystore = Identitystore;
49
+ (0, smithy_client_1.createAggregatedClient)(commands, Identitystore);
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CreateGroupCommand } from "./commands/CreateGroupCommand";
2
3
  import { CreateGroupMembershipCommand, } from "./commands/CreateGroupMembershipCommand";
3
4
  import { CreateUserCommand } from "./commands/CreateUserCommand";
@@ -18,271 +19,27 @@ import { ListUsersCommand } from "./commands/ListUsersCommand";
18
19
  import { UpdateGroupCommand } from "./commands/UpdateGroupCommand";
19
20
  import { UpdateUserCommand } from "./commands/UpdateUserCommand";
20
21
  import { IdentitystoreClient } from "./IdentitystoreClient";
22
+ const commands = {
23
+ CreateGroupCommand,
24
+ CreateGroupMembershipCommand,
25
+ CreateUserCommand,
26
+ DeleteGroupCommand,
27
+ DeleteGroupMembershipCommand,
28
+ DeleteUserCommand,
29
+ DescribeGroupCommand,
30
+ DescribeGroupMembershipCommand,
31
+ DescribeUserCommand,
32
+ GetGroupIdCommand,
33
+ GetGroupMembershipIdCommand,
34
+ GetUserIdCommand,
35
+ IsMemberInGroupsCommand,
36
+ ListGroupMembershipsCommand,
37
+ ListGroupMembershipsForMemberCommand,
38
+ ListGroupsCommand,
39
+ ListUsersCommand,
40
+ UpdateGroupCommand,
41
+ UpdateUserCommand,
42
+ };
21
43
  export class Identitystore extends IdentitystoreClient {
22
- createGroup(args, optionsOrCb, cb) {
23
- const command = new CreateGroupCommand(args);
24
- if (typeof optionsOrCb === "function") {
25
- this.send(command, optionsOrCb);
26
- }
27
- else if (typeof cb === "function") {
28
- if (typeof optionsOrCb !== "object")
29
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
30
- this.send(command, optionsOrCb || {}, cb);
31
- }
32
- else {
33
- return this.send(command, optionsOrCb);
34
- }
35
- }
36
- createGroupMembership(args, optionsOrCb, cb) {
37
- const command = new CreateGroupMembershipCommand(args);
38
- if (typeof optionsOrCb === "function") {
39
- this.send(command, optionsOrCb);
40
- }
41
- else if (typeof cb === "function") {
42
- if (typeof optionsOrCb !== "object")
43
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
44
- this.send(command, optionsOrCb || {}, cb);
45
- }
46
- else {
47
- return this.send(command, optionsOrCb);
48
- }
49
- }
50
- createUser(args, optionsOrCb, cb) {
51
- const command = new CreateUserCommand(args);
52
- if (typeof optionsOrCb === "function") {
53
- this.send(command, optionsOrCb);
54
- }
55
- else if (typeof cb === "function") {
56
- if (typeof optionsOrCb !== "object")
57
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
58
- this.send(command, optionsOrCb || {}, cb);
59
- }
60
- else {
61
- return this.send(command, optionsOrCb);
62
- }
63
- }
64
- deleteGroup(args, optionsOrCb, cb) {
65
- const command = new DeleteGroupCommand(args);
66
- if (typeof optionsOrCb === "function") {
67
- this.send(command, optionsOrCb);
68
- }
69
- else if (typeof cb === "function") {
70
- if (typeof optionsOrCb !== "object")
71
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
72
- this.send(command, optionsOrCb || {}, cb);
73
- }
74
- else {
75
- return this.send(command, optionsOrCb);
76
- }
77
- }
78
- deleteGroupMembership(args, optionsOrCb, cb) {
79
- const command = new DeleteGroupMembershipCommand(args);
80
- if (typeof optionsOrCb === "function") {
81
- this.send(command, optionsOrCb);
82
- }
83
- else if (typeof cb === "function") {
84
- if (typeof optionsOrCb !== "object")
85
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
86
- this.send(command, optionsOrCb || {}, cb);
87
- }
88
- else {
89
- return this.send(command, optionsOrCb);
90
- }
91
- }
92
- deleteUser(args, optionsOrCb, cb) {
93
- const command = new DeleteUserCommand(args);
94
- if (typeof optionsOrCb === "function") {
95
- this.send(command, optionsOrCb);
96
- }
97
- else if (typeof cb === "function") {
98
- if (typeof optionsOrCb !== "object")
99
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
100
- this.send(command, optionsOrCb || {}, cb);
101
- }
102
- else {
103
- return this.send(command, optionsOrCb);
104
- }
105
- }
106
- describeGroup(args, optionsOrCb, cb) {
107
- const command = new DescribeGroupCommand(args);
108
- if (typeof optionsOrCb === "function") {
109
- this.send(command, optionsOrCb);
110
- }
111
- else if (typeof cb === "function") {
112
- if (typeof optionsOrCb !== "object")
113
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
114
- this.send(command, optionsOrCb || {}, cb);
115
- }
116
- else {
117
- return this.send(command, optionsOrCb);
118
- }
119
- }
120
- describeGroupMembership(args, optionsOrCb, cb) {
121
- const command = new DescribeGroupMembershipCommand(args);
122
- if (typeof optionsOrCb === "function") {
123
- this.send(command, optionsOrCb);
124
- }
125
- else if (typeof cb === "function") {
126
- if (typeof optionsOrCb !== "object")
127
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
128
- this.send(command, optionsOrCb || {}, cb);
129
- }
130
- else {
131
- return this.send(command, optionsOrCb);
132
- }
133
- }
134
- describeUser(args, optionsOrCb, cb) {
135
- const command = new DescribeUserCommand(args);
136
- if (typeof optionsOrCb === "function") {
137
- this.send(command, optionsOrCb);
138
- }
139
- else if (typeof cb === "function") {
140
- if (typeof optionsOrCb !== "object")
141
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
142
- this.send(command, optionsOrCb || {}, cb);
143
- }
144
- else {
145
- return this.send(command, optionsOrCb);
146
- }
147
- }
148
- getGroupId(args, optionsOrCb, cb) {
149
- const command = new GetGroupIdCommand(args);
150
- if (typeof optionsOrCb === "function") {
151
- this.send(command, optionsOrCb);
152
- }
153
- else if (typeof cb === "function") {
154
- if (typeof optionsOrCb !== "object")
155
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
- this.send(command, optionsOrCb || {}, cb);
157
- }
158
- else {
159
- return this.send(command, optionsOrCb);
160
- }
161
- }
162
- getGroupMembershipId(args, optionsOrCb, cb) {
163
- const command = new GetGroupMembershipIdCommand(args);
164
- if (typeof optionsOrCb === "function") {
165
- this.send(command, optionsOrCb);
166
- }
167
- else if (typeof cb === "function") {
168
- if (typeof optionsOrCb !== "object")
169
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170
- this.send(command, optionsOrCb || {}, cb);
171
- }
172
- else {
173
- return this.send(command, optionsOrCb);
174
- }
175
- }
176
- getUserId(args, optionsOrCb, cb) {
177
- const command = new GetUserIdCommand(args);
178
- if (typeof optionsOrCb === "function") {
179
- this.send(command, optionsOrCb);
180
- }
181
- else if (typeof cb === "function") {
182
- if (typeof optionsOrCb !== "object")
183
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
184
- this.send(command, optionsOrCb || {}, cb);
185
- }
186
- else {
187
- return this.send(command, optionsOrCb);
188
- }
189
- }
190
- isMemberInGroups(args, optionsOrCb, cb) {
191
- const command = new IsMemberInGroupsCommand(args);
192
- if (typeof optionsOrCb === "function") {
193
- this.send(command, optionsOrCb);
194
- }
195
- else if (typeof cb === "function") {
196
- if (typeof optionsOrCb !== "object")
197
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
198
- this.send(command, optionsOrCb || {}, cb);
199
- }
200
- else {
201
- return this.send(command, optionsOrCb);
202
- }
203
- }
204
- listGroupMemberships(args, optionsOrCb, cb) {
205
- const command = new ListGroupMembershipsCommand(args);
206
- if (typeof optionsOrCb === "function") {
207
- this.send(command, optionsOrCb);
208
- }
209
- else if (typeof cb === "function") {
210
- if (typeof optionsOrCb !== "object")
211
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
212
- this.send(command, optionsOrCb || {}, cb);
213
- }
214
- else {
215
- return this.send(command, optionsOrCb);
216
- }
217
- }
218
- listGroupMembershipsForMember(args, optionsOrCb, cb) {
219
- const command = new ListGroupMembershipsForMemberCommand(args);
220
- if (typeof optionsOrCb === "function") {
221
- this.send(command, optionsOrCb);
222
- }
223
- else if (typeof cb === "function") {
224
- if (typeof optionsOrCb !== "object")
225
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
226
- this.send(command, optionsOrCb || {}, cb);
227
- }
228
- else {
229
- return this.send(command, optionsOrCb);
230
- }
231
- }
232
- listGroups(args, optionsOrCb, cb) {
233
- const command = new ListGroupsCommand(args);
234
- if (typeof optionsOrCb === "function") {
235
- this.send(command, optionsOrCb);
236
- }
237
- else if (typeof cb === "function") {
238
- if (typeof optionsOrCb !== "object")
239
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
240
- this.send(command, optionsOrCb || {}, cb);
241
- }
242
- else {
243
- return this.send(command, optionsOrCb);
244
- }
245
- }
246
- listUsers(args, optionsOrCb, cb) {
247
- const command = new ListUsersCommand(args);
248
- if (typeof optionsOrCb === "function") {
249
- this.send(command, optionsOrCb);
250
- }
251
- else if (typeof cb === "function") {
252
- if (typeof optionsOrCb !== "object")
253
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
254
- this.send(command, optionsOrCb || {}, cb);
255
- }
256
- else {
257
- return this.send(command, optionsOrCb);
258
- }
259
- }
260
- updateGroup(args, optionsOrCb, cb) {
261
- const command = new UpdateGroupCommand(args);
262
- if (typeof optionsOrCb === "function") {
263
- this.send(command, optionsOrCb);
264
- }
265
- else if (typeof cb === "function") {
266
- if (typeof optionsOrCb !== "object")
267
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
268
- this.send(command, optionsOrCb || {}, cb);
269
- }
270
- else {
271
- return this.send(command, optionsOrCb);
272
- }
273
- }
274
- updateUser(args, optionsOrCb, cb) {
275
- const command = new UpdateUserCommand(args);
276
- if (typeof optionsOrCb === "function") {
277
- this.send(command, optionsOrCb);
278
- }
279
- else if (typeof cb === "function") {
280
- if (typeof optionsOrCb !== "object")
281
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
282
- this.send(command, optionsOrCb || {}, cb);
283
- }
284
- else {
285
- return this.send(command, optionsOrCb);
286
- }
287
- }
288
44
  }
45
+ createAggregatedClient(commands, Identitystore);
@@ -19,156 +19,136 @@ import { ListUsersCommandInput, ListUsersCommandOutput } from "./commands/ListUs
19
19
  import { UpdateGroupCommandInput, UpdateGroupCommandOutput } from "./commands/UpdateGroupCommand";
20
20
  import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
21
21
  import { IdentitystoreClient } from "./IdentitystoreClient";
22
- /**
23
- * @public
24
- * <p>The Identity Store service used by AWS IAM Identity Center (successor to AWS Single Sign-On) provides a single place to retrieve all of
25
- * your identities (users and groups). For more information, see the <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">IAM Identity Center User
26
- * Guide</a>.</p>
27
- *
28
- * <note>
29
- * <p>Although AWS Single Sign-On was renamed, the <code>sso</code> and
30
- * <code>identitystore</code> API namespaces will continue to retain their original name for
31
- * backward compatibility purposes. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed">IAM Identity Center rename</a>.</p>
32
- * </note>
33
- *
34
- * <p>This reference guide describes the identity store operations that you can call
35
- * programatically and includes detailed information about data types and errors.</p>
36
- */
37
- export declare class Identitystore extends IdentitystoreClient {
22
+ export interface Identitystore {
38
23
  /**
39
- * @public
40
- * <p>Creates a group within the specified identity store.</p>
24
+ * @see {@link CreateGroupCommand}
41
25
  */
42
26
  createGroup(args: CreateGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateGroupCommandOutput>;
43
27
  createGroup(args: CreateGroupCommandInput, cb: (err: any, data?: CreateGroupCommandOutput) => void): void;
44
28
  createGroup(args: CreateGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGroupCommandOutput) => void): void;
45
29
  /**
46
- * @public
47
- * <p>Creates a relationship between a member and a group. The following identifiers must be specified: <code>GroupId</code>, <code>IdentityStoreId</code>, and <code>MemberId</code>.</p>
30
+ * @see {@link CreateGroupMembershipCommand}
48
31
  */
49
32
  createGroupMembership(args: CreateGroupMembershipCommandInput, options?: __HttpHandlerOptions): Promise<CreateGroupMembershipCommandOutput>;
50
33
  createGroupMembership(args: CreateGroupMembershipCommandInput, cb: (err: any, data?: CreateGroupMembershipCommandOutput) => void): void;
51
34
  createGroupMembership(args: CreateGroupMembershipCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGroupMembershipCommandOutput) => void): void;
52
35
  /**
53
- * @public
54
- * <p>Creates a user within the specified identity store.</p>
36
+ * @see {@link CreateUserCommand}
55
37
  */
56
38
  createUser(args: CreateUserCommandInput, options?: __HttpHandlerOptions): Promise<CreateUserCommandOutput>;
57
39
  createUser(args: CreateUserCommandInput, cb: (err: any, data?: CreateUserCommandOutput) => void): void;
58
40
  createUser(args: CreateUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateUserCommandOutput) => void): void;
59
41
  /**
60
- * @public
61
- * <p>Delete a group within an identity store given <code>GroupId</code>.</p>
42
+ * @see {@link DeleteGroupCommand}
62
43
  */
63
44
  deleteGroup(args: DeleteGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteGroupCommandOutput>;
64
45
  deleteGroup(args: DeleteGroupCommandInput, cb: (err: any, data?: DeleteGroupCommandOutput) => void): void;
65
46
  deleteGroup(args: DeleteGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteGroupCommandOutput) => void): void;
66
47
  /**
67
- * @public
68
- * <p>Delete a membership within a group given <code>MembershipId</code>.</p>
48
+ * @see {@link DeleteGroupMembershipCommand}
69
49
  */
70
50
  deleteGroupMembership(args: DeleteGroupMembershipCommandInput, options?: __HttpHandlerOptions): Promise<DeleteGroupMembershipCommandOutput>;
71
51
  deleteGroupMembership(args: DeleteGroupMembershipCommandInput, cb: (err: any, data?: DeleteGroupMembershipCommandOutput) => void): void;
72
52
  deleteGroupMembership(args: DeleteGroupMembershipCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteGroupMembershipCommandOutput) => void): void;
73
53
  /**
74
- * @public
75
- * <p>Deletes a user within an identity store given <code>UserId</code>.</p>
54
+ * @see {@link DeleteUserCommand}
76
55
  */
77
56
  deleteUser(args: DeleteUserCommandInput, options?: __HttpHandlerOptions): Promise<DeleteUserCommandOutput>;
78
57
  deleteUser(args: DeleteUserCommandInput, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
79
58
  deleteUser(args: DeleteUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
80
59
  /**
81
- * @public
82
- * <p>Retrieves the group metadata and attributes from <code>GroupId</code> in an identity
83
- * store.</p>
60
+ * @see {@link DescribeGroupCommand}
84
61
  */
85
62
  describeGroup(args: DescribeGroupCommandInput, options?: __HttpHandlerOptions): Promise<DescribeGroupCommandOutput>;
86
63
  describeGroup(args: DescribeGroupCommandInput, cb: (err: any, data?: DescribeGroupCommandOutput) => void): void;
87
64
  describeGroup(args: DescribeGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeGroupCommandOutput) => void): void;
88
65
  /**
89
- * @public
90
- * <p>Retrieves membership metadata and attributes from <code>MembershipId</code> in an identity store.</p>
66
+ * @see {@link DescribeGroupMembershipCommand}
91
67
  */
92
68
  describeGroupMembership(args: DescribeGroupMembershipCommandInput, options?: __HttpHandlerOptions): Promise<DescribeGroupMembershipCommandOutput>;
93
69
  describeGroupMembership(args: DescribeGroupMembershipCommandInput, cb: (err: any, data?: DescribeGroupMembershipCommandOutput) => void): void;
94
70
  describeGroupMembership(args: DescribeGroupMembershipCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeGroupMembershipCommandOutput) => void): void;
95
71
  /**
96
- * @public
97
- * <p>Retrieves the user metadata and attributes from the <code>UserId</code> in an identity store.</p>
72
+ * @see {@link DescribeUserCommand}
98
73
  */
99
74
  describeUser(args: DescribeUserCommandInput, options?: __HttpHandlerOptions): Promise<DescribeUserCommandOutput>;
100
75
  describeUser(args: DescribeUserCommandInput, cb: (err: any, data?: DescribeUserCommandOutput) => void): void;
101
76
  describeUser(args: DescribeUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeUserCommandOutput) => void): void;
102
77
  /**
103
- * @public
104
- * <p>Retrieves <code>GroupId</code> in an identity store.</p>
78
+ * @see {@link GetGroupIdCommand}
105
79
  */
106
80
  getGroupId(args: GetGroupIdCommandInput, options?: __HttpHandlerOptions): Promise<GetGroupIdCommandOutput>;
107
81
  getGroupId(args: GetGroupIdCommandInput, cb: (err: any, data?: GetGroupIdCommandOutput) => void): void;
108
82
  getGroupId(args: GetGroupIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGroupIdCommandOutput) => void): void;
109
83
  /**
110
- * @public
111
- * <p>Retrieves the <code>MembershipId</code> in an identity store.</p>
84
+ * @see {@link GetGroupMembershipIdCommand}
112
85
  */
113
86
  getGroupMembershipId(args: GetGroupMembershipIdCommandInput, options?: __HttpHandlerOptions): Promise<GetGroupMembershipIdCommandOutput>;
114
87
  getGroupMembershipId(args: GetGroupMembershipIdCommandInput, cb: (err: any, data?: GetGroupMembershipIdCommandOutput) => void): void;
115
88
  getGroupMembershipId(args: GetGroupMembershipIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGroupMembershipIdCommandOutput) => void): void;
116
89
  /**
117
- * @public
118
- * <p>Retrieves the <code>UserId</code> in an identity store.</p>
90
+ * @see {@link GetUserIdCommand}
119
91
  */
120
92
  getUserId(args: GetUserIdCommandInput, options?: __HttpHandlerOptions): Promise<GetUserIdCommandOutput>;
121
93
  getUserId(args: GetUserIdCommandInput, cb: (err: any, data?: GetUserIdCommandOutput) => void): void;
122
94
  getUserId(args: GetUserIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserIdCommandOutput) => void): void;
123
95
  /**
124
- * @public
125
- * <p>Checks the user's membership in all requested groups and returns if the member exists in all queried groups.</p>
96
+ * @see {@link IsMemberInGroupsCommand}
126
97
  */
127
98
  isMemberInGroups(args: IsMemberInGroupsCommandInput, options?: __HttpHandlerOptions): Promise<IsMemberInGroupsCommandOutput>;
128
99
  isMemberInGroups(args: IsMemberInGroupsCommandInput, cb: (err: any, data?: IsMemberInGroupsCommandOutput) => void): void;
129
100
  isMemberInGroups(args: IsMemberInGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: IsMemberInGroupsCommandOutput) => void): void;
130
101
  /**
131
- * @public
132
- * <p>For the specified group in the specified identity store, returns the list of all <code>GroupMembership</code> objects and returns results in paginated form.</p>
102
+ * @see {@link ListGroupMembershipsCommand}
133
103
  */
134
104
  listGroupMemberships(args: ListGroupMembershipsCommandInput, options?: __HttpHandlerOptions): Promise<ListGroupMembershipsCommandOutput>;
135
105
  listGroupMemberships(args: ListGroupMembershipsCommandInput, cb: (err: any, data?: ListGroupMembershipsCommandOutput) => void): void;
136
106
  listGroupMemberships(args: ListGroupMembershipsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGroupMembershipsCommandOutput) => void): void;
137
107
  /**
138
- * @public
139
- * <p>For the specified member in the specified identity store, returns the list of all <code>GroupMembership</code> objects and returns results in paginated form.</p>
108
+ * @see {@link ListGroupMembershipsForMemberCommand}
140
109
  */
141
110
  listGroupMembershipsForMember(args: ListGroupMembershipsForMemberCommandInput, options?: __HttpHandlerOptions): Promise<ListGroupMembershipsForMemberCommandOutput>;
142
111
  listGroupMembershipsForMember(args: ListGroupMembershipsForMemberCommandInput, cb: (err: any, data?: ListGroupMembershipsForMemberCommandOutput) => void): void;
143
112
  listGroupMembershipsForMember(args: ListGroupMembershipsForMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGroupMembershipsForMemberCommandOutput) => void): void;
144
113
  /**
145
- * @public
146
- * <p>Lists all groups in the identity store. Returns a paginated list of complete <code>Group</code> objects.
147
- * Filtering for a <code>Group</code> by the <code>DisplayName</code> attribute is deprecated. Instead, use the <code>GetGroupId</code> API action.</p>
114
+ * @see {@link ListGroupsCommand}
148
115
  */
149
116
  listGroups(args: ListGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListGroupsCommandOutput>;
150
117
  listGroups(args: ListGroupsCommandInput, cb: (err: any, data?: ListGroupsCommandOutput) => void): void;
151
118
  listGroups(args: ListGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGroupsCommandOutput) => void): void;
152
119
  /**
153
- * @public
154
- * <p>Lists all users in the identity store. Returns a paginated list of complete <code>User</code> objects.
155
- * Filtering for a <code>User</code> by the <code>UserName</code> attribute is deprecated. Instead, use the <code>GetUserId</code> API action.</p>
120
+ * @see {@link ListUsersCommand}
156
121
  */
157
122
  listUsers(args: ListUsersCommandInput, options?: __HttpHandlerOptions): Promise<ListUsersCommandOutput>;
158
123
  listUsers(args: ListUsersCommandInput, cb: (err: any, data?: ListUsersCommandOutput) => void): void;
159
124
  listUsers(args: ListUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListUsersCommandOutput) => void): void;
160
125
  /**
161
- * @public
162
- * <p>For the specified group in the specified identity store, updates the group metadata and attributes.</p>
126
+ * @see {@link UpdateGroupCommand}
163
127
  */
164
128
  updateGroup(args: UpdateGroupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateGroupCommandOutput>;
165
129
  updateGroup(args: UpdateGroupCommandInput, cb: (err: any, data?: UpdateGroupCommandOutput) => void): void;
166
130
  updateGroup(args: UpdateGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateGroupCommandOutput) => void): void;
167
131
  /**
168
- * @public
169
- * <p>For the specified user in the specified identity store, updates the user metadata and attributes.</p>
132
+ * @see {@link UpdateUserCommand}
170
133
  */
171
134
  updateUser(args: UpdateUserCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUserCommandOutput>;
172
135
  updateUser(args: UpdateUserCommandInput, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
173
136
  updateUser(args: UpdateUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
174
137
  }
138
+ /**
139
+ * @public
140
+ * <p>The Identity Store service used by AWS IAM Identity Center (successor to AWS Single Sign-On) provides a single place to retrieve all of
141
+ * your identities (users and groups). For more information, see the <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">IAM Identity Center User
142
+ * Guide</a>.</p>
143
+ *
144
+ * <note>
145
+ * <p>Although AWS Single Sign-On was renamed, the <code>sso</code> and
146
+ * <code>identitystore</code> API namespaces will continue to retain their original name for
147
+ * backward compatibility purposes. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed">IAM Identity Center rename</a>.</p>
148
+ * </note>
149
+ *
150
+ * <p>This reference guide describes the identity store operations that you can call
151
+ * programatically and includes detailed information about data types and errors.</p>
152
+ */
153
+ export declare class Identitystore extends IdentitystoreClient implements Identitystore {
154
+ }
@@ -76,7 +76,7 @@ import {
76
76
  UpdateUserCommandOutput,
77
77
  } from "./commands/UpdateUserCommand";
78
78
  import { IdentitystoreClient } from "./IdentitystoreClient";
79
- export declare class Identitystore extends IdentitystoreClient {
79
+ export interface Identitystore {
80
80
  createGroup(
81
81
  args: CreateGroupCommandInput,
82
82
  options?: __HttpHandlerOptions
@@ -325,3 +325,6 @@ export declare class Identitystore extends IdentitystoreClient {
325
325
  cb: (err: any, data?: UpdateUserCommandOutput) => void
326
326
  ): void;
327
327
  }
328
+ export declare class Identitystore
329
+ extends IdentitystoreClient
330
+ implements Identitystore {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-identitystore",
3
3
  "description": "AWS SDK for JavaScript Identitystore Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",