@aws-sdk/client-timestream-write 3.1068.0 → 3.1069.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/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +120 -140
- package/dist-cjs/models/TimestreamWriteServiceException.js +4 -8
- package/dist-cjs/models/errors.js +19 -31
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +32 -36
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +219 -147
- package/package.json +9 -9
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const client_1 = require("@smithy/core/client");
|
|
6
|
-
const defaultTimestreamWriteHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
1
|
+
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
+
exports.defaultTimestreamWriteHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
4
|
return {
|
|
8
|
-
operation:
|
|
9
|
-
region: await
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
10
7
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
8
|
})(),
|
|
12
9
|
};
|
|
13
10
|
};
|
|
14
|
-
exports.defaultTimestreamWriteHttpAuthSchemeParametersProvider = defaultTimestreamWriteHttpAuthSchemeParametersProvider;
|
|
15
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
16
12
|
return {
|
|
17
13
|
schemeId: "aws.auth#sigv4",
|
|
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
27
23
|
}),
|
|
28
24
|
};
|
|
29
25
|
}
|
|
30
|
-
|
|
26
|
+
exports.defaultTimestreamWriteHttpAuthSchemeProvider = (authParameters) => {
|
|
31
27
|
const options = [];
|
|
32
28
|
switch (authParameters.operation) {
|
|
33
29
|
default: {
|
|
@@ -36,11 +32,9 @@ const defaultTimestreamWriteHttpAuthSchemeProvider = (authParameters) => {
|
|
|
36
32
|
}
|
|
37
33
|
return options;
|
|
38
34
|
};
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
35
|
+
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
42
37
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference:
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
44
39
|
});
|
|
45
40
|
};
|
|
46
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
1
|
+
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
5
2
|
const m = "ref";
|
|
6
3
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { "fn": f, "argv": [i, "name"] }, k = {}, l = [{ [m]: "Region" }];
|
|
7
4
|
const _data = {
|
|
@@ -56,4 +53,4 @@ const nodes = new Int32Array([
|
|
|
56
53
|
3, r + 1, 18,
|
|
57
54
|
4, r + 2, r + 3,
|
|
58
55
|
]);
|
|
59
|
-
exports.bdd =
|
|
56
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new endpoints_1.EndpointCache({
|
|
1
|
+
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
+
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
+
const { bdd } = require("./bdd");
|
|
4
|
+
const cache = new EndpointCache({
|
|
8
5
|
size: 50,
|
|
9
6
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
8
|
+
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
13
10
|
endpointParams: endpointParams,
|
|
14
11
|
logger: context.logger,
|
|
15
12
|
}));
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { resolveEndpointDiscoveryConfig, getEndpointDiscoveryPlugin } = require("@aws-sdk/middleware-endpoint-discovery");
|
|
4
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
5
|
+
const { Command, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, createAggregatedClient } = require("@smithy/core/client");
|
|
6
|
+
exports.$Command = Command;
|
|
7
|
+
exports.__Client = Client;
|
|
8
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
9
|
+
const { getEndpointPlugin, resolveEndpointConfig } = require("@smithy/core/endpoints");
|
|
10
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
11
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
12
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
13
|
+
const { resolveHttpAuthSchemeConfig, defaultTimestreamWriteHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
14
|
+
const { DescribeEndpoints$, CreateBatchLoadTask$, CreateDatabase$, CreateTable$, DeleteDatabase$, DeleteTable$, DescribeBatchLoadTask$, DescribeDatabase$, DescribeTable$, ListBatchLoadTasks$, ListDatabases$, ListTables$, ListTagsForResource$, ResumeBatchLoadTask$, TagResource$, UntagResource$, UpdateDatabase$, UpdateTable$, WriteRecords$ } = require("./schemas/schemas_0");
|
|
15
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
16
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
17
|
+
__exportStar(require("./models/errors"), exports);
|
|
18
|
+
const { TimestreamWriteServiceException } = require("./models/TimestreamWriteServiceException");
|
|
19
|
+
exports.TimestreamWriteServiceException = TimestreamWriteServiceException;
|
|
17
20
|
|
|
18
21
|
const resolveClientEndpointParameters = (options) => {
|
|
19
22
|
return Object.assign(options, {
|
|
@@ -29,15 +32,15 @@ const commonParams = {
|
|
|
29
32
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
30
33
|
};
|
|
31
34
|
|
|
32
|
-
class DescribeEndpointsCommand extends
|
|
35
|
+
class DescribeEndpointsCommand extends Command
|
|
33
36
|
.classBuilder()
|
|
34
37
|
.ep(commonParams)
|
|
35
38
|
.m(function (Command, cs, config, o) {
|
|
36
|
-
return [
|
|
39
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
37
40
|
})
|
|
38
41
|
.s("Timestream_20181101", "DescribeEndpoints", {})
|
|
39
42
|
.n("TimestreamWriteClient", "DescribeEndpointsCommand")
|
|
40
|
-
.sc(
|
|
43
|
+
.sc(DescribeEndpoints$)
|
|
41
44
|
.build() {
|
|
42
45
|
}
|
|
43
46
|
|
|
@@ -81,54 +84,54 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
81
84
|
};
|
|
82
85
|
|
|
83
86
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
84
|
-
const extensionConfiguration = Object.assign(
|
|
87
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
85
88
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
86
|
-
return Object.assign(runtimeConfig,
|
|
89
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
87
90
|
};
|
|
88
91
|
|
|
89
|
-
class TimestreamWriteClient extends
|
|
92
|
+
class TimestreamWriteClient extends Client {
|
|
90
93
|
config;
|
|
91
94
|
constructor(...[configuration]) {
|
|
92
|
-
const _config_0 =
|
|
95
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
93
96
|
super(_config_0);
|
|
94
97
|
this.initConfig = _config_0;
|
|
95
98
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
96
|
-
const _config_2 =
|
|
97
|
-
const _config_3 =
|
|
98
|
-
const _config_4 =
|
|
99
|
-
const _config_5 =
|
|
100
|
-
const _config_6 =
|
|
101
|
-
const _config_7 =
|
|
102
|
-
const _config_8 =
|
|
99
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
100
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
101
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
102
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
103
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
104
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
105
|
+
const _config_8 = resolveEndpointDiscoveryConfig(_config_7, { endpointDiscoveryCommandCtor: DescribeEndpointsCommand });
|
|
103
106
|
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
104
107
|
this.config = _config_9;
|
|
105
|
-
this.middlewareStack.use(
|
|
106
|
-
this.middlewareStack.use(
|
|
107
|
-
this.middlewareStack.use(
|
|
108
|
-
this.middlewareStack.use(
|
|
109
|
-
this.middlewareStack.use(
|
|
110
|
-
this.middlewareStack.use(
|
|
111
|
-
this.middlewareStack.use(
|
|
112
|
-
this.middlewareStack.use(
|
|
113
|
-
httpAuthSchemeParametersProvider:
|
|
114
|
-
identityProviderConfigProvider: async (config) => new
|
|
108
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
109
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
110
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
111
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
112
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
113
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
114
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
115
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
116
|
+
httpAuthSchemeParametersProvider: defaultTimestreamWriteHttpAuthSchemeParametersProvider,
|
|
117
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
115
118
|
"aws.auth#sigv4": config.credentials,
|
|
116
119
|
}),
|
|
117
120
|
}));
|
|
118
|
-
this.middlewareStack.use(
|
|
121
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
119
122
|
}
|
|
120
123
|
destroy() {
|
|
121
124
|
super.destroy();
|
|
122
125
|
}
|
|
123
126
|
}
|
|
124
127
|
|
|
125
|
-
class CreateBatchLoadTaskCommand extends
|
|
128
|
+
class CreateBatchLoadTaskCommand extends Command
|
|
126
129
|
.classBuilder()
|
|
127
130
|
.ep(commonParams)
|
|
128
131
|
.m(function (Command, cs, config, o) {
|
|
129
132
|
return [
|
|
130
|
-
|
|
131
|
-
|
|
133
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
134
|
+
getEndpointDiscoveryPlugin(config, {
|
|
132
135
|
clientStack: cs,
|
|
133
136
|
isDiscoveredEndpointRequired: true,
|
|
134
137
|
options: o,
|
|
@@ -137,17 +140,17 @@ class CreateBatchLoadTaskCommand extends client.Command
|
|
|
137
140
|
})
|
|
138
141
|
.s("Timestream_20181101", "CreateBatchLoadTask", {})
|
|
139
142
|
.n("TimestreamWriteClient", "CreateBatchLoadTaskCommand")
|
|
140
|
-
.sc(
|
|
143
|
+
.sc(CreateBatchLoadTask$)
|
|
141
144
|
.build() {
|
|
142
145
|
}
|
|
143
146
|
|
|
144
|
-
class CreateDatabaseCommand extends
|
|
147
|
+
class CreateDatabaseCommand extends Command
|
|
145
148
|
.classBuilder()
|
|
146
149
|
.ep(commonParams)
|
|
147
150
|
.m(function (Command, cs, config, o) {
|
|
148
151
|
return [
|
|
149
|
-
|
|
150
|
-
|
|
152
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
153
|
+
getEndpointDiscoveryPlugin(config, {
|
|
151
154
|
clientStack: cs,
|
|
152
155
|
isDiscoveredEndpointRequired: true,
|
|
153
156
|
options: o,
|
|
@@ -156,17 +159,17 @@ class CreateDatabaseCommand extends client.Command
|
|
|
156
159
|
})
|
|
157
160
|
.s("Timestream_20181101", "CreateDatabase", {})
|
|
158
161
|
.n("TimestreamWriteClient", "CreateDatabaseCommand")
|
|
159
|
-
.sc(
|
|
162
|
+
.sc(CreateDatabase$)
|
|
160
163
|
.build() {
|
|
161
164
|
}
|
|
162
165
|
|
|
163
|
-
class CreateTableCommand extends
|
|
166
|
+
class CreateTableCommand extends Command
|
|
164
167
|
.classBuilder()
|
|
165
168
|
.ep(commonParams)
|
|
166
169
|
.m(function (Command, cs, config, o) {
|
|
167
170
|
return [
|
|
168
|
-
|
|
169
|
-
|
|
171
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
172
|
+
getEndpointDiscoveryPlugin(config, {
|
|
170
173
|
clientStack: cs,
|
|
171
174
|
isDiscoveredEndpointRequired: true,
|
|
172
175
|
options: o,
|
|
@@ -175,17 +178,17 @@ class CreateTableCommand extends client.Command
|
|
|
175
178
|
})
|
|
176
179
|
.s("Timestream_20181101", "CreateTable", {})
|
|
177
180
|
.n("TimestreamWriteClient", "CreateTableCommand")
|
|
178
|
-
.sc(
|
|
181
|
+
.sc(CreateTable$)
|
|
179
182
|
.build() {
|
|
180
183
|
}
|
|
181
184
|
|
|
182
|
-
class DeleteDatabaseCommand extends
|
|
185
|
+
class DeleteDatabaseCommand extends Command
|
|
183
186
|
.classBuilder()
|
|
184
187
|
.ep(commonParams)
|
|
185
188
|
.m(function (Command, cs, config, o) {
|
|
186
189
|
return [
|
|
187
|
-
|
|
188
|
-
|
|
190
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
191
|
+
getEndpointDiscoveryPlugin(config, {
|
|
189
192
|
clientStack: cs,
|
|
190
193
|
isDiscoveredEndpointRequired: true,
|
|
191
194
|
options: o,
|
|
@@ -194,17 +197,17 @@ class DeleteDatabaseCommand extends client.Command
|
|
|
194
197
|
})
|
|
195
198
|
.s("Timestream_20181101", "DeleteDatabase", {})
|
|
196
199
|
.n("TimestreamWriteClient", "DeleteDatabaseCommand")
|
|
197
|
-
.sc(
|
|
200
|
+
.sc(DeleteDatabase$)
|
|
198
201
|
.build() {
|
|
199
202
|
}
|
|
200
203
|
|
|
201
|
-
class DeleteTableCommand extends
|
|
204
|
+
class DeleteTableCommand extends Command
|
|
202
205
|
.classBuilder()
|
|
203
206
|
.ep(commonParams)
|
|
204
207
|
.m(function (Command, cs, config, o) {
|
|
205
208
|
return [
|
|
206
|
-
|
|
207
|
-
|
|
209
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
210
|
+
getEndpointDiscoveryPlugin(config, {
|
|
208
211
|
clientStack: cs,
|
|
209
212
|
isDiscoveredEndpointRequired: true,
|
|
210
213
|
options: o,
|
|
@@ -213,17 +216,17 @@ class DeleteTableCommand extends client.Command
|
|
|
213
216
|
})
|
|
214
217
|
.s("Timestream_20181101", "DeleteTable", {})
|
|
215
218
|
.n("TimestreamWriteClient", "DeleteTableCommand")
|
|
216
|
-
.sc(
|
|
219
|
+
.sc(DeleteTable$)
|
|
217
220
|
.build() {
|
|
218
221
|
}
|
|
219
222
|
|
|
220
|
-
class DescribeBatchLoadTaskCommand extends
|
|
223
|
+
class DescribeBatchLoadTaskCommand extends Command
|
|
221
224
|
.classBuilder()
|
|
222
225
|
.ep(commonParams)
|
|
223
226
|
.m(function (Command, cs, config, o) {
|
|
224
227
|
return [
|
|
225
|
-
|
|
226
|
-
|
|
228
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
229
|
+
getEndpointDiscoveryPlugin(config, {
|
|
227
230
|
clientStack: cs,
|
|
228
231
|
isDiscoveredEndpointRequired: true,
|
|
229
232
|
options: o,
|
|
@@ -232,17 +235,17 @@ class DescribeBatchLoadTaskCommand extends client.Command
|
|
|
232
235
|
})
|
|
233
236
|
.s("Timestream_20181101", "DescribeBatchLoadTask", {})
|
|
234
237
|
.n("TimestreamWriteClient", "DescribeBatchLoadTaskCommand")
|
|
235
|
-
.sc(
|
|
238
|
+
.sc(DescribeBatchLoadTask$)
|
|
236
239
|
.build() {
|
|
237
240
|
}
|
|
238
241
|
|
|
239
|
-
class DescribeDatabaseCommand extends
|
|
242
|
+
class DescribeDatabaseCommand extends Command
|
|
240
243
|
.classBuilder()
|
|
241
244
|
.ep(commonParams)
|
|
242
245
|
.m(function (Command, cs, config, o) {
|
|
243
246
|
return [
|
|
244
|
-
|
|
245
|
-
|
|
247
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
248
|
+
getEndpointDiscoveryPlugin(config, {
|
|
246
249
|
clientStack: cs,
|
|
247
250
|
isDiscoveredEndpointRequired: true,
|
|
248
251
|
options: o,
|
|
@@ -251,17 +254,17 @@ class DescribeDatabaseCommand extends client.Command
|
|
|
251
254
|
})
|
|
252
255
|
.s("Timestream_20181101", "DescribeDatabase", {})
|
|
253
256
|
.n("TimestreamWriteClient", "DescribeDatabaseCommand")
|
|
254
|
-
.sc(
|
|
257
|
+
.sc(DescribeDatabase$)
|
|
255
258
|
.build() {
|
|
256
259
|
}
|
|
257
260
|
|
|
258
|
-
class DescribeTableCommand extends
|
|
261
|
+
class DescribeTableCommand extends Command
|
|
259
262
|
.classBuilder()
|
|
260
263
|
.ep(commonParams)
|
|
261
264
|
.m(function (Command, cs, config, o) {
|
|
262
265
|
return [
|
|
263
|
-
|
|
264
|
-
|
|
266
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
267
|
+
getEndpointDiscoveryPlugin(config, {
|
|
265
268
|
clientStack: cs,
|
|
266
269
|
isDiscoveredEndpointRequired: true,
|
|
267
270
|
options: o,
|
|
@@ -270,17 +273,17 @@ class DescribeTableCommand extends client.Command
|
|
|
270
273
|
})
|
|
271
274
|
.s("Timestream_20181101", "DescribeTable", {})
|
|
272
275
|
.n("TimestreamWriteClient", "DescribeTableCommand")
|
|
273
|
-
.sc(
|
|
276
|
+
.sc(DescribeTable$)
|
|
274
277
|
.build() {
|
|
275
278
|
}
|
|
276
279
|
|
|
277
|
-
class ListBatchLoadTasksCommand extends
|
|
280
|
+
class ListBatchLoadTasksCommand extends Command
|
|
278
281
|
.classBuilder()
|
|
279
282
|
.ep(commonParams)
|
|
280
283
|
.m(function (Command, cs, config, o) {
|
|
281
284
|
return [
|
|
282
|
-
|
|
283
|
-
|
|
285
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
286
|
+
getEndpointDiscoveryPlugin(config, {
|
|
284
287
|
clientStack: cs,
|
|
285
288
|
isDiscoveredEndpointRequired: true,
|
|
286
289
|
options: o,
|
|
@@ -289,17 +292,17 @@ class ListBatchLoadTasksCommand extends client.Command
|
|
|
289
292
|
})
|
|
290
293
|
.s("Timestream_20181101", "ListBatchLoadTasks", {})
|
|
291
294
|
.n("TimestreamWriteClient", "ListBatchLoadTasksCommand")
|
|
292
|
-
.sc(
|
|
295
|
+
.sc(ListBatchLoadTasks$)
|
|
293
296
|
.build() {
|
|
294
297
|
}
|
|
295
298
|
|
|
296
|
-
class ListDatabasesCommand extends
|
|
299
|
+
class ListDatabasesCommand extends Command
|
|
297
300
|
.classBuilder()
|
|
298
301
|
.ep(commonParams)
|
|
299
302
|
.m(function (Command, cs, config, o) {
|
|
300
303
|
return [
|
|
301
|
-
|
|
302
|
-
|
|
304
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
305
|
+
getEndpointDiscoveryPlugin(config, {
|
|
303
306
|
clientStack: cs,
|
|
304
307
|
isDiscoveredEndpointRequired: true,
|
|
305
308
|
options: o,
|
|
@@ -308,17 +311,17 @@ class ListDatabasesCommand extends client.Command
|
|
|
308
311
|
})
|
|
309
312
|
.s("Timestream_20181101", "ListDatabases", {})
|
|
310
313
|
.n("TimestreamWriteClient", "ListDatabasesCommand")
|
|
311
|
-
.sc(
|
|
314
|
+
.sc(ListDatabases$)
|
|
312
315
|
.build() {
|
|
313
316
|
}
|
|
314
317
|
|
|
315
|
-
class ListTablesCommand extends
|
|
318
|
+
class ListTablesCommand extends Command
|
|
316
319
|
.classBuilder()
|
|
317
320
|
.ep(commonParams)
|
|
318
321
|
.m(function (Command, cs, config, o) {
|
|
319
322
|
return [
|
|
320
|
-
|
|
321
|
-
|
|
323
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
324
|
+
getEndpointDiscoveryPlugin(config, {
|
|
322
325
|
clientStack: cs,
|
|
323
326
|
isDiscoveredEndpointRequired: true,
|
|
324
327
|
options: o,
|
|
@@ -327,17 +330,17 @@ class ListTablesCommand extends client.Command
|
|
|
327
330
|
})
|
|
328
331
|
.s("Timestream_20181101", "ListTables", {})
|
|
329
332
|
.n("TimestreamWriteClient", "ListTablesCommand")
|
|
330
|
-
.sc(
|
|
333
|
+
.sc(ListTables$)
|
|
331
334
|
.build() {
|
|
332
335
|
}
|
|
333
336
|
|
|
334
|
-
class ListTagsForResourceCommand extends
|
|
337
|
+
class ListTagsForResourceCommand extends Command
|
|
335
338
|
.classBuilder()
|
|
336
339
|
.ep(commonParams)
|
|
337
340
|
.m(function (Command, cs, config, o) {
|
|
338
341
|
return [
|
|
339
|
-
|
|
340
|
-
|
|
342
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
343
|
+
getEndpointDiscoveryPlugin(config, {
|
|
341
344
|
clientStack: cs,
|
|
342
345
|
isDiscoveredEndpointRequired: true,
|
|
343
346
|
options: o,
|
|
@@ -346,17 +349,17 @@ class ListTagsForResourceCommand extends client.Command
|
|
|
346
349
|
})
|
|
347
350
|
.s("Timestream_20181101", "ListTagsForResource", {})
|
|
348
351
|
.n("TimestreamWriteClient", "ListTagsForResourceCommand")
|
|
349
|
-
.sc(
|
|
352
|
+
.sc(ListTagsForResource$)
|
|
350
353
|
.build() {
|
|
351
354
|
}
|
|
352
355
|
|
|
353
|
-
class ResumeBatchLoadTaskCommand extends
|
|
356
|
+
class ResumeBatchLoadTaskCommand extends Command
|
|
354
357
|
.classBuilder()
|
|
355
358
|
.ep(commonParams)
|
|
356
359
|
.m(function (Command, cs, config, o) {
|
|
357
360
|
return [
|
|
358
|
-
|
|
359
|
-
|
|
361
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
362
|
+
getEndpointDiscoveryPlugin(config, {
|
|
360
363
|
clientStack: cs,
|
|
361
364
|
isDiscoveredEndpointRequired: true,
|
|
362
365
|
options: o,
|
|
@@ -365,17 +368,17 @@ class ResumeBatchLoadTaskCommand extends client.Command
|
|
|
365
368
|
})
|
|
366
369
|
.s("Timestream_20181101", "ResumeBatchLoadTask", {})
|
|
367
370
|
.n("TimestreamWriteClient", "ResumeBatchLoadTaskCommand")
|
|
368
|
-
.sc(
|
|
371
|
+
.sc(ResumeBatchLoadTask$)
|
|
369
372
|
.build() {
|
|
370
373
|
}
|
|
371
374
|
|
|
372
|
-
class TagResourceCommand extends
|
|
375
|
+
class TagResourceCommand extends Command
|
|
373
376
|
.classBuilder()
|
|
374
377
|
.ep(commonParams)
|
|
375
378
|
.m(function (Command, cs, config, o) {
|
|
376
379
|
return [
|
|
377
|
-
|
|
378
|
-
|
|
380
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
381
|
+
getEndpointDiscoveryPlugin(config, {
|
|
379
382
|
clientStack: cs,
|
|
380
383
|
isDiscoveredEndpointRequired: true,
|
|
381
384
|
options: o,
|
|
@@ -384,17 +387,17 @@ class TagResourceCommand extends client.Command
|
|
|
384
387
|
})
|
|
385
388
|
.s("Timestream_20181101", "TagResource", {})
|
|
386
389
|
.n("TimestreamWriteClient", "TagResourceCommand")
|
|
387
|
-
.sc(
|
|
390
|
+
.sc(TagResource$)
|
|
388
391
|
.build() {
|
|
389
392
|
}
|
|
390
393
|
|
|
391
|
-
class UntagResourceCommand extends
|
|
394
|
+
class UntagResourceCommand extends Command
|
|
392
395
|
.classBuilder()
|
|
393
396
|
.ep(commonParams)
|
|
394
397
|
.m(function (Command, cs, config, o) {
|
|
395
398
|
return [
|
|
396
|
-
|
|
397
|
-
|
|
399
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
400
|
+
getEndpointDiscoveryPlugin(config, {
|
|
398
401
|
clientStack: cs,
|
|
399
402
|
isDiscoveredEndpointRequired: true,
|
|
400
403
|
options: o,
|
|
@@ -403,17 +406,17 @@ class UntagResourceCommand extends client.Command
|
|
|
403
406
|
})
|
|
404
407
|
.s("Timestream_20181101", "UntagResource", {})
|
|
405
408
|
.n("TimestreamWriteClient", "UntagResourceCommand")
|
|
406
|
-
.sc(
|
|
409
|
+
.sc(UntagResource$)
|
|
407
410
|
.build() {
|
|
408
411
|
}
|
|
409
412
|
|
|
410
|
-
class UpdateDatabaseCommand extends
|
|
413
|
+
class UpdateDatabaseCommand extends Command
|
|
411
414
|
.classBuilder()
|
|
412
415
|
.ep(commonParams)
|
|
413
416
|
.m(function (Command, cs, config, o) {
|
|
414
417
|
return [
|
|
415
|
-
|
|
416
|
-
|
|
418
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
419
|
+
getEndpointDiscoveryPlugin(config, {
|
|
417
420
|
clientStack: cs,
|
|
418
421
|
isDiscoveredEndpointRequired: true,
|
|
419
422
|
options: o,
|
|
@@ -422,17 +425,17 @@ class UpdateDatabaseCommand extends client.Command
|
|
|
422
425
|
})
|
|
423
426
|
.s("Timestream_20181101", "UpdateDatabase", {})
|
|
424
427
|
.n("TimestreamWriteClient", "UpdateDatabaseCommand")
|
|
425
|
-
.sc(
|
|
428
|
+
.sc(UpdateDatabase$)
|
|
426
429
|
.build() {
|
|
427
430
|
}
|
|
428
431
|
|
|
429
|
-
class UpdateTableCommand extends
|
|
432
|
+
class UpdateTableCommand extends Command
|
|
430
433
|
.classBuilder()
|
|
431
434
|
.ep(commonParams)
|
|
432
435
|
.m(function (Command, cs, config, o) {
|
|
433
436
|
return [
|
|
434
|
-
|
|
435
|
-
|
|
437
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
438
|
+
getEndpointDiscoveryPlugin(config, {
|
|
436
439
|
clientStack: cs,
|
|
437
440
|
isDiscoveredEndpointRequired: true,
|
|
438
441
|
options: o,
|
|
@@ -441,17 +444,17 @@ class UpdateTableCommand extends client.Command
|
|
|
441
444
|
})
|
|
442
445
|
.s("Timestream_20181101", "UpdateTable", {})
|
|
443
446
|
.n("TimestreamWriteClient", "UpdateTableCommand")
|
|
444
|
-
.sc(
|
|
447
|
+
.sc(UpdateTable$)
|
|
445
448
|
.build() {
|
|
446
449
|
}
|
|
447
450
|
|
|
448
|
-
class WriteRecordsCommand extends
|
|
451
|
+
class WriteRecordsCommand extends Command
|
|
449
452
|
.classBuilder()
|
|
450
453
|
.ep(commonParams)
|
|
451
454
|
.m(function (Command, cs, config, o) {
|
|
452
455
|
return [
|
|
453
|
-
|
|
454
|
-
|
|
456
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
457
|
+
getEndpointDiscoveryPlugin(config, {
|
|
455
458
|
clientStack: cs,
|
|
456
459
|
isDiscoveredEndpointRequired: true,
|
|
457
460
|
options: o,
|
|
@@ -460,15 +463,15 @@ class WriteRecordsCommand extends client.Command
|
|
|
460
463
|
})
|
|
461
464
|
.s("Timestream_20181101", "WriteRecords", {})
|
|
462
465
|
.n("TimestreamWriteClient", "WriteRecordsCommand")
|
|
463
|
-
.sc(
|
|
466
|
+
.sc(WriteRecords$)
|
|
464
467
|
.build() {
|
|
465
468
|
}
|
|
466
469
|
|
|
467
|
-
const paginateListBatchLoadTasks =
|
|
470
|
+
const paginateListBatchLoadTasks = createPaginator(TimestreamWriteClient, ListBatchLoadTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
468
471
|
|
|
469
|
-
const paginateListDatabases =
|
|
472
|
+
const paginateListDatabases = createPaginator(TimestreamWriteClient, ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
470
473
|
|
|
471
|
-
const paginateListTables =
|
|
474
|
+
const paginateListTables = createPaginator(TimestreamWriteClient, ListTablesCommand, "NextToken", "NextToken", "MaxResults");
|
|
472
475
|
|
|
473
476
|
const commands = {
|
|
474
477
|
CreateBatchLoadTaskCommand,
|
|
@@ -498,7 +501,7 @@ const paginators = {
|
|
|
498
501
|
};
|
|
499
502
|
class TimestreamWrite extends TimestreamWriteClient {
|
|
500
503
|
}
|
|
501
|
-
|
|
504
|
+
createAggregatedClient(commands, TimestreamWrite, { paginators });
|
|
502
505
|
|
|
503
506
|
const BatchLoadDataFormat = {
|
|
504
507
|
CSV: "CSV",
|
|
@@ -553,9 +556,6 @@ const DimensionValueType = {
|
|
|
553
556
|
VARCHAR: "VARCHAR",
|
|
554
557
|
};
|
|
555
558
|
|
|
556
|
-
exports.$Command = client.Command;
|
|
557
|
-
exports.__Client = client.Client;
|
|
558
|
-
exports.TimestreamWriteServiceException = TimestreamWriteServiceException.TimestreamWriteServiceException;
|
|
559
559
|
exports.BatchLoadDataFormat = BatchLoadDataFormat;
|
|
560
560
|
exports.BatchLoadStatus = BatchLoadStatus;
|
|
561
561
|
exports.CreateBatchLoadTaskCommand = CreateBatchLoadTaskCommand;
|
|
@@ -590,23 +590,3 @@ exports.WriteRecordsCommand = WriteRecordsCommand;
|
|
|
590
590
|
exports.paginateListBatchLoadTasks = paginateListBatchLoadTasks;
|
|
591
591
|
exports.paginateListDatabases = paginateListDatabases;
|
|
592
592
|
exports.paginateListTables = paginateListTables;
|
|
593
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
594
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
595
|
-
Object.defineProperty(exports, '__proto__', {
|
|
596
|
-
enumerable: true,
|
|
597
|
-
value: schemas_0['__proto__']
|
|
598
|
-
});
|
|
599
|
-
|
|
600
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
601
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
602
|
-
});
|
|
603
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
604
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
605
|
-
Object.defineProperty(exports, '__proto__', {
|
|
606
|
-
enumerable: true,
|
|
607
|
-
value: errors['__proto__']
|
|
608
|
-
});
|
|
609
|
-
|
|
610
|
-
Object.keys(errors).forEach(function (k) {
|
|
611
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
612
|
-
});
|