@aws-sdk/client-route53-recovery-cluster 3.34.0 → 3.37.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 (113) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/Route53RecoveryCluster.js +1 -26
  3. package/dist-cjs/Route53RecoveryClusterClient.js +35 -0
  4. package/dist-cjs/commands/GetRoutingControlStateCommand.js +36 -0
  5. package/{dist/cjs → dist-cjs}/commands/UpdateRoutingControlStateCommand.js +2 -31
  6. package/{dist/cjs → dist-cjs}/commands/UpdateRoutingControlStatesCommand.js +2 -31
  7. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  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 -46
  11. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_0.js +0 -6
  12. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  13. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  14. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  15. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  16. package/{dist/es → dist-es}/Route53RecoveryCluster.js +1 -2
  17. package/{dist/es → dist-es}/Route53RecoveryClusterClient.js +1 -2
  18. package/{dist/es → dist-es}/commands/GetRoutingControlStateCommand.js +2 -3
  19. package/{dist/es → dist-es}/commands/UpdateRoutingControlStateCommand.js +2 -3
  20. package/{dist/es → dist-es}/commands/UpdateRoutingControlStatesCommand.js +2 -3
  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 -1
  25. package/{dist/es → dist-es}/protocols/Aws_json1_0.js +0 -1
  26. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  27. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  28. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  29. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  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 +3 -1
  41. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  42. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  43. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  44. package/dist-types/ts3.4/Route53RecoveryCluster.d.ts +20 -0
  45. package/dist-types/ts3.4/Route53RecoveryClusterClient.d.ts +70 -0
  46. package/dist-types/ts3.4/commands/GetRoutingControlStateCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/UpdateRoutingControlStateCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/UpdateRoutingControlStatesCommand.d.ts +17 -0
  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 +43 -129
  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 +2 -4
  55. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  56. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  57. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  58. package/package.json +45 -42
  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 +0 -65
  66. package/dist/cjs/Route53RecoveryClusterClient.js.map +0 -1
  67. package/dist/cjs/commands/GetRoutingControlStateCommand.js +0 -70
  68. package/dist/cjs/commands/GetRoutingControlStateCommand.js.map +0 -1
  69. package/dist/cjs/commands/UpdateRoutingControlStateCommand.js.map +0 -1
  70. package/dist/cjs/commands/UpdateRoutingControlStatesCommand.js.map +0 -1
  71. package/dist/cjs/endpoints.js.map +0 -1
  72. package/dist/cjs/index.js.map +0 -1
  73. package/dist/cjs/models/index.js.map +0 -1
  74. package/dist/cjs/models/models_0.js.map +0 -1
  75. package/dist/cjs/package.json +0 -91
  76. package/dist/cjs/protocols/Aws_json1_0.js.map +0 -1
  77. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  78. package/dist/cjs/runtimeConfig.js.map +0 -1
  79. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  80. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  81. package/dist/es/Route53RecoveryCluster.js.map +0 -1
  82. package/dist/es/Route53RecoveryClusterClient.js.map +0 -1
  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/dist/types/ts3.4/Route53RecoveryCluster.d.ts +0 -66
  99. package/dist/types/ts3.4/Route53RecoveryClusterClient.d.ts +0 -156
  100. package/dist/types/ts3.4/commands/GetRoutingControlStateCommand.d.ts +0 -44
  101. package/dist/types/ts3.4/commands/UpdateRoutingControlStateCommand.d.ts +0 -39
  102. package/dist/types/ts3.4/commands/UpdateRoutingControlStatesCommand.d.ts +0 -39
  103. package/endpoints.ts +0 -57
  104. package/jest.config.js +0 -4
  105. package/models/models_0.ts +0 -322
  106. package/protocols/Aws_json1_0.ts +0 -739
  107. package/runtimeConfig.browser.ts +0 -40
  108. package/runtimeConfig.native.ts +0 -16
  109. package/runtimeConfig.shared.ts +0 -16
  110. package/runtimeConfig.ts +0 -45
  111. package/tsconfig.es.json +0 -10
  112. package/tsconfig.json +0 -31
  113. package/tsconfig.types.json +0 -8
