@aws-sdk/client-cognito-sync 3.315.0 → 3.319.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/CognitoSync.js +21 -238
- package/dist-es/CognitoSync.js +21 -238
- package/dist-types/CognitoSync.d.ts +36 -555
- package/dist-types/ts3.4/CognitoSync.d.ts +4 -1
- package/package.json +8 -8
package/dist-cjs/CognitoSync.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CognitoSync = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CognitoSyncClient_1 = require("./CognitoSyncClient");
|
|
5
6
|
const BulkPublishCommand_1 = require("./commands/BulkPublishCommand");
|
|
6
7
|
const DeleteDatasetCommand_1 = require("./commands/DeleteDatasetCommand");
|
|
@@ -19,244 +20,26 @@ const SetIdentityPoolConfigurationCommand_1 = require("./commands/SetIdentityPoo
|
|
|
19
20
|
const SubscribeToDatasetCommand_1 = require("./commands/SubscribeToDatasetCommand");
|
|
20
21
|
const UnsubscribeFromDatasetCommand_1 = require("./commands/UnsubscribeFromDatasetCommand");
|
|
21
22
|
const UpdateRecordsCommand_1 = require("./commands/UpdateRecordsCommand");
|
|
23
|
+
const commands = {
|
|
24
|
+
BulkPublishCommand: BulkPublishCommand_1.BulkPublishCommand,
|
|
25
|
+
DeleteDatasetCommand: DeleteDatasetCommand_1.DeleteDatasetCommand,
|
|
26
|
+
DescribeDatasetCommand: DescribeDatasetCommand_1.DescribeDatasetCommand,
|
|
27
|
+
DescribeIdentityPoolUsageCommand: DescribeIdentityPoolUsageCommand_1.DescribeIdentityPoolUsageCommand,
|
|
28
|
+
DescribeIdentityUsageCommand: DescribeIdentityUsageCommand_1.DescribeIdentityUsageCommand,
|
|
29
|
+
GetBulkPublishDetailsCommand: GetBulkPublishDetailsCommand_1.GetBulkPublishDetailsCommand,
|
|
30
|
+
GetCognitoEventsCommand: GetCognitoEventsCommand_1.GetCognitoEventsCommand,
|
|
31
|
+
GetIdentityPoolConfigurationCommand: GetIdentityPoolConfigurationCommand_1.GetIdentityPoolConfigurationCommand,
|
|
32
|
+
ListDatasetsCommand: ListDatasetsCommand_1.ListDatasetsCommand,
|
|
33
|
+
ListIdentityPoolUsageCommand: ListIdentityPoolUsageCommand_1.ListIdentityPoolUsageCommand,
|
|
34
|
+
ListRecordsCommand: ListRecordsCommand_1.ListRecordsCommand,
|
|
35
|
+
RegisterDeviceCommand: RegisterDeviceCommand_1.RegisterDeviceCommand,
|
|
36
|
+
SetCognitoEventsCommand: SetCognitoEventsCommand_1.SetCognitoEventsCommand,
|
|
37
|
+
SetIdentityPoolConfigurationCommand: SetIdentityPoolConfigurationCommand_1.SetIdentityPoolConfigurationCommand,
|
|
38
|
+
SubscribeToDatasetCommand: SubscribeToDatasetCommand_1.SubscribeToDatasetCommand,
|
|
39
|
+
UnsubscribeFromDatasetCommand: UnsubscribeFromDatasetCommand_1.UnsubscribeFromDatasetCommand,
|
|
40
|
+
UpdateRecordsCommand: UpdateRecordsCommand_1.UpdateRecordsCommand,
|
|
41
|
+
};
|
|
22
42
|
class CognitoSync extends CognitoSyncClient_1.CognitoSyncClient {
|
|
23
|
-
bulkPublish(args, optionsOrCb, cb) {
|
|
24
|
-
const command = new BulkPublishCommand_1.BulkPublishCommand(args);
|
|
25
|
-
if (typeof optionsOrCb === "function") {
|
|
26
|
-
this.send(command, optionsOrCb);
|
|
27
|
-
}
|
|
28
|
-
else if (typeof cb === "function") {
|
|
29
|
-
if (typeof optionsOrCb !== "object")
|
|
30
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
31
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return this.send(command, optionsOrCb);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
deleteDataset(args, optionsOrCb, cb) {
|
|
38
|
-
const command = new DeleteDatasetCommand_1.DeleteDatasetCommand(args);
|
|
39
|
-
if (typeof optionsOrCb === "function") {
|
|
40
|
-
this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
else if (typeof cb === "function") {
|
|
43
|
-
if (typeof optionsOrCb !== "object")
|
|
44
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
45
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
return this.send(command, optionsOrCb);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
describeDataset(args, optionsOrCb, cb) {
|
|
52
|
-
const command = new DescribeDatasetCommand_1.DescribeDatasetCommand(args);
|
|
53
|
-
if (typeof optionsOrCb === "function") {
|
|
54
|
-
this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
else if (typeof cb === "function") {
|
|
57
|
-
if (typeof optionsOrCb !== "object")
|
|
58
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
59
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
return this.send(command, optionsOrCb);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
describeIdentityPoolUsage(args, optionsOrCb, cb) {
|
|
66
|
-
const command = new DescribeIdentityPoolUsageCommand_1.DescribeIdentityPoolUsageCommand(args);
|
|
67
|
-
if (typeof optionsOrCb === "function") {
|
|
68
|
-
this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
else if (typeof cb === "function") {
|
|
71
|
-
if (typeof optionsOrCb !== "object")
|
|
72
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
73
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
return this.send(command, optionsOrCb);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
describeIdentityUsage(args, optionsOrCb, cb) {
|
|
80
|
-
const command = new DescribeIdentityUsageCommand_1.DescribeIdentityUsageCommand(args);
|
|
81
|
-
if (typeof optionsOrCb === "function") {
|
|
82
|
-
this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
else if (typeof cb === "function") {
|
|
85
|
-
if (typeof optionsOrCb !== "object")
|
|
86
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
87
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
return this.send(command, optionsOrCb);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
getBulkPublishDetails(args, optionsOrCb, cb) {
|
|
94
|
-
const command = new GetBulkPublishDetailsCommand_1.GetBulkPublishDetailsCommand(args);
|
|
95
|
-
if (typeof optionsOrCb === "function") {
|
|
96
|
-
this.send(command, optionsOrCb);
|
|
97
|
-
}
|
|
98
|
-
else if (typeof cb === "function") {
|
|
99
|
-
if (typeof optionsOrCb !== "object")
|
|
100
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
101
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
return this.send(command, optionsOrCb);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
getCognitoEvents(args, optionsOrCb, cb) {
|
|
108
|
-
const command = new GetCognitoEventsCommand_1.GetCognitoEventsCommand(args);
|
|
109
|
-
if (typeof optionsOrCb === "function") {
|
|
110
|
-
this.send(command, optionsOrCb);
|
|
111
|
-
}
|
|
112
|
-
else if (typeof cb === "function") {
|
|
113
|
-
if (typeof optionsOrCb !== "object")
|
|
114
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
115
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
return this.send(command, optionsOrCb);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
getIdentityPoolConfiguration(args, optionsOrCb, cb) {
|
|
122
|
-
const command = new GetIdentityPoolConfigurationCommand_1.GetIdentityPoolConfigurationCommand(args);
|
|
123
|
-
if (typeof optionsOrCb === "function") {
|
|
124
|
-
this.send(command, optionsOrCb);
|
|
125
|
-
}
|
|
126
|
-
else if (typeof cb === "function") {
|
|
127
|
-
if (typeof optionsOrCb !== "object")
|
|
128
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
129
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
return this.send(command, optionsOrCb);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
listDatasets(args, optionsOrCb, cb) {
|
|
136
|
-
const command = new ListDatasetsCommand_1.ListDatasetsCommand(args);
|
|
137
|
-
if (typeof optionsOrCb === "function") {
|
|
138
|
-
this.send(command, optionsOrCb);
|
|
139
|
-
}
|
|
140
|
-
else if (typeof cb === "function") {
|
|
141
|
-
if (typeof optionsOrCb !== "object")
|
|
142
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
143
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
return this.send(command, optionsOrCb);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
listIdentityPoolUsage(args, optionsOrCb, cb) {
|
|
150
|
-
const command = new ListIdentityPoolUsageCommand_1.ListIdentityPoolUsageCommand(args);
|
|
151
|
-
if (typeof optionsOrCb === "function") {
|
|
152
|
-
this.send(command, optionsOrCb);
|
|
153
|
-
}
|
|
154
|
-
else if (typeof cb === "function") {
|
|
155
|
-
if (typeof optionsOrCb !== "object")
|
|
156
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
157
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
return this.send(command, optionsOrCb);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
listRecords(args, optionsOrCb, cb) {
|
|
164
|
-
const command = new ListRecordsCommand_1.ListRecordsCommand(args);
|
|
165
|
-
if (typeof optionsOrCb === "function") {
|
|
166
|
-
this.send(command, optionsOrCb);
|
|
167
|
-
}
|
|
168
|
-
else if (typeof cb === "function") {
|
|
169
|
-
if (typeof optionsOrCb !== "object")
|
|
170
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
171
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
return this.send(command, optionsOrCb);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
registerDevice(args, optionsOrCb, cb) {
|
|
178
|
-
const command = new RegisterDeviceCommand_1.RegisterDeviceCommand(args);
|
|
179
|
-
if (typeof optionsOrCb === "function") {
|
|
180
|
-
this.send(command, optionsOrCb);
|
|
181
|
-
}
|
|
182
|
-
else if (typeof cb === "function") {
|
|
183
|
-
if (typeof optionsOrCb !== "object")
|
|
184
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
185
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
return this.send(command, optionsOrCb);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
setCognitoEvents(args, optionsOrCb, cb) {
|
|
192
|
-
const command = new SetCognitoEventsCommand_1.SetCognitoEventsCommand(args);
|
|
193
|
-
if (typeof optionsOrCb === "function") {
|
|
194
|
-
this.send(command, optionsOrCb);
|
|
195
|
-
}
|
|
196
|
-
else if (typeof cb === "function") {
|
|
197
|
-
if (typeof optionsOrCb !== "object")
|
|
198
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
199
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
200
|
-
}
|
|
201
|
-
else {
|
|
202
|
-
return this.send(command, optionsOrCb);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
setIdentityPoolConfiguration(args, optionsOrCb, cb) {
|
|
206
|
-
const command = new SetIdentityPoolConfigurationCommand_1.SetIdentityPoolConfigurationCommand(args);
|
|
207
|
-
if (typeof optionsOrCb === "function") {
|
|
208
|
-
this.send(command, optionsOrCb);
|
|
209
|
-
}
|
|
210
|
-
else if (typeof cb === "function") {
|
|
211
|
-
if (typeof optionsOrCb !== "object")
|
|
212
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
213
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
214
|
-
}
|
|
215
|
-
else {
|
|
216
|
-
return this.send(command, optionsOrCb);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
subscribeToDataset(args, optionsOrCb, cb) {
|
|
220
|
-
const command = new SubscribeToDatasetCommand_1.SubscribeToDatasetCommand(args);
|
|
221
|
-
if (typeof optionsOrCb === "function") {
|
|
222
|
-
this.send(command, optionsOrCb);
|
|
223
|
-
}
|
|
224
|
-
else if (typeof cb === "function") {
|
|
225
|
-
if (typeof optionsOrCb !== "object")
|
|
226
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
227
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
return this.send(command, optionsOrCb);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
unsubscribeFromDataset(args, optionsOrCb, cb) {
|
|
234
|
-
const command = new UnsubscribeFromDatasetCommand_1.UnsubscribeFromDatasetCommand(args);
|
|
235
|
-
if (typeof optionsOrCb === "function") {
|
|
236
|
-
this.send(command, optionsOrCb);
|
|
237
|
-
}
|
|
238
|
-
else if (typeof cb === "function") {
|
|
239
|
-
if (typeof optionsOrCb !== "object")
|
|
240
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
241
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
242
|
-
}
|
|
243
|
-
else {
|
|
244
|
-
return this.send(command, optionsOrCb);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
updateRecords(args, optionsOrCb, cb) {
|
|
248
|
-
const command = new UpdateRecordsCommand_1.UpdateRecordsCommand(args);
|
|
249
|
-
if (typeof optionsOrCb === "function") {
|
|
250
|
-
this.send(command, optionsOrCb);
|
|
251
|
-
}
|
|
252
|
-
else if (typeof cb === "function") {
|
|
253
|
-
if (typeof optionsOrCb !== "object")
|
|
254
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
255
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
256
|
-
}
|
|
257
|
-
else {
|
|
258
|
-
return this.send(command, optionsOrCb);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
43
|
}
|
|
262
44
|
exports.CognitoSync = CognitoSync;
|
|
45
|
+
(0, smithy_client_1.createAggregatedClient)(commands, CognitoSync);
|
package/dist-es/CognitoSync.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CognitoSyncClient } from "./CognitoSyncClient";
|
|
2
3
|
import { BulkPublishCommand } from "./commands/BulkPublishCommand";
|
|
3
4
|
import { DeleteDatasetCommand, } from "./commands/DeleteDatasetCommand";
|
|
@@ -16,243 +17,25 @@ import { SetIdentityPoolConfigurationCommand, } from "./commands/SetIdentityPool
|
|
|
16
17
|
import { SubscribeToDatasetCommand, } from "./commands/SubscribeToDatasetCommand";
|
|
17
18
|
import { UnsubscribeFromDatasetCommand, } from "./commands/UnsubscribeFromDatasetCommand";
|
|
18
19
|
import { UpdateRecordsCommand, } from "./commands/UpdateRecordsCommand";
|
|
20
|
+
const commands = {
|
|
21
|
+
BulkPublishCommand,
|
|
22
|
+
DeleteDatasetCommand,
|
|
23
|
+
DescribeDatasetCommand,
|
|
24
|
+
DescribeIdentityPoolUsageCommand,
|
|
25
|
+
DescribeIdentityUsageCommand,
|
|
26
|
+
GetBulkPublishDetailsCommand,
|
|
27
|
+
GetCognitoEventsCommand,
|
|
28
|
+
GetIdentityPoolConfigurationCommand,
|
|
29
|
+
ListDatasetsCommand,
|
|
30
|
+
ListIdentityPoolUsageCommand,
|
|
31
|
+
ListRecordsCommand,
|
|
32
|
+
RegisterDeviceCommand,
|
|
33
|
+
SetCognitoEventsCommand,
|
|
34
|
+
SetIdentityPoolConfigurationCommand,
|
|
35
|
+
SubscribeToDatasetCommand,
|
|
36
|
+
UnsubscribeFromDatasetCommand,
|
|
37
|
+
UpdateRecordsCommand,
|
|
38
|
+
};
|
|
19
39
|
export class CognitoSync extends CognitoSyncClient {
|
|
20
|
-
bulkPublish(args, optionsOrCb, cb) {
|
|
21
|
-
const command = new BulkPublishCommand(args);
|
|
22
|
-
if (typeof optionsOrCb === "function") {
|
|
23
|
-
this.send(command, optionsOrCb);
|
|
24
|
-
}
|
|
25
|
-
else if (typeof cb === "function") {
|
|
26
|
-
if (typeof optionsOrCb !== "object")
|
|
27
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
28
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
return this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
deleteDataset(args, optionsOrCb, cb) {
|
|
35
|
-
const command = new DeleteDatasetCommand(args);
|
|
36
|
-
if (typeof optionsOrCb === "function") {
|
|
37
|
-
this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
else if (typeof cb === "function") {
|
|
40
|
-
if (typeof optionsOrCb !== "object")
|
|
41
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
42
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
describeDataset(args, optionsOrCb, cb) {
|
|
49
|
-
const command = new DescribeDatasetCommand(args);
|
|
50
|
-
if (typeof optionsOrCb === "function") {
|
|
51
|
-
this.send(command, optionsOrCb);
|
|
52
|
-
}
|
|
53
|
-
else if (typeof cb === "function") {
|
|
54
|
-
if (typeof optionsOrCb !== "object")
|
|
55
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
56
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
return this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
describeIdentityPoolUsage(args, optionsOrCb, cb) {
|
|
63
|
-
const command = new DescribeIdentityPoolUsageCommand(args);
|
|
64
|
-
if (typeof optionsOrCb === "function") {
|
|
65
|
-
this.send(command, optionsOrCb);
|
|
66
|
-
}
|
|
67
|
-
else if (typeof cb === "function") {
|
|
68
|
-
if (typeof optionsOrCb !== "object")
|
|
69
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
70
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
return this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
describeIdentityUsage(args, optionsOrCb, cb) {
|
|
77
|
-
const command = new DescribeIdentityUsageCommand(args);
|
|
78
|
-
if (typeof optionsOrCb === "function") {
|
|
79
|
-
this.send(command, optionsOrCb);
|
|
80
|
-
}
|
|
81
|
-
else if (typeof cb === "function") {
|
|
82
|
-
if (typeof optionsOrCb !== "object")
|
|
83
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
84
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
return this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
getBulkPublishDetails(args, optionsOrCb, cb) {
|
|
91
|
-
const command = new GetBulkPublishDetailsCommand(args);
|
|
92
|
-
if (typeof optionsOrCb === "function") {
|
|
93
|
-
this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
else if (typeof cb === "function") {
|
|
96
|
-
if (typeof optionsOrCb !== "object")
|
|
97
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
98
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
return this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
getCognitoEvents(args, optionsOrCb, cb) {
|
|
105
|
-
const command = new GetCognitoEventsCommand(args);
|
|
106
|
-
if (typeof optionsOrCb === "function") {
|
|
107
|
-
this.send(command, optionsOrCb);
|
|
108
|
-
}
|
|
109
|
-
else if (typeof cb === "function") {
|
|
110
|
-
if (typeof optionsOrCb !== "object")
|
|
111
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
112
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
return this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
getIdentityPoolConfiguration(args, optionsOrCb, cb) {
|
|
119
|
-
const command = new GetIdentityPoolConfigurationCommand(args);
|
|
120
|
-
if (typeof optionsOrCb === "function") {
|
|
121
|
-
this.send(command, optionsOrCb);
|
|
122
|
-
}
|
|
123
|
-
else if (typeof cb === "function") {
|
|
124
|
-
if (typeof optionsOrCb !== "object")
|
|
125
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
126
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
return this.send(command, optionsOrCb);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
listDatasets(args, optionsOrCb, cb) {
|
|
133
|
-
const command = new ListDatasetsCommand(args);
|
|
134
|
-
if (typeof optionsOrCb === "function") {
|
|
135
|
-
this.send(command, optionsOrCb);
|
|
136
|
-
}
|
|
137
|
-
else if (typeof cb === "function") {
|
|
138
|
-
if (typeof optionsOrCb !== "object")
|
|
139
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
140
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
return this.send(command, optionsOrCb);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
listIdentityPoolUsage(args, optionsOrCb, cb) {
|
|
147
|
-
const command = new ListIdentityPoolUsageCommand(args);
|
|
148
|
-
if (typeof optionsOrCb === "function") {
|
|
149
|
-
this.send(command, optionsOrCb);
|
|
150
|
-
}
|
|
151
|
-
else if (typeof cb === "function") {
|
|
152
|
-
if (typeof optionsOrCb !== "object")
|
|
153
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
154
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
return this.send(command, optionsOrCb);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
listRecords(args, optionsOrCb, cb) {
|
|
161
|
-
const command = new ListRecordsCommand(args);
|
|
162
|
-
if (typeof optionsOrCb === "function") {
|
|
163
|
-
this.send(command, optionsOrCb);
|
|
164
|
-
}
|
|
165
|
-
else if (typeof cb === "function") {
|
|
166
|
-
if (typeof optionsOrCb !== "object")
|
|
167
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
168
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
return this.send(command, optionsOrCb);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
registerDevice(args, optionsOrCb, cb) {
|
|
175
|
-
const command = new RegisterDeviceCommand(args);
|
|
176
|
-
if (typeof optionsOrCb === "function") {
|
|
177
|
-
this.send(command, optionsOrCb);
|
|
178
|
-
}
|
|
179
|
-
else if (typeof cb === "function") {
|
|
180
|
-
if (typeof optionsOrCb !== "object")
|
|
181
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
182
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
return this.send(command, optionsOrCb);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
setCognitoEvents(args, optionsOrCb, cb) {
|
|
189
|
-
const command = new SetCognitoEventsCommand(args);
|
|
190
|
-
if (typeof optionsOrCb === "function") {
|
|
191
|
-
this.send(command, optionsOrCb);
|
|
192
|
-
}
|
|
193
|
-
else if (typeof cb === "function") {
|
|
194
|
-
if (typeof optionsOrCb !== "object")
|
|
195
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
196
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
return this.send(command, optionsOrCb);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
setIdentityPoolConfiguration(args, optionsOrCb, cb) {
|
|
203
|
-
const command = new SetIdentityPoolConfigurationCommand(args);
|
|
204
|
-
if (typeof optionsOrCb === "function") {
|
|
205
|
-
this.send(command, optionsOrCb);
|
|
206
|
-
}
|
|
207
|
-
else if (typeof cb === "function") {
|
|
208
|
-
if (typeof optionsOrCb !== "object")
|
|
209
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
210
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
return this.send(command, optionsOrCb);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
subscribeToDataset(args, optionsOrCb, cb) {
|
|
217
|
-
const command = new SubscribeToDatasetCommand(args);
|
|
218
|
-
if (typeof optionsOrCb === "function") {
|
|
219
|
-
this.send(command, optionsOrCb);
|
|
220
|
-
}
|
|
221
|
-
else if (typeof cb === "function") {
|
|
222
|
-
if (typeof optionsOrCb !== "object")
|
|
223
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
224
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
return this.send(command, optionsOrCb);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
unsubscribeFromDataset(args, optionsOrCb, cb) {
|
|
231
|
-
const command = new UnsubscribeFromDatasetCommand(args);
|
|
232
|
-
if (typeof optionsOrCb === "function") {
|
|
233
|
-
this.send(command, optionsOrCb);
|
|
234
|
-
}
|
|
235
|
-
else if (typeof cb === "function") {
|
|
236
|
-
if (typeof optionsOrCb !== "object")
|
|
237
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
238
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
return this.send(command, optionsOrCb);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
updateRecords(args, optionsOrCb, cb) {
|
|
245
|
-
const command = new UpdateRecordsCommand(args);
|
|
246
|
-
if (typeof optionsOrCb === "function") {
|
|
247
|
-
this.send(command, optionsOrCb);
|
|
248
|
-
}
|
|
249
|
-
else if (typeof cb === "function") {
|
|
250
|
-
if (typeof optionsOrCb !== "object")
|
|
251
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
252
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
253
|
-
}
|
|
254
|
-
else {
|
|
255
|
-
return this.send(command, optionsOrCb);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
40
|
}
|
|
41
|
+
createAggregatedClient(commands, CognitoSync);
|
|
@@ -17,644 +17,125 @@ import { SetIdentityPoolConfigurationCommandInput, SetIdentityPoolConfigurationC
|
|
|
17
17
|
import { SubscribeToDatasetCommandInput, SubscribeToDatasetCommandOutput } from "./commands/SubscribeToDatasetCommand";
|
|
18
18
|
import { UnsubscribeFromDatasetCommandInput, UnsubscribeFromDatasetCommandOutput } from "./commands/UnsubscribeFromDatasetCommand";
|
|
19
19
|
import { UpdateRecordsCommandInput, UpdateRecordsCommandOutput } from "./commands/UpdateRecordsCommand";
|
|
20
|
-
|
|
21
|
-
* @public
|
|
22
|
-
* <fullname>Amazon Cognito Sync</fullname>
|
|
23
|
-
* <p>Amazon Cognito Sync provides an AWS service and client library that enable cross-device syncing of
|
|
24
|
-
* application-related user data. High-level client libraries are available for both iOS and
|
|
25
|
-
* Android. You can use these libraries to persist data locally so that it's available even if
|
|
26
|
-
* the device is offline. Developer credentials don't need to be stored on the mobile device
|
|
27
|
-
* to access the service. You can use Amazon Cognito to obtain a normalized user ID and
|
|
28
|
-
* credentials. User data is persisted in a dataset that can store up to 1 MB of key-value
|
|
29
|
-
* pairs, and you can have up to 20 datasets per user identity.</p>
|
|
30
|
-
* <p>With Amazon Cognito Sync, the data stored for each identity is accessible only to
|
|
31
|
-
* credentials assigned to that identity. In order to use the Cognito Sync service, you need
|
|
32
|
-
* to make API calls using credentials retrieved with <a href="http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/Welcome.html">Amazon Cognito Identity service</a>.</p>
|
|
33
|
-
* <p>If you want to use Cognito Sync in an Android or iOS application, you will probably want to
|
|
34
|
-
* make API calls via the AWS Mobile SDK. To learn more, see the <a href="http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-sync.html">Developer Guide for Android</a> and the <a href="http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-sync.html">Developer Guide for iOS</a>.</p>
|
|
35
|
-
*/
|
|
36
|
-
export declare class CognitoSync extends CognitoSyncClient {
|
|
20
|
+
export interface CognitoSync {
|
|
37
21
|
/**
|
|
38
|
-
* @
|
|
39
|
-
* <p>Initiates a bulk publish of all existing datasets for an Identity Pool to the configured stream. Customers are limited to one successful bulk publish per 24 hours. Bulk publish is an asynchronous request, customers can see the status of the request via the GetBulkPublishDetails operation.</p><p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
|
|
22
|
+
* @see {@link BulkPublishCommand}
|
|
40
23
|
*/
|
|
41
24
|
bulkPublish(args: BulkPublishCommandInput, options?: __HttpHandlerOptions): Promise<BulkPublishCommandOutput>;
|
|
42
25
|
bulkPublish(args: BulkPublishCommandInput, cb: (err: any, data?: BulkPublishCommandOutput) => void): void;
|
|
43
26
|
bulkPublish(args: BulkPublishCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BulkPublishCommandOutput) => void): void;
|
|
44
27
|
/**
|
|
45
|
-
* @
|
|
46
|
-
* <p>Deletes the specific dataset. The dataset will be deleted permanently, and the action can't
|
|
47
|
-
* be undone. Datasets that this dataset was merged with will no longer report the merge. Any
|
|
48
|
-
* subsequent operation on this dataset will result in a
|
|
49
|
-
* ResourceNotFoundException.</p>
|
|
50
|
-
* <p>This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.</p>
|
|
28
|
+
* @see {@link DeleteDatasetCommand}
|
|
51
29
|
*/
|
|
52
30
|
deleteDataset(args: DeleteDatasetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDatasetCommandOutput>;
|
|
53
31
|
deleteDataset(args: DeleteDatasetCommandInput, cb: (err: any, data?: DeleteDatasetCommandOutput) => void): void;
|
|
54
32
|
deleteDataset(args: DeleteDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDatasetCommandOutput) => void): void;
|
|
55
33
|
/**
|
|
56
|
-
* @
|
|
57
|
-
* <p>Gets meta data about a dataset by identity and dataset name. With Amazon Cognito Sync, each
|
|
58
|
-
* identity has access only to its own data. Thus, the credentials used to make this API call
|
|
59
|
-
* need to have access to the identity data.</p>
|
|
60
|
-
* <p>This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials. You should use Cognito Identity credentials to make this API call.</p>
|
|
34
|
+
* @see {@link DescribeDatasetCommand}
|
|
61
35
|
*/
|
|
62
36
|
describeDataset(args: DescribeDatasetCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDatasetCommandOutput>;
|
|
63
37
|
describeDataset(args: DescribeDatasetCommandInput, cb: (err: any, data?: DescribeDatasetCommandOutput) => void): void;
|
|
64
38
|
describeDataset(args: DescribeDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDatasetCommandOutput) => void): void;
|
|
65
39
|
/**
|
|
66
|
-
* @
|
|
67
|
-
* <p>Gets usage details (for example, data storage) about a particular identity pool.</p>
|
|
68
|
-
* <p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
|
|
69
|
-
*
|
|
70
|
-
* <examples>
|
|
71
|
-
* <example>
|
|
72
|
-
* <name>DescribeIdentityPoolUsage</name>
|
|
73
|
-
* <description>The following examples have been edited for readability.</description>
|
|
74
|
-
* <request>
|
|
75
|
-
* POST / HTTP/1.1
|
|
76
|
-
* CONTENT-TYPE: application/json
|
|
77
|
-
* X-AMZN-REQUESTID: 8dc0e749-c8cd-48bd-8520-da6be00d528b
|
|
78
|
-
* X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.DescribeIdentityPoolUsage
|
|
79
|
-
* HOST: cognito-sync.us-east-1.amazonaws.com:443
|
|
80
|
-
* X-AMZ-DATE: 20141111T205737Z
|
|
81
|
-
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
|
|
82
|
-
*
|
|
83
|
-
* \{
|
|
84
|
-
* "Operation": "com.amazonaws.cognito.sync.model#DescribeIdentityPoolUsage",
|
|
85
|
-
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
86
|
-
* "Input":
|
|
87
|
-
* \{
|
|
88
|
-
* "IdentityPoolId": "IDENTITY_POOL_ID"
|
|
89
|
-
* \}
|
|
90
|
-
* \}
|
|
91
|
-
* </request>
|
|
92
|
-
* <response>
|
|
93
|
-
* 1.1 200 OK
|
|
94
|
-
* x-amzn-requestid: 8dc0e749-c8cd-48bd-8520-da6be00d528b
|
|
95
|
-
* content-type: application/json
|
|
96
|
-
* content-length: 271
|
|
97
|
-
* date: Tue, 11 Nov 2014 20:57:37 GMT
|
|
98
|
-
*
|
|
99
|
-
* \{
|
|
100
|
-
* "Output":
|
|
101
|
-
* \{
|
|
102
|
-
* "__type": "com.amazonaws.cognito.sync.model#DescribeIdentityPoolUsageResponse",
|
|
103
|
-
* "IdentityPoolUsage":
|
|
104
|
-
* \{
|
|
105
|
-
* "DataStorage": 0,
|
|
106
|
-
* "IdentityPoolId": "IDENTITY_POOL_ID",
|
|
107
|
-
* "LastModifiedDate": 1.413231134115E9,
|
|
108
|
-
* "SyncSessionsCount": null
|
|
109
|
-
* \}
|
|
110
|
-
* \},
|
|
111
|
-
* "Version": "1.0"
|
|
112
|
-
* \}
|
|
113
|
-
* </response>
|
|
114
|
-
* </example>
|
|
115
|
-
* </examples>
|
|
40
|
+
* @see {@link DescribeIdentityPoolUsageCommand}
|
|
116
41
|
*/
|
|
117
42
|
describeIdentityPoolUsage(args: DescribeIdentityPoolUsageCommandInput, options?: __HttpHandlerOptions): Promise<DescribeIdentityPoolUsageCommandOutput>;
|
|
118
43
|
describeIdentityPoolUsage(args: DescribeIdentityPoolUsageCommandInput, cb: (err: any, data?: DescribeIdentityPoolUsageCommandOutput) => void): void;
|
|
119
44
|
describeIdentityPoolUsage(args: DescribeIdentityPoolUsageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeIdentityPoolUsageCommandOutput) => void): void;
|
|
120
45
|
/**
|
|
121
|
-
* @
|
|
122
|
-
* <p>Gets usage information for an identity, including number of datasets and data usage.</p>
|
|
123
|
-
* <p>This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.</p>
|
|
124
|
-
* <examples>
|
|
125
|
-
* <example>
|
|
126
|
-
* <name>DescribeIdentityUsage</name>
|
|
127
|
-
* <description>The following examples have been edited for readability.</description>
|
|
128
|
-
* <request>
|
|
129
|
-
* POST / HTTP/1.1
|
|
130
|
-
* CONTENT-TYPE: application/json
|
|
131
|
-
* X-AMZN-REQUESTID: 33f9b4e4-a177-4aad-a3bb-6edb7980b283
|
|
132
|
-
* X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.DescribeIdentityUsage
|
|
133
|
-
* HOST: cognito-sync.us-east-1.amazonaws.com:443
|
|
134
|
-
* X-AMZ-DATE: 20141111T215129Z
|
|
135
|
-
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
|
|
136
|
-
*
|
|
137
|
-
* \{
|
|
138
|
-
* "Operation": "com.amazonaws.cognito.sync.model#DescribeIdentityUsage",
|
|
139
|
-
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
140
|
-
* "Input":
|
|
141
|
-
* \{
|
|
142
|
-
* "IdentityPoolId": "IDENTITY_POOL_ID",
|
|
143
|
-
* "IdentityId": "IDENTITY_ID"
|
|
144
|
-
* \}
|
|
145
|
-
* \}
|
|
146
|
-
* </request>
|
|
147
|
-
* <response>
|
|
148
|
-
* 1.1 200 OK
|
|
149
|
-
* x-amzn-requestid: 33f9b4e4-a177-4aad-a3bb-6edb7980b283
|
|
150
|
-
* content-type: application/json
|
|
151
|
-
* content-length: 318
|
|
152
|
-
* date: Tue, 11 Nov 2014 21:51:29 GMT
|
|
153
|
-
*
|
|
154
|
-
* \{
|
|
155
|
-
* "Output":
|
|
156
|
-
* \{
|
|
157
|
-
* "__type": "com.amazonaws.cognito.sync.model#DescribeIdentityUsageResponse",
|
|
158
|
-
* "IdentityUsage":
|
|
159
|
-
* \{
|
|
160
|
-
* "DataStorage": 16,
|
|
161
|
-
* "DatasetCount": 1,
|
|
162
|
-
* "IdentityId": "IDENTITY_ID",
|
|
163
|
-
* "IdentityPoolId": "IDENTITY_POOL_ID",
|
|
164
|
-
* "LastModifiedDate": 1.412974081336E9
|
|
165
|
-
* \}
|
|
166
|
-
* \},
|
|
167
|
-
* "Version": "1.0"
|
|
168
|
-
* \}
|
|
169
|
-
* </response>
|
|
170
|
-
* </example>
|
|
171
|
-
* </examples>
|
|
46
|
+
* @see {@link DescribeIdentityUsageCommand}
|
|
172
47
|
*/
|
|
173
48
|
describeIdentityUsage(args: DescribeIdentityUsageCommandInput, options?: __HttpHandlerOptions): Promise<DescribeIdentityUsageCommandOutput>;
|
|
174
49
|
describeIdentityUsage(args: DescribeIdentityUsageCommandInput, cb: (err: any, data?: DescribeIdentityUsageCommandOutput) => void): void;
|
|
175
50
|
describeIdentityUsage(args: DescribeIdentityUsageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeIdentityUsageCommandOutput) => void): void;
|
|
176
51
|
/**
|
|
177
|
-
* @
|
|
178
|
-
* <p>Get the status of the last BulkPublish operation for an identity pool.</p><p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
|
|
52
|
+
* @see {@link GetBulkPublishDetailsCommand}
|
|
179
53
|
*/
|
|
180
54
|
getBulkPublishDetails(args: GetBulkPublishDetailsCommandInput, options?: __HttpHandlerOptions): Promise<GetBulkPublishDetailsCommandOutput>;
|
|
181
55
|
getBulkPublishDetails(args: GetBulkPublishDetailsCommandInput, cb: (err: any, data?: GetBulkPublishDetailsCommandOutput) => void): void;
|
|
182
56
|
getBulkPublishDetails(args: GetBulkPublishDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBulkPublishDetailsCommandOutput) => void): void;
|
|
183
57
|
/**
|
|
184
|
-
* @
|
|
185
|
-
* <p>Gets the events and the corresponding Lambda functions associated with an identity pool.</p><p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
|
|
58
|
+
* @see {@link GetCognitoEventsCommand}
|
|
186
59
|
*/
|
|
187
60
|
getCognitoEvents(args: GetCognitoEventsCommandInput, options?: __HttpHandlerOptions): Promise<GetCognitoEventsCommandOutput>;
|
|
188
61
|
getCognitoEvents(args: GetCognitoEventsCommandInput, cb: (err: any, data?: GetCognitoEventsCommandOutput) => void): void;
|
|
189
62
|
getCognitoEvents(args: GetCognitoEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCognitoEventsCommandOutput) => void): void;
|
|
190
63
|
/**
|
|
191
|
-
* @
|
|
192
|
-
* <p>Gets the configuration settings of an identity pool.</p><p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
|
|
193
|
-
* <examples>
|
|
194
|
-
* <example>
|
|
195
|
-
* <name>GetIdentityPoolConfiguration</name>
|
|
196
|
-
* <description>The following examples have been edited for readability.</description>
|
|
197
|
-
* <request>
|
|
198
|
-
* POST / HTTP/1.1
|
|
199
|
-
* CONTENT-TYPE: application/json
|
|
200
|
-
* X-AMZN-REQUESTID: b1cfdd4b-f620-4fe4-be0f-02024a1d33da
|
|
201
|
-
* X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.GetIdentityPoolConfiguration
|
|
202
|
-
* HOST: cognito-sync.us-east-1.amazonaws.com
|
|
203
|
-
* X-AMZ-DATE: 20141004T195722Z
|
|
204
|
-
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
|
|
205
|
-
*
|
|
206
|
-
* \{
|
|
207
|
-
* "Operation": "com.amazonaws.cognito.sync.model#GetIdentityPoolConfiguration",
|
|
208
|
-
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
209
|
-
* "Input":
|
|
210
|
-
* \{
|
|
211
|
-
* "IdentityPoolId": "ID_POOL_ID"
|
|
212
|
-
* \}
|
|
213
|
-
* \}
|
|
214
|
-
*
|
|
215
|
-
* </request>
|
|
216
|
-
* <response>
|
|
217
|
-
* 1.1 200 OK
|
|
218
|
-
* x-amzn-requestid: b1cfdd4b-f620-4fe4-be0f-02024a1d33da
|
|
219
|
-
* date: Sat, 04 Oct 2014 19:57:22 GMT
|
|
220
|
-
* content-type: application/json
|
|
221
|
-
* content-length: 332
|
|
222
|
-
*
|
|
223
|
-
* \{
|
|
224
|
-
* "Output":
|
|
225
|
-
* \{
|
|
226
|
-
* "__type": "com.amazonaws.cognito.sync.model#GetIdentityPoolConfigurationResponse",
|
|
227
|
-
* "IdentityPoolId": "ID_POOL_ID",
|
|
228
|
-
* "PushSync":
|
|
229
|
-
* \{
|
|
230
|
-
* "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"],
|
|
231
|
-
* "RoleArn": "ROLEARN"
|
|
232
|
-
* \}
|
|
233
|
-
* \},
|
|
234
|
-
* "Version": "1.0"
|
|
235
|
-
* \}
|
|
236
|
-
* </response>
|
|
237
|
-
* </example>
|
|
238
|
-
* </examples>
|
|
64
|
+
* @see {@link GetIdentityPoolConfigurationCommand}
|
|
239
65
|
*/
|
|
240
66
|
getIdentityPoolConfiguration(args: GetIdentityPoolConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetIdentityPoolConfigurationCommandOutput>;
|
|
241
67
|
getIdentityPoolConfiguration(args: GetIdentityPoolConfigurationCommandInput, cb: (err: any, data?: GetIdentityPoolConfigurationCommandOutput) => void): void;
|
|
242
68
|
getIdentityPoolConfiguration(args: GetIdentityPoolConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIdentityPoolConfigurationCommandOutput) => void): void;
|
|
243
69
|
/**
|
|
244
|
-
* @
|
|
245
|
-
* <p>Lists datasets for an identity. With Amazon Cognito Sync, each identity has access only to
|
|
246
|
-
* its own data. Thus, the credentials used to make this API call need to have access to the
|
|
247
|
-
* identity data.</p>
|
|
248
|
-
* <p>ListDatasets can be called with temporary user credentials provided by Cognito
|
|
249
|
-
* Identity or with developer credentials. You should use the Cognito Identity credentials to
|
|
250
|
-
* make this API call.</p>
|
|
251
|
-
* <examples>
|
|
252
|
-
* <example>
|
|
253
|
-
* <name>ListDatasets</name>
|
|
254
|
-
* <description>The following examples have been edited for readability.</description>
|
|
255
|
-
* <request>
|
|
256
|
-
* POST / HTTP/1.1
|
|
257
|
-
* CONTENT-TYPE: application/json
|
|
258
|
-
* X-AMZN-REQUESTID: 15225768-209f-4078-aaed-7494ace9f2db
|
|
259
|
-
* X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.ListDatasets
|
|
260
|
-
* HOST: cognito-sync.us-east-1.amazonaws.com:443
|
|
261
|
-
* X-AMZ-DATE: 20141111T215640Z
|
|
262
|
-
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
|
|
263
|
-
*
|
|
264
|
-
* \{
|
|
265
|
-
* "Operation": "com.amazonaws.cognito.sync.model#ListDatasets",
|
|
266
|
-
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
267
|
-
* "Input":
|
|
268
|
-
* \{
|
|
269
|
-
* "IdentityPoolId": "IDENTITY_POOL_ID",
|
|
270
|
-
* "IdentityId": "IDENTITY_ID",
|
|
271
|
-
* "MaxResults": "3"
|
|
272
|
-
* \}
|
|
273
|
-
* \}
|
|
274
|
-
* </request>
|
|
275
|
-
* <response>
|
|
276
|
-
* 1.1 200 OK
|
|
277
|
-
* x-amzn-requestid: 15225768-209f-4078-aaed-7494ace9f2db, 15225768-209f-4078-aaed-7494ace9f2db
|
|
278
|
-
* content-type: application/json
|
|
279
|
-
* content-length: 355
|
|
280
|
-
* date: Tue, 11 Nov 2014 21:56:40 GMT
|
|
281
|
-
*
|
|
282
|
-
* \{
|
|
283
|
-
* "Output":
|
|
284
|
-
* \{
|
|
285
|
-
* "__type": "com.amazonaws.cognito.sync.model#ListDatasetsResponse",
|
|
286
|
-
* "Count": 1,
|
|
287
|
-
* "Datasets": [
|
|
288
|
-
* \{
|
|
289
|
-
* "CreationDate": 1.412974057151E9,
|
|
290
|
-
* "DataStorage": 16,
|
|
291
|
-
* "DatasetName": "my_list",
|
|
292
|
-
* "IdentityId": "IDENTITY_ID",
|
|
293
|
-
* "LastModifiedBy": "123456789012",
|
|
294
|
-
* "LastModifiedDate": 1.412974057244E9,
|
|
295
|
-
* "NumRecords": 1
|
|
296
|
-
* \}],
|
|
297
|
-
* "NextToken": null
|
|
298
|
-
* \},
|
|
299
|
-
* "Version": "1.0"
|
|
300
|
-
* \}
|
|
301
|
-
* </response>
|
|
302
|
-
* </example>
|
|
303
|
-
* </examples>
|
|
70
|
+
* @see {@link ListDatasetsCommand}
|
|
304
71
|
*/
|
|
305
72
|
listDatasets(args: ListDatasetsCommandInput, options?: __HttpHandlerOptions): Promise<ListDatasetsCommandOutput>;
|
|
306
73
|
listDatasets(args: ListDatasetsCommandInput, cb: (err: any, data?: ListDatasetsCommandOutput) => void): void;
|
|
307
74
|
listDatasets(args: ListDatasetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDatasetsCommandOutput) => void): void;
|
|
308
75
|
/**
|
|
309
|
-
* @
|
|
310
|
-
* <p>Gets a list of identity pools registered with Cognito.</p>
|
|
311
|
-
* <p>ListIdentityPoolUsage can only be called with developer credentials. You
|
|
312
|
-
* cannot make this API call with the temporary user credentials provided by Cognito
|
|
313
|
-
* Identity.</p>
|
|
314
|
-
* <examples>
|
|
315
|
-
* <example>
|
|
316
|
-
* <name>ListIdentityPoolUsage</name>
|
|
317
|
-
* <description>The following examples have been edited for readability.</description>
|
|
318
|
-
* <request>
|
|
319
|
-
* POST / HTTP/1.1
|
|
320
|
-
* CONTENT-TYPE: application/json
|
|
321
|
-
* X-AMZN-REQUESTID: 9be7c425-ef05-48c0-aef3-9f0ff2fe17d3
|
|
322
|
-
* X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.ListIdentityPoolUsage
|
|
323
|
-
* HOST: cognito-sync.us-east-1.amazonaws.com:443
|
|
324
|
-
* X-AMZ-DATE: 20141111T211414Z
|
|
325
|
-
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
|
|
326
|
-
*
|
|
327
|
-
* \{
|
|
328
|
-
* "Operation": "com.amazonaws.cognito.sync.model#ListIdentityPoolUsage",
|
|
329
|
-
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
330
|
-
* "Input":
|
|
331
|
-
* \{
|
|
332
|
-
* "MaxResults": "2"
|
|
333
|
-
* \}
|
|
334
|
-
* \}
|
|
335
|
-
* </request>
|
|
336
|
-
* <response>
|
|
337
|
-
* 1.1 200 OK
|
|
338
|
-
* x-amzn-requestid: 9be7c425-ef05-48c0-aef3-9f0ff2fe17d3
|
|
339
|
-
* content-type: application/json
|
|
340
|
-
* content-length: 519
|
|
341
|
-
* date: Tue, 11 Nov 2014 21:14:14 GMT
|
|
342
|
-
*
|
|
343
|
-
* \{
|
|
344
|
-
* "Output":
|
|
345
|
-
* \{
|
|
346
|
-
* "__type": "com.amazonaws.cognito.sync.model#ListIdentityPoolUsageResponse",
|
|
347
|
-
* "Count": 2,
|
|
348
|
-
* "IdentityPoolUsages": [
|
|
349
|
-
* \{
|
|
350
|
-
* "DataStorage": 0,
|
|
351
|
-
* "IdentityPoolId": "IDENTITY_POOL_ID",
|
|
352
|
-
* "LastModifiedDate": 1.413836234607E9,
|
|
353
|
-
* "SyncSessionsCount": null
|
|
354
|
-
* \},
|
|
355
|
-
* \{
|
|
356
|
-
* "DataStorage": 0,
|
|
357
|
-
* "IdentityPoolId": "IDENTITY_POOL_ID",
|
|
358
|
-
* "LastModifiedDate": 1.410892165601E9,
|
|
359
|
-
* "SyncSessionsCount": null
|
|
360
|
-
* \}],
|
|
361
|
-
* "MaxResults": 2,
|
|
362
|
-
* "NextToken": "dXMtZWFzdC0xOjBjMWJhMDUyLWUwOTgtNDFmYS1hNzZlLWVhYTJjMTI1Zjg2MQ=="
|
|
363
|
-
* \},
|
|
364
|
-
* "Version": "1.0"
|
|
365
|
-
* \}
|
|
366
|
-
* </response>
|
|
367
|
-
* </example>
|
|
368
|
-
* </examples>
|
|
76
|
+
* @see {@link ListIdentityPoolUsageCommand}
|
|
369
77
|
*/
|
|
370
78
|
listIdentityPoolUsage(args: ListIdentityPoolUsageCommandInput, options?: __HttpHandlerOptions): Promise<ListIdentityPoolUsageCommandOutput>;
|
|
371
79
|
listIdentityPoolUsage(args: ListIdentityPoolUsageCommandInput, cb: (err: any, data?: ListIdentityPoolUsageCommandOutput) => void): void;
|
|
372
80
|
listIdentityPoolUsage(args: ListIdentityPoolUsageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIdentityPoolUsageCommandOutput) => void): void;
|
|
373
81
|
/**
|
|
374
|
-
* @
|
|
375
|
-
* <p>Gets paginated records, optionally changed after a particular sync count for a dataset and
|
|
376
|
-
* identity. With Amazon Cognito Sync, each identity has access only to its own data. Thus,
|
|
377
|
-
* the credentials used to make this API call need to have access to the identity data.</p>
|
|
378
|
-
* <p>ListRecords can be called with temporary user credentials provided by Cognito
|
|
379
|
-
* Identity or with developer credentials. You should use Cognito Identity credentials to make
|
|
380
|
-
* this API call.</p>
|
|
381
|
-
* <examples>
|
|
382
|
-
* <example>
|
|
383
|
-
* <name>ListRecords</name>
|
|
384
|
-
* <description>The following examples have been edited for readability.</description>
|
|
385
|
-
* <request>
|
|
386
|
-
* POST / HTTP/1.1
|
|
387
|
-
* CONTENT-TYPE: application/json
|
|
388
|
-
* X-AMZN-REQUESTID: b3d2e31e-d6b7-4612-8e84-c9ba288dab5d
|
|
389
|
-
* X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.ListRecords
|
|
390
|
-
* HOST: cognito-sync.us-east-1.amazonaws.com:443
|
|
391
|
-
* X-AMZ-DATE: 20141111T183230Z
|
|
392
|
-
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
|
|
393
|
-
*
|
|
394
|
-
* \{
|
|
395
|
-
* "Operation": "com.amazonaws.cognito.sync.model#ListRecords",
|
|
396
|
-
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
397
|
-
* "Input":
|
|
398
|
-
* \{
|
|
399
|
-
* "IdentityPoolId": "IDENTITY_POOL_ID",
|
|
400
|
-
* "IdentityId": "IDENTITY_ID",
|
|
401
|
-
* "DatasetName": "newDataSet"
|
|
402
|
-
* \}
|
|
403
|
-
* \}
|
|
404
|
-
* </request>
|
|
405
|
-
* <response>
|
|
406
|
-
* 1.1 200 OK
|
|
407
|
-
* x-amzn-requestid: b3d2e31e-d6b7-4612-8e84-c9ba288dab5d
|
|
408
|
-
* content-type: application/json
|
|
409
|
-
* content-length: 623
|
|
410
|
-
* date: Tue, 11 Nov 2014 18:32:30 GMT
|
|
411
|
-
*
|
|
412
|
-
* \{
|
|
413
|
-
* "Output":
|
|
414
|
-
* \{
|
|
415
|
-
* "__type": "com.amazonaws.cognito.sync.model#ListRecordsResponse",
|
|
416
|
-
* "Count": 0,
|
|
417
|
-
* "DatasetDeletedAfterRequestedSyncCount": false,
|
|
418
|
-
* "DatasetExists": false,
|
|
419
|
-
* "DatasetSyncCount": 0,
|
|
420
|
-
* "LastModifiedBy": null,
|
|
421
|
-
* "MergedDatasetNames": null,
|
|
422
|
-
* "NextToken": null,
|
|
423
|
-
* "Records": [],
|
|
424
|
-
* "SyncSessionToken": "SYNC_SESSION_TOKEN"
|
|
425
|
-
* \},
|
|
426
|
-
* "Version": "1.0"
|
|
427
|
-
* \}
|
|
428
|
-
* </response>
|
|
429
|
-
* </example>
|
|
430
|
-
* </examples>
|
|
82
|
+
* @see {@link ListRecordsCommand}
|
|
431
83
|
*/
|
|
432
84
|
listRecords(args: ListRecordsCommandInput, options?: __HttpHandlerOptions): Promise<ListRecordsCommandOutput>;
|
|
433
85
|
listRecords(args: ListRecordsCommandInput, cb: (err: any, data?: ListRecordsCommandOutput) => void): void;
|
|
434
86
|
listRecords(args: ListRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecordsCommandOutput) => void): void;
|
|
435
87
|
/**
|
|
436
|
-
* @
|
|
437
|
-
* <p>Registers a device to receive push sync notifications.</p><p>This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.</p>
|
|
438
|
-
* <examples>
|
|
439
|
-
* <example>
|
|
440
|
-
* <name>RegisterDevice</name>
|
|
441
|
-
* <description>The following examples have been edited for readability.</description>
|
|
442
|
-
* <request>
|
|
443
|
-
* POST / HTTP/1.1
|
|
444
|
-
* CONTENT-TYPE: application/json
|
|
445
|
-
* X-AMZN-REQUESTID: 368f9200-3eca-449e-93b3-7b9c08d8e185
|
|
446
|
-
* X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.RegisterDevice
|
|
447
|
-
* HOST: cognito-sync.us-east-1.amazonaws.com
|
|
448
|
-
* X-AMZ-DATE: 20141004T194643Z
|
|
449
|
-
* X-AMZ-SECURITY-TOKEN: <securitytoken>
|
|
450
|
-
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
|
|
451
|
-
*
|
|
452
|
-
* \{
|
|
453
|
-
* "Operation": "com.amazonaws.cognito.sync.model#RegisterDevice",
|
|
454
|
-
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
455
|
-
* "Input":
|
|
456
|
-
* \{
|
|
457
|
-
* "IdentityPoolId": "ID_POOL_ID",
|
|
458
|
-
* "IdentityId": "IDENTITY_ID",
|
|
459
|
-
* "Platform": "GCM",
|
|
460
|
-
* "Token": "PUSH_TOKEN"
|
|
461
|
-
* \}
|
|
462
|
-
* \}
|
|
463
|
-
* </request>
|
|
464
|
-
* <response>
|
|
465
|
-
* 1.1 200 OK
|
|
466
|
-
* x-amzn-requestid: 368f9200-3eca-449e-93b3-7b9c08d8e185
|
|
467
|
-
* date: Sat, 04 Oct 2014 19:46:44 GMT
|
|
468
|
-
* content-type: application/json
|
|
469
|
-
* content-length: 145
|
|
470
|
-
*
|
|
471
|
-
* \{
|
|
472
|
-
* "Output":
|
|
473
|
-
* \{
|
|
474
|
-
* "__type": "com.amazonaws.cognito.sync.model#RegisterDeviceResponse",
|
|
475
|
-
* "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014"
|
|
476
|
-
* \},
|
|
477
|
-
* "Version": "1.0"
|
|
478
|
-
* \}
|
|
479
|
-
* </response>
|
|
480
|
-
* </example>
|
|
481
|
-
* </examples>
|
|
88
|
+
* @see {@link RegisterDeviceCommand}
|
|
482
89
|
*/
|
|
483
90
|
registerDevice(args: RegisterDeviceCommandInput, options?: __HttpHandlerOptions): Promise<RegisterDeviceCommandOutput>;
|
|
484
91
|
registerDevice(args: RegisterDeviceCommandInput, cb: (err: any, data?: RegisterDeviceCommandOutput) => void): void;
|
|
485
92
|
registerDevice(args: RegisterDeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterDeviceCommandOutput) => void): void;
|
|
486
93
|
/**
|
|
487
|
-
* @
|
|
488
|
-
* <p>Sets the AWS Lambda function for a given event type for an identity pool. This request only updates the key/value pair specified. Other key/values pairs are not updated. To remove a key value pair, pass a empty value for the particular key.</p><p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
|
|
94
|
+
* @see {@link SetCognitoEventsCommand}
|
|
489
95
|
*/
|
|
490
96
|
setCognitoEvents(args: SetCognitoEventsCommandInput, options?: __HttpHandlerOptions): Promise<SetCognitoEventsCommandOutput>;
|
|
491
97
|
setCognitoEvents(args: SetCognitoEventsCommandInput, cb: (err: any, data?: SetCognitoEventsCommandOutput) => void): void;
|
|
492
98
|
setCognitoEvents(args: SetCognitoEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetCognitoEventsCommandOutput) => void): void;
|
|
493
99
|
/**
|
|
494
|
-
* @
|
|
495
|
-
* <p>Sets the necessary configuration for push sync.</p><p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
|
|
496
|
-
* <examples>
|
|
497
|
-
* <example>
|
|
498
|
-
* <name>SetIdentityPoolConfiguration</name>
|
|
499
|
-
* <description>The following examples have been edited for readability.</description>
|
|
500
|
-
* <request>
|
|
501
|
-
* POST / HTTP/1.1
|
|
502
|
-
* CONTENT-TYPE: application/json
|
|
503
|
-
* X-AMZN-REQUESTID: a46db021-f5dd-45d6-af5b-7069fa4a211b
|
|
504
|
-
* X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.SetIdentityPoolConfiguration
|
|
505
|
-
* HOST: cognito-sync.us-east-1.amazonaws.com
|
|
506
|
-
* X-AMZ-DATE: 20141004T200006Z
|
|
507
|
-
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
|
|
508
|
-
*
|
|
509
|
-
* \{
|
|
510
|
-
* "Operation": "com.amazonaws.cognito.sync.model#SetIdentityPoolConfiguration",
|
|
511
|
-
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
512
|
-
* "Input":
|
|
513
|
-
* \{
|
|
514
|
-
* "IdentityPoolId": "ID_POOL_ID",
|
|
515
|
-
* "PushSync":
|
|
516
|
-
* \{
|
|
517
|
-
* "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"],
|
|
518
|
-
* "RoleArn": "ROLEARN"
|
|
519
|
-
* \}
|
|
520
|
-
* \}
|
|
521
|
-
* \}
|
|
522
|
-
* </request>
|
|
523
|
-
* <response>
|
|
524
|
-
* 1.1 200 OK
|
|
525
|
-
* x-amzn-requestid: a46db021-f5dd-45d6-af5b-7069fa4a211b
|
|
526
|
-
* date: Sat, 04 Oct 2014 20:00:06 GMT
|
|
527
|
-
* content-type: application/json
|
|
528
|
-
* content-length: 332
|
|
529
|
-
*
|
|
530
|
-
* \{
|
|
531
|
-
* "Output":
|
|
532
|
-
* \{
|
|
533
|
-
* "__type": "com.amazonaws.cognito.sync.model#SetIdentityPoolConfigurationResponse",
|
|
534
|
-
* "IdentityPoolId": "ID_POOL_ID",
|
|
535
|
-
* "PushSync":
|
|
536
|
-
* \{
|
|
537
|
-
* "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"],
|
|
538
|
-
* "RoleArn": "ROLEARN"
|
|
539
|
-
* \}
|
|
540
|
-
* \},
|
|
541
|
-
* "Version": "1.0"
|
|
542
|
-
* \}
|
|
543
|
-
* </response>
|
|
544
|
-
* </example>
|
|
545
|
-
* </examples>
|
|
100
|
+
* @see {@link SetIdentityPoolConfigurationCommand}
|
|
546
101
|
*/
|
|
547
102
|
setIdentityPoolConfiguration(args: SetIdentityPoolConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<SetIdentityPoolConfigurationCommandOutput>;
|
|
548
103
|
setIdentityPoolConfiguration(args: SetIdentityPoolConfigurationCommandInput, cb: (err: any, data?: SetIdentityPoolConfigurationCommandOutput) => void): void;
|
|
549
104
|
setIdentityPoolConfiguration(args: SetIdentityPoolConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetIdentityPoolConfigurationCommandOutput) => void): void;
|
|
550
105
|
/**
|
|
551
|
-
* @
|
|
552
|
-
* <p>Subscribes to receive notifications when a dataset is modified by another device.</p><p>This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.</p>
|
|
553
|
-
* <examples>
|
|
554
|
-
* <example>
|
|
555
|
-
* <name>SubscribeToDataset</name>
|
|
556
|
-
* <description>The following examples have been edited for readability.</description>
|
|
557
|
-
* <request>
|
|
558
|
-
* POST / HTTP/1.1
|
|
559
|
-
* CONTENT-TYPE: application/json
|
|
560
|
-
* X-AMZN-REQUESTID: 8b9932b7-201d-4418-a960-0a470e11de9f
|
|
561
|
-
* X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.SubscribeToDataset
|
|
562
|
-
* HOST: cognito-sync.us-east-1.amazonaws.com
|
|
563
|
-
* X-AMZ-DATE: 20141004T195350Z
|
|
564
|
-
* X-AMZ-SECURITY-TOKEN: <securitytoken>
|
|
565
|
-
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
|
|
566
|
-
*
|
|
567
|
-
* \{
|
|
568
|
-
* "Operation": "com.amazonaws.cognito.sync.model#SubscribeToDataset",
|
|
569
|
-
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
570
|
-
* "Input":
|
|
571
|
-
* \{
|
|
572
|
-
* "IdentityPoolId": "ID_POOL_ID",
|
|
573
|
-
* "IdentityId": "IDENTITY_ID",
|
|
574
|
-
* "DatasetName": "Rufus",
|
|
575
|
-
* "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014"
|
|
576
|
-
* \}
|
|
577
|
-
* \}
|
|
578
|
-
* </request>
|
|
579
|
-
* <response>
|
|
580
|
-
* 1.1 200 OK
|
|
581
|
-
* x-amzn-requestid: 8b9932b7-201d-4418-a960-0a470e11de9f
|
|
582
|
-
* date: Sat, 04 Oct 2014 19:53:50 GMT
|
|
583
|
-
* content-type: application/json
|
|
584
|
-
* content-length: 99
|
|
585
|
-
*
|
|
586
|
-
* \{
|
|
587
|
-
* "Output":
|
|
588
|
-
* \{
|
|
589
|
-
* "__type": "com.amazonaws.cognito.sync.model#SubscribeToDatasetResponse"
|
|
590
|
-
* \},
|
|
591
|
-
* "Version": "1.0"
|
|
592
|
-
* \}
|
|
593
|
-
* </response>
|
|
594
|
-
* </example>
|
|
595
|
-
* </examples>
|
|
106
|
+
* @see {@link SubscribeToDatasetCommand}
|
|
596
107
|
*/
|
|
597
108
|
subscribeToDataset(args: SubscribeToDatasetCommandInput, options?: __HttpHandlerOptions): Promise<SubscribeToDatasetCommandOutput>;
|
|
598
109
|
subscribeToDataset(args: SubscribeToDatasetCommandInput, cb: (err: any, data?: SubscribeToDatasetCommandOutput) => void): void;
|
|
599
110
|
subscribeToDataset(args: SubscribeToDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SubscribeToDatasetCommandOutput) => void): void;
|
|
600
111
|
/**
|
|
601
|
-
* @
|
|
602
|
-
* <p>Unsubscribes from receiving notifications when a dataset is modified by another device.</p><p>This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.</p>
|
|
603
|
-
* <examples>
|
|
604
|
-
* <example>
|
|
605
|
-
* <name>UnsubscribeFromDataset</name>
|
|
606
|
-
* <description>The following examples have been edited for readability.</description>
|
|
607
|
-
* <request>
|
|
608
|
-
* POST / HTTP/1.1
|
|
609
|
-
* CONTENT-TYPE: application/json
|
|
610
|
-
* X-AMZ-REQUESTSUPERTRACE: true
|
|
611
|
-
* X-AMZN-REQUESTID: 676896d6-14ca-45b1-8029-6d36b10a077e
|
|
612
|
-
* X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.UnsubscribeFromDataset
|
|
613
|
-
* HOST: cognito-sync.us-east-1.amazonaws.com
|
|
614
|
-
* X-AMZ-DATE: 20141004T195446Z
|
|
615
|
-
* X-AMZ-SECURITY-TOKEN: <securitytoken>
|
|
616
|
-
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
|
|
617
|
-
*
|
|
618
|
-
* \{
|
|
619
|
-
* "Operation": "com.amazonaws.cognito.sync.model#UnsubscribeFromDataset",
|
|
620
|
-
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
621
|
-
* "Input":
|
|
622
|
-
* \{
|
|
623
|
-
* "IdentityPoolId": "ID_POOL_ID",
|
|
624
|
-
* "IdentityId": "IDENTITY_ID",
|
|
625
|
-
* "DatasetName": "Rufus",
|
|
626
|
-
* "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014"
|
|
627
|
-
* \}
|
|
628
|
-
* \}
|
|
629
|
-
* </request>
|
|
630
|
-
* <response>
|
|
631
|
-
* 1.1 200 OK
|
|
632
|
-
* x-amzn-requestid: 676896d6-14ca-45b1-8029-6d36b10a077e
|
|
633
|
-
* date: Sat, 04 Oct 2014 19:54:46 GMT
|
|
634
|
-
* content-type: application/json
|
|
635
|
-
* content-length: 103
|
|
636
|
-
*
|
|
637
|
-
* \{
|
|
638
|
-
* "Output":
|
|
639
|
-
* \{
|
|
640
|
-
* "__type": "com.amazonaws.cognito.sync.model#UnsubscribeFromDatasetResponse"
|
|
641
|
-
* \},
|
|
642
|
-
* "Version": "1.0"
|
|
643
|
-
* \}
|
|
644
|
-
* </response>
|
|
645
|
-
* </example>
|
|
646
|
-
* </examples>
|
|
112
|
+
* @see {@link UnsubscribeFromDatasetCommand}
|
|
647
113
|
*/
|
|
648
114
|
unsubscribeFromDataset(args: UnsubscribeFromDatasetCommandInput, options?: __HttpHandlerOptions): Promise<UnsubscribeFromDatasetCommandOutput>;
|
|
649
115
|
unsubscribeFromDataset(args: UnsubscribeFromDatasetCommandInput, cb: (err: any, data?: UnsubscribeFromDatasetCommandOutput) => void): void;
|
|
650
116
|
unsubscribeFromDataset(args: UnsubscribeFromDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnsubscribeFromDatasetCommandOutput) => void): void;
|
|
651
117
|
/**
|
|
652
|
-
* @
|
|
653
|
-
* <p>Posts updates to records and adds and deletes records for a dataset and user.</p>
|
|
654
|
-
* <p>The sync count in the record patch is your last known sync count for that record. The server will reject an UpdateRecords request with a ResourceConflictException if you try to patch a record with a new value but a stale sync count.</p><p>For example, if the sync count on the server is 5 for a key called highScore and you try and submit a new highScore with sync count of 4, the request will be rejected. To obtain the current sync count for a record, call ListRecords. On a successful update of the record, the response returns the new sync count for that record. You should present that sync count the next time you try to update that same record. When the record does not exist, specify the sync count as 0.</p>
|
|
655
|
-
* <p>This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.</p>
|
|
118
|
+
* @see {@link UpdateRecordsCommand}
|
|
656
119
|
*/
|
|
657
120
|
updateRecords(args: UpdateRecordsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRecordsCommandOutput>;
|
|
658
121
|
updateRecords(args: UpdateRecordsCommandInput, cb: (err: any, data?: UpdateRecordsCommandOutput) => void): void;
|
|
659
122
|
updateRecords(args: UpdateRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRecordsCommandOutput) => void): void;
|
|
660
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* @public
|
|
126
|
+
* <fullname>Amazon Cognito Sync</fullname>
|
|
127
|
+
* <p>Amazon Cognito Sync provides an AWS service and client library that enable cross-device syncing of
|
|
128
|
+
* application-related user data. High-level client libraries are available for both iOS and
|
|
129
|
+
* Android. You can use these libraries to persist data locally so that it's available even if
|
|
130
|
+
* the device is offline. Developer credentials don't need to be stored on the mobile device
|
|
131
|
+
* to access the service. You can use Amazon Cognito to obtain a normalized user ID and
|
|
132
|
+
* credentials. User data is persisted in a dataset that can store up to 1 MB of key-value
|
|
133
|
+
* pairs, and you can have up to 20 datasets per user identity.</p>
|
|
134
|
+
* <p>With Amazon Cognito Sync, the data stored for each identity is accessible only to
|
|
135
|
+
* credentials assigned to that identity. In order to use the Cognito Sync service, you need
|
|
136
|
+
* to make API calls using credentials retrieved with <a href="http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/Welcome.html">Amazon Cognito Identity service</a>.</p>
|
|
137
|
+
* <p>If you want to use Cognito Sync in an Android or iOS application, you will probably want to
|
|
138
|
+
* make API calls via the AWS Mobile SDK. To learn more, see the <a href="http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-sync.html">Developer Guide for Android</a> and the <a href="http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-sync.html">Developer Guide for iOS</a>.</p>
|
|
139
|
+
*/
|
|
140
|
+
export declare class CognitoSync extends CognitoSyncClient implements CognitoSync {
|
|
141
|
+
}
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
UpdateRecordsCommandInput,
|
|
69
69
|
UpdateRecordsCommandOutput,
|
|
70
70
|
} from "./commands/UpdateRecordsCommand";
|
|
71
|
-
export
|
|
71
|
+
export interface CognitoSync {
|
|
72
72
|
bulkPublish(
|
|
73
73
|
args: BulkPublishCommandInput,
|
|
74
74
|
options?: __HttpHandlerOptions
|
|
@@ -291,3 +291,6 @@ export declare class CognitoSync extends CognitoSyncClient {
|
|
|
291
291
|
cb: (err: any, data?: UpdateRecordsCommandOutput) => void
|
|
292
292
|
): void;
|
|
293
293
|
}
|
|
294
|
+
export declare class CognitoSync
|
|
295
|
+
extends CognitoSyncClient
|
|
296
|
+
implements CognitoSync {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cognito-sync",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cognito Sync Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.319.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.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.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",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
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.
|
|
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.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|