@aws-sdk/client-route53-recovery-cluster 3.32.0 → 3.36.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 (107) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/{dist/cjs → dist-cjs}/Route53RecoveryCluster.js +1 -2
  3. package/{dist/cjs → dist-cjs}/Route53RecoveryClusterClient.js +8 -9
  4. package/{dist/cjs → dist-cjs}/commands/GetRoutingControlStateCommand.js +2 -3
  5. package/{dist/cjs → dist-cjs}/commands/UpdateRoutingControlStateCommand.js +2 -3
  6. package/{dist/cjs → dist-cjs}/commands/UpdateRoutingControlStatesCommand.js +2 -3
  7. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  8. package/{dist/cjs → dist-cjs}/index.js +0 -1
  9. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  10. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
  11. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_0.js +0 -1
  12. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  13. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  14. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  15. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  16. package/{dist/es → dist-es}/Route53RecoveryCluster.js +2 -27
  17. package/dist-es/Route53RecoveryClusterClient.js +37 -0
  18. package/dist-es/commands/GetRoutingControlStateCommand.js +39 -0
  19. package/{dist/es → dist-es}/commands/UpdateRoutingControlStateCommand.js +4 -34
  20. package/{dist/es → dist-es}/commands/UpdateRoutingControlStatesCommand.js +4 -34
  21. package/{dist/es → dist-es}/endpoints.js +1 -2
  22. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  23. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  24. package/{dist/es → dist-es}/models/models_0.js +0 -46
  25. package/{dist/es → dist-es}/protocols/Aws_json1_0.js +110 -116
  26. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  27. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  28. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  29. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  30. package/{dist/types → dist-types}/Route53RecoveryCluster.d.ts +2 -2
  31. package/{dist/types → dist-types}/Route53RecoveryClusterClient.d.ts +4 -4
  32. package/{dist/types → dist-types}/commands/GetRoutingControlStateCommand.d.ts +3 -3
  33. package/{dist/types → dist-types}/commands/UpdateRoutingControlStateCommand.d.ts +3 -3
  34. package/{dist/types → dist-types}/commands/UpdateRoutingControlStatesCommand.d.ts +3 -3
  35. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  36. package/{index.ts → dist-types/index.d.ts} +0 -0
  37. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  38. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  39. package/{dist/types → dist-types}/protocols/Aws_json1_0.d.ts +2 -2
  40. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +4 -1
  41. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  42. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  43. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  44. package/{dist/types → dist-types}/ts3.4/Route53RecoveryCluster.d.ts +2 -2
  45. package/{dist/types → dist-types}/ts3.4/Route53RecoveryClusterClient.d.ts +4 -4
  46. package/{dist/types → dist-types}/ts3.4/commands/GetRoutingControlStateCommand.d.ts +3 -3
  47. package/{dist/types → dist-types}/ts3.4/commands/UpdateRoutingControlStateCommand.d.ts +3 -3
  48. package/{dist/types → dist-types}/ts3.4/commands/UpdateRoutingControlStatesCommand.d.ts +3 -3
  49. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  50. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  51. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  52. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  53. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_0.d.ts +2 -2
  54. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +4 -1
  55. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  56. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  57. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  58. package/package.json +52 -49
  59. package/Route53RecoveryCluster.ts +0 -156
  60. package/Route53RecoveryClusterClient.ts +0 -274
  61. package/commands/GetRoutingControlStateCommand.ts +0 -107
  62. package/commands/UpdateRoutingControlStateCommand.ts +0 -105
  63. package/commands/UpdateRoutingControlStatesCommand.ts +0 -105
  64. package/dist/cjs/Route53RecoveryCluster.js.map +0 -1
  65. package/dist/cjs/Route53RecoveryClusterClient.js.map +0 -1
  66. package/dist/cjs/commands/GetRoutingControlStateCommand.js.map +0 -1
  67. package/dist/cjs/commands/UpdateRoutingControlStateCommand.js.map +0 -1
  68. package/dist/cjs/commands/UpdateRoutingControlStatesCommand.js.map +0 -1
  69. package/dist/cjs/endpoints.js.map +0 -1
  70. package/dist/cjs/index.js.map +0 -1
  71. package/dist/cjs/models/index.js.map +0 -1
  72. package/dist/cjs/models/models_0.js.map +0 -1
  73. package/dist/cjs/package.json +0 -91
  74. package/dist/cjs/protocols/Aws_json1_0.js.map +0 -1
  75. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  76. package/dist/cjs/runtimeConfig.js.map +0 -1
  77. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  78. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  79. package/dist/es/Route53RecoveryCluster.js.map +0 -1
  80. package/dist/es/Route53RecoveryClusterClient.js +0 -67
  81. package/dist/es/Route53RecoveryClusterClient.js.map +0 -1
  82. package/dist/es/commands/GetRoutingControlStateCommand.js +0 -74
  83. package/dist/es/commands/GetRoutingControlStateCommand.js.map +0 -1
  84. package/dist/es/commands/UpdateRoutingControlStateCommand.js.map +0 -1
  85. package/dist/es/commands/UpdateRoutingControlStatesCommand.js.map +0 -1
  86. package/dist/es/endpoints.js.map +0 -1
  87. package/dist/es/index.js +0 -7
  88. package/dist/es/index.js.map +0 -1
  89. package/dist/es/models/index.js +0 -2
  90. package/dist/es/models/index.js.map +0 -1
  91. package/dist/es/models/models_0.js.map +0 -1
  92. package/dist/es/package.json +0 -91
  93. package/dist/es/protocols/Aws_json1_0.js.map +0 -1
  94. package/dist/es/runtimeConfig.browser.js.map +0 -1
  95. package/dist/es/runtimeConfig.js.map +0 -1
  96. package/dist/es/runtimeConfig.native.js.map +0 -1
  97. package/dist/es/runtimeConfig.shared.js.map +0 -1
  98. package/endpoints.ts +0 -57
  99. package/jest.config.js +0 -4
  100. package/models/models_0.ts +0 -322
  101. package/protocols/Aws_json1_0.ts +0 -739
  102. package/runtimeConfig.browser.ts +0 -40
  103. package/runtimeConfig.native.ts +0 -16
  104. package/runtimeConfig.shared.ts +0 -16
  105. package/runtimeConfig.ts +0 -45
  106. package/tsconfig.es.json +0 -12
  107. package/tsconfig.json +0 -32
