@aws-sdk/client-sso 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
@@ -364,19 +364,23 @@ class LogoutCommand extends smithyClient.Command
364
364
  .build() {
365
365
  }
366
366
 
367
+ const paginateListAccountRoles = core.createPaginator(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
368
+
369
+ const paginateListAccounts = core.createPaginator(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
370
+
367
371
  const commands = {
368
372
  GetRoleCredentialsCommand,
369
373
  ListAccountRolesCommand,
370
374
  ListAccountsCommand,
371
375
  LogoutCommand,
372
376
  };
377
+ const paginators = {
378
+ paginateListAccountRoles,
379
+ paginateListAccounts,
380
+ };
373
381
  class SSO extends SSOClient {
374
382
  }
375
- smithyClient.createAggregatedClient(commands, SSO);
376
-
377
- const paginateListAccountRoles = core.createPaginator(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
378
-
379
- const paginateListAccounts = core.createPaginator(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
383
+ smithyClient.createAggregatedClient(commands, SSO, { paginators });
380
384
 
381
385
  Object.defineProperty(exports, "$Command", {
382
386
  enumerable: true,
package/dist-es/SSO.js CHANGED
@@ -3,6 +3,8 @@ import { GetRoleCredentialsCommand, } from "./commands/GetRoleCredentialsCommand
3
3
  import { ListAccountRolesCommand, } from "./commands/ListAccountRolesCommand";
4
4
  import { ListAccountsCommand, } from "./commands/ListAccountsCommand";
5
5
  import { LogoutCommand } from "./commands/LogoutCommand";
6
+ import { paginateListAccountRoles } from "./pagination/ListAccountRolesPaginator";
7
+ import { paginateListAccounts } from "./pagination/ListAccountsPaginator";
6
8
  import { SSOClient } from "./SSOClient";
7
9
  const commands = {
8
10
  GetRoleCredentialsCommand,
@@ -10,6 +12,10 @@ const commands = {
10
12
  ListAccountsCommand,
11
13
  LogoutCommand,
12
14
  };
15
+ const paginators = {
16
+ paginateListAccountRoles,
17
+ paginateListAccounts,
18
+ };
13
19
  export class SSO extends SSOClient {
14
20
  }
15
- createAggregatedClient(commands, SSO);
21
+ createAggregatedClient(commands, SSO, { 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 { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
3
3
  import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./commands/ListAccountRolesCommand";
4
4
  import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/ListAccountsCommand";
@@ -29,6 +29,20 @@ export interface SSO {
29
29
  logout(args: LogoutCommandInput, options?: __HttpHandlerOptions): Promise<LogoutCommandOutput>;
30
30
  logout(args: LogoutCommandInput, cb: (err: any, data?: LogoutCommandOutput) => void): void;
31
31
  logout(args: LogoutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LogoutCommandOutput) => void): void;
32
+ /**
33
+ * @see {@link ListAccountRolesCommand}
34
+ * @param args - command input.
35
+ * @param paginationConfig - optional pagination config.
36
+ * @returns AsyncIterable of {@link ListAccountRolesCommandOutput}.
37
+ */
38
+ paginateListAccountRoles(args: ListAccountRolesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAccountRolesCommandOutput>;
39
+ /**
40
+ * @see {@link ListAccountsCommand}
41
+ * @param args - command input.
42
+ * @param paginationConfig - optional pagination config.
43
+ * @returns AsyncIterable of {@link ListAccountsCommandOutput}.
44
+ */
45
+ paginateListAccounts(args: ListAccountsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAccountsCommandOutput>;
32
46
  }
33
47
  /**
34
48
  * <p>AWS IAM Identity Center (successor to AWS Single Sign-On) Portal is a web service that makes it easy for you to assign user access to
@@ -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
  GetRoleCredentialsCommandInput,
4
8
  GetRoleCredentialsCommandOutput,
@@ -69,5 +73,19 @@ export interface SSO {
69
73
  options: __HttpHandlerOptions,
70
74
  cb: (err: any, data?: LogoutCommandOutput) => void
71
75
  ): void;
76
+ paginateListAccountRoles(
77
+ args: ListAccountRolesCommandInput,
78
+ paginationConfig?: Pick<
79
+ PaginationConfiguration,
80
+ Exclude<keyof PaginationConfiguration, "client">
81
+ >
82
+ ): Paginator<ListAccountRolesCommandOutput>;
83
+ paginateListAccounts(
84
+ args: ListAccountsCommandInput,
85
+ paginationConfig?: Pick<
86
+ PaginationConfiguration,
87
+ Exclude<keyof PaginationConfiguration, "client">
88
+ >
89
+ ): Paginator<ListAccountsCommandOutput>;
72
90
  }
73
91
  export declare class SSO extends SSOClient implements SSO {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso",
3
3
  "description": "AWS SDK for JavaScript Sso 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-sso",
@@ -21,37 +21,37 @@
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/middleware-host-header": "^3.972.1",
26
- "@aws-sdk/middleware-logger": "^3.972.1",
27
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
28
- "@aws-sdk/middleware-user-agent": "^3.972.2",
29
- "@aws-sdk/region-config-resolver": "^3.972.1",
30
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/middleware-host-header": "^3.972.2",
26
+ "@aws-sdk/middleware-logger": "^3.972.2",
27
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
28
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
29
+ "@aws-sdk/region-config-resolver": "^3.972.2",
30
+ "@aws-sdk/types": "^3.973.1",
31
31
  "@aws-sdk/util-endpoints": "3.972.0",
32
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
33
- "@aws-sdk/util-user-agent-node": "^3.972.1",
32
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
33
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
34
34
  "@smithy/config-resolver": "^4.4.6",
35
- "@smithy/core": "^3.21.1",
35
+ "@smithy/core": "^3.22.0",
36
36
  "@smithy/fetch-http-handler": "^5.3.9",
37
37
  "@smithy/hash-node": "^4.2.8",
38
38
  "@smithy/invalid-dependency": "^4.2.8",
39
39
  "@smithy/middleware-content-length": "^4.2.8",
40
- "@smithy/middleware-endpoint": "^4.4.11",
41
- "@smithy/middleware-retry": "^4.4.27",
40
+ "@smithy/middleware-endpoint": "^4.4.12",
41
+ "@smithy/middleware-retry": "^4.4.29",
42
42
  "@smithy/middleware-serde": "^4.2.9",
43
43
  "@smithy/middleware-stack": "^4.2.8",
44
44
  "@smithy/node-config-provider": "^4.3.8",
45
45
  "@smithy/node-http-handler": "^4.4.8",
46
46
  "@smithy/protocol-http": "^5.3.8",
47
- "@smithy/smithy-client": "^4.10.12",
47
+ "@smithy/smithy-client": "^4.11.1",
48
48
  "@smithy/types": "^4.12.0",
49
49
  "@smithy/url-parser": "^4.2.8",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.26",
54
- "@smithy/util-defaults-mode-node": "^4.2.29",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
54
+ "@smithy/util-defaults-mode-node": "^4.2.31",
55
55
  "@smithy/util-endpoints": "^3.2.8",
56
56
  "@smithy/util-middleware": "^4.2.8",
57
57
  "@smithy/util-retry": "^4.2.8",