@aws-sdk/client-keyspaces 3.180.0 → 3.183.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 (29) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_json1_0.js +19 -13
  3. package/dist-es/Keyspaces.js +54 -61
  4. package/dist-es/KeyspacesClient.js +22 -28
  5. package/dist-es/commands/CreateKeyspaceCommand.js +21 -28
  6. package/dist-es/commands/CreateTableCommand.js +21 -28
  7. package/dist-es/commands/DeleteKeyspaceCommand.js +21 -28
  8. package/dist-es/commands/DeleteTableCommand.js +21 -28
  9. package/dist-es/commands/GetKeyspaceCommand.js +21 -28
  10. package/dist-es/commands/GetTableCommand.js +21 -28
  11. package/dist-es/commands/ListKeyspacesCommand.js +21 -28
  12. package/dist-es/commands/ListTablesCommand.js +21 -28
  13. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  14. package/dist-es/commands/RestoreTableCommand.js +21 -28
  15. package/dist-es/commands/TagResourceCommand.js +21 -28
  16. package/dist-es/commands/UntagResourceCommand.js +21 -28
  17. package/dist-es/commands/UpdateTableCommand.js +21 -28
  18. package/dist-es/endpoints.js +8 -8
  19. package/dist-es/models/KeyspacesServiceException.js +5 -10
  20. package/dist-es/models/models_0.js +190 -109
  21. package/dist-es/pagination/ListKeyspacesPaginator.js +25 -68
  22. package/dist-es/pagination/ListTablesPaginator.js +25 -68
  23. package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
  24. package/dist-es/protocols/Aws_json1_0.js +1057 -1295
  25. package/dist-es/runtimeConfig.browser.js +26 -12
  26. package/dist-es/runtimeConfig.js +30 -12
  27. package/dist-es/runtimeConfig.native.js +8 -5
  28. package/dist-es/runtimeConfig.shared.js +8 -11
  29. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-keyspaces
9
+
10
+
11
+
12
+
13
+
14
+ # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
20
+ * **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
21
+
22
+
23
+
24
+
25
+
6
26
  # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
7
27
 
8
28
  **Note:** Version bump only for package @aws-sdk/client-keyspaces