package/CHANGELOG.md CHANGED
@@ -3,6 +3,50 @@
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.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
+
8
+
9
+ ### Features
10
+
11
+ * publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
12
+ * **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
13
+ * **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
14
+
15
+
16
+
17
+
18
+
19
+ # [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
20
+
21
+
22
+ ### Features
23
+
24
+ * **clients:** eslint --fix using esprint ([#2849](https://github.com/aws/aws-sdk-js-v3/issues/2849)) ([94d0a2d](https://github.com/aws/aws-sdk-js-v3/commit/94d0a2d8a0579ee0a742337937ad05735cfbc1ba))
25
+ * **clients:** move source files to 'src' folder ([#2845](https://github.com/aws/aws-sdk-js-v3/issues/2845)) ([e0025cd](https://github.com/aws/aws-sdk-js-v3/commit/e0025cddbba244a41ddf1fd1adb761142e15c22d))
26
+
27
+
28
+
29
+
30
+
31
+ # [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24)
32
+
33
+
34
+ ### Features
35
+
36
+ * **clients:** remove comments from transpiled JS files ([#2817](https://github.com/aws/aws-sdk-js-v3/issues/2817)) ([d01420b](https://github.com/aws/aws-sdk-js-v3/commit/d01420b247966c8ec84c1dd0a1b42512ede10c90))
37
+
38
+
39
+
40
+
41
+
42
+ # [3.33.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.32.0...v3.33.0) (2021-09-21)
43
+
44
+ **Note:** Version bump only for package @aws-sdk/client-route53-recovery-cluster
45
+
46
+
47
+
48
+
49
+
6
50
  # [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
7
51
 
8
52
  **Note:** Version bump only for package @aws-sdk/client-route53-recovery-cluster
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Route53RecoveryCluster = void 0;
4
- const Route53RecoveryClusterClient_1 = require("./Route53RecoveryClusterClient");
5
4
  const GetRoutingControlStateCommand_1 = require("./commands/GetRoutingControlStateCommand");
6
5
  const UpdateRoutingControlStateCommand_1 = require("./commands/UpdateRoutingControlStateCommand");
7
6
  const UpdateRoutingControlStatesCommand_1 = require("./commands/UpdateRoutingControlStatesCommand");
7
+ const Route53RecoveryClusterClient_1 = require("./Route53RecoveryClusterClient");
8
8
  /**
9
9
  * <p>Welcome to the Amazon Route 53 Application Recovery Controller API Reference Guide for Recovery Control Data Plane .</p>
10
10
  * <p>Recovery control in Route 53 Application Recovery Controller includes extremely reliable routing controls that enable you to recover applications
@@ -74,4 +74,3 @@ class Route53RecoveryCluster extends Route53RecoveryClusterClient_1.Route53Recov
74
74
  }
75
75
  }
76
76
  exports.Route53RecoveryCluster = Route53RecoveryCluster;
77
- //# sourceMappingURL=Route53RecoveryCluster.js.map
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Route53RecoveryClusterClient = void 0;
4
- const runtimeConfig_1 = require("./runtimeConfig");
5
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
6
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
7
6
  const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
@@ -10,6 +9,7 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
10
9
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
11
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
12
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
+ const runtimeConfig_1 = require("./runtimeConfig");
13
13
  /**
14
14
  * <p>Welcome to the Amazon Route 53 Application Recovery Controller API Reference Guide for Recovery Control Data Plane .</p>
15
15
  * <p>Recovery control in Route 53 Application Recovery Controller includes extremely reliable routing controls that enable you to recover applications
@@ -36,13 +36,13 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
36
36
  */
37
37
  class Route53RecoveryClusterClient extends smithy_client_1.Client {
38
38
  constructor(configuration) {
39
- let _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
40
- let _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
41
- let _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
42
- let _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
43
- let _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
44
- let _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
45
- let _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
39
+ const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
40
+ const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
41
+ const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
42
+ const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
43
+ const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
44
+ const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
45
+ const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
46
46
  super(_config_6);
47
47
  this.config = _config_6;
48
48
  this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
@@ -62,4 +62,3 @@ class Route53RecoveryClusterClient extends smithy_client_1.Client {
62
62
  }
63
63
  }
64
64
  exports.Route53RecoveryClusterClient = Route53RecoveryClusterClient;
65
- //# sourceMappingURL=Route53RecoveryClusterClient.js.map
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetRoutingControlStateCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
8
  /**
9
9
  * <p>Get the state for a routing control. A routing control is a simple on/off switch
10
10
  * that you can use to route traffic to cells. When the state is On, traffic flows to a cell. When it's off, traffic does not flow. </p>
@@ -67,4 +67,3 @@ class GetRoutingControlStateCommand extends smithy_client_1.Command {
67
67
  }
68
68
  }
69
69
  exports.GetRoutingControlStateCommand = GetRoutingControlStateCommand;
70
- //# sourceMappingURL=GetRoutingControlStateCommand.js.map
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateRoutingControlStateCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
8
  /**
9
9
  * <p>Set the state of the routing control to reroute traffic. You can set the value to be On or Off.
10
10
  * When the state is On, traffic flows to a cell. When it's off, traffic does not flow.</p>
@@ -62,4 +62,3 @@ class UpdateRoutingControlStateCommand extends smithy_client_1.Command {
62
62
  }
63
63
  }
64
64
  exports.UpdateRoutingControlStateCommand = UpdateRoutingControlStateCommand;
65
- //# sourceMappingURL=UpdateRoutingControlStateCommand.js.map
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateRoutingControlStatesCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
8
  /**
9
9
  * <p>Set multiple routing control states. You can set the value for each state to be On or Off.
10
10
  * When the state is On, traffic flows to a cell. When it's off, traffic does not flow.</p>
@@ -62,4 +62,3 @@ class UpdateRoutingControlStatesCommand extends smithy_client_1.Command {
62
62
  }
63
63
  }
64
64
  exports.UpdateRoutingControlStatesCommand = UpdateRoutingControlStatesCommand;
65
- //# sourceMappingURL=UpdateRoutingControlStatesCommand.js.map
@@ -54,4 +54,3 @@ const defaultRegionInfoProvider = async (region, options) => config_resolver_1.g
54
54
  partitionHash,
55
55
  });
56
56
  exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
57
- //# sourceMappingURL=endpoints.js.map
@@ -7,4 +7,3 @@ tslib_1.__exportStar(require("./commands/GetRoutingControlStateCommand"), export
7
7
  tslib_1.__exportStar(require("./commands/UpdateRoutingControlStateCommand"), exports);
8
8
  tslib_1.__exportStar(require("./commands/UpdateRoutingControlStatesCommand"), exports);
9
9
  tslib_1.__exportStar(require("./models/index"), exports);
10
- //# sourceMappingURL=index.js.map
@@ -2,4 +2,3 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./models_0"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -148,4 +148,3 @@ var UpdateRoutingControlStatesResponse;
148
148
  ...obj,
149
149
  });
150
150
  })(UpdateRoutingControlStatesResponse = exports.UpdateRoutingControlStatesResponse || (exports.UpdateRoutingControlStatesResponse = {}));
151
- //# sourceMappingURL=models_0.js.map
@@ -569,4 +569,3 @@ const loadRestJsonErrorCode = (output, data) => {
569
569
  }
570
570
  return "";
571
571
  };
572
- //# sourceMappingURL=Aws_json1_0.js.map
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("./package.json"));
5
+ // @ts-ignore: package.json will be imported from dist folders
6
+ const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
6
7
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -38,4 +39,3 @@ const getRuntimeConfig = (config) => {
38
39
  };
39
40
  };
40
41
  exports.getRuntimeConfig = getRuntimeConfig;
41
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("./package.json"));
5
+ // @ts-ignore: package.json will be imported from dist folders
6
+ const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
6
7
  const client_sts_1 = require("@aws-sdk/client-sts");
7
8
  const config_resolver_1 = require("@aws-sdk/config-resolver");
8
9
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -43,4 +44,3 @@ const getRuntimeConfig = (config) => {
43
44
  };
44
45
  };
45
46
  exports.getRuntimeConfig = getRuntimeConfig;
46
- //# sourceMappingURL=runtimeConfig.js.map
@@ -17,4 +17,3 @@ const getRuntimeConfig = (config) => {
17
17
  };
18
18
  };
19
19
  exports.getRuntimeConfig = getRuntimeConfig;
20
- //# sourceMappingURL=runtimeConfig.native.js.map
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
- const endpoints_1 = require("./endpoints");
5
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
+ const endpoints_1 = require("./endpoints");
6
6
  /**
7
7
  * @internal
8
8
  */
@@ -18,4 +18,3 @@ const getRuntimeConfig = (config) => {
18
18
  });
19
19
  };
20
20
  exports.getRuntimeConfig = getRuntimeConfig;
21
- //# sourceMappingURL=runtimeConfig.shared.js.map
@@ -1,33 +1,9 @@
1
1
  import { __extends } from "tslib";
2
- import { Route53RecoveryClusterClient } from "./Route53RecoveryClusterClient";
3
2
  import { GetRoutingControlStateCommand, } from "./commands/GetRoutingControlStateCommand";
4
3
  import { UpdateRoutingControlStateCommand, } from "./commands/UpdateRoutingControlStateCommand";
5
4
  import { UpdateRoutingControlStatesCommand, } from "./commands/UpdateRoutingControlStatesCommand";
6
- /**
7
- * <p>Welcome to the Amazon Route 53 Application Recovery Controller API Reference Guide for Recovery Control Data Plane .</p>
8
- * <p>Recovery control in Route 53 Application Recovery Controller includes extremely reliable routing controls that enable you to recover applications
9
- * by rerouting traffic, for example, across Availability Zones or AWS Regions. Routing controls are simple on/off switches
10
- * hosted on a cluster. A cluster is a set of five redundant regional endpoints against which you can execute API calls to update or
11
- * get the state of routing controls. You use routing controls to failover traffic to recover your application
12
- * across Availability Zones or Regions.</p>
13
- * <p>This API guide includes information about how to get and update routing control states in Route 53 Application Recovery Controller.</p>
14
- * <p>For more information about Route 53 Application Recovery Controller, see the following:</p>
15
- * <ul>
16
- * <li>
17
- * <p>You can create clusters, routing controls, and control panels by using the control plane API for Recovery
18
- * Control. For more information, see <a href="https://docs.aws.amazon.com/recovery-cluster/latest/api/">Amazon Route 53 Application Recovery Controller Recovery Control API Reference</a>.</p>
19
- * </li>
20
- * <li>
21
- * <p>Route 53 Application Recovery Controller also provides continuous readiness checks to ensure that your applications are scaled to handle failover traffic.
22
- * For more information about the related API actions, see <a href="https://docs.aws.amazon.com/recovery-readiness/latest/api/">Amazon Route 53 Application Recovery Controller Recovery Readiness API Reference</a>.</p>
23
- * </li>
24
- * <li>
25
- * <p>For more information about creating resilient applications and preparing for recovery readiness with Route 53 Application Recovery Controller,
26
- * see the <a href="r53recovery/latest/dg/">Amazon Route 53 Application Recovery Controller Developer Guide</a>.</p>
27
- * </li>
28
- * </ul>
29
- */
30
- var Route53RecoveryCluster = /** @class */ (function (_super) {
5
+ import { Route53RecoveryClusterClient } from "./Route53RecoveryClusterClient";
6
+ var Route53RecoveryCluster = (function (_super) {
31
7
  __extends(Route53RecoveryCluster, _super);
32
8
  function Route53RecoveryCluster() {
33
9
  return _super !== null && _super.apply(this, arguments) || this;
@@ -77,4 +53,3 @@ var Route53RecoveryCluster = /** @class */ (function (_super) {
77
53
  return Route53RecoveryCluster;
78
54
  }(Route53RecoveryClusterClient));
79
55
  export { Route53RecoveryCluster };
80
- //# sourceMappingURL=Route53RecoveryCluster.js.map
@@ -0,0 +1,37 @@
1
+ import { __extends } from "tslib";
2
+ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
+ import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
+ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
+ import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
+ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
7
+ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
8
+ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
+ import { Client as __Client, } from "@aws-sdk/smithy-client";
10
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
+ var Route53RecoveryClusterClient = (function (_super) {
12
+ __extends(Route53RecoveryClusterClient, _super);
13
+ function Route53RecoveryClusterClient(configuration) {
14
+ var _this = this;
15
+ var _config_0 = __getRuntimeConfig(configuration);
16
+ var _config_1 = resolveRegionConfig(_config_0);
17
+ var _config_2 = resolveEndpointsConfig(_config_1);
18
+ var _config_3 = resolveRetryConfig(_config_2);
19
+ var _config_4 = resolveHostHeaderConfig(_config_3);
20
+ var _config_5 = resolveAwsAuthConfig(_config_4);
21
+ var _config_6 = resolveUserAgentConfig(_config_5);
22
+ _this = _super.call(this, _config_6) || this;
23
+ _this.config = _config_6;
24
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
25
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
26
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
27
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
28
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
29
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
30
+ return _this;
31
+ }
32
+ Route53RecoveryClusterClient.prototype.destroy = function () {
33
+ _super.prototype.destroy.call(this);
34
+ };
35
+ return Route53RecoveryClusterClient;
36
+ }(__Client));
37
+ export { Route53RecoveryClusterClient };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetRoutingControlStateRequest, GetRoutingControlStateResponse } from "../models/models_0";
5
+ 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;
12
+ }
13
+ GetRoutingControlStateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ 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,
23
+ inputFilterSensitiveLog: GetRoutingControlStateRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetRoutingControlStateResponse.filterSensitiveLog,
25
+ };
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) {
32
+ return serializeAws_json1_0GetRoutingControlStateCommand(input, context);
33
+ };
34
+ GetRoutingControlStateCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_0GetRoutingControlStateCommand(output, context);
36
+ };
37
+ return GetRoutingControlStateCommand;
38
+ }($Command));
39
+ export { GetRoutingControlStateCommand };
@@ -1,44 +1,15 @@
1
1
  import { __extends } from "tslib";
2
- import { UpdateRoutingControlStateRequest, UpdateRoutingControlStateResponse } from "../models/models_0";
3
- import { deserializeAws_json1_0UpdateRoutingControlStateCommand, serializeAws_json1_0UpdateRoutingControlStateCommand, } from "../protocols/Aws_json1_0";
4
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Set the state of the routing control to reroute traffic. You can set the value to be On or Off.
8
- * When the state is On, traffic flows to a cell. When it's off, traffic does not flow.</p>
9
- * <p>For more information about working with routing controls, see
10
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Routing control</a>
11
- * in the Route 53 Application Recovery Controller Developer Guide.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { Route53RecoveryClusterClient, UpdateRoutingControlStateCommand } from "@aws-sdk/client-route53-recovery-cluster"; // ES Modules import
16
- * // const { Route53RecoveryClusterClient, UpdateRoutingControlStateCommand } = require("@aws-sdk/client-route53-recovery-cluster"); // CommonJS import
17
- * const client = new Route53RecoveryClusterClient(config);
18
- * const command = new UpdateRoutingControlStateCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link UpdateRoutingControlStateCommandInput} for command's `input` shape.
23
- * @see {@link UpdateRoutingControlStateCommandOutput} for command's `response` shape.
24
- * @see {@link Route53RecoveryClusterClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
- var UpdateRoutingControlStateCommand = /** @class */ (function (_super) {
4
+ import { UpdateRoutingControlStateRequest, UpdateRoutingControlStateResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_0UpdateRoutingControlStateCommand, serializeAws_json1_0UpdateRoutingControlStateCommand, } from "../protocols/Aws_json1_0";
6
+ var UpdateRoutingControlStateCommand = (function (_super) {
28
7
  __extends(UpdateRoutingControlStateCommand, _super);
29
- // Start section: command_properties
30
- // End section: command_properties
31
8
  function UpdateRoutingControlStateCommand(input) {
32
- var _this =
33
- // Start section: command_constructor
34
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
35
10
  _this.input = input;
36
11
  return _this;
37
- // End section: command_constructor
38
12
  }
39
- /**
40
- * @internal
41
- */
42
13
  UpdateRoutingControlStateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
43
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
44
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -66,4 +37,3 @@ var UpdateRoutingControlStateCommand = /** @class */ (function (_super) {
66
37
  return UpdateRoutingControlStateCommand;
67
38
  }($Command));
68
39
  export { UpdateRoutingControlStateCommand };
69
- //# sourceMappingURL=UpdateRoutingControlStateCommand.js.map
@@ -1,44 +1,15 @@
1
1
  import { __extends } from "tslib";
2
- import { UpdateRoutingControlStatesRequest, UpdateRoutingControlStatesResponse } from "../models/models_0";
3
- import { deserializeAws_json1_0UpdateRoutingControlStatesCommand, serializeAws_json1_0UpdateRoutingControlStatesCommand, } from "../protocols/Aws_json1_0";
4
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Set multiple routing control states. You can set the value for each state to be On or Off.
8
- * When the state is On, traffic flows to a cell. When it's off, traffic does not flow.</p>
9
- * <p>For more information about working with routing controls, see
10
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Routing control</a>
11
- * in the Route 53 Application Recovery Controller Developer Guide.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { Route53RecoveryClusterClient, UpdateRoutingControlStatesCommand } from "@aws-sdk/client-route53-recovery-cluster"; // ES Modules import
16
- * // const { Route53RecoveryClusterClient, UpdateRoutingControlStatesCommand } = require("@aws-sdk/client-route53-recovery-cluster"); // CommonJS import
17
- * const client = new Route53RecoveryClusterClient(config);
18
- * const command = new UpdateRoutingControlStatesCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link UpdateRoutingControlStatesCommandInput} for command's `input` shape.
23
- * @see {@link UpdateRoutingControlStatesCommandOutput} for command's `response` shape.
24
- * @see {@link Route53RecoveryClusterClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
- var UpdateRoutingControlStatesCommand = /** @class */ (function (_super) {
4
+ import { UpdateRoutingControlStatesRequest, UpdateRoutingControlStatesResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_0UpdateRoutingControlStatesCommand, serializeAws_json1_0UpdateRoutingControlStatesCommand, } from "../protocols/Aws_json1_0";
6
+ var UpdateRoutingControlStatesCommand = (function (_super) {
28
7
  __extends(UpdateRoutingControlStatesCommand, _super);
29
- // Start section: command_properties
30
- // End section: command_properties
31
8
  function UpdateRoutingControlStatesCommand(input) {
32
- var _this =
33
- // Start section: command_constructor
34
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
35
10
  _this.input = input;
36
11
  return _this;
37
- // End section: command_constructor
38
12
  }
39
- /**
40
- * @internal
41
- */
42
13
  UpdateRoutingControlStatesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
43
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
44
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -66,4 +37,3 @@ var UpdateRoutingControlStatesCommand = /** @class */ (function (_super) {
66
37
  return UpdateRoutingControlStatesCommand;
67
38
  }($Command));
68
39
  export { UpdateRoutingControlStatesCommand };
69
- //# sourceMappingURL=UpdateRoutingControlStatesCommand.js.map
@@ -47,7 +47,6 @@ var partitionHash = {
47
47
  };
48
48
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
49
49
  return __generator(this, function (_a) {
50
- return [2 /*return*/, getRegionInfo(region, __assign(__assign({}, options), { signingService: "route53-recovery-cluster", regionHash: regionHash, partitionHash: partitionHash }))];
50
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "route53-recovery-cluster", regionHash: regionHash, partitionHash: partitionHash }))];
51
51
  });
52
52
  }); };
53
- //# sourceMappingURL=endpoints.js.map
File without changes
@@ -1,30 +1,18 @@
1
1
  import { __assign } from "tslib";
2
2
  export var AccessDeniedException;
3
3
  (function (AccessDeniedException) {
4
- /**
5
- * @internal
6
- */
7
4
  AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
8
5
  })(AccessDeniedException || (AccessDeniedException = {}));
9
6
  export var ConflictException;
10
7
  (function (ConflictException) {
11
- /**
12
- * @internal
13
- */
14
8
  ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
15
9
  })(ConflictException || (ConflictException = {}));
16
10
  export var EndpointTemporarilyUnavailableException;
17
11
  (function (EndpointTemporarilyUnavailableException) {
18
- /**
19
- * @internal
20
- */
21
12
  EndpointTemporarilyUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
22
13
  })(EndpointTemporarilyUnavailableException || (EndpointTemporarilyUnavailableException = {}));
23
14
  export var GetRoutingControlStateRequest;
24
15
  (function (GetRoutingControlStateRequest) {
25
- /**
26
- * @internal
27
- */
28
16
  GetRoutingControlStateRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
17
  })(GetRoutingControlStateRequest || (GetRoutingControlStateRequest = {}));
30
18
  export var RoutingControlState;
@@ -34,37 +22,22 @@ export var RoutingControlState;
34
22
  })(RoutingControlState || (RoutingControlState = {}));
35
23
  export var GetRoutingControlStateResponse;
36
24
  (function (GetRoutingControlStateResponse) {
37
- /**
38
- * @internal
39
- */
40
25
  GetRoutingControlStateResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
41
26
  })(GetRoutingControlStateResponse || (GetRoutingControlStateResponse = {}));
42
27
  export var InternalServerException;
43
28
  (function (InternalServerException) {
44
- /**
45
- * @internal
46
- */
47
29
  InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
48
30
  })(InternalServerException || (InternalServerException = {}));
49
31
  export var ResourceNotFoundException;
50
32
  (function (ResourceNotFoundException) {
51
- /**
52
- * @internal
53
- */
54
33
  ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
55
34
  })(ResourceNotFoundException || (ResourceNotFoundException = {}));
56
35
  export var ThrottlingException;
57
36
  (function (ThrottlingException) {
58
- /**
59
- * @internal
60
- */
61
37
  ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
62
38
  })(ThrottlingException || (ThrottlingException = {}));
63
39
  export var ValidationExceptionField;
64
40
  (function (ValidationExceptionField) {
65
- /**
66
- * @internal
67
- */
68
41
  ValidationExceptionField.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
69
42
  })(ValidationExceptionField || (ValidationExceptionField = {}));
70
43
  export var ValidationExceptionReason;
@@ -76,44 +49,25 @@ export var ValidationExceptionReason;
76
49
  })(ValidationExceptionReason || (ValidationExceptionReason = {}));
