@aws-sdk/client-route53-recovery-readiness 3.183.0 → 3.186.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 (55) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/Route53RecoveryReadiness.js +137 -130
  4. package/dist-es/Route53RecoveryReadinessClient.js +28 -22
  5. package/dist-es/commands/CreateCellCommand.js +28 -21
  6. package/dist-es/commands/CreateCrossAccountAuthorizationCommand.js +28 -21
  7. package/dist-es/commands/CreateReadinessCheckCommand.js +28 -21
  8. package/dist-es/commands/CreateRecoveryGroupCommand.js +28 -21
  9. package/dist-es/commands/CreateResourceSetCommand.js +28 -21
  10. package/dist-es/commands/DeleteCellCommand.js +29 -22
  11. package/dist-es/commands/DeleteCrossAccountAuthorizationCommand.js +28 -21
  12. package/dist-es/commands/DeleteReadinessCheckCommand.js +29 -22
  13. package/dist-es/commands/DeleteRecoveryGroupCommand.js +29 -22
  14. package/dist-es/commands/DeleteResourceSetCommand.js +29 -22
  15. package/dist-es/commands/GetArchitectureRecommendationsCommand.js +28 -21
  16. package/dist-es/commands/GetCellCommand.js +28 -21
  17. package/dist-es/commands/GetCellReadinessSummaryCommand.js +28 -21
  18. package/dist-es/commands/GetReadinessCheckCommand.js +28 -21
  19. package/dist-es/commands/GetReadinessCheckResourceStatusCommand.js +28 -21
  20. package/dist-es/commands/GetReadinessCheckStatusCommand.js +28 -21
  21. package/dist-es/commands/GetRecoveryGroupCommand.js +28 -21
  22. package/dist-es/commands/GetRecoveryGroupReadinessSummaryCommand.js +28 -21
  23. package/dist-es/commands/GetResourceSetCommand.js +28 -21
  24. package/dist-es/commands/ListCellsCommand.js +28 -21
  25. package/dist-es/commands/ListCrossAccountAuthorizationsCommand.js +28 -21
  26. package/dist-es/commands/ListReadinessChecksCommand.js +28 -21
  27. package/dist-es/commands/ListRecoveryGroupsCommand.js +28 -21
  28. package/dist-es/commands/ListResourceSetsCommand.js +28 -21
  29. package/dist-es/commands/ListRulesCommand.js +28 -21
  30. package/dist-es/commands/ListTagsForResourcesCommand.js +28 -21
  31. package/dist-es/commands/TagResourceCommand.js +28 -21
  32. package/dist-es/commands/UntagResourceCommand.js +29 -22
  33. package/dist-es/commands/UpdateCellCommand.js +28 -21
  34. package/dist-es/commands/UpdateReadinessCheckCommand.js +28 -21
  35. package/dist-es/commands/UpdateRecoveryGroupCommand.js +28 -21
  36. package/dist-es/commands/UpdateResourceSetCommand.js +28 -21
  37. package/dist-es/endpoints.js +8 -8
  38. package/dist-es/models/Route53RecoveryReadinessServiceException.js +10 -5
  39. package/dist-es/models/models_0.js +147 -294
  40. package/dist-es/pagination/GetCellReadinessSummaryPaginator.js +68 -25
  41. package/dist-es/pagination/GetReadinessCheckResourceStatusPaginator.js +68 -25
  42. package/dist-es/pagination/GetReadinessCheckStatusPaginator.js +68 -25
  43. package/dist-es/pagination/GetRecoveryGroupReadinessSummaryPaginator.js +68 -25
  44. package/dist-es/pagination/ListCellsPaginator.js +68 -25
  45. package/dist-es/pagination/ListCrossAccountAuthorizationsPaginator.js +68 -25
  46. package/dist-es/pagination/ListReadinessChecksPaginator.js +68 -25
  47. package/dist-es/pagination/ListRecoveryGroupsPaginator.js +68 -25
  48. package/dist-es/pagination/ListResourceSetsPaginator.js +68 -25
  49. package/dist-es/pagination/ListRulesPaginator.js +68 -25
  50. package/dist-es/protocols/Aws_restJson1.js +3334 -2337
  51. package/dist-es/runtimeConfig.browser.js +12 -26
  52. package/dist-es/runtimeConfig.js +12 -30
  53. package/dist-es/runtimeConfig.native.js +5 -8
  54. package/dist-es/runtimeConfig.shared.js +11 -8
  55. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-route53-recovery-readiness
