@aws-sdk/client-sso 3.183.0 → 3.186.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 +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/SSO.js +25 -18
- package/dist-es/SSOClient.js +26 -20
- package/dist-es/commands/GetRoleCredentialsCommand.js +28 -21
- package/dist-es/commands/ListAccountRolesCommand.js +28 -21
- package/dist-es/commands/ListAccountsCommand.js +28 -21
- package/dist-es/commands/LogoutCommand.js +29 -22
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SSOServiceException.js +10 -5
- package/dist-es/models/models_0.js +55 -81
- package/dist-es/pagination/ListAccountRolesPaginator.js +68 -25
- package/dist-es/pagination/ListAccountsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +468 -324
- package/dist-es/runtimeConfig.browser.js +12 -25
- package/dist-es/runtimeConfig.js +12 -29
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +30 -30
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-sso
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-sso
|
|
@@ -358,10 +358,10 @@ const deserializeAws_restJson1RoleListType = (output, context) => {
|
|
|
358
358
|
return retVal;
|
|
359
359
|
};
|
|
360
360
|
const deserializeMetadata = (output) => {
|
|
361
|
-
var _a;
|
|
361
|
+
var _a, _b;
|
|
362
362
|
return ({
|
|
363
363
|
httpStatusCode: output.statusCode,
|
|
364
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
364
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
365
365
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
366
366
|
cfId: output.headers["x-amz-cf-id"],
|
|
367
367
|
});
|
package/dist-es/SSO.js
CHANGED
|
@@ -1,63 +1,70 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { GetRoleCredentialsCommand, } from "./commands/GetRoleCredentialsCommand";
|
|
2
3
|
import { ListAccountRolesCommand, } from "./commands/ListAccountRolesCommand";
|
|
3
4
|
import { ListAccountsCommand, } from "./commands/ListAccountsCommand";
|
|
4
5
|
import { LogoutCommand } from "./commands/LogoutCommand";
|
|
5
6
|
import { SSOClient } from "./SSOClient";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
var SSO = (function (_super) {
|
|
8
|
+
__extends(SSO, _super);
|
|
9
|
+
function SSO() {
|
|
10
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
11
|
+
}
|
|
12
|
+
SSO.prototype.getRoleCredentials = function (args, optionsOrCb, cb) {
|
|
13
|
+
var command = new GetRoleCredentialsCommand(args);
|
|
9
14
|
if (typeof optionsOrCb === "function") {
|
|
10
15
|
this.send(command, optionsOrCb);
|
|
11
16
|
}
|
|
12
17
|
else if (typeof cb === "function") {
|
|
13
18
|
if (typeof optionsOrCb !== "object")
|
|
14
|
-
throw new Error(
|
|
19
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
15
20
|
this.send(command, optionsOrCb || {}, cb);
|
|
16
21
|
}
|
|
17
22
|
else {
|
|
18
23
|
return this.send(command, optionsOrCb);
|
|
19
24
|
}
|
|
20
|
-
}
|
|
21
|
-
listAccountRoles(args, optionsOrCb, cb) {
|
|
22
|
-
|
|
25
|
+
};
|
|
26
|
+
SSO.prototype.listAccountRoles = function (args, optionsOrCb, cb) {
|
|
27
|
+
var command = new ListAccountRolesCommand(args);
|
|
23
28
|
if (typeof optionsOrCb === "function") {
|
|
24
29
|
this.send(command, optionsOrCb);
|
|
25
30
|
}
|
|
26
31
|
else if (typeof cb === "function") {
|
|
27
32
|
if (typeof optionsOrCb !== "object")
|
|
28
|
-
throw new Error(
|
|
33
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
29
34
|
this.send(command, optionsOrCb || {}, cb);
|
|
30
35
|
}
|
|
31
36
|
else {
|
|
32
37
|
return this.send(command, optionsOrCb);
|
|
33
38
|
}
|
|
34
|
-
}
|
|
35
|
-
listAccounts(args, optionsOrCb, cb) {
|
|
36
|
-
|
|
39
|
+
};
|
|
40
|
+
SSO.prototype.listAccounts = function (args, optionsOrCb, cb) {
|
|
41
|
+
var command = new ListAccountsCommand(args);
|
|
37
42
|
if (typeof optionsOrCb === "function") {
|
|
38
43
|
this.send(command, optionsOrCb);
|
|
39
44
|
}
|
|
40
45
|
else if (typeof cb === "function") {
|
|
41
46
|
if (typeof optionsOrCb !== "object")
|
|
42
|
-
throw new Error(
|
|
47
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
43
48
|
this.send(command, optionsOrCb || {}, cb);
|
|
44
49
|
}
|
|
45
50
|
else {
|
|
46
51
|
return this.send(command, optionsOrCb);
|
|
47
52
|
}
|
|
48
|
-
}
|
|
49
|
-
logout(args, optionsOrCb, cb) {
|
|
50
|
-
|
|
53
|
+
};
|
|
54
|
+
SSO.prototype.logout = function (args, optionsOrCb, cb) {
|
|
55
|
+
var command = new LogoutCommand(args);
|
|
51
56
|
if (typeof optionsOrCb === "function") {
|
|
52
57
|
this.send(command, optionsOrCb);
|
|
53
58
|
}
|
|
54
59
|
else if (typeof cb === "function") {
|
|
55
60
|
if (typeof optionsOrCb !== "object")
|
|
56
|
-
throw new Error(
|
|
61
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
57
62
|
this.send(command, optionsOrCb || {}, cb);
|
|
58
63
|
}
|
|
59
64
|
else {
|
|
60
65
|
return this.send(command, optionsOrCb);
|
|
61
66
|
}
|
|
62
|
-
}
|
|
63
|
-
|
|
67
|
+
};
|
|
68
|
+
return SSO;
|
|
69
|
+
}(SSOClient));
|
|
70
|
+
export { SSO };
|
package/dist-es/SSOClient.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -7,24 +8,29 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
|
7
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
8
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
9
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
var SSOClient = (function (_super) {
|
|
12
|
+
__extends(SSOClient, _super);
|
|
13
|
+
function SSOClient(configuration) {
|
|
14
|
+
var _this = this;
|
|
15
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
16
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
17
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
18
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
19
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
20
|
+
var _config_5 = resolveUserAgentConfig(_config_4);
|
|
21
|
+
_this = _super.call(this, _config_5) || this;
|
|
22
|
+
_this.config = _config_5;
|
|
23
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
24
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
25
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
29
|
+
return _this;
|
|
26
30
|
}
|
|
27
|
-
destroy() {
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
+
SSOClient.prototype.destroy = function () {
|
|
32
|
+
_super.prototype.destroy.call(this);
|
|
33
|
+
};
|
|
34
|
+
return SSOClient;
|
|
35
|
+
}(__Client));
|
|
36
|
+
export { SSOClient };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1GetRoleCredentialsCommand, serializeAws_restJson1GetRoleCredentialsCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var GetRoleCredentialsCommand = (function (_super) {
|
|
7
|
+
__extends(GetRoleCredentialsCommand, _super);
|
|
8
|
+
function GetRoleCredentialsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
GetRoleCredentialsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "SSOClient";
|
|
18
|
+
var commandName = "GetRoleCredentialsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: GetRoleCredentialsRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: GetRoleCredentialsResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetRoleCredentialsCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1GetRoleCredentialsCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
GetRoleCredentialsCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1GetRoleCredentialsCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return GetRoleCredentialsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetRoleCredentialsCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ListAccountRolesRequestFilterSensitiveLog, ListAccountRolesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1ListAccountRolesCommand, serializeAws_restJson1ListAccountRolesCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var ListAccountRolesCommand = (function (_super) {
|
|
7
|
+
__extends(ListAccountRolesCommand, _super);
|
|
8
|
+
function ListAccountRolesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
ListAccountRolesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "SSOClient";
|
|
18
|
+
var commandName = "ListAccountRolesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: ListAccountRolesRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: ListAccountRolesResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListAccountRolesCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1ListAccountRolesCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
ListAccountRolesCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1ListAccountRolesCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return ListAccountRolesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListAccountRolesCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ListAccountsRequestFilterSensitiveLog, ListAccountsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1ListAccountsCommand, serializeAws_restJson1ListAccountsCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var ListAccountsCommand = (function (_super) {
|
|
7
|
+
__extends(ListAccountsCommand, _super);
|
|
8
|
+
function ListAccountsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
ListAccountsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "SSOClient";
|
|
18
|
+
var commandName = "ListAccountsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: ListAccountsRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: ListAccountsResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListAccountsCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1ListAccountsCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
ListAccountsCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1ListAccountsCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return ListAccountsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListAccountsCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { LogoutRequestFilterSensitiveLog } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1LogoutCommand, serializeAws_restJson1LogoutCommand } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var LogoutCommand = (function (_super) {
|
|
7
|
+
__extends(LogoutCommand, _super);
|
|
8
|
+
function LogoutCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
LogoutCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "SSOClient";
|
|
18
|
+
var commandName = "LogoutCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: LogoutRequestFilterSensitiveLog,
|
|
21
|
-
outputFilterSensitiveLog: (output)
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
LogoutCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1LogoutCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
LogoutCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1LogoutCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return LogoutCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { LogoutCommand };
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
|
-
|
|
3
|
+
var regionHash = {
|
|
3
4
|
"ap-east-1": {
|
|
4
5
|
variants: [
|
|
5
6
|
{
|
|
@@ -190,7 +191,7 @@ const regionHash = {
|
|
|
190
191
|
signingRegion: "us-west-2",
|
|
191
192
|
},
|
|
192
193
|
};
|
|
193
|
-
|
|
194
|
+
var partitionHash = {
|
|
194
195
|
aws: {
|
|
195
196
|
regions: [
|
|
196
197
|
"af-south-1",
|
|
@@ -310,9 +311,8 @@ const partitionHash = {
|
|
|
310
311
|
],
|
|
311
312
|
},
|
|
312
313
|
};
|
|
313
|
-
export
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
});
|
|
314
|
+
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
315
|
+
return __generator(this, function (_a) {
|
|
316
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "awsssoportal", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
317
|
+
});
|
|
318
|
+
}); };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var SSOServiceException = (function (_super) {
|
|
4
|
+
__extends(SSOServiceException, _super);
|
|
5
|
+
function SSOServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, SSOServiceException.prototype);
|
|
8
|
+
return _this;
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
return SSOServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { SSOServiceException };
|
|
@@ -1,87 +1,61 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
1
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
3
|
import { SSOServiceException as __BaseException } from "./SSOServiceException";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.$fault = "client";
|
|
12
|
-
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
4
|
+
var InvalidRequestException = (function (_super) {
|
|
5
|
+
__extends(InvalidRequestException, _super);
|
|
6
|
+
function InvalidRequestException(opts) {
|
|
7
|
+
var _this = _super.call(this, __assign({ name: "InvalidRequestException", $fault: "client" }, opts)) || this;
|
|
8
|
+
_this.name = "InvalidRequestException";
|
|
9
|
+
_this.$fault = "client";
|
|
10
|
+
Object.setPrototypeOf(_this, InvalidRequestException.prototype);
|
|
11
|
+
return _this;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
return InvalidRequestException;
|
|
14
|
+
}(__BaseException));
|
|
15
|
+
export { InvalidRequestException };
|
|
16
|
+
var ResourceNotFoundException = (function (_super) {
|
|
17
|
+
__extends(ResourceNotFoundException, _super);
|
|
18
|
+
function ResourceNotFoundException(opts) {
|
|
19
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
20
|
+
_this.name = "ResourceNotFoundException";
|
|
21
|
+
_this.$fault = "client";
|
|
22
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
23
|
+
return _this;
|
|
25
24
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
return ResourceNotFoundException;
|
|
26
|
+
}(__BaseException));
|
|
27
|
+
export { ResourceNotFoundException };
|
|
28
|
+
var TooManyRequestsException = (function (_super) {
|
|
29
|
+
__extends(TooManyRequestsException, _super);
|
|
30
|
+
function TooManyRequestsException(opts) {
|
|
31
|
+
var _this = _super.call(this, __assign({ name: "TooManyRequestsException", $fault: "client" }, opts)) || this;
|
|
32
|
+
_this.name = "TooManyRequestsException";
|
|
33
|
+
_this.$fault = "client";
|
|
34
|
+
Object.setPrototypeOf(_this, TooManyRequestsException.prototype);
|
|
35
|
+
return _this;
|
|
37
36
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
37
|
+
return TooManyRequestsException;
|
|
38
|
+
}(__BaseException));
|
|
39
|
+
export { TooManyRequestsException };
|
|
40
|
+
var UnauthorizedException = (function (_super) {
|
|
41
|
+
__extends(UnauthorizedException, _super);
|
|
42
|
+
function UnauthorizedException(opts) {
|
|
43
|
+
var _this = _super.call(this, __assign({ name: "UnauthorizedException", $fault: "client" }, opts)) || this;
|
|
44
|
+
_this.name = "UnauthorizedException";
|
|
45
|
+
_this.$fault = "client";
|
|
46
|
+
Object.setPrototypeOf(_this, UnauthorizedException.prototype);
|
|
47
|
+
return _this;
|
|
49
48
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
});
|
|
54
|
-
export
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
});
|
|
58
|
-
export
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
});
|
|
63
|
-
export const GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({
|
|
64
|
-
...obj,
|
|
65
|
-
...(obj.roleCredentials && { roleCredentials: RoleCredentialsFilterSensitiveLog(obj.roleCredentials) }),
|
|
66
|
-
});
|
|
67
|
-
export const ListAccountRolesRequestFilterSensitiveLog = (obj) => ({
|
|
68
|
-
...obj,
|
|
69
|
-
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
70
|
-
});
|
|
71
|
-
export const RoleInfoFilterSensitiveLog = (obj) => ({
|
|
72
|
-
...obj,
|
|
73
|
-
});
|
|
74
|
-
export const ListAccountRolesResponseFilterSensitiveLog = (obj) => ({
|
|
75
|
-
...obj,
|
|
76
|
-
});
|
|
77
|
-
export const ListAccountsRequestFilterSensitiveLog = (obj) => ({
|
|
78
|
-
...obj,
|
|
79
|
-
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
80
|
-
});
|
|
81
|
-
export const ListAccountsResponseFilterSensitiveLog = (obj) => ({
|
|
82
|
-
...obj,
|
|
83
|
-
});
|
|
84
|
-
export const LogoutRequestFilterSensitiveLog = (obj) => ({
|
|
85
|
-
...obj,
|
|
86
|
-
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
87
|
-
});
|
|
49
|
+
return UnauthorizedException;
|
|
50
|
+
}(__BaseException));
|
|
51
|
+
export { UnauthorizedException };
|
|
52
|
+
export var AccountInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
53
|
+
export var GetRoleCredentialsRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
54
|
+
export var RoleCredentialsFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING })), (obj.sessionToken && { sessionToken: SENSITIVE_STRING }))); };
|
|
55
|
+
export var GetRoleCredentialsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.roleCredentials && { roleCredentials: RoleCredentialsFilterSensitiveLog(obj.roleCredentials) }))); };
|
|
56
|
+
export var ListAccountRolesRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
57
|
+
export var RoleInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
58
|
+
export var ListAccountRolesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
59
|
+
export var ListAccountsRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
60
|
+
export var ListAccountsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
61
|
+
export var LogoutRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|