@aws-sdk/client-route53-recovery-cluster 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
@@ -465,17 +465,20 @@ class UpdateRoutingControlStatesCommand extends smithyClient.Command
465
465
  .build() {
466
466
  }
467
467
 
468
+ const paginateListRoutingControls = core.createPaginator(Route53RecoveryClusterClient, ListRoutingControlsCommand, "NextToken", "NextToken", "MaxResults");
469
+
468
470
  const commands = {
469
471
  GetRoutingControlStateCommand,
470
472
  ListRoutingControlsCommand,
471
473
  UpdateRoutingControlStateCommand,
472
474
  UpdateRoutingControlStatesCommand,
473
475
  };
476
+ const paginators = {
477
+ paginateListRoutingControls,
478
+ };
474
479
  class Route53RecoveryCluster extends Route53RecoveryClusterClient {
475
480
  }
476
- smithyClient.createAggregatedClient(commands, Route53RecoveryCluster);
477
-
478
- const paginateListRoutingControls = core.createPaginator(Route53RecoveryClusterClient, ListRoutingControlsCommand, "NextToken", "NextToken", "MaxResults");
481
+ smithyClient.createAggregatedClient(commands, Route53RecoveryCluster, { paginators });
479
482
 
480
483
  const RoutingControlState = {
481
484
  Off: "Off",
@@ -3,6 +3,7 @@ import { GetRoutingControlStateCommand, } from "./commands/GetRoutingControlStat
3
3
  import { ListRoutingControlsCommand, } from "./commands/ListRoutingControlsCommand";
4
4
  import { UpdateRoutingControlStateCommand, } from "./commands/UpdateRoutingControlStateCommand";
5
5
  import { UpdateRoutingControlStatesCommand, } from "./commands/UpdateRoutingControlStatesCommand";
6
+ import { paginateListRoutingControls } from "./pagination/ListRoutingControlsPaginator";
6
7
  import { Route53RecoveryClusterClient } from "./Route53RecoveryClusterClient";
7
8
  const commands = {
8
9
  GetRoutingControlStateCommand,
@@ -10,6 +11,9 @@ const commands = {
10
11
  UpdateRoutingControlStateCommand,
11
12
  UpdateRoutingControlStatesCommand,
12
13
  };
14
+ const paginators = {
15
+ paginateListRoutingControls,
16
+ };
13
17
  export class Route53RecoveryCluster extends Route53RecoveryClusterClient {
14
18
  }
15
- createAggregatedClient(commands, Route53RecoveryCluster);
19
+ createAggregatedClient(commands, Route53RecoveryCluster, { paginators });
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { GetRoutingControlStateCommandInput, GetRoutingControlStateCommandOutput } from "./commands/GetRoutingControlStateCommand";
3
3
  import { ListRoutingControlsCommandInput, ListRoutingControlsCommandOutput } from "./commands/ListRoutingControlsCommand";
4
4
  import { UpdateRoutingControlStateCommandInput, UpdateRoutingControlStateCommandOutput } from "./commands/UpdateRoutingControlStateCommand";
@@ -30,6 +30,13 @@ export interface Route53RecoveryCluster {
30
30
  updateRoutingControlStates(args: UpdateRoutingControlStatesCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRoutingControlStatesCommandOutput>;
31
31
  updateRoutingControlStates(args: UpdateRoutingControlStatesCommandInput, cb: (err: any, data?: UpdateRoutingControlStatesCommandOutput) => void): void;
32
32
  updateRoutingControlStates(args: UpdateRoutingControlStatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRoutingControlStatesCommandOutput) => void): void;
33
+ /**
34
+ * @see {@link ListRoutingControlsCommand}
35
+ * @param args - command input.
36
+ * @param paginationConfig - optional pagination config.
37
+ * @returns AsyncIterable of {@link ListRoutingControlsCommandOutput}.
38
+ */
39
+ paginateListRoutingControls(args?: ListRoutingControlsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRoutingControlsCommandOutput>;
33
40
  }
34
41
  /**
35
42
  * <p>Welcome to the Routing Control (Recovery Cluster) API Reference Guide for Amazon Route 53 Application Recovery Controller.</p>
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import {
3
7
  GetRoutingControlStateCommandInput,
4
8
  GetRoutingControlStateCommandOutput,
@@ -70,6 +74,13 @@ export interface Route53RecoveryCluster {
70
74
  options: __HttpHandlerOptions,
71
75
  cb: (err: any, data?: UpdateRoutingControlStatesCommandOutput) => void
72
76
  ): void;
77
+ paginateListRoutingControls(
78
+ args?: ListRoutingControlsCommandInput,
79
+ paginationConfig?: Pick<
80
+ PaginationConfiguration,
81
+ Exclude<keyof PaginationConfiguration, "client">
82
+ >
83
+ ): Paginator<ListRoutingControlsCommandOutput>;
73
84
  }
74
85
  export declare class Route53RecoveryCluster
75
86
  extends Route53RecoveryClusterClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-route53-recovery-cluster",
3
3
  "description": "AWS SDK for JavaScript Route53 Recovery Cluster 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-cluster",
@@ -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",