@aws-sdk/client-timestream-write 3.899.0 → 3.906.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/index.js +1393 -1562
- package/package.json +39 -39
package/dist-cjs/index.js
CHANGED
|
@@ -1,1622 +1,1453 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
DescribeBatchLoadTaskCommand: () => DescribeBatchLoadTaskCommand,
|
|
35
|
-
DescribeDatabaseCommand: () => DescribeDatabaseCommand,
|
|
36
|
-
DescribeEndpointsCommand: () => DescribeEndpointsCommand,
|
|
37
|
-
DescribeTableCommand: () => DescribeTableCommand,
|
|
38
|
-
DimensionValueType: () => DimensionValueType,
|
|
39
|
-
InternalServerException: () => InternalServerException,
|
|
40
|
-
InvalidEndpointException: () => InvalidEndpointException,
|
|
41
|
-
ListBatchLoadTasksCommand: () => ListBatchLoadTasksCommand,
|
|
42
|
-
ListDatabasesCommand: () => ListDatabasesCommand,
|
|
43
|
-
ListTablesCommand: () => ListTablesCommand,
|
|
44
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
45
|
-
MeasureValueType: () => MeasureValueType,
|
|
46
|
-
PartitionKeyEnforcementLevel: () => PartitionKeyEnforcementLevel,
|
|
47
|
-
PartitionKeyType: () => PartitionKeyType,
|
|
48
|
-
RejectedRecordsException: () => RejectedRecordsException,
|
|
49
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
50
|
-
ResumeBatchLoadTaskCommand: () => ResumeBatchLoadTaskCommand,
|
|
51
|
-
S3EncryptionOption: () => S3EncryptionOption,
|
|
52
|
-
ScalarMeasureValueType: () => ScalarMeasureValueType,
|
|
53
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
54
|
-
TableStatus: () => TableStatus,
|
|
55
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
56
|
-
ThrottlingException: () => ThrottlingException,
|
|
57
|
-
TimeUnit: () => TimeUnit,
|
|
58
|
-
TimestreamWrite: () => TimestreamWrite,
|
|
59
|
-
TimestreamWriteClient: () => TimestreamWriteClient,
|
|
60
|
-
TimestreamWriteServiceException: () => TimestreamWriteServiceException,
|
|
61
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
62
|
-
UpdateDatabaseCommand: () => UpdateDatabaseCommand,
|
|
63
|
-
UpdateTableCommand: () => UpdateTableCommand,
|
|
64
|
-
ValidationException: () => ValidationException,
|
|
65
|
-
WriteRecordsCommand: () => WriteRecordsCommand,
|
|
66
|
-
__Client: () => import_smithy_client.Client,
|
|
67
|
-
paginateListBatchLoadTasks: () => paginateListBatchLoadTasks,
|
|
68
|
-
paginateListDatabases: () => paginateListDatabases,
|
|
69
|
-
paginateListTables: () => paginateListTables
|
|
70
|
-
});
|
|
71
|
-
module.exports = __toCommonJS(index_exports);
|
|
72
|
-
|
|
73
|
-
// src/TimestreamWriteClient.ts
|
|
74
|
-
var import_middleware_endpoint_discovery = require("@aws-sdk/middleware-endpoint-discovery");
|
|
75
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
76
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
77
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
78
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
79
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
80
|
-
var import_core2 = require("@smithy/core");
|
|
81
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
82
|
-
|
|
83
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
84
|
-
|
|
85
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
86
|
-
|
|
87
|
-
// src/commands/DescribeEndpointsCommand.ts
|
|
88
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
89
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
// src/endpoint/EndpointParameters.ts
|
|
93
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
94
|
-
return Object.assign(options, {
|
|
95
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
96
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
97
|
-
defaultSigningName: "timestream"
|
|
98
|
-
});
|
|
99
|
-
}, "resolveClientEndpointParameters");
|
|
100
|
-
var commonParams = {
|
|
101
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
102
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
103
|
-
Region: { type: "builtInParams", name: "region" },
|
|
104
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareEndpointDiscovery = require('@aws-sdk/middleware-endpoint-discovery');
|
|
4
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
5
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
6
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
7
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
8
|
+
var configResolver = require('@smithy/config-resolver');
|
|
9
|
+
var core$1 = require('@smithy/core');
|
|
10
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
11
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
12
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
13
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
14
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
15
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
16
|
+
var core = require('@aws-sdk/core');
|
|
17
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
18
|
+
var uuid = require('@smithy/uuid');
|
|
19
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
20
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
21
|
+
|
|
22
|
+
const resolveClientEndpointParameters = (options) => {
|
|
23
|
+
return Object.assign(options, {
|
|
24
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
25
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
26
|
+
defaultSigningName: "timestream",
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
const commonParams = {
|
|
30
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
31
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
32
|
+
Region: { type: "builtInParams", name: "region" },
|
|
33
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
105
34
|
};
|
|
106
35
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
// src/models/models_0.ts
|
|
114
|
-
|
|
36
|
+
class TimestreamWriteServiceException extends smithyClient.ServiceException {
|
|
37
|
+
constructor(options) {
|
|
38
|
+
super(options);
|
|
39
|
+
Object.setPrototypeOf(this, TimestreamWriteServiceException.prototype);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
115
42
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
43
|
+
class AccessDeniedException extends TimestreamWriteServiceException {
|
|
44
|
+
name = "AccessDeniedException";
|
|
45
|
+
$fault = "client";
|
|
46
|
+
Message;
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "AccessDeniedException",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
54
|
+
this.Message = opts.Message;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const BatchLoadDataFormat = {
|
|
58
|
+
CSV: "CSV",
|
|
59
|
+
};
|
|
60
|
+
const BatchLoadStatus = {
|
|
61
|
+
CREATED: "CREATED",
|
|
62
|
+
FAILED: "FAILED",
|
|
63
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
64
|
+
PENDING_RESUME: "PENDING_RESUME",
|
|
65
|
+
PROGRESS_STOPPED: "PROGRESS_STOPPED",
|
|
66
|
+
SUCCEEDED: "SUCCEEDED",
|
|
67
|
+
};
|
|
68
|
+
const MeasureValueType = {
|
|
69
|
+
BIGINT: "BIGINT",
|
|
70
|
+
BOOLEAN: "BOOLEAN",
|
|
71
|
+
DOUBLE: "DOUBLE",
|
|
72
|
+
MULTI: "MULTI",
|
|
73
|
+
TIMESTAMP: "TIMESTAMP",
|
|
74
|
+
VARCHAR: "VARCHAR",
|
|
75
|
+
};
|
|
76
|
+
const ScalarMeasureValueType = {
|
|
77
|
+
BIGINT: "BIGINT",
|
|
78
|
+
BOOLEAN: "BOOLEAN",
|
|
79
|
+
DOUBLE: "DOUBLE",
|
|
80
|
+
TIMESTAMP: "TIMESTAMP",
|
|
81
|
+
VARCHAR: "VARCHAR",
|
|
82
|
+
};
|
|
83
|
+
const TimeUnit = {
|
|
84
|
+
MICROSECONDS: "MICROSECONDS",
|
|
85
|
+
MILLISECONDS: "MILLISECONDS",
|
|
86
|
+
NANOSECONDS: "NANOSECONDS",
|
|
87
|
+
SECONDS: "SECONDS",
|
|
88
|
+
};
|
|
89
|
+
const S3EncryptionOption = {
|
|
90
|
+
SSE_KMS: "SSE_KMS",
|
|
91
|
+
SSE_S3: "SSE_S3",
|
|
92
|
+
};
|
|
93
|
+
class ConflictException extends TimestreamWriteServiceException {
|
|
94
|
+
name = "ConflictException";
|
|
95
|
+
$fault = "client";
|
|
96
|
+
Message;
|
|
97
|
+
constructor(opts) {
|
|
98
|
+
super({
|
|
99
|
+
name: "ConflictException",
|
|
100
|
+
$fault: "client",
|
|
101
|
+
...opts,
|
|
102
|
+
});
|
|
103
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
104
|
+
this.Message = opts.Message;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
class InternalServerException extends TimestreamWriteServiceException {
|
|
108
|
+
name = "InternalServerException";
|
|
109
|
+
$fault = "server";
|
|
110
|
+
Message;
|
|
111
|
+
constructor(opts) {
|
|
112
|
+
super({
|
|
113
|
+
name: "InternalServerException",
|
|
114
|
+
$fault: "server",
|
|
115
|
+
...opts,
|
|
116
|
+
});
|
|
117
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
118
|
+
this.Message = opts.Message;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
class InvalidEndpointException extends TimestreamWriteServiceException {
|
|
122
|
+
name = "InvalidEndpointException";
|
|
123
|
+
$fault = "client";
|
|
124
|
+
Message;
|
|
125
|
+
constructor(opts) {
|
|
126
|
+
super({
|
|
127
|
+
name: "InvalidEndpointException",
|
|
128
|
+
$fault: "client",
|
|
129
|
+
...opts,
|
|
130
|
+
});
|
|
131
|
+
Object.setPrototypeOf(this, InvalidEndpointException.prototype);
|
|
132
|
+
this.Message = opts.Message;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
class ResourceNotFoundException extends TimestreamWriteServiceException {
|
|
136
|
+
name = "ResourceNotFoundException";
|
|
137
|
+
$fault = "client";
|
|
138
|
+
Message;
|
|
139
|
+
constructor(opts) {
|
|
140
|
+
super({
|
|
141
|
+
name: "ResourceNotFoundException",
|
|
142
|
+
$fault: "client",
|
|
143
|
+
...opts,
|
|
144
|
+
});
|
|
145
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
146
|
+
this.Message = opts.Message;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
class ServiceQuotaExceededException extends TimestreamWriteServiceException {
|
|
150
|
+
name = "ServiceQuotaExceededException";
|
|
151
|
+
$fault = "client";
|
|
152
|
+
Message;
|
|
153
|
+
constructor(opts) {
|
|
154
|
+
super({
|
|
155
|
+
name: "ServiceQuotaExceededException",
|
|
156
|
+
$fault: "client",
|
|
157
|
+
...opts,
|
|
158
|
+
});
|
|
159
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
160
|
+
this.Message = opts.Message;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
class ThrottlingException extends TimestreamWriteServiceException {
|
|
164
|
+
name = "ThrottlingException";
|
|
165
|
+
$fault = "client";
|
|
166
|
+
Message;
|
|
167
|
+
constructor(opts) {
|
|
168
|
+
super({
|
|
169
|
+
name: "ThrottlingException",
|
|
170
|
+
$fault: "client",
|
|
171
|
+
...opts,
|
|
172
|
+
});
|
|
173
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
174
|
+
this.Message = opts.Message;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
class ValidationException extends TimestreamWriteServiceException {
|
|
178
|
+
name = "ValidationException";
|
|
179
|
+
$fault = "client";
|
|
180
|
+
Message;
|
|
181
|
+
constructor(opts) {
|
|
182
|
+
super({
|
|
183
|
+
name: "ValidationException",
|
|
184
|
+
$fault: "client",
|
|
185
|
+
...opts,
|
|
186
|
+
});
|
|
187
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
188
|
+
this.Message = opts.Message;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
const PartitionKeyEnforcementLevel = {
|
|
192
|
+
OPTIONAL: "OPTIONAL",
|
|
193
|
+
REQUIRED: "REQUIRED",
|
|
194
|
+
};
|
|
195
|
+
const PartitionKeyType = {
|
|
196
|
+
DIMENSION: "DIMENSION",
|
|
197
|
+
MEASURE: "MEASURE",
|
|
198
|
+
};
|
|
199
|
+
const TableStatus = {
|
|
200
|
+
ACTIVE: "ACTIVE",
|
|
201
|
+
DELETING: "DELETING",
|
|
202
|
+
RESTORING: "RESTORING",
|
|
129
203
|
};
|
|
204
|
+
const DimensionValueType = {
|
|
205
|
+
VARCHAR: "VARCHAR",
|
|
206
|
+
};
|
|
207
|
+
class RejectedRecordsException extends TimestreamWriteServiceException {
|
|
208
|
+
name = "RejectedRecordsException";
|
|
209
|
+
$fault = "client";
|
|
210
|
+
Message;
|
|
211
|
+
RejectedRecords;
|
|
212
|
+
constructor(opts) {
|
|
213
|
+
super({
|
|
214
|
+
name: "RejectedRecordsException",
|
|
215
|
+
$fault: "client",
|
|
216
|
+
...opts,
|
|
217
|
+
});
|
|
218
|
+
Object.setPrototypeOf(this, RejectedRecordsException.prototype);
|
|
219
|
+
this.Message = opts.Message;
|
|
220
|
+
this.RejectedRecords = opts.RejectedRecords;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
const CreateBatchLoadTaskRequestFilterSensitiveLog = (obj) => ({
|
|
224
|
+
...obj,
|
|
225
|
+
...(obj.ClientToken && { ClientToken: smithyClient.SENSITIVE_STRING }),
|
|
226
|
+
});
|
|
130
227
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
228
|
+
const se_CreateBatchLoadTaskCommand = async (input, context) => {
|
|
229
|
+
const headers = sharedHeaders("CreateBatchLoadTask");
|
|
230
|
+
let body;
|
|
231
|
+
body = JSON.stringify(se_CreateBatchLoadTaskRequest(input));
|
|
232
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
+
};
|
|
234
|
+
const se_CreateDatabaseCommand = async (input, context) => {
|
|
235
|
+
const headers = sharedHeaders("CreateDatabase");
|
|
236
|
+
let body;
|
|
237
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
238
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
+
};
|
|
240
|
+
const se_CreateTableCommand = async (input, context) => {
|
|
241
|
+
const headers = sharedHeaders("CreateTable");
|
|
242
|
+
let body;
|
|
243
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
244
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
+
};
|
|
246
|
+
const se_DeleteDatabaseCommand = async (input, context) => {
|
|
247
|
+
const headers = sharedHeaders("DeleteDatabase");
|
|
248
|
+
let body;
|
|
249
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
250
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
251
|
+
};
|
|
252
|
+
const se_DeleteTableCommand = async (input, context) => {
|
|
253
|
+
const headers = sharedHeaders("DeleteTable");
|
|
254
|
+
let body;
|
|
255
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
256
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
|
+
};
|
|
258
|
+
const se_DescribeBatchLoadTaskCommand = async (input, context) => {
|
|
259
|
+
const headers = sharedHeaders("DescribeBatchLoadTask");
|
|
260
|
+
let body;
|
|
261
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
262
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
263
|
+
};
|
|
264
|
+
const se_DescribeDatabaseCommand = async (input, context) => {
|
|
265
|
+
const headers = sharedHeaders("DescribeDatabase");
|
|
266
|
+
let body;
|
|
267
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
268
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
|
+
};
|
|
270
|
+
const se_DescribeEndpointsCommand = async (input, context) => {
|
|
271
|
+
const headers = sharedHeaders("DescribeEndpoints");
|
|
272
|
+
let body;
|
|
273
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
274
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
+
};
|
|
276
|
+
const se_DescribeTableCommand = async (input, context) => {
|
|
277
|
+
const headers = sharedHeaders("DescribeTable");
|
|
278
|
+
let body;
|
|
279
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
280
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
|
+
};
|
|
282
|
+
const se_ListBatchLoadTasksCommand = async (input, context) => {
|
|
283
|
+
const headers = sharedHeaders("ListBatchLoadTasks");
|
|
284
|
+
let body;
|
|
285
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
286
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
|
+
};
|
|
288
|
+
const se_ListDatabasesCommand = async (input, context) => {
|
|
289
|
+
const headers = sharedHeaders("ListDatabases");
|
|
290
|
+
let body;
|
|
291
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
292
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
|
+
};
|
|
294
|
+
const se_ListTablesCommand = async (input, context) => {
|
|
295
|
+
const headers = sharedHeaders("ListTables");
|
|
296
|
+
let body;
|
|
297
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
298
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
299
|
+
};
|
|
300
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
301
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
302
|
+
let body;
|
|
303
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
304
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
|
+
};
|
|
306
|
+
const se_ResumeBatchLoadTaskCommand = async (input, context) => {
|
|
307
|
+
const headers = sharedHeaders("ResumeBatchLoadTask");
|
|
308
|
+
let body;
|
|
309
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
310
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
311
|
+
};
|
|
312
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
313
|
+
const headers = sharedHeaders("TagResource");
|
|
314
|
+
let body;
|
|
315
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
316
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
+
};
|
|
318
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
319
|
+
const headers = sharedHeaders("UntagResource");
|
|
320
|
+
let body;
|
|
321
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
322
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
323
|
+
};
|
|
324
|
+
const se_UpdateDatabaseCommand = async (input, context) => {
|
|
325
|
+
const headers = sharedHeaders("UpdateDatabase");
|
|
326
|
+
let body;
|
|
327
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
328
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
|
+
};
|
|
330
|
+
const se_UpdateTableCommand = async (input, context) => {
|
|
331
|
+
const headers = sharedHeaders("UpdateTable");
|
|
332
|
+
let body;
|
|
333
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
334
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
335
|
+
};
|
|
336
|
+
const se_WriteRecordsCommand = async (input, context) => {
|
|
337
|
+
const headers = sharedHeaders("WriteRecords");
|
|
338
|
+
let body;
|
|
339
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
340
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
341
|
+
};
|
|
342
|
+
const de_CreateBatchLoadTaskCommand = async (output, context) => {
|
|
343
|
+
if (output.statusCode >= 300) {
|
|
344
|
+
return de_CommandError(output, context);
|
|
345
|
+
}
|
|
346
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
347
|
+
let contents = {};
|
|
348
|
+
contents = smithyClient._json(data);
|
|
349
|
+
const response = {
|
|
350
|
+
$metadata: deserializeMetadata(output),
|
|
351
|
+
...contents,
|
|
352
|
+
};
|
|
353
|
+
return response;
|
|
354
|
+
};
|
|
355
|
+
const de_CreateDatabaseCommand = async (output, context) => {
|
|
356
|
+
if (output.statusCode >= 300) {
|
|
357
|
+
return de_CommandError(output, context);
|
|
358
|
+
}
|
|
359
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
360
|
+
let contents = {};
|
|
361
|
+
contents = de_CreateDatabaseResponse(data);
|
|
362
|
+
const response = {
|
|
363
|
+
$metadata: deserializeMetadata(output),
|
|
364
|
+
...contents,
|
|
365
|
+
};
|
|
366
|
+
return response;
|
|
367
|
+
};
|
|
368
|
+
const de_CreateTableCommand = async (output, context) => {
|
|
369
|
+
if (output.statusCode >= 300) {
|
|
370
|
+
return de_CommandError(output, context);
|
|
371
|
+
}
|
|
372
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
373
|
+
let contents = {};
|
|
374
|
+
contents = de_CreateTableResponse(data);
|
|
375
|
+
const response = {
|
|
376
|
+
$metadata: deserializeMetadata(output),
|
|
377
|
+
...contents,
|
|
378
|
+
};
|
|
379
|
+
return response;
|
|
380
|
+
};
|
|
381
|
+
const de_DeleteDatabaseCommand = async (output, context) => {
|
|
382
|
+
if (output.statusCode >= 300) {
|
|
383
|
+
return de_CommandError(output, context);
|
|
384
|
+
}
|
|
385
|
+
await smithyClient.collectBody(output.body, context);
|
|
386
|
+
const response = {
|
|
387
|
+
$metadata: deserializeMetadata(output),
|
|
388
|
+
};
|
|
389
|
+
return response;
|
|
390
|
+
};
|
|
391
|
+
const de_DeleteTableCommand = async (output, context) => {
|
|
392
|
+
if (output.statusCode >= 300) {
|
|
393
|
+
return de_CommandError(output, context);
|
|
394
|
+
}
|
|
395
|
+
await smithyClient.collectBody(output.body, context);
|
|
396
|
+
const response = {
|
|
397
|
+
$metadata: deserializeMetadata(output),
|
|
398
|
+
};
|
|
399
|
+
return response;
|
|
400
|
+
};
|
|
401
|
+
const de_DescribeBatchLoadTaskCommand = async (output, context) => {
|
|
402
|
+
if (output.statusCode >= 300) {
|
|
403
|
+
return de_CommandError(output, context);
|
|
404
|
+
}
|
|
405
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
406
|
+
let contents = {};
|
|
407
|
+
contents = de_DescribeBatchLoadTaskResponse(data);
|
|
408
|
+
const response = {
|
|
409
|
+
$metadata: deserializeMetadata(output),
|
|
410
|
+
...contents,
|
|
411
|
+
};
|
|
412
|
+
return response;
|
|
413
|
+
};
|
|
414
|
+
const de_DescribeDatabaseCommand = async (output, context) => {
|
|
415
|
+
if (output.statusCode >= 300) {
|
|
416
|
+
return de_CommandError(output, context);
|
|
417
|
+
}
|
|
418
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
419
|
+
let contents = {};
|
|
420
|
+
contents = de_DescribeDatabaseResponse(data);
|
|
421
|
+
const response = {
|
|
422
|
+
$metadata: deserializeMetadata(output),
|
|
423
|
+
...contents,
|
|
424
|
+
};
|
|
425
|
+
return response;
|
|
426
|
+
};
|
|
427
|
+
const de_DescribeEndpointsCommand = async (output, context) => {
|
|
428
|
+
if (output.statusCode >= 300) {
|
|
429
|
+
return de_CommandError(output, context);
|
|
430
|
+
}
|
|
431
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
432
|
+
let contents = {};
|
|
433
|
+
contents = smithyClient._json(data);
|
|
434
|
+
const response = {
|
|
435
|
+
$metadata: deserializeMetadata(output),
|
|
436
|
+
...contents,
|
|
437
|
+
};
|
|
438
|
+
return response;
|
|
439
|
+
};
|
|
440
|
+
const de_DescribeTableCommand = async (output, context) => {
|
|
441
|
+
if (output.statusCode >= 300) {
|
|
442
|
+
return de_CommandError(output, context);
|
|
443
|
+
}
|
|
444
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
445
|
+
let contents = {};
|
|
446
|
+
contents = de_DescribeTableResponse(data);
|
|
447
|
+
const response = {
|
|
448
|
+
$metadata: deserializeMetadata(output),
|
|
449
|
+
...contents,
|
|
450
|
+
};
|
|
451
|
+
return response;
|
|
452
|
+
};
|
|
453
|
+
const de_ListBatchLoadTasksCommand = async (output, context) => {
|
|
454
|
+
if (output.statusCode >= 300) {
|
|
455
|
+
return de_CommandError(output, context);
|
|
456
|
+
}
|
|
457
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
458
|
+
let contents = {};
|
|
459
|
+
contents = de_ListBatchLoadTasksResponse(data);
|
|
460
|
+
const response = {
|
|
461
|
+
$metadata: deserializeMetadata(output),
|
|
462
|
+
...contents,
|
|
463
|
+
};
|
|
464
|
+
return response;
|
|
465
|
+
};
|
|
466
|
+
const de_ListDatabasesCommand = async (output, context) => {
|
|
467
|
+
if (output.statusCode >= 300) {
|
|
468
|
+
return de_CommandError(output, context);
|
|
469
|
+
}
|
|
470
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
471
|
+
let contents = {};
|
|
472
|
+
contents = de_ListDatabasesResponse(data);
|
|
473
|
+
const response = {
|
|
474
|
+
$metadata: deserializeMetadata(output),
|
|
475
|
+
...contents,
|
|
476
|
+
};
|
|
477
|
+
return response;
|
|
478
|
+
};
|
|
479
|
+
const de_ListTablesCommand = async (output, context) => {
|
|
480
|
+
if (output.statusCode >= 300) {
|
|
481
|
+
return de_CommandError(output, context);
|
|
482
|
+
}
|
|
483
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
484
|
+
let contents = {};
|
|
485
|
+
contents = de_ListTablesResponse(data);
|
|
486
|
+
const response = {
|
|
487
|
+
$metadata: deserializeMetadata(output),
|
|
488
|
+
...contents,
|
|
489
|
+
};
|
|
490
|
+
return response;
|
|
491
|
+
};
|
|
492
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
493
|
+
if (output.statusCode >= 300) {
|
|
494
|
+
return de_CommandError(output, context);
|
|
495
|
+
}
|
|
496
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
497
|
+
let contents = {};
|
|
498
|
+
contents = smithyClient._json(data);
|
|
499
|
+
const response = {
|
|
500
|
+
$metadata: deserializeMetadata(output),
|
|
501
|
+
...contents,
|
|
502
|
+
};
|
|
503
|
+
return response;
|
|
504
|
+
};
|
|
505
|
+
const de_ResumeBatchLoadTaskCommand = async (output, context) => {
|
|
506
|
+
if (output.statusCode >= 300) {
|
|
507
|
+
return de_CommandError(output, context);
|
|
508
|
+
}
|
|
509
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
510
|
+
let contents = {};
|
|
511
|
+
contents = smithyClient._json(data);
|
|
512
|
+
const response = {
|
|
513
|
+
$metadata: deserializeMetadata(output),
|
|
514
|
+
...contents,
|
|
515
|
+
};
|
|
516
|
+
return response;
|
|
517
|
+
};
|
|
518
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
519
|
+
if (output.statusCode >= 300) {
|
|
520
|
+
return de_CommandError(output, context);
|
|
521
|
+
}
|
|
522
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
523
|
+
let contents = {};
|
|
524
|
+
contents = smithyClient._json(data);
|
|
525
|
+
const response = {
|
|
526
|
+
$metadata: deserializeMetadata(output),
|
|
527
|
+
...contents,
|
|
528
|
+
};
|
|
529
|
+
return response;
|
|
530
|
+
};
|
|
531
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
532
|
+
if (output.statusCode >= 300) {
|
|
533
|
+
return de_CommandError(output, context);
|
|
534
|
+
}
|
|
535
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
536
|
+
let contents = {};
|
|
537
|
+
contents = smithyClient._json(data);
|
|
538
|
+
const response = {
|
|
539
|
+
$metadata: deserializeMetadata(output),
|
|
540
|
+
...contents,
|
|
541
|
+
};
|
|
542
|
+
return response;
|
|
543
|
+
};
|
|
544
|
+
const de_UpdateDatabaseCommand = async (output, context) => {
|
|
545
|
+
if (output.statusCode >= 300) {
|
|
546
|
+
return de_CommandError(output, context);
|
|
547
|
+
}
|
|
548
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
549
|
+
let contents = {};
|
|
550
|
+
contents = de_UpdateDatabaseResponse(data);
|
|
551
|
+
const response = {
|
|
552
|
+
$metadata: deserializeMetadata(output),
|
|
553
|
+
...contents,
|
|
554
|
+
};
|
|
555
|
+
return response;
|
|
556
|
+
};
|
|
557
|
+
const de_UpdateTableCommand = async (output, context) => {
|
|
558
|
+
if (output.statusCode >= 300) {
|
|
559
|
+
return de_CommandError(output, context);
|
|
560
|
+
}
|
|
561
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
562
|
+
let contents = {};
|
|
563
|
+
contents = de_UpdateTableResponse(data);
|
|
564
|
+
const response = {
|
|
565
|
+
$metadata: deserializeMetadata(output),
|
|
566
|
+
...contents,
|
|
567
|
+
};
|
|
568
|
+
return response;
|
|
569
|
+
};
|
|
570
|
+
const de_WriteRecordsCommand = async (output, context) => {
|
|
571
|
+
if (output.statusCode >= 300) {
|
|
572
|
+
return de_CommandError(output, context);
|
|
573
|
+
}
|
|
574
|
+
const data = await core.parseJsonBody(output.body, context);
|
|
575
|
+
let contents = {};
|
|
576
|
+
contents = smithyClient._json(data);
|
|
577
|
+
const response = {
|
|
578
|
+
$metadata: deserializeMetadata(output),
|
|
579
|
+
...contents,
|
|
580
|
+
};
|
|
581
|
+
return response;
|
|
582
|
+
};
|
|
583
|
+
const de_CommandError = async (output, context) => {
|
|
584
|
+
const parsedOutput = {
|
|
585
|
+
...output,
|
|
586
|
+
body: await core.parseJsonErrorBody(output.body, context),
|
|
587
|
+
};
|
|
588
|
+
const errorCode = core.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
589
|
+
switch (errorCode) {
|
|
590
|
+
case "AccessDeniedException":
|
|
591
|
+
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
592
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
593
|
+
case "ConflictException":
|
|
594
|
+
case "com.amazonaws.timestreamwrite#ConflictException":
|
|
595
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
596
|
+
case "InternalServerException":
|
|
597
|
+
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
598
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
599
|
+
case "InvalidEndpointException":
|
|
600
|
+
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
601
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput);
|
|
602
|
+
case "ResourceNotFoundException":
|
|
603
|
+
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
604
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
605
|
+
case "ServiceQuotaExceededException":
|
|
606
|
+
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
607
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
608
|
+
case "ThrottlingException":
|
|
609
|
+
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
610
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
611
|
+
case "ValidationException":
|
|
612
|
+
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
613
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
614
|
+
case "RejectedRecordsException":
|
|
615
|
+
case "com.amazonaws.timestreamwrite#RejectedRecordsException":
|
|
616
|
+
throw await de_RejectedRecordsExceptionRes(parsedOutput);
|
|
617
|
+
default:
|
|
618
|
+
const parsedBody = parsedOutput.body;
|
|
619
|
+
return throwDefaultError({
|
|
620
|
+
output,
|
|
621
|
+
parsedBody,
|
|
622
|
+
errorCode,
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
627
|
+
const body = parsedOutput.body;
|
|
628
|
+
const deserialized = smithyClient._json(body);
|
|
629
|
+
const exception = new AccessDeniedException({
|
|
630
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
631
|
+
...deserialized,
|
|
147
632
|
});
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
CREATED: "CREATED",
|
|
157
|
-
FAILED: "FAILED",
|
|
158
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
159
|
-
PENDING_RESUME: "PENDING_RESUME",
|
|
160
|
-
PROGRESS_STOPPED: "PROGRESS_STOPPED",
|
|
161
|
-
SUCCEEDED: "SUCCEEDED"
|
|
162
|
-
};
|
|
163
|
-
var MeasureValueType = {
|
|
164
|
-
BIGINT: "BIGINT",
|
|
165
|
-
BOOLEAN: "BOOLEAN",
|
|
166
|
-
DOUBLE: "DOUBLE",
|
|
167
|
-
MULTI: "MULTI",
|
|
168
|
-
TIMESTAMP: "TIMESTAMP",
|
|
169
|
-
VARCHAR: "VARCHAR"
|
|
170
|
-
};
|
|
171
|
-
var ScalarMeasureValueType = {
|
|
172
|
-
BIGINT: "BIGINT",
|
|
173
|
-
BOOLEAN: "BOOLEAN",
|
|
174
|
-
DOUBLE: "DOUBLE",
|
|
175
|
-
TIMESTAMP: "TIMESTAMP",
|
|
176
|
-
VARCHAR: "VARCHAR"
|
|
177
|
-
};
|
|
178
|
-
var TimeUnit = {
|
|
179
|
-
MICROSECONDS: "MICROSECONDS",
|
|
180
|
-
MILLISECONDS: "MILLISECONDS",
|
|
181
|
-
NANOSECONDS: "NANOSECONDS",
|
|
182
|
-
SECONDS: "SECONDS"
|
|
183
|
-
};
|
|
184
|
-
var S3EncryptionOption = {
|
|
185
|
-
SSE_KMS: "SSE_KMS",
|
|
186
|
-
SSE_S3: "SSE_S3"
|
|
187
|
-
};
|
|
188
|
-
var ConflictException = class _ConflictException extends TimestreamWriteServiceException {
|
|
189
|
-
static {
|
|
190
|
-
__name(this, "ConflictException");
|
|
191
|
-
}
|
|
192
|
-
name = "ConflictException";
|
|
193
|
-
$fault = "client";
|
|
194
|
-
Message;
|
|
195
|
-
/**
|
|
196
|
-
* @internal
|
|
197
|
-
*/
|
|
198
|
-
constructor(opts) {
|
|
199
|
-
super({
|
|
200
|
-
name: "ConflictException",
|
|
201
|
-
$fault: "client",
|
|
202
|
-
...opts
|
|
633
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
634
|
+
};
|
|
635
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
636
|
+
const body = parsedOutput.body;
|
|
637
|
+
const deserialized = smithyClient._json(body);
|
|
638
|
+
const exception = new ConflictException({
|
|
639
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
640
|
+
...deserialized,
|
|
203
641
|
});
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
name = "InternalServerException";
|
|
213
|
-
$fault = "server";
|
|
214
|
-
Message;
|
|
215
|
-
/**
|
|
216
|
-
* @internal
|
|
217
|
-
*/
|
|
218
|
-
constructor(opts) {
|
|
219
|
-
super({
|
|
220
|
-
name: "InternalServerException",
|
|
221
|
-
$fault: "server",
|
|
222
|
-
...opts
|
|
642
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
643
|
+
};
|
|
644
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
645
|
+
const body = parsedOutput.body;
|
|
646
|
+
const deserialized = smithyClient._json(body);
|
|
647
|
+
const exception = new InternalServerException({
|
|
648
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
649
|
+
...deserialized,
|
|
223
650
|
});
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
name = "InvalidEndpointException";
|
|
233
|
-
$fault = "client";
|
|
234
|
-
Message;
|
|
235
|
-
/**
|
|
236
|
-
* @internal
|
|
237
|
-
*/
|
|
238
|
-
constructor(opts) {
|
|
239
|
-
super({
|
|
240
|
-
name: "InvalidEndpointException",
|
|
241
|
-
$fault: "client",
|
|
242
|
-
...opts
|
|
651
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
652
|
+
};
|
|
653
|
+
const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
|
|
654
|
+
const body = parsedOutput.body;
|
|
655
|
+
const deserialized = smithyClient._json(body);
|
|
656
|
+
const exception = new InvalidEndpointException({
|
|
657
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
658
|
+
...deserialized,
|
|
243
659
|
});
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
name = "ResourceNotFoundException";
|
|
253
|
-
$fault = "client";
|
|
254
|
-
Message;
|
|
255
|
-
/**
|
|
256
|
-
* @internal
|
|
257
|
-
*/
|
|
258
|
-
constructor(opts) {
|
|
259
|
-
super({
|
|
260
|
-
name: "ResourceNotFoundException",
|
|
261
|
-
$fault: "client",
|
|
262
|
-
...opts
|
|
660
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
661
|
+
};
|
|
662
|
+
const de_RejectedRecordsExceptionRes = async (parsedOutput, context) => {
|
|
663
|
+
const body = parsedOutput.body;
|
|
664
|
+
const deserialized = smithyClient._json(body);
|
|
665
|
+
const exception = new RejectedRecordsException({
|
|
666
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
667
|
+
...deserialized,
|
|
263
668
|
});
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
name = "ServiceQuotaExceededException";
|
|
273
|
-
$fault = "client";
|
|
274
|
-
Message;
|
|
275
|
-
/**
|
|
276
|
-
* @internal
|
|
277
|
-
*/
|
|
278
|
-
constructor(opts) {
|
|
279
|
-
super({
|
|
280
|
-
name: "ServiceQuotaExceededException",
|
|
281
|
-
$fault: "client",
|
|
282
|
-
...opts
|
|
669
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
670
|
+
};
|
|
671
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
672
|
+
const body = parsedOutput.body;
|
|
673
|
+
const deserialized = smithyClient._json(body);
|
|
674
|
+
const exception = new ResourceNotFoundException({
|
|
675
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
676
|
+
...deserialized,
|
|
283
677
|
});
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
name = "ThrottlingException";
|
|
293
|
-
$fault = "client";
|
|
294
|
-
Message;
|
|
295
|
-
/**
|
|
296
|
-
* @internal
|
|
297
|
-
*/
|
|
298
|
-
constructor(opts) {
|
|
299
|
-
super({
|
|
300
|
-
name: "ThrottlingException",
|
|
301
|
-
$fault: "client",
|
|
302
|
-
...opts
|
|
678
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
679
|
+
};
|
|
680
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
681
|
+
const body = parsedOutput.body;
|
|
682
|
+
const deserialized = smithyClient._json(body);
|
|
683
|
+
const exception = new ServiceQuotaExceededException({
|
|
684
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
685
|
+
...deserialized,
|
|
303
686
|
});
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
name = "ValidationException";
|
|
313
|
-
$fault = "client";
|
|
314
|
-
Message;
|
|
315
|
-
/**
|
|
316
|
-
* @internal
|
|
317
|
-
*/
|
|
318
|
-
constructor(opts) {
|
|
319
|
-
super({
|
|
320
|
-
name: "ValidationException",
|
|
321
|
-
$fault: "client",
|
|
322
|
-
...opts
|
|
687
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
688
|
+
};
|
|
689
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
690
|
+
const body = parsedOutput.body;
|
|
691
|
+
const deserialized = smithyClient._json(body);
|
|
692
|
+
const exception = new ThrottlingException({
|
|
693
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
694
|
+
...deserialized,
|
|
323
695
|
});
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
var PartitionKeyType = {
|
|
333
|
-
DIMENSION: "DIMENSION",
|
|
334
|
-
MEASURE: "MEASURE"
|
|
335
|
-
};
|
|
336
|
-
var TableStatus = {
|
|
337
|
-
ACTIVE: "ACTIVE",
|
|
338
|
-
DELETING: "DELETING",
|
|
339
|
-
RESTORING: "RESTORING"
|
|
340
|
-
};
|
|
341
|
-
var DimensionValueType = {
|
|
342
|
-
VARCHAR: "VARCHAR"
|
|
343
|
-
};
|
|
344
|
-
var RejectedRecordsException = class _RejectedRecordsException extends TimestreamWriteServiceException {
|
|
345
|
-
static {
|
|
346
|
-
__name(this, "RejectedRecordsException");
|
|
347
|
-
}
|
|
348
|
-
name = "RejectedRecordsException";
|
|
349
|
-
$fault = "client";
|
|
350
|
-
Message;
|
|
351
|
-
/**
|
|
352
|
-
* <p>
|
|
353
|
-
* </p>
|
|
354
|
-
* @public
|
|
355
|
-
*/
|
|
356
|
-
RejectedRecords;
|
|
357
|
-
/**
|
|
358
|
-
* @internal
|
|
359
|
-
*/
|
|
360
|
-
constructor(opts) {
|
|
361
|
-
super({
|
|
362
|
-
name: "RejectedRecordsException",
|
|
363
|
-
$fault: "client",
|
|
364
|
-
...opts
|
|
696
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
697
|
+
};
|
|
698
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
699
|
+
const body = parsedOutput.body;
|
|
700
|
+
const deserialized = smithyClient._json(body);
|
|
701
|
+
const exception = new ValidationException({
|
|
702
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
703
|
+
...deserialized,
|
|
365
704
|
});
|
|
366
|
-
|
|
367
|
-
this.Message = opts.Message;
|
|
368
|
-
this.RejectedRecords = opts.RejectedRecords;
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
|
-
var CreateBatchLoadTaskRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
372
|
-
...obj,
|
|
373
|
-
...obj.ClientToken && { ClientToken: import_smithy_client.SENSITIVE_STRING }
|
|
374
|
-
}), "CreateBatchLoadTaskRequestFilterSensitiveLog");
|
|
375
|
-
|
|
376
|
-
// src/protocols/Aws_json1_0.ts
|
|
377
|
-
var se_CreateBatchLoadTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
378
|
-
const headers = sharedHeaders("CreateBatchLoadTask");
|
|
379
|
-
let body;
|
|
380
|
-
body = JSON.stringify(se_CreateBatchLoadTaskRequest(input, context));
|
|
381
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
382
|
-
}, "se_CreateBatchLoadTaskCommand");
|
|
383
|
-
var se_CreateDatabaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
384
|
-
const headers = sharedHeaders("CreateDatabase");
|
|
385
|
-
let body;
|
|
386
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
387
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
388
|
-
}, "se_CreateDatabaseCommand");
|
|
389
|
-
var se_CreateTableCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
390
|
-
const headers = sharedHeaders("CreateTable");
|
|
391
|
-
let body;
|
|
392
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
393
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
394
|
-
}, "se_CreateTableCommand");
|
|
395
|
-
var se_DeleteDatabaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
396
|
-
const headers = sharedHeaders("DeleteDatabase");
|
|
397
|
-
let body;
|
|
398
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
399
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
400
|
-
}, "se_DeleteDatabaseCommand");
|
|
401
|
-
var se_DeleteTableCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
402
|
-
const headers = sharedHeaders("DeleteTable");
|
|
403
|
-
let body;
|
|
404
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
405
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
406
|
-
}, "se_DeleteTableCommand");
|
|
407
|
-
var se_DescribeBatchLoadTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
408
|
-
const headers = sharedHeaders("DescribeBatchLoadTask");
|
|
409
|
-
let body;
|
|
410
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
411
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
412
|
-
}, "se_DescribeBatchLoadTaskCommand");
|
|
413
|
-
var se_DescribeDatabaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
414
|
-
const headers = sharedHeaders("DescribeDatabase");
|
|
415
|
-
let body;
|
|
416
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
417
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
418
|
-
}, "se_DescribeDatabaseCommand");
|
|
419
|
-
var se_DescribeEndpointsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
420
|
-
const headers = sharedHeaders("DescribeEndpoints");
|
|
421
|
-
let body;
|
|
422
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
423
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
424
|
-
}, "se_DescribeEndpointsCommand");
|
|
425
|
-
var se_DescribeTableCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
426
|
-
const headers = sharedHeaders("DescribeTable");
|
|
427
|
-
let body;
|
|
428
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
429
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
430
|
-
}, "se_DescribeTableCommand");
|
|
431
|
-
var se_ListBatchLoadTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
432
|
-
const headers = sharedHeaders("ListBatchLoadTasks");
|
|
433
|
-
let body;
|
|
434
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
435
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
436
|
-
}, "se_ListBatchLoadTasksCommand");
|
|
437
|
-
var se_ListDatabasesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
438
|
-
const headers = sharedHeaders("ListDatabases");
|
|
439
|
-
let body;
|
|
440
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
441
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
442
|
-
}, "se_ListDatabasesCommand");
|
|
443
|
-
var se_ListTablesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
444
|
-
const headers = sharedHeaders("ListTables");
|
|
445
|
-
let body;
|
|
446
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
447
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
448
|
-
}, "se_ListTablesCommand");
|
|
449
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
450
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
451
|
-
let body;
|
|
452
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
453
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
454
|
-
}, "se_ListTagsForResourceCommand");
|
|
455
|
-
var se_ResumeBatchLoadTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
456
|
-
const headers = sharedHeaders("ResumeBatchLoadTask");
|
|
457
|
-
let body;
|
|
458
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
459
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
460
|
-
}, "se_ResumeBatchLoadTaskCommand");
|
|
461
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
462
|
-
const headers = sharedHeaders("TagResource");
|
|
463
|
-
let body;
|
|
464
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
465
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
466
|
-
}, "se_TagResourceCommand");
|
|
467
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
468
|
-
const headers = sharedHeaders("UntagResource");
|
|
469
|
-
let body;
|
|
470
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
471
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
472
|
-
}, "se_UntagResourceCommand");
|
|
473
|
-
var se_UpdateDatabaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
474
|
-
const headers = sharedHeaders("UpdateDatabase");
|
|
475
|
-
let body;
|
|
476
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
477
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
478
|
-
}, "se_UpdateDatabaseCommand");
|
|
479
|
-
var se_UpdateTableCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
480
|
-
const headers = sharedHeaders("UpdateTable");
|
|
481
|
-
let body;
|
|
482
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
483
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
484
|
-
}, "se_UpdateTableCommand");
|
|
485
|
-
var se_WriteRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
486
|
-
const headers = sharedHeaders("WriteRecords");
|
|
487
|
-
let body;
|
|
488
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
489
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
490
|
-
}, "se_WriteRecordsCommand");
|
|
491
|
-
var de_CreateBatchLoadTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
492
|
-
if (output.statusCode >= 300) {
|
|
493
|
-
return de_CommandError(output, context);
|
|
494
|
-
}
|
|
495
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
496
|
-
let contents = {};
|
|
497
|
-
contents = (0, import_smithy_client._json)(data);
|
|
498
|
-
const response = {
|
|
499
|
-
$metadata: deserializeMetadata(output),
|
|
500
|
-
...contents
|
|
501
|
-
};
|
|
502
|
-
return response;
|
|
503
|
-
}, "de_CreateBatchLoadTaskCommand");
|
|
504
|
-
var de_CreateDatabaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
505
|
-
if (output.statusCode >= 300) {
|
|
506
|
-
return de_CommandError(output, context);
|
|
507
|
-
}
|
|
508
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
509
|
-
let contents = {};
|
|
510
|
-
contents = de_CreateDatabaseResponse(data, context);
|
|
511
|
-
const response = {
|
|
512
|
-
$metadata: deserializeMetadata(output),
|
|
513
|
-
...contents
|
|
514
|
-
};
|
|
515
|
-
return response;
|
|
516
|
-
}, "de_CreateDatabaseCommand");
|
|
517
|
-
var de_CreateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
518
|
-
if (output.statusCode >= 300) {
|
|
519
|
-
return de_CommandError(output, context);
|
|
520
|
-
}
|
|
521
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
522
|
-
let contents = {};
|
|
523
|
-
contents = de_CreateTableResponse(data, context);
|
|
524
|
-
const response = {
|
|
525
|
-
$metadata: deserializeMetadata(output),
|
|
526
|
-
...contents
|
|
527
|
-
};
|
|
528
|
-
return response;
|
|
529
|
-
}, "de_CreateTableCommand");
|
|
530
|
-
var de_DeleteDatabaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
531
|
-
if (output.statusCode >= 300) {
|
|
532
|
-
return de_CommandError(output, context);
|
|
533
|
-
}
|
|
534
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
535
|
-
const response = {
|
|
536
|
-
$metadata: deserializeMetadata(output)
|
|
537
|
-
};
|
|
538
|
-
return response;
|
|
539
|
-
}, "de_DeleteDatabaseCommand");
|
|
540
|
-
var de_DeleteTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
541
|
-
if (output.statusCode >= 300) {
|
|
542
|
-
return de_CommandError(output, context);
|
|
543
|
-
}
|
|
544
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
545
|
-
const response = {
|
|
546
|
-
$metadata: deserializeMetadata(output)
|
|
547
|
-
};
|
|
548
|
-
return response;
|
|
549
|
-
}, "de_DeleteTableCommand");
|
|
550
|
-
var de_DescribeBatchLoadTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
551
|
-
if (output.statusCode >= 300) {
|
|
552
|
-
return de_CommandError(output, context);
|
|
553
|
-
}
|
|
554
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
555
|
-
let contents = {};
|
|
556
|
-
contents = de_DescribeBatchLoadTaskResponse(data, context);
|
|
557
|
-
const response = {
|
|
558
|
-
$metadata: deserializeMetadata(output),
|
|
559
|
-
...contents
|
|
560
|
-
};
|
|
561
|
-
return response;
|
|
562
|
-
}, "de_DescribeBatchLoadTaskCommand");
|
|
563
|
-
var de_DescribeDatabaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
564
|
-
if (output.statusCode >= 300) {
|
|
565
|
-
return de_CommandError(output, context);
|
|
566
|
-
}
|
|
567
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
568
|
-
let contents = {};
|
|
569
|
-
contents = de_DescribeDatabaseResponse(data, context);
|
|
570
|
-
const response = {
|
|
571
|
-
$metadata: deserializeMetadata(output),
|
|
572
|
-
...contents
|
|
573
|
-
};
|
|
574
|
-
return response;
|
|
575
|
-
}, "de_DescribeDatabaseCommand");
|
|
576
|
-
var de_DescribeEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
577
|
-
if (output.statusCode >= 300) {
|
|
578
|
-
return de_CommandError(output, context);
|
|
579
|
-
}
|
|
580
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
581
|
-
let contents = {};
|
|
582
|
-
contents = (0, import_smithy_client._json)(data);
|
|
583
|
-
const response = {
|
|
584
|
-
$metadata: deserializeMetadata(output),
|
|
585
|
-
...contents
|
|
586
|
-
};
|
|
587
|
-
return response;
|
|
588
|
-
}, "de_DescribeEndpointsCommand");
|
|
589
|
-
var de_DescribeTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
590
|
-
if (output.statusCode >= 300) {
|
|
591
|
-
return de_CommandError(output, context);
|
|
592
|
-
}
|
|
593
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
594
|
-
let contents = {};
|
|
595
|
-
contents = de_DescribeTableResponse(data, context);
|
|
596
|
-
const response = {
|
|
597
|
-
$metadata: deserializeMetadata(output),
|
|
598
|
-
...contents
|
|
599
|
-
};
|
|
600
|
-
return response;
|
|
601
|
-
}, "de_DescribeTableCommand");
|
|
602
|
-
var de_ListBatchLoadTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
603
|
-
if (output.statusCode >= 300) {
|
|
604
|
-
return de_CommandError(output, context);
|
|
605
|
-
}
|
|
606
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
607
|
-
let contents = {};
|
|
608
|
-
contents = de_ListBatchLoadTasksResponse(data, context);
|
|
609
|
-
const response = {
|
|
610
|
-
$metadata: deserializeMetadata(output),
|
|
611
|
-
...contents
|
|
612
|
-
};
|
|
613
|
-
return response;
|
|
614
|
-
}, "de_ListBatchLoadTasksCommand");
|
|
615
|
-
var de_ListDatabasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
616
|
-
if (output.statusCode >= 300) {
|
|
617
|
-
return de_CommandError(output, context);
|
|
618
|
-
}
|
|
619
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
620
|
-
let contents = {};
|
|
621
|
-
contents = de_ListDatabasesResponse(data, context);
|
|
622
|
-
const response = {
|
|
623
|
-
$metadata: deserializeMetadata(output),
|
|
624
|
-
...contents
|
|
625
|
-
};
|
|
626
|
-
return response;
|
|
627
|
-
}, "de_ListDatabasesCommand");
|
|
628
|
-
var de_ListTablesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
629
|
-
if (output.statusCode >= 300) {
|
|
630
|
-
return de_CommandError(output, context);
|
|
631
|
-
}
|
|
632
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
633
|
-
let contents = {};
|
|
634
|
-
contents = de_ListTablesResponse(data, context);
|
|
635
|
-
const response = {
|
|
636
|
-
$metadata: deserializeMetadata(output),
|
|
637
|
-
...contents
|
|
638
|
-
};
|
|
639
|
-
return response;
|
|
640
|
-
}, "de_ListTablesCommand");
|
|
641
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
642
|
-
if (output.statusCode >= 300) {
|
|
643
|
-
return de_CommandError(output, context);
|
|
644
|
-
}
|
|
645
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
646
|
-
let contents = {};
|
|
647
|
-
contents = (0, import_smithy_client._json)(data);
|
|
648
|
-
const response = {
|
|
649
|
-
$metadata: deserializeMetadata(output),
|
|
650
|
-
...contents
|
|
651
|
-
};
|
|
652
|
-
return response;
|
|
653
|
-
}, "de_ListTagsForResourceCommand");
|
|
654
|
-
var de_ResumeBatchLoadTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
655
|
-
if (output.statusCode >= 300) {
|
|
656
|
-
return de_CommandError(output, context);
|
|
657
|
-
}
|
|
658
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
659
|
-
let contents = {};
|
|
660
|
-
contents = (0, import_smithy_client._json)(data);
|
|
661
|
-
const response = {
|
|
662
|
-
$metadata: deserializeMetadata(output),
|
|
663
|
-
...contents
|
|
664
|
-
};
|
|
665
|
-
return response;
|
|
666
|
-
}, "de_ResumeBatchLoadTaskCommand");
|
|
667
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
668
|
-
if (output.statusCode >= 300) {
|
|
669
|
-
return de_CommandError(output, context);
|
|
670
|
-
}
|
|
671
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
672
|
-
let contents = {};
|
|
673
|
-
contents = (0, import_smithy_client._json)(data);
|
|
674
|
-
const response = {
|
|
675
|
-
$metadata: deserializeMetadata(output),
|
|
676
|
-
...contents
|
|
677
|
-
};
|
|
678
|
-
return response;
|
|
679
|
-
}, "de_TagResourceCommand");
|
|
680
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
681
|
-
if (output.statusCode >= 300) {
|
|
682
|
-
return de_CommandError(output, context);
|
|
683
|
-
}
|
|
684
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
685
|
-
let contents = {};
|
|
686
|
-
contents = (0, import_smithy_client._json)(data);
|
|
687
|
-
const response = {
|
|
688
|
-
$metadata: deserializeMetadata(output),
|
|
689
|
-
...contents
|
|
690
|
-
};
|
|
691
|
-
return response;
|
|
692
|
-
}, "de_UntagResourceCommand");
|
|
693
|
-
var de_UpdateDatabaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
694
|
-
if (output.statusCode >= 300) {
|
|
695
|
-
return de_CommandError(output, context);
|
|
696
|
-
}
|
|
697
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
698
|
-
let contents = {};
|
|
699
|
-
contents = de_UpdateDatabaseResponse(data, context);
|
|
700
|
-
const response = {
|
|
701
|
-
$metadata: deserializeMetadata(output),
|
|
702
|
-
...contents
|
|
703
|
-
};
|
|
704
|
-
return response;
|
|
705
|
-
}, "de_UpdateDatabaseCommand");
|
|
706
|
-
var de_UpdateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
707
|
-
if (output.statusCode >= 300) {
|
|
708
|
-
return de_CommandError(output, context);
|
|
709
|
-
}
|
|
710
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
711
|
-
let contents = {};
|
|
712
|
-
contents = de_UpdateTableResponse(data, context);
|
|
713
|
-
const response = {
|
|
714
|
-
$metadata: deserializeMetadata(output),
|
|
715
|
-
...contents
|
|
716
|
-
};
|
|
717
|
-
return response;
|
|
718
|
-
}, "de_UpdateTableCommand");
|
|
719
|
-
var de_WriteRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
720
|
-
if (output.statusCode >= 300) {
|
|
721
|
-
return de_CommandError(output, context);
|
|
722
|
-
}
|
|
723
|
-
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
724
|
-
let contents = {};
|
|
725
|
-
contents = (0, import_smithy_client._json)(data);
|
|
726
|
-
const response = {
|
|
727
|
-
$metadata: deserializeMetadata(output),
|
|
728
|
-
...contents
|
|
729
|
-
};
|
|
730
|
-
return response;
|
|
731
|
-
}, "de_WriteRecordsCommand");
|
|
732
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
733
|
-
const parsedOutput = {
|
|
734
|
-
...output,
|
|
735
|
-
body: await (0, import_core.parseJsonErrorBody)(output.body, context)
|
|
736
|
-
};
|
|
737
|
-
const errorCode = (0, import_core.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
738
|
-
switch (errorCode) {
|
|
739
|
-
case "AccessDeniedException":
|
|
740
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
741
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
742
|
-
case "ConflictException":
|
|
743
|
-
case "com.amazonaws.timestreamwrite#ConflictException":
|
|
744
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
745
|
-
case "InternalServerException":
|
|
746
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
747
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
748
|
-
case "InvalidEndpointException":
|
|
749
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
750
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
751
|
-
case "ResourceNotFoundException":
|
|
752
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
753
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
754
|
-
case "ServiceQuotaExceededException":
|
|
755
|
-
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
756
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
757
|
-
case "ThrottlingException":
|
|
758
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
759
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
760
|
-
case "ValidationException":
|
|
761
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
762
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
763
|
-
case "RejectedRecordsException":
|
|
764
|
-
case "com.amazonaws.timestreamwrite#RejectedRecordsException":
|
|
765
|
-
throw await de_RejectedRecordsExceptionRes(parsedOutput, context);
|
|
766
|
-
default:
|
|
767
|
-
const parsedBody = parsedOutput.body;
|
|
768
|
-
return throwDefaultError({
|
|
769
|
-
output,
|
|
770
|
-
parsedBody,
|
|
771
|
-
errorCode
|
|
772
|
-
});
|
|
773
|
-
}
|
|
774
|
-
}, "de_CommandError");
|
|
775
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
776
|
-
const body = parsedOutput.body;
|
|
777
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
778
|
-
const exception = new AccessDeniedException({
|
|
779
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
780
|
-
...deserialized
|
|
781
|
-
});
|
|
782
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
783
|
-
}, "de_AccessDeniedExceptionRes");
|
|
784
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
785
|
-
const body = parsedOutput.body;
|
|
786
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
787
|
-
const exception = new ConflictException({
|
|
788
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
789
|
-
...deserialized
|
|
790
|
-
});
|
|
791
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
792
|
-
}, "de_ConflictExceptionRes");
|
|
793
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
794
|
-
const body = parsedOutput.body;
|
|
795
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
796
|
-
const exception = new InternalServerException({
|
|
797
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
798
|
-
...deserialized
|
|
799
|
-
});
|
|
800
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
801
|
-
}, "de_InternalServerExceptionRes");
|
|
802
|
-
var de_InvalidEndpointExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
803
|
-
const body = parsedOutput.body;
|
|
804
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
805
|
-
const exception = new InvalidEndpointException({
|
|
806
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
807
|
-
...deserialized
|
|
808
|
-
});
|
|
809
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
810
|
-
}, "de_InvalidEndpointExceptionRes");
|
|
811
|
-
var de_RejectedRecordsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
812
|
-
const body = parsedOutput.body;
|
|
813
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
814
|
-
const exception = new RejectedRecordsException({
|
|
815
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
816
|
-
...deserialized
|
|
817
|
-
});
|
|
818
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
819
|
-
}, "de_RejectedRecordsExceptionRes");
|
|
820
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
821
|
-
const body = parsedOutput.body;
|
|
822
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
823
|
-
const exception = new ResourceNotFoundException({
|
|
824
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
825
|
-
...deserialized
|
|
826
|
-
});
|
|
827
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
828
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
829
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
830
|
-
const body = parsedOutput.body;
|
|
831
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
832
|
-
const exception = new ServiceQuotaExceededException({
|
|
833
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
834
|
-
...deserialized
|
|
835
|
-
});
|
|
836
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
837
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
838
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
839
|
-
const body = parsedOutput.body;
|
|
840
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
841
|
-
const exception = new ThrottlingException({
|
|
842
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
843
|
-
...deserialized
|
|
844
|
-
});
|
|
845
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
846
|
-
}, "de_ThrottlingExceptionRes");
|
|
847
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
848
|
-
const body = parsedOutput.body;
|
|
849
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
850
|
-
const exception = new ValidationException({
|
|
851
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
852
|
-
...deserialized
|
|
853
|
-
});
|
|
854
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
855
|
-
}, "de_ValidationExceptionRes");
|
|
856
|
-
var se_CreateBatchLoadTaskRequest = /* @__PURE__ */ __name((input, context) => {
|
|
857
|
-
return (0, import_smithy_client.take)(input, {
|
|
858
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
859
|
-
DataModelConfiguration: import_smithy_client._json,
|
|
860
|
-
DataSourceConfiguration: import_smithy_client._json,
|
|
861
|
-
RecordVersion: [],
|
|
862
|
-
ReportConfiguration: import_smithy_client._json,
|
|
863
|
-
TargetDatabaseName: [],
|
|
864
|
-
TargetTableName: []
|
|
865
|
-
});
|
|
866
|
-
}, "se_CreateBatchLoadTaskRequest");
|
|
867
|
-
var de_BatchLoadTask = /* @__PURE__ */ __name((output, context) => {
|
|
868
|
-
return (0, import_smithy_client.take)(output, {
|
|
869
|
-
CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
|
|
870
|
-
DatabaseName: import_smithy_client.expectString,
|
|
871
|
-
LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
|
|
872
|
-
ResumableUntil: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ResumableUntil"),
|
|
873
|
-
TableName: import_smithy_client.expectString,
|
|
874
|
-
TaskId: import_smithy_client.expectString,
|
|
875
|
-
TaskStatus: import_smithy_client.expectString
|
|
876
|
-
});
|
|
877
|
-
}, "de_BatchLoadTask");
|
|
878
|
-
var de_BatchLoadTaskDescription = /* @__PURE__ */ __name((output, context) => {
|
|
879
|
-
return (0, import_smithy_client.take)(output, {
|
|
880
|
-
CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
|
|
881
|
-
DataModelConfiguration: import_smithy_client._json,
|
|
882
|
-
DataSourceConfiguration: import_smithy_client._json,
|
|
883
|
-
ErrorMessage: import_smithy_client.expectString,
|
|
884
|
-
LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
|
|
885
|
-
ProgressReport: import_smithy_client._json,
|
|
886
|
-
RecordVersion: import_smithy_client.expectLong,
|
|
887
|
-
ReportConfiguration: import_smithy_client._json,
|
|
888
|
-
ResumableUntil: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ResumableUntil"),
|
|
889
|
-
TargetDatabaseName: import_smithy_client.expectString,
|
|
890
|
-
TargetTableName: import_smithy_client.expectString,
|
|
891
|
-
TaskId: import_smithy_client.expectString,
|
|
892
|
-
TaskStatus: import_smithy_client.expectString
|
|
893
|
-
});
|
|
894
|
-
}, "de_BatchLoadTaskDescription");
|
|
895
|
-
var de_BatchLoadTaskList = /* @__PURE__ */ __name((output, context) => {
|
|
896
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
897
|
-
return de_BatchLoadTask(entry, context);
|
|
898
|
-
});
|
|
899
|
-
return retVal;
|
|
900
|
-
}, "de_BatchLoadTaskList");
|
|
901
|
-
var de_CreateDatabaseResponse = /* @__PURE__ */ __name((output, context) => {
|
|
902
|
-
return (0, import_smithy_client.take)(output, {
|
|
903
|
-
Database: /* @__PURE__ */ __name((_) => de_Database(_, context), "Database")
|
|
904
|
-
});
|
|
905
|
-
}, "de_CreateDatabaseResponse");
|
|
906
|
-
var de_CreateTableResponse = /* @__PURE__ */ __name((output, context) => {
|
|
907
|
-
return (0, import_smithy_client.take)(output, {
|
|
908
|
-
Table: /* @__PURE__ */ __name((_) => de_Table(_, context), "Table")
|
|
909
|
-
});
|
|
910
|
-
}, "de_CreateTableResponse");
|
|
911
|
-
var de_Database = /* @__PURE__ */ __name((output, context) => {
|
|
912
|
-
return (0, import_smithy_client.take)(output, {
|
|
913
|
-
Arn: import_smithy_client.expectString,
|
|
914
|
-
CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
|
|
915
|
-
DatabaseName: import_smithy_client.expectString,
|
|
916
|
-
KmsKeyId: import_smithy_client.expectString,
|
|
917
|
-
LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
|
|
918
|
-
TableCount: import_smithy_client.expectLong
|
|
919
|
-
});
|
|
920
|
-
}, "de_Database");
|
|
921
|
-
var de_DatabaseList = /* @__PURE__ */ __name((output, context) => {
|
|
922
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
923
|
-
return de_Database(entry, context);
|
|
924
|
-
});
|
|
925
|
-
return retVal;
|
|
926
|
-
}, "de_DatabaseList");
|
|
927
|
-
var de_DescribeBatchLoadTaskResponse = /* @__PURE__ */ __name((output, context) => {
|
|
928
|
-
return (0, import_smithy_client.take)(output, {
|
|
929
|
-
BatchLoadTaskDescription: /* @__PURE__ */ __name((_) => de_BatchLoadTaskDescription(_, context), "BatchLoadTaskDescription")
|
|
930
|
-
});
|
|
931
|
-
}, "de_DescribeBatchLoadTaskResponse");
|
|
932
|
-
var de_DescribeDatabaseResponse = /* @__PURE__ */ __name((output, context) => {
|
|
933
|
-
return (0, import_smithy_client.take)(output, {
|
|
934
|
-
Database: /* @__PURE__ */ __name((_) => de_Database(_, context), "Database")
|
|
935
|
-
});
|
|
936
|
-
}, "de_DescribeDatabaseResponse");
|
|
937
|
-
var de_DescribeTableResponse = /* @__PURE__ */ __name((output, context) => {
|
|
938
|
-
return (0, import_smithy_client.take)(output, {
|
|
939
|
-
Table: /* @__PURE__ */ __name((_) => de_Table(_, context), "Table")
|
|
940
|
-
});
|
|
941
|
-
}, "de_DescribeTableResponse");
|
|
942
|
-
var de_ListBatchLoadTasksResponse = /* @__PURE__ */ __name((output, context) => {
|
|
943
|
-
return (0, import_smithy_client.take)(output, {
|
|
944
|
-
BatchLoadTasks: /* @__PURE__ */ __name((_) => de_BatchLoadTaskList(_, context), "BatchLoadTasks"),
|
|
945
|
-
NextToken: import_smithy_client.expectString
|
|
946
|
-
});
|
|
947
|
-
}, "de_ListBatchLoadTasksResponse");
|
|
948
|
-
var de_ListDatabasesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
949
|
-
return (0, import_smithy_client.take)(output, {
|
|
950
|
-
Databases: /* @__PURE__ */ __name((_) => de_DatabaseList(_, context), "Databases"),
|
|
951
|
-
NextToken: import_smithy_client.expectString
|
|
952
|
-
});
|
|
953
|
-
}, "de_ListDatabasesResponse");
|
|
954
|
-
var de_ListTablesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
955
|
-
return (0, import_smithy_client.take)(output, {
|
|
956
|
-
NextToken: import_smithy_client.expectString,
|
|
957
|
-
Tables: /* @__PURE__ */ __name((_) => de_TableList(_, context), "Tables")
|
|
958
|
-
});
|
|
959
|
-
}, "de_ListTablesResponse");
|
|
960
|
-
var de_Table = /* @__PURE__ */ __name((output, context) => {
|
|
961
|
-
return (0, import_smithy_client.take)(output, {
|
|
962
|
-
Arn: import_smithy_client.expectString,
|
|
963
|
-
CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
|
|
964
|
-
DatabaseName: import_smithy_client.expectString,
|
|
965
|
-
LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
|
|
966
|
-
MagneticStoreWriteProperties: import_smithy_client._json,
|
|
967
|
-
RetentionProperties: import_smithy_client._json,
|
|
968
|
-
Schema: import_smithy_client._json,
|
|
969
|
-
TableName: import_smithy_client.expectString,
|
|
970
|
-
TableStatus: import_smithy_client.expectString
|
|
971
|
-
});
|
|
972
|
-
}, "de_Table");
|
|
973
|
-
var de_TableList = /* @__PURE__ */ __name((output, context) => {
|
|
974
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
975
|
-
return de_Table(entry, context);
|
|
976
|
-
});
|
|
977
|
-
return retVal;
|
|
978
|
-
}, "de_TableList");
|
|
979
|
-
var de_UpdateDatabaseResponse = /* @__PURE__ */ __name((output, context) => {
|
|
980
|
-
return (0, import_smithy_client.take)(output, {
|
|
981
|
-
Database: /* @__PURE__ */ __name((_) => de_Database(_, context), "Database")
|
|
982
|
-
});
|
|
983
|
-
}, "de_UpdateDatabaseResponse");
|
|
984
|
-
var de_UpdateTableResponse = /* @__PURE__ */ __name((output, context) => {
|
|
985
|
-
return (0, import_smithy_client.take)(output, {
|
|
986
|
-
Table: /* @__PURE__ */ __name((_) => de_Table(_, context), "Table")
|
|
987
|
-
});
|
|
988
|
-
}, "de_UpdateTableResponse");
|
|
989
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
990
|
-
httpStatusCode: output.statusCode,
|
|
991
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
992
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
993
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
994
|
-
}), "deserializeMetadata");
|
|
995
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(TimestreamWriteServiceException);
|
|
996
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
997
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
998
|
-
const contents = {
|
|
999
|
-
protocol,
|
|
1000
|
-
hostname,
|
|
1001
|
-
port,
|
|
1002
|
-
method: "POST",
|
|
1003
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1004
|
-
headers
|
|
1005
|
-
};
|
|
1006
|
-
if (resolvedHostname !== void 0) {
|
|
1007
|
-
contents.hostname = resolvedHostname;
|
|
1008
|
-
}
|
|
1009
|
-
if (body !== void 0) {
|
|
1010
|
-
contents.body = body;
|
|
1011
|
-
}
|
|
1012
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
1013
|
-
}, "buildHttpRpcRequest");
|
|
1014
|
-
function sharedHeaders(operation) {
|
|
1015
|
-
return {
|
|
1016
|
-
"content-type": "application/x-amz-json-1.0",
|
|
1017
|
-
"x-amz-target": `Timestream_20181101.${operation}`
|
|
1018
|
-
};
|
|
1019
|
-
}
|
|
1020
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
1021
|
-
|
|
1022
|
-
// src/commands/DescribeEndpointsCommand.ts
|
|
1023
|
-
var DescribeEndpointsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1024
|
-
return [
|
|
1025
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1026
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1027
|
-
];
|
|
1028
|
-
}).s("Timestream_20181101", "DescribeEndpoints", {}).n("TimestreamWriteClient", "DescribeEndpointsCommand").f(void 0, void 0).ser(se_DescribeEndpointsCommand).de(de_DescribeEndpointsCommand).build() {
|
|
1029
|
-
static {
|
|
1030
|
-
__name(this, "DescribeEndpointsCommand");
|
|
1031
|
-
}
|
|
705
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1032
706
|
};
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
// src/auth/httpAuthExtensionConfiguration.ts
|
|
1043
|
-
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
1044
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
1045
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
1046
|
-
let _credentials = runtimeConfig.credentials;
|
|
1047
|
-
return {
|
|
1048
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
1049
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
1050
|
-
if (index === -1) {
|
|
1051
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
1052
|
-
} else {
|
|
1053
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
1054
|
-
}
|
|
1055
|
-
},
|
|
1056
|
-
httpAuthSchemes() {
|
|
1057
|
-
return _httpAuthSchemes;
|
|
1058
|
-
},
|
|
1059
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
1060
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
1061
|
-
},
|
|
1062
|
-
httpAuthSchemeProvider() {
|
|
1063
|
-
return _httpAuthSchemeProvider;
|
|
1064
|
-
},
|
|
1065
|
-
setCredentials(credentials) {
|
|
1066
|
-
_credentials = credentials;
|
|
1067
|
-
},
|
|
1068
|
-
credentials() {
|
|
1069
|
-
return _credentials;
|
|
1070
|
-
}
|
|
1071
|
-
};
|
|
1072
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
1073
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
1074
|
-
return {
|
|
1075
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
1076
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
1077
|
-
credentials: config.credentials()
|
|
1078
|
-
};
|
|
1079
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
1080
|
-
|
|
1081
|
-
// src/runtimeExtensions.ts
|
|
1082
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
1083
|
-
const extensionConfiguration = Object.assign(
|
|
1084
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
1085
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
1086
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
1087
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
1088
|
-
);
|
|
1089
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
1090
|
-
return Object.assign(
|
|
1091
|
-
runtimeConfig,
|
|
1092
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
1093
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
1094
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
1095
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
1096
|
-
);
|
|
1097
|
-
}, "resolveRuntimeExtensions");
|
|
1098
|
-
|
|
1099
|
-
// src/TimestreamWriteClient.ts
|
|
1100
|
-
var TimestreamWriteClient = class extends import_smithy_client.Client {
|
|
1101
|
-
static {
|
|
1102
|
-
__name(this, "TimestreamWriteClient");
|
|
1103
|
-
}
|
|
1104
|
-
/**
|
|
1105
|
-
* The resolved configuration of TimestreamWriteClient class. This is resolved and normalized from the {@link TimestreamWriteClientConfig | constructor configuration interface}.
|
|
1106
|
-
*/
|
|
1107
|
-
config;
|
|
1108
|
-
constructor(...[configuration]) {
|
|
1109
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
1110
|
-
super(_config_0);
|
|
1111
|
-
this.initConfig = _config_0;
|
|
1112
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
1113
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
1114
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
1115
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
1116
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
1117
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
1118
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
1119
|
-
const _config_8 = (0, import_middleware_endpoint_discovery.resolveEndpointDiscoveryConfig)(_config_7, {
|
|
1120
|
-
endpointDiscoveryCommandCtor: DescribeEndpointsCommand
|
|
707
|
+
const se_CreateBatchLoadTaskRequest = (input, context) => {
|
|
708
|
+
return smithyClient.take(input, {
|
|
709
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
710
|
+
DataModelConfiguration: smithyClient._json,
|
|
711
|
+
DataSourceConfiguration: smithyClient._json,
|
|
712
|
+
RecordVersion: [],
|
|
713
|
+
ReportConfiguration: smithyClient._json,
|
|
714
|
+
TargetDatabaseName: [],
|
|
715
|
+
TargetTableName: [],
|
|
1121
716
|
});
|
|
1122
|
-
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
1123
|
-
this.config = _config_9;
|
|
1124
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
1125
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
1126
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
1127
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
1128
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
1129
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
1130
|
-
this.middlewareStack.use(
|
|
1131
|
-
(0, import_core2.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
1132
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultTimestreamWriteHttpAuthSchemeParametersProvider,
|
|
1133
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core2.DefaultIdentityProviderConfig({
|
|
1134
|
-
"aws.auth#sigv4": config.credentials
|
|
1135
|
-
}), "identityProviderConfigProvider")
|
|
1136
|
-
})
|
|
1137
|
-
);
|
|
1138
|
-
this.middlewareStack.use((0, import_core2.getHttpSigningPlugin)(this.config));
|
|
1139
|
-
}
|
|
1140
|
-
/**
|
|
1141
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
1142
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
1143
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
1144
|
-
*/
|
|
1145
|
-
destroy() {
|
|
1146
|
-
super.destroy();
|
|
1147
|
-
}
|
|
1148
717
|
};
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
return [
|
|
1160
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1161
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1162
|
-
(0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
|
|
1163
|
-
clientStack: cs,
|
|
1164
|
-
isDiscoveredEndpointRequired: true,
|
|
1165
|
-
options: o
|
|
1166
|
-
})
|
|
1167
|
-
];
|
|
1168
|
-
}).s("Timestream_20181101", "CreateBatchLoadTask", {}).n("TimestreamWriteClient", "CreateBatchLoadTaskCommand").f(CreateBatchLoadTaskRequestFilterSensitiveLog, void 0).ser(se_CreateBatchLoadTaskCommand).de(de_CreateBatchLoadTaskCommand).build() {
|
|
1169
|
-
static {
|
|
1170
|
-
__name(this, "CreateBatchLoadTaskCommand");
|
|
1171
|
-
}
|
|
718
|
+
const de_BatchLoadTask = (output, context) => {
|
|
719
|
+
return smithyClient.take(output, {
|
|
720
|
+
CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
721
|
+
DatabaseName: smithyClient.expectString,
|
|
722
|
+
LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
723
|
+
ResumableUntil: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
724
|
+
TableName: smithyClient.expectString,
|
|
725
|
+
TaskId: smithyClient.expectString,
|
|
726
|
+
TaskStatus: smithyClient.expectString,
|
|
727
|
+
});
|
|
1172
728
|
};
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
}).s("Timestream_20181101", "CreateDatabase", {}).n("TimestreamWriteClient", "CreateDatabaseCommand").f(void 0, void 0).ser(se_CreateDatabaseCommand).de(de_CreateDatabaseCommand).build() {
|
|
1190
|
-
static {
|
|
1191
|
-
__name(this, "CreateDatabaseCommand");
|
|
1192
|
-
}
|
|
729
|
+
const de_BatchLoadTaskDescription = (output, context) => {
|
|
730
|
+
return smithyClient.take(output, {
|
|
731
|
+
CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
732
|
+
DataModelConfiguration: smithyClient._json,
|
|
733
|
+
DataSourceConfiguration: smithyClient._json,
|
|
734
|
+
ErrorMessage: smithyClient.expectString,
|
|
735
|
+
LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
736
|
+
ProgressReport: smithyClient._json,
|
|
737
|
+
RecordVersion: smithyClient.expectLong,
|
|
738
|
+
ReportConfiguration: smithyClient._json,
|
|
739
|
+
ResumableUntil: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
740
|
+
TargetDatabaseName: smithyClient.expectString,
|
|
741
|
+
TargetTableName: smithyClient.expectString,
|
|
742
|
+
TaskId: smithyClient.expectString,
|
|
743
|
+
TaskStatus: smithyClient.expectString,
|
|
744
|
+
});
|
|
1193
745
|
};
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
return [
|
|
1202
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1203
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1204
|
-
(0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
|
|
1205
|
-
clientStack: cs,
|
|
1206
|
-
isDiscoveredEndpointRequired: true,
|
|
1207
|
-
options: o
|
|
1208
|
-
})
|
|
1209
|
-
];
|
|
1210
|
-
}).s("Timestream_20181101", "CreateTable", {}).n("TimestreamWriteClient", "CreateTableCommand").f(void 0, void 0).ser(se_CreateTableCommand).de(de_CreateTableCommand).build() {
|
|
1211
|
-
static {
|
|
1212
|
-
__name(this, "CreateTableCommand");
|
|
1213
|
-
}
|
|
746
|
+
const de_BatchLoadTaskList = (output, context) => {
|
|
747
|
+
const retVal = (output || [])
|
|
748
|
+
.filter((e) => e != null)
|
|
749
|
+
.map((entry) => {
|
|
750
|
+
return de_BatchLoadTask(entry);
|
|
751
|
+
});
|
|
752
|
+
return retVal;
|
|
1214
753
|
};
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
var DeleteDatabaseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1222
|
-
return [
|
|
1223
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1224
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1225
|
-
(0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
|
|
1226
|
-
clientStack: cs,
|
|
1227
|
-
isDiscoveredEndpointRequired: true,
|
|
1228
|
-
options: o
|
|
1229
|
-
})
|
|
1230
|
-
];
|
|
1231
|
-
}).s("Timestream_20181101", "DeleteDatabase", {}).n("TimestreamWriteClient", "DeleteDatabaseCommand").f(void 0, void 0).ser(se_DeleteDatabaseCommand).de(de_DeleteDatabaseCommand).build() {
|
|
1232
|
-
static {
|
|
1233
|
-
__name(this, "DeleteDatabaseCommand");
|
|
1234
|
-
}
|
|
754
|
+
const de_CreateDatabaseResponse = (output, context) => {
|
|
755
|
+
return smithyClient.take(output, {
|
|
756
|
+
Database: (_) => de_Database(_),
|
|
757
|
+
});
|
|
1235
758
|
};
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
var DeleteTableCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1243
|
-
return [
|
|
1244
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1245
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1246
|
-
(0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
|
|
1247
|
-
clientStack: cs,
|
|
1248
|
-
isDiscoveredEndpointRequired: true,
|
|
1249
|
-
options: o
|
|
1250
|
-
})
|
|
1251
|
-
];
|
|
1252
|
-
}).s("Timestream_20181101", "DeleteTable", {}).n("TimestreamWriteClient", "DeleteTableCommand").f(void 0, void 0).ser(se_DeleteTableCommand).de(de_DeleteTableCommand).build() {
|
|
1253
|
-
static {
|
|
1254
|
-
__name(this, "DeleteTableCommand");
|
|
1255
|
-
}
|
|
759
|
+
const de_CreateTableResponse = (output, context) => {
|
|
760
|
+
return smithyClient.take(output, {
|
|
761
|
+
Table: (_) => de_Table(_),
|
|
762
|
+
});
|
|
1256
763
|
};
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1267
|
-
(0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
|
|
1268
|
-
clientStack: cs,
|
|
1269
|
-
isDiscoveredEndpointRequired: true,
|
|
1270
|
-
options: o
|
|
1271
|
-
})
|
|
1272
|
-
];
|
|
1273
|
-
}).s("Timestream_20181101", "DescribeBatchLoadTask", {}).n("TimestreamWriteClient", "DescribeBatchLoadTaskCommand").f(void 0, void 0).ser(se_DescribeBatchLoadTaskCommand).de(de_DescribeBatchLoadTaskCommand).build() {
|
|
1274
|
-
static {
|
|
1275
|
-
__name(this, "DescribeBatchLoadTaskCommand");
|
|
1276
|
-
}
|
|
764
|
+
const de_Database = (output, context) => {
|
|
765
|
+
return smithyClient.take(output, {
|
|
766
|
+
Arn: smithyClient.expectString,
|
|
767
|
+
CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
768
|
+
DatabaseName: smithyClient.expectString,
|
|
769
|
+
KmsKeyId: smithyClient.expectString,
|
|
770
|
+
LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
771
|
+
TableCount: smithyClient.expectLong,
|
|
772
|
+
});
|
|
1277
773
|
};
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
return [
|
|
1286
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1287
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1288
|
-
(0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
|
|
1289
|
-
clientStack: cs,
|
|
1290
|
-
isDiscoveredEndpointRequired: true,
|
|
1291
|
-
options: o
|
|
1292
|
-
})
|
|
1293
|
-
];
|
|
1294
|
-
}).s("Timestream_20181101", "DescribeDatabase", {}).n("TimestreamWriteClient", "DescribeDatabaseCommand").f(void 0, void 0).ser(se_DescribeDatabaseCommand).de(de_DescribeDatabaseCommand).build() {
|
|
1295
|
-
static {
|
|
1296
|
-
__name(this, "DescribeDatabaseCommand");
|
|
1297
|
-
}
|
|
774
|
+
const de_DatabaseList = (output, context) => {
|
|
775
|
+
const retVal = (output || [])
|
|
776
|
+
.filter((e) => e != null)
|
|
777
|
+
.map((entry) => {
|
|
778
|
+
return de_Database(entry);
|
|
779
|
+
});
|
|
780
|
+
return retVal;
|
|
1298
781
|
};
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
var DescribeTableCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1306
|
-
return [
|
|
1307
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1308
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1309
|
-
(0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
|
|
1310
|
-
clientStack: cs,
|
|
1311
|
-
isDiscoveredEndpointRequired: true,
|
|
1312
|
-
options: o
|
|
1313
|
-
})
|
|
1314
|
-
];
|
|
1315
|
-
}).s("Timestream_20181101", "DescribeTable", {}).n("TimestreamWriteClient", "DescribeTableCommand").f(void 0, void 0).ser(se_DescribeTableCommand).de(de_DescribeTableCommand).build() {
|
|
1316
|
-
static {
|
|
1317
|
-
__name(this, "DescribeTableCommand");
|
|
1318
|
-
}
|
|
782
|
+
const de_DescribeBatchLoadTaskResponse = (output, context) => {
|
|
783
|
+
return smithyClient.take(output, {
|
|
784
|
+
BatchLoadTaskDescription: (_) => de_BatchLoadTaskDescription(_),
|
|
785
|
+
});
|
|
1319
786
|
};
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
var ListBatchLoadTasksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1327
|
-
return [
|
|
1328
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1329
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1330
|
-
(0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
|
|
1331
|
-
clientStack: cs,
|
|
1332
|
-
isDiscoveredEndpointRequired: true,
|
|
1333
|
-
options: o
|
|
1334
|
-
})
|
|
1335
|
-
];
|
|
1336
|
-
}).s("Timestream_20181101", "ListBatchLoadTasks", {}).n("TimestreamWriteClient", "ListBatchLoadTasksCommand").f(void 0, void 0).ser(se_ListBatchLoadTasksCommand).de(de_ListBatchLoadTasksCommand).build() {
|
|
1337
|
-
static {
|
|
1338
|
-
__name(this, "ListBatchLoadTasksCommand");
|
|
1339
|
-
}
|
|
787
|
+
const de_DescribeDatabaseResponse = (output, context) => {
|
|
788
|
+
return smithyClient.take(output, {
|
|
789
|
+
Database: (_) => de_Database(_),
|
|
790
|
+
});
|
|
1340
791
|
};
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
var ListDatabasesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1348
|
-
return [
|
|
1349
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1350
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1351
|
-
(0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
|
|
1352
|
-
clientStack: cs,
|
|
1353
|
-
isDiscoveredEndpointRequired: true,
|
|
1354
|
-
options: o
|
|
1355
|
-
})
|
|
1356
|
-
];
|
|
1357
|
-
}).s("Timestream_20181101", "ListDatabases", {}).n("TimestreamWriteClient", "ListDatabasesCommand").f(void 0, void 0).ser(se_ListDatabasesCommand).de(de_ListDatabasesCommand).build() {
|
|
1358
|
-
static {
|
|
1359
|
-
__name(this, "ListDatabasesCommand");
|
|
1360
|
-
}
|
|
792
|
+
const de_DescribeTableResponse = (output, context) => {
|
|
793
|
+
return smithyClient.take(output, {
|
|
794
|
+
Table: (_) => de_Table(_),
|
|
795
|
+
});
|
|
1361
796
|
};
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
var ListTablesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1369
|
-
return [
|
|
1370
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1371
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1372
|
-
(0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
|
|
1373
|
-
clientStack: cs,
|
|
1374
|
-
isDiscoveredEndpointRequired: true,
|
|
1375
|
-
options: o
|
|
1376
|
-
})
|
|
1377
|
-
];
|
|
1378
|
-
}).s("Timestream_20181101", "ListTables", {}).n("TimestreamWriteClient", "ListTablesCommand").f(void 0, void 0).ser(se_ListTablesCommand).de(de_ListTablesCommand).build() {
|
|
1379
|
-
static {
|
|
1380
|
-
__name(this, "ListTablesCommand");
|
|
1381
|
-
}
|
|
797
|
+
const de_ListBatchLoadTasksResponse = (output, context) => {
|
|
798
|
+
return smithyClient.take(output, {
|
|
799
|
+
BatchLoadTasks: (_) => de_BatchLoadTaskList(_),
|
|
800
|
+
NextToken: smithyClient.expectString,
|
|
801
|
+
});
|
|
1382
802
|
};
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1390
|
-
return [
|
|
1391
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1392
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1393
|
-
(0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
|
|
1394
|
-
clientStack: cs,
|
|
1395
|
-
isDiscoveredEndpointRequired: true,
|
|
1396
|
-
options: o
|
|
1397
|
-
})
|
|
1398
|
-
];
|
|
1399
|
-
}).s("Timestream_20181101", "ListTagsForResource", {}).n("TimestreamWriteClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1400
|
-
static {
|
|
1401
|
-
__name(this, "ListTagsForResourceCommand");
|
|
1402
|
-
}
|
|
803
|
+
const de_ListDatabasesResponse = (output, context) => {
|
|
804
|
+
return smithyClient.take(output, {
|
|
805
|
+
Databases: (_) => de_DatabaseList(_),
|
|
806
|
+
NextToken: smithyClient.expectString,
|
|
807
|
+
});
|
|
1403
808
|
};
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
var ResumeBatchLoadTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1411
|
-
return [
|
|
1412
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1413
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1414
|
-
(0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
|
|
1415
|
-
clientStack: cs,
|
|
1416
|
-
isDiscoveredEndpointRequired: true,
|
|
1417
|
-
options: o
|
|
1418
|
-
})
|
|
1419
|
-
];
|
|
1420
|
-
}).s("Timestream_20181101", "ResumeBatchLoadTask", {}).n("TimestreamWriteClient", "ResumeBatchLoadTaskCommand").f(void 0, void 0).ser(se_ResumeBatchLoadTaskCommand).de(de_ResumeBatchLoadTaskCommand).build() {
|
|
1421
|
-
static {
|
|
1422
|
-
__name(this, "ResumeBatchLoadTaskCommand");
|
|
1423
|
-
}
|
|
809
|
+
const de_ListTablesResponse = (output, context) => {
|
|
810
|
+
return smithyClient.take(output, {
|
|
811
|
+
NextToken: smithyClient.expectString,
|
|
812
|
+
Tables: (_) => de_TableList(_),
|
|
813
|
+
});
|
|
1424
814
|
};
|
|
815
|
+
const de_Table = (output, context) => {
|
|
816
|
+
return smithyClient.take(output, {
|
|
817
|
+
Arn: smithyClient.expectString,
|
|
818
|
+
CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
819
|
+
DatabaseName: smithyClient.expectString,
|
|
820
|
+
LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
821
|
+
MagneticStoreWriteProperties: smithyClient._json,
|
|
822
|
+
RetentionProperties: smithyClient._json,
|
|
823
|
+
Schema: smithyClient._json,
|
|
824
|
+
TableName: smithyClient.expectString,
|
|
825
|
+
TableStatus: smithyClient.expectString,
|
|
826
|
+
});
|
|
827
|
+
};
|
|
828
|
+
const de_TableList = (output, context) => {
|
|
829
|
+
const retVal = (output || [])
|
|
830
|
+
.filter((e) => e != null)
|
|
831
|
+
.map((entry) => {
|
|
832
|
+
return de_Table(entry);
|
|
833
|
+
});
|
|
834
|
+
return retVal;
|
|
835
|
+
};
|
|
836
|
+
const de_UpdateDatabaseResponse = (output, context) => {
|
|
837
|
+
return smithyClient.take(output, {
|
|
838
|
+
Database: (_) => de_Database(_),
|
|
839
|
+
});
|
|
840
|
+
};
|
|
841
|
+
const de_UpdateTableResponse = (output, context) => {
|
|
842
|
+
return smithyClient.take(output, {
|
|
843
|
+
Table: (_) => de_Table(_),
|
|
844
|
+
});
|
|
845
|
+
};
|
|
846
|
+
const deserializeMetadata = (output) => ({
|
|
847
|
+
httpStatusCode: output.statusCode,
|
|
848
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
849
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
850
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
851
|
+
});
|
|
852
|
+
const throwDefaultError = smithyClient.withBaseException(TimestreamWriteServiceException);
|
|
853
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
854
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
855
|
+
const contents = {
|
|
856
|
+
protocol,
|
|
857
|
+
hostname,
|
|
858
|
+
port,
|
|
859
|
+
method: "POST",
|
|
860
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
861
|
+
headers,
|
|
862
|
+
};
|
|
863
|
+
if (body !== undefined) {
|
|
864
|
+
contents.body = body;
|
|
865
|
+
}
|
|
866
|
+
return new protocolHttp.HttpRequest(contents);
|
|
867
|
+
};
|
|
868
|
+
function sharedHeaders(operation) {
|
|
869
|
+
return {
|
|
870
|
+
"content-type": "application/x-amz-json-1.0",
|
|
871
|
+
"x-amz-target": `Timestream_20181101.${operation}`,
|
|
872
|
+
};
|
|
873
|
+
}
|
|
1425
874
|
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
875
|
+
class DescribeEndpointsCommand extends smithyClient.Command
|
|
876
|
+
.classBuilder()
|
|
877
|
+
.ep(commonParams)
|
|
878
|
+
.m(function (Command, cs, config, o) {
|
|
879
|
+
return [
|
|
880
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
881
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
882
|
+
];
|
|
883
|
+
})
|
|
884
|
+
.s("Timestream_20181101", "DescribeEndpoints", {})
|
|
885
|
+
.n("TimestreamWriteClient", "DescribeEndpointsCommand")
|
|
886
|
+
.f(void 0, void 0)
|
|
887
|
+
.ser(se_DescribeEndpointsCommand)
|
|
888
|
+
.de(de_DescribeEndpointsCommand)
|
|
889
|
+
.build() {
|
|
890
|
+
}
|
|
1429
891
|
|
|
892
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
893
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
894
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
895
|
+
let _credentials = runtimeConfig.credentials;
|
|
896
|
+
return {
|
|
897
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
898
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
899
|
+
if (index === -1) {
|
|
900
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
901
|
+
}
|
|
902
|
+
else {
|
|
903
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
httpAuthSchemes() {
|
|
907
|
+
return _httpAuthSchemes;
|
|
908
|
+
},
|
|
909
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
910
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
911
|
+
},
|
|
912
|
+
httpAuthSchemeProvider() {
|
|
913
|
+
return _httpAuthSchemeProvider;
|
|
914
|
+
},
|
|
915
|
+
setCredentials(credentials) {
|
|
916
|
+
_credentials = credentials;
|
|
917
|
+
},
|
|
918
|
+
credentials() {
|
|
919
|
+
return _credentials;
|
|
920
|
+
},
|
|
921
|
+
};
|
|
922
|
+
};
|
|
923
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
924
|
+
return {
|
|
925
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
926
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
927
|
+
credentials: config.credentials(),
|
|
928
|
+
};
|
|
929
|
+
};
|
|
1430
930
|
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
(
|
|
1434
|
-
(
|
|
1435
|
-
(0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
|
|
1436
|
-
clientStack: cs,
|
|
1437
|
-
isDiscoveredEndpointRequired: true,
|
|
1438
|
-
options: o
|
|
1439
|
-
})
|
|
1440
|
-
];
|
|
1441
|
-
}).s("Timestream_20181101", "TagResource", {}).n("TimestreamWriteClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1442
|
-
static {
|
|
1443
|
-
__name(this, "TagResourceCommand");
|
|
1444
|
-
}
|
|
931
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
932
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
933
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
934
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
1445
935
|
};
|
|
1446
936
|
|
|
1447
|
-
|
|
937
|
+
class TimestreamWriteClient extends smithyClient.Client {
|
|
938
|
+
config;
|
|
939
|
+
constructor(...[configuration]) {
|
|
940
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
941
|
+
super(_config_0);
|
|
942
|
+
this.initConfig = _config_0;
|
|
943
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
944
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
945
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
946
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
947
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
948
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
949
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
950
|
+
const _config_8 = middlewareEndpointDiscovery.resolveEndpointDiscoveryConfig(_config_7, {
|
|
951
|
+
endpointDiscoveryCommandCtor: DescribeEndpointsCommand,
|
|
952
|
+
});
|
|
953
|
+
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
954
|
+
this.config = _config_9;
|
|
955
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
956
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
957
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
958
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
959
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
960
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
961
|
+
this.middlewareStack.use(core$1.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
962
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultTimestreamWriteHttpAuthSchemeParametersProvider,
|
|
963
|
+
identityProviderConfigProvider: async (config) => new core$1.DefaultIdentityProviderConfig({
|
|
964
|
+
"aws.auth#sigv4": config.credentials,
|
|
965
|
+
}),
|
|
966
|
+
}));
|
|
967
|
+
this.middlewareStack.use(core$1.getHttpSigningPlugin(this.config));
|
|
968
|
+
}
|
|
969
|
+
destroy() {
|
|
970
|
+
super.destroy();
|
|
971
|
+
}
|
|
972
|
+
}
|
|
1448
973
|
|
|
974
|
+
class CreateBatchLoadTaskCommand extends smithyClient.Command
|
|
975
|
+
.classBuilder()
|
|
976
|
+
.ep(commonParams)
|
|
977
|
+
.m(function (Command, cs, config, o) {
|
|
978
|
+
return [
|
|
979
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
980
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
981
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
982
|
+
clientStack: cs,
|
|
983
|
+
isDiscoveredEndpointRequired: true,
|
|
984
|
+
options: o,
|
|
985
|
+
}),
|
|
986
|
+
];
|
|
987
|
+
})
|
|
988
|
+
.s("Timestream_20181101", "CreateBatchLoadTask", {})
|
|
989
|
+
.n("TimestreamWriteClient", "CreateBatchLoadTaskCommand")
|
|
990
|
+
.f(CreateBatchLoadTaskRequestFilterSensitiveLog, void 0)
|
|
991
|
+
.ser(se_CreateBatchLoadTaskCommand)
|
|
992
|
+
.de(de_CreateBatchLoadTaskCommand)
|
|
993
|
+
.build() {
|
|
994
|
+
}
|
|
1449
995
|
|
|
996
|
+
class CreateDatabaseCommand extends smithyClient.Command
|
|
997
|
+
.classBuilder()
|
|
998
|
+
.ep(commonParams)
|
|
999
|
+
.m(function (Command, cs, config, o) {
|
|
1000
|
+
return [
|
|
1001
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1002
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1003
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1004
|
+
clientStack: cs,
|
|
1005
|
+
isDiscoveredEndpointRequired: true,
|
|
1006
|
+
options: o,
|
|
1007
|
+
}),
|
|
1008
|
+
];
|
|
1009
|
+
})
|
|
1010
|
+
.s("Timestream_20181101", "CreateDatabase", {})
|
|
1011
|
+
.n("TimestreamWriteClient", "CreateDatabaseCommand")
|
|
1012
|
+
.f(void 0, void 0)
|
|
1013
|
+
.ser(se_CreateDatabaseCommand)
|
|
1014
|
+
.de(de_CreateDatabaseCommand)
|
|
1015
|
+
.build() {
|
|
1016
|
+
}
|
|
1450
1017
|
|
|
1018
|
+
class CreateTableCommand extends smithyClient.Command
|
|
1019
|
+
.classBuilder()
|
|
1020
|
+
.ep(commonParams)
|
|
1021
|
+
.m(function (Command, cs, config, o) {
|
|
1022
|
+
return [
|
|
1023
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1024
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1025
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1026
|
+
clientStack: cs,
|
|
1027
|
+
isDiscoveredEndpointRequired: true,
|
|
1028
|
+
options: o,
|
|
1029
|
+
}),
|
|
1030
|
+
];
|
|
1031
|
+
})
|
|
1032
|
+
.s("Timestream_20181101", "CreateTable", {})
|
|
1033
|
+
.n("TimestreamWriteClient", "CreateTableCommand")
|
|
1034
|
+
.f(void 0, void 0)
|
|
1035
|
+
.ser(se_CreateTableCommand)
|
|
1036
|
+
.de(de_CreateTableCommand)
|
|
1037
|
+
.build() {
|
|
1038
|
+
}
|
|
1451
1039
|
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
(
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
}
|
|
1040
|
+
class DeleteDatabaseCommand extends smithyClient.Command
|
|
1041
|
+
.classBuilder()
|
|
1042
|
+
.ep(commonParams)
|
|
1043
|
+
.m(function (Command, cs, config, o) {
|
|
1044
|
+
return [
|
|
1045
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1046
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1047
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1048
|
+
clientStack: cs,
|
|
1049
|
+
isDiscoveredEndpointRequired: true,
|
|
1050
|
+
options: o,
|
|
1051
|
+
}),
|
|
1052
|
+
];
|
|
1053
|
+
})
|
|
1054
|
+
.s("Timestream_20181101", "DeleteDatabase", {})
|
|
1055
|
+
.n("TimestreamWriteClient", "DeleteDatabaseCommand")
|
|
1056
|
+
.f(void 0, void 0)
|
|
1057
|
+
.ser(se_DeleteDatabaseCommand)
|
|
1058
|
+
.de(de_DeleteDatabaseCommand)
|
|
1059
|
+
.build() {
|
|
1060
|
+
}
|
|
1467
1061
|
|
|
1468
|
-
|
|
1062
|
+
class DeleteTableCommand extends smithyClient.Command
|
|
1063
|
+
.classBuilder()
|
|
1064
|
+
.ep(commonParams)
|
|
1065
|
+
.m(function (Command, cs, config, o) {
|
|
1066
|
+
return [
|
|
1067
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1068
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1069
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1070
|
+
clientStack: cs,
|
|
1071
|
+
isDiscoveredEndpointRequired: true,
|
|
1072
|
+
options: o,
|
|
1073
|
+
}),
|
|
1074
|
+
];
|
|
1075
|
+
})
|
|
1076
|
+
.s("Timestream_20181101", "DeleteTable", {})
|
|
1077
|
+
.n("TimestreamWriteClient", "DeleteTableCommand")
|
|
1078
|
+
.f(void 0, void 0)
|
|
1079
|
+
.ser(se_DeleteTableCommand)
|
|
1080
|
+
.de(de_DeleteTableCommand)
|
|
1081
|
+
.build() {
|
|
1082
|
+
}
|
|
1469
1083
|
|
|
1084
|
+
class DescribeBatchLoadTaskCommand extends smithyClient.Command
|
|
1085
|
+
.classBuilder()
|
|
1086
|
+
.ep(commonParams)
|
|
1087
|
+
.m(function (Command, cs, config, o) {
|
|
1088
|
+
return [
|
|
1089
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1090
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1091
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1092
|
+
clientStack: cs,
|
|
1093
|
+
isDiscoveredEndpointRequired: true,
|
|
1094
|
+
options: o,
|
|
1095
|
+
}),
|
|
1096
|
+
];
|
|
1097
|
+
})
|
|
1098
|
+
.s("Timestream_20181101", "DescribeBatchLoadTask", {})
|
|
1099
|
+
.n("TimestreamWriteClient", "DescribeBatchLoadTaskCommand")
|
|
1100
|
+
.f(void 0, void 0)
|
|
1101
|
+
.ser(se_DescribeBatchLoadTaskCommand)
|
|
1102
|
+
.de(de_DescribeBatchLoadTaskCommand)
|
|
1103
|
+
.build() {
|
|
1104
|
+
}
|
|
1470
1105
|
|
|
1106
|
+
class DescribeDatabaseCommand extends smithyClient.Command
|
|
1107
|
+
.classBuilder()
|
|
1108
|
+
.ep(commonParams)
|
|
1109
|
+
.m(function (Command, cs, config, o) {
|
|
1110
|
+
return [
|
|
1111
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1112
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1113
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1114
|
+
clientStack: cs,
|
|
1115
|
+
isDiscoveredEndpointRequired: true,
|
|
1116
|
+
options: o,
|
|
1117
|
+
}),
|
|
1118
|
+
];
|
|
1119
|
+
})
|
|
1120
|
+
.s("Timestream_20181101", "DescribeDatabase", {})
|
|
1121
|
+
.n("TimestreamWriteClient", "DescribeDatabaseCommand")
|
|
1122
|
+
.f(void 0, void 0)
|
|
1123
|
+
.ser(se_DescribeDatabaseCommand)
|
|
1124
|
+
.de(de_DescribeDatabaseCommand)
|
|
1125
|
+
.build() {
|
|
1126
|
+
}
|
|
1471
1127
|
|
|
1128
|
+
class DescribeTableCommand extends smithyClient.Command
|
|
1129
|
+
.classBuilder()
|
|
1130
|
+
.ep(commonParams)
|
|
1131
|
+
.m(function (Command, cs, config, o) {
|
|
1132
|
+
return [
|
|
1133
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1134
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1135
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1136
|
+
clientStack: cs,
|
|
1137
|
+
isDiscoveredEndpointRequired: true,
|
|
1138
|
+
options: o,
|
|
1139
|
+
}),
|
|
1140
|
+
];
|
|
1141
|
+
})
|
|
1142
|
+
.s("Timestream_20181101", "DescribeTable", {})
|
|
1143
|
+
.n("TimestreamWriteClient", "DescribeTableCommand")
|
|
1144
|
+
.f(void 0, void 0)
|
|
1145
|
+
.ser(se_DescribeTableCommand)
|
|
1146
|
+
.de(de_DescribeTableCommand)
|
|
1147
|
+
.build() {
|
|
1148
|
+
}
|
|
1472
1149
|
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
(
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
}
|
|
1150
|
+
class ListBatchLoadTasksCommand extends smithyClient.Command
|
|
1151
|
+
.classBuilder()
|
|
1152
|
+
.ep(commonParams)
|
|
1153
|
+
.m(function (Command, cs, config, o) {
|
|
1154
|
+
return [
|
|
1155
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1156
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1157
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1158
|
+
clientStack: cs,
|
|
1159
|
+
isDiscoveredEndpointRequired: true,
|
|
1160
|
+
options: o,
|
|
1161
|
+
}),
|
|
1162
|
+
];
|
|
1163
|
+
})
|
|
1164
|
+
.s("Timestream_20181101", "ListBatchLoadTasks", {})
|
|
1165
|
+
.n("TimestreamWriteClient", "ListBatchLoadTasksCommand")
|
|
1166
|
+
.f(void 0, void 0)
|
|
1167
|
+
.ser(se_ListBatchLoadTasksCommand)
|
|
1168
|
+
.de(de_ListBatchLoadTasksCommand)
|
|
1169
|
+
.build() {
|
|
1170
|
+
}
|
|
1488
1171
|
|
|
1489
|
-
|
|
1172
|
+
class ListDatabasesCommand extends smithyClient.Command
|
|
1173
|
+
.classBuilder()
|
|
1174
|
+
.ep(commonParams)
|
|
1175
|
+
.m(function (Command, cs, config, o) {
|
|
1176
|
+
return [
|
|
1177
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1178
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1179
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1180
|
+
clientStack: cs,
|
|
1181
|
+
isDiscoveredEndpointRequired: true,
|
|
1182
|
+
options: o,
|
|
1183
|
+
}),
|
|
1184
|
+
];
|
|
1185
|
+
})
|
|
1186
|
+
.s("Timestream_20181101", "ListDatabases", {})
|
|
1187
|
+
.n("TimestreamWriteClient", "ListDatabasesCommand")
|
|
1188
|
+
.f(void 0, void 0)
|
|
1189
|
+
.ser(se_ListDatabasesCommand)
|
|
1190
|
+
.de(de_ListDatabasesCommand)
|
|
1191
|
+
.build() {
|
|
1192
|
+
}
|
|
1490
1193
|
|
|
1194
|
+
class ListTablesCommand extends smithyClient.Command
|
|
1195
|
+
.classBuilder()
|
|
1196
|
+
.ep(commonParams)
|
|
1197
|
+
.m(function (Command, cs, config, o) {
|
|
1198
|
+
return [
|
|
1199
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1200
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1201
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1202
|
+
clientStack: cs,
|
|
1203
|
+
isDiscoveredEndpointRequired: true,
|
|
1204
|
+
options: o,
|
|
1205
|
+
}),
|
|
1206
|
+
];
|
|
1207
|
+
})
|
|
1208
|
+
.s("Timestream_20181101", "ListTables", {})
|
|
1209
|
+
.n("TimestreamWriteClient", "ListTablesCommand")
|
|
1210
|
+
.f(void 0, void 0)
|
|
1211
|
+
.ser(se_ListTablesCommand)
|
|
1212
|
+
.de(de_ListTablesCommand)
|
|
1213
|
+
.build() {
|
|
1214
|
+
}
|
|
1491
1215
|
|
|
1216
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1217
|
+
.classBuilder()
|
|
1218
|
+
.ep(commonParams)
|
|
1219
|
+
.m(function (Command, cs, config, o) {
|
|
1220
|
+
return [
|
|
1221
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1222
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1223
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1224
|
+
clientStack: cs,
|
|
1225
|
+
isDiscoveredEndpointRequired: true,
|
|
1226
|
+
options: o,
|
|
1227
|
+
}),
|
|
1228
|
+
];
|
|
1229
|
+
})
|
|
1230
|
+
.s("Timestream_20181101", "ListTagsForResource", {})
|
|
1231
|
+
.n("TimestreamWriteClient", "ListTagsForResourceCommand")
|
|
1232
|
+
.f(void 0, void 0)
|
|
1233
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1234
|
+
.de(de_ListTagsForResourceCommand)
|
|
1235
|
+
.build() {
|
|
1236
|
+
}
|
|
1492
1237
|
|
|
1238
|
+
class ResumeBatchLoadTaskCommand extends smithyClient.Command
|
|
1239
|
+
.classBuilder()
|
|
1240
|
+
.ep(commonParams)
|
|
1241
|
+
.m(function (Command, cs, config, o) {
|
|
1242
|
+
return [
|
|
1243
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1244
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1245
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1246
|
+
clientStack: cs,
|
|
1247
|
+
isDiscoveredEndpointRequired: true,
|
|
1248
|
+
options: o,
|
|
1249
|
+
}),
|
|
1250
|
+
];
|
|
1251
|
+
})
|
|
1252
|
+
.s("Timestream_20181101", "ResumeBatchLoadTask", {})
|
|
1253
|
+
.n("TimestreamWriteClient", "ResumeBatchLoadTaskCommand")
|
|
1254
|
+
.f(void 0, void 0)
|
|
1255
|
+
.ser(se_ResumeBatchLoadTaskCommand)
|
|
1256
|
+
.de(de_ResumeBatchLoadTaskCommand)
|
|
1257
|
+
.build() {
|
|
1258
|
+
}
|
|
1493
1259
|
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
(
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
}
|
|
1260
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1261
|
+
.classBuilder()
|
|
1262
|
+
.ep(commonParams)
|
|
1263
|
+
.m(function (Command, cs, config, o) {
|
|
1264
|
+
return [
|
|
1265
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1266
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1267
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1268
|
+
clientStack: cs,
|
|
1269
|
+
isDiscoveredEndpointRequired: true,
|
|
1270
|
+
options: o,
|
|
1271
|
+
}),
|
|
1272
|
+
];
|
|
1273
|
+
})
|
|
1274
|
+
.s("Timestream_20181101", "TagResource", {})
|
|
1275
|
+
.n("TimestreamWriteClient", "TagResourceCommand")
|
|
1276
|
+
.f(void 0, void 0)
|
|
1277
|
+
.ser(se_TagResourceCommand)
|
|
1278
|
+
.de(de_TagResourceCommand)
|
|
1279
|
+
.build() {
|
|
1280
|
+
}
|
|
1509
1281
|
|
|
1510
|
-
|
|
1282
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1283
|
+
.classBuilder()
|
|
1284
|
+
.ep(commonParams)
|
|
1285
|
+
.m(function (Command, cs, config, o) {
|
|
1286
|
+
return [
|
|
1287
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1288
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1289
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1290
|
+
clientStack: cs,
|
|
1291
|
+
isDiscoveredEndpointRequired: true,
|
|
1292
|
+
options: o,
|
|
1293
|
+
}),
|
|
1294
|
+
];
|
|
1295
|
+
})
|
|
1296
|
+
.s("Timestream_20181101", "UntagResource", {})
|
|
1297
|
+
.n("TimestreamWriteClient", "UntagResourceCommand")
|
|
1298
|
+
.f(void 0, void 0)
|
|
1299
|
+
.ser(se_UntagResourceCommand)
|
|
1300
|
+
.de(de_UntagResourceCommand)
|
|
1301
|
+
.build() {
|
|
1302
|
+
}
|
|
1511
1303
|
|
|
1304
|
+
class UpdateDatabaseCommand extends smithyClient.Command
|
|
1305
|
+
.classBuilder()
|
|
1306
|
+
.ep(commonParams)
|
|
1307
|
+
.m(function (Command, cs, config, o) {
|
|
1308
|
+
return [
|
|
1309
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1310
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1311
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1312
|
+
clientStack: cs,
|
|
1313
|
+
isDiscoveredEndpointRequired: true,
|
|
1314
|
+
options: o,
|
|
1315
|
+
}),
|
|
1316
|
+
];
|
|
1317
|
+
})
|
|
1318
|
+
.s("Timestream_20181101", "UpdateDatabase", {})
|
|
1319
|
+
.n("TimestreamWriteClient", "UpdateDatabaseCommand")
|
|
1320
|
+
.f(void 0, void 0)
|
|
1321
|
+
.ser(se_UpdateDatabaseCommand)
|
|
1322
|
+
.de(de_UpdateDatabaseCommand)
|
|
1323
|
+
.build() {
|
|
1324
|
+
}
|
|
1512
1325
|
|
|
1326
|
+
class UpdateTableCommand extends smithyClient.Command
|
|
1327
|
+
.classBuilder()
|
|
1328
|
+
.ep(commonParams)
|
|
1329
|
+
.m(function (Command, cs, config, o) {
|
|
1330
|
+
return [
|
|
1331
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1332
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1333
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1334
|
+
clientStack: cs,
|
|
1335
|
+
isDiscoveredEndpointRequired: true,
|
|
1336
|
+
options: o,
|
|
1337
|
+
}),
|
|
1338
|
+
];
|
|
1339
|
+
})
|
|
1340
|
+
.s("Timestream_20181101", "UpdateTable", {})
|
|
1341
|
+
.n("TimestreamWriteClient", "UpdateTableCommand")
|
|
1342
|
+
.f(void 0, void 0)
|
|
1343
|
+
.ser(se_UpdateTableCommand)
|
|
1344
|
+
.de(de_UpdateTableCommand)
|
|
1345
|
+
.build() {
|
|
1346
|
+
}
|
|
1513
1347
|
|
|
1348
|
+
class WriteRecordsCommand extends smithyClient.Command
|
|
1349
|
+
.classBuilder()
|
|
1350
|
+
.ep(commonParams)
|
|
1351
|
+
.m(function (Command, cs, config, o) {
|
|
1352
|
+
return [
|
|
1353
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1354
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1355
|
+
middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
|
|
1356
|
+
clientStack: cs,
|
|
1357
|
+
isDiscoveredEndpointRequired: true,
|
|
1358
|
+
options: o,
|
|
1359
|
+
}),
|
|
1360
|
+
];
|
|
1361
|
+
})
|
|
1362
|
+
.s("Timestream_20181101", "WriteRecords", {})
|
|
1363
|
+
.n("TimestreamWriteClient", "WriteRecordsCommand")
|
|
1364
|
+
.f(void 0, void 0)
|
|
1365
|
+
.ser(se_WriteRecordsCommand)
|
|
1366
|
+
.de(de_WriteRecordsCommand)
|
|
1367
|
+
.build() {
|
|
1368
|
+
}
|
|
1514
1369
|
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1370
|
+
const commands = {
|
|
1371
|
+
CreateBatchLoadTaskCommand,
|
|
1372
|
+
CreateDatabaseCommand,
|
|
1373
|
+
CreateTableCommand,
|
|
1374
|
+
DeleteDatabaseCommand,
|
|
1375
|
+
DeleteTableCommand,
|
|
1376
|
+
DescribeBatchLoadTaskCommand,
|
|
1377
|
+
DescribeDatabaseCommand,
|
|
1378
|
+
DescribeEndpointsCommand,
|
|
1379
|
+
DescribeTableCommand,
|
|
1380
|
+
ListBatchLoadTasksCommand,
|
|
1381
|
+
ListDatabasesCommand,
|
|
1382
|
+
ListTablesCommand,
|
|
1383
|
+
ListTagsForResourceCommand,
|
|
1384
|
+
ResumeBatchLoadTaskCommand,
|
|
1385
|
+
TagResourceCommand,
|
|
1386
|
+
UntagResourceCommand,
|
|
1387
|
+
UpdateDatabaseCommand,
|
|
1388
|
+
UpdateTableCommand,
|
|
1389
|
+
WriteRecordsCommand,
|
|
1529
1390
|
};
|
|
1391
|
+
class TimestreamWrite extends TimestreamWriteClient {
|
|
1392
|
+
}
|
|
1393
|
+
smithyClient.createAggregatedClient(commands, TimestreamWrite);
|
|
1530
1394
|
|
|
1531
|
-
|
|
1532
|
-
var commands = {
|
|
1533
|
-
CreateBatchLoadTaskCommand,
|
|
1534
|
-
CreateDatabaseCommand,
|
|
1535
|
-
CreateTableCommand,
|
|
1536
|
-
DeleteDatabaseCommand,
|
|
1537
|
-
DeleteTableCommand,
|
|
1538
|
-
DescribeBatchLoadTaskCommand,
|
|
1539
|
-
DescribeDatabaseCommand,
|
|
1540
|
-
DescribeEndpointsCommand,
|
|
1541
|
-
DescribeTableCommand,
|
|
1542
|
-
ListBatchLoadTasksCommand,
|
|
1543
|
-
ListDatabasesCommand,
|
|
1544
|
-
ListTablesCommand,
|
|
1545
|
-
ListTagsForResourceCommand,
|
|
1546
|
-
ResumeBatchLoadTaskCommand,
|
|
1547
|
-
TagResourceCommand,
|
|
1548
|
-
UntagResourceCommand,
|
|
1549
|
-
UpdateDatabaseCommand,
|
|
1550
|
-
UpdateTableCommand,
|
|
1551
|
-
WriteRecordsCommand
|
|
1552
|
-
};
|
|
1553
|
-
var TimestreamWrite = class extends TimestreamWriteClient {
|
|
1554
|
-
static {
|
|
1555
|
-
__name(this, "TimestreamWrite");
|
|
1556
|
-
}
|
|
1557
|
-
};
|
|
1558
|
-
(0, import_smithy_client.createAggregatedClient)(commands, TimestreamWrite);
|
|
1559
|
-
|
|
1560
|
-
// src/pagination/ListBatchLoadTasksPaginator.ts
|
|
1561
|
-
var import_core3 = require("@smithy/core");
|
|
1562
|
-
var paginateListBatchLoadTasks = (0, import_core3.createPaginator)(TimestreamWriteClient, ListBatchLoadTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
1395
|
+
const paginateListBatchLoadTasks = core$1.createPaginator(TimestreamWriteClient, ListBatchLoadTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
1563
1396
|
|
|
1564
|
-
|
|
1565
|
-
var import_core4 = require("@smithy/core");
|
|
1566
|
-
var paginateListDatabases = (0, import_core4.createPaginator)(TimestreamWriteClient, ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1397
|
+
const paginateListDatabases = core$1.createPaginator(TimestreamWriteClient, ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1567
1398
|
|
|
1568
|
-
|
|
1569
|
-
var import_core5 = require("@smithy/core");
|
|
1570
|
-
var paginateListTables = (0, import_core5.createPaginator)(TimestreamWriteClient, ListTablesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1571
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1399
|
+
const paginateListTables = core$1.createPaginator(TimestreamWriteClient, ListTablesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1572
1400
|
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
TimestreamWriteClient,
|
|
1577
|
-
TimestreamWrite,
|
|
1578
|
-
$Command,
|
|
1579
|
-
CreateBatchLoadTaskCommand,
|
|
1580
|
-
CreateDatabaseCommand,
|
|
1581
|
-
CreateTableCommand,
|
|
1582
|
-
DeleteDatabaseCommand,
|
|
1583
|
-
DeleteTableCommand,
|
|
1584
|
-
DescribeBatchLoadTaskCommand,
|
|
1585
|
-
DescribeDatabaseCommand,
|
|
1586
|
-
DescribeEndpointsCommand,
|
|
1587
|
-
DescribeTableCommand,
|
|
1588
|
-
ListBatchLoadTasksCommand,
|
|
1589
|
-
ListDatabasesCommand,
|
|
1590
|
-
ListTablesCommand,
|
|
1591
|
-
ListTagsForResourceCommand,
|
|
1592
|
-
ResumeBatchLoadTaskCommand,
|
|
1593
|
-
TagResourceCommand,
|
|
1594
|
-
UntagResourceCommand,
|
|
1595
|
-
UpdateDatabaseCommand,
|
|
1596
|
-
UpdateTableCommand,
|
|
1597
|
-
WriteRecordsCommand,
|
|
1598
|
-
paginateListBatchLoadTasks,
|
|
1599
|
-
paginateListDatabases,
|
|
1600
|
-
paginateListTables,
|
|
1601
|
-
AccessDeniedException,
|
|
1602
|
-
BatchLoadDataFormat,
|
|
1603
|
-
BatchLoadStatus,
|
|
1604
|
-
MeasureValueType,
|
|
1605
|
-
ScalarMeasureValueType,
|
|
1606
|
-
TimeUnit,
|
|
1607
|
-
S3EncryptionOption,
|
|
1608
|
-
ConflictException,
|
|
1609
|
-
InternalServerException,
|
|
1610
|
-
InvalidEndpointException,
|
|
1611
|
-
ResourceNotFoundException,
|
|
1612
|
-
ServiceQuotaExceededException,
|
|
1613
|
-
ThrottlingException,
|
|
1614
|
-
ValidationException,
|
|
1615
|
-
PartitionKeyEnforcementLevel,
|
|
1616
|
-
PartitionKeyType,
|
|
1617
|
-
TableStatus,
|
|
1618
|
-
DimensionValueType,
|
|
1619
|
-
RejectedRecordsException,
|
|
1620
|
-
CreateBatchLoadTaskRequestFilterSensitiveLog
|
|
1401
|
+
Object.defineProperty(exports, "$Command", {
|
|
1402
|
+
enumerable: true,
|
|
1403
|
+
get: function () { return smithyClient.Command; }
|
|
1621
1404
|
});
|
|
1622
|
-
|
|
1405
|
+
Object.defineProperty(exports, "__Client", {
|
|
1406
|
+
enumerable: true,
|
|
1407
|
+
get: function () { return smithyClient.Client; }
|
|
1408
|
+
});
|
|
1409
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1410
|
+
exports.BatchLoadDataFormat = BatchLoadDataFormat;
|
|
1411
|
+
exports.BatchLoadStatus = BatchLoadStatus;
|
|
1412
|
+
exports.ConflictException = ConflictException;
|
|
1413
|
+
exports.CreateBatchLoadTaskCommand = CreateBatchLoadTaskCommand;
|
|
1414
|
+
exports.CreateBatchLoadTaskRequestFilterSensitiveLog = CreateBatchLoadTaskRequestFilterSensitiveLog;
|
|
1415
|
+
exports.CreateDatabaseCommand = CreateDatabaseCommand;
|
|
1416
|
+
exports.CreateTableCommand = CreateTableCommand;
|
|
1417
|
+
exports.DeleteDatabaseCommand = DeleteDatabaseCommand;
|
|
1418
|
+
exports.DeleteTableCommand = DeleteTableCommand;
|
|
1419
|
+
exports.DescribeBatchLoadTaskCommand = DescribeBatchLoadTaskCommand;
|
|
1420
|
+
exports.DescribeDatabaseCommand = DescribeDatabaseCommand;
|
|
1421
|
+
exports.DescribeEndpointsCommand = DescribeEndpointsCommand;
|
|
1422
|
+
exports.DescribeTableCommand = DescribeTableCommand;
|
|
1423
|
+
exports.DimensionValueType = DimensionValueType;
|
|
1424
|
+
exports.InternalServerException = InternalServerException;
|
|
1425
|
+
exports.InvalidEndpointException = InvalidEndpointException;
|
|
1426
|
+
exports.ListBatchLoadTasksCommand = ListBatchLoadTasksCommand;
|
|
1427
|
+
exports.ListDatabasesCommand = ListDatabasesCommand;
|
|
1428
|
+
exports.ListTablesCommand = ListTablesCommand;
|
|
1429
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1430
|
+
exports.MeasureValueType = MeasureValueType;
|
|
1431
|
+
exports.PartitionKeyEnforcementLevel = PartitionKeyEnforcementLevel;
|
|
1432
|
+
exports.PartitionKeyType = PartitionKeyType;
|
|
1433
|
+
exports.RejectedRecordsException = RejectedRecordsException;
|
|
1434
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1435
|
+
exports.ResumeBatchLoadTaskCommand = ResumeBatchLoadTaskCommand;
|
|
1436
|
+
exports.S3EncryptionOption = S3EncryptionOption;
|
|
1437
|
+
exports.ScalarMeasureValueType = ScalarMeasureValueType;
|
|
1438
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1439
|
+
exports.TableStatus = TableStatus;
|
|
1440
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1441
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1442
|
+
exports.TimeUnit = TimeUnit;
|
|
1443
|
+
exports.TimestreamWrite = TimestreamWrite;
|
|
1444
|
+
exports.TimestreamWriteClient = TimestreamWriteClient;
|
|
1445
|
+
exports.TimestreamWriteServiceException = TimestreamWriteServiceException;
|
|
1446
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1447
|
+
exports.UpdateDatabaseCommand = UpdateDatabaseCommand;
|
|
1448
|
+
exports.UpdateTableCommand = UpdateTableCommand;
|
|
1449
|
+
exports.ValidationException = ValidationException;
|
|
1450
|
+
exports.WriteRecordsCommand = WriteRecordsCommand;
|
|
1451
|
+
exports.paginateListBatchLoadTasks = paginateListBatchLoadTasks;
|
|
1452
|
+
exports.paginateListDatabases = paginateListDatabases;
|
|
1453
|
+
exports.paginateListTables = paginateListTables;
|