@aws-sdk/client-timestream-write 3.183.0 → 3.185.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_0.js +2 -2
  3. package/dist-es/TimestreamWrite.js +69 -62
  4. package/dist-es/TimestreamWriteClient.js +29 -23
  5. package/dist-es/commands/CreateDatabaseCommand.js +29 -22
  6. package/dist-es/commands/CreateTableCommand.js +29 -22
  7. package/dist-es/commands/DeleteDatabaseCommand.js +30 -23
  8. package/dist-es/commands/DeleteTableCommand.js +30 -23
  9. package/dist-es/commands/DescribeDatabaseCommand.js +29 -22
  10. package/dist-es/commands/DescribeEndpointsCommand.js +28 -21
  11. package/dist-es/commands/DescribeTableCommand.js +29 -22
  12. package/dist-es/commands/ListDatabasesCommand.js +29 -22
  13. package/dist-es/commands/ListTablesCommand.js +29 -22
  14. package/dist-es/commands/ListTagsForResourceCommand.js +29 -22
  15. package/dist-es/commands/TagResourceCommand.js +29 -22
  16. package/dist-es/commands/UntagResourceCommand.js +29 -22
  17. package/dist-es/commands/UpdateDatabaseCommand.js +29 -22
  18. package/dist-es/commands/UpdateTableCommand.js +29 -22
  19. package/dist-es/commands/WriteRecordsCommand.js +29 -22
  20. package/dist-es/endpoints.js +8 -8
  21. package/dist-es/models/TimestreamWriteServiceException.js +10 -5
  22. package/dist-es/models/models_0.js +151 -232
  23. package/dist-es/pagination/ListDatabasesPaginator.js +68 -25
  24. package/dist-es/pagination/ListTablesPaginator.js +68 -25
  25. package/dist-es/protocols/Aws_json1_0.js +1496 -1175
  26. package/dist-es/runtimeConfig.browser.js +12 -27
  27. package/dist-es/runtimeConfig.js +12 -31
  28. package/dist-es/runtimeConfig.native.js +5 -8
  29. package/dist-es/runtimeConfig.shared.js +11 -8
  30. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-timestream-write
@@ -1419,10 +1419,10 @@ const deserializeAws_json1_0WriteRecordsResponse = (output, context) => {
1419
1419
  };
1420
1420
  };
