@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
@@ -1,156 +0,0 @@
1
- import { Route53RecoveryClusterClient } from "./Route53RecoveryClusterClient";
2
- import {
3
- GetRoutingControlStateCommand,
4
- GetRoutingControlStateCommandInput,
5
- GetRoutingControlStateCommandOutput,
6
- } from "./commands/GetRoutingControlStateCommand";
7
- import {
8
- UpdateRoutingControlStateCommand,
9
- UpdateRoutingControlStateCommandInput,
10
- UpdateRoutingControlStateCommandOutput,
11
- } from "./commands/UpdateRoutingControlStateCommand";
12
- import {
13
- UpdateRoutingControlStatesCommand,
14
- UpdateRoutingControlStatesCommandInput,
15
- UpdateRoutingControlStatesCommandOutput,
16
- } from "./commands/UpdateRoutingControlStatesCommand";
17
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
18
-
19
- /**
20
- * <p>Welcome to the Amazon Route 53 Application Recovery Controller API Reference Guide for Recovery Control Data Plane .</p>
21
- * <p>Recovery control in Route 53 Application Recovery Controller includes extremely reliable routing controls that enable you to recover applications
22
- * by rerouting traffic, for example, across Availability Zones or AWS Regions. Routing controls are simple on/off switches
23
- * hosted on a cluster. A cluster is a set of five redundant regional endpoints against which you can execute API calls to update or
24
- * get the state of routing controls. You use routing controls to failover traffic to recover your application
25
- * across Availability Zones or Regions.</p>
26
- * <p>This API guide includes information about how to get and update routing control states in Route 53 Application Recovery Controller.</p>
27
- * <p>For more information about Route 53 Application Recovery Controller, see the following:</p>
28
- * <ul>
29
- * <li>
30
- * <p>You can create clusters, routing controls, and control panels by using the control plane API for Recovery
31
- * 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>
32
- * </li>
33
- * <li>
34
- * <p>Route 53 Application Recovery Controller also provides continuous readiness checks to ensure that your applications are scaled to handle failover traffic.
35
- * 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>
36
- * </li>
37
- * <li>
38
- * <p>For more information about creating resilient applications and preparing for recovery readiness with Route 53 Application Recovery Controller,
39
- * see the <a href="r53recovery/latest/dg/">Amazon Route 53 Application Recovery Controller Developer Guide</a>.</p>
40
- * </li>
41
- * </ul>
42
- */
43
- export class Route53RecoveryCluster extends Route53RecoveryClusterClient {
44
- /**
45
- * <p>Get the state for a routing control. A routing control is a simple on/off switch
46
- * 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>
47
- * <p>Before you can create a routing control, you first must create a cluster to host the control.
48
- * For more information, see
49
- * <a href="https://docs.aws.amazon.com/recovery-cluster/latest/api/cluster.html">CreateCluster</a>.
50
- * Access one of the endpoints for the cluster to get or update the routing control state to
51
- * redirect traffic.</p>
52
- * <p>For more information about working with routing controls, see
53
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Routing control</a>
54
- * in the Route 53 Application Recovery Controller Developer Guide.</p>
55
- */
56
- public getRoutingControlState(
57
- args: GetRoutingControlStateCommandInput,
58
- options?: __HttpHandlerOptions
59
- ): Promise<GetRoutingControlStateCommandOutput>;
60
- public getRoutingControlState(
61
- args: GetRoutingControlStateCommandInput,
62
- cb: (err: any, data?: GetRoutingControlStateCommandOutput) => void
63
- ): void;
64
- public getRoutingControlState(
65
- args: GetRoutingControlStateCommandInput,
66
- options: __HttpHandlerOptions,
67
- cb: (err: any, data?: GetRoutingControlStateCommandOutput) => void
68
- ): void;
69
- public getRoutingControlState(
70
- args: GetRoutingControlStateCommandInput,
71
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetRoutingControlStateCommandOutput) => void),
72
- cb?: (err: any, data?: GetRoutingControlStateCommandOutput) => void
73
- ): Promise<GetRoutingControlStateCommandOutput> | void {
74
- const command = new GetRoutingControlStateCommand(args);
75
- if (typeof optionsOrCb === "function") {
76
- this.send(command, optionsOrCb);
77
- } else if (typeof cb === "function") {
78
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
- this.send(command, optionsOrCb || {}, cb);
80
- } else {
81
- return this.send(command, optionsOrCb);
82
- }
83
- }
84
-
85
- /**
86
- * <p>Set the state of the routing control to reroute traffic. You can set the value to be On or Off.
87
- * When the state is On, traffic flows to a cell. When it's off, traffic does not flow.</p>
88
- * <p>For more information about working with routing controls, see
89
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Routing control</a>
90
- * in the Route 53 Application Recovery Controller Developer Guide.</p>
91
- */
92
- public updateRoutingControlState(
93
- args: UpdateRoutingControlStateCommandInput,
94
- options?: __HttpHandlerOptions
95
- ): Promise<UpdateRoutingControlStateCommandOutput>;
96
- public updateRoutingControlState(
97
- args: UpdateRoutingControlStateCommandInput,
98
- cb: (err: any, data?: UpdateRoutingControlStateCommandOutput) => void
99
- ): void;
100
- public updateRoutingControlState(
101
- args: UpdateRoutingControlStateCommandInput,
102
- options: __HttpHandlerOptions,
103
- cb: (err: any, data?: UpdateRoutingControlStateCommandOutput) => void
104
- ): void;
105
- public updateRoutingControlState(
106
- args: UpdateRoutingControlStateCommandInput,
107
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateRoutingControlStateCommandOutput) => void),
108
- cb?: (err: any, data?: UpdateRoutingControlStateCommandOutput) => void
109
- ): Promise<UpdateRoutingControlStateCommandOutput> | void {
110
- const command = new UpdateRoutingControlStateCommand(args);
111
- if (typeof optionsOrCb === "function") {
112
- this.send(command, optionsOrCb);
113
- } else if (typeof cb === "function") {
114
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
115
- this.send(command, optionsOrCb || {}, cb);
116
- } else {
117
- return this.send(command, optionsOrCb);
118
- }
119
- }
120
-
121
- /**
122
- * <p>Set multiple routing control states. You can set the value for each state to be On or Off.
123
- * When the state is On, traffic flows to a cell. When it's off, traffic does not flow.</p>
124
- * <p>For more information about working with routing controls, see
125
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Routing control</a>
126
- * in the Route 53 Application Recovery Controller Developer Guide.</p>
127
- */
128
- public updateRoutingControlStates(
129
- args: UpdateRoutingControlStatesCommandInput,
130
- options?: __HttpHandlerOptions
131
- ): Promise<UpdateRoutingControlStatesCommandOutput>;
132
- public updateRoutingControlStates(
133
- args: UpdateRoutingControlStatesCommandInput,
134
- cb: (err: any, data?: UpdateRoutingControlStatesCommandOutput) => void
135
- ): void;
136
- public updateRoutingControlStates(
137
- args: UpdateRoutingControlStatesCommandInput,
138
- options: __HttpHandlerOptions,
139
- cb: (err: any, data?: UpdateRoutingControlStatesCommandOutput) => void
140
- ): void;
141
- public updateRoutingControlStates(
142
- args: UpdateRoutingControlStatesCommandInput,
143
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateRoutingControlStatesCommandOutput) => void),
144
- cb?: (err: any, data?: UpdateRoutingControlStatesCommandOutput) => void
145
- ): Promise<UpdateRoutingControlStatesCommandOutput> | void {
146
- const command = new UpdateRoutingControlStatesCommand(args);
147
- if (typeof optionsOrCb === "function") {
148
- this.send(command, optionsOrCb);
149
- } else if (typeof cb === "function") {
150
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
151
- this.send(command, optionsOrCb || {}, cb);
152
- } else {
153
- return this.send(command, optionsOrCb);
154
- }
155
- }
156
- }
@@ -1,274 +0,0 @@
1
- import {
2
- GetRoutingControlStateCommandInput,
3
- GetRoutingControlStateCommandOutput,
4
- } from "./commands/GetRoutingControlStateCommand";
5
- import {
6
- UpdateRoutingControlStateCommandInput,
7
- UpdateRoutingControlStateCommandOutput,
8
- } from "./commands/UpdateRoutingControlStateCommand";
9
- import {
10
- UpdateRoutingControlStatesCommandInput,
11
- UpdateRoutingControlStatesCommandOutput,
12
- } from "./commands/UpdateRoutingControlStatesCommand";
13
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
- import {
15
- EndpointsInputConfig,
16
- EndpointsResolvedConfig,
17
- RegionInputConfig,
18
- RegionResolvedConfig,
19
- resolveEndpointsConfig,
20
- resolveRegionConfig,
21
- } from "@aws-sdk/config-resolver";
22
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
23
- import {
24
- HostHeaderInputConfig,
25
- HostHeaderResolvedConfig,
26
- getHostHeaderPlugin,
27
- resolveHostHeaderConfig,
28
- } from "@aws-sdk/middleware-host-header";
29
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
30
- import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
31
- import {
32
- AwsAuthInputConfig,
33
- AwsAuthResolvedConfig,
34
- getAwsAuthPlugin,
35
- resolveAwsAuthConfig,
36
- } from "@aws-sdk/middleware-signing";
37
- import {
38
- UserAgentInputConfig,
39
- UserAgentResolvedConfig,
40
- getUserAgentPlugin,
41
- resolveUserAgentConfig,
42
- } from "@aws-sdk/middleware-user-agent";
43
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
44
- import {
45
- Client as __Client,
46
- SmithyConfiguration as __SmithyConfiguration,
47
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
48
- } from "@aws-sdk/smithy-client";
49
- import {
50
- Provider,
51
- RegionInfoProvider,
52
- Credentials as __Credentials,
53
- Decoder as __Decoder,
54
- Encoder as __Encoder,
55
- Hash as __Hash,
56
- HashConstructor as __HashConstructor,
57
- HttpHandlerOptions as __HttpHandlerOptions,
58
- Logger as __Logger,
59
- Provider as __Provider,
60
- StreamCollector as __StreamCollector,
61
- UrlParser as __UrlParser,
62
- UserAgent as __UserAgent,
63
- } from "@aws-sdk/types";
64
-
65
- export type ServiceInputTypes =
66
- | GetRoutingControlStateCommandInput
67
- | UpdateRoutingControlStateCommandInput
68
- | UpdateRoutingControlStatesCommandInput;
69
-
70
- export type ServiceOutputTypes =
71
- | GetRoutingControlStateCommandOutput
72
- | UpdateRoutingControlStateCommandOutput
73
- | UpdateRoutingControlStatesCommandOutput;
74
-
75
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
76
- /**
77
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
78
- */
79
- requestHandler?: __HttpHandler;
80
-
81
- /**
82
- * A constructor for a class implementing the {@link __Hash} interface
83
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
84
- * @internal
85
- */
86
- sha256?: __HashConstructor;
87
-
88
- /**
89
- * The function that will be used to convert strings into HTTP endpoints.
90
- * @internal
91
- */
92
- urlParser?: __UrlParser;
93
-
94
- /**
95
- * A function that can calculate the length of a request body.
96
- * @internal
97
- */
98
- bodyLengthChecker?: (body: any) => number | undefined;
99
-
100
- /**
101
- * A function that converts a stream into an array of bytes.
102
- * @internal
103
- */
104
- streamCollector?: __StreamCollector;
105
-
106
- /**
107
- * The function that will be used to convert a base64-encoded string to a byte array.
108
- * @internal
109
- */
110
- base64Decoder?: __Decoder;
111
-
112
- /**
113
- * The function that will be used to convert binary data to a base64-encoded string.
114
- * @internal
115
- */
116
- base64Encoder?: __Encoder;
117
-
118
- /**
119
- * The function that will be used to convert a UTF8-encoded string to a byte array.
120
- * @internal
121
- */
122
- utf8Decoder?: __Decoder;
123
-
124
- /**
125
- * The function that will be used to convert binary data to a UTF-8 encoded string.
126
- * @internal
127
- */
128
- utf8Encoder?: __Encoder;
129
-
130
- /**
131
- * The runtime environment.
132
- * @internal
133
- */
134
- runtime?: string;
135
-
136
- /**
137
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
138
- * trait of an operation.
139
- */
140
- disableHostPrefix?: boolean;
141
-
142
- /**
143
- * Value for how many times a request will be made at most in case of retry.
144
- */
145
- maxAttempts?: number | __Provider<number>;
146
-
147
- /**
148
- * Specifies which retry algorithm to use.
149
- */
150
- retryMode?: string | __Provider<string>;
151
-
152
- /**
153
- * Optional logger for logging debug/info/warn/error.
154
- */
155
- logger?: __Logger;
156
-
157
- /**
158
- * Unique service identifier.
159
- * @internal
160
- */
161
- serviceId?: string;
162
-
163
- /**
164
- * The AWS region to which this client will send requests
165
- */
166
- region?: string | __Provider<string>;
167
-
168
- /**
169
- * Default credentials provider; Not available in browser runtime.
170
- * @internal
171
- */
172
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
173
-
174
- /**
175
- * Fetch related hostname, signing name or signing region with given region.
176
- * @internal
177
- */
178
- regionInfoProvider?: RegionInfoProvider;
179
-
180
- /**
181
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
182
- * @internal
183
- */
184
- defaultUserAgentProvider?: Provider<__UserAgent>;
185
- }
186
-
187
- type Route53RecoveryClusterClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
188
- ClientDefaults &
189
- RegionInputConfig &
190
- EndpointsInputConfig &
191
- RetryInputConfig &
192
- HostHeaderInputConfig &
193
- AwsAuthInputConfig &
194
- UserAgentInputConfig;
195
- /**
196
- * The configuration interface of Route53RecoveryClusterClient class constructor that set the region, credentials and other options.
197
- */
198
- export interface Route53RecoveryClusterClientConfig extends Route53RecoveryClusterClientConfigType {}
199
-
200
- type Route53RecoveryClusterClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
201
- Required<ClientDefaults> &
202
- RegionResolvedConfig &
203
- EndpointsResolvedConfig &
204
- RetryResolvedConfig &
205
- HostHeaderResolvedConfig &
206
- AwsAuthResolvedConfig &
207
- UserAgentResolvedConfig;
208
- /**
209
- * The resolved configuration interface of Route53RecoveryClusterClient class. This is resolved and normalized from the {@link Route53RecoveryClusterClientConfig | constructor configuration interface}.
210
- */
211
- export interface Route53RecoveryClusterClientResolvedConfig extends Route53RecoveryClusterClientResolvedConfigType {}
212
-
213
- /**
214
- * <p>Welcome to the Amazon Route 53 Application Recovery Controller API Reference Guide for Recovery Control Data Plane .</p>
215
- * <p>Recovery control in Route 53 Application Recovery Controller includes extremely reliable routing controls that enable you to recover applications
216
- * by rerouting traffic, for example, across Availability Zones or AWS Regions. Routing controls are simple on/off switches
217
- * hosted on a cluster. A cluster is a set of five redundant regional endpoints against which you can execute API calls to update or
218
- * get the state of routing controls. You use routing controls to failover traffic to recover your application
219
- * across Availability Zones or Regions.</p>
220
- * <p>This API guide includes information about how to get and update routing control states in Route 53 Application Recovery Controller.</p>
221
- * <p>For more information about Route 53 Application Recovery Controller, see the following:</p>
222
- * <ul>
223
- * <li>
224
- * <p>You can create clusters, routing controls, and control panels by using the control plane API for Recovery
225
- * 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>
226
- * </li>
227
- * <li>
228
- * <p>Route 53 Application Recovery Controller also provides continuous readiness checks to ensure that your applications are scaled to handle failover traffic.
229
- * 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>
230
- * </li>
231
- * <li>
232
- * <p>For more information about creating resilient applications and preparing for recovery readiness with Route 53 Application Recovery Controller,
233
- * see the <a href="r53recovery/latest/dg/">Amazon Route 53 Application Recovery Controller Developer Guide</a>.</p>
234
- * </li>
235
- * </ul>
236
- */
237
- export class Route53RecoveryClusterClient extends __Client<
238
- __HttpHandlerOptions,
239
- ServiceInputTypes,
240
- ServiceOutputTypes,
241
- Route53RecoveryClusterClientResolvedConfig
242
- > {
243
- /**
244
- * The resolved configuration of Route53RecoveryClusterClient class. This is resolved and normalized from the {@link Route53RecoveryClusterClientConfig | constructor configuration interface}.
245
- */
246
- readonly config: Route53RecoveryClusterClientResolvedConfig;
247
-
248
- constructor(configuration: Route53RecoveryClusterClientConfig) {
249
- let _config_0 = __getRuntimeConfig(configuration);
250
- let _config_1 = resolveRegionConfig(_config_0);
251
- let _config_2 = resolveEndpointsConfig(_config_1);
252
- let _config_3 = resolveRetryConfig(_config_2);
253
- let _config_4 = resolveHostHeaderConfig(_config_3);
254
- let _config_5 = resolveAwsAuthConfig(_config_4);
255
- let _config_6 = resolveUserAgentConfig(_config_5);
256
- super(_config_6);
257
- this.config = _config_6;
258
- this.middlewareStack.use(getRetryPlugin(this.config));
259
- this.middlewareStack.use(getContentLengthPlugin(this.config));
260
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
261
- this.middlewareStack.use(getLoggerPlugin(this.config));
262
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
263
- this.middlewareStack.use(getUserAgentPlugin(this.config));
264
- }
265
-
266
- /**
267
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
268
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
269
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
270
- */
271
- destroy(): void {
272
- super.destroy();
273
- }
274
- }
@@ -1,107 +0,0 @@
1
- import {
2
- Route53RecoveryClusterClientResolvedConfig,
3
- ServiceInputTypes,
4
- ServiceOutputTypes,
5
- } from "../Route53RecoveryClusterClient";
6
- import { GetRoutingControlStateRequest, GetRoutingControlStateResponse } from "../models/models_0";
7
- import {
8
- deserializeAws_json1_0GetRoutingControlStateCommand,
9
- serializeAws_json1_0GetRoutingControlStateCommand,
10
- } from "../protocols/Aws_json1_0";
11
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
12
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
13
- import { Command as $Command } from "@aws-sdk/smithy-client";
14
- import {
15
- FinalizeHandlerArguments,
16
- Handler,
17
- HandlerExecutionContext,
18
- MiddlewareStack,
19
- HttpHandlerOptions as __HttpHandlerOptions,
20
- MetadataBearer as __MetadataBearer,
21
- SerdeContext as __SerdeContext,
22
- } from "@aws-sdk/types";
23
-
24
- export interface GetRoutingControlStateCommandInput extends GetRoutingControlStateRequest {}
25
- export interface GetRoutingControlStateCommandOutput extends GetRoutingControlStateResponse, __MetadataBearer {}
26
-
27
- /**
28
- * <p>Get the state for a routing control. A routing control is a simple on/off switch
29
- * 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>
30
- * <p>Before you can create a routing control, you first must create a cluster to host the control.
31
- * For more information, see
32
- * <a href="https://docs.aws.amazon.com/recovery-cluster/latest/api/cluster.html">CreateCluster</a>.
33
- * Access one of the endpoints for the cluster to get or update the routing control state to
34
- * redirect traffic.</p>
35
- * <p>For more information about working with routing controls, see
36
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Routing control</a>
37
- * in the Route 53 Application Recovery Controller Developer Guide.</p>
38
- * @example
39
- * Use a bare-bones client and the command you need to make an API call.
40
- * ```javascript
41
- * import { Route53RecoveryClusterClient, GetRoutingControlStateCommand } from "@aws-sdk/client-route53-recovery-cluster"; // ES Modules import
42
- * // const { Route53RecoveryClusterClient, GetRoutingControlStateCommand } = require("@aws-sdk/client-route53-recovery-cluster"); // CommonJS import
43
- * const client = new Route53RecoveryClusterClient(config);
44
- * const command = new GetRoutingControlStateCommand(input);
45
- * const response = await client.send(command);
46
- * ```
47
- *
48
- * @see {@link GetRoutingControlStateCommandInput} for command's `input` shape.
49
- * @see {@link GetRoutingControlStateCommandOutput} for command's `response` shape.
50
- * @see {@link Route53RecoveryClusterClientResolvedConfig | config} for command's `input` shape.
51
- *
52
- */
53
- export class GetRoutingControlStateCommand extends $Command<
54
- GetRoutingControlStateCommandInput,
55
- GetRoutingControlStateCommandOutput,
56
- Route53RecoveryClusterClientResolvedConfig
57
- > {
58
- // Start section: command_properties
59
- // End section: command_properties
60
-
61
- constructor(readonly input: GetRoutingControlStateCommandInput) {
62
- // Start section: command_constructor
63
- super();
64
- // End section: command_constructor
65
- }
66
-
67
- /**
68
- * @internal
69
- */
70
- resolveMiddleware(
71
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
72
- configuration: Route53RecoveryClusterClientResolvedConfig,
73
- options?: __HttpHandlerOptions
74
- ): Handler<GetRoutingControlStateCommandInput, GetRoutingControlStateCommandOutput> {
75
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
76
-
77
- const stack = clientStack.concat(this.middlewareStack);
78
-
79
- const { logger } = configuration;
80
- const clientName = "Route53RecoveryClusterClient";
81
- const commandName = "GetRoutingControlStateCommand";
82
- const handlerExecutionContext: HandlerExecutionContext = {
83
- logger,
84
- clientName,
85
- commandName,
86
- inputFilterSensitiveLog: GetRoutingControlStateRequest.filterSensitiveLog,
87
- outputFilterSensitiveLog: GetRoutingControlStateResponse.filterSensitiveLog,
88
- };
89
- const { requestHandler } = configuration;
90
- return stack.resolve(
91
- (request: FinalizeHandlerArguments<any>) =>
92
- requestHandler.handle(request.request as __HttpRequest, options || {}),
93
- handlerExecutionContext
94
- );
95
- }
96
-
97
- private serialize(input: GetRoutingControlStateCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
98
- return serializeAws_json1_0GetRoutingControlStateCommand(input, context);
99
- }
100
-
101
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetRoutingControlStateCommandOutput> {
102
- return deserializeAws_json1_0GetRoutingControlStateCommand(output, context);
103
- }
104
-
105
- // Start section: command_body_extra
106
- // End section: command_body_extra
107
- }
@@ -1,105 +0,0 @@
1
- import {
2
- Route53RecoveryClusterClientResolvedConfig,
3
- ServiceInputTypes,
4
- ServiceOutputTypes,
5
- } from "../Route53RecoveryClusterClient";
6
- import { UpdateRoutingControlStateRequest, UpdateRoutingControlStateResponse } from "../models/models_0";
7
- import {
8
- deserializeAws_json1_0UpdateRoutingControlStateCommand,
9
- serializeAws_json1_0UpdateRoutingControlStateCommand,
10
- } from "../protocols/Aws_json1_0";
11
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
12
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
13
- import { Command as $Command } from "@aws-sdk/smithy-client";
14
- import {
15
- FinalizeHandlerArguments,
16
- Handler,
17
- HandlerExecutionContext,
18
- MiddlewareStack,
19
- HttpHandlerOptions as __HttpHandlerOptions,
20
- MetadataBearer as __MetadataBearer,
21
- SerdeContext as __SerdeContext,
22
- } from "@aws-sdk/types";
23
-
24
- export interface UpdateRoutingControlStateCommandInput extends UpdateRoutingControlStateRequest {}
25
- export interface UpdateRoutingControlStateCommandOutput extends UpdateRoutingControlStateResponse, __MetadataBearer {}
26
-
27
- /**
28
- * <p>Set the state of the routing control to reroute traffic. You can set the value to be On or Off.
29
- * When the state is On, traffic flows to a cell. When it's off, traffic does not flow.</p>
30
- * <p>For more information about working with routing controls, see
31
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Routing control</a>
32
- * in the Route 53 Application Recovery Controller Developer Guide.</p>
33
- * @example
34
- * Use a bare-bones client and the command you need to make an API call.
35
- * ```javascript
36
- * import { Route53RecoveryClusterClient, UpdateRoutingControlStateCommand } from "@aws-sdk/client-route53-recovery-cluster"; // ES Modules import
37
- * // const { Route53RecoveryClusterClient, UpdateRoutingControlStateCommand } = require("@aws-sdk/client-route53-recovery-cluster"); // CommonJS import
38
- * const client = new Route53RecoveryClusterClient(config);
39
- * const command = new UpdateRoutingControlStateCommand(input);
40
- * const response = await client.send(command);
41
- * ```
42
- *
43
- * @see {@link UpdateRoutingControlStateCommandInput} for command's `input` shape.
44
- * @see {@link UpdateRoutingControlStateCommandOutput} for command's `response` shape.
45
- * @see {@link Route53RecoveryClusterClientResolvedConfig | config} for command's `input` shape.
46
- *
47
- */
48
- export class UpdateRoutingControlStateCommand extends $Command<
49
- UpdateRoutingControlStateCommandInput,
50
- UpdateRoutingControlStateCommandOutput,
51
- Route53RecoveryClusterClientResolvedConfig
52
- > {
53
- // Start section: command_properties
54
- // End section: command_properties
55
-
56
- constructor(readonly input: UpdateRoutingControlStateCommandInput) {
57
- // Start section: command_constructor
58
- super();
59
- // End section: command_constructor
60
- }
61
-
62
- /**
63
- * @internal
64
- */
65
- resolveMiddleware(
66
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
67
- configuration: Route53RecoveryClusterClientResolvedConfig,
68
- options?: __HttpHandlerOptions
69
- ): Handler<UpdateRoutingControlStateCommandInput, UpdateRoutingControlStateCommandOutput> {
70
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
71
-
72
- const stack = clientStack.concat(this.middlewareStack);
73
-
74
- const { logger } = configuration;
75
- const clientName = "Route53RecoveryClusterClient";
76
- const commandName = "UpdateRoutingControlStateCommand";
77
- const handlerExecutionContext: HandlerExecutionContext = {
78
- logger,
79
- clientName,
80
- commandName,
81
- inputFilterSensitiveLog: UpdateRoutingControlStateRequest.filterSensitiveLog,
82
- outputFilterSensitiveLog: UpdateRoutingControlStateResponse.filterSensitiveLog,
83
- };
84
- const { requestHandler } = configuration;
85
- return stack.resolve(
86
- (request: FinalizeHandlerArguments<any>) =>
87
- requestHandler.handle(request.request as __HttpRequest, options || {}),
88
- handlerExecutionContext
89
- );
90
- }
91
-
92
- private serialize(input: UpdateRoutingControlStateCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
93
- return serializeAws_json1_0UpdateRoutingControlStateCommand(input, context);
94
- }
95
-
96
- private deserialize(
97
- output: __HttpResponse,
98
- context: __SerdeContext
99
- ): Promise<UpdateRoutingControlStateCommandOutput> {
100
- return deserializeAws_json1_0UpdateRoutingControlStateCommand(output, context);
101
- }
102
-
103
- // Start section: command_body_extra
104
- // End section: command_body_extra
105
- }