@aws-sdk/client-sso 3.186.0 → 3.188.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 +8 -0
- package/dist-es/SSO.js +18 -25
- package/dist-es/SSOClient.js +20 -26
- package/dist-es/commands/GetRoleCredentialsCommand.js +21 -28
- package/dist-es/commands/ListAccountRolesCommand.js +21 -28
- package/dist-es/commands/ListAccountsCommand.js +21 -28
- package/dist-es/commands/LogoutCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SSOServiceException.js +5 -10
- package/dist-es/models/models_0.js +81 -55
- package/dist-es/pagination/ListAccountRolesPaginator.js +25 -68
- package/dist-es/pagination/ListAccountsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +324 -468
- package/dist-es/runtimeConfig.browser.js +25 -12
- package/dist-es/runtimeConfig.js +29 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +30 -30
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-sso
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @aws-sdk/client-sso
|
package/dist-es/SSO.js
CHANGED
|
@@ -1,70 +1,63 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { GetRoleCredentialsCommand, } from "./commands/GetRoleCredentialsCommand";
|
|
3
2
|
import { ListAccountRolesCommand, } from "./commands/ListAccountRolesCommand";
|
|
4
3
|
import { ListAccountsCommand, } from "./commands/ListAccountsCommand";
|
|
5
4
|
import { LogoutCommand } from "./commands/LogoutCommand";
|
|
6
5
|
import { SSOClient } from "./SSOClient";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
11
|
-
}
|
|
12
|
-
SSO.prototype.getRoleCredentials = function (args, optionsOrCb, cb) {
|
|
13
|
-
var command = new GetRoleCredentialsCommand(args);
|
|
6
|
+
export class SSO extends SSOClient {
|
|
7
|
+
getRoleCredentials(args, optionsOrCb, cb) {
|
|
8
|
+
const command = new GetRoleCredentialsCommand(args);
|
|
14
9
|
if (typeof optionsOrCb === "function") {
|
|
15
10
|
this.send(command, optionsOrCb);
|
|
16
11
|
}
|
|
17
12
|
else if (typeof cb === "function") {
|
|
18
13
|
if (typeof optionsOrCb !== "object")
|
|
19
|
-
throw new Error(
|
|
14
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
20
15
|
this.send(command, optionsOrCb || {}, cb);
|
|
21
16
|
}
|
|
22
17
|
else {
|
|
23
18
|
return this.send(command, optionsOrCb);
|
|
24
19
|
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
}
|
|
21
|
+
listAccountRoles(args, optionsOrCb, cb) {
|
|
22
|
+
const command = new ListAccountRolesCommand(args);
|
|
28
23
|
if (typeof optionsOrCb === "function") {
|
|
29
24
|
this.send(command, optionsOrCb);
|
|
30
25
|
}
|
|
31
26
|
else if (typeof cb === "function") {
|
|
32
27
|
if (typeof optionsOrCb !== "object")
|
|
33
|
-
throw new Error(
|
|
28
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
34
29
|
this.send(command, optionsOrCb || {}, cb);
|
|
35
30
|
}
|
|
36
31
|
else {
|
|
37
32
|
return this.send(command, optionsOrCb);
|
|
38
33
|
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
}
|
|
35
|
+
listAccounts(args, optionsOrCb, cb) {
|
|
36
|
+
const command = new ListAccountsCommand(args);
|
|
42
37
|
if (typeof optionsOrCb === "function") {
|
|
43
38
|
this.send(command, optionsOrCb);
|
|
44
39
|
}
|
|
45
40
|
else if (typeof cb === "function") {
|
|
46
41
|
if (typeof optionsOrCb !== "object")
|
|
47
|
-
throw new Error(
|
|
42
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
48
43
|
this.send(command, optionsOrCb || {}, cb);
|
|
49
44
|
}
|
|
50
45
|
else {
|
|
51
46
|
return this.send(command, optionsOrCb);
|
|
52
47
|
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
}
|
|
49
|
+
logout(args, optionsOrCb, cb) {
|
|
50
|
+
const command = new LogoutCommand(args);
|
|
56
51
|
if (typeof optionsOrCb === "function") {
|
|
57
52
|
this.send(command, optionsOrCb);
|
|
58
53
|
}
|
|
59
54
|
else if (typeof cb === "function") {
|
|
60
55
|
if (typeof optionsOrCb !== "object")
|
|
61
|
-
throw new Error(
|
|
56
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
62
57
|
this.send(command, optionsOrCb || {}, cb);
|
|
63
58
|
}
|
|
64
59
|
else {
|
|
65
60
|
return this.send(command, optionsOrCb);
|
|
66
61
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
}(SSOClient));
|
|
70
|
-
export { SSO };
|
|
62
|
+
}
|
|
63
|
+
}
|
package/dist-es/SSOClient.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,29 +7,24 @@ 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
9
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
28
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
29
|
-
return _this;
|
|
10
|
+
export class SSOClient extends __Client {
|
|
11
|
+
constructor(configuration) {
|
|
12
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
13
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
14
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
15
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
16
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
17
|
+
const _config_5 = resolveUserAgentConfig(_config_4);
|
|
18
|
+
super(_config_5);
|
|
19
|
+
this.config = _config_5;
|
|
20
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
21
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
22
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
30
26
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}(__Client));
|
|
36
|
-
export { SSOClient };
|
|
27
|
+
destroy() {
|
|
28
|
+
super.destroy();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1GetRoleCredentialsCommand, serializeAws_restJson1GetRoleCredentialsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class GetRoleCredentialsCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "SSOClient";
|
|
15
|
+
const commandName = "GetRoleCredentialsCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: GetRoleCredentialsRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: GetRoleCredentialsResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
GetRoleCredentialsCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1GetRoleCredentialsCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1GetRoleCredentialsCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { GetRoleCredentialsCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { ListAccountRolesRequestFilterSensitiveLog, ListAccountRolesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1ListAccountRolesCommand, serializeAws_restJson1ListAccountRolesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class ListAccountRolesCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "SSOClient";
|
|
15
|
+
const commandName = "ListAccountRolesCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: ListAccountRolesRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: ListAccountRolesResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
ListAccountRolesCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1ListAccountRolesCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1ListAccountRolesCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { ListAccountRolesCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { ListAccountsRequestFilterSensitiveLog, ListAccountsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1ListAccountsCommand, serializeAws_restJson1ListAccountsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class ListAccountsCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "SSOClient";
|
|
15
|
+
const commandName = "ListAccountsCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: ListAccountsRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: ListAccountsResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
ListAccountsCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1ListAccountsCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1ListAccountsCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { ListAccountsCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { LogoutRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1LogoutCommand, serializeAws_restJson1LogoutCommand } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class LogoutCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "SSOClient";
|
|
15
|
+
const commandName = "LogoutCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: LogoutRequestFilterSensitiveLog,
|
|
24
|
-
outputFilterSensitiveLog:
|
|
21
|
+
outputFilterSensitiveLog: (output) => output,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
LogoutCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1LogoutCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1LogoutCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { LogoutCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
|
-
|
|
2
|
+
const regionHash = {
|
|
4
3
|
"ap-east-1": {
|
|
5
4
|
variants: [
|
|
6
5
|
{
|
|
@@ -191,7 +190,7 @@ var regionHash = {
|
|
|
191
190
|
signingRegion: "us-west-2",
|
|
192
191
|
},
|
|
193
192
|
};
|
|
194
|
-
|
|
193
|
+
const partitionHash = {
|
|
195
194
|
aws: {
|
|
196
195
|
regions: [
|
|
197
196
|
"af-south-1",
|
|
@@ -311,8 +310,9 @@ var partitionHash = {
|
|
|
311
310
|
],
|
|
312
311
|
},
|
|
313
312
|
};
|
|
314
|
-
export
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
313
|
+
export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
|
|
314
|
+
...options,
|
|
315
|
+
signingService: "awsssoportal",
|
|
316
|
+
regionHash,
|
|
317
|
+
partitionHash,
|
|
318
|
+
});
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.setPrototypeOf(_this, SSOServiceException.prototype);
|
|
8
|
-
return _this;
|
|
2
|
+
export class SSOServiceException extends __ServiceException {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super(options);
|
|
5
|
+
Object.setPrototypeOf(this, SSOServiceException.prototype);
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
}(__ServiceException));
|
|
12
|
-
export { SSOServiceException };
|
|
7
|
+
}
|
|
@@ -1,61 +1,87 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
1
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
2
|
import { SSOServiceException as __BaseException } from "./SSOServiceException";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
export class InvalidRequestException extends __BaseException {
|
|
4
|
+
constructor(opts) {
|
|
5
|
+
super({
|
|
6
|
+
name: "InvalidRequestException",
|
|
7
|
+
$fault: "client",
|
|
8
|
+
...opts,
|
|
9
|
+
});
|
|
10
|
+
this.name = "InvalidRequestException";
|
|
11
|
+
this.$fault = "client";
|
|
12
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
}
|
|
15
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
16
|
+
constructor(opts) {
|
|
17
|
+
super({
|
|
18
|
+
name: "ResourceNotFoundException",
|
|
19
|
+
$fault: "client",
|
|
20
|
+
...opts,
|
|
21
|
+
});
|
|
22
|
+
this.name = "ResourceNotFoundException";
|
|
23
|
+
this.$fault = "client";
|
|
24
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
}
|
|
27
|
+
export class TooManyRequestsException extends __BaseException {
|
|
28
|
+
constructor(opts) {
|
|
29
|
+
super({
|
|
30
|
+
name: "TooManyRequestsException",
|
|
31
|
+
$fault: "client",
|
|
32
|
+
...opts,
|
|
33
|
+
});
|
|
34
|
+
this.name = "TooManyRequestsException";
|
|
35
|
+
this.$fault = "client";
|
|
36
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
}
|
|
39
|
+
export class UnauthorizedException extends __BaseException {
|
|
40
|
+
constructor(opts) {
|
|
41
|
+
super({
|
|
42
|
+
name: "UnauthorizedException",
|
|
43
|
+
$fault: "client",
|
|
44
|
+
...opts,
|
|
45
|
+
});
|
|
46
|
+
this.name = "UnauthorizedException";
|
|
47
|
+
this.$fault = "client";
|
|
48
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
export
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
50
|
+
}
|
|
51
|
+
export const AccountInfoFilterSensitiveLog = (obj) => ({
|
|
52
|
+
...obj,
|
|
53
|
+
});
|
|
54
|
+
export const GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({
|
|
55
|
+
...obj,
|
|
56
|
+
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
57
|
+
});
|
|
58
|
+
export const RoleCredentialsFilterSensitiveLog = (obj) => ({
|
|
59
|
+
...obj,
|
|
60
|
+
...(obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING }),
|
|
61
|
+
...(obj.sessionToken && { sessionToken: SENSITIVE_STRING }),
|
|
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
|
+
});
|