@aws-sdk/client-route53-recovery-control-config 3.975.0 → 3.978.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.
package/dist-cjs/index.js CHANGED
@@ -1109,37 +1109,6 @@ class UpdateSafetyRuleCommand extends smithyClient.Command
1109
1109
  .build() {
1110
1110
  }
1111
1111
 
1112
- const commands = {
1113
- CreateClusterCommand,
1114
- CreateControlPanelCommand,
1115
- CreateRoutingControlCommand,
1116
- CreateSafetyRuleCommand,
1117
- DeleteClusterCommand,
1118
- DeleteControlPanelCommand,
1119
- DeleteRoutingControlCommand,
1120
- DeleteSafetyRuleCommand,
1121
- DescribeClusterCommand,
1122
- DescribeControlPanelCommand,
1123
- DescribeRoutingControlCommand,
1124
- DescribeSafetyRuleCommand,
1125
- GetResourcePolicyCommand,
1126
- ListAssociatedRoute53HealthChecksCommand,
1127
- ListClustersCommand,
1128
- ListControlPanelsCommand,
1129
- ListRoutingControlsCommand,
1130
- ListSafetyRulesCommand,
1131
- ListTagsForResourceCommand,
1132
- TagResourceCommand,
1133
- UntagResourceCommand,
1134
- UpdateClusterCommand,
1135
- UpdateControlPanelCommand,
1136
- UpdateRoutingControlCommand,
1137
- UpdateSafetyRuleCommand,
1138
- };
1139
- class Route53RecoveryControlConfig extends Route53RecoveryControlConfigClient {
1140
- }
1141
- smithyClient.createAggregatedClient(commands, Route53RecoveryControlConfig);
1142
-
1143
1112
  const paginateListAssociatedRoute53HealthChecks = core.createPaginator(Route53RecoveryControlConfigClient, ListAssociatedRoute53HealthChecksCommand, "NextToken", "NextToken", "MaxResults");
1144
1113
 