@@ -152,7 +152,7 @@ exports.deserializeAws_json1_0CreateKeyspaceCommand = deserializeAws_json1_0Crea
152
152
  const deserializeAws_json1_0CreateKeyspaceCommandError = async (output, context) => {
153
153
  const parsedOutput = {
154
154
  ...output,
155
- body: await parseBody(output.body, context),
155
+ body: await parseErrorBody(output.body, context),
156
156
  };
157
157
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
158
158
  switch (errorCode) {
@@ -198,7 +198,7 @@ exports.deserializeAws_json1_0CreateTableCommand = deserializeAws_json1_0CreateT
198
198
  const deserializeAws_json1_0CreateTableCommandError = async (output, context) => {
199
199
  const parsedOutput = {
200
200
  ...output,
201
- body: await parseBody(output.body, context),
201
+ body: await parseErrorBody(output.body, context),
202
202
  };
203
203
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
204
204
  switch (errorCode) {
@@ -247,7 +247,7 @@ exports.deserializeAws_json1_0DeleteKeyspaceCommand = deserializeAws_json1_0Dele
247
247
  const deserializeAws_json1_0DeleteKeyspaceCommandError = async (output, context) => {
248
248
  const parsedOutput = {
249
249
  ...output,
250
- body: await parseBody(output.body, context),
250
+ body: await parseErrorBody(output.body, context),
251
251
  };
252
252
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
253
253
  switch (errorCode) {
@@ -296,7 +296,7 @@ exports.deserializeAws_json1_0DeleteTableCommand = deserializeAws_json1_0DeleteT
296
296
  const deserializeAws_json1_0DeleteTableCommandError = async (output, context) => {
297
297
  const parsedOutput = {
298
298
  ...output,
299
- body: await parseBody(output.body, context),
299
+ body: await parseErrorBody(output.body, context),
300
300
  };
301
301
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
302
302
  switch (errorCode) {
@@ -345,7 +345,7 @@ exports.deserializeAws_json1_0GetKeyspaceCommand = deserializeAws_json1_0GetKeys
345
345
  const deserializeAws_json1_0GetKeyspaceCommandError = async (output, context) => {
346
346
  const parsedOutput = {
347
347
  ...output,
348
- body: await parseBody(output.body, context),
348
+ body: await parseErrorBody(output.body, context),
349
349
  };
350
350
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
351
351
  switch (errorCode) {
@@ -391,7 +391,7 @@ exports.deserializeAws_json1_0GetTableCommand = deserializeAws_json1_0GetTableCo
391
391
  const deserializeAws_json1_0GetTableCommandError = async (output, context) => {
392
392
  const parsedOutput = {
393
393
  ...output,
394
- body: await parseBody(output.body, context),
394
+ body: await parseErrorBody(output.body, context),
395
395
  };
396
396
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
397
397
  switch (errorCode) {
@@ -437,7 +437,7 @@ exports.deserializeAws_json1_0ListKeyspacesCommand = deserializeAws_json1_0ListK
437
437
  const deserializeAws_json1_0ListKeyspacesCommandError = async (output, context) => {
438
438
  const parsedOutput = {
439
439
  ...output,
440
- body: await parseBody(output.body, context),
440
+ body: await parseErrorBody(output.body, context),
441
441
  };
442
442
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
443
443
  switch (errorCode) {
@@ -483,7 +483,7 @@ exports.deserializeAws_json1_0ListTablesCommand = deserializeAws_json1_0ListTabl
483
483
  const deserializeAws_json1_0ListTablesCommandError = async (output, context) => {
484
484
  const parsedOutput = {
485
485
  ...output,
486
- body: await parseBody(output.body, context),
486
+ body: await parseErrorBody(output.body, context),
487
487
  };
488
488
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
489
489
  switch (errorCode) {
@@ -529,7 +529,7 @@ exports.deserializeAws_json1_0ListTagsForResourceCommand = deserializeAws_json1_
529
529
  const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
530
530
  const parsedOutput = {
531
531
  ...output,
532
- body: await parseBody(output.body, context),
532
+ body: await parseErrorBody(output.body, context),
533
533
  };
534
534
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
535
535
  switch (errorCode) {
@@ -575,7 +575,7 @@ exports.deserializeAws_json1_0RestoreTableCommand = deserializeAws_json1_0Restor
575
575
  const deserializeAws_json1_0RestoreTableCommandError = async (output, context) => {
576
576
  const parsedOutput = {
577
577
  ...output,
578
- body: await parseBody(output.body, context),
578
+ body: await parseErrorBody(output.body, context),
579
579
  };
580
580
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
581
581
  switch (errorCode) {
@@ -624,7 +624,7 @@ exports.deserializeAws_json1_0TagResourceCommand = deserializeAws_json1_0TagReso
624
624
  const deserializeAws_json1_0TagResourceCommandError = async (output, context) => {
625
625
  const parsedOutput = {
626
626
  ...output,
627
- body: await parseBody(output.body, context),
627
+ body: await parseErrorBody(output.body, context),
628
628
  };
629
629
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
630
630
  switch (errorCode) {
@@ -670,7 +670,7 @@ exports.deserializeAws_json1_0UntagResourceCommand = deserializeAws_json1_0Untag
670
670
  const deserializeAws_json1_0UntagResourceCommandError = async (output, context) => {
671
671
  const parsedOutput = {
672
672
  ...output,
673
- body: await parseBody(output.body, context),
673
+ body: await parseErrorBody(output.body, context),
674
674
  };
675
675
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
676
676
  switch (errorCode) {
@@ -719,7 +719,7 @@ exports.deserializeAws_json1_0UpdateTableCommand = deserializeAws_json1_0UpdateT
719
719
  const deserializeAws_json1_0UpdateTableCommandError = async (output, context) => {
720
720
  const parsedOutput = {
721
721
  ...output,
722
- body: await parseBody(output.body, context),
722
+ body: await parseErrorBody(output.body, context),
723
723
  };
724
724
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
725
725
  switch (errorCode) {
@@ -1348,6 +1348,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
1348
1348
  }
1349
1349
  return {};
1350
1350
  });
1351
+ const parseErrorBody = async (errorBody, context) => {
1352
+ var _a;
1353
+ const value = await parseBody(errorBody, context);
1354
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
1355
+ return value;
1356
+ };
1351
1357
  const loadRestJsonErrorCode = (output, data) => {
1352
1358
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1353
1359
  const sanitizeErrorCode = (rawValue) => {
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { CreateKeyspaceCommand, } from "./commands/CreateKeyspaceCommand";
3
2
  import { CreateTableCommand } from "./commands/CreateTableCommand";
4
3
  import { DeleteKeyspaceCommand, } from "./commands/DeleteKeyspaceCommand";
@@ -13,193 +12,187 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
13
12
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
14
13
  import { UpdateTableCommand } from "./commands/UpdateTableCommand";
15
14
  import { KeyspacesClient } from "./KeyspacesClient";
16
- var Keyspaces = (function (_super) {
17
- __extends(Keyspaces, _super);
18
- function Keyspaces() {
19
- return _super !== null && _super.apply(this, arguments) || this;
20
- }
21
- Keyspaces.prototype.createKeyspace = function (args, optionsOrCb, cb) {
22
- var command = new CreateKeyspaceCommand(args);
15
+ export class Keyspaces extends KeyspacesClient {
16
+ createKeyspace(args, optionsOrCb, cb) {
17
+ const command = new CreateKeyspaceCommand(args);
23
18
  if (typeof optionsOrCb === "function") {
24
19
  this.send(command, optionsOrCb);
25
20
  }
26
21
  else if (typeof cb === "function") {
27
22
  if (typeof optionsOrCb !== "object")
28
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
23
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
29
24
  this.send(command, optionsOrCb || {}, cb);
30
25
  }
31
26
  else {
32
27
  return this.send(command, optionsOrCb);
33
28
  }
34
- };
35
- Keyspaces.prototype.createTable = function (args, optionsOrCb, cb) {
36
- var command = new CreateTableCommand(args);
29
+ }
30
+ createTable(args, optionsOrCb, cb) {
31
+ const command = new CreateTableCommand(args);
37
32
  if (typeof optionsOrCb === "function") {
38
33
  this.send(command, optionsOrCb);
39
34
  }
40
35
  else if (typeof cb === "function") {
41
36
  if (typeof optionsOrCb !== "object")
42
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
37
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
43
38
  this.send(command, optionsOrCb || {}, cb);
44
39
  }
45
40
  else {
46
41
  return this.send(command, optionsOrCb);
47
42
  }
48
- };
49
- Keyspaces.prototype.deleteKeyspace = function (args, optionsOrCb, cb) {
50
- var command = new DeleteKeyspaceCommand(args);
43
+ }
44
+ deleteKeyspace(args, optionsOrCb, cb) {
45
+ const command = new DeleteKeyspaceCommand(args);
51
46
  if (typeof optionsOrCb === "function") {
52
47
  this.send(command, optionsOrCb);
53
48
  }
54
49
  else if (typeof cb === "function") {
55
50
  if (typeof optionsOrCb !== "object")
56
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
51
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
57
52
  this.send(command, optionsOrCb || {}, cb);
58
53
  }
59
54
  else {
60
55
  return this.send(command, optionsOrCb);
61
56
  }
62
- };
63
- Keyspaces.prototype.deleteTable = function (args, optionsOrCb, cb) {
64
- var command = new DeleteTableCommand(args);
57
+ }
58
+ deleteTable(args, optionsOrCb, cb) {
59
+ const command = new DeleteTableCommand(args);
65
60
  if (typeof optionsOrCb === "function") {
66
61
  this.send(command, optionsOrCb);
67
62
  }
68
63
  else if (typeof cb === "function") {
69
64
  if (typeof optionsOrCb !== "object")
70
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
65
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
71
66
  this.send(command, optionsOrCb || {}, cb);
72
67
  }
73
68
  else {
74
69
  return this.send(command, optionsOrCb);
75
70
  }
76
- };
77
- Keyspaces.prototype.getKeyspace = function (args, optionsOrCb, cb) {
78
- var command = new GetKeyspaceCommand(args);
71
+ }
72
+ getKeyspace(args, optionsOrCb, cb) {
73
+ const command = new GetKeyspaceCommand(args);
79
74
  if (typeof optionsOrCb === "function") {
80
75
  this.send(command, optionsOrCb);
81
76
  }
82
77
  else if (typeof cb === "function") {
83
78
  if (typeof optionsOrCb !== "object")
84
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
79
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
85
80
  this.send(command, optionsOrCb || {}, cb);
86
81
  }
87
82
  else {
88
83
  return this.send(command, optionsOrCb);
89
84
  }
90
- };
91
- Keyspaces.prototype.getTable = function (args, optionsOrCb, cb) {
92
- var command = new GetTableCommand(args);
85
+ }
86
+ getTable(args, optionsOrCb, cb) {
87
+ const command = new GetTableCommand(args);
93
88
  if (typeof optionsOrCb === "function") {
94
89
  this.send(command, optionsOrCb);
95
90
  }
96
91
  else if (typeof cb === "function") {
97
92
  if (typeof optionsOrCb !== "object")
98
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
93
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
99
94
  this.send(command, optionsOrCb || {}, cb);
100
95
  }
101
96
  else {
102
97
  return this.send(command, optionsOrCb);
103
98
  }
104
- };
105
- Keyspaces.prototype.listKeyspaces = function (args, optionsOrCb, cb) {
106
- var command = new ListKeyspacesCommand(args);
99
+ }
100
+ listKeyspaces(args, optionsOrCb, cb) {
101
+ const command = new ListKeyspacesCommand(args);
107
102
  if (typeof optionsOrCb === "function") {
108
103
  this.send(command, optionsOrCb);
109
104
  }
110
105
  else if (typeof cb === "function") {
111
106
  if (typeof optionsOrCb !== "object")
112
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
107
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
113
108
  this.send(command, optionsOrCb || {}, cb);
114
109
  }
115
110
  else {
116
111
  return this.send(command, optionsOrCb);
117
112
  }
118
- };
119
- Keyspaces.prototype.listTables = function (args, optionsOrCb, cb) {
120
- var command = new ListTablesCommand(args);
113
+ }
114
+ listTables(args, optionsOrCb, cb) {
115
+ const command = new ListTablesCommand(args);
121
116
  if (typeof optionsOrCb === "function") {
122
117
  this.send(command, optionsOrCb);
123
118
  }
124
119
  else if (typeof cb === "function") {
125
120
  if (typeof optionsOrCb !== "object")
126
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
121
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
127
122
  this.send(command, optionsOrCb || {}, cb);
128
123
  }
129
124
  else {
130
125
  return this.send(command, optionsOrCb);
131
126
  }
132
- };
133
- Keyspaces.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
134
- var command = new ListTagsForResourceCommand(args);
127
+ }
128
+ listTagsForResource(args, optionsOrCb, cb) {
129
+ const command = new ListTagsForResourceCommand(args);
135
130
  if (typeof optionsOrCb === "function") {
136
131
  this.send(command, optionsOrCb);
137
132
  }
138
133
  else if (typeof cb === "function") {
139
134
  if (typeof optionsOrCb !== "object")
140
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
135
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
141
136
  this.send(command, optionsOrCb || {}, cb);
142
137
  }
143
138
  else {
144
139
  return this.send(command, optionsOrCb);
145
140
  }
146
- };
147
- Keyspaces.prototype.restoreTable = function (args, optionsOrCb, cb) {
148
- var command = new RestoreTableCommand(args);
141
+ }
142
+ restoreTable(args, optionsOrCb, cb) {
143
+ const command = new RestoreTableCommand(args);
149
144
  if (typeof optionsOrCb === "function") {
150
145
  this.send(command, optionsOrCb);
151
146
  }
152
147
  else if (typeof cb === "function") {
153
148
  if (typeof optionsOrCb !== "object")
154
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
149
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
155
150
  this.send(command, optionsOrCb || {}, cb);
156
151
  }
157
152
  else {
158
153
  return this.send(command, optionsOrCb);
159
154
  }
160
- };
161
- Keyspaces.prototype.tagResource = function (args, optionsOrCb, cb) {
162
- var command = new TagResourceCommand(args);
155
+ }
156
+ tagResource(args, optionsOrCb, cb) {
157
+ const command = new TagResourceCommand(args);
163
158
  if (typeof optionsOrCb === "function") {
164
159
  this.send(command, optionsOrCb);
165
160
  }
166
161
  else if (typeof cb === "function") {
167
162
  if (typeof optionsOrCb !== "object")
168
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
163
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
169
164
  this.send(command, optionsOrCb || {}, cb);
170
165
  }
171
166
  else {
172
167
  return this.send(command, optionsOrCb);
173
168
  }
174
- };
175
- Keyspaces.prototype.untagResource = function (args, optionsOrCb, cb) {
176
- var command = new UntagResourceCommand(args);
169
+ }
170
+ untagResource(args, optionsOrCb, cb) {
171
+ const command = new UntagResourceCommand(args);
177
172
  if (typeof optionsOrCb === "function") {
178
173
  this.send(command, optionsOrCb);
179
174
  }
180
175
  else if (typeof cb === "function") {
181
176
  if (typeof optionsOrCb !== "object")
182
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
177
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
183
178
  this.send(command, optionsOrCb || {}, cb);
184
179
  }
185
180
  else {
186
181
  return this.send(command, optionsOrCb);
187
182
  }
188
- };
189
- Keyspaces.prototype.updateTable = function (args, optionsOrCb, cb) {
190
- var command = new UpdateTableCommand(args);
183
+ }
184
+ updateTable(args, optionsOrCb, cb) {
185
+ const command = new UpdateTableCommand(args);
191
186
  if (typeof optionsOrCb === "function") {
192
187
  this.send(command, optionsOrCb);
193
188
  }
194
189
  else if (typeof cb === "function") {
195
190
  if (typeof optionsOrCb !== "object")
196
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
191
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
197
192
  this.send(command, optionsOrCb || {}, cb);
198
193
  }
199
194
  else {
200
195
  return this.send(command, optionsOrCb);
201
196
  }
202
- };
203
- return Keyspaces;
204
- }(KeyspacesClient));
205
- export { Keyspaces };
197
+ }
198
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var KeyspacesClient = (function (_super) {
13
- __extends(KeyspacesClient, _super);
14
- function KeyspacesClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class KeyspacesClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- KeyspacesClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return KeyspacesClient;
38
- }(__Client));
39
- export { KeyspacesClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateKeyspaceRequestFilterSensitiveLog, CreateKeyspaceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0CreateKeyspaceCommand, serializeAws_json1_0CreateKeyspaceCommand, } from "../protocols/Aws_json1_0";
6
- var CreateKeyspaceCommand = (function (_super) {
7
- __extends(CreateKeyspaceCommand, _super);
8
- function CreateKeyspaceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateKeyspaceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateKeyspaceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KeyspacesClient";
18
- var commandName = "CreateKeyspaceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KeyspacesClient";
15
+ const commandName = "CreateKeyspaceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateKeyspaceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateKeyspaceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateKeyspaceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_0CreateKeyspaceCommand(input, context);
33
- };
34
- CreateKeyspaceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0CreateKeyspaceCommand(output, context);
36
- };
37
- return CreateKeyspaceCommand;
38
- }($Command));
39
- export { CreateKeyspaceCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateTableRequestFilterSensitiveLog, CreateTableResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0CreateTableCommand, serializeAws_json1_0CreateTableCommand, } from "../protocols/Aws_json1_0";
6
- var CreateTableCommand = (function (_super) {
7
- __extends(CreateTableCommand, _super);
8
- function CreateTableCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateTableCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateTableCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KeyspacesClient";
18
- var commandName = "CreateTableCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KeyspacesClient";
15
+ const commandName = "CreateTableCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateTableRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateTableResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateTableCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_0CreateTableCommand(input, context);
33
- };
34
- CreateTableCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0CreateTableCommand(output, context);
36
- };
37
- return CreateTableCommand;
38
- }($Command));
39
- export { CreateTableCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteKeyspaceRequestFilterSensitiveLog, DeleteKeyspaceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0DeleteKeyspaceCommand, serializeAws_json1_0DeleteKeyspaceCommand, } from "../protocols/Aws_json1_0";
6
- var DeleteKeyspaceCommand = (function (_super) {
7
- __extends(DeleteKeyspaceCommand, _super);
8
- function DeleteKeyspaceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteKeyspaceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteKeyspaceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KeyspacesClient";
18
- var commandName = "DeleteKeyspaceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KeyspacesClient";
15
+ const commandName = "DeleteKeyspaceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteKeyspaceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteKeyspaceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteKeyspaceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_0DeleteKeyspaceCommand(input, context);
33
- };
34
- DeleteKeyspaceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0DeleteKeyspaceCommand(output, context);
36
- };
37
- return DeleteKeyspaceCommand;
38
- }($Command));
39
- export { DeleteKeyspaceCommand };
31
+ }
32
+ }