1421
1421
  const deserializeMetadata = (output) => {
1422
- var _a;
1422
+ var _a, _b;
1423
1423
  return ({
1424
1424
  httpStatusCode: output.statusCode,
1425
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
1425
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
1426
1426
  extendedRequestId: output.headers["x-amz-id-2"],
1427
1427
  cfId: output.headers["x-amz-cf-id"],
1428
1428
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CreateDatabaseCommand, } from "./commands/CreateDatabaseCommand";
2
3
  import { CreateTableCommand } from "./commands/CreateTableCommand";
3
4
  import { DeleteDatabaseCommand, } from "./commands/DeleteDatabaseCommand";
@@ -14,215 +15,221 @@ import { UpdateDatabaseCommand, } from "./commands/UpdateDatabaseCommand";
14
15
  import { UpdateTableCommand } from "./commands/UpdateTableCommand";
15
16
  import { WriteRecordsCommand, } from "./commands/WriteRecordsCommand";
16
17
  import { TimestreamWriteClient } from "./TimestreamWriteClient";
17
- export class TimestreamWrite extends TimestreamWriteClient {
18
- createDatabase(args, optionsOrCb, cb) {
19
- const command = new CreateDatabaseCommand(args);
18
+ var TimestreamWrite = (function (_super) {
19
+ __extends(TimestreamWrite, _super);
20
+ function TimestreamWrite() {
21
+ return _super !== null && _super.apply(this, arguments) || this;
22
+ }
23
+ TimestreamWrite.prototype.createDatabase = function (args, optionsOrCb, cb) {
24
+ var command = new CreateDatabaseCommand(args);
20
25
  if (typeof optionsOrCb === "function") {
21
26
  this.send(command, optionsOrCb);
22
27
  }
23
28
  else if (typeof cb === "function") {
24
29
  if (typeof optionsOrCb !== "object")
25
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
30
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
26
31
  this.send(command, optionsOrCb || {}, cb);
27
32
  }
28
33
  else {
29
34
  return this.send(command, optionsOrCb);
30
35
  }
31
- }
32
- createTable(args, optionsOrCb, cb) {
33
- const command = new CreateTableCommand(args);
36
+ };
37
+ TimestreamWrite.prototype.createTable = function (args, optionsOrCb, cb) {
38
+ var command = new CreateTableCommand(args);
34
39
  if (typeof optionsOrCb === "function") {
35
40
  this.send(command, optionsOrCb);
36
41
  }
37
42
  else if (typeof cb === "function") {
38
43
  if (typeof optionsOrCb !== "object")
39
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
44
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
40
45
  this.send(command, optionsOrCb || {}, cb);
41
46
  }
42
47
  else {
43
48
  return this.send(command, optionsOrCb);
44
49
  }
45
- }
46
- deleteDatabase(args, optionsOrCb, cb) {
47
- const command = new DeleteDatabaseCommand(args);
50
+ };
51
+ TimestreamWrite.prototype.deleteDatabase = function (args, optionsOrCb, cb) {
52
+ var command = new DeleteDatabaseCommand(args);
48
53
  if (typeof optionsOrCb === "function") {
49
54
  this.send(command, optionsOrCb);
50
55
  }
51
56
  else if (typeof cb === "function") {
52
57
  if (typeof optionsOrCb !== "object")
53
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
58
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
54
59
  this.send(command, optionsOrCb || {}, cb);
55
60
  }
56
61
  else {
57
62
  return this.send(command, optionsOrCb);
58
63
  }
59
- }
60
- deleteTable(args, optionsOrCb, cb) {
61
- const command = new DeleteTableCommand(args);
64
+ };
65
+ TimestreamWrite.prototype.deleteTable = function (args, optionsOrCb, cb) {
66
+ var command = new DeleteTableCommand(args);
62
67
  if (typeof optionsOrCb === "function") {
63
68
  this.send(command, optionsOrCb);
64
69
  }
65
70
  else if (typeof cb === "function") {
66
71
  if (typeof optionsOrCb !== "object")
67
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
72
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
68
73
  this.send(command, optionsOrCb || {}, cb);
69
74
  }
70
75
  else {
71
76
  return this.send(command, optionsOrCb);
72
77
  }
73
- }
74
- describeDatabase(args, optionsOrCb, cb) {
75
- const command = new DescribeDatabaseCommand(args);
78
+ };
79
+ TimestreamWrite.prototype.describeDatabase = function (args, optionsOrCb, cb) {
80
+ var command = new DescribeDatabaseCommand(args);
76
81
  if (typeof optionsOrCb === "function") {
77
82
  this.send(command, optionsOrCb);
78
83
  }
79
84
  else if (typeof cb === "function") {
80
85
  if (typeof optionsOrCb !== "object")
81
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
86
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
82
87
  this.send(command, optionsOrCb || {}, cb);
83
88
  }
84
89
  else {
85
90
  return this.send(command, optionsOrCb);
86
91
  }
87
- }
88
- describeEndpoints(args, optionsOrCb, cb) {
89
- const command = new DescribeEndpointsCommand(args);
92
+ };
93
+ TimestreamWrite.prototype.describeEndpoints = function (args, optionsOrCb, cb) {
94
+ var command = new DescribeEndpointsCommand(args);
90
95
  if (typeof optionsOrCb === "function") {
91
96
  this.send(command, optionsOrCb);
92
97
  }
93
98
  else if (typeof cb === "function") {
94
99
  if (typeof optionsOrCb !== "object")
95
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
100
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
96
101
  this.send(command, optionsOrCb || {}, cb);
97
102
  }
98
103
  else {
99
104
  return this.send(command, optionsOrCb);
100
105
  }
101
- }
102
- describeTable(args, optionsOrCb, cb) {
103
- const command = new DescribeTableCommand(args);
106
+ };
107
+ TimestreamWrite.prototype.describeTable = function (args, optionsOrCb, cb) {
108
+ var command = new DescribeTableCommand(args);
104
109
  if (typeof optionsOrCb === "function") {
105
110
  this.send(command, optionsOrCb);
106
111
  }
107
112
  else if (typeof cb === "function") {
108
113
  if (typeof optionsOrCb !== "object")
109
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
114
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
110
115
  this.send(command, optionsOrCb || {}, cb);
111
116
  }
112
117
  else {
113
118
  return this.send(command, optionsOrCb);
114
119
  }
115
- }
116
- listDatabases(args, optionsOrCb, cb) {
117
- const command = new ListDatabasesCommand(args);
120
+ };
121
+ TimestreamWrite.prototype.listDatabases = function (args, optionsOrCb, cb) {
122
+ var command = new ListDatabasesCommand(args);
118
123
  if (typeof optionsOrCb === "function") {
119
124
  this.send(command, optionsOrCb);
120
125
  }
121
126
  else if (typeof cb === "function") {
122
127
  if (typeof optionsOrCb !== "object")
123
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
128
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
124
129
  this.send(command, optionsOrCb || {}, cb);
125
130
  }
126
131
  else {
127
132
  return this.send(command, optionsOrCb);
128
133
  }
129
- }
130
- listTables(args, optionsOrCb, cb) {
131
- const command = new ListTablesCommand(args);
134
+ };
135
+ TimestreamWrite.prototype.listTables = function (args, optionsOrCb, cb) {
136
+ var command = new ListTablesCommand(args);
132
137
  if (typeof optionsOrCb === "function") {
133
138
  this.send(command, optionsOrCb);
134
139
  }
135
140
  else if (typeof cb === "function") {
136
141
  if (typeof optionsOrCb !== "object")
137
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
142
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
138
143
  this.send(command, optionsOrCb || {}, cb);
139
144
  }
140
145
  else {
141
146
  return this.send(command, optionsOrCb);
142
147
  }
143
- }
144
- listTagsForResource(args, optionsOrCb, cb) {
145
- const command = new ListTagsForResourceCommand(args);
148
+ };
149
+ TimestreamWrite.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
150
+ var command = new ListTagsForResourceCommand(args);
146
151
  if (typeof optionsOrCb === "function") {
147
152
  this.send(command, optionsOrCb);
148
153
  }
149
154
  else if (typeof cb === "function") {
150
155
  if (typeof optionsOrCb !== "object")
151
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
152
157
  this.send(command, optionsOrCb || {}, cb);
153
158
  }
154
159
  else {
155
160
  return this.send(command, optionsOrCb);
156
161
  }
157
- }
158
- tagResource(args, optionsOrCb, cb) {
159
- const command = new TagResourceCommand(args);
162
+ };
163
+ TimestreamWrite.prototype.tagResource = function (args, optionsOrCb, cb) {
164
+ var command = new TagResourceCommand(args);
160
165
  if (typeof optionsOrCb === "function") {
161
166
  this.send(command, optionsOrCb);
162
167
  }
163
168
  else if (typeof cb === "function") {
164
169
  if (typeof optionsOrCb !== "object")
165
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
166
171
  this.send(command, optionsOrCb || {}, cb);
167
172
  }
168
173
  else {
169
174
  return this.send(command, optionsOrCb);
170
175
  }
171
- }
172
- untagResource(args, optionsOrCb, cb) {
173
- const command = new UntagResourceCommand(args);
176
+ };
177
+ TimestreamWrite.prototype.untagResource = function (args, optionsOrCb, cb) {
178
+ var command = new UntagResourceCommand(args);
174
179
  if (typeof optionsOrCb === "function") {
175
180
  this.send(command, optionsOrCb);
176
181
  }
177
182
  else if (typeof cb === "function") {
178
183
  if (typeof optionsOrCb !== "object")
179
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
184
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
180
185
  this.send(command, optionsOrCb || {}, cb);
181
186
  }
182
187
  else {
183
188
  return this.send(command, optionsOrCb);
184
189
  }
185
- }
186
- updateDatabase(args, optionsOrCb, cb) {
187
- const command = new UpdateDatabaseCommand(args);
190
+ };
191
+ TimestreamWrite.prototype.updateDatabase = function (args, optionsOrCb, cb) {
192
+ var command = new UpdateDatabaseCommand(args);
188
193
  if (typeof optionsOrCb === "function") {
189
194
  this.send(command, optionsOrCb);
190
195
  }
191
196
  else if (typeof cb === "function") {
192
197
  if (typeof optionsOrCb !== "object")
193
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
198
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
194
199
  this.send(command, optionsOrCb || {}, cb);
195
200
  }
196
201
  else {
197
202
  return this.send(command, optionsOrCb);
198
203
  }
199
- }
200
- updateTable(args, optionsOrCb, cb) {
201
- const command = new UpdateTableCommand(args);
204
+ };
205
+ TimestreamWrite.prototype.updateTable = function (args, optionsOrCb, cb) {
206
+ var command = new UpdateTableCommand(args);
202
207
  if (typeof optionsOrCb === "function") {
203
208
  this.send(command, optionsOrCb);
204
209
  }
205
210
  else if (typeof cb === "function") {
206
211
  if (typeof optionsOrCb !== "object")
207
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
212
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
208
213
  this.send(command, optionsOrCb || {}, cb);
209
214
  }
210
215
  else {
211
216
  return this.send(command, optionsOrCb);
212
217
  }
213
- }
214
- writeRecords(args, optionsOrCb, cb) {
215
- const command = new WriteRecordsCommand(args);
218
+ };
219
+ TimestreamWrite.prototype.writeRecords = function (args, optionsOrCb, cb) {
220
+ var command = new WriteRecordsCommand(args);
216
221
  if (typeof optionsOrCb === "function") {
217
222
  this.send(command, optionsOrCb);
218
223
  }
219
224
  else if (typeof cb === "function") {
220
225
  if (typeof optionsOrCb !== "object")
221
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
226
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
222
227
  this.send(command, optionsOrCb || {}, cb);
223
228
  }
224
229
  else {
225
230
  return this.send(command, optionsOrCb);
226
231
  }
227
- }
228
- }
232
+ };
233
+ return TimestreamWrite;
234
+ }(TimestreamWriteClient));
235
+ export { TimestreamWrite };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { resolveEndpointDiscoveryConfig, } from "@aws-sdk/middleware-endpoint-discovery";
@@ -10,29 +11,34 @@ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware
10
11
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
12
  import { DescribeEndpointsCommand, } from "./commands/DescribeEndpointsCommand";
12
13
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
13
- export class TimestreamWriteClient extends __Client {
14
- constructor(configuration) {
15
- const _config_0 = __getRuntimeConfig(configuration);
16
- const _config_1 = resolveRegionConfig(_config_0);
17
- const _config_2 = resolveEndpointsConfig(_config_1);
18
- const _config_3 = resolveRetryConfig(_config_2);
19
- const _config_4 = resolveHostHeaderConfig(_config_3);
20
- const _config_5 = resolveAwsAuthConfig(_config_4);
21
- const _config_6 = resolveUserAgentConfig(_config_5);
22
- const _config_7 = resolveEndpointDiscoveryConfig(_config_6, {
14
+ var TimestreamWriteClient = (function (_super) {
15
+ __extends(TimestreamWriteClient, _super);
16
+ function TimestreamWriteClient(configuration) {
17
+ var _this = this;
18
+ var _config_0 = __getRuntimeConfig(configuration);
19
+ var _config_1 = resolveRegionConfig(_config_0);
20
+ var _config_2 = resolveEndpointsConfig(_config_1);
21
+ var _config_3 = resolveRetryConfig(_config_2);
22
+ var _config_4 = resolveHostHeaderConfig(_config_3);
23
+ var _config_5 = resolveAwsAuthConfig(_config_4);
24
+ var _config_6 = resolveUserAgentConfig(_config_5);
25
+ var _config_7 = resolveEndpointDiscoveryConfig(_config_6, {
23
26
  endpointDiscoveryCommandCtor: DescribeEndpointsCommand,
24
27
  });
25
- super(_config_7);
26
- this.config = _config_7;
27
- this.middlewareStack.use(getRetryPlugin(this.config));
28
- this.middlewareStack.use(getContentLengthPlugin(this.config));
29
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
30
- this.middlewareStack.use(getLoggerPlugin(this.config));
31
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
32
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
33
- this.middlewareStack.use(getUserAgentPlugin(this.config));
28
+ _this = _super.call(this, _config_7) || this;
29
+ _this.config = _config_7;
30
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
31
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
32
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
33
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
34
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
35
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
36
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
37
+ return _this;
34
38
  }
35
- destroy() {
36
- super.destroy();
37
- }
38
- }
39
+ TimestreamWriteClient.prototype.destroy = function () {
40
+ _super.prototype.destroy.call(this);
41
+ };
42
+ return TimestreamWriteClient;
43
+ }(__Client));
44
+ export { TimestreamWriteClient };
@@ -1,34 +1,41 @@
1
+ import { __extends } from "tslib";
1
2
  import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
5
  import { CreateDatabaseRequestFilterSensitiveLog, CreateDatabaseResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { deserializeAws_json1_0CreateDatabaseCommand, serializeAws_json1_0CreateDatabaseCommand, } from "../protocols/Aws_json1_0";
6
- export class CreateDatabaseCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var CreateDatabaseCommand = (function (_super) {
8
+ __extends(CreateDatabaseCommand, _super);
9
+ function CreateDatabaseCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ CreateDatabaseCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
15
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true }));
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const { logger } = configuration;
16
- const clientName = "TimestreamWriteClient";
17
- const commandName = "CreateDatabaseCommand";
18
- const handlerExecutionContext = {
19
- logger,
20
- clientName,
21
- commandName,
16
+ this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack: clientStack, options: options, isDiscoveredEndpointRequired: true }));
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "TimestreamWriteClient";
20
+ var commandName = "CreateDatabaseCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: CreateDatabaseRequestFilterSensitiveLog,
23
26
  outputFilterSensitiveLog: CreateDatabaseResponseFilterSensitiveLog,
24
27
  };
25
- const { requestHandler } = configuration;
26
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
- }
28
- serialize(input, context) {
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ CreateDatabaseCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_json1_0CreateDatabaseCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ CreateDatabaseCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_json1_0CreateDatabaseCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return CreateDatabaseCommand;
40
+ }($Command));
41
+ export { CreateDatabaseCommand };
@@ -1,34 +1,41 @@
1
+ import { __extends } from "tslib";
1
2
  import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
