@aws-sdk/client-cloudhsm-v2 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
@@ -887,6 +887,12 @@ class UntagResourceCommand extends smithyClient.Command
887
887
  .build() {
888
888
  }
889
889
 
890
+ const paginateDescribeBackups = core.createPaginator(CloudHSMV2Client, DescribeBackupsCommand, "NextToken", "NextToken", "MaxResults");
891
+
892
+ const paginateDescribeClusters = core.createPaginator(CloudHSMV2Client, DescribeClustersCommand, "NextToken", "NextToken", "MaxResults");
893
+
894
+ const paginateListTags = core.createPaginator(CloudHSMV2Client, ListTagsCommand, "NextToken", "NextToken", "MaxResults");
895
+
890
896
  const commands = {
891
897
  CopyBackupToRegionCommand,
892
898
  CreateClusterCommand,
@@ -907,15 +913,14 @@ const commands = {
907
913
  TagResourceCommand,
908
914
  UntagResourceCommand,
909
915
  };
916
+ const paginators = {
917
+ paginateDescribeBackups,
918
+ paginateDescribeClusters,
919
+ paginateListTags,
920
+ };
910
921
  class CloudHSMV2 extends CloudHSMV2Client {
911
922
  }
912
- smithyClient.createAggregatedClient(commands, CloudHSMV2);
913
-
914
- const paginateDescribeBackups = core.createPaginator(CloudHSMV2Client, DescribeBackupsCommand, "NextToken", "NextToken", "MaxResults");
915
-
916
- const paginateDescribeClusters = core.createPaginator(CloudHSMV2Client, DescribeClustersCommand, "NextToken", "NextToken", "MaxResults");
917
-
918
- const paginateListTags = core.createPaginator(CloudHSMV2Client, ListTagsCommand, "NextToken", "NextToken", "MaxResults");
923
+ smithyClient.createAggregatedClient(commands, CloudHSMV2, { paginators });
919
924
 
920
925
  const BackupState = {
921
926
  CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
@@ -18,6 +18,9 @@ import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
18
18
  import { RestoreBackupCommand, } from "./commands/RestoreBackupCommand";
19
19
  import { TagResourceCommand } from "./commands/TagResourceCommand";
20
20
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
21
+ import { paginateDescribeBackups } from "./pagination/DescribeBackupsPaginator";
22
+ import { paginateDescribeClusters } from "./pagination/DescribeClustersPaginator";
23
+ import { paginateListTags } from "./pagination/ListTagsPaginator";
21
24
  const commands = {
22
25
  CopyBackupToRegionCommand,
23
26
  CreateClusterCommand,
@@ -38,6 +41,11 @@ const commands = {
38
41
  TagResourceCommand,
39
42
  UntagResourceCommand,
40
43
  };
44
+ const paginators = {
45
+ paginateDescribeBackups,
46
+ paginateDescribeClusters,
47
+ paginateListTags,
48
+ };
41
49
  export class CloudHSMV2 extends CloudHSMV2Client {
42
50
  }
43
- createAggregatedClient(commands, CloudHSMV2);
51
+ createAggregatedClient(commands, CloudHSMV2, { 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 { CloudHSMV2Client } from "./CloudHSMV2Client";
3
3
  import { CopyBackupToRegionCommandInput, CopyBackupToRegionCommandOutput } from "./commands/CopyBackupToRegionCommand";
4
4
  import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
@@ -132,6 +132,27 @@ export interface CloudHSMV2 {
132
132
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
133
133
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
134
134
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
135
+ /**
136
+ * @see {@link DescribeBackupsCommand}
137
+ * @param args - command input.
138
+ * @param paginationConfig - optional pagination config.
139
+ * @returns AsyncIterable of {@link DescribeBackupsCommandOutput}.
140
+ */
141
+ paginateDescribeBackups(args?: DescribeBackupsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<DescribeBackupsCommandOutput>;
142
+ /**
143
+ * @see {@link DescribeClustersCommand}
144
+ * @param args - command input.
145
+ * @param paginationConfig - optional pagination config.
146
+ * @returns AsyncIterable of {@link DescribeClustersCommandOutput}.
147
+ */
148
+ paginateDescribeClusters(args?: DescribeClustersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<DescribeClustersCommandOutput>;
149
+ /**
150
+ * @see {@link ListTagsCommand}
151
+ * @param args - command input.
152
+ * @param paginationConfig - optional pagination config.
153
+ * @returns AsyncIterable of {@link ListTagsCommandOutput}.
154
+ */
155
+ paginateListTags(args: ListTagsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTagsCommandOutput>;
135
156
  }
136
157
  /**
137
158
  * <p>For more information about CloudHSM, see <a href="http://aws.amazon.com/cloudhsm/">CloudHSM</a> and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">
@@ -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 { CloudHSMV2Client } from "./CloudHSMV2Client";
3
7
  import {
4
8
  CopyBackupToRegionCommandInput,
@@ -312,6 +316,27 @@ export interface CloudHSMV2 {
312
316
  options: __HttpHandlerOptions,
313
317
  cb: (err: any, data?: UntagResourceCommandOutput) => void
314
318
  ): void;
319
+ paginateDescribeBackups(
320
+ args?: DescribeBackupsCommandInput,
321
+ paginationConfig?: Pick<
322
+ PaginationConfiguration,
323
+ Exclude<keyof PaginationConfiguration, "client">
324
+ >
325
+ ): Paginator<DescribeBackupsCommandOutput>;
326
+ paginateDescribeClusters(
327
+ args?: DescribeClustersCommandInput,
328
+ paginationConfig?: Pick<
329
+ PaginationConfiguration,
330
+ Exclude<keyof PaginationConfiguration, "client">
331
+ >
332
+ ): Paginator<DescribeClustersCommandOutput>;
333
+ paginateListTags(
334
+ args: ListTagsCommandInput,
335
+ paginationConfig?: Pick<
336
+ PaginationConfiguration,
337
+ Exclude<keyof PaginationConfiguration, "client">
338
+ >
339
+ ): Paginator<ListTagsCommandOutput>;
315
340
  }
316
341
  export declare class CloudHSMV2
317
342
  extends CloudHSMV2Client
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudhsm-v2",
3
3
  "description": "AWS SDK for JavaScript Cloudhsm V2 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-cloudhsm-v2",
@@ -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",