@aws-sdk/client-pcs 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
@@ -1163,6 +1163,12 @@ class UpdateQueueCommand extends smithyClient.Command
1163
1163
  .build() {
1164
1164
  }
1165
1165
 
1166
+ const paginateListClusters = core.createPaginator(PCSClient, ListClustersCommand, "nextToken", "nextToken", "maxResults");
1167
+
1168
+ const paginateListComputeNodeGroups = core.createPaginator(PCSClient, ListComputeNodeGroupsCommand, "nextToken", "nextToken", "maxResults");
1169
+
1170
+ const paginateListQueues = core.createPaginator(PCSClient, ListQueuesCommand, "nextToken", "nextToken", "maxResults");
1171
+
1166
1172
  const commands = {
1167
1173
  CreateClusterCommand,
1168
1174
  CreateComputeNodeGroupCommand,
@@ -1184,15 +1190,14 @@ const commands = {
1184
1190
  UpdateComputeNodeGroupCommand,
1185
1191
  UpdateQueueCommand,
1186
1192
  };
1193
+ const paginators = {
1194
+ paginateListClusters,
1195
+ paginateListComputeNodeGroups,
1196
+ paginateListQueues,
1197
+ };
1187
1198
  class PCS extends PCSClient {
1188
1199
  }
1189
- smithyClient.createAggregatedClient(commands, PCS);
1190
-
1191
- const paginateListClusters = core.createPaginator(PCSClient, ListClustersCommand, "nextToken", "nextToken", "maxResults");
1192
-
1193
- const paginateListComputeNodeGroups = core.createPaginator(PCSClient, ListComputeNodeGroupsCommand, "nextToken", "nextToken", "maxResults");
1194
-
1195
- const paginateListQueues = core.createPaginator(PCSClient, ListQueuesCommand, "nextToken", "nextToken", "maxResults");
1200
+ smithyClient.createAggregatedClient(commands, PCS, { paginators });
1196
1201
 
1197
1202
  const AccountingMode = {
1198
1203
  NONE: "NONE",
package/dist-es/PCS.js CHANGED
@@ -18,6 +18,9 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
18
18
  import { UpdateClusterCommand, } from "./commands/UpdateClusterCommand";
19
19
  import { UpdateComputeNodeGroupCommand, } from "./commands/UpdateComputeNodeGroupCommand";
20
20
  import { UpdateQueueCommand } from "./commands/UpdateQueueCommand";
21
+ import { paginateListClusters } from "./pagination/ListClustersPaginator";
22
+ import { paginateListComputeNodeGroups } from "./pagination/ListComputeNodeGroupsPaginator";
23
+ import { paginateListQueues } from "./pagination/ListQueuesPaginator";
21
24
  import { PCSClient } from "./PCSClient";
22
25
  const commands = {
23
26
  CreateClusterCommand,
@@ -40,6 +43,11 @@ const commands = {
40
43
  UpdateComputeNodeGroupCommand,
41
44
  UpdateQueueCommand,
42
45
  };
46
+ const paginators = {
47
+ paginateListClusters,
48
+ paginateListComputeNodeGroups,
49
+ paginateListQueues,
50
+ };
43
51
  export class PCS extends PCSClient {
44
52
  }
45
- createAggregatedClient(commands, PCS);
53
+ createAggregatedClient(commands, PCS, { 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 { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
3
3
  import { CreateComputeNodeGroupCommandInput, CreateComputeNodeGroupCommandOutput } from "./commands/CreateComputeNodeGroupCommand";
4
4
  import { CreateQueueCommandInput, CreateQueueCommandOutput } from "./commands/CreateQueueCommand";
@@ -135,6 +135,27 @@ export interface PCS {
135
135
  updateQueue(args: UpdateQueueCommandInput, options?: __HttpHandlerOptions): Promise<UpdateQueueCommandOutput>;
136
136
  updateQueue(args: UpdateQueueCommandInput, cb: (err: any, data?: UpdateQueueCommandOutput) => void): void;
137
137
  updateQueue(args: UpdateQueueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateQueueCommandOutput) => void): void;
138
+ /**
139
+ * @see {@link ListClustersCommand}
140
+ * @param args - command input.
141
+ * @param paginationConfig - optional pagination config.
142
+ * @returns AsyncIterable of {@link ListClustersCommandOutput}.
143
+ */
144
+ paginateListClusters(args?: ListClustersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListClustersCommandOutput>;
145
+ /**
146
+ * @see {@link ListComputeNodeGroupsCommand}
147
+ * @param args - command input.
148
+ * @param paginationConfig - optional pagination config.
149
+ * @returns AsyncIterable of {@link ListComputeNodeGroupsCommandOutput}.
150
+ */
151
+ paginateListComputeNodeGroups(args: ListComputeNodeGroupsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListComputeNodeGroupsCommandOutput>;
152
+ /**
153
+ * @see {@link ListQueuesCommand}
154
+ * @param args - command input.
155
+ * @param paginationConfig - optional pagination config.
156
+ * @returns AsyncIterable of {@link ListQueuesCommandOutput}.
157
+ */
158
+ paginateListQueues(args: ListQueuesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListQueuesCommandOutput>;
138
159
  }
139
160
  /**
140
161
  * <p>Parallel Computing Service (PCS) is a managed service that makes it easier for you to run and scale your high performance computing (HPC) workloads, and build scientific and engineering models on Amazon Web Services using Slurm. For more information, see the <a href="https://docs.aws.amazon.com/pcs/latest/userguide">Parallel Computing Service User Guide</a>.</p> <p>This reference describes the actions and data types of the service management API. You can use the Amazon Web Services SDKs to call the API actions in software, or use the Command Line Interface (CLI) to call the API actions manually. These API actions manage the service through an Amazon Web Services account.</p> <p>The API actions operate on PCS resources. A <i>resource</i> is an entity in Amazon Web Services that you can work with. Amazon Web Services services create resources when you use the features of the service. Examples of PCS resources include clusters, compute node groups, and queues. For more information about resources in Amazon Web Services, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/getting-started-terms-and-concepts.html#term-resource">Resource</a> in the <i>Resource Explorer User Guide</i>. </p> <p>An PCS <i>compute node</i> is an Amazon EC2 instance. You don't launch compute nodes directly. PCS uses configuration information that you provide to launch compute nodes in your Amazon Web Services account. You receive billing charges for your running compute nodes. PCS automatically terminates your compute nodes when you delete the PCS resources related to those compute nodes.</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
  CreateClusterCommandInput,
4
8
  CreateClusterCommandOutput,
@@ -325,5 +329,26 @@ export interface PCS {
325
329
  options: __HttpHandlerOptions,
326
330
  cb: (err: any, data?: UpdateQueueCommandOutput) => void
327
331
  ): void;
332
+ paginateListClusters(
333
+ args?: ListClustersCommandInput,
334
+ paginationConfig?: Pick<
335
+ PaginationConfiguration,
336
+ Exclude<keyof PaginationConfiguration, "client">
337
+ >
338
+ ): Paginator<ListClustersCommandOutput>;
339
+ paginateListComputeNodeGroups(
340
+ args: ListComputeNodeGroupsCommandInput,
341
+ paginationConfig?: Pick<
342
+ PaginationConfiguration,
343
+ Exclude<keyof PaginationConfiguration, "client">
344
+ >
345
+ ): Paginator<ListComputeNodeGroupsCommandOutput>;
346
+ paginateListQueues(
347
+ args: ListQueuesCommandInput,
348
+ paginationConfig?: Pick<
349
+ PaginationConfiguration,
350
+ Exclude<keyof PaginationConfiguration, "client">
351
+ >
352
+ ): Paginator<ListQueuesCommandOutput>;
328
353
  }
329
354
  export declare class PCS extends PCSClient implements PCS {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pcs",
3
3
  "description": "AWS SDK for JavaScript Pcs 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-pcs",
@@ -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",