@aws-sdk/client-sso 3.32.0 → 3.36.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/CHANGELOG.md +44 -0
- package/{dist/cjs → dist-cjs}/SSO.js +1 -2
- package/{dist/cjs → dist-cjs}/SSOClient.js +7 -8
- package/{dist/cjs → dist-cjs}/commands/GetRoleCredentialsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListAccountRolesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListAccountsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/LogoutCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListAccountRolesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListAccountsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +4 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/SSO.js +2 -21
- package/{dist/es → dist-es}/SSOClient.js +2 -26
- package/{dist/es → dist-es}/commands/GetRoleCredentialsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/ListAccountRolesCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListAccountsCommand.js +4 -32
- package/{dist/es → dist-es}/commands/LogoutCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -43
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListAccountRolesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListAccountsPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +96 -102
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/SSO.d.ts +2 -2
- package/{dist/types → dist-types}/SSOClient.d.ts +5 -5
- package/{dist/types → dist-types}/commands/GetRoleCredentialsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListAccountRolesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListAccountsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/LogoutCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAccountRolesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAccountsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/SSO.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/SSOClient.d.ts +5 -5
- package/{dist/types → dist-types}/ts3.4/commands/GetRoleCredentialsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListAccountRolesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListAccountsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/LogoutCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAccountRolesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAccountsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +49 -46
- package/SSO.ts +0 -160
- package/SSOClient.ts +0 -245
- package/commands/GetRoleCredentialsCommand.ts +0 -95
- package/commands/ListAccountRolesCommand.ts +0 -94
- package/commands/ListAccountsCommand.ts +0 -96
- package/commands/LogoutCommand.ts +0 -87
- package/dist/cjs/SSO.js.map +0 -1
- package/dist/cjs/SSOClient.js.map +0 -1
- package/dist/cjs/commands/GetRoleCredentialsCommand.js.map +0 -1
- package/dist/cjs/commands/ListAccountRolesCommand.js.map +0 -1
- package/dist/cjs/commands/ListAccountsCommand.js.map +0 -1
- package/dist/cjs/commands/LogoutCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -88
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListAccountRolesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListAccountsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/SSO.js.map +0 -1
- package/dist/es/SSOClient.js.map +0 -1
- package/dist/es/commands/GetRoleCredentialsCommand.js.map +0 -1
- package/dist/es/commands/ListAccountRolesCommand.js.map +0 -1
- package/dist/es/commands/ListAccountsCommand.js.map +0 -1
- package/dist/es/commands/LogoutCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -11
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -88
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListAccountRolesPaginator.js.map +0 -1
- package/dist/es/pagination/ListAccountsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -94
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -334
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListAccountRolesPaginator.ts +0 -58
- package/pagination/ListAccountsPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -621
- package/runtimeConfig.browser.ts +0 -38
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -41
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
|
|
12
|
+
* **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
|
|
13
|
+
* **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **clients:** eslint --fix using esprint ([#2849](https://github.com/aws/aws-sdk-js-v3/issues/2849)) ([94d0a2d](https://github.com/aws/aws-sdk-js-v3/commit/94d0a2d8a0579ee0a742337937ad05735cfbc1ba))
|
|
25
|
+
* **clients:** move source files to 'src' folder ([#2845](https://github.com/aws/aws-sdk-js-v3/issues/2845)) ([e0025cd](https://github.com/aws/aws-sdk-js-v3/commit/e0025cddbba244a41ddf1fd1adb761142e15c22d))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* **clients:** remove comments from transpiled JS files ([#2817](https://github.com/aws/aws-sdk-js-v3/issues/2817)) ([d01420b](https://github.com/aws/aws-sdk-js-v3/commit/d01420b247966c8ec84c1dd0a1b42512ede10c90))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# [3.33.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.32.0...v3.33.0) (2021-09-21)
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @aws-sdk/client-sso
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
# [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
|
|
7
51
|
|
|
8
52
|
**Note:** Version bump only for package @aws-sdk/client-sso
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SSO = void 0;
|
|
4
|
-
const SSOClient_1 = require("./SSOClient");
|
|
5
4
|
const GetRoleCredentialsCommand_1 = require("./commands/GetRoleCredentialsCommand");
|
|
6
5
|
const ListAccountRolesCommand_1 = require("./commands/ListAccountRolesCommand");
|
|
7
6
|
const ListAccountsCommand_1 = require("./commands/ListAccountsCommand");
|
|
8
7
|
const LogoutCommand_1 = require("./commands/LogoutCommand");
|
|
8
|
+
const SSOClient_1 = require("./SSOClient");
|
|
9
9
|
/**
|
|
10
10
|
* <p>AWS Single Sign-On Portal is a web service that makes it easy for you to assign user
|
|
11
11
|
* access to AWS SSO resources such as the user portal. Users can get AWS account applications
|
|
@@ -83,4 +83,3 @@ class SSO extends SSOClient_1.SSOClient {
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
exports.SSO = SSO;
|
|
86
|
-
//# sourceMappingURL=SSO.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SSOClient = void 0;
|
|
4
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
5
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
6
5
|
const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
|
|
7
6
|
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
@@ -9,6 +8,7 @@ const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
|
9
8
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
10
9
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
11
10
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
11
|
+
const runtimeConfig_1 = require("./runtimeConfig");
|
|
12
12
|
/**
|
|
13
13
|
* <p>AWS Single Sign-On Portal is a web service that makes it easy for you to assign user
|
|
14
14
|
* access to AWS SSO resources such as the user portal. Users can get AWS account applications
|
|
@@ -29,12 +29,12 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
29
29
|
*/
|
|
30
30
|
class SSOClient extends smithy_client_1.Client {
|
|
31
31
|
constructor(configuration) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
33
|
+
const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
|
|
34
|
+
const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
|
|
35
|
+
const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
|
|
36
|
+
const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
|
|
37
|
+
const _config_5 = middleware_user_agent_1.resolveUserAgentConfig(_config_4);
|
|
38
38
|
super(_config_5);
|
|
39
39
|
this.config = _config_5;
|
|
40
40
|
this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
|
|
@@ -53,4 +53,3 @@ class SSOClient extends smithy_client_1.Client {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
exports.SSOClient = SSOClient;
|
|
56
|
-
//# sourceMappingURL=SSOClient.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetRoleCredentialsCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
8
|
/**
|
|
9
9
|
* <p>Returns the STS short-term credentials for a given role name that is assigned to the
|
|
10
10
|
* user.</p>
|
|
@@ -59,4 +59,3 @@ class GetRoleCredentialsCommand extends smithy_client_1.Command {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;
|
|
62
|
-
//# sourceMappingURL=GetRoleCredentialsCommand.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ListAccountRolesCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
8
|
/**
|
|
9
9
|
* <p>Lists all roles that are assigned to the user for a given AWS account.</p>
|
|
10
10
|
* @example
|
|
@@ -58,4 +58,3 @@ class ListAccountRolesCommand extends smithy_client_1.Command {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
exports.ListAccountRolesCommand = ListAccountRolesCommand;
|
|
61
|
-
//# sourceMappingURL=ListAccountRolesCommand.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ListAccountsCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
8
|
/**
|
|
9
9
|
* <p>Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the
|
|
10
10
|
* administrator of the account. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/useraccess.html#assignusers">Assign User Access</a> in the <i>AWS SSO User Guide</i>. This operation
|
|
@@ -60,4 +60,3 @@ class ListAccountsCommand extends smithy_client_1.Command {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
exports.ListAccountsCommand = ListAccountsCommand;
|
|
63
|
-
//# sourceMappingURL=ListAccountsCommand.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LogoutCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
8
|
/**
|
|
9
9
|
* <p>Removes the client- and server-side session that is associated with the user.</p>
|
|
10
10
|
* @example
|
|
@@ -58,4 +58,3 @@ class LogoutCommand extends smithy_client_1.Command {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
exports.LogoutCommand = LogoutCommand;
|
|
61
|
-
//# sourceMappingURL=LogoutCommand.js.map
|
|
@@ -11,4 +11,3 @@ tslib_1.__exportStar(require("./pagination/ListAccountsPaginator"), exports);
|
|
|
11
11
|
tslib_1.__exportStar(require("./commands/LogoutCommand"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./models/index"), exports);
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAccountRoles = void 0;
|
|
4
|
+
const ListAccountRolesCommand_1 = require("../commands/ListAccountRolesCommand");
|
|
4
5
|
const SSO_1 = require("../SSO");
|
|
5
6
|
const SSOClient_1 = require("../SSOClient");
|
|
6
|
-
const ListAccountRolesCommand_1 = require("../commands/ListAccountRolesCommand");
|
|
7
7
|
/**
|
|
8
8
|
* @private
|
|
9
9
|
*/
|
|
@@ -43,4 +43,3 @@ async function* paginateListAccountRoles(config, input, ...additionalArguments)
|
|
|
43
43
|
return undefined;
|
|
44
44
|
}
|
|
45
45
|
exports.paginateListAccountRoles = paginateListAccountRoles;
|
|
46
|
-
//# sourceMappingURL=ListAccountRolesPaginator.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAccounts = void 0;
|
|
4
|
+
const ListAccountsCommand_1 = require("../commands/ListAccountsCommand");
|
|
4
5
|
const SSO_1 = require("../SSO");
|
|
5
6
|
const SSOClient_1 = require("../SSOClient");
|
|
6
|
-
const ListAccountsCommand_1 = require("../commands/ListAccountsCommand");
|
|
7
7
|
/**
|
|
8
8
|
* @private
|
|
9
9
|
*/
|
|
@@ -43,4 +43,3 @@ async function* paginateListAccounts(config, input, ...additionalArguments) {
|
|
|
43
43
|
return undefined;
|
|
44
44
|
}
|
|
45
45
|
exports.paginateListAccounts = paginateListAccounts;
|
|
46
|
-
//# sourceMappingURL=ListAccountsPaginator.js.map
|
|
@@ -8,7 +8,7 @@ const serializeAws_restJson1GetRoleCredentialsCommand = async (input, context) =
|
|
|
8
8
|
const headers = {
|
|
9
9
|
...(isSerializableHeaderValue(input.accessToken) && { "x-amz-sso_bearer_token": input.accessToken }),
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/federation/credentials";
|
|
12
12
|
const query = {
|
|
13
13
|
...(input.roleName !== undefined && { role_name: input.roleName }),
|
|
14
14
|
...(input.accountId !== undefined && { account_id: input.accountId }),
|
|
@@ -31,7 +31,7 @@ const serializeAws_restJson1ListAccountRolesCommand = async (input, context) =>
|
|
|
31
31
|
const headers = {
|
|
32
32
|
...(isSerializableHeaderValue(input.accessToken) && { "x-amz-sso_bearer_token": input.accessToken }),
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/roles";
|
|
35
35
|
const query = {
|
|
36
36
|
...(input.nextToken !== undefined && { next_token: input.nextToken }),
|
|
37
37
|
...(input.maxResults !== undefined && { max_result: input.maxResults.toString() }),
|
|
@@ -55,7 +55,7 @@ const serializeAws_restJson1ListAccountsCommand = async (input, context) => {
|
|
|
55
55
|
const headers = {
|
|
56
56
|
...(isSerializableHeaderValue(input.accessToken) && { "x-amz-sso_bearer_token": input.accessToken }),
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/accounts";
|
|
59
59
|
const query = {
|
|
60
60
|
...(input.nextToken !== undefined && { next_token: input.nextToken }),
|
|
61
61
|
...(input.maxResults !== undefined && { max_result: input.maxResults.toString() }),
|
|
@@ -78,7 +78,7 @@ const serializeAws_restJson1LogoutCommand = async (input, context) => {
|
|
|
78
78
|
const headers = {
|
|
79
79
|
...(isSerializableHeaderValue(input.accessToken) && { "x-amz-sso_bearer_token": input.accessToken }),
|
|
80
80
|
};
|
|
81
|
-
|
|
81
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/logout";
|
|
82
82
|
let body;
|
|
83
83
|
return new protocol_http_1.HttpRequest({
|
|
84
84
|
protocol,
|
|
@@ -524,4 +524,3 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
524
524
|
}
|
|
525
525
|
return "";
|
|
526
526
|
};
|
|
527
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
|
|
5
|
+
// @ts-ignore: package.json will be imported from dist folders
|
|
6
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
|
|
6
7
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
8
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
@@ -37,4 +38,3 @@ const getRuntimeConfig = (config) => {
|
|
|
37
38
|
};
|
|
38
39
|
};
|
|
39
40
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
40
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
|
|
5
|
+
// @ts-ignore: package.json will be imported from dist folders
|
|
6
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
|
|
6
7
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const hash_node_1 = require("@aws-sdk/hash-node");
|
|
8
9
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
@@ -40,4 +41,3 @@ const getRuntimeConfig = (config) => {
|
|
|
40
41
|
};
|
|
41
42
|
};
|
|
42
43
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
43
|
-
//# sourceMappingURL=runtimeConfig.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const endpoints_1 = require("./endpoints");
|
|
5
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
+
const endpoints_1 = require("./endpoints");
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
@@ -18,4 +18,3 @@ const getRuntimeConfig = (config) => {
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
21
|
-
//# sourceMappingURL=runtimeConfig.shared.js.map
|
|
@@ -1,28 +1,10 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { SSOClient } from "./SSOClient";
|
|
3
2
|
import { GetRoleCredentialsCommand, } from "./commands/GetRoleCredentialsCommand";
|
|
4
3
|
import { ListAccountRolesCommand, } from "./commands/ListAccountRolesCommand";
|
|
5
4
|
import { ListAccountsCommand, } from "./commands/ListAccountsCommand";
|
|
6
5
|
import { LogoutCommand } from "./commands/LogoutCommand";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* access to AWS SSO resources such as the user portal. Users can get AWS account applications
|
|
10
|
-
* and roles assigned to them and get federated into the application.</p>
|
|
11
|
-
*
|
|
12
|
-
* <p>For general information about AWS SSO, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is AWS
|
|
13
|
-
* Single Sign-On?</a> in the <i>AWS SSO User Guide</i>.</p>
|
|
14
|
-
*
|
|
15
|
-
* <p>This API reference guide describes the AWS SSO Portal operations that you can call
|
|
16
|
-
* programatically and includes detailed information on data types and errors.</p>
|
|
17
|
-
*
|
|
18
|
-
* <note>
|
|
19
|
-
* <p>AWS provides SDKs that consist of libraries and sample code for various programming
|
|
20
|
-
* languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a
|
|
21
|
-
* convenient way to create programmatic access to AWS SSO and other AWS services. For more
|
|
22
|
-
* information about the AWS SDKs, including how to download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
|
|
23
|
-
* </note>
|
|
24
|
-
*/
|
|
25
|
-
var SSO = /** @class */ (function (_super) {
|
|
6
|
+
import { SSOClient } from "./SSOClient";
|
|
7
|
+
var SSO = (function (_super) {
|
|
26
8
|
__extends(SSO, _super);
|
|
27
9
|
function SSO() {
|
|
28
10
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -86,4 +68,3 @@ var SSO = /** @class */ (function (_super) {
|
|
|
86
68
|
return SSO;
|
|
87
69
|
}(SSOClient));
|
|
88
70
|
export { SSO };
|
|
89
|
-
//# sourceMappingURL=SSO.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
3
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
4
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
5
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -7,25 +6,8 @@ import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
|
7
6
|
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
8
7
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
8
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* access to AWS SSO resources such as the user portal. Users can get AWS account applications
|
|
13
|
-
* and roles assigned to them and get federated into the application.</p>
|
|
14
|
-
*
|
|
15
|
-
* <p>For general information about AWS SSO, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is AWS
|
|
16
|
-
* Single Sign-On?</a> in the <i>AWS SSO User Guide</i>.</p>
|
|
17
|
-
*
|
|
18
|
-
* <p>This API reference guide describes the AWS SSO Portal operations that you can call
|
|
19
|
-
* programatically and includes detailed information on data types and errors.</p>
|
|
20
|
-
*
|
|
21
|
-
* <note>
|
|
22
|
-
* <p>AWS provides SDKs that consist of libraries and sample code for various programming
|
|
23
|
-
* languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a
|
|
24
|
-
* convenient way to create programmatic access to AWS SSO and other AWS services. For more
|
|
25
|
-
* information about the AWS SDKs, including how to download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
|
|
26
|
-
* </note>
|
|
27
|
-
*/
|
|
28
|
-
var SSOClient = /** @class */ (function (_super) {
|
|
9
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
10
|
+
var SSOClient = (function (_super) {
|
|
29
11
|
__extends(SSOClient, _super);
|
|
30
12
|
function SSOClient(configuration) {
|
|
31
13
|
var _this = this;
|
|
@@ -44,15 +26,9 @@ var SSOClient = /** @class */ (function (_super) {
|
|
|
44
26
|
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
45
27
|
return _this;
|
|
46
28
|
}
|
|
47
|
-
/**
|
|
48
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
49
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
50
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
51
|
-
*/
|
|
52
29
|
SSOClient.prototype.destroy = function () {
|
|
53
30
|
_super.prototype.destroy.call(this);
|
|
54
31
|
};
|
|
55
32
|
return SSOClient;
|
|
56
33
|
}(__Client));
|
|
57
34
|
export { SSOClient };
|
|
58
|
-
//# sourceMappingURL=SSOClient.js.map
|
|
@@ -1,41 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { GetRoleCredentialsRequest, GetRoleCredentialsResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_restJson1GetRoleCredentialsCommand, serializeAws_restJson1GetRoleCredentialsCommand, } from "../protocols/Aws_restJson1";
|
|
4
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* @example
|
|
10
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
11
|
-
* ```javascript
|
|
12
|
-
* import { SSOClient, GetRoleCredentialsCommand } from "@aws-sdk/client-sso"; // ES Modules import
|
|
13
|
-
* // const { SSOClient, GetRoleCredentialsCommand } = require("@aws-sdk/client-sso"); // CommonJS import
|
|
14
|
-
* const client = new SSOClient(config);
|
|
15
|
-
* const command = new GetRoleCredentialsCommand(input);
|
|
16
|
-
* const response = await client.send(command);
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @see {@link GetRoleCredentialsCommandInput} for command's `input` shape.
|
|
20
|
-
* @see {@link GetRoleCredentialsCommandOutput} for command's `response` shape.
|
|
21
|
-
* @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
var GetRoleCredentialsCommand = /** @class */ (function (_super) {
|
|
4
|
+
import { GetRoleCredentialsRequest, GetRoleCredentialsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetRoleCredentialsCommand, serializeAws_restJson1GetRoleCredentialsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetRoleCredentialsCommand = (function (_super) {
|
|
25
7
|
__extends(GetRoleCredentialsCommand, _super);
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
8
|
function GetRoleCredentialsCommand(input) {
|
|
29
|
-
var _this =
|
|
30
|
-
// Start section: command_constructor
|
|
31
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
32
10
|
_this.input = input;
|
|
33
11
|
return _this;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
GetRoleCredentialsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -63,4 +37,3 @@ var GetRoleCredentialsCommand = /** @class */ (function (_super) {
|
|
|
63
37
|
return GetRoleCredentialsCommand;
|
|
64
38
|
}($Command));
|
|
65
39
|
export { GetRoleCredentialsCommand };
|
|
66
|
-
//# sourceMappingURL=GetRoleCredentialsCommand.js.map
|
|
@@ -1,40 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { ListAccountRolesRequest, ListAccountRolesResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_restJson1ListAccountRolesCommand, serializeAws_restJson1ListAccountRolesCommand, } from "../protocols/Aws_restJson1";
|
|
4
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
10
|
-
* ```javascript
|
|
11
|
-
* import { SSOClient, ListAccountRolesCommand } from "@aws-sdk/client-sso"; // ES Modules import
|
|
12
|
-
* // const { SSOClient, ListAccountRolesCommand } = require("@aws-sdk/client-sso"); // CommonJS import
|
|
13
|
-
* const client = new SSOClient(config);
|
|
14
|
-
* const command = new ListAccountRolesCommand(input);
|
|
15
|
-
* const response = await client.send(command);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link ListAccountRolesCommandInput} for command's `input` shape.
|
|
19
|
-
* @see {@link ListAccountRolesCommandOutput} for command's `response` shape.
|
|
20
|
-
* @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var ListAccountRolesCommand = /** @class */ (function (_super) {
|
|
4
|
+
import { ListAccountRolesRequest, ListAccountRolesResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListAccountRolesCommand, serializeAws_restJson1ListAccountRolesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListAccountRolesCommand = (function (_super) {
|
|
24
7
|
__extends(ListAccountRolesCommand, _super);
|
|
25
|
-
// Start section: command_properties
|
|
26
|
-
// End section: command_properties
|
|
27
8
|
function ListAccountRolesCommand(input) {
|
|
28
|
-
var _this =
|
|
29
|
-
// Start section: command_constructor
|
|
30
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
31
10
|
_this.input = input;
|
|
32
11
|
return _this;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
ListAccountRolesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -62,4 +37,3 @@ var ListAccountRolesCommand = /** @class */ (function (_super) {
|
|
|
62
37
|
return ListAccountRolesCommand;
|
|
63
38
|
}($Command));
|
|
64
39
|
export { ListAccountRolesCommand };
|
|
65
|
-
//# sourceMappingURL=ListAccountRolesCommand.js.map
|
|
@@ -1,42 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { ListAccountsRequest, ListAccountsResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_restJson1ListAccountsCommand, serializeAws_restJson1ListAccountsCommand, } from "../protocols/Aws_restJson1";
|
|
4
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* returns a paginated response.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { SSOClient, ListAccountsCommand } from "@aws-sdk/client-sso"; // ES Modules import
|
|
14
|
-
* // const { SSOClient, ListAccountsCommand } = require("@aws-sdk/client-sso"); // CommonJS import
|
|
15
|
-
* const client = new SSOClient(config);
|
|
16
|
-
* const command = new ListAccountsCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link ListAccountsCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link ListAccountsCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
var ListAccountsCommand = /** @class */ (function (_super) {
|
|
4
|
+
import { ListAccountsRequest, ListAccountsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListAccountsCommand, serializeAws_restJson1ListAccountsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListAccountsCommand = (function (_super) {
|
|
26
7
|
__extends(ListAccountsCommand, _super);
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
8
|
function ListAccountsCommand(input) {
|
|
30
|
-
var _this =
|
|
31
|
-
// Start section: command_constructor
|
|
32
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
33
10
|
_this.input = input;
|
|
34
11
|
return _this;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
ListAccountsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -64,4 +37,3 @@ var ListAccountsCommand = /** @class */ (function (_super) {
|
|
|
64
37
|
return ListAccountsCommand;
|
|
65
38
|
}($Command));
|
|
66
39
|
export { ListAccountsCommand };
|
|
67
|
-
//# sourceMappingURL=ListAccountsCommand.js.map
|
|
@@ -1,40 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { LogoutRequest } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_restJson1LogoutCommand, serializeAws_restJson1LogoutCommand } from "../protocols/Aws_restJson1";
|
|
4
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
10
|
-
* ```javascript
|
|
11
|
-
* import { SSOClient, LogoutCommand } from "@aws-sdk/client-sso"; // ES Modules import
|
|
12
|
-
* // const { SSOClient, LogoutCommand } = require("@aws-sdk/client-sso"); // CommonJS import
|
|
13
|
-
* const client = new SSOClient(config);
|
|
14
|
-
* const command = new LogoutCommand(input);
|
|
15
|
-
* const response = await client.send(command);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link LogoutCommandInput} for command's `input` shape.
|
|
19
|
-
* @see {@link LogoutCommandOutput} for command's `response` shape.
|
|
20
|
-
* @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var LogoutCommand = /** @class */ (function (_super) {
|
|
4
|
+
import { LogoutRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1LogoutCommand, serializeAws_restJson1LogoutCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
var LogoutCommand = (function (_super) {
|
|
24
7
|
__extends(LogoutCommand, _super);
|
|
25
|
-
// Start section: command_properties
|
|
26
|
-
// End section: command_properties
|
|
27
8
|
function LogoutCommand(input) {
|
|
28
|
-
var _this =
|
|
29
|
-
// Start section: command_constructor
|
|
30
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
31
10
|
_this.input = input;
|
|
32
11
|
return _this;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
LogoutCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -62,4 +37,3 @@ var LogoutCommand = /** @class */ (function (_super) {
|
|
|
62
37
|
return LogoutCommand;
|
|
63
38
|
}($Command));
|
|
64
39
|
export { LogoutCommand };
|
|
65
|
-
//# sourceMappingURL=LogoutCommand.js.map
|