@aws-sdk/client-account 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
@@ -759,6 +759,8 @@ class StartPrimaryEmailUpdateCommand extends smithyClient.Command
759
759
  .build() {
760
760
  }
761
761
 
762
+ const paginateListRegions = core.createPaginator(AccountClient, ListRegionsCommand, "NextToken", "NextToken", "MaxResults");
763
+
762
764
  const commands = {
763
765
  AcceptPrimaryEmailUpdateCommand,
764
766
  DeleteAlternateContactCommand,
@@ -776,11 +778,12 @@ const commands = {
776
778
  PutContactInformationCommand,
777
779
  StartPrimaryEmailUpdateCommand,
778
780
  };
781
+ const paginators = {
782
+ paginateListRegions,
783
+ };
779
784
  class Account extends AccountClient {
780
785
  }
781
- smithyClient.createAggregatedClient(commands, Account);
782
-
783
- const paginateListRegions = core.createPaginator(AccountClient, ListRegionsCommand, "NextToken", "NextToken", "MaxResults");
786
+ smithyClient.createAggregatedClient(commands, Account, { paginators });
784
787
 
785
788
  const PrimaryEmailUpdateStatus = {
786
789
  ACCEPTED: "ACCEPTED",
@@ -15,6 +15,7 @@ import { PutAccountNameCommand, } from "./commands/PutAccountNameCommand";
15
15
  import { PutAlternateContactCommand, } from "./commands/PutAlternateContactCommand";
16
16
  import { PutContactInformationCommand, } from "./commands/PutContactInformationCommand";
17
17
  import { StartPrimaryEmailUpdateCommand, } from "./commands/StartPrimaryEmailUpdateCommand";
18
+ import { paginateListRegions } from "./pagination/ListRegionsPaginator";
18
19
  const commands = {
19
20
  AcceptPrimaryEmailUpdateCommand,
20
21
  DeleteAlternateContactCommand,
@@ -32,6 +33,9 @@ const commands = {
32
33
  PutContactInformationCommand,
33
34
  StartPrimaryEmailUpdateCommand,
34
35
  };
36
+ const paginators = {
37
+ paginateListRegions,
38
+ };
35
39
  export class Account extends AccountClient {
36
40
  }
37
- createAggregatedClient(commands, Account);
41
+ createAggregatedClient(commands, Account, { 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 { AccountClient } from "./AccountClient";
3
3
  import { AcceptPrimaryEmailUpdateCommandInput, AcceptPrimaryEmailUpdateCommandOutput } from "./commands/AcceptPrimaryEmailUpdateCommand";
4
4
  import { DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput } from "./commands/DeleteAlternateContactCommand";
@@ -110,6 +110,13 @@ export interface Account {
110
110
  startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, options?: __HttpHandlerOptions): Promise<StartPrimaryEmailUpdateCommandOutput>;
111
111
  startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, cb: (err: any, data?: StartPrimaryEmailUpdateCommandOutput) => void): void;
112
112
  startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartPrimaryEmailUpdateCommandOutput) => void): void;
113
+ /**
114
+ * @see {@link ListRegionsCommand}
115
+ * @param args - command input.
116
+ * @param paginationConfig - optional pagination config.
117
+ * @returns AsyncIterable of {@link ListRegionsCommandOutput}.
118
+ */
119
+ paginateListRegions(args?: ListRegionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRegionsCommandOutput>;
113
120
  }
114
121
  /**
115
122
  * <p>Operations for Amazon Web Services Account Management</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 { AccountClient } from "./AccountClient";
3
7
  import {
4
8
  AcceptPrimaryEmailUpdateCommandInput,
@@ -260,5 +264,12 @@ export interface Account {
260
264
  options: __HttpHandlerOptions,
261
265
  cb: (err: any, data?: StartPrimaryEmailUpdateCommandOutput) => void
262
266
  ): void;
267
+ paginateListRegions(
268
+ args?: ListRegionsCommandInput,
269
+ paginationConfig?: Pick<
270
+ PaginationConfiguration,
271
+ Exclude<keyof PaginationConfiguration, "client">
272
+ >
273
+ ): Paginator<ListRegionsCommandOutput>;
263
274
  }
264
275
  export declare class Account extends AccountClient implements Account {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-account",
3
3
  "description": "AWS SDK for JavaScript Account 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-account",
@@ -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",