@aws-sdk/client-route53-recovery-control-config 3.315.0 → 3.319.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Route53RecoveryControlConfig = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateClusterCommand_1 = require("./commands/CreateClusterCommand");
5
6
  const CreateControlPanelCommand_1 = require("./commands/CreateControlPanelCommand");
6
7
  const CreateRoutingControlCommand_1 = require("./commands/CreateRoutingControlCommand");
@@ -25,328 +26,32 @@ const UpdateControlPanelCommand_1 = require("./commands/UpdateControlPanelComman
25
26
  const UpdateRoutingControlCommand_1 = require("./commands/UpdateRoutingControlCommand");
26
27
  const UpdateSafetyRuleCommand_1 = require("./commands/UpdateSafetyRuleCommand");
27
28
  const Route53RecoveryControlConfigClient_1 = require("./Route53RecoveryControlConfigClient");
29
+ const commands = {
30
+ CreateClusterCommand: CreateClusterCommand_1.CreateClusterCommand,
31
+ CreateControlPanelCommand: CreateControlPanelCommand_1.CreateControlPanelCommand,
32
+ CreateRoutingControlCommand: CreateRoutingControlCommand_1.CreateRoutingControlCommand,
33
+ CreateSafetyRuleCommand: CreateSafetyRuleCommand_1.CreateSafetyRuleCommand,
34
+ DeleteClusterCommand: DeleteClusterCommand_1.DeleteClusterCommand,
35
+ DeleteControlPanelCommand: DeleteControlPanelCommand_1.DeleteControlPanelCommand,
36
+ DeleteRoutingControlCommand: DeleteRoutingControlCommand_1.DeleteRoutingControlCommand,
37
+ DeleteSafetyRuleCommand: DeleteSafetyRuleCommand_1.DeleteSafetyRuleCommand,
38
+ DescribeClusterCommand: DescribeClusterCommand_1.DescribeClusterCommand,
39
+ DescribeControlPanelCommand: DescribeControlPanelCommand_1.DescribeControlPanelCommand,
40
+ DescribeRoutingControlCommand: DescribeRoutingControlCommand_1.DescribeRoutingControlCommand,
41
+ DescribeSafetyRuleCommand: DescribeSafetyRuleCommand_1.DescribeSafetyRuleCommand,
42
+ ListAssociatedRoute53HealthChecksCommand: ListAssociatedRoute53HealthChecksCommand_1.ListAssociatedRoute53HealthChecksCommand,
43
+ ListClustersCommand: ListClustersCommand_1.ListClustersCommand,
44
+ ListControlPanelsCommand: ListControlPanelsCommand_1.ListControlPanelsCommand,
45
+ ListRoutingControlsCommand: ListRoutingControlsCommand_1.ListRoutingControlsCommand,
46
+ ListSafetyRulesCommand: ListSafetyRulesCommand_1.ListSafetyRulesCommand,
47
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
48
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
49
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
50
+ UpdateControlPanelCommand: UpdateControlPanelCommand_1.UpdateControlPanelCommand,
51
+ UpdateRoutingControlCommand: UpdateRoutingControlCommand_1.UpdateRoutingControlCommand,
52
+ UpdateSafetyRuleCommand: UpdateSafetyRuleCommand_1.UpdateSafetyRuleCommand,
53
+ };
28
54
  class Route53RecoveryControlConfig extends Route53RecoveryControlConfigClient_1.Route53RecoveryControlConfigClient {
29
- createCluster(args, optionsOrCb, cb) {
30
- const command = new CreateClusterCommand_1.CreateClusterCommand(args);
31
- if (typeof optionsOrCb === "function") {
32
- this.send(command, optionsOrCb);
33
- }
34
- else if (typeof cb === "function") {
35
- if (typeof optionsOrCb !== "object")
36
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
37
- this.send(command, optionsOrCb || {}, cb);
38
- }
39
- else {
40
- return this.send(command, optionsOrCb);
41
- }
42
- }
43
- createControlPanel(args, optionsOrCb, cb) {
44
- const command = new CreateControlPanelCommand_1.CreateControlPanelCommand(args);
45
- if (typeof optionsOrCb === "function") {
46
- this.send(command, optionsOrCb);
47
- }
48
- else if (typeof cb === "function") {
49
- if (typeof optionsOrCb !== "object")
50
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
51
- this.send(command, optionsOrCb || {}, cb);
52
- }
53
- else {
54
- return this.send(command, optionsOrCb);
55
- }
56
- }
57
- createRoutingControl(args, optionsOrCb, cb) {
58
- const command = new CreateRoutingControlCommand_1.CreateRoutingControlCommand(args);
59
- if (typeof optionsOrCb === "function") {
60
- this.send(command, optionsOrCb);
61
- }
62
- else if (typeof cb === "function") {
63
- if (typeof optionsOrCb !== "object")
64
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
65
- this.send(command, optionsOrCb || {}, cb);
66
- }
67
- else {
68
- return this.send(command, optionsOrCb);
69
- }
70
- }
71
- createSafetyRule(args, optionsOrCb, cb) {
72
- const command = new CreateSafetyRuleCommand_1.CreateSafetyRuleCommand(args);
73
- if (typeof optionsOrCb === "function") {
74
- this.send(command, optionsOrCb);
75
- }
76
- else if (typeof cb === "function") {
77
- if (typeof optionsOrCb !== "object")
78
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
- this.send(command, optionsOrCb || {}, cb);
80
- }
81
- else {
82
- return this.send(command, optionsOrCb);
83
- }
84
- }
85
- deleteCluster(args, optionsOrCb, cb) {
86
- const command = new DeleteClusterCommand_1.DeleteClusterCommand(args);
87
- if (typeof optionsOrCb === "function") {
88
- this.send(command, optionsOrCb);
89
- }
90
- else if (typeof cb === "function") {
91
- if (typeof optionsOrCb !== "object")
92
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
93
- this.send(command, optionsOrCb || {}, cb);
94
- }
95
- else {
96
- return this.send(command, optionsOrCb);
97
- }
98
- }
99
- deleteControlPanel(args, optionsOrCb, cb) {
100
- const command = new DeleteControlPanelCommand_1.DeleteControlPanelCommand(args);
101
- if (typeof optionsOrCb === "function") {
102
- this.send(command, optionsOrCb);
103
- }
104
- else if (typeof cb === "function") {
105
- if (typeof optionsOrCb !== "object")
106
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
107
- this.send(command, optionsOrCb || {}, cb);
108
- }
109
- else {
110
- return this.send(command, optionsOrCb);
111
- }
112
- }
113
- deleteRoutingControl(args, optionsOrCb, cb) {
114
- const command = new DeleteRoutingControlCommand_1.DeleteRoutingControlCommand(args);
115
- if (typeof optionsOrCb === "function") {
116
- this.send(command, optionsOrCb);
117
- }
118
- else if (typeof cb === "function") {
119
- if (typeof optionsOrCb !== "object")
120
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
- this.send(command, optionsOrCb || {}, cb);
122
- }
123
- else {
124
- return this.send(command, optionsOrCb);
125
- }
126
- }
127
- deleteSafetyRule(args, optionsOrCb, cb) {
128
- const command = new DeleteSafetyRuleCommand_1.DeleteSafetyRuleCommand(args);
129
- if (typeof optionsOrCb === "function") {
130
- this.send(command, optionsOrCb);
131
- }
132
- else if (typeof cb === "function") {
133
- if (typeof optionsOrCb !== "object")
134
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
135
- this.send(command, optionsOrCb || {}, cb);
136
- }
137
- else {
138
- return this.send(command, optionsOrCb);
139
- }
140
- }
141
- describeCluster(args, optionsOrCb, cb) {
142
- const command = new DescribeClusterCommand_1.DescribeClusterCommand(args);
143
- if (typeof optionsOrCb === "function") {
144
- this.send(command, optionsOrCb);
145
- }
146
- else if (typeof cb === "function") {
147
- if (typeof optionsOrCb !== "object")
148
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
149
- this.send(command, optionsOrCb || {}, cb);
150
- }
151
- else {
152
- return this.send(command, optionsOrCb);
153
- }
154
- }
155
- describeControlPanel(args, optionsOrCb, cb) {
156
- const command = new DescribeControlPanelCommand_1.DescribeControlPanelCommand(args);
157
- if (typeof optionsOrCb === "function") {
158
- this.send(command, optionsOrCb);
159
- }
160
- else if (typeof cb === "function") {
161
- if (typeof optionsOrCb !== "object")
162
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
163
- this.send(command, optionsOrCb || {}, cb);
164
- }
165
- else {
166
- return this.send(command, optionsOrCb);
167
- }
168
- }
169
- describeRoutingControl(args, optionsOrCb, cb) {
170
- const command = new DescribeRoutingControlCommand_1.DescribeRoutingControlCommand(args);
171
- if (typeof optionsOrCb === "function") {
172
- this.send(command, optionsOrCb);
173
- }
174
- else if (typeof cb === "function") {
175
- if (typeof optionsOrCb !== "object")
176
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
177
- this.send(command, optionsOrCb || {}, cb);
178
- }
179
- else {
180
- return this.send(command, optionsOrCb);
181
- }
182
- }
183
- describeSafetyRule(args, optionsOrCb, cb) {
184
- const command = new DescribeSafetyRuleCommand_1.DescribeSafetyRuleCommand(args);
185
- if (typeof optionsOrCb === "function") {
186
- this.send(command, optionsOrCb);
187
- }
188
- else if (typeof cb === "function") {
189
- if (typeof optionsOrCb !== "object")
190
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
191
- this.send(command, optionsOrCb || {}, cb);
192
- }
193
- else {
194
- return this.send(command, optionsOrCb);
195
- }
196
- }
197
- listAssociatedRoute53HealthChecks(args, optionsOrCb, cb) {
198
- const command = new ListAssociatedRoute53HealthChecksCommand_1.ListAssociatedRoute53HealthChecksCommand(args);
199
- if (typeof optionsOrCb === "function") {
200
- this.send(command, optionsOrCb);
201
- }
202
- else if (typeof cb === "function") {
203
- if (typeof optionsOrCb !== "object")
204
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
205
- this.send(command, optionsOrCb || {}, cb);
206
- }
207
- else {
208
- return this.send(command, optionsOrCb);
209
- }
210
- }
211
- listClusters(args, optionsOrCb, cb) {
212
- const command = new ListClustersCommand_1.ListClustersCommand(args);
213
- if (typeof optionsOrCb === "function") {
214
- this.send(command, optionsOrCb);
215
- }
216
- else if (typeof cb === "function") {
217
- if (typeof optionsOrCb !== "object")
218
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
219
- this.send(command, optionsOrCb || {}, cb);
220
- }
221
- else {
222
- return this.send(command, optionsOrCb);
223
- }
224
- }
225
- listControlPanels(args, optionsOrCb, cb) {
226
- const command = new ListControlPanelsCommand_1.ListControlPanelsCommand(args);
227
- if (typeof optionsOrCb === "function") {
228
- this.send(command, optionsOrCb);
229
- }
230
- else if (typeof cb === "function") {
231
- if (typeof optionsOrCb !== "object")
232
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
233
- this.send(command, optionsOrCb || {}, cb);
234
- }
235
- else {
236
- return this.send(command, optionsOrCb);
237
- }
238
- }
239
- listRoutingControls(args, optionsOrCb, cb) {
240
- const command = new ListRoutingControlsCommand_1.ListRoutingControlsCommand(args);
241
- if (typeof optionsOrCb === "function") {
242
- this.send(command, optionsOrCb);
243
- }
244
- else if (typeof cb === "function") {
245
- if (typeof optionsOrCb !== "object")
246
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
247
- this.send(command, optionsOrCb || {}, cb);
248
- }
249
- else {
250
- return this.send(command, optionsOrCb);
251
- }
252
- }
253
- listSafetyRules(args, optionsOrCb, cb) {
254
- const command = new ListSafetyRulesCommand_1.ListSafetyRulesCommand(args);
255
- if (typeof optionsOrCb === "function") {
256
- this.send(command, optionsOrCb);
257
- }
258
- else if (typeof cb === "function") {
259
- if (typeof optionsOrCb !== "object")
260
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
261
- this.send(command, optionsOrCb || {}, cb);
262
- }
263
- else {
264
- return this.send(command, optionsOrCb);
265
- }
266
- }
267
- listTagsForResource(args, optionsOrCb, cb) {
268
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
269
- if (typeof optionsOrCb === "function") {
270
- this.send(command, optionsOrCb);
271
- }
272
- else if (typeof cb === "function") {
273
- if (typeof optionsOrCb !== "object")
274
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
275
- this.send(command, optionsOrCb || {}, cb);
276
- }
277
- else {
278
- return this.send(command, optionsOrCb);
279
- }
280
- }
281
- tagResource(args, optionsOrCb, cb) {
282
- const command = new TagResourceCommand_1.TagResourceCommand(args);
283
- if (typeof optionsOrCb === "function") {
284
- this.send(command, optionsOrCb);
285
- }
286
- else if (typeof cb === "function") {
287
- if (typeof optionsOrCb !== "object")
288
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
289
- this.send(command, optionsOrCb || {}, cb);
290
- }
291
- else {
292
- return this.send(command, optionsOrCb);
293
- }
294
- }
295
- untagResource(args, optionsOrCb, cb) {
296
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
297
- if (typeof optionsOrCb === "function") {
298
- this.send(command, optionsOrCb);
299
- }
300
- else if (typeof cb === "function") {
301
- if (typeof optionsOrCb !== "object")
302
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
303
- this.send(command, optionsOrCb || {}, cb);
304
- }
305
- else {
306
- return this.send(command, optionsOrCb);
307
- }
308
- }
309
- updateControlPanel(args, optionsOrCb, cb) {
310
- const command = new UpdateControlPanelCommand_1.UpdateControlPanelCommand(args);
311
- if (typeof optionsOrCb === "function") {
312
- this.send(command, optionsOrCb);
313
- }
314
- else if (typeof cb === "function") {
315
- if (typeof optionsOrCb !== "object")
316
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
317
- this.send(command, optionsOrCb || {}, cb);
318
- }
319
- else {
320
- return this.send(command, optionsOrCb);
321
- }
322
- }
323
- updateRoutingControl(args, optionsOrCb, cb) {
324
- const command = new UpdateRoutingControlCommand_1.UpdateRoutingControlCommand(args);
325
- if (typeof optionsOrCb === "function") {
326
- this.send(command, optionsOrCb);
327
- }
328
- else if (typeof cb === "function") {
329
- if (typeof optionsOrCb !== "object")
330
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
331
- this.send(command, optionsOrCb || {}, cb);
332
- }
333
- else {
334
- return this.send(command, optionsOrCb);
335
- }
336
- }
337
- updateSafetyRule(args, optionsOrCb, cb) {
338
- const command = new UpdateSafetyRuleCommand_1.UpdateSafetyRuleCommand(args);
339
- if (typeof optionsOrCb === "function") {
340
- this.send(command, optionsOrCb);
341
- }
342
- else if (typeof cb === "function") {
343
- if (typeof optionsOrCb !== "object")
344
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
345
- this.send(command, optionsOrCb || {}, cb);
346
- }
347
- else {
348
- return this.send(command, optionsOrCb);
349
- }
350
- }
351
55
  }
352
56
  exports.Route53RecoveryControlConfig = Route53RecoveryControlConfig;
57
+ (0, smithy_client_1.createAggregatedClient)(commands, Route53RecoveryControlConfig);
@@ -14,7 +14,7 @@ const se_CreateClusterCommand = async (input, context) => {
14
14
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster";
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
17
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
18
18
  ClusterName: [],
19
19
  Tags: (_) => (0, smithy_client_1._json)(_),
20
20
  }));