77
50
  export var ValidationException;
78
51
  (function (ValidationException) {
79
- /**
80
- * @internal
81
- */
82
52
  ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
83
53
  })(ValidationException || (ValidationException = {}));
84
54
  export var UpdateRoutingControlStateRequest;
85
55
  (function (UpdateRoutingControlStateRequest) {
86
- /**
87
- * @internal
88
- */
89
56
  UpdateRoutingControlStateRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
90
57
  })(UpdateRoutingControlStateRequest || (UpdateRoutingControlStateRequest = {}));
91
58
  export var UpdateRoutingControlStateResponse;
92
59
  (function (UpdateRoutingControlStateResponse) {
93
- /**
94
- * @internal
95
- */
96
60
  UpdateRoutingControlStateResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
97
61
  })(UpdateRoutingControlStateResponse || (UpdateRoutingControlStateResponse = {}));
98
62
  export var UpdateRoutingControlStateEntry;
99
63
  (function (UpdateRoutingControlStateEntry) {
100
- /**
101
- * @internal
102
- */
103
64
  UpdateRoutingControlStateEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
104
65
  })(UpdateRoutingControlStateEntry || (UpdateRoutingControlStateEntry = {}));
105
66
  export var UpdateRoutingControlStatesRequest;
106
67
  (function (UpdateRoutingControlStatesRequest) {
107
- /**
108
- * @internal
109
- */
110
68
  UpdateRoutingControlStatesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
111
69
  })(UpdateRoutingControlStatesRequest || (UpdateRoutingControlStatesRequest = {}));
112
70
  export var UpdateRoutingControlStatesResponse;
113
71
  (function (UpdateRoutingControlStatesResponse) {
114
- /**
115
- * @internal
116
- */
117
72
  UpdateRoutingControlStatesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
118
73
  })(UpdateRoutingControlStatesResponse || (UpdateRoutingControlStatesResponse = {}));
119
- //# sourceMappingURL=models_0.js.map