@aws-sdk/client-cognito-sync 3.183.0 → 3.186.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/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/CognitoSync.js +77 -70
- package/dist-es/CognitoSyncClient.js +28 -22
- package/dist-es/commands/BulkPublishCommand.js +28 -21
- package/dist-es/commands/DeleteDatasetCommand.js +28 -21
- package/dist-es/commands/DescribeDatasetCommand.js +28 -21
- package/dist-es/commands/DescribeIdentityPoolUsageCommand.js +28 -21
- package/dist-es/commands/DescribeIdentityUsageCommand.js +28 -21
- package/dist-es/commands/GetBulkPublishDetailsCommand.js +28 -21
- package/dist-es/commands/GetCognitoEventsCommand.js +28 -21
- package/dist-es/commands/GetIdentityPoolConfigurationCommand.js +28 -21
- package/dist-es/commands/ListDatasetsCommand.js +28 -21
- package/dist-es/commands/ListIdentityPoolUsageCommand.js +28 -21
- package/dist-es/commands/ListRecordsCommand.js +28 -21
- package/dist-es/commands/RegisterDeviceCommand.js +28 -21
- package/dist-es/commands/SetCognitoEventsCommand.js +29 -22
- package/dist-es/commands/SetIdentityPoolConfigurationCommand.js +28 -21
- package/dist-es/commands/SubscribeToDatasetCommand.js +28 -21
- package/dist-es/commands/UnsubscribeFromDatasetCommand.js +28 -21
- package/dist-es/commands/UpdateRecordsCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CognitoSyncServiceException.js +10 -5
- package/dist-es/models/models_0.js +184 -263
- package/dist-es/protocols/Aws_restJson1.js +1942 -1389
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cognito-sync
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-cognito-sync
|
|
@@ -1563,10 +1563,10 @@ const deserializeAws_restJson1RecordList = (output, context) => {
|
|
|
1563
1563
|
return retVal;
|
|
1564
1564
|
};
|
|
1565
1565
|
const deserializeMetadata = (output) => {
|
|
1566
|
-
var _a;
|
|
1566
|
+
var _a, _b;
|
|
1567
1567
|
return ({
|
|
1568
1568
|
httpStatusCode: output.statusCode,
|
|
1569
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
1569
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
1570
1570
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1571
1571
|
cfId: output.headers["x-amz-cf-id"],
|
|
1572
1572
|
});
|
package/dist-es/CognitoSync.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { CognitoSyncClient } from "./CognitoSyncClient";
|
|
2
3
|
import { BulkPublishCommand } from "./commands/BulkPublishCommand";
|
|
3
4
|
import { DeleteDatasetCommand, } from "./commands/DeleteDatasetCommand";
|
|
@@ -16,243 +17,249 @@ 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";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
var CognitoSync = (function (_super) {
|
|
21
|
+
__extends(CognitoSync, _super);
|
|
22
|
+
function CognitoSync() {
|
|
23
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
+
}
|
|
25
|
+
CognitoSync.prototype.bulkPublish = function (args, optionsOrCb, cb) {
|
|
26
|
+
var command = new BulkPublishCommand(args);
|
|
22
27
|
if (typeof optionsOrCb === "function") {
|
|
23
28
|
this.send(command, optionsOrCb);
|
|
24
29
|
}
|
|
25
30
|
else if (typeof cb === "function") {
|
|
26
31
|
if (typeof optionsOrCb !== "object")
|
|
27
|
-
throw new Error(
|
|
32
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
28
33
|
this.send(command, optionsOrCb || {}, cb);
|
|
29
34
|
}
|
|
30
35
|
else {
|
|
31
36
|
return this.send(command, optionsOrCb);
|
|
32
37
|
}
|
|
33
|
-
}
|
|
34
|
-
deleteDataset(args, optionsOrCb, cb) {
|
|
35
|
-
|
|
38
|
+
};
|
|
39
|
+
CognitoSync.prototype.deleteDataset = function (args, optionsOrCb, cb) {
|
|
40
|
+
var command = new DeleteDatasetCommand(args);
|
|
36
41
|
if (typeof optionsOrCb === "function") {
|
|
37
42
|
this.send(command, optionsOrCb);
|
|
38
43
|
}
|
|
39
44
|
else if (typeof cb === "function") {
|
|
40
45
|
if (typeof optionsOrCb !== "object")
|
|
41
|
-
throw new Error(
|
|
46
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
42
47
|
this.send(command, optionsOrCb || {}, cb);
|
|
43
48
|
}
|
|
44
49
|
else {
|
|
45
50
|
return this.send(command, optionsOrCb);
|
|
46
51
|
}
|
|
47
|
-
}
|
|
48
|
-
describeDataset(args, optionsOrCb, cb) {
|
|
49
|
-
|
|
52
|
+
};
|
|
53
|
+
CognitoSync.prototype.describeDataset = function (args, optionsOrCb, cb) {
|
|
54
|
+
var command = new DescribeDatasetCommand(args);
|
|
50
55
|
if (typeof optionsOrCb === "function") {
|
|
51
56
|
this.send(command, optionsOrCb);
|
|
52
57
|
}
|
|
53
58
|
else if (typeof cb === "function") {
|
|
54
59
|
if (typeof optionsOrCb !== "object")
|
|
55
|
-
throw new Error(
|
|
60
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
56
61
|
this.send(command, optionsOrCb || {}, cb);
|
|
57
62
|
}
|
|
58
63
|
else {
|
|
59
64
|
return this.send(command, optionsOrCb);
|
|
60
65
|
}
|
|
61
|
-
}
|
|
62
|
-
describeIdentityPoolUsage(args, optionsOrCb, cb) {
|
|
63
|
-
|
|
66
|
+
};
|
|
67
|
+
CognitoSync.prototype.describeIdentityPoolUsage = function (args, optionsOrCb, cb) {
|
|
68
|
+
var command = new DescribeIdentityPoolUsageCommand(args);
|
|
64
69
|
if (typeof optionsOrCb === "function") {
|
|
65
70
|
this.send(command, optionsOrCb);
|
|
66
71
|
}
|
|
67
72
|
else if (typeof cb === "function") {
|
|
68
73
|
if (typeof optionsOrCb !== "object")
|
|
69
|
-
throw new Error(
|
|
74
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
70
75
|
this.send(command, optionsOrCb || {}, cb);
|
|
71
76
|
}
|
|
72
77
|
else {
|
|
73
78
|
return this.send(command, optionsOrCb);
|
|
74
79
|
}
|
|
75
|
-
}
|
|
76
|
-
describeIdentityUsage(args, optionsOrCb, cb) {
|
|
77
|
-
|
|
80
|
+
};
|
|
81
|
+
CognitoSync.prototype.describeIdentityUsage = function (args, optionsOrCb, cb) {
|
|
82
|
+
var command = new DescribeIdentityUsageCommand(args);
|
|
78
83
|
if (typeof optionsOrCb === "function") {
|
|
79
84
|
this.send(command, optionsOrCb);
|
|
80
85
|
}
|
|
81
86
|
else if (typeof cb === "function") {
|
|
82
87
|
if (typeof optionsOrCb !== "object")
|
|
83
|
-
throw new Error(
|
|
88
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
84
89
|
this.send(command, optionsOrCb || {}, cb);
|
|
85
90
|
}
|
|
86
91
|
else {
|
|
87
92
|
return this.send(command, optionsOrCb);
|
|
88
93
|
}
|
|
89
|
-
}
|
|
90
|
-
getBulkPublishDetails(args, optionsOrCb, cb) {
|
|
91
|
-
|
|
94
|
+
};
|
|
95
|
+
CognitoSync.prototype.getBulkPublishDetails = function (args, optionsOrCb, cb) {
|
|
96
|
+
var command = new GetBulkPublishDetailsCommand(args);
|
|
92
97
|
if (typeof optionsOrCb === "function") {
|
|
93
98
|
this.send(command, optionsOrCb);
|
|
94
99
|
}
|
|
95
100
|
else if (typeof cb === "function") {
|
|
96
101
|
if (typeof optionsOrCb !== "object")
|
|
97
|
-
throw new Error(
|
|
102
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
98
103
|
this.send(command, optionsOrCb || {}, cb);
|
|
99
104
|
}
|
|
100
105
|
else {
|
|
101
106
|
return this.send(command, optionsOrCb);
|
|
102
107
|
}
|
|
103
|
-
}
|
|
104
|
-
getCognitoEvents(args, optionsOrCb, cb) {
|
|
105
|
-
|
|
108
|
+
};
|
|
109
|
+
CognitoSync.prototype.getCognitoEvents = function (args, optionsOrCb, cb) {
|
|
110
|
+
var command = new GetCognitoEventsCommand(args);
|
|
106
111
|
if (typeof optionsOrCb === "function") {
|
|
107
112
|
this.send(command, optionsOrCb);
|
|
108
113
|
}
|
|
109
114
|
else if (typeof cb === "function") {
|
|
110
115
|
if (typeof optionsOrCb !== "object")
|
|
111
|
-
throw new Error(
|
|
116
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
112
117
|
this.send(command, optionsOrCb || {}, cb);
|
|
113
118
|
}
|
|
114
119
|
else {
|
|
115
120
|
return this.send(command, optionsOrCb);
|
|
116
121
|
}
|
|
117
|
-
}
|
|
118
|
-
getIdentityPoolConfiguration(args, optionsOrCb, cb) {
|
|
119
|
-
|
|
122
|
+
};
|
|
123
|
+
CognitoSync.prototype.getIdentityPoolConfiguration = function (args, optionsOrCb, cb) {
|
|
124
|
+
var command = new GetIdentityPoolConfigurationCommand(args);
|
|
120
125
|
if (typeof optionsOrCb === "function") {
|
|
121
126
|
this.send(command, optionsOrCb);
|
|
122
127
|
}
|
|
123
128
|
else if (typeof cb === "function") {
|
|
124
129
|
if (typeof optionsOrCb !== "object")
|
|
125
|
-
throw new Error(
|
|
130
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
126
131
|
this.send(command, optionsOrCb || {}, cb);
|
|
127
132
|
}
|
|
128
133
|
else {
|
|
129
134
|
return this.send(command, optionsOrCb);
|
|
130
135
|
}
|
|
131
|
-
}
|
|
132
|
-
listDatasets(args, optionsOrCb, cb) {
|
|
133
|
-
|
|
136
|
+
};
|
|
137
|
+
CognitoSync.prototype.listDatasets = function (args, optionsOrCb, cb) {
|
|
138
|
+
var command = new ListDatasetsCommand(args);
|
|
134
139
|
if (typeof optionsOrCb === "function") {
|
|
135
140
|
this.send(command, optionsOrCb);
|
|
136
141
|
}
|
|
137
142
|
else if (typeof cb === "function") {
|
|
138
143
|
if (typeof optionsOrCb !== "object")
|
|
139
|
-
throw new Error(
|
|
144
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
140
145
|
this.send(command, optionsOrCb || {}, cb);
|
|
141
146
|
}
|
|
142
147
|
else {
|
|
143
148
|
return this.send(command, optionsOrCb);
|
|
144
149
|
}
|
|
145
|
-
}
|
|
146
|
-
listIdentityPoolUsage(args, optionsOrCb, cb) {
|
|
147
|
-
|
|
150
|
+
};
|
|
151
|
+
CognitoSync.prototype.listIdentityPoolUsage = function (args, optionsOrCb, cb) {
|
|
152
|
+
var command = new ListIdentityPoolUsageCommand(args);
|
|
148
153
|
if (typeof optionsOrCb === "function") {
|
|
149
154
|
this.send(command, optionsOrCb);
|
|
150
155
|
}
|
|
151
156
|
else if (typeof cb === "function") {
|
|
152
157
|
if (typeof optionsOrCb !== "object")
|
|
153
|
-
throw new Error(
|
|
158
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
154
159
|
this.send(command, optionsOrCb || {}, cb);
|
|
155
160
|
}
|
|
156
161
|
else {
|
|
157
162
|
return this.send(command, optionsOrCb);
|
|
158
163
|
}
|
|
159
|
-
}
|
|
160
|
-
listRecords(args, optionsOrCb, cb) {
|
|
161
|
-
|
|
164
|
+
};
|
|
165
|
+
CognitoSync.prototype.listRecords = function (args, optionsOrCb, cb) {
|
|
166
|
+
var command = new ListRecordsCommand(args);
|
|
162
167
|
if (typeof optionsOrCb === "function") {
|
|
163
168
|
this.send(command, optionsOrCb);
|
|
164
169
|
}
|
|
165
170
|
else if (typeof cb === "function") {
|
|
166
171
|
if (typeof optionsOrCb !== "object")
|
|
167
|
-
throw new Error(
|
|
172
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
168
173
|
this.send(command, optionsOrCb || {}, cb);
|
|
169
174
|
}
|
|
170
175
|
else {
|
|
171
176
|
return this.send(command, optionsOrCb);
|
|
172
177
|
}
|
|
173
|
-
}
|
|
174
|
-
registerDevice(args, optionsOrCb, cb) {
|
|
175
|
-
|
|
178
|
+
};
|
|
179
|
+
CognitoSync.prototype.registerDevice = function (args, optionsOrCb, cb) {
|
|
180
|
+
var command = new RegisterDeviceCommand(args);
|
|
176
181
|
if (typeof optionsOrCb === "function") {
|
|
177
182
|
this.send(command, optionsOrCb);
|
|
178
183
|
}
|
|
179
184
|
else if (typeof cb === "function") {
|
|
180
185
|
if (typeof optionsOrCb !== "object")
|
|
181
|
-
throw new Error(
|
|
186
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
182
187
|
this.send(command, optionsOrCb || {}, cb);
|
|
183
188
|
}
|
|
184
189
|
else {
|
|
185
190
|
return this.send(command, optionsOrCb);
|
|
186
191
|
}
|
|
187
|
-
}
|
|
188
|
-
setCognitoEvents(args, optionsOrCb, cb) {
|
|
189
|
-
|
|
192
|
+
};
|
|
193
|
+
CognitoSync.prototype.setCognitoEvents = function (args, optionsOrCb, cb) {
|
|
194
|
+
var command = new SetCognitoEventsCommand(args);
|
|
190
195
|
if (typeof optionsOrCb === "function") {
|
|
191
196
|
this.send(command, optionsOrCb);
|
|
192
197
|
}
|
|
193
198
|
else if (typeof cb === "function") {
|
|
194
199
|
if (typeof optionsOrCb !== "object")
|
|
195
|
-
throw new Error(
|
|
200
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
196
201
|
this.send(command, optionsOrCb || {}, cb);
|
|
197
202
|
}
|
|
198
203
|
else {
|
|
199
204
|
return this.send(command, optionsOrCb);
|
|
200
205
|
}
|
|
201
|
-
}
|
|
202
|
-
setIdentityPoolConfiguration(args, optionsOrCb, cb) {
|
|
203
|
-
|
|
206
|
+
};
|
|
207
|
+
CognitoSync.prototype.setIdentityPoolConfiguration = function (args, optionsOrCb, cb) {
|
|
208
|
+
var command = new SetIdentityPoolConfigurationCommand(args);
|
|
204
209
|
if (typeof optionsOrCb === "function") {
|
|
205
210
|
this.send(command, optionsOrCb);
|
|
206
211
|
}
|
|
207
212
|
else if (typeof cb === "function") {
|
|
208
213
|
if (typeof optionsOrCb !== "object")
|
|
209
|
-
throw new Error(
|
|
214
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
210
215
|
this.send(command, optionsOrCb || {}, cb);
|
|
211
216
|
}
|
|
212
217
|
else {
|
|
213
218
|
return this.send(command, optionsOrCb);
|
|
214
219
|
}
|
|
215
|
-
}
|
|
216
|
-
subscribeToDataset(args, optionsOrCb, cb) {
|
|
217
|
-
|
|
220
|
+
};
|
|
221
|
+
CognitoSync.prototype.subscribeToDataset = function (args, optionsOrCb, cb) {
|
|
222
|
+
var command = new SubscribeToDatasetCommand(args);
|
|
218
223
|
if (typeof optionsOrCb === "function") {
|
|
219
224
|
this.send(command, optionsOrCb);
|
|
220
225
|
}
|
|
221
226
|
else if (typeof cb === "function") {
|
|
222
227
|
if (typeof optionsOrCb !== "object")
|
|
223
|
-
throw new Error(
|
|
228
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
224
229
|
this.send(command, optionsOrCb || {}, cb);
|
|
225
230
|
}
|
|
226
231
|
else {
|
|
227
232
|
return this.send(command, optionsOrCb);
|
|
228
233
|
}
|
|
229
|
-
}
|
|
230
|
-
unsubscribeFromDataset(args, optionsOrCb, cb) {
|
|
231
|
-
|
|
234
|
+
};
|
|
235
|
+
CognitoSync.prototype.unsubscribeFromDataset = function (args, optionsOrCb, cb) {
|
|
236
|
+
var command = new UnsubscribeFromDatasetCommand(args);
|
|
232
237
|
if (typeof optionsOrCb === "function") {
|
|
233
238
|
this.send(command, optionsOrCb);
|
|
234
239
|
}
|
|
235
240
|
else if (typeof cb === "function") {
|
|
236
241
|
if (typeof optionsOrCb !== "object")
|
|
237
|
-
throw new Error(
|
|
242
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
238
243
|
this.send(command, optionsOrCb || {}, cb);
|
|
239
244
|
}
|
|
240
245
|
else {
|
|
241
246
|
return this.send(command, optionsOrCb);
|
|
242
247
|
}
|
|
243
|
-
}
|
|
244
|
-
updateRecords(args, optionsOrCb, cb) {
|
|
245
|
-
|
|
248
|
+
};
|
|
249
|
+
CognitoSync.prototype.updateRecords = function (args, optionsOrCb, cb) {
|
|
250
|
+
var command = new UpdateRecordsCommand(args);
|
|
246
251
|
if (typeof optionsOrCb === "function") {
|
|
247
252
|
this.send(command, optionsOrCb);
|
|
248
253
|
}
|
|
249
254
|
else if (typeof cb === "function") {
|
|
250
255
|
if (typeof optionsOrCb !== "object")
|
|
251
|
-
throw new Error(
|
|
256
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
252
257
|
this.send(command, optionsOrCb || {}, cb);
|
|
253
258
|
}
|
|
254
259
|
else {
|
|
255
260
|
return this.send(command, optionsOrCb);
|
|
256
261
|
}
|
|
257
|
-
}
|
|
258
|
-
|
|
262
|
+
};
|
|
263
|
+
return CognitoSync;
|
|
264
|
+
}(CognitoSyncClient));
|
|
265
|
+
export { CognitoSync };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
var CognitoSyncClient = (function (_super) {
|
|
13
|
+
__extends(CognitoSyncClient, _super);
|
|
14
|
+
function CognitoSyncClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
CognitoSyncClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return CognitoSyncClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { CognitoSyncClient };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { BulkPublishRequestFilterSensitiveLog, BulkPublishResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1BulkPublishCommand, serializeAws_restJson1BulkPublishCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var BulkPublishCommand = (function (_super) {
|
|
7
|
+
__extends(BulkPublishCommand, _super);
|
|
8
|
+
function BulkPublishCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
BulkPublishCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CognitoSyncClient";
|
|
18
|
+
var commandName = "BulkPublishCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: BulkPublishRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: BulkPublishResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
BulkPublishCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1BulkPublishCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
BulkPublishCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1BulkPublishCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return BulkPublishCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { BulkPublishCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteDatasetRequestFilterSensitiveLog, DeleteDatasetResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1DeleteDatasetCommand, serializeAws_restJson1DeleteDatasetCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DeleteDatasetCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteDatasetCommand, _super);
|
|
8
|
+
function DeleteDatasetCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DeleteDatasetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CognitoSyncClient";
|
|
18
|
+
var commandName = "DeleteDatasetCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DeleteDatasetRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DeleteDatasetResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteDatasetCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1DeleteDatasetCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DeleteDatasetCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1DeleteDatasetCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DeleteDatasetCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteDatasetCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DescribeDatasetRequestFilterSensitiveLog, DescribeDatasetResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1DescribeDatasetCommand, serializeAws_restJson1DescribeDatasetCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DescribeDatasetCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeDatasetCommand, _super);
|
|
8
|
+
function DescribeDatasetCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DescribeDatasetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CognitoSyncClient";
|
|
18
|
+
var commandName = "DescribeDatasetCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DescribeDatasetRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DescribeDatasetResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeDatasetCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1DescribeDatasetCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DescribeDatasetCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1DescribeDatasetCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DescribeDatasetCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeDatasetCommand };
|