@aws-sdk/client-s3outposts 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
@@ -472,6 +472,12 @@ class ListSharedEndpointsCommand extends smithyClient.Command
472
472
  .build() {
473
473
  }
474
474
 
475
+ const paginateListEndpoints = core.createPaginator(S3OutpostsClient, ListEndpointsCommand, "NextToken", "NextToken", "MaxResults");
476
+
477
+ const paginateListOutpostsWithS3 = core.createPaginator(S3OutpostsClient, ListOutpostsWithS3Command, "NextToken", "NextToken", "MaxResults");
478
+
479
+ const paginateListSharedEndpoints = core.createPaginator(S3OutpostsClient, ListSharedEndpointsCommand, "NextToken", "NextToken", "MaxResults");
480
+
475
481
  const commands = {
476
482
  CreateEndpointCommand,
477
483
  DeleteEndpointCommand,
@@ -479,15 +485,14 @@ const commands = {
479
485
  ListOutpostsWithS3Command,
480
486
  ListSharedEndpointsCommand,
481
487
  };
488
+ const paginators = {
489
+ paginateListEndpoints,
490
+ paginateListOutpostsWithS3,
491
+ paginateListSharedEndpoints,
492
+ };
482
493
  class S3Outposts extends S3OutpostsClient {
483
494
  }
484
- smithyClient.createAggregatedClient(commands, S3Outposts);
485
-
486
- const paginateListEndpoints = core.createPaginator(S3OutpostsClient, ListEndpointsCommand, "NextToken", "NextToken", "MaxResults");
487
-
488
- const paginateListOutpostsWithS3 = core.createPaginator(S3OutpostsClient, ListOutpostsWithS3Command, "NextToken", "NextToken", "MaxResults");
489
-
490
- const paginateListSharedEndpoints = core.createPaginator(S3OutpostsClient, ListSharedEndpointsCommand, "NextToken", "NextToken", "MaxResults");
495
+ smithyClient.createAggregatedClient(commands, S3Outposts, { paginators });
491
496
 
492
497
  const EndpointAccessType = {
493
498
  CUSTOMER_OWNED_IP: "CustomerOwnedIp",
@@ -4,6 +4,9 @@ import { DeleteEndpointCommand, } from "./commands/DeleteEndpointCommand";
4
4
  import { ListEndpointsCommand, } from "./commands/ListEndpointsCommand";
5
5
  import { ListOutpostsWithS3Command, } from "./commands/ListOutpostsWithS3Command";
6
6
  import { ListSharedEndpointsCommand, } from "./commands/ListSharedEndpointsCommand";
7
+ import { paginateListEndpoints } from "./pagination/ListEndpointsPaginator";
8
+ import { paginateListOutpostsWithS3 } from "./pagination/ListOutpostsWithS3Paginator";
9
+ import { paginateListSharedEndpoints } from "./pagination/ListSharedEndpointsPaginator";
7
10
  import { S3OutpostsClient } from "./S3OutpostsClient";
8
11
  const commands = {
9
12
  CreateEndpointCommand,
@@ -12,6 +15,11 @@ const commands = {
12
15
  ListOutpostsWithS3Command,
13
16
  ListSharedEndpointsCommand,
14
17
  };
18
+ const paginators = {
19
+ paginateListEndpoints,
20
+ paginateListOutpostsWithS3,
21
+ paginateListSharedEndpoints,
22
+ };
15
23
  export class S3Outposts extends S3OutpostsClient {
16
24
  }
17
- createAggregatedClient(commands, S3Outposts);
25
+ createAggregatedClient(commands, S3Outposts, { 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 { CreateEndpointCommandInput, CreateEndpointCommandOutput } from "./commands/CreateEndpointCommand";
3
3
  import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "./commands/DeleteEndpointCommand";
4
4
  import { ListEndpointsCommandInput, ListEndpointsCommandOutput } from "./commands/ListEndpointsCommand";
@@ -38,6 +38,27 @@ export interface S3Outposts {
38
38
  listSharedEndpoints(args: ListSharedEndpointsCommandInput, options?: __HttpHandlerOptions): Promise<ListSharedEndpointsCommandOutput>;
39
39
  listSharedEndpoints(args: ListSharedEndpointsCommandInput, cb: (err: any, data?: ListSharedEndpointsCommandOutput) => void): void;
40
40
  listSharedEndpoints(args: ListSharedEndpointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSharedEndpointsCommandOutput) => void): void;
41
+ /**
42
+ * @see {@link ListEndpointsCommand}
43
+ * @param args - command input.
44
+ * @param paginationConfig - optional pagination config.
45
+ * @returns AsyncIterable of {@link ListEndpointsCommandOutput}.
46
+ */
47
+ paginateListEndpoints(args?: ListEndpointsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListEndpointsCommandOutput>;
48
+ /**
49
+ * @see {@link ListOutpostsWithS3Command}
50
+ * @param args - command input.
51
+ * @param paginationConfig - optional pagination config.
52
+ * @returns AsyncIterable of {@link ListOutpostsWithS3CommandOutput}.
53
+ */
54
+ paginateListOutpostsWithS3(args?: ListOutpostsWithS3CommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListOutpostsWithS3CommandOutput>;
55
+ /**
56
+ * @see {@link ListSharedEndpointsCommand}
57
+ * @param args - command input.
58
+ * @param paginationConfig - optional pagination config.
59
+ * @returns AsyncIterable of {@link ListSharedEndpointsCommandOutput}.
60
+ */
61
+ paginateListSharedEndpoints(args: ListSharedEndpointsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSharedEndpointsCommandOutput>;
41
62
  }
42
63
  /**
43
64
  * <p>Amazon S3 on Outposts provides access to S3 on Outposts operations.</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
  CreateEndpointCommandInput,
4
8
  CreateEndpointCommandOutput,
@@ -88,6 +92,27 @@ export interface S3Outposts {
88
92
  options: __HttpHandlerOptions,
89
93
  cb: (err: any, data?: ListSharedEndpointsCommandOutput) => void
90
94
  ): void;
95
+ paginateListEndpoints(
96
+ args?: ListEndpointsCommandInput,
97
+ paginationConfig?: Pick<
98
+ PaginationConfiguration,
99
+ Exclude<keyof PaginationConfiguration, "client">
100
+ >
101
+ ): Paginator<ListEndpointsCommandOutput>;
102
+ paginateListOutpostsWithS3(
103
+ args?: ListOutpostsWithS3CommandInput,
104
+ paginationConfig?: Pick<
105
+ PaginationConfiguration,
106
+ Exclude<keyof PaginationConfiguration, "client">
107
+ >
108
+ ): Paginator<ListOutpostsWithS3CommandOutput>;
109
+ paginateListSharedEndpoints(
110
+ args: ListSharedEndpointsCommandInput,
111
+ paginationConfig?: Pick<
112
+ PaginationConfiguration,
113
+ Exclude<keyof PaginationConfiguration, "client">
114
+ >
115
+ ): Paginator<ListSharedEndpointsCommandOutput>;
91
116
  }
92
117
  export declare class S3Outposts
93
118
  extends S3OutpostsClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3outposts",
3
3
  "description": "AWS SDK for JavaScript S3outposts 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-s3outposts",
@@ -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",