@aws-sdk/client-timestream-write 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_0.js +2 -2
- package/dist-es/TimestreamWrite.js +69 -62
- package/dist-es/TimestreamWriteClient.js +29 -23
- package/dist-es/commands/CreateDatabaseCommand.js +29 -22
- package/dist-es/commands/CreateTableCommand.js +29 -22
- package/dist-es/commands/DeleteDatabaseCommand.js +30 -23
- package/dist-es/commands/DeleteTableCommand.js +30 -23
- package/dist-es/commands/DescribeDatabaseCommand.js +29 -22
- package/dist-es/commands/DescribeEndpointsCommand.js +28 -21
- package/dist-es/commands/DescribeTableCommand.js +29 -22
- package/dist-es/commands/ListDatabasesCommand.js +29 -22
- package/dist-es/commands/ListTablesCommand.js +29 -22
- package/dist-es/commands/ListTagsForResourceCommand.js +29 -22
- package/dist-es/commands/TagResourceCommand.js +29 -22
- package/dist-es/commands/UntagResourceCommand.js +29 -22
- package/dist-es/commands/UpdateDatabaseCommand.js +29 -22
- package/dist-es/commands/UpdateTableCommand.js +29 -22
- package/dist-es/commands/WriteRecordsCommand.js +29 -22
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/TimestreamWriteServiceException.js +10 -5
- package/dist-es/models/models_0.js +151 -232
- package/dist-es/pagination/ListDatabasesPaginator.js +68 -25
- package/dist-es/pagination/ListTablesPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_0.js +1496 -1175
- package/dist-es/runtimeConfig.browser.js +12 -27
- package/dist-es/runtimeConfig.js +12 -31
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,95 +1,96 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
1
2
|
import { TimestreamWriteServiceException as __BaseException } from "./TimestreamWriteServiceException";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
-
this.Message = opts.Message;
|
|
3
|
+
var AccessDeniedException = (function (_super) {
|
|
4
|
+
__extends(AccessDeniedException, _super);
|
|
5
|
+
function AccessDeniedException(opts) {
|
|
6
|
+
var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
|
|
7
|
+
_this.name = "AccessDeniedException";
|
|
8
|
+
_this.$fault = "client";
|
|
9
|
+
Object.setPrototypeOf(_this, AccessDeniedException.prototype);
|
|
10
|
+
_this.Message = opts.Message;
|
|
11
|
+
return _this;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
13
|
+
return AccessDeniedException;
|
|
14
|
+
}(__BaseException));
|
|
15
|
+
export { AccessDeniedException };
|
|
16
|
+
var ConflictException = (function (_super) {
|
|
17
|
+
__extends(ConflictException, _super);
|
|
18
|
+
function ConflictException(opts) {
|
|
19
|
+
var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
|
|
20
|
+
_this.name = "ConflictException";
|
|
21
|
+
_this.$fault = "client";
|
|
22
|
+
Object.setPrototypeOf(_this, ConflictException.prototype);
|
|
23
|
+
_this.Message = opts.Message;
|
|
24
|
+
return _this;
|
|
26
25
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
26
|
+
return ConflictException;
|
|
27
|
+
}(__BaseException));
|
|
28
|
+
export { ConflictException };
|
|
29
|
+
var InternalServerException = (function (_super) {
|
|
30
|
+
__extends(InternalServerException, _super);
|
|
31
|
+
function InternalServerException(opts) {
|
|
32
|
+
var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
|
|
33
|
+
_this.name = "InternalServerException";
|
|
34
|
+
_this.$fault = "server";
|
|
35
|
+
Object.setPrototypeOf(_this, InternalServerException.prototype);
|
|
36
|
+
_this.Message = opts.Message;
|
|
37
|
+
return _this;
|
|
39
38
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
39
|
+
return InternalServerException;
|
|
40
|
+
}(__BaseException));
|
|
41
|
+
export { InternalServerException };
|
|
42
|
+
var InvalidEndpointException = (function (_super) {
|
|
43
|
+
__extends(InvalidEndpointException, _super);
|
|
44
|
+
function InvalidEndpointException(opts) {
|
|
45
|
+
var _this = _super.call(this, __assign({ name: "InvalidEndpointException", $fault: "client" }, opts)) || this;
|
|
46
|
+
_this.name = "InvalidEndpointException";
|
|
47
|
+
_this.$fault = "client";
|
|
48
|
+
Object.setPrototypeOf(_this, InvalidEndpointException.prototype);
|
|
49
|
+
_this.Message = opts.Message;
|
|
50
|
+
return _this;
|
|
52
51
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
52
|
+
return InvalidEndpointException;
|
|
53
|
+
}(__BaseException));
|
|
54
|
+
export { InvalidEndpointException };
|
|
55
|
+
var ServiceQuotaExceededException = (function (_super) {
|
|
56
|
+
__extends(ServiceQuotaExceededException, _super);
|
|
57
|
+
function ServiceQuotaExceededException(opts) {
|
|
58
|
+
var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
|
|
59
|
+
_this.name = "ServiceQuotaExceededException";
|
|
60
|
+
_this.$fault = "client";
|
|
61
|
+
Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
|
|
62
|
+
_this.Message = opts.Message;
|
|
63
|
+
return _this;
|
|
65
64
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
65
|
+
return ServiceQuotaExceededException;
|
|
66
|
+
}(__BaseException));
|
|
67
|
+
export { ServiceQuotaExceededException };
|
|
68
|
+
var ThrottlingException = (function (_super) {
|
|
69
|
+
__extends(ThrottlingException, _super);
|
|
70
|
+
function ThrottlingException(opts) {
|
|
71
|
+
var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
|
|
72
|
+
_this.name = "ThrottlingException";
|
|
73
|
+
_this.$fault = "client";
|
|
74
|
+
Object.setPrototypeOf(_this, ThrottlingException.prototype);
|
|
75
|
+
_this.Message = opts.Message;
|
|
76
|
+
return _this;
|
|
78
77
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
78
|
+
return ThrottlingException;
|
|
79
|
+
}(__BaseException));
|
|
80
|
+
export { ThrottlingException };
|
|
81
|
+
var ValidationException = (function (_super) {
|
|
82
|
+
__extends(ValidationException, _super);
|
|
83
|
+
function ValidationException(opts) {
|
|
84
|
+
var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
|
|
85
|
+
_this.name = "ValidationException";
|
|
86
|
+
_this.$fault = "client";
|
|
87
|
+
Object.setPrototypeOf(_this, ValidationException.prototype);
|
|
88
|
+
_this.Message = opts.Message;
|
|
89
|
+
return _this;
|
|
91
90
|
}
|
|
92
|
-
|
|
91
|
+
return ValidationException;
|
|
92
|
+
}(__BaseException));
|
|
93
|
+
export { ValidationException };
|
|
93
94
|
export var S3EncryptionOption;
|
|
94
95
|
(function (S3EncryptionOption) {
|
|
95
96
|
S3EncryptionOption["SSE_KMS"] = "SSE_KMS";
|
|
@@ -100,19 +101,19 @@ export var TableStatus;
|
|
|
100
101
|
TableStatus["ACTIVE"] = "ACTIVE";
|
|
101
102
|
TableStatus["DELETING"] = "DELETING";
|
|
102
103
|
})(TableStatus || (TableStatus = {}));
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
113
|
-
this.Message = opts.Message;
|
|
104
|
+
var ResourceNotFoundException = (function (_super) {
|
|
105
|
+
__extends(ResourceNotFoundException, _super);
|
|
106
|
+
function ResourceNotFoundException(opts) {
|
|
107
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
108
|
+
_this.name = "ResourceNotFoundException";
|
|
109
|
+
_this.$fault = "client";
|
|
110
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
111
|
+
_this.Message = opts.Message;
|
|
112
|
+
return _this;
|
|
114
113
|
}
|
|
115
|
-
|
|
114
|
+
return ResourceNotFoundException;
|
|
115
|
+
}(__BaseException));
|
|
116
|
+
export { ResourceNotFoundException };
|
|
116
117
|
export var DimensionValueType;
|
|
117
118
|
(function (DimensionValueType) {
|
|
118
119
|
DimensionValueType["VARCHAR"] = "VARCHAR";
|
|
@@ -133,140 +134,58 @@ export var TimeUnit;
|
|
|
133
134
|
TimeUnit["NANOSECONDS"] = "NANOSECONDS";
|
|
134
135
|
TimeUnit["SECONDS"] = "SECONDS";
|
|
135
136
|
})(TimeUnit || (TimeUnit = {}));
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
this.Message = opts.Message;
|
|
147
|
-
this.RejectedRecords = opts.RejectedRecords;
|
|
137
|
+
var RejectedRecordsException = (function (_super) {
|
|
138
|
+
__extends(RejectedRecordsException, _super);
|
|
139
|
+
function RejectedRecordsException(opts) {
|
|
140
|
+
var _this = _super.call(this, __assign({ name: "RejectedRecordsException", $fault: "client" }, opts)) || this;
|
|
141
|
+
_this.name = "RejectedRecordsException";
|
|
142
|
+
_this.$fault = "client";
|
|
143
|
+
Object.setPrototypeOf(_this, RejectedRecordsException.prototype);
|
|
144
|
+
_this.Message = opts.Message;
|
|
145
|
+
_this.RejectedRecords = opts.RejectedRecords;
|
|
146
|
+
return _this;
|
|
148
147
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
});
|
|
153
|
-
export
|
|
154
|
-
|
|
155
|
-
});
|
|
156
|
-
export
|
|
157
|
-
|
|
158
|
-
});
|
|
159
|
-
export
|
|
160
|
-
|
|
161
|
-
});
|
|
162
|
-
export
|
|
163
|
-
|
|
164
|
-
});
|
|
165
|
-
export
|
|
166
|
-
|
|
167
|
-
});
|
|
168
|
-
export
|
|
169
|
-
|
|
170
|
-
});
|
|
171
|
-
export
|
|
172
|
-
|
|
173
|
-
});
|
|
174
|
-
export
|
|
175
|
-
|
|
176
|
-
});
|
|
177
|
-
export
|
|
178
|
-
|
|
179
|
-
});
|
|
180
|
-
export
|
|
181
|
-
|
|
182
|
-
});
|
|
183
|
-
export
|
|
184
|
-
|
|
185
|
-
});
|
|
186
|
-
export
|
|
187
|
-
|
|
188
|
-
});
|
|
189
|
-
export
|
|
190
|
-
|
|
191
|
-
});
|
|
192
|
-
export
|
|
193
|
-
...obj,
|
|
194
|
-
});
|
|
195
|
-
export const DescribeEndpointsRequestFilterSensitiveLog = (obj) => ({
|
|
196
|
-
...obj,
|
|
197
|
-
});
|
|
198
|
-
export const EndpointFilterSensitiveLog = (obj) => ({
|
|
199
|
-
...obj,
|
|
200
|
-
});
|
|
201
|
-
export const DescribeEndpointsResponseFilterSensitiveLog = (obj) => ({
|
|
202
|
-
...obj,
|
|
203
|
-
});
|
|
204
|
-
export const DescribeTableRequestFilterSensitiveLog = (obj) => ({
|
|
205
|
-
...obj,
|
|
206
|
-
});
|
|
207
|
-
export const DescribeTableResponseFilterSensitiveLog = (obj) => ({
|
|
208
|
-
...obj,
|
|
209
|
-
});
|
|
210
|
-
export const DimensionFilterSensitiveLog = (obj) => ({
|
|
211
|
-
...obj,
|
|
212
|
-
});
|
|
213
|
-
export const ListDatabasesRequestFilterSensitiveLog = (obj) => ({
|
|
214
|
-
...obj,
|
|
215
|
-
});
|
|
216
|
-
export const ListDatabasesResponseFilterSensitiveLog = (obj) => ({
|
|
217
|
-
...obj,
|
|
218
|
-
});
|
|
219
|
-
export const ListTablesRequestFilterSensitiveLog = (obj) => ({
|
|
220
|
-
...obj,
|
|
221
|
-
});
|
|
222
|
-
export const ListTablesResponseFilterSensitiveLog = (obj) => ({
|
|
223
|
-
...obj,
|
|
224
|
-
});
|
|
225
|
-
export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
|
|
226
|
-
...obj,
|
|
227
|
-
});
|
|
228
|
-
export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
229
|
-
...obj,
|
|
230
|
-
});
|
|
231
|
-
export const MeasureValueFilterSensitiveLog = (obj) => ({
|
|
232
|
-
...obj,
|
|
233
|
-
});
|
|
234
|
-
export const _RecordFilterSensitiveLog = (obj) => ({
|
|
235
|
-
...obj,
|
|
236
|
-
});
|
|
237
|
-
export const RecordsIngestedFilterSensitiveLog = (obj) => ({
|
|
238
|
-
...obj,
|
|
239
|
-
});
|
|
240
|
-
export const RejectedRecordFilterSensitiveLog = (obj) => ({
|
|
241
|
-
...obj,
|
|
242
|
-
});
|
|
243
|
-
export const TagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
244
|
-
...obj,
|
|
245
|
-
});
|
|
246
|
-
export const TagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
247
|
-
...obj,
|
|
248
|
-
});
|
|
249
|
-
export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
250
|
-
...obj,
|
|
251
|
-
});
|
|
252
|
-
export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
253
|
-
...obj,
|
|
254
|
-
});
|
|
255
|
-
export const UpdateDatabaseRequestFilterSensitiveLog = (obj) => ({
|
|
256
|
-
...obj,
|
|
257
|
-
});
|
|
258
|
-
export const UpdateDatabaseResponseFilterSensitiveLog = (obj) => ({
|
|
259
|
-
...obj,
|
|
260
|
-
});
|
|
261
|
-
export const UpdateTableRequestFilterSensitiveLog = (obj) => ({
|
|
262
|
-
...obj,
|
|
263
|
-
});
|
|
264
|
-
export const UpdateTableResponseFilterSensitiveLog = (obj) => ({
|
|
265
|
-
...obj,
|
|
266
|
-
});
|
|
267
|
-
export const WriteRecordsRequestFilterSensitiveLog = (obj) => ({
|
|
268
|
-
...obj,
|
|
269
|
-
});
|
|
270
|
-
export const WriteRecordsResponseFilterSensitiveLog = (obj) => ({
|
|
271
|
-
...obj,
|
|
272
|
-
});
|
|
148
|
+
return RejectedRecordsException;
|
|
149
|
+
}(__BaseException));
|
|
150
|
+
export { RejectedRecordsException };
|
|
151
|
+
export var TagFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
152
|
+
export var CreateDatabaseRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
153
|
+
export var DatabaseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
154
|
+
export var CreateDatabaseResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
155
|
+
export var S3ConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
156
|
+
export var MagneticStoreRejectedDataLocationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
157
|
+
export var MagneticStoreWritePropertiesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
158
|
+
export var RetentionPropertiesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
159
|
+
export var CreateTableRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
160
|
+
export var TableFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
161
|
+
export var CreateTableResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
162
|
+
export var DeleteDatabaseRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
163
|
+
export var DeleteTableRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
164
|
+
export var DescribeDatabaseRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
165
|
+
export var DescribeDatabaseResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
166
|
+
export var DescribeEndpointsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
167
|
+
export var EndpointFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
168
|
+
export var DescribeEndpointsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
169
|
+
export var DescribeTableRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
170
|
+
export var DescribeTableResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
171
|
+
export var DimensionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
172
|
+
export var ListDatabasesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
173
|
+
export var ListDatabasesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
174
|
+
export var ListTablesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
175
|
+
export var ListTablesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
176
|
+
export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
177
|
+
export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
178
|
+
export var MeasureValueFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
179
|
+
export var _RecordFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
180
|
+
export var RecordsIngestedFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
181
|
+
export var RejectedRecordFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
182
|
+
export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
183
|
+
export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
184
|
+
export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
185
|
+
export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
186
|
+
export var UpdateDatabaseRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
187
|
+
export var UpdateDatabaseResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
188
|
+
export var UpdateTableRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
189
|
+
export var UpdateTableResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
190
|
+
export var WriteRecordsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
191
|
+
export var WriteRecordsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListDatabasesCommand, } from "../commands/ListDatabasesCommand";
|
|
2
3
|
import { TimestreamWrite } from "../TimestreamWrite";
|
|
3
4
|
import { TimestreamWriteClient } from "../TimestreamWriteClient";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListDatabasesCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listDatabases.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof TimestreamWrite) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof TimestreamWriteClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected TimestreamWrite | TimestreamWriteClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListDatabases(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListDatabases_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof TimestreamWrite)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof TimestreamWriteClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected TimestreamWrite | TimestreamWriteClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListTablesCommand } from "../commands/ListTablesCommand";
|
|
2
3
|
import { TimestreamWrite } from "../TimestreamWrite";
|
|
3
4
|
import { TimestreamWriteClient } from "../TimestreamWriteClient";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTablesCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listTables.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof TimestreamWrite) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof TimestreamWriteClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected TimestreamWrite | TimestreamWriteClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListTables(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListTables_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof TimestreamWrite)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof TimestreamWriteClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected TimestreamWrite | TimestreamWriteClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|