@aws-sdk/client-cognito-identity 3.312.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.
- package/dist-cjs/CognitoIdentity.js +27 -322
- package/dist-cjs/protocols/Aws_json1_1.js +115 -788
- package/dist-es/CognitoIdentity.js +27 -322
- package/dist-es/protocols/Aws_json1_1.js +116 -789
- package/dist-types/CognitoIdentity.d.ts +43 -178
- package/dist-types/ts3.4/CognitoIdentity.d.ts +4 -1
- package/package.json +7 -7
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CognitoIdentity = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CognitoIdentityClient_1 = require("./CognitoIdentityClient");
|
|
5
6
|
const CreateIdentityPoolCommand_1 = require("./commands/CreateIdentityPoolCommand");
|
|
6
7
|
const DeleteIdentitiesCommand_1 = require("./commands/DeleteIdentitiesCommand");
|
|
@@ -25,328 +26,32 @@ const UnlinkDeveloperIdentityCommand_1 = require("./commands/UnlinkDeveloperIden
|
|
|
25
26
|
const UnlinkIdentityCommand_1 = require("./commands/UnlinkIdentityCommand");
|
|
26
27
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
27
28
|
const UpdateIdentityPoolCommand_1 = require("./commands/UpdateIdentityPoolCommand");
|
|
29
|
+
const commands = {
|
|
30
|
+
CreateIdentityPoolCommand: CreateIdentityPoolCommand_1.CreateIdentityPoolCommand,
|
|
31
|
+
DeleteIdentitiesCommand: DeleteIdentitiesCommand_1.DeleteIdentitiesCommand,
|
|
32
|
+
DeleteIdentityPoolCommand: DeleteIdentityPoolCommand_1.DeleteIdentityPoolCommand,
|
|
33
|
+
DescribeIdentityCommand: DescribeIdentityCommand_1.DescribeIdentityCommand,
|
|
34
|
+
DescribeIdentityPoolCommand: DescribeIdentityPoolCommand_1.DescribeIdentityPoolCommand,
|
|
35
|
+
GetCredentialsForIdentityCommand: GetCredentialsForIdentityCommand_1.GetCredentialsForIdentityCommand,
|
|
36
|
+
GetIdCommand: GetIdCommand_1.GetIdCommand,
|
|
37
|
+
GetIdentityPoolRolesCommand: GetIdentityPoolRolesCommand_1.GetIdentityPoolRolesCommand,
|
|
38
|
+
GetOpenIdTokenCommand: GetOpenIdTokenCommand_1.GetOpenIdTokenCommand,
|
|
39
|
+
GetOpenIdTokenForDeveloperIdentityCommand: GetOpenIdTokenForDeveloperIdentityCommand_1.GetOpenIdTokenForDeveloperIdentityCommand,
|
|
40
|
+
GetPrincipalTagAttributeMapCommand: GetPrincipalTagAttributeMapCommand_1.GetPrincipalTagAttributeMapCommand,
|
|
41
|
+
ListIdentitiesCommand: ListIdentitiesCommand_1.ListIdentitiesCommand,
|
|
42
|
+
ListIdentityPoolsCommand: ListIdentityPoolsCommand_1.ListIdentityPoolsCommand,
|
|
43
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
44
|
+
LookupDeveloperIdentityCommand: LookupDeveloperIdentityCommand_1.LookupDeveloperIdentityCommand,
|
|
45
|
+
MergeDeveloperIdentitiesCommand: MergeDeveloperIdentitiesCommand_1.MergeDeveloperIdentitiesCommand,
|
|
46
|
+
SetIdentityPoolRolesCommand: SetIdentityPoolRolesCommand_1.SetIdentityPoolRolesCommand,
|
|
47
|
+
SetPrincipalTagAttributeMapCommand: SetPrincipalTagAttributeMapCommand_1.SetPrincipalTagAttributeMapCommand,
|
|
48
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
49
|
+
UnlinkDeveloperIdentityCommand: UnlinkDeveloperIdentityCommand_1.UnlinkDeveloperIdentityCommand,
|
|
50
|
+
UnlinkIdentityCommand: UnlinkIdentityCommand_1.UnlinkIdentityCommand,
|
|
51
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
52
|
+
UpdateIdentityPoolCommand: UpdateIdentityPoolCommand_1.UpdateIdentityPoolCommand,
|
|
53
|
+
};
|
|
28
54
|
class CognitoIdentity extends CognitoIdentityClient_1.CognitoIdentityClient {
|
|
29
|
-
createIdentityPool(args, optionsOrCb, cb) {
|
|
30
|
-
const command = new CreateIdentityPoolCommand_1.CreateIdentityPoolCommand(args);
|
|
31
|
-
if (typeof optionsOrCb === "function") {
|
|
32
|
-
this.send(command, optionsOrCb);
|
|
33
|
-
}
|
|
34
|
-
else if (typeof cb === "function") {
|
|
35
|
-
if (typeof optionsOrCb !== "object")
|
|
36
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
37
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
deleteIdentities(args, optionsOrCb, cb) {
|
|
44
|
-
const command = new DeleteIdentitiesCommand_1.DeleteIdentitiesCommand(args);
|
|
45
|
-
if (typeof optionsOrCb === "function") {
|
|
46
|
-
this.send(command, optionsOrCb);
|
|
47
|
-
}
|
|
48
|
-
else if (typeof cb === "function") {
|
|
49
|
-
if (typeof optionsOrCb !== "object")
|
|
50
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
51
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
return this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
deleteIdentityPool(args, optionsOrCb, cb) {
|
|
58
|
-
const command = new DeleteIdentityPoolCommand_1.DeleteIdentityPoolCommand(args);
|
|
59
|
-
if (typeof optionsOrCb === "function") {
|
|
60
|
-
this.send(command, optionsOrCb);
|
|
61
|
-
}
|
|
62
|
-
else if (typeof cb === "function") {
|
|
63
|
-
if (typeof optionsOrCb !== "object")
|
|
64
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
65
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
return this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
describeIdentity(args, optionsOrCb, cb) {
|
|
72
|
-
const command = new DescribeIdentityCommand_1.DescribeIdentityCommand(args);
|
|
73
|
-
if (typeof optionsOrCb === "function") {
|
|
74
|
-
this.send(command, optionsOrCb);
|
|
75
|
-
}
|
|
76
|
-
else if (typeof cb === "function") {
|
|
77
|
-
if (typeof optionsOrCb !== "object")
|
|
78
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
79
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
return this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
describeIdentityPool(args, optionsOrCb, cb) {
|
|
86
|
-
const command = new DescribeIdentityPoolCommand_1.DescribeIdentityPoolCommand(args);
|
|
87
|
-
if (typeof optionsOrCb === "function") {
|
|
88
|
-
this.send(command, optionsOrCb);
|
|
89
|
-
}
|
|
90
|
-
else if (typeof cb === "function") {
|
|
91
|
-
if (typeof optionsOrCb !== "object")
|
|
92
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
return this.send(command, optionsOrCb);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
getCredentialsForIdentity(args, optionsOrCb, cb) {
|
|
100
|
-
const command = new GetCredentialsForIdentityCommand_1.GetCredentialsForIdentityCommand(args);
|
|
101
|
-
if (typeof optionsOrCb === "function") {
|
|
102
|
-
this.send(command, optionsOrCb);
|
|
103
|
-
}
|
|
104
|
-
else if (typeof cb === "function") {
|
|
105
|
-
if (typeof optionsOrCb !== "object")
|
|
106
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
107
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
return this.send(command, optionsOrCb);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
getId(args, optionsOrCb, cb) {
|
|
114
|
-
const command = new GetIdCommand_1.GetIdCommand(args);
|
|
115
|
-
if (typeof optionsOrCb === "function") {
|
|
116
|
-
this.send(command, optionsOrCb);
|
|
117
|
-
}
|
|
118
|
-
else if (typeof cb === "function") {
|
|
119
|
-
if (typeof optionsOrCb !== "object")
|
|
120
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
121
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
return this.send(command, optionsOrCb);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
getIdentityPoolRoles(args, optionsOrCb, cb) {
|
|
128
|
-
const command = new GetIdentityPoolRolesCommand_1.GetIdentityPoolRolesCommand(args);
|
|
129
|
-
if (typeof optionsOrCb === "function") {
|
|
130
|
-
this.send(command, optionsOrCb);
|
|
131
|
-
}
|
|
132
|
-
else if (typeof cb === "function") {
|
|
133
|
-
if (typeof optionsOrCb !== "object")
|
|
134
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
return this.send(command, optionsOrCb);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
getOpenIdToken(args, optionsOrCb, cb) {
|
|
142
|
-
const command = new GetOpenIdTokenCommand_1.GetOpenIdTokenCommand(args);
|
|
143
|
-
if (typeof optionsOrCb === "function") {
|
|
144
|
-
this.send(command, optionsOrCb);
|
|
145
|
-
}
|
|
146
|
-
else if (typeof cb === "function") {
|
|
147
|
-
if (typeof optionsOrCb !== "object")
|
|
148
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
149
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
return this.send(command, optionsOrCb);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
getOpenIdTokenForDeveloperIdentity(args, optionsOrCb, cb) {
|
|
156
|
-
const command = new GetOpenIdTokenForDeveloperIdentityCommand_1.GetOpenIdTokenForDeveloperIdentityCommand(args);
|
|
157
|
-
if (typeof optionsOrCb === "function") {
|
|
158
|
-
this.send(command, optionsOrCb);
|
|
159
|
-
}
|
|
160
|
-
else if (typeof cb === "function") {
|
|
161
|
-
if (typeof optionsOrCb !== "object")
|
|
162
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
163
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
return this.send(command, optionsOrCb);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
getPrincipalTagAttributeMap(args, optionsOrCb, cb) {
|
|
170
|
-
const command = new GetPrincipalTagAttributeMapCommand_1.GetPrincipalTagAttributeMapCommand(args);
|
|
171
|
-
if (typeof optionsOrCb === "function") {
|
|
172
|
-
this.send(command, optionsOrCb);
|
|
173
|
-
}
|
|
174
|
-
else if (typeof cb === "function") {
|
|
175
|
-
if (typeof optionsOrCb !== "object")
|
|
176
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
177
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
return this.send(command, optionsOrCb);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
listIdentities(args, optionsOrCb, cb) {
|
|
184
|
-
const command = new ListIdentitiesCommand_1.ListIdentitiesCommand(args);
|
|
185
|
-
if (typeof optionsOrCb === "function") {
|
|
186
|
-
this.send(command, optionsOrCb);
|
|
187
|
-
}
|
|
188
|
-
else if (typeof cb === "function") {
|
|
189
|
-
if (typeof optionsOrCb !== "object")
|
|
190
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
191
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
192
|
-
}
|
|
193
|
-
else {
|
|
194
|
-
return this.send(command, optionsOrCb);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
listIdentityPools(args, optionsOrCb, cb) {
|
|
198
|
-
const command = new ListIdentityPoolsCommand_1.ListIdentityPoolsCommand(args);
|
|
199
|
-
if (typeof optionsOrCb === "function") {
|
|
200
|
-
this.send(command, optionsOrCb);
|
|
201
|
-
}
|
|
202
|
-
else if (typeof cb === "function") {
|
|
203
|
-
if (typeof optionsOrCb !== "object")
|
|
204
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
205
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
return this.send(command, optionsOrCb);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
212
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
213
|
-
if (typeof optionsOrCb === "function") {
|
|
214
|
-
this.send(command, optionsOrCb);
|
|
215
|
-
}
|
|
216
|
-
else if (typeof cb === "function") {
|
|
217
|
-
if (typeof optionsOrCb !== "object")
|
|
218
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
219
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
return this.send(command, optionsOrCb);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
lookupDeveloperIdentity(args, optionsOrCb, cb) {
|
|
226
|
-
const command = new LookupDeveloperIdentityCommand_1.LookupDeveloperIdentityCommand(args);
|
|
227
|
-
if (typeof optionsOrCb === "function") {
|
|
228
|
-
this.send(command, optionsOrCb);
|
|
229
|
-
}
|
|
230
|
-
else if (typeof cb === "function") {
|
|
231
|
-
if (typeof optionsOrCb !== "object")
|
|
232
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
233
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
234
|
-
}
|
|
235
|
-
else {
|
|
236
|
-
return this.send(command, optionsOrCb);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
mergeDeveloperIdentities(args, optionsOrCb, cb) {
|
|
240
|
-
const command = new MergeDeveloperIdentitiesCommand_1.MergeDeveloperIdentitiesCommand(args);
|
|
241
|
-
if (typeof optionsOrCb === "function") {
|
|
242
|
-
this.send(command, optionsOrCb);
|
|
243
|
-
}
|
|
244
|
-
else if (typeof cb === "function") {
|
|
245
|
-
if (typeof optionsOrCb !== "object")
|
|
246
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
247
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
return this.send(command, optionsOrCb);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
setIdentityPoolRoles(args, optionsOrCb, cb) {
|
|
254
|
-
const command = new SetIdentityPoolRolesCommand_1.SetIdentityPoolRolesCommand(args);
|
|
255
|
-
if (typeof optionsOrCb === "function") {
|
|
256
|
-
this.send(command, optionsOrCb);
|
|
257
|
-
}
|
|
258
|
-
else if (typeof cb === "function") {
|
|
259
|
-
if (typeof optionsOrCb !== "object")
|
|
260
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
261
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
262
|
-
}
|
|
263
|
-
else {
|
|
264
|
-
return this.send(command, optionsOrCb);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
setPrincipalTagAttributeMap(args, optionsOrCb, cb) {
|
|
268
|
-
const command = new SetPrincipalTagAttributeMapCommand_1.SetPrincipalTagAttributeMapCommand(args);
|
|
269
|
-
if (typeof optionsOrCb === "function") {
|
|
270
|
-
this.send(command, optionsOrCb);
|
|
271
|
-
}
|
|
272
|
-
else if (typeof cb === "function") {
|
|
273
|
-
if (typeof optionsOrCb !== "object")
|
|
274
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
275
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
return this.send(command, optionsOrCb);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
tagResource(args, optionsOrCb, cb) {
|
|
282
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
283
|
-
if (typeof optionsOrCb === "function") {
|
|
284
|
-
this.send(command, optionsOrCb);
|
|
285
|
-
}
|
|
286
|
-
else if (typeof cb === "function") {
|
|
287
|
-
if (typeof optionsOrCb !== "object")
|
|
288
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
289
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
290
|
-
}
|
|
291
|
-
else {
|
|
292
|
-
return this.send(command, optionsOrCb);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
unlinkDeveloperIdentity(args, optionsOrCb, cb) {
|
|
296
|
-
const command = new UnlinkDeveloperIdentityCommand_1.UnlinkDeveloperIdentityCommand(args);
|
|
297
|
-
if (typeof optionsOrCb === "function") {
|
|
298
|
-
this.send(command, optionsOrCb);
|
|
299
|
-
}
|
|
300
|
-
else if (typeof cb === "function") {
|
|
301
|
-
if (typeof optionsOrCb !== "object")
|
|
302
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
303
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
304
|
-
}
|
|
305
|
-
else {
|
|
306
|
-
return this.send(command, optionsOrCb);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
unlinkIdentity(args, optionsOrCb, cb) {
|
|
310
|
-
const command = new UnlinkIdentityCommand_1.UnlinkIdentityCommand(args);
|
|
311
|
-
if (typeof optionsOrCb === "function") {
|
|
312
|
-
this.send(command, optionsOrCb);
|
|
313
|
-
}
|
|
314
|
-
else if (typeof cb === "function") {
|
|
315
|
-
if (typeof optionsOrCb !== "object")
|
|
316
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
317
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
318
|
-
}
|
|
319
|
-
else {
|
|
320
|
-
return this.send(command, optionsOrCb);
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
untagResource(args, optionsOrCb, cb) {
|
|
324
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
325
|
-
if (typeof optionsOrCb === "function") {
|
|
326
|
-
this.send(command, optionsOrCb);
|
|
327
|
-
}
|
|
328
|
-
else if (typeof cb === "function") {
|
|
329
|
-
if (typeof optionsOrCb !== "object")
|
|
330
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
331
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
332
|
-
}
|
|
333
|
-
else {
|
|
334
|
-
return this.send(command, optionsOrCb);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
updateIdentityPool(args, optionsOrCb, cb) {
|
|
338
|
-
const command = new UpdateIdentityPoolCommand_1.UpdateIdentityPoolCommand(args);
|
|
339
|
-
if (typeof optionsOrCb === "function") {
|
|
340
|
-
this.send(command, optionsOrCb);
|
|
341
|
-
}
|
|
342
|
-
else if (typeof cb === "function") {
|
|
343
|
-
if (typeof optionsOrCb !== "object")
|
|
344
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
345
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
346
|
-
}
|
|
347
|
-
else {
|
|
348
|
-
return this.send(command, optionsOrCb);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
55
|
}
|
|
352
56
|
exports.CognitoIdentity = CognitoIdentity;
|
|
57
|
+
(0, smithy_client_1.createAggregatedClient)(commands, CognitoIdentity);
|