@aws-sdk/client-route53-recovery-cluster 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-route53-recovery-cluster
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-route53-recovery-cluster
@@ -62,7 +62,7 @@ exports.deserializeAws_json1_0GetRoutingControlStateCommand = deserializeAws_jso
62
62
  const deserializeAws_json1_0GetRoutingControlStateCommandError = async (output, context) => {
63
63
  const parsedOutput = {
64
64
  ...output,
65
- body: await parseBody(output.body, context),
65
+ body: await parseErrorBody(output.body, context),
66
66
  };
67
67
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
68
68
  switch (errorCode) {
@@ -111,7 +111,7 @@ exports.deserializeAws_json1_0ListRoutingControlsCommand = deserializeAws_json1_
111
111
  const deserializeAws_json1_0ListRoutingControlsCommandError = async (output, context) => {
112
112
  const parsedOutput = {
113
113
  ...output,
114
- body: await parseBody(output.body, context),
114
+ body: await parseErrorBody(output.body, context),
115
115
  };
116
116
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
117
117
  switch (errorCode) {
@@ -160,7 +160,7 @@ exports.deserializeAws_json1_0UpdateRoutingControlStateCommand = deserializeAws_
160
160
  const deserializeAws_json1_0UpdateRoutingControlStateCommandError = async (output, context) => {
161
161
  const parsedOutput = {
162
162
  ...output,
163
- body: await parseBody(output.body, context),
163
+ body: await parseErrorBody(output.body, context),
164
164
  };
165
165
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
166
166
  switch (errorCode) {
@@ -212,7 +212,7 @@ exports.deserializeAws_json1_0UpdateRoutingControlStatesCommand = deserializeAws
212
212
  const deserializeAws_json1_0UpdateRoutingControlStatesCommandError = async (output, context) => {
213
213
  const parsedOutput = {
214
214
  ...output,
215
- body: await parseBody(output.body, context),
215
+ body: await parseErrorBody(output.body, context),
216
216
  };
217
217
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
218
218
  switch (errorCode) {
@@ -523,6 +523,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
523
523
  }
524
524
  return {};
525
525
  });
526
+ const parseErrorBody = async (errorBody, context) => {
527
+ var _a;
528
+ const value = await parseBody(errorBody, context);
529
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
530
+ return value;
531
+ };
526
532
  const loadRestJsonErrorCode = (output, data) => {
527
533
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
528
534
  const sanitizeErrorCode = (rawValue) => {
@@ -1,70 +1,63 @@
1
- import { __extends } from "tslib";
2
1
  import { GetRoutingControlStateCommand, } from "./commands/GetRoutingControlStateCommand";
3
2
  import { ListRoutingControlsCommand, } from "./commands/ListRoutingControlsCommand";
4
3
  import { UpdateRoutingControlStateCommand, } from "./commands/UpdateRoutingControlStateCommand";
5
4
  import { UpdateRoutingControlStatesCommand, } from "./commands/UpdateRoutingControlStatesCommand";
6
5
  import { Route53RecoveryClusterClient } from "./Route53RecoveryClusterClient";
7
- var Route53RecoveryCluster = (function (_super) {
8
- __extends(Route53RecoveryCluster, _super);
9
- function Route53RecoveryCluster() {
10
- return _super !== null && _super.apply(this, arguments) || this;
11
- }
12
- Route53RecoveryCluster.prototype.getRoutingControlState = function (args, optionsOrCb, cb) {
13
- var command = new GetRoutingControlStateCommand(args);
6
+ export class Route53RecoveryCluster extends Route53RecoveryClusterClient {
7
+ getRoutingControlState(args, optionsOrCb, cb) {
8
+ const command = new GetRoutingControlStateCommand(args);
14
9
  if (typeof optionsOrCb === "function") {
15
10
  this.send(command, optionsOrCb);
16
11
  }
17
12
  else if (typeof cb === "function") {
18
13
  if (typeof optionsOrCb !== "object")
19
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
14
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
20
15
  this.send(command, optionsOrCb || {}, cb);
21
16
  }
22
17
  else {
23
18
  return this.send(command, optionsOrCb);
24
19
  }
25
- };
26
- Route53RecoveryCluster.prototype.listRoutingControls = function (args, optionsOrCb, cb) {
27
- var command = new ListRoutingControlsCommand(args);
20
+ }
21
+ listRoutingControls(args, optionsOrCb, cb) {
22
+ const command = new ListRoutingControlsCommand(args);
28
23
  if (typeof optionsOrCb === "function") {
29
24
  this.send(command, optionsOrCb);
30
25
  }
31
26
  else if (typeof cb === "function") {
32
27
  if (typeof optionsOrCb !== "object")
33
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
28
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
34
29
  this.send(command, optionsOrCb || {}, cb);
35
30
  }
36
31
  else {
37
32
  return this.send(command, optionsOrCb);
38
33
  }
39
- };
40
- Route53RecoveryCluster.prototype.updateRoutingControlState = function (args, optionsOrCb, cb) {
41
- var command = new UpdateRoutingControlStateCommand(args);
34
+ }
35
+ updateRoutingControlState(args, optionsOrCb, cb) {
36
+ const command = new UpdateRoutingControlStateCommand(args);
42
37
  if (typeof optionsOrCb === "function") {
43
38
  this.send(command, optionsOrCb);
44
39
  }
45
40
  else if (typeof cb === "function") {
46
41
  if (typeof optionsOrCb !== "object")
47
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
42
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
48
43
  this.send(command, optionsOrCb || {}, cb);
49
44
  }
50
45
  else {
51
46
  return this.send(command, optionsOrCb);
52
47
  }
53
- };
54
- Route53RecoveryCluster.prototype.updateRoutingControlStates = function (args, optionsOrCb, cb) {
55
- var command = new UpdateRoutingControlStatesCommand(args);
48
+ }
49
+ updateRoutingControlStates(args, optionsOrCb, cb) {
50
+ const command = new UpdateRoutingControlStatesCommand(args);
56
51
  if (typeof optionsOrCb === "function") {
57
52
  this.send(command, optionsOrCb);
58
53
  }
59
54
  else if (typeof cb === "function") {
60
55
  if (typeof optionsOrCb !== "object")
61
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
56
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
62
57
  this.send(command, optionsOrCb || {}, cb);
63
58
  }
64
59
  else {
65
60
  return this.send(command, optionsOrCb);
66
61
  }
67
- };
68
- return Route53RecoveryCluster;
69
- }(Route53RecoveryClusterClient));
70
- export { Route53RecoveryCluster };
62
+ }
63
+ }
@@ -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 Route53RecoveryClusterClient = (function (_super) {
13
- __extends(Route53RecoveryClusterClient, _super);
14
- function Route53RecoveryClusterClient(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 Route53RecoveryClusterClient 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
- Route53RecoveryClusterClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return Route53RecoveryClusterClient;
38
- }(__Client));
39
- export { Route53RecoveryClusterClient };
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 { GetRoutingControlStateRequestFilterSensitiveLog, GetRoutingControlStateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0GetRoutingControlStateCommand, serializeAws_json1_0GetRoutingControlStateCommand, } from "../protocols/Aws_json1_0";
6
- var GetRoutingControlStateCommand = (function (_super) {
7
- __extends(GetRoutingControlStateCommand, _super);
8
- function GetRoutingControlStateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetRoutingControlStateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetRoutingControlStateCommand.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 = "Route53RecoveryClusterClient";
18
- var commandName = "GetRoutingControlStateCommand";
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 = "Route53RecoveryClusterClient";
15
+ const commandName = "GetRoutingControlStateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetRoutingControlStateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetRoutingControlStateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetRoutingControlStateCommand.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_0GetRoutingControlStateCommand(input, context);
33
- };
34
- GetRoutingControlStateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0GetRoutingControlStateCommand(output, context);
36
- };
37
- return GetRoutingControlStateCommand;
38
- }($Command));
39
- export { GetRoutingControlStateCommand };
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 { ListRoutingControlsRequestFilterSensitiveLog, ListRoutingControlsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0ListRoutingControlsCommand, serializeAws_json1_0ListRoutingControlsCommand, } from "../protocols/Aws_json1_0";
6
- var ListRoutingControlsCommand = (function (_super) {
7
- __extends(ListRoutingControlsCommand, _super);
8
- function ListRoutingControlsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListRoutingControlsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListRoutingControlsCommand.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 = "Route53RecoveryClusterClient";
18
- var commandName = "ListRoutingControlsCommand";
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 = "Route53RecoveryClusterClient";
15
+ const commandName = "ListRoutingControlsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListRoutingControlsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListRoutingControlsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListRoutingControlsCommand.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_0ListRoutingControlsCommand(input, context);
33
- };
34
- ListRoutingControlsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0ListRoutingControlsCommand(output, context);
36
- };
37
- return ListRoutingControlsCommand;
38
- }($Command));
39
- export { ListRoutingControlsCommand };
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 { UpdateRoutingControlStateRequestFilterSensitiveLog, UpdateRoutingControlStateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0UpdateRoutingControlStateCommand, serializeAws_json1_0UpdateRoutingControlStateCommand, } from "../protocols/Aws_json1_0";
6
- var UpdateRoutingControlStateCommand = (function (_super) {
7
- __extends(UpdateRoutingControlStateCommand, _super);
8
- function UpdateRoutingControlStateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateRoutingControlStateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateRoutingControlStateCommand.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 = "Route53RecoveryClusterClient";
18
- var commandName = "UpdateRoutingControlStateCommand";
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 = "Route53RecoveryClusterClient";
15
+ const commandName = "UpdateRoutingControlStateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateRoutingControlStateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateRoutingControlStateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateRoutingControlStateCommand.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_0UpdateRoutingControlStateCommand(input, context);
33
- };
34
- UpdateRoutingControlStateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0UpdateRoutingControlStateCommand(output, context);
36
- };
37
- return UpdateRoutingControlStateCommand;
38
- }($Command));
39
- export { UpdateRoutingControlStateCommand };
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 { UpdateRoutingControlStatesRequestFilterSensitiveLog, UpdateRoutingControlStatesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0UpdateRoutingControlStatesCommand, serializeAws_json1_0UpdateRoutingControlStatesCommand, } from "../protocols/Aws_json1_0";
6
- var UpdateRoutingControlStatesCommand = (function (_super) {
7
- __extends(UpdateRoutingControlStatesCommand, _super);
8
- function UpdateRoutingControlStatesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateRoutingControlStatesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateRoutingControlStatesCommand.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 = "Route53RecoveryClusterClient";
18
- var commandName = "UpdateRoutingControlStatesCommand";
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 = "Route53RecoveryClusterClient";
15
+ const commandName = "UpdateRoutingControlStatesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateRoutingControlStatesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateRoutingControlStatesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateRoutingControlStatesCommand.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_0UpdateRoutingControlStatesCommand(input, context);
33
- };
34
- UpdateRoutingControlStatesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0UpdateRoutingControlStatesCommand(output, context);
36
- };
37
- return UpdateRoutingControlStatesCommand;
38
- }($Command));
39
- export { UpdateRoutingControlStatesCommand };
31
+ }
32
+ }
@@ -1,7 +1,6 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {};
4
- var partitionHash = {
2
+ const regionHash = {};
3
+ const partitionHash = {
5
4
  aws: {
6
5
  regions: [
7
6
  "af-south-1",
@@ -121,8 +120,9 @@ var partitionHash = {
121
120
  ],
122
121
  },
123
122
  };
124
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
- return __generator(this, function (_a) {
126
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "route53-recovery-cluster", regionHash: regionHash, partitionHash: partitionHash }))];
127
- });
128
- }); };
123
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
+ ...options,
125
+ signingService: "route53-recovery-cluster",
126
+ regionHash,
127
+ partitionHash,
128
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var Route53RecoveryClusterServiceException = (function (_super) {
4
- __extends(Route53RecoveryClusterServiceException, _super);
5
- function Route53RecoveryClusterServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, Route53RecoveryClusterServiceException.prototype);
8
- return _this;
2
+ export class Route53RecoveryClusterServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, Route53RecoveryClusterServiceException.prototype);
9
6
  }
10
- return Route53RecoveryClusterServiceException;
11
- }(__ServiceException));
12
- export { Route53RecoveryClusterServiceException };
7
+ }