1145
1114
  const paginateListClusters = core.createPaginator(Route53RecoveryControlConfigClient, ListClustersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1384,6 +1353,52 @@ const waitUntilRoutingControlDeleted = async (params, input) => {
1384
1353
  return utilWaiter.checkExceptions(result);
1385
1354
  };
1386
1355
 
1356
+ const commands = {
1357
+ CreateClusterCommand,
1358
+ CreateControlPanelCommand,
1359
+ CreateRoutingControlCommand,
1360
+ CreateSafetyRuleCommand,
1361
+ DeleteClusterCommand,
1362
+ DeleteControlPanelCommand,
1363
+ DeleteRoutingControlCommand,
1364
+ DeleteSafetyRuleCommand,
1365
+ DescribeClusterCommand,
1366
+ DescribeControlPanelCommand,
1367
+ DescribeRoutingControlCommand,
1368
+ DescribeSafetyRuleCommand,
1369
+ GetResourcePolicyCommand,
1370
+ ListAssociatedRoute53HealthChecksCommand,
1371
+ ListClustersCommand,
1372
+ ListControlPanelsCommand,
1373
+ ListRoutingControlsCommand,
1374
+ ListSafetyRulesCommand,
1375
+ ListTagsForResourceCommand,
1376
+ TagResourceCommand,
1377
+ UntagResourceCommand,
1378
+ UpdateClusterCommand,
1379
+ UpdateControlPanelCommand,
1380
+ UpdateRoutingControlCommand,
1381
+ UpdateSafetyRuleCommand,
1382
+ };
1383
+ const paginators = {
1384
+ paginateListAssociatedRoute53HealthChecks,
1385
+ paginateListClusters,
1386
+ paginateListControlPanels,
1387
+ paginateListRoutingControls,
1388
+ paginateListSafetyRules,
1389
+ };
1390
+ const waiters = {
1391
+ waitUntilClusterCreated,
1392
+ waitUntilClusterDeleted,
1393
+ waitUntilControlPanelCreated,
1394
+ waitUntilControlPanelDeleted,
1395
+ waitUntilRoutingControlCreated,
1396
+ waitUntilRoutingControlDeleted,
1397
+ };
1398
+ class Route53RecoveryControlConfig extends Route53RecoveryControlConfigClient {
1399
+ }
1400
+ smithyClient.createAggregatedClient(commands, Route53RecoveryControlConfig, { paginators, waiters });
1401
+
1387
1402
  const NetworkType = {
1388
1403
  DUALSTACK: "DUALSTACK",
1389
1404
  IPV4: "IPV4",
@@ -24,7 +24,18 @@ import { UpdateClusterCommand, } from "./commands/UpdateClusterCommand";
24
24
  import { UpdateControlPanelCommand, } from "./commands/UpdateControlPanelCommand";
25
25
  import { UpdateRoutingControlCommand, } from "./commands/UpdateRoutingControlCommand";
26
26
  import { UpdateSafetyRuleCommand, } from "./commands/UpdateSafetyRuleCommand";
27
+ import { paginateListAssociatedRoute53HealthChecks } from "./pagination/ListAssociatedRoute53HealthChecksPaginator";
28
+ import { paginateListClusters } from "./pagination/ListClustersPaginator";
29
+ import { paginateListControlPanels } from "./pagination/ListControlPanelsPaginator";
30
+ import { paginateListRoutingControls } from "./pagination/ListRoutingControlsPaginator";
31
+ import { paginateListSafetyRules } from "./pagination/ListSafetyRulesPaginator";
27
32
  import { Route53RecoveryControlConfigClient } from "./Route53RecoveryControlConfigClient";
33
+ import { waitUntilClusterCreated } from "./waiters/waitForClusterCreated";
34
+ import { waitUntilClusterDeleted } from "./waiters/waitForClusterDeleted";
35
+ import { waitUntilControlPanelCreated } from "./waiters/waitForControlPanelCreated";
36
+ import { waitUntilControlPanelDeleted } from "./waiters/waitForControlPanelDeleted";
37
+ import { waitUntilRoutingControlCreated } from "./waiters/waitForRoutingControlCreated";
38
+ import { waitUntilRoutingControlDeleted } from "./waiters/waitForRoutingControlDeleted";
28
39
  const commands = {
29
40
  CreateClusterCommand,
30
41
  CreateControlPanelCommand,
@@ -52,6 +63,21 @@ const commands = {
52
63
  UpdateRoutingControlCommand,
53
64
  UpdateSafetyRuleCommand,
54
65
  };
66
+ const paginators = {
67
+ paginateListAssociatedRoute53HealthChecks,
68
+ paginateListClusters,
69
+ paginateListControlPanels,
70
+ paginateListRoutingControls,
71
+ paginateListSafetyRules,
72
+ };
73
+ const waiters = {
74
+ waitUntilClusterCreated,
75
+ waitUntilClusterDeleted,
76
+ waitUntilControlPanelCreated,
77
+ waitUntilControlPanelDeleted,
78
+ waitUntilRoutingControlCreated,
79
+ waitUntilRoutingControlDeleted,
80
+ };
55
81
  export class Route53RecoveryControlConfig extends Route53RecoveryControlConfigClient {
56
82
  }
57
- createAggregatedClient(commands, Route53RecoveryControlConfig);
83
+ createAggregatedClient(commands, Route53RecoveryControlConfig, { paginators, waiters });
@@ -1,4 +1,5 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
2
+ import type { WaiterResult } from "@smithy/util-waiter";
2
3
  import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
3
4
  import { CreateControlPanelCommandInput, CreateControlPanelCommandOutput } from "./commands/CreateControlPanelCommand";
4
5
  import { CreateRoutingControlCommandInput, CreateRoutingControlCommandOutput } from "./commands/CreateRoutingControlCommand";
@@ -180,6 +181,77 @@ export interface Route53RecoveryControlConfig {
180
181
  updateSafetyRule(args: UpdateSafetyRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSafetyRuleCommandOutput>;
181
182
  updateSafetyRule(args: UpdateSafetyRuleCommandInput, cb: (err: any, data?: UpdateSafetyRuleCommandOutput) => void): void;
182
183
  updateSafetyRule(args: UpdateSafetyRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSafetyRuleCommandOutput) => void): void;
184
+ /**
185
+ * @see {@link ListAssociatedRoute53HealthChecksCommand}
186
+ * @param args - command input.
187
+ * @param paginationConfig - optional pagination config.
188
+ * @returns AsyncIterable of {@link ListAssociatedRoute53HealthChecksCommandOutput}.
189
+ */
190
+ paginateListAssociatedRoute53HealthChecks(args: ListAssociatedRoute53HealthChecksCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAssociatedRoute53HealthChecksCommandOutput>;
191
+ /**
192
+ * @see {@link ListClustersCommand}
193
+ * @param args - command input.
194
+ * @param paginationConfig - optional pagination config.
195
+ * @returns AsyncIterable of {@link ListClustersCommandOutput}.
196
+ */
197
+ paginateListClusters(args?: ListClustersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListClustersCommandOutput>;
198
+ /**
199
+ * @see {@link ListControlPanelsCommand}
200
+ * @param args - command input.
201
+ * @param paginationConfig - optional pagination config.
202
+ * @returns AsyncIterable of {@link ListControlPanelsCommandOutput}.
203
+ */
204
+ paginateListControlPanels(args?: ListControlPanelsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListControlPanelsCommandOutput>;
205
+ /**
206
+ * @see {@link ListRoutingControlsCommand}
207
+ * @param args - command input.
208
+ * @param paginationConfig - optional pagination config.
209
+ * @returns AsyncIterable of {@link ListRoutingControlsCommandOutput}.
210
+ */
211
+ paginateListRoutingControls(args: ListRoutingControlsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRoutingControlsCommandOutput>;
212
+ /**
213
+ * @see {@link ListSafetyRulesCommand}
214
+ * @param args - command input.
215
+ * @param paginationConfig - optional pagination config.
216
+ * @returns AsyncIterable of {@link ListSafetyRulesCommandOutput}.
217
+ */
218
+ paginateListSafetyRules(args: ListSafetyRulesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSafetyRulesCommandOutput>;
219
+ /**
220
+ * @see {@link DescribeClusterCommand}
221
+ * @param args - command input.
222
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
223
+ */
224
+ waitUntilClusterCreated(args: DescribeClusterCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Route53RecoveryControlConfig>, "client">): Promise<WaiterResult>;
225
+ /**
226
+ * @see {@link DescribeClusterCommand}
227
+ * @param args - command input.
228
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
229
+ */
230
+ waitUntilClusterDeleted(args: DescribeClusterCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Route53RecoveryControlConfig>, "client">): Promise<WaiterResult>;
231
+ /**
232
+ * @see {@link DescribeControlPanelCommand}
233
+ * @param args - command input.
234
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
235
+ */
236
+ waitUntilControlPanelCreated(args: DescribeControlPanelCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Route53RecoveryControlConfig>, "client">): Promise<WaiterResult>;
237
+ /**
238
+ * @see {@link DescribeControlPanelCommand}
239
+ * @param args - command input.
240
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
241
+ */
242
+ waitUntilControlPanelDeleted(args: DescribeControlPanelCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Route53RecoveryControlConfig>, "client">): Promise<WaiterResult>;
243
+ /**
244
+ * @see {@link DescribeRoutingControlCommand}
245
+ * @param args - command input.
246
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
247
+ */
248
+ waitUntilRoutingControlCreated(args: DescribeRoutingControlCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Route53RecoveryControlConfig>, "client">): Promise<WaiterResult>;
249
+ /**
250
+ * @see {@link DescribeRoutingControlCommand}
251
+ * @param args - command input.
252
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
253
+ */
254
+ waitUntilRoutingControlDeleted(args: DescribeRoutingControlCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Route53RecoveryControlConfig>, "client">): Promise<WaiterResult>;
183
255
  }
184
256
  /**
185
257
  * <p>Recovery Control Configuration API Reference for Amazon Route 53 Application Recovery Controller</p>
@@ -1,4 +1,10 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ WaiterConfiguration,
6
+ } from "@smithy/types";
7
+ import { WaiterResult } from "@smithy/util-waiter";
2
8
  import {
3
9
  CreateClusterCommandInput,
4
10
  CreateClusterCommandOutput,
@@ -436,6 +442,113 @@ export interface Route53RecoveryControlConfig {
436
442
  options: __HttpHandlerOptions,
437
443
  cb: (err: any, data?: UpdateSafetyRuleCommandOutput) => void
438
444
  ): void;
445
+ paginateListAssociatedRoute53HealthChecks(
446
+ args: ListAssociatedRoute53HealthChecksCommandInput,
447
+ paginationConfig?: Pick<
448
+ PaginationConfiguration,
449
+ Exclude<keyof PaginationConfiguration, "client">
450
+ >
451
+ ): Paginator<ListAssociatedRoute53HealthChecksCommandOutput>;
452
+ paginateListClusters(
453
+ args?: ListClustersCommandInput,
454
+ paginationConfig?: Pick<
455
+ PaginationConfiguration,
456
+ Exclude<keyof PaginationConfiguration, "client">
457
+ >
458
+ ): Paginator<ListClustersCommandOutput>;
459
+ paginateListControlPanels(
460
+ args?: ListControlPanelsCommandInput,
461
+ paginationConfig?: Pick<
462
+ PaginationConfiguration,
463
+ Exclude<keyof PaginationConfiguration, "client">
464
+ >
465
+ ): Paginator<ListControlPanelsCommandOutput>;
466
+ paginateListRoutingControls(
467
+ args: ListRoutingControlsCommandInput,
468
+ paginationConfig?: Pick<
469
+ PaginationConfiguration,
470
+ Exclude<keyof PaginationConfiguration, "client">
471
+ >
472
+ ): Paginator<ListRoutingControlsCommandOutput>;
473
+ paginateListSafetyRules(
474
+ args: ListSafetyRulesCommandInput,
475
+ paginationConfig?: Pick<
476
+ PaginationConfiguration,
477
+ Exclude<keyof PaginationConfiguration, "client">
478
+ >
479
+ ): Paginator<ListSafetyRulesCommandOutput>;
480
+ waitUntilClusterCreated(
481
+ args: DescribeClusterCommandInput,
482
+ waiterConfig:
483
+ | number
484
+ | Pick<
485
+ WaiterConfiguration<Route53RecoveryControlConfig>,
486
+ Exclude<
487
+ keyof WaiterConfiguration<Route53RecoveryControlConfig>,
488
+ "client"
489
+ >
490
+ >
491
+ ): Promise<WaiterResult>;
492
+ waitUntilClusterDeleted(
493
+ args: DescribeClusterCommandInput,
494
+ waiterConfig:
495
+ | number
496
+ | Pick<
497
+ WaiterConfiguration<Route53RecoveryControlConfig>,
498
+ Exclude<
499
+ keyof WaiterConfiguration<Route53RecoveryControlConfig>,
500
+ "client"
501
+ >
502
+ >
503
+ ): Promise<WaiterResult>;
504
+ waitUntilControlPanelCreated(
505
+ args: DescribeControlPanelCommandInput,
506
+ waiterConfig:
507
+ | number
508
+ | Pick<
509
+ WaiterConfiguration<Route53RecoveryControlConfig>,
510
+ Exclude<
511
+ keyof WaiterConfiguration<Route53RecoveryControlConfig>,
512
+ "client"
513
+ >
514
+ >
515
+ ): Promise<WaiterResult>;
516
+ waitUntilControlPanelDeleted(
517
+ args: DescribeControlPanelCommandInput,
518
+ waiterConfig:
519
+ | number
520
+ | Pick<
521
+ WaiterConfiguration<Route53RecoveryControlConfig>,
522
+ Exclude<
523
+ keyof WaiterConfiguration<Route53RecoveryControlConfig>,
524
+ "client"
525
+ >
526
+ >
527
+ ): Promise<WaiterResult>;
528
+ waitUntilRoutingControlCreated(
529
+ args: DescribeRoutingControlCommandInput,
530
+ waiterConfig:
531
+ | number
532
+ | Pick<
533
+ WaiterConfiguration<Route53RecoveryControlConfig>,
534
+ Exclude<
535
+ keyof WaiterConfiguration<Route53RecoveryControlConfig>,
536
+ "client"
537
+ >
538
+ >
539
+ ): Promise<WaiterResult>;
540
+ waitUntilRoutingControlDeleted(
541
+ args: DescribeRoutingControlCommandInput,
542
+ waiterConfig:
543
+ | number
544
+ | Pick<
545
+ WaiterConfiguration<Route53RecoveryControlConfig>,
546
+ Exclude<
547
+ keyof WaiterConfiguration<Route53RecoveryControlConfig>,
548
+ "client"
549
+ >
550
+ >
551
+ ): Promise<WaiterResult>;
439
552
  }
440
553
  export declare class Route53RecoveryControlConfig
441
554
  extends Route53RecoveryControlConfigClient
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.975.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-route53-recovery-control-config",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.2",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.1",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.11",
42
- "@smithy/middleware-retry": "^4.4.27",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.12",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",