5
  import { CreateTableRequestFilterSensitiveLog, CreateTableResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { deserializeAws_json1_0CreateTableCommand, serializeAws_json1_0CreateTableCommand, } from "../protocols/Aws_json1_0";
6
- export class CreateTableCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var CreateTableCommand = (function (_super) {
8
+ __extends(CreateTableCommand, _super);
9
+ function CreateTableCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ CreateTableCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
15
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true }));
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const { logger } = configuration;
16
- const clientName = "TimestreamWriteClient";
17
- const commandName = "CreateTableCommand";
18
- const handlerExecutionContext = {
19
- logger,
20
- clientName,
21
- commandName,
16
+ this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack: clientStack, options: options, isDiscoveredEndpointRequired: true }));
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "TimestreamWriteClient";
20
+ var commandName = "CreateTableCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: CreateTableRequestFilterSensitiveLog,
23
26
  outputFilterSensitiveLog: CreateTableResponseFilterSensitiveLog,
24
27
  };
25
- const { requestHandler } = configuration;
26
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
- }
28
- serialize(input, context) {
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ CreateTableCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_json1_0CreateTableCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ CreateTableCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_json1_0CreateTableCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return CreateTableCommand;
40
+ }($Command));
41
+ export { CreateTableCommand };
@@ -1,34 +1,41 @@
1
+ import { __extends } from "tslib";
1
2
  import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
