@aws-sdk/client-dax 3.183.0 → 3.186.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 (34) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/DAX.js +93 -86
  4. package/dist-es/DAXClient.js +28 -22
  5. package/dist-es/commands/CreateClusterCommand.js +28 -21
  6. package/dist-es/commands/CreateParameterGroupCommand.js +28 -21
  7. package/dist-es/commands/CreateSubnetGroupCommand.js +28 -21
  8. package/dist-es/commands/DecreaseReplicationFactorCommand.js +28 -21
  9. package/dist-es/commands/DeleteClusterCommand.js +28 -21
  10. package/dist-es/commands/DeleteParameterGroupCommand.js +28 -21
  11. package/dist-es/commands/DeleteSubnetGroupCommand.js +28 -21
  12. package/dist-es/commands/DescribeClustersCommand.js +28 -21
  13. package/dist-es/commands/DescribeDefaultParametersCommand.js +28 -21
  14. package/dist-es/commands/DescribeEventsCommand.js +28 -21
  15. package/dist-es/commands/DescribeParameterGroupsCommand.js +28 -21
  16. package/dist-es/commands/DescribeParametersCommand.js +28 -21
  17. package/dist-es/commands/DescribeSubnetGroupsCommand.js +28 -21
  18. package/dist-es/commands/IncreaseReplicationFactorCommand.js +28 -21
  19. package/dist-es/commands/ListTagsCommand.js +28 -21
  20. package/dist-es/commands/RebootNodeCommand.js +28 -21
  21. package/dist-es/commands/TagResourceCommand.js +28 -21
  22. package/dist-es/commands/UntagResourceCommand.js +28 -21
  23. package/dist-es/commands/UpdateClusterCommand.js +28 -21
  24. package/dist-es/commands/UpdateParameterGroupCommand.js +28 -21
  25. package/dist-es/commands/UpdateSubnetGroupCommand.js +28 -21
  26. package/dist-es/endpoints.js +8 -8
  27. package/dist-es/models/DAXServiceException.js +10 -5
  28. package/dist-es/models/models_0.js +356 -471
  29. package/dist-es/protocols/Aws_json1_1.js +2216 -1776
  30. package/dist-es/runtimeConfig.browser.js +12 -26
  31. package/dist-es/runtimeConfig.js +12 -30
  32. package/dist-es/runtimeConfig.native.js +5 -8
  33. package/dist-es/runtimeConfig.shared.js +11 -8
  34. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
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.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-dax
9
+
10
+
11
+
12
+
13
+
14
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **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))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-dax
@@ -2228,10 +2228,10 @@ const deserializeAws_json1_1UpdateSubnetGroupResponse = (output, context) => {
2228
2228
  };
2229
2229
  };
