@aws-sdk/client-rbin 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.
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-rbin
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-rbin
@@ -218,7 +218,7 @@ exports.deserializeAws_restJson1CreateRuleCommand = deserializeAws_restJson1Crea
218
218
  const deserializeAws_restJson1CreateRuleCommandError = async (output, context) => {
219
219
  const parsedOutput = {
220
220
  ...output,
221
- body: await parseBody(output.body, context),
221
+ body: await parseErrorBody(output.body, context),
222
222
  };
223
223
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
224
224
  switch (errorCode) {
@@ -255,7 +255,7 @@ exports.deserializeAws_restJson1DeleteRuleCommand = deserializeAws_restJson1Dele
255
255
  const deserializeAws_restJson1DeleteRuleCommandError = async (output, context) => {
256
256
  const parsedOutput = {
257
257
  ...output,
258
- body: await parseBody(output.body, context),
258
+ body: await parseErrorBody(output.body, context),
259
259
  };
260
260
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
261
261
  switch (errorCode) {
@@ -310,7 +310,7 @@ exports.deserializeAws_restJson1GetRuleCommand = deserializeAws_restJson1GetRule
310
310
  const deserializeAws_restJson1GetRuleCommandError = async (output, context) => {
311
311
  const parsedOutput = {
312
312
  ...output,
313
- body: await parseBody(output.body, context),
313
+ body: await parseErrorBody(output.body, context),
314
314
  };
315
315
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
316
316
  switch (errorCode) {
@@ -353,7 +353,7 @@ exports.deserializeAws_restJson1ListRulesCommand = deserializeAws_restJson1ListR
353
353
  const deserializeAws_restJson1ListRulesCommandError = async (output, context) => {
354
354
  const parsedOutput = {
355
355
  ...output,
356
- body: await parseBody(output.body, context),
356
+ body: await parseErrorBody(output.body, context),
357
357
  };
358
358
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
359
359
  switch (errorCode) {
@@ -390,7 +390,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
390
390
  const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
391
391
  const parsedOutput = {
392
392
  ...output,
393
- body: await parseBody(output.body, context),
393
+ body: await parseErrorBody(output.body, context),
394
394
  };
395
395
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
396
396
  switch (errorCode) {
@@ -427,7 +427,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
427
427
  const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
428
428
  const parsedOutput = {
429
429
  ...output,
430
- body: await parseBody(output.body, context),
430
+ body: await parseErrorBody(output.body, context),
431
431
  };
432
432
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
433
433
  switch (errorCode) {
@@ -467,7 +467,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
467
467
  const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
468
468
  const parsedOutput = {
469
469
  ...output,
470
- body: await parseBody(output.body, context),
470
+ body: await parseErrorBody(output.body, context),
471
471
  };
472
472
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
473
473
  switch (errorCode) {
@@ -522,7 +522,7 @@ exports.deserializeAws_restJson1UpdateRuleCommand = deserializeAws_restJson1Upda
522
522
  const deserializeAws_restJson1UpdateRuleCommandError = async (output, context) => {
523
523
  const parsedOutput = {
524
524
  ...output,
525
- body: await parseBody(output.body, context),
525
+ body: await parseErrorBody(output.body, context),
526
526
  };
527
527
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
528
528
  switch (errorCode) {
@@ -722,6 +722,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
722
722
  }
723
723
  return {};
724
724
  });
725
+ const parseErrorBody = async (errorBody, context) => {
726
+ var _a;
727
+ const value = await parseBody(errorBody, context);
728
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
729
+ return value;
730
+ };
725
731
  const loadRestJsonErrorCode = (output, data) => {
726
732
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
727
733
  const sanitizeErrorCode = (rawValue) => {
package/dist-es/Rbin.js CHANGED
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { CreateRuleCommand } from "./commands/CreateRuleCommand";
3
2
  import { DeleteRuleCommand } from "./commands/DeleteRuleCommand";
4
3
  import { GetRuleCommand } from "./commands/GetRuleCommand";
@@ -8,123 +7,117 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
8
7
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
9
8
  import { UpdateRuleCommand } from "./commands/UpdateRuleCommand";
10
9
  import { RbinClient } from "./RbinClient";
11
- var Rbin = (function (_super) {
12
- __extends(Rbin, _super);
13
- function Rbin() {
14
- return _super !== null && _super.apply(this, arguments) || this;
15
- }
16
- Rbin.prototype.createRule = function (args, optionsOrCb, cb) {
17
- var command = new CreateRuleCommand(args);
10
+ export class Rbin extends RbinClient {
11
+ createRule(args, optionsOrCb, cb) {
12
+ const command = new CreateRuleCommand(args);
18
13
  if (typeof optionsOrCb === "function") {
19
14
  this.send(command, optionsOrCb);
20
15
  }
21
16
  else if (typeof cb === "function") {
22
17
  if (typeof optionsOrCb !== "object")
23
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
18
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
24
19
  this.send(command, optionsOrCb || {}, cb);
25
20
  }
26
21
  else {
27
22
  return this.send(command, optionsOrCb);
28
23
  }
29
- };
30
- Rbin.prototype.deleteRule = function (args, optionsOrCb, cb) {
31
- var command = new DeleteRuleCommand(args);
24
+ }
25
+ deleteRule(args, optionsOrCb, cb) {
26
+ const command = new DeleteRuleCommand(args);
32
27
  if (typeof optionsOrCb === "function") {
33
28
  this.send(command, optionsOrCb);
34
29
  }
35
30
  else if (typeof cb === "function") {
36
31
  if (typeof optionsOrCb !== "object")
37
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
32
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
38
33
  this.send(command, optionsOrCb || {}, cb);
39
34
  }
40
35
  else {
41
36
  return this.send(command, optionsOrCb);
42
37
  }
43
- };
44
- Rbin.prototype.getRule = function (args, optionsOrCb, cb) {
45
- var command = new GetRuleCommand(args);
38
+ }
39
+ getRule(args, optionsOrCb, cb) {
40
+ const command = new GetRuleCommand(args);
46
41
  if (typeof optionsOrCb === "function") {
47
42
  this.send(command, optionsOrCb);
48
43
  }
49
44
  else if (typeof cb === "function") {
50
45
  if (typeof optionsOrCb !== "object")
51
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
46
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
47
  this.send(command, optionsOrCb || {}, cb);
53
48
  }
54
49
  else {
55
50
  return this.send(command, optionsOrCb);
56
51
  }
57
- };
58
- Rbin.prototype.listRules = function (args, optionsOrCb, cb) {
59
- var command = new ListRulesCommand(args);
52
+ }
53
+ listRules(args, optionsOrCb, cb) {
54
+ const command = new ListRulesCommand(args);
60
55
  if (typeof optionsOrCb === "function") {
61
56
  this.send(command, optionsOrCb);
62
57
  }
63
58
  else if (typeof cb === "function") {
64
59
  if (typeof optionsOrCb !== "object")
65
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
60
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
61
  this.send(command, optionsOrCb || {}, cb);
67
62
  }
68
63
  else {
69
64
  return this.send(command, optionsOrCb);
70
65
  }
71
- };
72
- Rbin.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
73
- var command = new ListTagsForResourceCommand(args);
66
+ }
67
+ listTagsForResource(args, optionsOrCb, cb) {
68
+ const command = new ListTagsForResourceCommand(args);
74
69
  if (typeof optionsOrCb === "function") {
75
70
  this.send(command, optionsOrCb);
76
71
  }
77
72
  else if (typeof cb === "function") {
78
73
  if (typeof optionsOrCb !== "object")
79
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
74
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
75
  this.send(command, optionsOrCb || {}, cb);
81
76
  }
82
77
  else {
83
78
  return this.send(command, optionsOrCb);
84
79
  }
85
- };
86
- Rbin.prototype.tagResource = function (args, optionsOrCb, cb) {
87
- var command = new TagResourceCommand(args);
80
+ }
81
+ tagResource(args, optionsOrCb, cb) {
82
+ const command = new TagResourceCommand(args);
88
83
  if (typeof optionsOrCb === "function") {
89
84
  this.send(command, optionsOrCb);
90
85
  }
91
86
  else if (typeof cb === "function") {
92
87
  if (typeof optionsOrCb !== "object")
93
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
88
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
89
  this.send(command, optionsOrCb || {}, cb);
95
90
  }
96
91
  else {
97
92
  return this.send(command, optionsOrCb);
98
93
  }
99
- };
100
- Rbin.prototype.untagResource = function (args, optionsOrCb, cb) {
101
- var command = new UntagResourceCommand(args);
94
+ }
95
+ untagResource(args, optionsOrCb, cb) {
96
+ const command = new UntagResourceCommand(args);
102
97
  if (typeof optionsOrCb === "function") {
103
98
  this.send(command, optionsOrCb);
104
99
  }
105
100
  else if (typeof cb === "function") {
106
101
  if (typeof optionsOrCb !== "object")
107
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
102
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
103
  this.send(command, optionsOrCb || {}, cb);
109
104
  }
110
105
  else {
111
106
  return this.send(command, optionsOrCb);
112
107
  }
113
- };
114
- Rbin.prototype.updateRule = function (args, optionsOrCb, cb) {
115
- var command = new UpdateRuleCommand(args);
108
+ }
109
+ updateRule(args, optionsOrCb, cb) {
110
+ const command = new UpdateRuleCommand(args);
116
111
  if (typeof optionsOrCb === "function") {
117
112
  this.send(command, optionsOrCb);
118
113
  }
119
114
  else if (typeof cb === "function") {
120
115
  if (typeof optionsOrCb !== "object")
121
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
116
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
117
  this.send(command, optionsOrCb || {}, cb);
123
118
  }
124
119
  else {
125
120
  return this.send(command, optionsOrCb);
126
121
  }
127
- };
128
- return Rbin;
129
- }(RbinClient));
130
- export { Rbin };
122
+ }
123
+ }
@@ -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 RbinClient = (function (_super) {
13
- __extends(RbinClient, _super);
14
- function RbinClient(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 RbinClient 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
- RbinClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return RbinClient;
38
- }(__Client));
39
- export { RbinClient };
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 { CreateRuleRequestFilterSensitiveLog, CreateRuleResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateRuleCommand, serializeAws_restJson1CreateRuleCommand, } from "../protocols/Aws_restJson1";
6
- var CreateRuleCommand = (function (_super) {
7
- __extends(CreateRuleCommand, _super);
8
- function CreateRuleCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateRuleCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateRuleCommand.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 = "RbinClient";
18
- var commandName = "CreateRuleCommand";
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 = "RbinClient";
15
+ const commandName = "CreateRuleCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateRuleRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateRuleResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateRuleCommand.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_restJson1CreateRuleCommand(input, context);
33
- };
34
- CreateRuleCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateRuleCommand(output, context);
36
- };
37
- return CreateRuleCommand;
38
- }($Command));
39
- export { CreateRuleCommand };
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 { DeleteRuleRequestFilterSensitiveLog, DeleteRuleResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteRuleCommand, serializeAws_restJson1DeleteRuleCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteRuleCommand = (function (_super) {
7
- __extends(DeleteRuleCommand, _super);
8
- function DeleteRuleCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteRuleCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteRuleCommand.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 = "RbinClient";
18
- var commandName = "DeleteRuleCommand";
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 = "RbinClient";
15
+ const commandName = "DeleteRuleCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteRuleRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteRuleResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteRuleCommand.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_restJson1DeleteRuleCommand(input, context);
33
- };
34
- DeleteRuleCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteRuleCommand(output, context);
36
- };
37
- return DeleteRuleCommand;
38
- }($Command));
39
- export { DeleteRuleCommand };
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 { GetRuleRequestFilterSensitiveLog, GetRuleResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetRuleCommand, serializeAws_restJson1GetRuleCommand, } from "../protocols/Aws_restJson1";
6
- var GetRuleCommand = (function (_super) {
7
- __extends(GetRuleCommand, _super);
8
- function GetRuleCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetRuleCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetRuleCommand.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 = "RbinClient";
18
- var commandName = "GetRuleCommand";
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 = "RbinClient";
15
+ const commandName = "GetRuleCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetRuleRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetRuleResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetRuleCommand.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_restJson1GetRuleCommand(input, context);
33
- };
34
- GetRuleCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetRuleCommand(output, context);
36
- };
37
- return GetRuleCommand;
38
- }($Command));
39
- export { GetRuleCommand };
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 { ListRulesRequestFilterSensitiveLog, ListRulesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListRulesCommand, serializeAws_restJson1ListRulesCommand, } from "../protocols/Aws_restJson1";
6
- var ListRulesCommand = (function (_super) {
7
- __extends(ListRulesCommand, _super);
8
- function ListRulesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListRulesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListRulesCommand.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 = "RbinClient";
18
- var commandName = "ListRulesCommand";
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 = "RbinClient";
15
+ const commandName = "ListRulesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListRulesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListRulesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListRulesCommand.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_restJson1ListRulesCommand(input, context);
33
- };
34
- ListRulesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListRulesCommand(output, context);
36
- };
37
- return ListRulesCommand;
38
- }($Command));
39
- export { ListRulesCommand };
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 { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
6
- var ListTagsForResourceCommand = (function (_super) {
7
- __extends(ListTagsForResourceCommand, _super);
8
- function ListTagsForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.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 = "RbinClient";
18
- var commandName = "ListTagsForResourceCommand";
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 = "RbinClient";
15
+ const commandName = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForResourceCommand.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_restJson1ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
31
+ }
32
+ }