9
+
10
+
11
+
12
+
13
+
14
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-route53-recovery-readiness
@@ -2668,10 +2668,10 @@ const deserializeAws_restJson1TargetResource = (output, context) => {
2668
2668
  };
2669
2669
  };
2670
2670
  const deserializeMetadata = (output) => {
2671
- var _a;
2671
+ var _a, _b;
2672
2672
  return ({
2673
2673
  httpStatusCode: output.statusCode,
2674
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
2674
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
2675
2675
  extendedRequestId: output.headers["x-amz-id-2"],
2676
2676
  cfId: output.headers["x-amz-cf-id"],
2677
2677
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CreateCellCommand } from "./commands/CreateCellCommand";
2
3
  import { CreateCrossAccountAuthorizationCommand, } from "./commands/CreateCrossAccountAuthorizationCommand";
3
4
  import { CreateReadinessCheckCommand, } from "./commands/CreateReadinessCheckCommand";
@@ -31,453 +32,459 @@ import { UpdateReadinessCheckCommand, } from "./commands/UpdateReadinessCheckCom
31
32
  import { UpdateRecoveryGroupCommand, } from "./commands/UpdateRecoveryGroupCommand";
32
33
  import { UpdateResourceSetCommand, } from "./commands/UpdateResourceSetCommand";
33
34
  import { Route53RecoveryReadinessClient } from "./Route53RecoveryReadinessClient";
34
- export class Route53RecoveryReadiness extends Route53RecoveryReadinessClient {
35
- createCell(args, optionsOrCb, cb) {
36
- const command = new CreateCellCommand(args);
35
+ var Route53RecoveryReadiness = (function (_super) {
36
+ __extends(Route53RecoveryReadiness, _super);
37
+ function Route53RecoveryReadiness() {
38
+ return _super !== null && _super.apply(this, arguments) || this;
39
+ }
40
+ Route53RecoveryReadiness.prototype.createCell = function (args, optionsOrCb, cb) {
41
+ var command = new CreateCellCommand(args);
37
42
  if (typeof optionsOrCb === "function") {
38
43
  this.send(command, optionsOrCb);
39
44
  }
40
45
  else if (typeof cb === "function") {
41
46
  if (typeof optionsOrCb !== "object")
42
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
47
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
43
48
  this.send(command, optionsOrCb || {}, cb);
44
49
  }
45
50
  else {
46
51
  return this.send(command, optionsOrCb);
47
52
  }
48
- }
49
- createCrossAccountAuthorization(args, optionsOrCb, cb) {
50
- const command = new CreateCrossAccountAuthorizationCommand(args);
53
+ };
54
+ Route53RecoveryReadiness.prototype.createCrossAccountAuthorization = function (args, optionsOrCb, cb) {
55
+ var command = new CreateCrossAccountAuthorizationCommand(args);
51
56
  if (typeof optionsOrCb === "function") {
52
57
  this.send(command, optionsOrCb);
53
58
  }
54
59
  else if (typeof cb === "function") {
55
60
  if (typeof optionsOrCb !== "object")
56
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
61
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
57
62
  this.send(command, optionsOrCb || {}, cb);
58
63
  }
59
64
  else {
60
65
  return this.send(command, optionsOrCb);
61
66
  }
62
- }
63
- createReadinessCheck(args, optionsOrCb, cb) {
64
- const command = new CreateReadinessCheckCommand(args);
67
+ };
68
+ Route53RecoveryReadiness.prototype.createReadinessCheck = function (args, optionsOrCb, cb) {
69
+ var command = new CreateReadinessCheckCommand(args);
65
70
  if (typeof optionsOrCb === "function") {
66
71
  this.send(command, optionsOrCb);
67
72
  }
68
73
  else if (typeof cb === "function") {
69
74
  if (typeof optionsOrCb !== "object")
70
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
75
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
71
76
  this.send(command, optionsOrCb || {}, cb);
72
77
  }
73
78
  else {
74
79
  return this.send(command, optionsOrCb);
75
80
  }
76
- }
77
- createRecoveryGroup(args, optionsOrCb, cb) {
78
- const command = new CreateRecoveryGroupCommand(args);
81
+ };
82
+ Route53RecoveryReadiness.prototype.createRecoveryGroup = function (args, optionsOrCb, cb) {
83
+ var command = new CreateRecoveryGroupCommand(args);
79
84
  if (typeof optionsOrCb === "function") {
80
85
  this.send(command, optionsOrCb);
81
86
  }
82
87
  else if (typeof cb === "function") {
83
88
  if (typeof optionsOrCb !== "object")
84
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
89
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
85
90
  this.send(command, optionsOrCb || {}, cb);
86
91
  }
87
92
  else {
88
93
  return this.send(command, optionsOrCb);
89
94
  }
90
- }
91
- createResourceSet(args, optionsOrCb, cb) {
92
- const command = new CreateResourceSetCommand(args);
95
+ };
96
+ Route53RecoveryReadiness.prototype.createResourceSet = function (args, optionsOrCb, cb) {
97
+ var command = new CreateResourceSetCommand(args);
93
98
  if (typeof optionsOrCb === "function") {
94
99
  this.send(command, optionsOrCb);
95
100
  }
96
101
  else if (typeof cb === "function") {
97
102
  if (typeof optionsOrCb !== "object")
98
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
103
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
99
104
  this.send(command, optionsOrCb || {}, cb);
100
105
  }
101
106
  else {
102
107
  return this.send(command, optionsOrCb);
103
108
  }
104
- }
105
- deleteCell(args, optionsOrCb, cb) {
106
- const command = new DeleteCellCommand(args);
109
+ };
110
+ Route53RecoveryReadiness.prototype.deleteCell = function (args, optionsOrCb, cb) {
111
+ var command = new DeleteCellCommand(args);
107
112
  if (typeof optionsOrCb === "function") {
108
113
  this.send(command, optionsOrCb);
109
114
  }
110
115
  else if (typeof cb === "function") {
111
116
  if (typeof optionsOrCb !== "object")
112
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
117
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
113
118
  this.send(command, optionsOrCb || {}, cb);
114
119
  }
115
120
  else {
116
121
  return this.send(command, optionsOrCb);
117
122
  }
118
- }
119
- deleteCrossAccountAuthorization(args, optionsOrCb, cb) {
120
- const command = new DeleteCrossAccountAuthorizationCommand(args);
123
+ };
124
+ Route53RecoveryReadiness.prototype.deleteCrossAccountAuthorization = function (args, optionsOrCb, cb) {
125
+ var command = new DeleteCrossAccountAuthorizationCommand(args);
121
126
  if (typeof optionsOrCb === "function") {
122
127
  this.send(command, optionsOrCb);
123
128
  }
124
129
  else if (typeof cb === "function") {
125
130
  if (typeof optionsOrCb !== "object")
126
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
131
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
127
132
  this.send(command, optionsOrCb || {}, cb);
128
133
  }
129
134
  else {
130
135
  return this.send(command, optionsOrCb);
131
136
  }
132
- }
133
- deleteReadinessCheck(args, optionsOrCb, cb) {
134
- const command = new DeleteReadinessCheckCommand(args);
137
+ };
138
+ Route53RecoveryReadiness.prototype.deleteReadinessCheck = function (args, optionsOrCb, cb) {
139
+ var command = new DeleteReadinessCheckCommand(args);
135
140
  if (typeof optionsOrCb === "function") {
136
141
  this.send(command, optionsOrCb);
137
142
  }
138
143
  else if (typeof cb === "function") {
139
144
  if (typeof optionsOrCb !== "object")
140
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
145
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
141
146
  this.send(command, optionsOrCb || {}, cb);
142
147
  }
143
148
  else {
144
149
  return this.send(command, optionsOrCb);
145
150
  }
146
- }
147
- deleteRecoveryGroup(args, optionsOrCb, cb) {
148
- const command = new DeleteRecoveryGroupCommand(args);
151
+ };
152
+ Route53RecoveryReadiness.prototype.deleteRecoveryGroup = function (args, optionsOrCb, cb) {
153
+ var command = new DeleteRecoveryGroupCommand(args);
149
154
  if (typeof optionsOrCb === "function") {
150
155
  this.send(command, optionsOrCb);
151
156
  }
152
157
  else if (typeof cb === "function") {
153
158
  if (typeof optionsOrCb !== "object")
154
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
159
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
155
160
  this.send(command, optionsOrCb || {}, cb);
156
161
  }
157
162
  else {
158
163
  return this.send(command, optionsOrCb);
159
164
  }
160
- }
161
- deleteResourceSet(args, optionsOrCb, cb) {
162
- const command = new DeleteResourceSetCommand(args);
165
+ };
166
+ Route53RecoveryReadiness.prototype.deleteResourceSet = function (args, optionsOrCb, cb) {
167
+ var command = new DeleteResourceSetCommand(args);
163
168
  if (typeof optionsOrCb === "function") {
164
169
  this.send(command, optionsOrCb);
165
170
  }
166
171
  else if (typeof cb === "function") {
167
172
  if (typeof optionsOrCb !== "object")
168
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
173
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
169
174
  this.send(command, optionsOrCb || {}, cb);
170
175
  }
171
176
  else {
172
177
  return this.send(command, optionsOrCb);
173
178
  }
174
- }
175
- getArchitectureRecommendations(args, optionsOrCb, cb) {
176
- const command = new GetArchitectureRecommendationsCommand(args);
179
+ };
180
+ Route53RecoveryReadiness.prototype.getArchitectureRecommendations = function (args, optionsOrCb, cb) {
181
+ var command = new GetArchitectureRecommendationsCommand(args);
177
182
  if (typeof optionsOrCb === "function") {
178
183
  this.send(command, optionsOrCb);
179
184
  }
180
185
  else if (typeof cb === "function") {
181
186
  if (typeof optionsOrCb !== "object")
182
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
187
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
183
188
  this.send(command, optionsOrCb || {}, cb);
184
189
  }
185
190
  else {
186
191
  return this.send(command, optionsOrCb);
187
192
  }
188
- }
189
- getCell(args, optionsOrCb, cb) {
190
- const command = new GetCellCommand(args);
193
+ };
194
+ Route53RecoveryReadiness.prototype.getCell = function (args, optionsOrCb, cb) {
195
+ var command = new GetCellCommand(args);
191
196
  if (typeof optionsOrCb === "function") {
192
197
  this.send(command, optionsOrCb);
193
198
  }
194
199
  else if (typeof cb === "function") {
195
200
  if (typeof optionsOrCb !== "object")
196
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
201
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
197
202
  this.send(command, optionsOrCb || {}, cb);
198
203
  }
199
204
  else {
200
205
  return this.send(command, optionsOrCb);
201
206
  }
202
- }
203
- getCellReadinessSummary(args, optionsOrCb, cb) {
204
- const command = new GetCellReadinessSummaryCommand(args);
207
+ };
208
+ Route53RecoveryReadiness.prototype.getCellReadinessSummary = function (args, optionsOrCb, cb) {
209
+ var command = new GetCellReadinessSummaryCommand(args);
205
210
  if (typeof optionsOrCb === "function") {
206
211
  this.send(command, optionsOrCb);
207
212
  }
208
213
  else if (typeof cb === "function") {
209
214
  if (typeof optionsOrCb !== "object")
210
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
215
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
211
216
  this.send(command, optionsOrCb || {}, cb);
212
217
  }
213
218
  else {
214
219
  return this.send(command, optionsOrCb);
215
220
  }
216
- }
217
- getReadinessCheck(args, optionsOrCb, cb) {
218
- const command = new GetReadinessCheckCommand(args);
221
+ };
222
+ Route53RecoveryReadiness.prototype.getReadinessCheck = function (args, optionsOrCb, cb) {
223
+ var command = new GetReadinessCheckCommand(args);
219
224
  if (typeof optionsOrCb === "function") {
220
225
  this.send(command, optionsOrCb);
221
226
  }
222
227
  else if (typeof cb === "function") {
223
228
  if (typeof optionsOrCb !== "object")
224
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
229
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
225
230
  this.send(command, optionsOrCb || {}, cb);
226
231
  }
227
232
  else {
228
233
  return this.send(command, optionsOrCb);
229
234
  }
230
- }
231
- getReadinessCheckResourceStatus(args, optionsOrCb, cb) {
232
- const command = new GetReadinessCheckResourceStatusCommand(args);
235
+ };
236
+ Route53RecoveryReadiness.prototype.getReadinessCheckResourceStatus = function (args, optionsOrCb, cb) {
237
+ var command = new GetReadinessCheckResourceStatusCommand(args);
233
238
  if (typeof optionsOrCb === "function") {
234
239
  this.send(command, optionsOrCb);
235
240
  }
236
241
  else if (typeof cb === "function") {
237
242
  if (typeof optionsOrCb !== "object")
238
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
243
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
239
244
  this.send(command, optionsOrCb || {}, cb);
240
245
  }
241
246
  else {
242
247
  return this.send(command, optionsOrCb);
243
248
  }
244
- }
245
- getReadinessCheckStatus(args, optionsOrCb, cb) {
246
- const command = new GetReadinessCheckStatusCommand(args);
249
+ };
250
+ Route53RecoveryReadiness.prototype.getReadinessCheckStatus = function (args, optionsOrCb, cb) {
251
+ var command = new GetReadinessCheckStatusCommand(args);
247
252
  if (typeof optionsOrCb === "function") {
248
253
  this.send(command, optionsOrCb);
249
254
  }
250
255
  else if (typeof cb === "function") {
251
256
  if (typeof optionsOrCb !== "object")
252
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
257
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
253
258
  this.send(command, optionsOrCb || {}, cb);
254
259
  }
255
260
  else {
256
261
  return this.send(command, optionsOrCb);
257
262
  }
258
- }
259
- getRecoveryGroup(args, optionsOrCb, cb) {
260
- const command = new GetRecoveryGroupCommand(args);
263
+ };
264
+ Route53RecoveryReadiness.prototype.getRecoveryGroup = function (args, optionsOrCb, cb) {
265
+ var command = new GetRecoveryGroupCommand(args);
261
266
  if (typeof optionsOrCb === "function") {
262
267
  this.send(command, optionsOrCb);
263
268
  }
264
269
  else if (typeof cb === "function") {
265
270
  if (typeof optionsOrCb !== "object")
266
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
271
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
267
272
  this.send(command, optionsOrCb || {}, cb);
268
273
  }
269
274
  else {
270
275
  return this.send(command, optionsOrCb);
271
276
  }
272
- }
273
- getRecoveryGroupReadinessSummary(args, optionsOrCb, cb) {
274
- const command = new GetRecoveryGroupReadinessSummaryCommand(args);
277
+ };
278
+ Route53RecoveryReadiness.prototype.getRecoveryGroupReadinessSummary = function (args, optionsOrCb, cb) {
279
+ var command = new GetRecoveryGroupReadinessSummaryCommand(args);
275
280
  if (typeof optionsOrCb === "function") {
276
281
  this.send(command, optionsOrCb);
277
282
  }
278
283
  else if (typeof cb === "function") {
279
284
  if (typeof optionsOrCb !== "object")
280
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
285
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
281
286
  this.send(command, optionsOrCb || {}, cb);
282
287
  }
283
288
  else {
284
289
  return this.send(command, optionsOrCb);
285
290
  }
286
- }
287
- getResourceSet(args, optionsOrCb, cb) {
288
- const command = new GetResourceSetCommand(args);
291
+ };
292
+ Route53RecoveryReadiness.prototype.getResourceSet = function (args, optionsOrCb, cb) {
293
+ var command = new GetResourceSetCommand(args);
289
294
  if (typeof optionsOrCb === "function") {
290
295
  this.send(command, optionsOrCb);
291
296
  }
292
297
  else if (typeof cb === "function") {
293
298
  if (typeof optionsOrCb !== "object")
294
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
299
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
295
300
  this.send(command, optionsOrCb || {}, cb);
296
301
  }
297
302
  else {
298
303
  return this.send(command, optionsOrCb);
299
304
  }
300
- }
301
- listCells(args, optionsOrCb, cb) {
302
- const command = new ListCellsCommand(args);
305
+ };
306
+ Route53RecoveryReadiness.prototype.listCells = function (args, optionsOrCb, cb) {
307
+ var command = new ListCellsCommand(args);
303
308
  if (typeof optionsOrCb === "function") {
304
309
  this.send(command, optionsOrCb);
305
310
  }
306
311
  else if (typeof cb === "function") {
307
312
  if (typeof optionsOrCb !== "object")
308
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
313
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
309
314
  this.send(command, optionsOrCb || {}, cb);
310
315
  }
311
316
  else {
312
317
  return this.send(command, optionsOrCb);
313
318
  }
314
- }
315
- listCrossAccountAuthorizations(args, optionsOrCb, cb) {
316
- const command = new ListCrossAccountAuthorizationsCommand(args);
319
+ };
320
+ Route53RecoveryReadiness.prototype.listCrossAccountAuthorizations = function (args, optionsOrCb, cb) {
321
+ var command = new ListCrossAccountAuthorizationsCommand(args);
317
322
  if (typeof optionsOrCb === "function") {
318
323
  this.send(command, optionsOrCb);
319
324
  }
320
325
  else if (typeof cb === "function") {
321
326
  if (typeof optionsOrCb !== "object")
322
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
327
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
323
328
  this.send(command, optionsOrCb || {}, cb);
324
329
  }
325
330
  else {
326
331
  return this.send(command, optionsOrCb);
327
332
  }
328
- }
329
- listReadinessChecks(args, optionsOrCb, cb) {
330
- const command = new ListReadinessChecksCommand(args);
333
+ };
334
+ Route53RecoveryReadiness.prototype.listReadinessChecks = function (args, optionsOrCb, cb) {
335
+ var command = new ListReadinessChecksCommand(args);
331
336
  if (typeof optionsOrCb === "function") {
332
337
  this.send(command, optionsOrCb);
333
338
  }
334
339
  else if (typeof cb === "function") {
335
340
  if (typeof optionsOrCb !== "object")
336
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
341
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
337
342
  this.send(command, optionsOrCb || {}, cb);
338
343
  }
339
344
  else {
340
345
  return this.send(command, optionsOrCb);
341
346
  }
342
- }
343
- listRecoveryGroups(args, optionsOrCb, cb) {
344
- const command = new ListRecoveryGroupsCommand(args);
347
+ };
348
+ Route53RecoveryReadiness.prototype.listRecoveryGroups = function (args, optionsOrCb, cb) {
349
+ var command = new ListRecoveryGroupsCommand(args);
345
350
  if (typeof optionsOrCb === "function") {
346
351
  this.send(command, optionsOrCb);
347
352
  }
348
353
  else if (typeof cb === "function") {
349
354
  if (typeof optionsOrCb !== "object")
350
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
355
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
351
356
  this.send(command, optionsOrCb || {}, cb);
352
357
  }
353
358
  else {
354
359
  return this.send(command, optionsOrCb);
355
360
  }
356
- }
357
- listResourceSets(args, optionsOrCb, cb) {
358
- const command = new ListResourceSetsCommand(args);
361
+ };
362
+ Route53RecoveryReadiness.prototype.listResourceSets = function (args, optionsOrCb, cb) {
363
+ var command = new ListResourceSetsCommand(args);
359
364
  if (typeof optionsOrCb === "function") {
360
365
  this.send(command, optionsOrCb);
361
366
  }
362
367
  else if (typeof cb === "function") {
363
368
  if (typeof optionsOrCb !== "object")
364
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
369
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
365
370
  this.send(command, optionsOrCb || {}, cb);
366
371
  }
367
372
  else {
368
373
  return this.send(command, optionsOrCb);
369
374
  }
370
- }
371
- listRules(args, optionsOrCb, cb) {
372
- const command = new ListRulesCommand(args);
375
+ };
376
+ Route53RecoveryReadiness.prototype.listRules = function (args, optionsOrCb, cb) {
377
+ var command = new ListRulesCommand(args);
373
378
  if (typeof optionsOrCb === "function") {
374
379
  this.send(command, optionsOrCb);
375
380
  }
376
381
  else if (typeof cb === "function") {
377
382
  if (typeof optionsOrCb !== "object")
378
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
383
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
379
384
  this.send(command, optionsOrCb || {}, cb);
380
385
  }
381
386
  else {
382
387
  return this.send(command, optionsOrCb);
383
388
  }
384
- }
385
- listTagsForResources(args, optionsOrCb, cb) {
386
- const command = new ListTagsForResourcesCommand(args);
389
+ };
390
+ Route53RecoveryReadiness.prototype.listTagsForResources = function (args, optionsOrCb, cb) {
391
+ var command = new ListTagsForResourcesCommand(args);
387
392
  if (typeof optionsOrCb === "function") {
388
393
  this.send(command, optionsOrCb);
389
394
  }
390
395
  else if (typeof cb === "function") {
391
396
  if (typeof optionsOrCb !== "object")
392
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
397
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
393
398
  this.send(command, optionsOrCb || {}, cb);
394
399
  }
395
400
  else {
396
401
  return this.send(command, optionsOrCb);
397
402
  }
398
- }
399
- tagResource(args, optionsOrCb, cb) {
400
- const command = new TagResourceCommand(args);
403
+ };
404
+ Route53RecoveryReadiness.prototype.tagResource = function (args, optionsOrCb, cb) {
405
+ var command = new TagResourceCommand(args);
401
406
  if (typeof optionsOrCb === "function") {
402
407
  this.send(command, optionsOrCb);
403
408
  }
404
409
  else if (typeof cb === "function") {
405
410
  if (typeof optionsOrCb !== "object")
406
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
411
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
407
412
  this.send(command, optionsOrCb || {}, cb);
408
413
  }
409
414
  else {
410
415
  return this.send(command, optionsOrCb);
411
416
  }
412
- }
413
- untagResource(args, optionsOrCb, cb) {
414
- const command = new UntagResourceCommand(args);
417
+ };
418
+ Route53RecoveryReadiness.prototype.untagResource = function (args, optionsOrCb, cb) {
419
+ var command = new UntagResourceCommand(args);
415
420
  if (typeof optionsOrCb === "function") {
416
421
  this.send(command, optionsOrCb);
417
422
  }
418
423
  else if (typeof cb === "function") {
419
424
  if (typeof optionsOrCb !== "object")
420
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
425
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
421
426
  this.send(command, optionsOrCb || {}, cb);
422
427
  }
423
428
  else {
424
429
  return this.send(command, optionsOrCb);
425
430
  }
426
- }
427
- updateCell(args, optionsOrCb, cb) {
428
- const command = new UpdateCellCommand(args);
431
+ };
432
+ Route53RecoveryReadiness.prototype.updateCell = function (args, optionsOrCb, cb) {
433
+ var command = new UpdateCellCommand(args);
429
434
  if (typeof optionsOrCb === "function") {
430
435
  this.send(command, optionsOrCb);
431
436
  }
432
437
  else if (typeof cb === "function") {
433
438
  if (typeof optionsOrCb !== "object")
434
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
439
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
435
440
  this.send(command, optionsOrCb || {}, cb);
436
441
  }
437
442
  else {
438
443
  return this.send(command, optionsOrCb);
439
444
  }
440
- }
441
- updateReadinessCheck(args, optionsOrCb, cb) {
442
- const command = new UpdateReadinessCheckCommand(args);
445
+ };
446
+ Route53RecoveryReadiness.prototype.updateReadinessCheck = function (args, optionsOrCb, cb) {
447
+ var command = new UpdateReadinessCheckCommand(args);
443
448
  if (typeof optionsOrCb === "function") {
444
449
  this.send(command, optionsOrCb);
445
450
  }
446
451
  else if (typeof cb === "function") {
447
452
  if (typeof optionsOrCb !== "object")
448
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
453
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
449
454
  this.send(command, optionsOrCb || {}, cb);
450
455
  }
451
456
  else {
452
457
  return this.send(command, optionsOrCb);
453
458
  }
454
- }
455
- updateRecoveryGroup(args, optionsOrCb, cb) {
456
- const command = new UpdateRecoveryGroupCommand(args);
459
+ };
460
+ Route53RecoveryReadiness.prototype.updateRecoveryGroup = function (args, optionsOrCb, cb) {
461
+ var command = new UpdateRecoveryGroupCommand(args);
457
462
  if (typeof optionsOrCb === "function") {
458
463
  this.send(command, optionsOrCb);
459
464
  }
460
465
  else if (typeof cb === "function") {
461
466
  if (typeof optionsOrCb !== "object")
462
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
467
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
463
468
  this.send(command, optionsOrCb || {}, cb);
464
469
  }
465
470
  else {
466
471
  return this.send(command, optionsOrCb);
467
472
  }
468
- }
469
- updateResourceSet(args, optionsOrCb, cb) {
470
- const command = new UpdateResourceSetCommand(args);
473
+ };
474
+ Route53RecoveryReadiness.prototype.updateResourceSet = function (args, optionsOrCb, cb) {
475
+ var command = new UpdateResourceSetCommand(args);
471
476
  if (typeof optionsOrCb === "function") {
472
477
  this.send(command, optionsOrCb);
473
478
  }
474
479
  else if (typeof cb === "function") {
475
480
  if (typeof optionsOrCb !== "object")
476
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
481
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
477
482
  this.send(command, optionsOrCb || {}, cb);
478
483
  }
479
484
  else {
480
485
  return this.send(command, optionsOrCb);
481
486
  }
482
- }
483
- }
487
+ };
488
+ return Route53RecoveryReadiness;
489
+ }(Route53RecoveryReadinessClient));
490
+ export { Route53RecoveryReadiness };