@aws-sdk/client-sso 3.414.0 → 3.421.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/README.md CHANGED
@@ -38,16 +38,16 @@ using your favorite package manager:
38
38
 
39
39
  The AWS SDK is modulized by clients and commands.
40
40
  To send a request, you only need to import the `SSOClient` and
41
- the commands you need, for example `GetRoleCredentialsCommand`:
41
+ the commands you need, for example `ListAccountsCommand`:
42
42
 
43
43
  ```js
44
44
  // ES5 example
45
- const { SSOClient, GetRoleCredentialsCommand } = require("@aws-sdk/client-sso");
45
+ const { SSOClient, ListAccountsCommand } = require("@aws-sdk/client-sso");
46
46
  ```
47
47
 
48
48
  ```ts
49
49
  // ES6+ example
50
- import { SSOClient, GetRoleCredentialsCommand } from "@aws-sdk/client-sso";
50
+ import { SSOClient, ListAccountsCommand } from "@aws-sdk/client-sso";
51
51
  ```
52
52
 
53
53
  ### Usage
@@ -66,7 +66,7 @@ const client = new SSOClient({ region: "REGION" });
66
66
  const params = {
67
67
  /** input parameters */
68
68
  };
69
- const command = new GetRoleCredentialsCommand(params);
69
+ const command = new ListAccountsCommand(params);
70
70
  ```
71
71
 
72
72
  #### Async/await
@@ -145,7 +145,7 @@ const client = new AWS.SSO({ region: "REGION" });
145
145
 
146
146
  // async/await.
147
147
  try {
148
- const data = await client.getRoleCredentials(params);
148
+ const data = await client.listAccounts(params);
149
149
  // process data.
150
150
  } catch (error) {
151
151
  // error handling.
@@ -153,7 +153,7 @@ try {
153
153
 
154
154
  // Promises.
155
155
  client
156
- .getRoleCredentials(params)
156
+ .listAccounts(params)
157
157
  .then((data) => {
158
158
  // process data.
159
159
  })
@@ -162,7 +162,7 @@ client
162
162
  });
163
163
 
164
164
  // callbacks.
165
- client.getRoleCredentials(params, (err, data) => {
165
+ client.listAccounts(params, (err, data) => {
166
166
  // process err and data.
167
167
  });
168
168
  ```
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const models_0_1 = require("../models/models_0");
9
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
11
  class GetRoleCredentialsCommand extends smithy_client_1.Command {
@@ -33,6 +34,10 @@ class GetRoleCredentialsCommand extends smithy_client_1.Command {
33
34
  commandName,
34
35
  inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog,
35
36
  outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog,
37
+ [types_1.SMITHY_CONTEXT_KEY]: {
38
+ service: "SWBPortalService",
39
+ operation: "GetRoleCredentials",
40
+ },
36
41
  };
37
42
  const { requestHandler } = configuration;
38
43
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const models_0_1 = require("../models/models_0");
9
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
11
  class ListAccountRolesCommand extends smithy_client_1.Command {
@@ -33,6 +34,10 @@ class ListAccountRolesCommand extends smithy_client_1.Command {
33
34
  commandName,
34
35
  inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog,
35
36
  outputFilterSensitiveLog: (_) => _,
37
+ [types_1.SMITHY_CONTEXT_KEY]: {
38
+ service: "SWBPortalService",
39
+ operation: "ListAccountRoles",
40
+ },
36
41
  };
37
42
  const { requestHandler } = configuration;
38
43
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const models_0_1 = require("../models/models_0");
9
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
11
  class ListAccountsCommand extends smithy_client_1.Command {
@@ -33,6 +34,10 @@ class ListAccountsCommand extends smithy_client_1.Command {
33
34
  commandName,
34
35
  inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog,
35
36
  outputFilterSensitiveLog: (_) => _,
37
+ [types_1.SMITHY_CONTEXT_KEY]: {
38
+ service: "SWBPortalService",
39
+ operation: "ListAccounts",
40
+ },
36
41
  };
37
42
  const { requestHandler } = configuration;
38
43
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const models_0_1 = require("../models/models_0");
9
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
11
  class LogoutCommand extends smithy_client_1.Command {
@@ -33,6 +34,10 @@ class LogoutCommand extends smithy_client_1.Command {
33
34
  commandName,
34
35
  inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog,
35
36
  outputFilterSensitiveLog: (_) => _,
37
+ [types_1.SMITHY_CONTEXT_KEY]: {
38
+ service: "SWBPortalService",
39
+ operation: "Logout",
40
+ },
36
41
  };
37
42
  const { requestHandler } = configuration;
38
43
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { de_GetRoleCredentialsCommand, se_GetRoleCredentialsCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
@@ -30,6 +31,10 @@ export class GetRoleCredentialsCommand extends $Command {
30
31
  commandName,
31
32
  inputFilterSensitiveLog: GetRoleCredentialsRequestFilterSensitiveLog,
32
33
  outputFilterSensitiveLog: GetRoleCredentialsResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "SWBPortalService",
36
+ operation: "GetRoleCredentials",
37
+ },
33
38
  };
34
39
  const { requestHandler } = configuration;
35
40
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { ListAccountRolesRequestFilterSensitiveLog, } from "../models/models_0";
5
6
  import { de_ListAccountRolesCommand, se_ListAccountRolesCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
@@ -30,6 +31,10 @@ export class ListAccountRolesCommand extends $Command {
30
31
  commandName,
31
32
  inputFilterSensitiveLog: ListAccountRolesRequestFilterSensitiveLog,
32
33
  outputFilterSensitiveLog: (_) => _,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "SWBPortalService",
36
+ operation: "ListAccountRoles",
37
+ },
33
38
  };
34
39
  const { requestHandler } = configuration;
35
40
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { ListAccountsRequestFilterSensitiveLog } from "../models/models_0";
5
6
  import { de_ListAccountsCommand, se_ListAccountsCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
@@ -30,6 +31,10 @@ export class ListAccountsCommand extends $Command {
30
31
  commandName,
31
32
  inputFilterSensitiveLog: ListAccountsRequestFilterSensitiveLog,
32
33
  outputFilterSensitiveLog: (_) => _,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "SWBPortalService",
36
+ operation: "ListAccounts",
37
+ },
33
38
  };
34
39
  const { requestHandler } = configuration;
35
40
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { LogoutRequestFilterSensitiveLog } from "../models/models_0";
5
6
  import { de_LogoutCommand, se_LogoutCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
@@ -30,6 +31,10 @@ export class LogoutCommand extends $Command {
30
31
  commandName,
31
32
  inputFilterSensitiveLog: LogoutRequestFilterSensitiveLog,
32
33
  outputFilterSensitiveLog: (_) => _,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "SWBPortalService",
36
+ operation: "Logout",
37
+ },
33
38
  };
34
39
  const { requestHandler } = configuration;
35
40
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
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.414.0",
4
+ "version": "3.421.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,36 +21,36 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/middleware-host-header": "3.413.0",
25
- "@aws-sdk/middleware-logger": "3.413.0",
26
- "@aws-sdk/middleware-recursion-detection": "3.413.0",
27
- "@aws-sdk/middleware-user-agent": "3.413.0",
28
- "@aws-sdk/region-config-resolver": "3.413.0",
29
- "@aws-sdk/types": "3.413.0",
30
- "@aws-sdk/util-endpoints": "3.413.0",
31
- "@aws-sdk/util-user-agent-browser": "3.413.0",
32
- "@aws-sdk/util-user-agent-node": "3.413.0",
33
- "@smithy/config-resolver": "^2.0.8",
34
- "@smithy/fetch-http-handler": "^2.1.3",
35
- "@smithy/hash-node": "^2.0.7",
36
- "@smithy/invalid-dependency": "^2.0.7",
37
- "@smithy/middleware-content-length": "^2.0.9",
38
- "@smithy/middleware-endpoint": "^2.0.7",
39
- "@smithy/middleware-retry": "^2.0.10",
40
- "@smithy/middleware-serde": "^2.0.7",
41
- "@smithy/middleware-stack": "^2.0.0",
42
- "@smithy/node-config-provider": "^2.0.10",
43
- "@smithy/node-http-handler": "^2.1.3",
44
- "@smithy/protocol-http": "^3.0.3",
45
- "@smithy/smithy-client": "^2.1.4",
46
- "@smithy/types": "^2.3.1",
47
- "@smithy/url-parser": "^2.0.7",
24
+ "@aws-sdk/middleware-host-header": "3.418.0",
25
+ "@aws-sdk/middleware-logger": "3.418.0",
26
+ "@aws-sdk/middleware-recursion-detection": "3.418.0",
27
+ "@aws-sdk/middleware-user-agent": "3.418.0",
28
+ "@aws-sdk/region-config-resolver": "3.418.0",
29
+ "@aws-sdk/types": "3.418.0",
30
+ "@aws-sdk/util-endpoints": "3.418.0",
31
+ "@aws-sdk/util-user-agent-browser": "3.418.0",
32
+ "@aws-sdk/util-user-agent-node": "3.418.0",
33
+ "@smithy/config-resolver": "^2.0.10",
34
+ "@smithy/fetch-http-handler": "^2.1.5",
35
+ "@smithy/hash-node": "^2.0.9",
36
+ "@smithy/invalid-dependency": "^2.0.9",
37
+ "@smithy/middleware-content-length": "^2.0.11",
38
+ "@smithy/middleware-endpoint": "^2.0.9",
39
+ "@smithy/middleware-retry": "^2.0.12",
40
+ "@smithy/middleware-serde": "^2.0.9",
41
+ "@smithy/middleware-stack": "^2.0.2",
42
+ "@smithy/node-config-provider": "^2.0.12",
43
+ "@smithy/node-http-handler": "^2.1.5",
44
+ "@smithy/protocol-http": "^3.0.5",
45
+ "@smithy/smithy-client": "^2.1.6",
46
+ "@smithy/types": "^2.3.3",
47
+ "@smithy/url-parser": "^2.0.9",
48
48
  "@smithy/util-base64": "^2.0.0",
49
49
  "@smithy/util-body-length-browser": "^2.0.0",
50
50
  "@smithy/util-body-length-node": "^2.1.0",
51
- "@smithy/util-defaults-mode-browser": "^2.0.8",
52
- "@smithy/util-defaults-mode-node": "^2.0.10",
53
- "@smithy/util-retry": "^2.0.0",
51
+ "@smithy/util-defaults-mode-browser": "^2.0.10",
52
+ "@smithy/util-defaults-mode-node": "^2.0.12",
53
+ "@smithy/util-retry": "^2.0.2",
54
54
  "@smithy/util-utf8": "^2.0.0",
55
55
  "tslib": "^2.5.0"
56
56
  },