@@ -1,156 +0,0 @@
1
- import { GetRoutingControlStateCommandInput, GetRoutingControlStateCommandOutput } from "./commands/GetRoutingControlStateCommand";
2
- import { UpdateRoutingControlStateCommandInput, UpdateRoutingControlStateCommandOutput } from "./commands/UpdateRoutingControlStateCommand";
3
- import { UpdateRoutingControlStatesCommandInput, UpdateRoutingControlStatesCommandOutput } from "./commands/UpdateRoutingControlStatesCommand";
4
- import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
5
- import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
6
- import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
7
- import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
8
- import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
9
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
10
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
11
- import { Provider, RegionInfoProvider, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
12
- export declare type ServiceInputTypes = GetRoutingControlStateCommandInput | UpdateRoutingControlStateCommandInput | UpdateRoutingControlStatesCommandInput;
13
- export declare type ServiceOutputTypes = GetRoutingControlStateCommandOutput | UpdateRoutingControlStateCommandOutput | UpdateRoutingControlStatesCommandOutput;
14
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
15
- /**
16
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
17
- */
18
- requestHandler?: __HttpHandler;
19
- /**
20
- * A constructor for a class implementing the {@link __Hash} interface
21
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
22
- * @internal
23
- */
24
- sha256?: __HashConstructor;
25
- /**
26
- * The function that will be used to convert strings into HTTP endpoints.
27
- * @internal
28
- */
29
- urlParser?: __UrlParser;
30
- /**
31
- * A function that can calculate the length of a request body.
32
- * @internal
33
- */
34
- bodyLengthChecker?: (body: any) => number | undefined;
35
- /**
36
- * A function that converts a stream into an array of bytes.
37
- * @internal
38
- */
39
- streamCollector?: __StreamCollector;
40
- /**
41
- * The function that will be used to convert a base64-encoded string to a byte array.
42
- * @internal
43
- */
44
- base64Decoder?: __Decoder;
45
- /**
46
- * The function that will be used to convert binary data to a base64-encoded string.
47
- * @internal
48
- */
49
- base64Encoder?: __Encoder;
50
- /**
51
- * The function that will be used to convert a UTF8-encoded string to a byte array.
52
- * @internal
53
- */
54
- utf8Decoder?: __Decoder;
55
- /**
56
- * The function that will be used to convert binary data to a UTF-8 encoded string.
57
- * @internal
58
- */
59
- utf8Encoder?: __Encoder;
60
- /**
61
- * The runtime environment.
62
- * @internal
63
- */
64
- runtime?: string;
65
- /**
66
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
67
- * trait of an operation.
68
- */
69
- disableHostPrefix?: boolean;
70
- /**
71
- * Value for how many times a request will be made at most in case of retry.
72
- */
73
- maxAttempts?: number | __Provider<number>;
74
- /**
75
- * Specifies which retry algorithm to use.
76
- */
77
- retryMode?: string | __Provider<string>;
78
- /**
79
- * Optional logger for logging debug/info/warn/error.
80
- */
81
- logger?: __Logger;
82
- /**
83
- * Unique service identifier.
84
- * @internal
85
- */
86
- serviceId?: string;
87
- /**
88
- * The AWS region to which this client will send requests
89
- */
90
- region?: string | __Provider<string>;
91
- /**
92
- * Default credentials provider; Not available in browser runtime.
93
- * @internal
94
- */
95
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
96
- /**
97
- * Fetch related hostname, signing name or signing region with given region.
98
- * @internal
99
- */
100
- regionInfoProvider?: RegionInfoProvider;
101
- /**
102
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
103
- * @internal
104
- */
105
- defaultUserAgentProvider?: Provider<__UserAgent>;
106
- }
107
- declare type Route53RecoveryClusterClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
108
- /**
109
- * The configuration interface of Route53RecoveryClusterClient class constructor that set the region, credentials and other options.
110
- */
111
- export interface Route53RecoveryClusterClientConfig extends Route53RecoveryClusterClientConfigType {
112
- }
113
- declare type Route53RecoveryClusterClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
114
- /**
115
- * The resolved configuration interface of Route53RecoveryClusterClient class. This is resolved and normalized from the {@link Route53RecoveryClusterClientConfig | constructor configuration interface}.
116
- */
117
- export interface Route53RecoveryClusterClientResolvedConfig extends Route53RecoveryClusterClientResolvedConfigType {
118
- }
119
- /**
120
- * <p>Welcome to the Amazon Route 53 Application Recovery Controller API Reference Guide for Recovery Control Data Plane .</p>
121
- * <p>Recovery control in Route 53 Application Recovery Controller includes extremely reliable routing controls that enable you to recover applications
122
- * by rerouting traffic, for example, across Availability Zones or AWS Regions. Routing controls are simple on/off switches
123
- * hosted on a cluster. A cluster is a set of five redundant regional endpoints against which you can execute API calls to update or
124
- * get the state of routing controls. You use routing controls to failover traffic to recover your application
125
- * across Availability Zones or Regions.</p>
126
- * <p>This API guide includes information about how to get and update routing control states in Route 53 Application Recovery Controller.</p>
127
- * <p>For more information about Route 53 Application Recovery Controller, see the following:</p>
128
- * <ul>
129
- * <li>
130
- * <p>You can create clusters, routing controls, and control panels by using the control plane API for Recovery
131
- * 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>
132
- * </li>
133
- * <li>
134
- * <p>Route 53 Application Recovery Controller also provides continuous readiness checks to ensure that your applications are scaled to handle failover traffic.
135
- * 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>
136
- * </li>
137
- * <li>
138
- * <p>For more information about creating resilient applications and preparing for recovery readiness with Route 53 Application Recovery Controller,
139
- * see the <a href="r53recovery/latest/dg/">Amazon Route 53 Application Recovery Controller Developer Guide</a>.</p>
140
- * </li>
141
- * </ul>
142
- */
143
- export declare class Route53RecoveryClusterClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, Route53RecoveryClusterClientResolvedConfig> {
144
- /**
145
- * The resolved configuration of Route53RecoveryClusterClient class. This is resolved and normalized from the {@link Route53RecoveryClusterClientConfig | constructor configuration interface}.
146
- */
147
- readonly config: Route53RecoveryClusterClientResolvedConfig;
148
- constructor(configuration: Route53RecoveryClusterClientConfig);
149
- /**
150
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
151
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
152
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
153
- */
154
- destroy(): void;
155
- }
156
- export {};
@@ -1,44 +0,0 @@
1
- import { Route53RecoveryClusterClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53RecoveryClusterClient";
2
- import { GetRoutingControlStateRequest, GetRoutingControlStateResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface GetRoutingControlStateCommandInput extends GetRoutingControlStateRequest {
6
- }
7
- export interface GetRoutingControlStateCommandOutput extends GetRoutingControlStateResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Get the state for a routing control. A routing control is a simple on/off switch
11
- * 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>
12
- * <p>Before you can create a routing control, you first must create a cluster to host the control.
13
- * For more information, see
14
- * <a href="https://docs.aws.amazon.com/recovery-cluster/latest/api/cluster.html">CreateCluster</a>.
15
- * Access one of the endpoints for the cluster to get or update the routing control state to
16
- * redirect traffic.</p>
17
- * <p>For more information about working with routing controls, see
18
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Routing control</a>
19
- * in the Route 53 Application Recovery Controller Developer Guide.</p>
20
- * @example
21
- * Use a bare-bones client and the command you need to make an API call.
22
- * ```javascript
23
- * import { Route53RecoveryClusterClient, GetRoutingControlStateCommand } from "@aws-sdk/client-route53-recovery-cluster"; // ES Modules import
24
- * // const { Route53RecoveryClusterClient, GetRoutingControlStateCommand } = require("@aws-sdk/client-route53-recovery-cluster"); // CommonJS import
25
- * const client = new Route53RecoveryClusterClient(config);
26
- * const command = new GetRoutingControlStateCommand(input);
27
- * const response = await client.send(command);
28
- * ```
29
- *
30
- * @see {@link GetRoutingControlStateCommandInput} for command's `input` shape.
31
- * @see {@link GetRoutingControlStateCommandOutput} for command's `response` shape.
32
- * @see {@link Route53RecoveryClusterClientResolvedConfig | config} for command's `input` shape.
33
- *
34
- */
35
- export declare class GetRoutingControlStateCommand extends $Command<GetRoutingControlStateCommandInput, GetRoutingControlStateCommandOutput, Route53RecoveryClusterClientResolvedConfig> {
36
- readonly input: GetRoutingControlStateCommandInput;
37
- constructor(input: GetRoutingControlStateCommandInput);
38
- /**
39
- * @internal
40
- */
41
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: Route53RecoveryClusterClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetRoutingControlStateCommandInput, GetRoutingControlStateCommandOutput>;
42
- private serialize;
43
- private deserialize;
44
- }
@@ -1,39 +0,0 @@
1
- import { Route53RecoveryClusterClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53RecoveryClusterClient";
2
- import { UpdateRoutingControlStateRequest, UpdateRoutingControlStateResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface UpdateRoutingControlStateCommandInput extends UpdateRoutingControlStateRequest {
6
- }
7
- export interface UpdateRoutingControlStateCommandOutput extends UpdateRoutingControlStateResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Set the state of the routing control to reroute traffic. You can set the value to be On or Off.
11
- * When the state is On, traffic flows to a cell. When it's off, traffic does not flow.</p>
12
- * <p>For more information about working with routing controls, see
13
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Routing control</a>
14
- * in the Route 53 Application Recovery Controller Developer Guide.</p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { Route53RecoveryClusterClient, UpdateRoutingControlStateCommand } from "@aws-sdk/client-route53-recovery-cluster"; // ES Modules import
19
- * // const { Route53RecoveryClusterClient, UpdateRoutingControlStateCommand } = require("@aws-sdk/client-route53-recovery-cluster"); // CommonJS import
20
- * const client = new Route53RecoveryClusterClient(config);
21
- * const command = new UpdateRoutingControlStateCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link UpdateRoutingControlStateCommandInput} for command's `input` shape.
26
- * @see {@link UpdateRoutingControlStateCommandOutput} for command's `response` shape.
27
- * @see {@link Route53RecoveryClusterClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
- export declare class UpdateRoutingControlStateCommand extends $Command<UpdateRoutingControlStateCommandInput, UpdateRoutingControlStateCommandOutput, Route53RecoveryClusterClientResolvedConfig> {
31
- readonly input: UpdateRoutingControlStateCommandInput;
32
- constructor(input: UpdateRoutingControlStateCommandInput);
33
- /**
34
- * @internal
35
- */
36
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: Route53RecoveryClusterClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateRoutingControlStateCommandInput, UpdateRoutingControlStateCommandOutput>;
37
- private serialize;
38
- private deserialize;
39
- }
@@ -1,39 +0,0 @@
1
- import { Route53RecoveryClusterClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53RecoveryClusterClient";
2
- import { UpdateRoutingControlStatesRequest, UpdateRoutingControlStatesResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface UpdateRoutingControlStatesCommandInput extends UpdateRoutingControlStatesRequest {
6
- }
7
- export interface UpdateRoutingControlStatesCommandOutput extends UpdateRoutingControlStatesResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Set multiple routing control states. You can set the value for each state to be On or Off.
11
- * When the state is On, traffic flows to a cell. When it's off, traffic does not flow.</p>
12
- * <p>For more information about working with routing controls, see
13
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Routing control</a>
14
- * in the Route 53 Application Recovery Controller Developer Guide.</p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { Route53RecoveryClusterClient, UpdateRoutingControlStatesCommand } from "@aws-sdk/client-route53-recovery-cluster"; // ES Modules import
19
- * // const { Route53RecoveryClusterClient, UpdateRoutingControlStatesCommand } = require("@aws-sdk/client-route53-recovery-cluster"); // CommonJS import
20
- * const client = new Route53RecoveryClusterClient(config);
21
- * const command = new UpdateRoutingControlStatesCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link UpdateRoutingControlStatesCommandInput} for command's `input` shape.
26
- * @see {@link UpdateRoutingControlStatesCommandOutput} for command's `response` shape.
27
- * @see {@link Route53RecoveryClusterClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
- export declare class UpdateRoutingControlStatesCommand extends $Command<UpdateRoutingControlStatesCommandInput, UpdateRoutingControlStatesCommandOutput, Route53RecoveryClusterClientResolvedConfig> {
31
- readonly input: UpdateRoutingControlStatesCommandInput;
32
- constructor(input: UpdateRoutingControlStatesCommandInput);
33
- /**
34
- * @internal
35
- */
36
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: Route53RecoveryClusterClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateRoutingControlStatesCommandInput, UpdateRoutingControlStatesCommandOutput>;
37
- private serialize;
38
- private deserialize;
39
- }
package/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {};
5
-
6
- const partitionHash: PartitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ca-central-1",
18
- "eu-central-1",
19
- "eu-north-1",
20
- "eu-south-1",
21
- "eu-west-1",
22
- "eu-west-2",
23
- "eu-west-3",
24
- "me-south-1",
25
- "sa-east-1",
26
- "us-east-1",
27
- "us-east-2",
28
- "us-west-1",
29
- "us-west-2",
30
- ],
31
- hostname: "route53-recovery-cluster.{region}.amazonaws.com",
32
- },
33
- "aws-cn": {
34
- regions: ["cn-north-1", "cn-northwest-1"],
35
- hostname: "route53-recovery-cluster.{region}.amazonaws.com.cn",
36
- },
37
- "aws-iso": {
38
- regions: ["us-iso-east-1"],
39
- hostname: "route53-recovery-cluster.{region}.c2s.ic.gov",
40
- },
41
- "aws-iso-b": {
42
- regions: ["us-isob-east-1"],
43
- hostname: "route53-recovery-cluster.{region}.sc2s.sgov.gov",
44
- },
45
- "aws-us-gov": {
46
- regions: ["us-gov-east-1", "us-gov-west-1"],
47
- hostname: "route53-recovery-cluster.{region}.amazonaws.com",
48
- },
49
- };
50
-
51
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
52
- getRegionInfo(region, {
53
- ...options,
54
- signingService: "route53-recovery-cluster",
55
- regionHash,
56
- partitionHash,
57
- });
package/jest.config.js DELETED
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- preset: "ts-jest",
3
- testMatch: ["**/*.spec.ts", "!**/*.browser.spec.ts", "!**/*.integ.spec.ts"],
4
- };
@@ -1,322 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
-
3
- /**
4
- * <p>You don't have sufficient permissions to query the routing control state.</p>
5
- */
6
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
7
- name: "AccessDeniedException";
8
- $fault: "client";
9
- message: string | undefined;
10
- }
11
-
12
- export namespace AccessDeniedException {
13
- /**
14
- * @internal
15
- */
16
- export const filterSensitiveLog = (obj: AccessDeniedException): any => ({
17
- ...obj,
18
- });
19
- }
20
-
21
- /**
22
- * <p>There was a conflict with this request. Try again.</p>
23
- */
24
- export interface ConflictException extends __SmithyException, $MetadataBearer {
25
- name: "ConflictException";
26
- $fault: "client";
27
- /**
28
- * Description of the ConflictException error
29
- */
30
- message: string | undefined;
31
-
32
- /**
33
- * Identifier of the resource in use
34
- */
35
- resourceId: string | undefined;
36
-
37
- /**
38
- * Type of the resource in use
39
- */
40
- resourceType: string | undefined;
41
- }
42
-
43
- export namespace ConflictException {
44
- /**
45
- * @internal
46
- */
47
- export const filterSensitiveLog = (obj: ConflictException): any => ({
48
- ...obj,
49
- });
50
- }
51
-
52
- /**
53
- * <p>The cluster endpoint isn't available. Try another cluster endpoint.</p>
54
- */
55
- export interface EndpointTemporarilyUnavailableException extends __SmithyException, $MetadataBearer {
56
- name: "EndpointTemporarilyUnavailableException";
57
- $fault: "server";
58
- message: string | undefined;
59
- }
60
-
61
- export namespace EndpointTemporarilyUnavailableException {
62
- /**
63
- * @internal
64
- */
65
- export const filterSensitiveLog = (obj: EndpointTemporarilyUnavailableException): any => ({
66
- ...obj,
67
- });
68
- }
69
-
70
- export interface GetRoutingControlStateRequest {
71
- /**
72
- * <p>The Amazon Resource Number (ARN) for the routing control that you want to get the state for.</p>
73
- */
74
- RoutingControlArn: string | undefined;
75
- }
76
-
77
- export namespace GetRoutingControlStateRequest {
78
- /**
79
- * @internal
80
- */
81
- export const filterSensitiveLog = (obj: GetRoutingControlStateRequest): any => ({
82
- ...obj,
83
- });
84
- }
85
-
86
- export enum RoutingControlState {
87
- Off = "Off",
88
- On = "On",
89
- }
90
-
91
- export interface GetRoutingControlStateResponse {
92
- /**
93
- * <p>The Amazon Resource Number (ARN) of the response.</p>
94
- */
95
- RoutingControlArn: string | undefined;
96
-
97
- /**
98
- * <p>The state of the routing control.</p>
99
- */
100
- RoutingControlState: RoutingControlState | string | undefined;
101
- }
102
-
103
- export namespace GetRoutingControlStateResponse {
104
- /**
105
- * @internal
106
- */
107
- export const filterSensitiveLog = (obj: GetRoutingControlStateResponse): any => ({
108
- ...obj,
109
- });
110
- }
111
-
112
- /**
113
- * <p>There was an unexpected error during processing of the request.</p>
114
- */
115
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
116
- name: "InternalServerException";
117
- $fault: "server";
118
- message: string | undefined;
119
- /**
120
- * Advice to clients on when the call can be safely retried
121
- */
122
- retryAfterSeconds?: number;
123
- }
124
-
125
- export namespace InternalServerException {
126
- /**
127
- * @internal
128
- */
129
- export const filterSensitiveLog = (obj: InternalServerException): any => ({
130
- ...obj,
131
- });
132
- }
133
-
134
- /**
135
- * <p>The request references a routing control that was not found.</p>
136
- */
137
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
138
- name: "ResourceNotFoundException";
139
- $fault: "client";
140
- message: string | undefined;
141
- /**
142
- * Hypothetical resource identifier that was not found
143
- */
144
- resourceId: string | undefined;
145
-
146
- /**
147
- * Hypothetical resource type that was not found
148
- */
149
- resourceType: string | undefined;
150
- }
151
-
152
- export namespace ResourceNotFoundException {
153
- /**
154
- * @internal
155
- */
156
- export const filterSensitiveLog = (obj: ResourceNotFoundException): any => ({
157
- ...obj,
158
- });
159
- }
160
-
161
- /**
162
- * <p>The request was denied because of request throttling.</p>
163
- */
164
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
165
- name: "ThrottlingException";
166
- $fault: "client";
167
- message: string | undefined;
168
- /**
169
- * Advice to clients on when the call can be safely retried
170
- */
171
- retryAfterSeconds?: number;
172
- }
173
-
174
- export namespace ThrottlingException {
175
- /**
176
- * @internal
177
- */
178
- export const filterSensitiveLog = (obj: ThrottlingException): any => ({
179
- ...obj,
180
- });
181
- }
182
-
183
- /**
184
- * <p>There was a validation error on the request.</p>
185
- */
186
- export interface ValidationExceptionField {
187
- /**
188
- * <p>The field that had the validation exception.</p>
189
- */
190
- name: string | undefined;
191
-
192
- /**
193
- * <p>Information about the validation exception.</p>
194
- */
195
- message: string | undefined;
196
- }
197
-
198
- export namespace ValidationExceptionField {
199
- /**
200
- * @internal
201
- */
202
- export const filterSensitiveLog = (obj: ValidationExceptionField): any => ({
203
- ...obj,
204
- });
205
- }
206
-
207
- export enum ValidationExceptionReason {
208
- CANNOT_PARSE = "cannotParse",
209
- FIELD_VALIDATION_FAILED = "fieldValidationFailed",
210
- OTHER = "other",
211
- UNKNOWN_OPERATION = "unknownOperation",
212
- }
213
-
214
- /**
215
- * <p>There was a validation error on the request.</p>
216
- */
217
- export interface ValidationException extends __SmithyException, $MetadataBearer {
218
- name: "ValidationException";
219
- $fault: "client";
220
- message: string | undefined;
221
- /**
222
- * Reason the request failed validation
223
- */
224
- reason?: ValidationExceptionReason | string;
225
-
226
- /**
227
- * The fields that caused the error, if applicable
228
- */
229
- fields?: ValidationExceptionField[];
230
- }
231
-
232
- export namespace ValidationException {
233
- /**
234
- * @internal
235
- */
236
- export const filterSensitiveLog = (obj: ValidationException): any => ({
237
- ...obj,
238
- });
239
- }
240
-
241
- export interface UpdateRoutingControlStateRequest {
242
- /**
243
- * <p>The Amazon Resource Number (ARN) for the routing control that you want to update the state for.</p>
244
- */
245
- RoutingControlArn: string | undefined;
246
-
247
- /**
248
- * <p>The state of the routing control. You can set the value to be On or Off.</p>
249
- */
250
- RoutingControlState: RoutingControlState | string | undefined;
251
- }
252
-
253
- export namespace UpdateRoutingControlStateRequest {
254
- /**
255
- * @internal
256
- */
257
- export const filterSensitiveLog = (obj: UpdateRoutingControlStateRequest): any => ({
258
- ...obj,
259
- });
260
- }
261
-
262
- export interface UpdateRoutingControlStateResponse {}
263
-
264
- export namespace UpdateRoutingControlStateResponse {
265
- /**
266
- * @internal
267
- */
268
- export const filterSensitiveLog = (obj: UpdateRoutingControlStateResponse): any => ({
269
- ...obj,
270
- });
271
- }
272
-
273
- /**
274
- * <p>A routing control state.</p>
275
- */
276
- export interface UpdateRoutingControlStateEntry {
277
- /**
278
- * <p>The Amazon Resource Number (ARN) for the routing control state entry.</p>
279
- */
280
- RoutingControlArn: string | undefined;
281
-
282
- /**
283
- * <p>The routing control state in a set of routing control state entries.</p>
284
- */
285
- RoutingControlState: RoutingControlState | string | undefined;
286
- }
287
-
288
- export namespace UpdateRoutingControlStateEntry {
289
- /**
290
- * @internal
291
- */
292
- export const filterSensitiveLog = (obj: UpdateRoutingControlStateEntry): any => ({
293
- ...obj,
294
- });
295
- }
296
-
297
- export interface UpdateRoutingControlStatesRequest {
298
- /**
299
- * <p>A set of routing control entries that you want to update.</p>
300
- */
301
- UpdateRoutingControlStateEntries: UpdateRoutingControlStateEntry[] | undefined;
302
- }
303
-
304
- export namespace UpdateRoutingControlStatesRequest {
305
- /**
306
- * @internal
307
- */
308
- export const filterSensitiveLog = (obj: UpdateRoutingControlStatesRequest): any => ({
309
- ...obj,
310
- });
311
- }
312
-
313
- export interface UpdateRoutingControlStatesResponse {}
314
-
315
- export namespace UpdateRoutingControlStatesResponse {
316
- /**
317
- * @internal
318
- */
319
- export const filterSensitiveLog = (obj: UpdateRoutingControlStatesResponse): any => ({
320
- ...obj,
321
- });
322
- }