@@ -37,7 +37,7 @@ const se_CreateControlPanelCommand = async (input, context) => {
37
37
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel";
38
38
  let body;
39
39
  body = JSON.stringify((0, smithy_client_1.take)(input, {
40
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
40
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
41
41
  ClusterArn: [],
42
42
  ControlPanelName: [],
43
43
  Tags: (_) => (0, smithy_client_1._json)(_),
@@ -61,7 +61,7 @@ const se_CreateRoutingControlCommand = async (input, context) => {
61
61
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol";
62
62
  let body;
63
63
  body = JSON.stringify((0, smithy_client_1.take)(input, {
64
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
64
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
65
65
  ClusterArn: [],
66
66
  ControlPanelArn: [],
67
67
  RoutingControlName: [],
@@ -86,7 +86,7 @@ const se_CreateSafetyRuleCommand = async (input, context) => {
86
86
  let body;
87
87
  body = JSON.stringify((0, smithy_client_1.take)(input, {
88
88
  AssertionRule: (_) => (0, smithy_client_1._json)(_),
89
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
89
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
90
90
  GatingRule: (_) => (0, smithy_client_1._json)(_),
91
91
  Tags: (_) => (0, smithy_client_1._json)(_),
92
92
  }));
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
2
3
  import { CreateControlPanelCommand, } from "./commands/CreateControlPanelCommand";
3
4
  import { CreateRoutingControlCommand, } from "./commands/CreateRoutingControlCommand";
@@ -21,328 +22,32 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
21
22
  import { UpdateControlPanelCommand, } from "./commands/UpdateControlPanelCommand";
22
23
  import { UpdateRoutingControlCommand, } from "./commands/UpdateRoutingControlCommand";
23
24
  import { UpdateSafetyRuleCommand, } from "./commands/UpdateSafetyRuleCommand";
24
- import { Route53RecoveryControlConfigClient } from "./Route53RecoveryControlConfigClient";
25
+ import { Route53RecoveryControlConfigClient, } from "./Route53RecoveryControlConfigClient";
26
+ const commands = {
27
+ CreateClusterCommand,
28
+ CreateControlPanelCommand,
29
+ CreateRoutingControlCommand,
30
+ CreateSafetyRuleCommand,
31
+ DeleteClusterCommand,
32
+ DeleteControlPanelCommand,
33
+ DeleteRoutingControlCommand,
34
+ DeleteSafetyRuleCommand,
35
+ DescribeClusterCommand,
36
+ DescribeControlPanelCommand,
37
+ DescribeRoutingControlCommand,
38
+ DescribeSafetyRuleCommand,
39
+ ListAssociatedRoute53HealthChecksCommand,
40
+ ListClustersCommand,
41
+ ListControlPanelsCommand,
42
+ ListRoutingControlsCommand,
43
+ ListSafetyRulesCommand,
44
+ ListTagsForResourceCommand,
45
+ TagResourceCommand,
46
+ UntagResourceCommand,
47
+ UpdateControlPanelCommand,
48
+ UpdateRoutingControlCommand,
49
+ UpdateSafetyRuleCommand,
50
+ };
25
51
  export class Route53RecoveryControlConfig extends Route53RecoveryControlConfigClient {
26
- createCluster(args, optionsOrCb, cb) {
27
- const command = new CreateClusterCommand(args);
28
- if (typeof optionsOrCb === "function") {
29
- this.send(command, optionsOrCb);
30
- }
31
- else if (typeof cb === "function") {
32
- if (typeof optionsOrCb !== "object")
33
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
34
- this.send(command, optionsOrCb || {}, cb);
35
- }
36
- else {
37
- return this.send(command, optionsOrCb);
38
- }
39
- }
40
- createControlPanel(args, optionsOrCb, cb) {
41
- const command = new CreateControlPanelCommand(args);
42
- if (typeof optionsOrCb === "function") {
43
- this.send(command, optionsOrCb);
44
- }
45
- else if (typeof cb === "function") {
46
- if (typeof optionsOrCb !== "object")
47
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
48
- this.send(command, optionsOrCb || {}, cb);
49
- }
50
- else {
51
- return this.send(command, optionsOrCb);
52
- }
53
- }
54
- createRoutingControl(args, optionsOrCb, cb) {
55
- const command = new CreateRoutingControlCommand(args);
56
- if (typeof optionsOrCb === "function") {
57
- this.send(command, optionsOrCb);
58
- }
59
- else if (typeof cb === "function") {
60
- if (typeof optionsOrCb !== "object")
61
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
62
- this.send(command, optionsOrCb || {}, cb);
63
- }
64
- else {
65
- return this.send(command, optionsOrCb);
66
- }
67
- }
68
- createSafetyRule(args, optionsOrCb, cb) {
69
- const command = new CreateSafetyRuleCommand(args);
70
- if (typeof optionsOrCb === "function") {
71
- this.send(command, optionsOrCb);
72
- }
73
- else if (typeof cb === "function") {
74
- if (typeof optionsOrCb !== "object")
75
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
76
- this.send(command, optionsOrCb || {}, cb);
77
- }
78
- else {
79
- return this.send(command, optionsOrCb);
80
- }
81
- }
82
- deleteCluster(args, optionsOrCb, cb) {
83
- const command = new DeleteClusterCommand(args);
84
- if (typeof optionsOrCb === "function") {
85
- this.send(command, optionsOrCb);
86
- }
87
- else if (typeof cb === "function") {
88
- if (typeof optionsOrCb !== "object")
89
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
90
- this.send(command, optionsOrCb || {}, cb);
91
- }
92
- else {
93
- return this.send(command, optionsOrCb);
94
- }
95
- }
96
- deleteControlPanel(args, optionsOrCb, cb) {
97
- const command = new DeleteControlPanelCommand(args);
98
- if (typeof optionsOrCb === "function") {
99
- this.send(command, optionsOrCb);
100
- }
101
- else if (typeof cb === "function") {
102
- if (typeof optionsOrCb !== "object")
103
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
104
- this.send(command, optionsOrCb || {}, cb);
105
- }
106
- else {
107
- return this.send(command, optionsOrCb);
108
- }
109
- }
110
- deleteRoutingControl(args, optionsOrCb, cb) {
111
- const command = new DeleteRoutingControlCommand(args);
112
- if (typeof optionsOrCb === "function") {
113
- this.send(command, optionsOrCb);
114
- }
115
- else if (typeof cb === "function") {
116
- if (typeof optionsOrCb !== "object")
117
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
118
- this.send(command, optionsOrCb || {}, cb);
119
- }
120
- else {
121
- return this.send(command, optionsOrCb);
122
- }
123
- }
124
- deleteSafetyRule(args, optionsOrCb, cb) {
125
- const command = new DeleteSafetyRuleCommand(args);
126
- if (typeof optionsOrCb === "function") {
127
- this.send(command, optionsOrCb);
128
- }
129
- else if (typeof cb === "function") {
130
- if (typeof optionsOrCb !== "object")
131
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
132
- this.send(command, optionsOrCb || {}, cb);
133
- }
134
- else {
135
- return this.send(command, optionsOrCb);
136
- }
137
- }
138
- describeCluster(args, optionsOrCb, cb) {
139
- const command = new DescribeClusterCommand(args);
140
- if (typeof optionsOrCb === "function") {
141
- this.send(command, optionsOrCb);
142
- }
143
- else if (typeof cb === "function") {
144
- if (typeof optionsOrCb !== "object")
145
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
146
- this.send(command, optionsOrCb || {}, cb);
147
- }
148
- else {
149
- return this.send(command, optionsOrCb);
150
- }
151
- }
152
- describeControlPanel(args, optionsOrCb, cb) {
153
- const command = new DescribeControlPanelCommand(args);
154
- if (typeof optionsOrCb === "function") {
155
- this.send(command, optionsOrCb);
156
- }
157
- else if (typeof cb === "function") {
158
- if (typeof optionsOrCb !== "object")
159
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
160
- this.send(command, optionsOrCb || {}, cb);
161
- }
162
- else {
163
- return this.send(command, optionsOrCb);
164
- }
165
- }
166
- describeRoutingControl(args, optionsOrCb, cb) {
167
- const command = new DescribeRoutingControlCommand(args);
168
- if (typeof optionsOrCb === "function") {
169
- this.send(command, optionsOrCb);
170
- }
171
- else if (typeof cb === "function") {
172
- if (typeof optionsOrCb !== "object")
173
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
174
- this.send(command, optionsOrCb || {}, cb);
175
- }
176
- else {
177
- return this.send(command, optionsOrCb);
178
- }
179
- }
180
- describeSafetyRule(args, optionsOrCb, cb) {
181
- const command = new DescribeSafetyRuleCommand(args);
182
- if (typeof optionsOrCb === "function") {
183
- this.send(command, optionsOrCb);
184
- }
185
- else if (typeof cb === "function") {
186
- if (typeof optionsOrCb !== "object")
187
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
188
- this.send(command, optionsOrCb || {}, cb);
189
- }
190
- else {
191
- return this.send(command, optionsOrCb);
192
- }
193
- }
194
- listAssociatedRoute53HealthChecks(args, optionsOrCb, cb) {
195
- const command = new ListAssociatedRoute53HealthChecksCommand(args);
196
- if (typeof optionsOrCb === "function") {
197
- this.send(command, optionsOrCb);
198
- }
199
- else if (typeof cb === "function") {
200
- if (typeof optionsOrCb !== "object")
201
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
202
- this.send(command, optionsOrCb || {}, cb);
203
- }
204
- else {
205
- return this.send(command, optionsOrCb);
206
- }
207
- }
208
- listClusters(args, optionsOrCb, cb) {
209
- const command = new ListClustersCommand(args);
210
- if (typeof optionsOrCb === "function") {
211
- this.send(command, optionsOrCb);
212
- }
213
- else if (typeof cb === "function") {
214
- if (typeof optionsOrCb !== "object")
215
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
216
- this.send(command, optionsOrCb || {}, cb);
217
- }
218
- else {
219
- return this.send(command, optionsOrCb);
220
- }
221
- }
222
- listControlPanels(args, optionsOrCb, cb) {
223
- const command = new ListControlPanelsCommand(args);
224
- if (typeof optionsOrCb === "function") {
225
- this.send(command, optionsOrCb);
226
- }
227
- else if (typeof cb === "function") {
228
- if (typeof optionsOrCb !== "object")
229
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
230
- this.send(command, optionsOrCb || {}, cb);
231
- }
232
- else {
233
- return this.send(command, optionsOrCb);
234
- }
235
- }
236
- listRoutingControls(args, optionsOrCb, cb) {
237
- const command = new ListRoutingControlsCommand(args);
238
- if (typeof optionsOrCb === "function") {
239
- this.send(command, optionsOrCb);
240
- }
241
- else if (typeof cb === "function") {
242
- if (typeof optionsOrCb !== "object")
243
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
244
- this.send(command, optionsOrCb || {}, cb);
245
- }
246
- else {
247
- return this.send(command, optionsOrCb);
248
- }
249
- }
250
- listSafetyRules(args, optionsOrCb, cb) {
251
- const command = new ListSafetyRulesCommand(args);
252
- if (typeof optionsOrCb === "function") {
253
- this.send(command, optionsOrCb);
254
- }
255
- else if (typeof cb === "function") {
256
- if (typeof optionsOrCb !== "object")
257
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
258
- this.send(command, optionsOrCb || {}, cb);
259
- }
260
- else {
261
- return this.send(command, optionsOrCb);
262
- }
263
- }
264
- listTagsForResource(args, optionsOrCb, cb) {
265
- const command = new ListTagsForResourceCommand(args);
266
- if (typeof optionsOrCb === "function") {
267
- this.send(command, optionsOrCb);
268
- }
269
- else if (typeof cb === "function") {
270
- if (typeof optionsOrCb !== "object")
271
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
272
- this.send(command, optionsOrCb || {}, cb);
273
- }
274
- else {
275
- return this.send(command, optionsOrCb);
276
- }
277
- }
278
- tagResource(args, optionsOrCb, cb) {
279
- const command = new TagResourceCommand(args);
280
- if (typeof optionsOrCb === "function") {
281
- this.send(command, optionsOrCb);
282
- }
283
- else if (typeof cb === "function") {
284
- if (typeof optionsOrCb !== "object")
285
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
286
- this.send(command, optionsOrCb || {}, cb);
287
- }
288
- else {
289
- return this.send(command, optionsOrCb);
290
- }
291
- }
292
- untagResource(args, optionsOrCb, cb) {
293
- const command = new UntagResourceCommand(args);
294
- if (typeof optionsOrCb === "function") {
295
- this.send(command, optionsOrCb);
296
- }
297
- else if (typeof cb === "function") {
298
- if (typeof optionsOrCb !== "object")
299
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
300
- this.send(command, optionsOrCb || {}, cb);
301
- }
302
- else {
303
- return this.send(command, optionsOrCb);
304
- }
305
- }
306
- updateControlPanel(args, optionsOrCb, cb) {
307
- const command = new UpdateControlPanelCommand(args);
308
- if (typeof optionsOrCb === "function") {
309
- this.send(command, optionsOrCb);
310
- }
311
- else if (typeof cb === "function") {
312
- if (typeof optionsOrCb !== "object")
313
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
314
- this.send(command, optionsOrCb || {}, cb);
315
- }
316
- else {
317
- return this.send(command, optionsOrCb);
318
- }
319
- }
320
- updateRoutingControl(args, optionsOrCb, cb) {
321
- const command = new UpdateRoutingControlCommand(args);
322
- if (typeof optionsOrCb === "function") {
323
- this.send(command, optionsOrCb);
324
- }
325
- else if (typeof cb === "function") {
326
- if (typeof optionsOrCb !== "object")
327
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
328
- this.send(command, optionsOrCb || {}, cb);
329
- }
330
- else {
331
- return this.send(command, optionsOrCb);
332
- }
333
- }
334
- updateSafetyRule(args, optionsOrCb, cb) {
335
- const command = new UpdateSafetyRuleCommand(args);
336
- if (typeof optionsOrCb === "function") {
337
- this.send(command, optionsOrCb);
338
- }
339
- else if (typeof cb === "function") {
340
- if (typeof optionsOrCb !== "object")
341
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
342
- this.send(command, optionsOrCb || {}, cb);
343
- }
344
- else {
345
- return this.send(command, optionsOrCb);
346
- }
347
- }
348
52
  }
53
+ createAggregatedClient(commands, Route53RecoveryControlConfig);
@@ -11,7 +11,7 @@ export const se_CreateClusterCommand = async (input, context) => {
11
11
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster";
12
12
  let body;
13
13
  body = JSON.stringify(take(input, {
14
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
14
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
15
15
  ClusterName: [],
16
16
  Tags: (_) => _json(_),
17
17
  }));
@@ -33,7 +33,7 @@ export const se_CreateControlPanelCommand = async (input, context) => {
33
33
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel";
34
34
  let body;
35
35
  body = JSON.stringify(take(input, {
36
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
36
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
37
37
  ClusterArn: [],
38
38
  ControlPanelName: [],
39
39
  Tags: (_) => _json(_),
@@ -56,7 +56,7 @@ export const se_CreateRoutingControlCommand = async (input, context) => {
56
56
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol";
57
57
  let body;
58
58
  body = JSON.stringify(take(input, {
59
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
59
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
60
60
  ClusterArn: [],
61
61
  ControlPanelArn: [],
62
62
  RoutingControlName: [],
@@ -80,7 +80,7 @@ export const se_CreateSafetyRuleCommand = async (input, context) => {
80
80
  let body;
81
81
  body = JSON.stringify(take(input, {
82
82
  AssertionRule: (_) => _json(_),
83
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
83
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
84
84
  GatingRule: (_) => _json(_),
85
85
  Tags: (_) => _json(_),
86
86
  }));
@@ -23,170 +23,149 @@ import { UpdateControlPanelCommandInput, UpdateControlPanelCommandOutput } from
23
23
  import { UpdateRoutingControlCommandInput, UpdateRoutingControlCommandOutput } from "./commands/UpdateRoutingControlCommand";
24
24
  import { UpdateSafetyRuleCommandInput, UpdateSafetyRuleCommandOutput } from "./commands/UpdateSafetyRuleCommand";
25
25
  import { Route53RecoveryControlConfigClient } from "./Route53RecoveryControlConfigClient";
26
- /**
27
- * @public
28
- * <p>Recovery Control Configuration API Reference for Amazon Route 53 Application Recovery Controller</p>
29
- */
30
- export declare class Route53RecoveryControlConfig extends Route53RecoveryControlConfigClient {
26
+ export interface Route53RecoveryControlConfig {
31
27
  /**
32
- * @public
33
- * <p>Create a new cluster. A cluster is a set of redundant Regional endpoints against which you can run API calls to update or get the state of one or more routing controls. Each cluster has a name, status, Amazon Resource Name (ARN), and an array of the five cluster endpoints (one for each supported Amazon Web Services Region) that you can use with API calls to the cluster data plane.</p>
28
+ * @see {@link CreateClusterCommand}
34
29
  */
35
30
  createCluster(args: CreateClusterCommandInput, options?: __HttpHandlerOptions): Promise<CreateClusterCommandOutput>;
36
31
  createCluster(args: CreateClusterCommandInput, cb: (err: any, data?: CreateClusterCommandOutput) => void): void;
37
32
  createCluster(args: CreateClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateClusterCommandOutput) => void): void;
38
33
  /**
39
- * @public
40
- * <p>Creates a new control panel. A control panel represents a group of routing controls that can be changed together in a single transaction. You can use a control panel to centrally view the operational status of applications across your organization, and trigger multi-app failovers in a single transaction, for example, to fail over an Availability Zone or Amazon Web Services Region.</p>
34
+ * @see {@link CreateControlPanelCommand}
41
35
  */
42
36
  createControlPanel(args: CreateControlPanelCommandInput, options?: __HttpHandlerOptions): Promise<CreateControlPanelCommandOutput>;
43
37
  createControlPanel(args: CreateControlPanelCommandInput, cb: (err: any, data?: CreateControlPanelCommandOutput) => void): void;
44
38
  createControlPanel(args: CreateControlPanelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateControlPanelCommandOutput) => void): void;
45
39
  /**
46
- * @public
47
- * <p>Creates a new routing control.</p> <p>A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control traffic routing.</p> <p>To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.</p>
40
+ * @see {@link CreateRoutingControlCommand}
48
41
  */
49
42
  createRoutingControl(args: CreateRoutingControlCommandInput, options?: __HttpHandlerOptions): Promise<CreateRoutingControlCommandOutput>;
50
43
  createRoutingControl(args: CreateRoutingControlCommandInput, cb: (err: any, data?: CreateRoutingControlCommandOutput) => void): void;
51
44
  createRoutingControl(args: CreateRoutingControlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRoutingControlCommandOutput) => void): void;
52
45
  /**
53
- * @public
54
- * <p>Creates a safety rule in a control panel. Safety rules let you add safeguards around changing routing control states, and for enabling and disabling routing controls, to help prevent unexpected outcomes.</p> <p>There are two types of safety rules: assertion rules and gating rules.</p> <p>Assertion rule: An assertion rule enforces that, when you change a routing control state, that a certain criteria is met. For example, the criteria might be that at least one routing control state is On after the transaction so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.</p> <p>Gating rule: A gating rule lets you configure a gating routing control as an overall "on/off" switch for a group of routing controls. Or, you can configure more complex gating scenarios, for example by configuring multiple gating routing controls.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.safety-rules.html">Safety rules</a> in the Amazon Route 53 Application Recovery Controller Developer Guide.</p>
46
+ * @see {@link CreateSafetyRuleCommand}
55
47
  */
56
48
  createSafetyRule(args: CreateSafetyRuleCommandInput, options?: __HttpHandlerOptions): Promise<CreateSafetyRuleCommandOutput>;
57
49
  createSafetyRule(args: CreateSafetyRuleCommandInput, cb: (err: any, data?: CreateSafetyRuleCommandOutput) => void): void;
58
50
  createSafetyRule(args: CreateSafetyRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSafetyRuleCommandOutput) => void): void;
59
51
  /**
60
- * @public
61
- * <p>Delete a cluster.</p>
52
+ * @see {@link DeleteClusterCommand}
62
53
  */
63
54
  deleteCluster(args: DeleteClusterCommandInput, options?: __HttpHandlerOptions): Promise<DeleteClusterCommandOutput>;
64
55
  deleteCluster(args: DeleteClusterCommandInput, cb: (err: any, data?: DeleteClusterCommandOutput) => void): void;
65
56
  deleteCluster(args: DeleteClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteClusterCommandOutput) => void): void;
66
57
  /**
67
- * @public
68
- * <p>Deletes a control panel.</p>
58
+ * @see {@link DeleteControlPanelCommand}
69
59
  */
70
60
  deleteControlPanel(args: DeleteControlPanelCommandInput, options?: __HttpHandlerOptions): Promise<DeleteControlPanelCommandOutput>;
71
61
  deleteControlPanel(args: DeleteControlPanelCommandInput, cb: (err: any, data?: DeleteControlPanelCommandOutput) => void): void;
72
62
  deleteControlPanel(args: DeleteControlPanelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteControlPanelCommandOutput) => void): void;
73
63
  /**
74
- * @public
75
- * <p>Deletes a routing control.</p>
64
+ * @see {@link DeleteRoutingControlCommand}
76
65
  */
77
66
  deleteRoutingControl(args: DeleteRoutingControlCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRoutingControlCommandOutput>;
78
67
  deleteRoutingControl(args: DeleteRoutingControlCommandInput, cb: (err: any, data?: DeleteRoutingControlCommandOutput) => void): void;
79
68
  deleteRoutingControl(args: DeleteRoutingControlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRoutingControlCommandOutput) => void): void;
80
69
  /**
81
- * @public
82
- * <p>Deletes a safety rule.</p>/&gt;
70
+ * @see {@link DeleteSafetyRuleCommand}
83
71
  */
84
72
  deleteSafetyRule(args: DeleteSafetyRuleCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSafetyRuleCommandOutput>;
85
73
  deleteSafetyRule(args: DeleteSafetyRuleCommandInput, cb: (err: any, data?: DeleteSafetyRuleCommandOutput) => void): void;
86
74
  deleteSafetyRule(args: DeleteSafetyRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSafetyRuleCommandOutput) => void): void;
87
75
  /**
88
- * @public
89
- * <p>Display the details about a cluster. The response includes the cluster name, endpoints, status, and Amazon Resource Name (ARN).</p>
76
+ * @see {@link DescribeClusterCommand}
90
77
  */
91
78
  describeCluster(args: DescribeClusterCommandInput, options?: __HttpHandlerOptions): Promise<DescribeClusterCommandOutput>;
92
79
  describeCluster(args: DescribeClusterCommandInput, cb: (err: any, data?: DescribeClusterCommandOutput) => void): void;
93
80
  describeCluster(args: DescribeClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeClusterCommandOutput) => void): void;
94
81
  /**
95
- * @public
96
- * <p>Displays details about a control panel.</p>
82
+ * @see {@link DescribeControlPanelCommand}
97
83
  */
98
84
  describeControlPanel(args: DescribeControlPanelCommandInput, options?: __HttpHandlerOptions): Promise<DescribeControlPanelCommandOutput>;
99
85
  describeControlPanel(args: DescribeControlPanelCommandInput, cb: (err: any, data?: DescribeControlPanelCommandOutput) => void): void;
100
86
  describeControlPanel(args: DescribeControlPanelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeControlPanelCommandOutput) => void): void;
101
87
  /**
102
- * @public
103
- * <p>Displays details about a routing control. A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control routing.</p> <p>To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.</p>
88
+ * @see {@link DescribeRoutingControlCommand}
104
89
  */
105
90
  describeRoutingControl(args: DescribeRoutingControlCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRoutingControlCommandOutput>;
106
91
  describeRoutingControl(args: DescribeRoutingControlCommandInput, cb: (err: any, data?: DescribeRoutingControlCommandOutput) => void): void;
107
92
  describeRoutingControl(args: DescribeRoutingControlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRoutingControlCommandOutput) => void): void;
108
93
  /**
109
- * @public
110
- * <p>Returns information about a safety rule.</p>
94
+ * @see {@link DescribeSafetyRuleCommand}
111
95
  */
112
96
  describeSafetyRule(args: DescribeSafetyRuleCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSafetyRuleCommandOutput>;
113
97
  describeSafetyRule(args: DescribeSafetyRuleCommandInput, cb: (err: any, data?: DescribeSafetyRuleCommandOutput) => void): void;
114
98
  describeSafetyRule(args: DescribeSafetyRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSafetyRuleCommandOutput) => void): void;
115
99
  /**
116
- * @public
117
- * <p>Returns an array of all Amazon Route 53 health checks associated with a specific routing control.</p>
100
+ * @see {@link ListAssociatedRoute53HealthChecksCommand}
118
101
  */
119
102
  listAssociatedRoute53HealthChecks(args: ListAssociatedRoute53HealthChecksCommandInput, options?: __HttpHandlerOptions): Promise<ListAssociatedRoute53HealthChecksCommandOutput>;
120
103
  listAssociatedRoute53HealthChecks(args: ListAssociatedRoute53HealthChecksCommandInput, cb: (err: any, data?: ListAssociatedRoute53HealthChecksCommandOutput) => void): void;
121
104
  listAssociatedRoute53HealthChecks(args: ListAssociatedRoute53HealthChecksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAssociatedRoute53HealthChecksCommandOutput) => void): void;
122
105
  /**
123
- * @public
124
- * <p>Returns an array of all the clusters in an account.</p>
106
+ * @see {@link ListClustersCommand}
125
107
  */
126
108
  listClusters(args: ListClustersCommandInput, options?: __HttpHandlerOptions): Promise<ListClustersCommandOutput>;
127
109
  listClusters(args: ListClustersCommandInput, cb: (err: any, data?: ListClustersCommandOutput) => void): void;
128
110
  listClusters(args: ListClustersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListClustersCommandOutput) => void): void;
129
111
  /**
130
- * @public
131
- * <p>Returns an array of control panels in an account or in a cluster.</p>
112
+ * @see {@link ListControlPanelsCommand}
132
113
  */
133
114
  listControlPanels(args: ListControlPanelsCommandInput, options?: __HttpHandlerOptions): Promise<ListControlPanelsCommandOutput>;
134
115
  listControlPanels(args: ListControlPanelsCommandInput, cb: (err: any, data?: ListControlPanelsCommandOutput) => void): void;
135
116
  listControlPanels(args: ListControlPanelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListControlPanelsCommandOutput) => void): void;
136
117
  /**
137
- * @public
138
- * <p>Returns an array of routing controls for a control panel. A routing control is an Amazon Route 53 Application Recovery Controller construct that has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control routing.</p>
118
+ * @see {@link ListRoutingControlsCommand}
139
119
  */
140
120
  listRoutingControls(args: ListRoutingControlsCommandInput, options?: __HttpHandlerOptions): Promise<ListRoutingControlsCommandOutput>;
141
121
  listRoutingControls(args: ListRoutingControlsCommandInput, cb: (err: any, data?: ListRoutingControlsCommandOutput) => void): void;
142
122
  listRoutingControls(args: ListRoutingControlsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRoutingControlsCommandOutput) => void): void;
143
123
  /**
144
- * @public
145
- * <p>List the safety rules (the assertion rules and gating rules) that you've defined for the routing controls in a control panel.</p>
124
+ * @see {@link ListSafetyRulesCommand}
146
125
  */
147
126
  listSafetyRules(args: ListSafetyRulesCommandInput, options?: __HttpHandlerOptions): Promise<ListSafetyRulesCommandOutput>;
148
127
  listSafetyRules(args: ListSafetyRulesCommandInput, cb: (err: any, data?: ListSafetyRulesCommandOutput) => void): void;
149
128
  listSafetyRules(args: ListSafetyRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSafetyRulesCommandOutput) => void): void;
150
129
  /**
151
- * @public
152
- * <p>Lists the tags for a resource.</p>
130
+ * @see {@link ListTagsForResourceCommand}
153
131
  */
154
132
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
155
133
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
156
134
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
157
135
  /**
158
- * @public
159
- * <p>Adds a tag to a resource.</p>
136
+ * @see {@link TagResourceCommand}
160
137
  */
161
138
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
162
139
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
163
140
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
164
141
  /**
165
- * @public
166
- * <p>Removes a tag from a resource.</p>
142
+ * @see {@link UntagResourceCommand}
167
143
  */
168
144
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
169
145
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
170
146
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
171
147
  /**
172
- * @public
173
- * <p>Updates a control panel. The only update you can make to a control panel is to change the name of the control panel.</p>
148
+ * @see {@link UpdateControlPanelCommand}
174
149
  */
175
150
  updateControlPanel(args: UpdateControlPanelCommandInput, options?: __HttpHandlerOptions): Promise<UpdateControlPanelCommandOutput>;
176
151
  updateControlPanel(args: UpdateControlPanelCommandInput, cb: (err: any, data?: UpdateControlPanelCommandOutput) => void): void;
177
152
  updateControlPanel(args: UpdateControlPanelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateControlPanelCommandOutput) => void): void;
178
153
  /**
179
- * @public
180
- * <p>Updates a routing control. You can only update the name of the routing control. To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.</p>
154
+ * @see {@link UpdateRoutingControlCommand}
181
155
  */
182
156
  updateRoutingControl(args: UpdateRoutingControlCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRoutingControlCommandOutput>;
183
157
  updateRoutingControl(args: UpdateRoutingControlCommandInput, cb: (err: any, data?: UpdateRoutingControlCommandOutput) => void): void;
184
158
  updateRoutingControl(args: UpdateRoutingControlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRoutingControlCommandOutput) => void): void;
185
159
  /**
186
- * @public
187
- * <p>Update a safety rule (an assertion rule or gating rule). You can only update the name and the waiting period for a safety rule. To make other updates, delete the safety rule and create a new one.</p>
160
+ * @see {@link UpdateSafetyRuleCommand}
188
161
  */
189
162
  updateSafetyRule(args: UpdateSafetyRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSafetyRuleCommandOutput>;
190
163
  updateSafetyRule(args: UpdateSafetyRuleCommandInput, cb: (err: any, data?: UpdateSafetyRuleCommandOutput) => void): void;
191
164
  updateSafetyRule(args: UpdateSafetyRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSafetyRuleCommandOutput) => void): void;
192
165
  }
166
+ /**
167
+ * @public
168
+ * <p>Recovery Control Configuration API Reference for Amazon Route 53 Application Recovery Controller</p>
169
+ */
170
+ export declare class Route53RecoveryControlConfig extends Route53RecoveryControlConfigClient implements Route53RecoveryControlConfig {
171
+ }
@@ -92,7 +92,7 @@ import {
92
92
  UpdateSafetyRuleCommandOutput,
93
93
  } from "./commands/UpdateSafetyRuleCommand";
94
94
  import { Route53RecoveryControlConfigClient } from "./Route53RecoveryControlConfigClient";
95
- export declare class Route53RecoveryControlConfig extends Route53RecoveryControlConfigClient {
95
+ export interface Route53RecoveryControlConfig {
96
96
  createCluster(
97
97
  args: CreateClusterCommandInput,
98
98
  options?: __HttpHandlerOptions
@@ -399,3 +399,6 @@ export declare class Route53RecoveryControlConfig extends Route53RecoveryControl
399
399
  cb: (err: any, data?: UpdateSafetyRuleCommandOutput) => void
400
400
  ): void;
401
401
  }
402
+ export declare class Route53RecoveryControlConfig
403
+ extends Route53RecoveryControlConfigClient
404
+ implements Route53RecoveryControlConfig {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-route53-recovery-control-config",
3
3
  "description": "AWS SDK for JavaScript Route53 Recovery Control Config Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",