@aws-sdk/client-cognito-identity 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.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);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CognitoIdentityClient } from "./CognitoIdentityClient";
|
|
2
3
|
import { CreateIdentityPoolCommand, } from "./commands/CreateIdentityPoolCommand";
|
|
3
4
|
import { DeleteIdentitiesCommand, } from "./commands/DeleteIdentitiesCommand";
|
|
@@ -22,327 +23,31 @@ import { UnlinkDeveloperIdentityCommand, } from "./commands/UnlinkDeveloperIdent
|
|
|
22
23
|
import { UnlinkIdentityCommand, } from "./commands/UnlinkIdentityCommand";
|
|
23
24
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
24
25
|
import { UpdateIdentityPoolCommand, } from "./commands/UpdateIdentityPoolCommand";
|
|
26
|
+
const commands = {
|
|
27
|
+
CreateIdentityPoolCommand,
|
|
28
|
+
DeleteIdentitiesCommand,
|
|
29
|
+
DeleteIdentityPoolCommand,
|
|
30
|
+
DescribeIdentityCommand,
|
|
31
|
+
DescribeIdentityPoolCommand,
|
|
32
|
+
GetCredentialsForIdentityCommand,
|
|
33
|
+
GetIdCommand,
|
|
34
|
+
GetIdentityPoolRolesCommand,
|
|
35
|
+
GetOpenIdTokenCommand,
|
|
36
|
+
GetOpenIdTokenForDeveloperIdentityCommand,
|
|
37
|
+
GetPrincipalTagAttributeMapCommand,
|
|
38
|
+
ListIdentitiesCommand,
|
|
39
|
+
ListIdentityPoolsCommand,
|
|
40
|
+
ListTagsForResourceCommand,
|
|
41
|
+
LookupDeveloperIdentityCommand,
|
|
42
|
+
MergeDeveloperIdentitiesCommand,
|
|
43
|
+
SetIdentityPoolRolesCommand,
|
|
44
|
+
SetPrincipalTagAttributeMapCommand,
|
|
45
|
+
TagResourceCommand,
|
|
46
|
+
UnlinkDeveloperIdentityCommand,
|
|
47
|
+
UnlinkIdentityCommand,
|
|
48
|
+
UntagResourceCommand,
|
|
49
|
+
UpdateIdentityPoolCommand,
|
|
50
|
+
};
|
|
25
51
|
export class CognitoIdentity extends CognitoIdentityClient {
|
|
26
|
-
createIdentityPool(args, optionsOrCb, cb) {
|
|
27
|
-
const command = new CreateIdentityPoolCommand(args);
|
|
28
|
-
if (typeof optionsOrCb === "function") {
|
|
29
|
-
this.send(command, optionsOrCb);
|
|
30
|
-
}
|
|
31
|
-
else if (typeof cb === "function") {
|
|
32
|
-
if (typeof optionsOrCb !== "object")
|
|
33
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
34
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
return this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
deleteIdentities(args, optionsOrCb, cb) {
|
|
41
|
-
const command = new DeleteIdentitiesCommand(args);
|
|
42
|
-
if (typeof optionsOrCb === "function") {
|
|
43
|
-
this.send(command, optionsOrCb);
|
|
44
|
-
}
|
|
45
|
-
else if (typeof cb === "function") {
|
|
46
|
-
if (typeof optionsOrCb !== "object")
|
|
47
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
48
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
return this.send(command, optionsOrCb);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
deleteIdentityPool(args, optionsOrCb, cb) {
|
|
55
|
-
const command = new DeleteIdentityPoolCommand(args);
|
|
56
|
-
if (typeof optionsOrCb === "function") {
|
|
57
|
-
this.send(command, optionsOrCb);
|
|
58
|
-
}
|
|
59
|
-
else if (typeof cb === "function") {
|
|
60
|
-
if (typeof optionsOrCb !== "object")
|
|
61
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
62
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
return this.send(command, optionsOrCb);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
describeIdentity(args, optionsOrCb, cb) {
|
|
69
|
-
const command = new DescribeIdentityCommand(args);
|
|
70
|
-
if (typeof optionsOrCb === "function") {
|
|
71
|
-
this.send(command, optionsOrCb);
|
|
72
|
-
}
|
|
73
|
-
else if (typeof cb === "function") {
|
|
74
|
-
if (typeof optionsOrCb !== "object")
|
|
75
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
76
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
return this.send(command, optionsOrCb);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
describeIdentityPool(args, optionsOrCb, cb) {
|
|
83
|
-
const command = new DescribeIdentityPoolCommand(args);
|
|
84
|
-
if (typeof optionsOrCb === "function") {
|
|
85
|
-
this.send(command, optionsOrCb);
|
|
86
|
-
}
|
|
87
|
-
else if (typeof cb === "function") {
|
|
88
|
-
if (typeof optionsOrCb !== "object")
|
|
89
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
90
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
return this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
getCredentialsForIdentity(args, optionsOrCb, cb) {
|
|
97
|
-
const command = new GetCredentialsForIdentityCommand(args);
|
|
98
|
-
if (typeof optionsOrCb === "function") {
|
|
99
|
-
this.send(command, optionsOrCb);
|
|
100
|
-
}
|
|
101
|
-
else if (typeof cb === "function") {
|
|
102
|
-
if (typeof optionsOrCb !== "object")
|
|
103
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
104
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
return this.send(command, optionsOrCb);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
getId(args, optionsOrCb, cb) {
|
|
111
|
-
const command = new GetIdCommand(args);
|
|
112
|
-
if (typeof optionsOrCb === "function") {
|
|
113
|
-
this.send(command, optionsOrCb);
|
|
114
|
-
}
|
|
115
|
-
else if (typeof cb === "function") {
|
|
116
|
-
if (typeof optionsOrCb !== "object")
|
|
117
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
118
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
return this.send(command, optionsOrCb);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
getIdentityPoolRoles(args, optionsOrCb, cb) {
|
|
125
|
-
const command = new GetIdentityPoolRolesCommand(args);
|
|
126
|
-
if (typeof optionsOrCb === "function") {
|
|
127
|
-
this.send(command, optionsOrCb);
|
|
128
|
-
}
|
|
129
|
-
else if (typeof cb === "function") {
|
|
130
|
-
if (typeof optionsOrCb !== "object")
|
|
131
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
132
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
return this.send(command, optionsOrCb);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
getOpenIdToken(args, optionsOrCb, cb) {
|
|
139
|
-
const command = new GetOpenIdTokenCommand(args);
|
|
140
|
-
if (typeof optionsOrCb === "function") {
|
|
141
|
-
this.send(command, optionsOrCb);
|
|
142
|
-
}
|
|
143
|
-
else if (typeof cb === "function") {
|
|
144
|
-
if (typeof optionsOrCb !== "object")
|
|
145
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
146
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
147
|
-
}
|
|
148
|
-
else {
|
|
149
|
-
return this.send(command, optionsOrCb);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
getOpenIdTokenForDeveloperIdentity(args, optionsOrCb, cb) {
|
|
153
|
-
const command = new GetOpenIdTokenForDeveloperIdentityCommand(args);
|
|
154
|
-
if (typeof optionsOrCb === "function") {
|
|
155
|
-
this.send(command, optionsOrCb);
|
|
156
|
-
}
|
|
157
|
-
else if (typeof cb === "function") {
|
|
158
|
-
if (typeof optionsOrCb !== "object")
|
|
159
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
160
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
return this.send(command, optionsOrCb);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
getPrincipalTagAttributeMap(args, optionsOrCb, cb) {
|
|
167
|
-
const command = new GetPrincipalTagAttributeMapCommand(args);
|
|
168
|
-
if (typeof optionsOrCb === "function") {
|
|
169
|
-
this.send(command, optionsOrCb);
|
|
170
|
-
}
|
|
171
|
-
else if (typeof cb === "function") {
|
|
172
|
-
if (typeof optionsOrCb !== "object")
|
|
173
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
174
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
return this.send(command, optionsOrCb);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
listIdentities(args, optionsOrCb, cb) {
|
|
181
|
-
const command = new ListIdentitiesCommand(args);
|
|
182
|
-
if (typeof optionsOrCb === "function") {
|
|
183
|
-
this.send(command, optionsOrCb);
|
|
184
|
-
}
|
|
185
|
-
else if (typeof cb === "function") {
|
|
186
|
-
if (typeof optionsOrCb !== "object")
|
|
187
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
188
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
return this.send(command, optionsOrCb);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
listIdentityPools(args, optionsOrCb, cb) {
|
|
195
|
-
const command = new ListIdentityPoolsCommand(args);
|
|
196
|
-
if (typeof optionsOrCb === "function") {
|
|
197
|
-
this.send(command, optionsOrCb);
|
|
198
|
-
}
|
|
199
|
-
else if (typeof cb === "function") {
|
|
200
|
-
if (typeof optionsOrCb !== "object")
|
|
201
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
202
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
203
|
-
}
|
|
204
|
-
else {
|
|
205
|
-
return this.send(command, optionsOrCb);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
209
|
-
const command = new ListTagsForResourceCommand(args);
|
|
210
|
-
if (typeof optionsOrCb === "function") {
|
|
211
|
-
this.send(command, optionsOrCb);
|
|
212
|
-
}
|
|
213
|
-
else if (typeof cb === "function") {
|
|
214
|
-
if (typeof optionsOrCb !== "object")
|
|
215
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
216
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
217
|
-
}
|
|
218
|
-
else {
|
|
219
|
-
return this.send(command, optionsOrCb);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
lookupDeveloperIdentity(args, optionsOrCb, cb) {
|
|
223
|
-
const command = new LookupDeveloperIdentityCommand(args);
|
|
224
|
-
if (typeof optionsOrCb === "function") {
|
|
225
|
-
this.send(command, optionsOrCb);
|
|
226
|
-
}
|
|
227
|
-
else if (typeof cb === "function") {
|
|
228
|
-
if (typeof optionsOrCb !== "object")
|
|
229
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
230
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
231
|
-
}
|
|
232
|
-
else {
|
|
233
|
-
return this.send(command, optionsOrCb);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
mergeDeveloperIdentities(args, optionsOrCb, cb) {
|
|
237
|
-
const command = new MergeDeveloperIdentitiesCommand(args);
|
|
238
|
-
if (typeof optionsOrCb === "function") {
|
|
239
|
-
this.send(command, optionsOrCb);
|
|
240
|
-
}
|
|
241
|
-
else if (typeof cb === "function") {
|
|
242
|
-
if (typeof optionsOrCb !== "object")
|
|
243
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
244
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
245
|
-
}
|
|
246
|
-
else {
|
|
247
|
-
return this.send(command, optionsOrCb);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
setIdentityPoolRoles(args, optionsOrCb, cb) {
|
|
251
|
-
const command = new SetIdentityPoolRolesCommand(args);
|
|
252
|
-
if (typeof optionsOrCb === "function") {
|
|
253
|
-
this.send(command, optionsOrCb);
|
|
254
|
-
}
|
|
255
|
-
else if (typeof cb === "function") {
|
|
256
|
-
if (typeof optionsOrCb !== "object")
|
|
257
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
258
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
259
|
-
}
|
|
260
|
-
else {
|
|
261
|
-
return this.send(command, optionsOrCb);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
setPrincipalTagAttributeMap(args, optionsOrCb, cb) {
|
|
265
|
-
const command = new SetPrincipalTagAttributeMapCommand(args);
|
|
266
|
-
if (typeof optionsOrCb === "function") {
|
|
267
|
-
this.send(command, optionsOrCb);
|
|
268
|
-
}
|
|
269
|
-
else if (typeof cb === "function") {
|
|
270
|
-
if (typeof optionsOrCb !== "object")
|
|
271
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
272
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
273
|
-
}
|
|
274
|
-
else {
|
|
275
|
-
return this.send(command, optionsOrCb);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
tagResource(args, optionsOrCb, cb) {
|
|
279
|
-
const command = new TagResourceCommand(args);
|
|
280
|
-
if (typeof optionsOrCb === "function") {
|
|
281
|
-
this.send(command, optionsOrCb);
|
|
282
|
-
}
|
|
283
|
-
else if (typeof cb === "function") {
|
|
284
|
-
if (typeof optionsOrCb !== "object")
|
|
285
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
286
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
return this.send(command, optionsOrCb);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
unlinkDeveloperIdentity(args, optionsOrCb, cb) {
|
|
293
|
-
const command = new UnlinkDeveloperIdentityCommand(args);
|
|
294
|
-
if (typeof optionsOrCb === "function") {
|
|
295
|
-
this.send(command, optionsOrCb);
|
|
296
|
-
}
|
|
297
|
-
else if (typeof cb === "function") {
|
|
298
|
-
if (typeof optionsOrCb !== "object")
|
|
299
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
300
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
301
|
-
}
|
|
302
|
-
else {
|
|
303
|
-
return this.send(command, optionsOrCb);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
unlinkIdentity(args, optionsOrCb, cb) {
|
|
307
|
-
const command = new UnlinkIdentityCommand(args);
|
|
308
|
-
if (typeof optionsOrCb === "function") {
|
|
309
|
-
this.send(command, optionsOrCb);
|
|
310
|
-
}
|
|
311
|
-
else if (typeof cb === "function") {
|
|
312
|
-
if (typeof optionsOrCb !== "object")
|
|
313
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
314
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
315
|
-
}
|
|
316
|
-
else {
|
|
317
|
-
return this.send(command, optionsOrCb);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
untagResource(args, optionsOrCb, cb) {
|
|
321
|
-
const command = new UntagResourceCommand(args);
|
|
322
|
-
if (typeof optionsOrCb === "function") {
|
|
323
|
-
this.send(command, optionsOrCb);
|
|
324
|
-
}
|
|
325
|
-
else if (typeof cb === "function") {
|
|
326
|
-
if (typeof optionsOrCb !== "object")
|
|
327
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
328
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
329
|
-
}
|
|
330
|
-
else {
|
|
331
|
-
return this.send(command, optionsOrCb);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
updateIdentityPool(args, optionsOrCb, cb) {
|
|
335
|
-
const command = new UpdateIdentityPoolCommand(args);
|
|
336
|
-
if (typeof optionsOrCb === "function") {
|
|
337
|
-
this.send(command, optionsOrCb);
|
|
338
|
-
}
|
|
339
|
-
else if (typeof cb === "function") {
|
|
340
|
-
if (typeof optionsOrCb !== "object")
|
|
341
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
342
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
343
|
-
}
|
|
344
|
-
else {
|
|
345
|
-
return this.send(command, optionsOrCb);
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
52
|
}
|
|
53
|
+
createAggregatedClient(commands, CognitoIdentity);
|
|
@@ -23,297 +23,162 @@ import { UnlinkDeveloperIdentityCommandInput, UnlinkDeveloperIdentityCommandOutp
|
|
|
23
23
|
import { UnlinkIdentityCommandInput, UnlinkIdentityCommandOutput } from "./commands/UnlinkIdentityCommand";
|
|
24
24
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
25
25
|
import { UpdateIdentityPoolCommandInput, UpdateIdentityPoolCommandOutput } from "./commands/UpdateIdentityPoolCommand";
|
|
26
|
-
|
|
27
|
-
* @public
|
|
28
|
-
* <fullname>Amazon Cognito Federated Identities</fullname>
|
|
29
|
-
* <p>Amazon Cognito Federated Identities is a web service that delivers scoped temporary
|
|
30
|
-
* credentials to mobile devices and other untrusted environments. It uniquely identifies a
|
|
31
|
-
* device and supplies the user with a consistent identity over the lifetime of an
|
|
32
|
-
* application.</p>
|
|
33
|
-
* <p>Using Amazon Cognito Federated Identities, you can enable authentication with one or
|
|
34
|
-
* more third-party identity providers (Facebook, Google, or Login with Amazon) or an Amazon
|
|
35
|
-
* Cognito user pool, and you can also choose to support unauthenticated access from your app.
|
|
36
|
-
* Cognito delivers a unique identifier for each user and acts as an OpenID token provider
|
|
37
|
-
* trusted by AWS Security Token Service (STS) to access temporary, limited-privilege AWS
|
|
38
|
-
* credentials.</p>
|
|
39
|
-
* <p>For a description of the authentication flow from the Amazon Cognito Developer Guide
|
|
40
|
-
* see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html">Authentication Flow</a>.</p>
|
|
41
|
-
* <p>For more information see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html">Amazon Cognito Federated Identities</a>.</p>
|
|
42
|
-
*/
|
|
43
|
-
export declare class CognitoIdentity extends CognitoIdentityClient {
|
|
26
|
+
export interface CognitoIdentity {
|
|
44
27
|
/**
|
|
45
|
-
* @
|
|
46
|
-
* <p>Creates a new identity pool. The identity pool is a store of user identity
|
|
47
|
-
* information that is specific to your AWS account. The keys for <code>SupportedLoginProviders</code> are as follows:</p>
|
|
48
|
-
*
|
|
49
|
-
* <ul>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>Facebook: <code>graph.facebook.com</code>
|
|
52
|
-
* </p>
|
|
53
|
-
* </li>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>Google: <code>accounts.google.com</code>
|
|
56
|
-
* </p>
|
|
57
|
-
* </li>
|
|
58
|
-
* <li>
|
|
59
|
-
* <p>Amazon: <code>www.amazon.com</code>
|
|
60
|
-
* </p>
|
|
61
|
-
* </li>
|
|
62
|
-
* <li>
|
|
63
|
-
* <p>Twitter: <code>api.twitter.com</code>
|
|
64
|
-
* </p>
|
|
65
|
-
* </li>
|
|
66
|
-
* <li>
|
|
67
|
-
* <p>Digits: <code>www.digits.com</code>
|
|
68
|
-
* </p>
|
|
69
|
-
* </li>
|
|
70
|
-
* </ul>
|
|
71
|
-
*
|
|
72
|
-
* <p>You must use AWS Developer credentials to call this API.</p>
|
|
28
|
+
* @see {@link CreateIdentityPoolCommand}
|
|
73
29
|
*/
|
|
74
30
|
createIdentityPool(args: CreateIdentityPoolCommandInput, options?: __HttpHandlerOptions): Promise<CreateIdentityPoolCommandOutput>;
|
|
75
31
|
createIdentityPool(args: CreateIdentityPoolCommandInput, cb: (err: any, data?: CreateIdentityPoolCommandOutput) => void): void;
|
|
76
32
|
createIdentityPool(args: CreateIdentityPoolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateIdentityPoolCommandOutput) => void): void;
|
|
77
33
|
/**
|
|
78
|
-
* @
|
|
79
|
-
* <p>Deletes identities from an identity pool. You can specify a list of 1-60 identities
|
|
80
|
-
* that you want to delete.</p>
|
|
81
|
-
* <p>You must use AWS Developer credentials to call this API.</p>
|
|
34
|
+
* @see {@link DeleteIdentitiesCommand}
|
|
82
35
|
*/
|
|
83
36
|
deleteIdentities(args: DeleteIdentitiesCommandInput, options?: __HttpHandlerOptions): Promise<DeleteIdentitiesCommandOutput>;
|
|
84
37
|
deleteIdentities(args: DeleteIdentitiesCommandInput, cb: (err: any, data?: DeleteIdentitiesCommandOutput) => void): void;
|
|
85
38
|
deleteIdentities(args: DeleteIdentitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteIdentitiesCommandOutput) => void): void;
|
|
86
39
|
/**
|
|
87
|
-
* @
|
|
88
|
-
* <p>Deletes an identity pool. Once a pool is deleted, users will not be able to
|
|
89
|
-
* authenticate with the pool.</p>
|
|
90
|
-
* <p>You must use AWS Developer credentials to call this API.</p>
|
|
40
|
+
* @see {@link DeleteIdentityPoolCommand}
|
|
91
41
|
*/
|
|
92
42
|
deleteIdentityPool(args: DeleteIdentityPoolCommandInput, options?: __HttpHandlerOptions): Promise<DeleteIdentityPoolCommandOutput>;
|
|
93
43
|
deleteIdentityPool(args: DeleteIdentityPoolCommandInput, cb: (err: any, data?: DeleteIdentityPoolCommandOutput) => void): void;
|
|
94
44
|
deleteIdentityPool(args: DeleteIdentityPoolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteIdentityPoolCommandOutput) => void): void;
|
|
95
45
|
/**
|
|
96
|
-
* @
|
|
97
|
-
* <p>Returns metadata related to the given identity, including when the identity was
|
|
98
|
-
* created and any associated linked logins.</p>
|
|
99
|
-
* <p>You must use AWS Developer credentials to call this API.</p>
|
|
46
|
+
* @see {@link DescribeIdentityCommand}
|
|
100
47
|
*/
|
|
101
48
|
describeIdentity(args: DescribeIdentityCommandInput, options?: __HttpHandlerOptions): Promise<DescribeIdentityCommandOutput>;
|
|
102
49
|
describeIdentity(args: DescribeIdentityCommandInput, cb: (err: any, data?: DescribeIdentityCommandOutput) => void): void;
|
|
103
50
|
describeIdentity(args: DescribeIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeIdentityCommandOutput) => void): void;
|
|
104
51
|
/**
|
|
105
|
-
* @
|
|
106
|
-
* <p>Gets details about a particular identity pool, including the pool name, ID
|
|
107
|
-
* description, creation date, and current number of users.</p>
|
|
108
|
-
* <p>You must use AWS Developer credentials to call this API.</p>
|
|
52
|
+
* @see {@link DescribeIdentityPoolCommand}
|
|
109
53
|
*/
|
|
110
54
|
describeIdentityPool(args: DescribeIdentityPoolCommandInput, options?: __HttpHandlerOptions): Promise<DescribeIdentityPoolCommandOutput>;
|
|
111
55
|
describeIdentityPool(args: DescribeIdentityPoolCommandInput, cb: (err: any, data?: DescribeIdentityPoolCommandOutput) => void): void;
|
|
112
56
|
describeIdentityPool(args: DescribeIdentityPoolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeIdentityPoolCommandOutput) => void): void;
|
|
113
57
|
/**
|
|
114
|
-
* @
|
|
115
|
-
* <p>Returns credentials for the provided identity ID. Any provided logins will be
|
|
116
|
-
* validated against supported login providers. If the token is for
|
|
117
|
-
* cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service
|
|
118
|
-
* with the appropriate role for the token.</p>
|
|
119
|
-
* <p>This is a public API. You do not need any credentials to call this API.</p>
|
|
58
|
+
* @see {@link GetCredentialsForIdentityCommand}
|
|
120
59
|
*/
|
|
121
60
|
getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, options?: __HttpHandlerOptions): Promise<GetCredentialsForIdentityCommandOutput>;
|
|
122
61
|
getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void): void;
|
|
123
62
|
getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void): void;
|
|
124
63
|
/**
|
|
125
|
-
* @
|
|
126
|
-
* <p>Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an
|
|
127
|
-
* implicit linked account.</p>
|
|
128
|
-
* <p>This is a public API. You do not need any credentials to call this API.</p>
|
|
64
|
+
* @see {@link GetIdCommand}
|
|
129
65
|
*/
|
|
130
66
|
getId(args: GetIdCommandInput, options?: __HttpHandlerOptions): Promise<GetIdCommandOutput>;
|
|
131
67
|
getId(args: GetIdCommandInput, cb: (err: any, data?: GetIdCommandOutput) => void): void;
|
|
132
68
|
getId(args: GetIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIdCommandOutput) => void): void;
|
|
133
69
|
/**
|
|
134
|
-
* @
|
|
135
|
-
* <p>Gets the roles for an identity pool.</p>
|
|
136
|
-
* <p>You must use AWS Developer credentials to call this API.</p>
|
|
70
|
+
* @see {@link GetIdentityPoolRolesCommand}
|
|
137
71
|
*/
|
|
138
72
|
getIdentityPoolRoles(args: GetIdentityPoolRolesCommandInput, options?: __HttpHandlerOptions): Promise<GetIdentityPoolRolesCommandOutput>;
|
|
139
73
|
getIdentityPoolRoles(args: GetIdentityPoolRolesCommandInput, cb: (err: any, data?: GetIdentityPoolRolesCommandOutput) => void): void;
|
|
140
74
|
getIdentityPoolRoles(args: GetIdentityPoolRolesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIdentityPoolRolesCommandOutput) => void): void;
|
|
141
75
|
/**
|
|
142
|
-
* @
|
|
143
|
-
* <p>Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by
|
|
144
|
-
* <a>GetId</a>. You can optionally add additional logins for the identity.
|
|
145
|
-
* Supplying multiple logins creates an implicit link.</p>
|
|
146
|
-
* <p>The OpenID token is valid for 10 minutes.</p>
|
|
147
|
-
* <p>This is a public API. You do not need any credentials to call this API.</p>
|
|
76
|
+
* @see {@link GetOpenIdTokenCommand}
|
|
148
77
|
*/
|
|
149
78
|
getOpenIdToken(args: GetOpenIdTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetOpenIdTokenCommandOutput>;
|
|
150
79
|
getOpenIdToken(args: GetOpenIdTokenCommandInput, cb: (err: any, data?: GetOpenIdTokenCommandOutput) => void): void;
|
|
151
80
|
getOpenIdToken(args: GetOpenIdTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOpenIdTokenCommandOutput) => void): void;
|
|
152
81
|
/**
|
|
153
|
-
* @
|
|
154
|
-
* <p>Registers (or retrieves) a Cognito <code>IdentityId</code> and an OpenID Connect
|
|
155
|
-
* token for a user authenticated by your backend authentication process. Supplying multiple
|
|
156
|
-
* logins will create an implicit linked account. You can only specify one developer provider
|
|
157
|
-
* as part of the <code>Logins</code> map, which is linked to the identity pool. The developer
|
|
158
|
-
* provider is the "domain" by which Cognito will refer to your users.</p>
|
|
159
|
-
* <p>You can use <code>GetOpenIdTokenForDeveloperIdentity</code> to create a new identity
|
|
160
|
-
* and to link new logins (that is, user credentials issued by a public provider or developer
|
|
161
|
-
* provider) to an existing identity. When you want to create a new identity, the
|
|
162
|
-
* <code>IdentityId</code> should be null. When you want to associate a new login with an
|
|
163
|
-
* existing authenticated/unauthenticated identity, you can do so by providing the existing
|
|
164
|
-
* <code>IdentityId</code>. This API will create the identity in the specified
|
|
165
|
-
* <code>IdentityPoolId</code>.</p>
|
|
166
|
-
* <p>You must use AWS Developer credentials to call this API.</p>
|
|
82
|
+
* @see {@link GetOpenIdTokenForDeveloperIdentityCommand}
|
|
167
83
|
*/
|
|
168
84
|
getOpenIdTokenForDeveloperIdentity(args: GetOpenIdTokenForDeveloperIdentityCommandInput, options?: __HttpHandlerOptions): Promise<GetOpenIdTokenForDeveloperIdentityCommandOutput>;
|
|
169
85
|
getOpenIdTokenForDeveloperIdentity(args: GetOpenIdTokenForDeveloperIdentityCommandInput, cb: (err: any, data?: GetOpenIdTokenForDeveloperIdentityCommandOutput) => void): void;
|
|
170
86
|
getOpenIdTokenForDeveloperIdentity(args: GetOpenIdTokenForDeveloperIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOpenIdTokenForDeveloperIdentityCommandOutput) => void): void;
|
|
171
87
|
/**
|
|
172
|
-
* @
|
|
173
|
-
* <p>Use <code>GetPrincipalTagAttributeMap</code> to list all mappings between <code>PrincipalTags</code> and user attributes.</p>
|
|
88
|
+
* @see {@link GetPrincipalTagAttributeMapCommand}
|
|
174
89
|
*/
|
|
175
90
|
getPrincipalTagAttributeMap(args: GetPrincipalTagAttributeMapCommandInput, options?: __HttpHandlerOptions): Promise<GetPrincipalTagAttributeMapCommandOutput>;
|
|
176
91
|
getPrincipalTagAttributeMap(args: GetPrincipalTagAttributeMapCommandInput, cb: (err: any, data?: GetPrincipalTagAttributeMapCommandOutput) => void): void;
|
|
177
92
|
getPrincipalTagAttributeMap(args: GetPrincipalTagAttributeMapCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPrincipalTagAttributeMapCommandOutput) => void): void;
|
|
178
93
|
/**
|
|
179
|
-
* @
|
|
180
|
-
* <p>Lists the identities in an identity pool.</p>
|
|
181
|
-
* <p>You must use AWS Developer credentials to call this API.</p>
|
|
94
|
+
* @see {@link ListIdentitiesCommand}
|
|
182
95
|
*/
|
|
183
96
|
listIdentities(args: ListIdentitiesCommandInput, options?: __HttpHandlerOptions): Promise<ListIdentitiesCommandOutput>;
|
|
184
97
|
listIdentities(args: ListIdentitiesCommandInput, cb: (err: any, data?: ListIdentitiesCommandOutput) => void): void;
|
|
185
98
|
listIdentities(args: ListIdentitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIdentitiesCommandOutput) => void): void;
|
|
186
99
|
/**
|
|
187
|
-
* @
|
|
188
|
-
* <p>Lists all of the Cognito identity pools registered for your account.</p>
|
|
189
|
-
* <p>You must use AWS Developer credentials to call this API.</p>
|
|
100
|
+
* @see {@link ListIdentityPoolsCommand}
|
|
190
101
|
*/
|
|
191
102
|
listIdentityPools(args: ListIdentityPoolsCommandInput, options?: __HttpHandlerOptions): Promise<ListIdentityPoolsCommandOutput>;
|
|
192
103
|
listIdentityPools(args: ListIdentityPoolsCommandInput, cb: (err: any, data?: ListIdentityPoolsCommandOutput) => void): void;
|
|
193
104
|
listIdentityPools(args: ListIdentityPoolsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIdentityPoolsCommandOutput) => void): void;
|
|
194
105
|
/**
|
|
195
|
-
* @
|
|
196
|
-
* <p>Lists the tags that are assigned to an Amazon Cognito identity pool.</p>
|
|
197
|
-
* <p>A tag is a label that you can apply to identity pools to categorize and manage them in
|
|
198
|
-
* different ways, such as by purpose, owner, environment, or other criteria.</p>
|
|
199
|
-
* <p>You can use this action up to 10 times per second, per account.</p>
|
|
106
|
+
* @see {@link ListTagsForResourceCommand}
|
|
200
107
|
*/
|
|
201
108
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
202
109
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
203
110
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
204
111
|
/**
|
|
205
|
-
* @
|
|
206
|
-
* <p>Retrieves the <code>IdentityID</code> associated with a
|
|
207
|
-
* <code>DeveloperUserIdentifier</code> or the list of <code>DeveloperUserIdentifier</code>
|
|
208
|
-
* values associated with an <code>IdentityId</code> for an existing identity. Either
|
|
209
|
-
* <code>IdentityID</code> or <code>DeveloperUserIdentifier</code> must not be null. If you
|
|
210
|
-
* supply only one of these values, the other value will be searched in the database and
|
|
211
|
-
* returned as a part of the response. If you supply both,
|
|
212
|
-
* <code>DeveloperUserIdentifier</code> will be matched against <code>IdentityID</code>. If
|
|
213
|
-
* the values are verified against the database, the response returns both values and is the
|
|
214
|
-
* same as the request. Otherwise a <code>ResourceConflictException</code> is
|
|
215
|
-
* thrown.</p>
|
|
216
|
-
* <p>
|
|
217
|
-
* <code>LookupDeveloperIdentity</code> is intended for low-throughput control plane
|
|
218
|
-
* operations: for example, to enable customer service to locate an identity ID by username.
|
|
219
|
-
* If you are using it for higher-volume operations such as user authentication, your requests
|
|
220
|
-
* are likely to be throttled. <a>GetOpenIdTokenForDeveloperIdentity</a> is a
|
|
221
|
-
* better option for higher-volume operations for user authentication.</p>
|
|
222
|
-
* <p>You must use AWS Developer credentials to call this API.</p>
|
|
112
|
+
* @see {@link LookupDeveloperIdentityCommand}
|
|
223
113
|
*/
|
|
224
114
|
lookupDeveloperIdentity(args: LookupDeveloperIdentityCommandInput, options?: __HttpHandlerOptions): Promise<LookupDeveloperIdentityCommandOutput>;
|
|
225
115
|
lookupDeveloperIdentity(args: LookupDeveloperIdentityCommandInput, cb: (err: any, data?: LookupDeveloperIdentityCommandOutput) => void): void;
|
|
226
116
|
lookupDeveloperIdentity(args: LookupDeveloperIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LookupDeveloperIdentityCommandOutput) => void): void;
|
|
227
117
|
/**
|
|
228
|
-
* @
|
|
229
|
-
* <p>Merges two users having different <code>IdentityId</code>s, existing in the same
|
|
230
|
-
* identity pool, and identified by the same developer provider. You can use this action to
|
|
231
|
-
* request that discrete users be merged and identified as a single user in the Cognito
|
|
232
|
-
* environment. Cognito associates the given source user (<code>SourceUserIdentifier</code>)
|
|
233
|
-
* with the <code>IdentityId</code> of the <code>DestinationUserIdentifier</code>. Only
|
|
234
|
-
* developer-authenticated users can be merged. If the users to be merged are associated with
|
|
235
|
-
* the same public provider, but as two different users, an exception will be
|
|
236
|
-
* thrown.</p>
|
|
237
|
-
* <p>The number of linked logins is limited to 20. So, the number of linked logins for the
|
|
238
|
-
* source user, <code>SourceUserIdentifier</code>, and the destination user,
|
|
239
|
-
* <code>DestinationUserIdentifier</code>, together should not be larger than 20.
|
|
240
|
-
* Otherwise, an exception will be thrown.</p>
|
|
241
|
-
* <p>You must use AWS Developer credentials to call this API.</p>
|
|
118
|
+
* @see {@link MergeDeveloperIdentitiesCommand}
|
|
242
119
|
*/
|
|
243
120
|
mergeDeveloperIdentities(args: MergeDeveloperIdentitiesCommandInput, options?: __HttpHandlerOptions): Promise<MergeDeveloperIdentitiesCommandOutput>;
|
|
244
121
|
mergeDeveloperIdentities(args: MergeDeveloperIdentitiesCommandInput, cb: (err: any, data?: MergeDeveloperIdentitiesCommandOutput) => void): void;
|
|
245
122
|
mergeDeveloperIdentities(args: MergeDeveloperIdentitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: MergeDeveloperIdentitiesCommandOutput) => void): void;
|
|
246
123
|
/**
|
|
247
|
-
* @
|
|
248
|
-
* <p>Sets the roles for an identity pool. These roles are used when making calls to <a>GetCredentialsForIdentity</a> action.</p>
|
|
249
|
-
* <p>You must use AWS Developer credentials to call this API.</p>
|
|
124
|
+
* @see {@link SetIdentityPoolRolesCommand}
|
|
250
125
|
*/
|
|
251
126
|
setIdentityPoolRoles(args: SetIdentityPoolRolesCommandInput, options?: __HttpHandlerOptions): Promise<SetIdentityPoolRolesCommandOutput>;
|
|
252
127
|
setIdentityPoolRoles(args: SetIdentityPoolRolesCommandInput, cb: (err: any, data?: SetIdentityPoolRolesCommandOutput) => void): void;
|
|
253
128
|
setIdentityPoolRoles(args: SetIdentityPoolRolesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetIdentityPoolRolesCommandOutput) => void): void;
|
|
254
129
|
/**
|
|
255
|
-
* @
|
|
256
|
-
* <p>You can use this operation to use default (username and clientID) attribute or custom attribute mappings.</p>
|
|
130
|
+
* @see {@link SetPrincipalTagAttributeMapCommand}
|
|
257
131
|
*/
|
|
258
132
|
setPrincipalTagAttributeMap(args: SetPrincipalTagAttributeMapCommandInput, options?: __HttpHandlerOptions): Promise<SetPrincipalTagAttributeMapCommandOutput>;
|
|
259
133
|
setPrincipalTagAttributeMap(args: SetPrincipalTagAttributeMapCommandInput, cb: (err: any, data?: SetPrincipalTagAttributeMapCommandOutput) => void): void;
|
|
260
134
|
setPrincipalTagAttributeMap(args: SetPrincipalTagAttributeMapCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetPrincipalTagAttributeMapCommandOutput) => void): void;
|
|
261
135
|
/**
|
|
262
|
-
* @
|
|
263
|
-
* <p>Assigns a set of tags to the specified Amazon Cognito identity pool. A tag is a label
|
|
264
|
-
* that you can use to categorize and manage identity pools in different ways, such as by
|
|
265
|
-
* purpose, owner, environment, or other criteria.</p>
|
|
266
|
-
* <p>Each tag consists of a key and value, both of which you define. A key is a general
|
|
267
|
-
* category for more specific values. For example, if you have two versions of an identity
|
|
268
|
-
* pool, one for testing and another for production, you might assign an
|
|
269
|
-
* <code>Environment</code> tag key to both identity pools. The value of this key might be
|
|
270
|
-
* <code>Test</code> for one identity pool and <code>Production</code> for the
|
|
271
|
-
* other.</p>
|
|
272
|
-
* <p>Tags are useful for cost tracking and access control. You can activate your tags so that
|
|
273
|
-
* they appear on the Billing and Cost Management console, where you can track the costs
|
|
274
|
-
* associated with your identity pools. In an IAM policy, you can constrain permissions for
|
|
275
|
-
* identity pools based on specific tags or tag values.</p>
|
|
276
|
-
* <p>You can use this action up to 5 times per second, per account. An identity pool can have
|
|
277
|
-
* as many as 50 tags.</p>
|
|
136
|
+
* @see {@link TagResourceCommand}
|
|
278
137
|
*/
|
|
279
138
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
280
139
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
281
140
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
282
141
|
/**
|
|
283
|
-
* @
|
|
284
|
-
* <p>Unlinks a <code>DeveloperUserIdentifier</code> from an existing identity. Unlinked
|
|
285
|
-
* developer users will be considered new identities next time they are seen. If, for a given
|
|
286
|
-
* Cognito identity, you remove all federated identities as well as the developer user
|
|
287
|
-
* identifier, the Cognito identity becomes inaccessible.</p>
|
|
288
|
-
* <p>You must use AWS Developer credentials to call this API.</p>
|
|
142
|
+
* @see {@link UnlinkDeveloperIdentityCommand}
|
|
289
143
|
*/
|
|
290
144
|
unlinkDeveloperIdentity(args: UnlinkDeveloperIdentityCommandInput, options?: __HttpHandlerOptions): Promise<UnlinkDeveloperIdentityCommandOutput>;
|
|
291
145
|
unlinkDeveloperIdentity(args: UnlinkDeveloperIdentityCommandInput, cb: (err: any, data?: UnlinkDeveloperIdentityCommandOutput) => void): void;
|
|
292
146
|
unlinkDeveloperIdentity(args: UnlinkDeveloperIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnlinkDeveloperIdentityCommandOutput) => void): void;
|
|
293
147
|
/**
|
|
294
|
-
* @
|
|
295
|
-
* <p>Unlinks a federated identity from an existing account. Unlinked logins will be
|
|
296
|
-
* considered new identities next time they are seen. Removing the last linked login will make
|
|
297
|
-
* this identity inaccessible.</p>
|
|
298
|
-
* <p>This is a public API. You do not need any credentials to call this API.</p>
|
|
148
|
+
* @see {@link UnlinkIdentityCommand}
|
|
299
149
|
*/
|
|
300
150
|
unlinkIdentity(args: UnlinkIdentityCommandInput, options?: __HttpHandlerOptions): Promise<UnlinkIdentityCommandOutput>;
|
|
301
151
|
unlinkIdentity(args: UnlinkIdentityCommandInput, cb: (err: any, data?: UnlinkIdentityCommandOutput) => void): void;
|
|
302
152
|
unlinkIdentity(args: UnlinkIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnlinkIdentityCommandOutput) => void): void;
|
|
303
153
|
/**
|
|
304
|
-
* @
|
|
305
|
-
* <p>Removes the specified tags from the specified Amazon Cognito identity pool. You can use
|
|
306
|
-
* this action up to 5 times per second, per account</p>
|
|
154
|
+
* @see {@link UntagResourceCommand}
|
|
307
155
|
*/
|
|
308
156
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
309
157
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
310
158
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
311
159
|
/**
|
|
312
|
-
* @
|
|
313
|
-
* <p>Updates an identity pool.</p>
|
|
314
|
-
* <p>You must use AWS Developer credentials to call this API.</p>
|
|
160
|
+
* @see {@link UpdateIdentityPoolCommand}
|
|
315
161
|
*/
|
|
316
162
|
updateIdentityPool(args: UpdateIdentityPoolCommandInput, options?: __HttpHandlerOptions): Promise<UpdateIdentityPoolCommandOutput>;
|
|
317
163
|
updateIdentityPool(args: UpdateIdentityPoolCommandInput, cb: (err: any, data?: UpdateIdentityPoolCommandOutput) => void): void;
|
|
318
164
|
updateIdentityPool(args: UpdateIdentityPoolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateIdentityPoolCommandOutput) => void): void;
|
|
319
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* @public
|
|
168
|
+
* <fullname>Amazon Cognito Federated Identities</fullname>
|
|
169
|
+
* <p>Amazon Cognito Federated Identities is a web service that delivers scoped temporary
|
|
170
|
+
* credentials to mobile devices and other untrusted environments. It uniquely identifies a
|
|
171
|
+
* device and supplies the user with a consistent identity over the lifetime of an
|
|
172
|
+
* application.</p>
|
|
173
|
+
* <p>Using Amazon Cognito Federated Identities, you can enable authentication with one or
|
|
174
|
+
* more third-party identity providers (Facebook, Google, or Login with Amazon) or an Amazon
|
|
175
|
+
* Cognito user pool, and you can also choose to support unauthenticated access from your app.
|
|
176
|
+
* Cognito delivers a unique identifier for each user and acts as an OpenID token provider
|
|
177
|
+
* trusted by AWS Security Token Service (STS) to access temporary, limited-privilege AWS
|
|
178
|
+
* credentials.</p>
|
|
179
|
+
* <p>For a description of the authentication flow from the Amazon Cognito Developer Guide
|
|
180
|
+
* see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html">Authentication Flow</a>.</p>
|
|
181
|
+
* <p>For more information see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html">Amazon Cognito Federated Identities</a>.</p>
|
|
182
|
+
*/
|
|
183
|
+
export declare class CognitoIdentity extends CognitoIdentityClient implements CognitoIdentity {
|
|
184
|
+
}
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
UpdateIdentityPoolCommandInput,
|
|
90
90
|
UpdateIdentityPoolCommandOutput,
|
|
91
91
|
} from "./commands/UpdateIdentityPoolCommand";
|
|
92
|
-
export
|
|
92
|
+
export interface CognitoIdentity {
|
|
93
93
|
createIdentityPool(
|
|
94
94
|
args: CreateIdentityPoolCommandInput,
|
|
95
95
|
options?: __HttpHandlerOptions
|
|
@@ -396,3 +396,6 @@ export declare class CognitoIdentity extends CognitoIdentityClient {
|
|
|
396
396
|
cb: (err: any, data?: UpdateIdentityPoolCommandOutput) => void
|
|
397
397
|
): void;
|
|
398
398
|
}
|
|
399
|
+
export declare class CognitoIdentity
|
|
400
|
+
extends CognitoIdentityClient
|
|
401
|
+
implements CognitoIdentity {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cognito-identity",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
25
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
26
26
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
28
28
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
29
29
|
"@aws-sdk/hash-node": "3.310.0",
|
|
30
30
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
42
42
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
43
43
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
44
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
45
45
|
"@aws-sdk/types": "3.310.0",
|
|
46
46
|
"@aws-sdk/url-parser": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-base64": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
49
49
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
50
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
51
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
52
52
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-retry": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"tslib": "^2.5.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@aws-sdk/client-iam": "3.
|
|
60
|
+
"@aws-sdk/client-iam": "3.316.0",
|
|
61
61
|
"@aws-sdk/service-client-documentation-generator": "3.310.0",
|
|
62
62
|
"@tsconfig/node14": "1.0.3",
|
|
63
63
|
"@types/chai": "^4.2.11",
|