5
  import { DeleteDatabaseRequestFilterSensitiveLog } from "../models/models_0";
5
6
  import { deserializeAws_json1_0DeleteDatabaseCommand, serializeAws_json1_0DeleteDatabaseCommand, } from "../protocols/Aws_json1_0";
6
- export class DeleteDatabaseCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var DeleteDatabaseCommand = (function (_super) {
8
+ __extends(DeleteDatabaseCommand, _super);
9
+ function DeleteDatabaseCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ DeleteDatabaseCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
15
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true }));
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const { logger } = configuration;
16
- const clientName = "TimestreamWriteClient";
17
- const commandName = "DeleteDatabaseCommand";
18
- const handlerExecutionContext = {
19
- logger,
20
- clientName,
21
- commandName,
16
+ this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack: clientStack, options: options, isDiscoveredEndpointRequired: true }));
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "TimestreamWriteClient";
20
+ var commandName = "DeleteDatabaseCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: DeleteDatabaseRequestFilterSensitiveLog,
23
- outputFilterSensitiveLog: (output) => output,
26
+ outputFilterSensitiveLog: function (output) { return output; },
24
27
  };
25
- const { requestHandler } = configuration;
26
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
- }
28
- serialize(input, context) {
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ DeleteDatabaseCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_json1_0DeleteDatabaseCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ DeleteDatabaseCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_json1_0DeleteDatabaseCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return DeleteDatabaseCommand;
40
+ }($Command));
41
+ export { DeleteDatabaseCommand };