@aws-sdk/client-iotsecuretunneling 3.974.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
@@ -464,6 +464,8 @@ class UntagResourceCommand extends smithyClient.Command
464
464
  .build() {
465
465
  }
466
466
 
467
+ const paginateListTunnels = core.createPaginator(IoTSecureTunnelingClient, ListTunnelsCommand, "nextToken", "nextToken", "maxResults");
468
+
467
469
  const commands = {
468
470
  CloseTunnelCommand,
469
471
  DescribeTunnelCommand,
@@ -474,11 +476,12 @@ const commands = {
474
476
  TagResourceCommand,
475
477
  UntagResourceCommand,
476
478
  };
479
+ const paginators = {
480
+ paginateListTunnels,
481
+ };
477
482
  class IoTSecureTunneling extends IoTSecureTunnelingClient {
478
483
  }
479
- smithyClient.createAggregatedClient(commands, IoTSecureTunneling);
480
-
481
- const paginateListTunnels = core.createPaginator(IoTSecureTunnelingClient, ListTunnelsCommand, "nextToken", "nextToken", "maxResults");
484
+ smithyClient.createAggregatedClient(commands, IoTSecureTunneling, { paginators });
482
485
 
483
486
  const ClientMode = {
484
487
  ALL: "ALL",
@@ -8,6 +8,7 @@ import { RotateTunnelAccessTokenCommand, } from "./commands/RotateTunnelAccessTo
8
8
  import { TagResourceCommand } from "./commands/TagResourceCommand";
9
9
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
10
10
  import { IoTSecureTunnelingClient } from "./IoTSecureTunnelingClient";
11
+ import { paginateListTunnels } from "./pagination/ListTunnelsPaginator";
11
12
  const commands = {
12
13
  CloseTunnelCommand,
13
14
  DescribeTunnelCommand,
@@ -18,6 +19,9 @@ const commands = {
18
19
  TagResourceCommand,
19
20
  UntagResourceCommand,
20
21
  };
22
+ const paginators = {
23
+ paginateListTunnels,
24
+ };
21
25
  export class IoTSecureTunneling extends IoTSecureTunnelingClient {
22
26
  }
23
- createAggregatedClient(commands, IoTSecureTunneling);
27
+ createAggregatedClient(commands, IoTSecureTunneling, { 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 { CloseTunnelCommandInput, CloseTunnelCommandOutput } from "./commands/CloseTunnelCommand";
3
3
  import { DescribeTunnelCommandInput, DescribeTunnelCommandOutput } from "./commands/DescribeTunnelCommand";
4
4
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
@@ -59,6 +59,13 @@ export interface IoTSecureTunneling {
59
59
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
60
60
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
61
61
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
62
+ /**
63
+ * @see {@link ListTunnelsCommand}
64
+ * @param args - command input.
65
+ * @param paginationConfig - optional pagination config.
66
+ * @returns AsyncIterable of {@link ListTunnelsCommandOutput}.
67
+ */
68
+ paginateListTunnels(args?: ListTunnelsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTunnelsCommandOutput>;
62
69
  }
63
70
  /**
64
71
  * <fullname>IoT Secure Tunneling</fullname>
@@ -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
  CloseTunnelCommandInput,
4
8
  CloseTunnelCommandOutput,
@@ -139,6 +143,13 @@ export interface IoTSecureTunneling {
139
143
  options: __HttpHandlerOptions,
140
144
  cb: (err: any, data?: UntagResourceCommandOutput) => void
141
145
  ): void;
146
+ paginateListTunnels(
147
+ args?: ListTunnelsCommandInput,
148
+ paginationConfig?: Pick<
149
+ PaginationConfiguration,
150
+ Exclude<keyof PaginationConfiguration, "client">
151
+ >
152
+ ): Paginator<ListTunnelsCommandOutput>;
142
153
  }
143
154
  export declare class IoTSecureTunneling
144
155
  extends IoTSecureTunnelingClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iotsecuretunneling",
3
3
  "description": "AWS SDK for JavaScript Iotsecuretunneling Client for Node.js, Browser and React Native",
4
- "version": "3.974.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-iotsecuretunneling",
@@ -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.0",
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.1",
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.0",
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.10",
42
- "@smithy/middleware-retry": "^4.4.26",
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.11",
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.25",
55
- "@smithy/util-defaults-mode-node": "^4.2.28",
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",