2230
2230
  const deserializeMetadata = (output) => {
2231
- var _a;
2231
+ var _a, _b;
2232
2232
  return ({
2233
2233
  httpStatusCode: output.statusCode,
2234
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
2234
+ 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"],
2235
2235
  extendedRequestId: output.headers["x-amz-id-2"],
2236
2236
  cfId: output.headers["x-amz-cf-id"],
2237
2237
  });
package/dist-es/DAX.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
2
3
  import { CreateParameterGroupCommand, } from "./commands/CreateParameterGroupCommand";
3
4
  import { CreateSubnetGroupCommand, } from "./commands/CreateSubnetGroupCommand";
@@ -20,299 +21,305 @@ import { UpdateClusterCommand, } from "./commands/UpdateClusterCommand";
20
21
  import { UpdateParameterGroupCommand, } from "./commands/UpdateParameterGroupCommand";
21
22
  import { UpdateSubnetGroupCommand, } from "./commands/UpdateSubnetGroupCommand";
22
23
  import { DAXClient } from "./DAXClient";
23
- export class DAX extends DAXClient {
24
- createCluster(args, optionsOrCb, cb) {
25
- const command = new CreateClusterCommand(args);
24
+ var DAX = (function (_super) {
25
+ __extends(DAX, _super);
26
+ function DAX() {
27
+ return _super !== null && _super.apply(this, arguments) || this;
28
+ }
29
+ DAX.prototype.createCluster = function (args, optionsOrCb, cb) {
30
+ var command = new CreateClusterCommand(args);
26
31
  if (typeof optionsOrCb === "function") {
27
32
  this.send(command, optionsOrCb);
28
33
  }
29
34
  else if (typeof cb === "function") {
30
35
  if (typeof optionsOrCb !== "object")
31
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
36
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
32
37
  this.send(command, optionsOrCb || {}, cb);
33
38
  }
34
39
  else {
35
40
  return this.send(command, optionsOrCb);
36
41
  }
37
- }
38
- createParameterGroup(args, optionsOrCb, cb) {
39
- const command = new CreateParameterGroupCommand(args);
42
+ };
43
+ DAX.prototype.createParameterGroup = function (args, optionsOrCb, cb) {
44
+ var command = new CreateParameterGroupCommand(args);
40
45
  if (typeof optionsOrCb === "function") {
41
46
  this.send(command, optionsOrCb);
42
47
  }
43
48
  else if (typeof cb === "function") {
44
49
  if (typeof optionsOrCb !== "object")
45
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
50
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
46
51
  this.send(command, optionsOrCb || {}, cb);
47
52
  }
48
53
  else {
49
54
  return this.send(command, optionsOrCb);
50
55
  }
51
- }
52
- createSubnetGroup(args, optionsOrCb, cb) {
53
- const command = new CreateSubnetGroupCommand(args);
56
+ };
57
+ DAX.prototype.createSubnetGroup = function (args, optionsOrCb, cb) {
58
+ var command = new CreateSubnetGroupCommand(args);
54
59
  if (typeof optionsOrCb === "function") {
55
60
  this.send(command, optionsOrCb);
56
61
  }
57
62
  else if (typeof cb === "function") {
58
63
  if (typeof optionsOrCb !== "object")
59
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
64
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
60
65
  this.send(command, optionsOrCb || {}, cb);
61
66
  }
62
67
  else {
63
68
  return this.send(command, optionsOrCb);
64
69
  }
65
- }
66
- decreaseReplicationFactor(args, optionsOrCb, cb) {
67
- const command = new DecreaseReplicationFactorCommand(args);
70
+ };
71
+ DAX.prototype.decreaseReplicationFactor = function (args, optionsOrCb, cb) {
72
+ var command = new DecreaseReplicationFactorCommand(args);
68
73
  if (typeof optionsOrCb === "function") {
69
74
  this.send(command, optionsOrCb);
70
75
  }
71
76
  else if (typeof cb === "function") {
72
77
  if (typeof optionsOrCb !== "object")
73
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
78
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
74
79
  this.send(command, optionsOrCb || {}, cb);
75
80
  }
76
81
  else {
77
82
  return this.send(command, optionsOrCb);
78
83
  }
79
- }
80
- deleteCluster(args, optionsOrCb, cb) {
81
- const command = new DeleteClusterCommand(args);
84
+ };
85
+ DAX.prototype.deleteCluster = function (args, optionsOrCb, cb) {
86
+ var command = new DeleteClusterCommand(args);
82
87
  if (typeof optionsOrCb === "function") {
83
88
  this.send(command, optionsOrCb);
84
89
  }
85
90
  else if (typeof cb === "function") {
86
91
  if (typeof optionsOrCb !== "object")
87
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
92
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
88
93
  this.send(command, optionsOrCb || {}, cb);
89
94
  }
90
95
  else {
91
96
  return this.send(command, optionsOrCb);
92
97
  }
93
- }
94
- deleteParameterGroup(args, optionsOrCb, cb) {
95
- const command = new DeleteParameterGroupCommand(args);
98
+ };
99
+ DAX.prototype.deleteParameterGroup = function (args, optionsOrCb, cb) {
100
+ var command = new DeleteParameterGroupCommand(args);
96
101
  if (typeof optionsOrCb === "function") {
97
102
  this.send(command, optionsOrCb);
98
103
  }
99
104
  else if (typeof cb === "function") {
100
105
  if (typeof optionsOrCb !== "object")
101
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
106
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
102
107
  this.send(command, optionsOrCb || {}, cb);
103
108
  }
104
109
  else {
105
110
  return this.send(command, optionsOrCb);
106
111
  }
107
- }
108
- deleteSubnetGroup(args, optionsOrCb, cb) {
109
- const command = new DeleteSubnetGroupCommand(args);
112
+ };
113
+ DAX.prototype.deleteSubnetGroup = function (args, optionsOrCb, cb) {
114
+ var command = new DeleteSubnetGroupCommand(args);
110
115
  if (typeof optionsOrCb === "function") {
111
116
  this.send(command, optionsOrCb);
112
117
  }
113
118
  else if (typeof cb === "function") {
114
119
  if (typeof optionsOrCb !== "object")
115
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
120
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
116
121
  this.send(command, optionsOrCb || {}, cb);
117
122
  }
118
123
  else {
119
124
  return this.send(command, optionsOrCb);
120
125
  }
121
- }
122
- describeClusters(args, optionsOrCb, cb) {
123
- const command = new DescribeClustersCommand(args);
126
+ };
127
+ DAX.prototype.describeClusters = function (args, optionsOrCb, cb) {
128
+ var command = new DescribeClustersCommand(args);
124
129
  if (typeof optionsOrCb === "function") {
125
130
  this.send(command, optionsOrCb);
126
131
  }
127
132
  else if (typeof cb === "function") {
128
133
  if (typeof optionsOrCb !== "object")
129
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
134
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
130
135
  this.send(command, optionsOrCb || {}, cb);
131
136
  }
132
137
  else {
133
138
  return this.send(command, optionsOrCb);
134
139
  }
135
- }
136
- describeDefaultParameters(args, optionsOrCb, cb) {
137
- const command = new DescribeDefaultParametersCommand(args);
140
+ };
141
+ DAX.prototype.describeDefaultParameters = function (args, optionsOrCb, cb) {
142
+ var command = new DescribeDefaultParametersCommand(args);
138
143
  if (typeof optionsOrCb === "function") {
139
144
  this.send(command, optionsOrCb);
140
145
  }
141
146
  else if (typeof cb === "function") {
142
147
  if (typeof optionsOrCb !== "object")
143
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
148
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
144
149
  this.send(command, optionsOrCb || {}, cb);
145
150
  }
146
151
  else {
147
152
  return this.send(command, optionsOrCb);
148
153
  }
149
- }
150
- describeEvents(args, optionsOrCb, cb) {
151
- const command = new DescribeEventsCommand(args);
154
+ };
155
+ DAX.prototype.describeEvents = function (args, optionsOrCb, cb) {
156
+ var command = new DescribeEventsCommand(args);
152
157
  if (typeof optionsOrCb === "function") {
153
158
  this.send(command, optionsOrCb);
154
159
  }
155
160
  else if (typeof cb === "function") {
156
161
  if (typeof optionsOrCb !== "object")
157
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
162
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
158
163
  this.send(command, optionsOrCb || {}, cb);
159
164
  }
160
165
  else {
161
166
  return this.send(command, optionsOrCb);
162
167
  }
163
- }
164
- describeParameterGroups(args, optionsOrCb, cb) {
165
- const command = new DescribeParameterGroupsCommand(args);
168
+ };
169
+ DAX.prototype.describeParameterGroups = function (args, optionsOrCb, cb) {
170
+ var command = new DescribeParameterGroupsCommand(args);
166
171
  if (typeof optionsOrCb === "function") {
167
172
  this.send(command, optionsOrCb);
168
173
  }
169
174
  else if (typeof cb === "function") {
170
175
  if (typeof optionsOrCb !== "object")
171
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
176
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
172
177
  this.send(command, optionsOrCb || {}, cb);
173
178
  }
174
179
  else {
175
180
  return this.send(command, optionsOrCb);
176
181
  }
177
- }
178
- describeParameters(args, optionsOrCb, cb) {
179
- const command = new DescribeParametersCommand(args);
182
+ };
183
+ DAX.prototype.describeParameters = function (args, optionsOrCb, cb) {
184
+ var command = new DescribeParametersCommand(args);
180
185
  if (typeof optionsOrCb === "function") {
181
186
  this.send(command, optionsOrCb);
182
187
  }
183
188
  else if (typeof cb === "function") {
184
189
  if (typeof optionsOrCb !== "object")
185
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
190
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
186
191
  this.send(command, optionsOrCb || {}, cb);
187
192
  }
188
193
  else {
189
194
  return this.send(command, optionsOrCb);
190
195
  }
191
- }
192
- describeSubnetGroups(args, optionsOrCb, cb) {
193
- const command = new DescribeSubnetGroupsCommand(args);
196
+ };
197
+ DAX.prototype.describeSubnetGroups = function (args, optionsOrCb, cb) {
198
+ var command = new DescribeSubnetGroupsCommand(args);
194
199
  if (typeof optionsOrCb === "function") {
195
200
  this.send(command, optionsOrCb);
196
201
  }
197
202
  else if (typeof cb === "function") {
198
203
  if (typeof optionsOrCb !== "object")
199
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
204
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
200
205
  this.send(command, optionsOrCb || {}, cb);
201
206
  }
202
207
  else {
203
208
  return this.send(command, optionsOrCb);
204
209
  }
205
- }
206
- increaseReplicationFactor(args, optionsOrCb, cb) {
207
- const command = new IncreaseReplicationFactorCommand(args);
210
+ };
211
+ DAX.prototype.increaseReplicationFactor = function (args, optionsOrCb, cb) {
212
+ var command = new IncreaseReplicationFactorCommand(args);
208
213
  if (typeof optionsOrCb === "function") {
209
214
  this.send(command, optionsOrCb);
210
215
  }
211
216
  else if (typeof cb === "function") {
212
217
  if (typeof optionsOrCb !== "object")
213
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
218
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
214
219
  this.send(command, optionsOrCb || {}, cb);
215
220
  }
216
221
  else {
217
222
  return this.send(command, optionsOrCb);
218
223
  }
219
- }
220
- listTags(args, optionsOrCb, cb) {
221
- const command = new ListTagsCommand(args);
224
+ };
225
+ DAX.prototype.listTags = function (args, optionsOrCb, cb) {
226
+ var command = new ListTagsCommand(args);
222
227
  if (typeof optionsOrCb === "function") {
223
228
  this.send(command, optionsOrCb);
224
229
  }
225
230
  else if (typeof cb === "function") {
226
231
  if (typeof optionsOrCb !== "object")
227
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
232
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
228
233
  this.send(command, optionsOrCb || {}, cb);
229
234
  }
230
235
  else {
231
236
  return this.send(command, optionsOrCb);
232
237
  }
233
- }
234
- rebootNode(args, optionsOrCb, cb) {
235
- const command = new RebootNodeCommand(args);
238
+ };
239
+ DAX.prototype.rebootNode = function (args, optionsOrCb, cb) {
240
+ var command = new RebootNodeCommand(args);
236
241
  if (typeof optionsOrCb === "function") {
237
242
  this.send(command, optionsOrCb);
238
243
  }
239
244
  else if (typeof cb === "function") {
240
245
  if (typeof optionsOrCb !== "object")
241
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
246
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
242
247
  this.send(command, optionsOrCb || {}, cb);
243
248
  }
244
249
  else {
245
250
  return this.send(command, optionsOrCb);
246
251
  }
247
- }
248
- tagResource(args, optionsOrCb, cb) {
249
- const command = new TagResourceCommand(args);
252
+ };
253
+ DAX.prototype.tagResource = function (args, optionsOrCb, cb) {
254
+ var command = new TagResourceCommand(args);
250
255
  if (typeof optionsOrCb === "function") {
251
256
  this.send(command, optionsOrCb);
252
257
  }
253
258
  else if (typeof cb === "function") {
254
259
  if (typeof optionsOrCb !== "object")
255
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
260
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
256
261
  this.send(command, optionsOrCb || {}, cb);
257
262
  }
258
263
  else {
259
264
  return this.send(command, optionsOrCb);
260
265
  }
261
- }
262
- untagResource(args, optionsOrCb, cb) {
263
- const command = new UntagResourceCommand(args);
266
+ };
267
+ DAX.prototype.untagResource = function (args, optionsOrCb, cb) {
268
+ var command = new UntagResourceCommand(args);
264
269
  if (typeof optionsOrCb === "function") {
265
270
  this.send(command, optionsOrCb);
266
271
  }
267
272
  else if (typeof cb === "function") {
268
273
  if (typeof optionsOrCb !== "object")
269
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
274
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
270
275
  this.send(command, optionsOrCb || {}, cb);
271
276
  }
272
277
  else {
273
278
  return this.send(command, optionsOrCb);
274
279
  }
275
- }
276
- updateCluster(args, optionsOrCb, cb) {
277
- const command = new UpdateClusterCommand(args);
280
+ };
281
+ DAX.prototype.updateCluster = function (args, optionsOrCb, cb) {
282
+ var command = new UpdateClusterCommand(args);
278
283
  if (typeof optionsOrCb === "function") {
279
284
  this.send(command, optionsOrCb);
280
285
  }
281
286
  else if (typeof cb === "function") {
282
287
  if (typeof optionsOrCb !== "object")
283
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
288
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
284
289
  this.send(command, optionsOrCb || {}, cb);
285
290
  }
286
291
  else {
287
292
  return this.send(command, optionsOrCb);
288
293
  }
289
- }
290
- updateParameterGroup(args, optionsOrCb, cb) {
291
- const command = new UpdateParameterGroupCommand(args);
294
+ };
295
+ DAX.prototype.updateParameterGroup = function (args, optionsOrCb, cb) {
296
+ var command = new UpdateParameterGroupCommand(args);
292
297
  if (typeof optionsOrCb === "function") {
293
298
  this.send(command, optionsOrCb);
294
299
  }
295
300
  else if (typeof cb === "function") {
296
301
  if (typeof optionsOrCb !== "object")
297
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
302
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
298
303
  this.send(command, optionsOrCb || {}, cb);
299
304
  }
300
305
  else {
301
306
  return this.send(command, optionsOrCb);
302
307
  }
303
- }
304
- updateSubnetGroup(args, optionsOrCb, cb) {
305
- const command = new UpdateSubnetGroupCommand(args);
308
+ };
309
+ DAX.prototype.updateSubnetGroup = function (args, optionsOrCb, cb) {
310
+ var command = new UpdateSubnetGroupCommand(args);
306
311
  if (typeof optionsOrCb === "function") {
307
312
  this.send(command, optionsOrCb);
308
313
  }
309
314
  else if (typeof cb === "function") {
310
315
  if (typeof optionsOrCb !== "object")
311
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
316
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
312
317
  this.send(command, optionsOrCb || {}, cb);
313
318
  }
314
319
  else {
315
320
  return this.send(command, optionsOrCb);
316
321
  }
317
- }
318
- }
322
+ };
323
+ return DAX;
324
+ }(DAXClient));
325
+ export { DAX };
@@ -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 { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class DAXClient 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));
12
+ var DAXClient = (function (_super) {
13
+ __extends(DAXClient, _super);
14
+ function DAXClient(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;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ DAXClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return DAXClient;
38
+ }(__Client));
39
+ export { DAXClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateClusterRequestFilterSensitiveLog, CreateClusterResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreateClusterCommand, serializeAws_json1_1CreateClusterCommand, } from "../protocols/Aws_json1_1";
5
- export class CreateClusterCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateClusterCommand = (function (_super) {
7
+ __extends(CreateClusterCommand, _super);
8
+ function CreateClusterCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateClusterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "DAXClient";
15
- const commandName = "CreateClusterCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DAXClient";
18
+ var commandName = "CreateClusterCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateClusterRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateClusterResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateClusterCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreateClusterCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateClusterCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreateClusterCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateClusterCommand;
38
+ }($Command));
39
+ export { CreateClusterCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateParameterGroupRequestFilterSensitiveLog, CreateParameterGroupResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreateParameterGroupCommand, serializeAws_json1_1CreateParameterGroupCommand, } from "../protocols/Aws_json1_1";
5
- export class CreateParameterGroupCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateParameterGroupCommand = (function (_super) {
7
+ __extends(CreateParameterGroupCommand, _super);
8
+ function CreateParameterGroupCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateParameterGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "DAXClient";
15
- const commandName = "CreateParameterGroupCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DAXClient";
18
+ var commandName = "CreateParameterGroupCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateParameterGroupRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateParameterGroupResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateParameterGroupCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreateParameterGroupCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateParameterGroupCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreateParameterGroupCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateParameterGroupCommand;
38
+ }($Command));
39
+ export { CreateParameterGroupCommand };