@aws-sdk/client-rbin 3.975.0 → 3.980.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
@@ -598,6 +598,8 @@ class UpdateRuleCommand extends smithyClient.Command
598
598
  .build() {
599
599
  }
600
600
 
601
+ const paginateListRules = core.createPaginator(RbinClient, ListRulesCommand, "NextToken", "NextToken", "MaxResults");
602
+
601
603
  const commands = {
602
604
  CreateRuleCommand,
603
605
  DeleteRuleCommand,
@@ -610,11 +612,12 @@ const commands = {
610
612
  UntagResourceCommand,
611
613
  UpdateRuleCommand,
612
614
  };
615
+ const paginators = {
616
+ paginateListRules,
617
+ };
613
618
  class Rbin extends RbinClient {
614
619
  }
615
- smithyClient.createAggregatedClient(commands, Rbin);
616
-
617
- const paginateListRules = core.createPaginator(RbinClient, ListRulesCommand, "NextToken", "NextToken", "MaxResults");
620
+ smithyClient.createAggregatedClient(commands, Rbin, { paginators });
618
621
 
619
622
  const UnlockDelayUnit = {
620
623
  DAYS: "DAYS",
package/dist-es/Rbin.js CHANGED
@@ -9,6 +9,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
9
9
  import { UnlockRuleCommand } from "./commands/UnlockRuleCommand";
10
10
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
11
11
  import { UpdateRuleCommand } from "./commands/UpdateRuleCommand";
12
+ import { paginateListRules } from "./pagination/ListRulesPaginator";
12
13
  import { RbinClient } from "./RbinClient";
13
14
  const commands = {
14
15
  CreateRuleCommand,
@@ -22,6 +23,9 @@ const commands = {
22
23
  UntagResourceCommand,
23
24
  UpdateRuleCommand,
24
25
  };
26
+ const paginators = {
27
+ paginateListRules,
28
+ };
25
29
  export class Rbin extends RbinClient {
26
30
  }
27
- createAggregatedClient(commands, Rbin);
31
+ createAggregatedClient(commands, Rbin, { 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 { CreateRuleCommandInput, CreateRuleCommandOutput } from "./commands/CreateRuleCommand";
3
3
  import { DeleteRuleCommandInput, DeleteRuleCommandOutput } from "./commands/DeleteRuleCommand";
4
4
  import { GetRuleCommandInput, GetRuleCommandOutput } from "./commands/GetRuleCommand";
@@ -71,6 +71,13 @@ export interface Rbin {
71
71
  updateRule(args: UpdateRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRuleCommandOutput>;
72
72
  updateRule(args: UpdateRuleCommandInput, cb: (err: any, data?: UpdateRuleCommandOutput) => void): void;
73
73
  updateRule(args: UpdateRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRuleCommandOutput) => void): void;
74
+ /**
75
+ * @see {@link ListRulesCommand}
76
+ * @param args - command input.
77
+ * @param paginationConfig - optional pagination config.
78
+ * @returns AsyncIterable of {@link ListRulesCommandOutput}.
79
+ */
80
+ paginateListRules(args: ListRulesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRulesCommandOutput>;
74
81
  }
75
82
  /**
76
83
  * <p>This is the <i>Recycle Bin API Reference</i>. This documentation provides
@@ -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
  CreateRuleCommandInput,
4
8
  CreateRuleCommandOutput,
@@ -171,5 +175,12 @@ export interface Rbin {
171
175
  options: __HttpHandlerOptions,
172
176
  cb: (err: any, data?: UpdateRuleCommandOutput) => void
173
177
  ): void;
178
+ paginateListRules(
179
+ args: ListRulesCommandInput,
180
+ paginationConfig?: Pick<
181
+ PaginationConfiguration,
182
+ Exclude<keyof PaginationConfiguration, "client">
183
+ >
184
+ ): Paginator<ListRulesCommandOutput>;
174
185
  }
175
186
  export declare class Rbin extends RbinClient implements Rbin {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rbin",
3
3
  "description": "AWS SDK for JavaScript Rbin Client for Node.js, Browser and React Native",
4
- "version": "3.975.0",
4
+ "version": "3.980.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-rbin",
@@ -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",
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",
24
+ "@aws-sdk/core": "^3.973.5",
25
+ "@aws-sdk/credential-provider-node": "^3.972.4",
26
+ "@aws-sdk/middleware-host-header": "^3.972.3",
27
+ "@aws-sdk/middleware-logger": "^3.972.3",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.5",
30
+ "@aws-sdk/region-config-resolver": "^3.972.3",
31
+ "@aws-sdk/types": "^3.973.1",
32
+ "@aws-sdk/util-endpoints": "3.980.0",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.3",
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",