@aws-sdk/client-sso 3.296.0 → 3.298.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/ListAccountRolesCommand.js +1 -1
- package/dist-cjs/commands/ListAccountsCommand.js +1 -1
- package/dist-cjs/commands/LogoutCommand.js +1 -1
- package/dist-cjs/models/models_0.js +1 -17
- package/dist-es/commands/ListAccountRolesCommand.js +2 -2
- package/dist-es/commands/ListAccountsCommand.js +2 -2
- package/dist-es/commands/LogoutCommand.js +1 -1
- package/dist-es/models/models_0.js +0 -12
- package/dist-types/SSO.d.ts +5 -0
- package/dist-types/SSOClient.d.ts +24 -4
- package/dist-types/commands/GetRoleCredentialsCommand.d.ts +16 -0
- package/dist-types/commands/ListAccountRolesCommand.d.ts +16 -0
- package/dist-types/commands/ListAccountsCommand.d.ts +16 -0
- package/dist-types/commands/LogoutCommand.d.ts +16 -0
- package/dist-types/models/SSOServiceException.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +28 -16
- package/dist-types/pagination/Interfaces.d.ts +3 -0
- package/dist-types/pagination/ListAccountRolesPaginator.d.ts +3 -0
- package/dist-types/pagination/ListAccountsPaginator.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -8
- package/package.json +2 -1
|
@@ -31,7 +31,7 @@ class ListAccountRolesCommand extends smithy_client_1.Command {
|
|
|
31
31
|
clientName,
|
|
32
32
|
commandName,
|
|
33
33
|
inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog,
|
|
34
|
-
outputFilterSensitiveLog:
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -31,7 +31,7 @@ class ListAccountsCommand extends smithy_client_1.Command {
|
|
|
31
31
|
clientName,
|
|
32
32
|
commandName,
|
|
33
33
|
inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog,
|
|
34
|
-
outputFilterSensitiveLog:
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -31,7 +31,7 @@ class LogoutCommand extends smithy_client_1.Command {
|
|
|
31
31
|
clientName,
|
|
32
32
|
commandName,
|
|
33
33
|
inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog,
|
|
34
|
-
outputFilterSensitiveLog: (
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LogoutRequestFilterSensitiveLog = exports.
|
|
3
|
+
exports.LogoutRequestFilterSensitiveLog = exports.ListAccountsRequestFilterSensitiveLog = exports.ListAccountRolesRequestFilterSensitiveLog = exports.GetRoleCredentialsResponseFilterSensitiveLog = exports.RoleCredentialsFilterSensitiveLog = exports.GetRoleCredentialsRequestFilterSensitiveLog = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const SSOServiceException_1 = require("./SSOServiceException");
|
|
6
6
|
class InvalidRequestException extends SSOServiceException_1.SSOServiceException {
|
|
@@ -55,10 +55,6 @@ class UnauthorizedException extends SSOServiceException_1.SSOServiceException {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
exports.UnauthorizedException = UnauthorizedException;
|
|
58
|
-
const AccountInfoFilterSensitiveLog = (obj) => ({
|
|
59
|
-
...obj,
|
|
60
|
-
});
|
|
61
|
-
exports.AccountInfoFilterSensitiveLog = AccountInfoFilterSensitiveLog;
|
|
62
58
|
const GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({
|
|
63
59
|
...obj,
|
|
64
60
|
...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -80,23 +76,11 @@ const ListAccountRolesRequestFilterSensitiveLog = (obj) => ({
|
|
|
80
76
|
...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
|
|
81
77
|
});
|
|
82
78
|
exports.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog;
|
|
83
|
-
const RoleInfoFilterSensitiveLog = (obj) => ({
|
|
84
|
-
...obj,
|
|
85
|
-
});
|
|
86
|
-
exports.RoleInfoFilterSensitiveLog = RoleInfoFilterSensitiveLog;
|
|
87
|
-
const ListAccountRolesResponseFilterSensitiveLog = (obj) => ({
|
|
88
|
-
...obj,
|
|
89
|
-
});
|
|
90
|
-
exports.ListAccountRolesResponseFilterSensitiveLog = ListAccountRolesResponseFilterSensitiveLog;
|
|
91
79
|
const ListAccountsRequestFilterSensitiveLog = (obj) => ({
|
|
92
80
|
...obj,
|
|
93
81
|
...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
|
|
94
82
|
});
|
|
95
83
|
exports.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog;
|
|
96
|
-
const ListAccountsResponseFilterSensitiveLog = (obj) => ({
|
|
97
|
-
...obj,
|
|
98
|
-
});
|
|
99
|
-
exports.ListAccountsResponseFilterSensitiveLog = ListAccountsResponseFilterSensitiveLog;
|
|
100
84
|
const LogoutRequestFilterSensitiveLog = (obj) => ({
|
|
101
85
|
...obj,
|
|
102
86
|
...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { ListAccountRolesRequestFilterSensitiveLog,
|
|
4
|
+
import { ListAccountRolesRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1ListAccountRolesCommand, serializeAws_restJson1ListAccountRolesCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class ListAccountRolesCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
@@ -28,7 +28,7 @@ export class ListAccountRolesCommand extends $Command {
|
|
|
28
28
|
clientName,
|
|
29
29
|
commandName,
|
|
30
30
|
inputFilterSensitiveLog: ListAccountRolesRequestFilterSensitiveLog,
|
|
31
|
-
outputFilterSensitiveLog:
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
32
|
};
|
|
33
33
|
const { requestHandler } = configuration;
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { ListAccountsRequestFilterSensitiveLog
|
|
4
|
+
import { ListAccountsRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1ListAccountsCommand, serializeAws_restJson1ListAccountsCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class ListAccountsCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
@@ -28,7 +28,7 @@ export class ListAccountsCommand extends $Command {
|
|
|
28
28
|
clientName,
|
|
29
29
|
commandName,
|
|
30
30
|
inputFilterSensitiveLog: ListAccountsRequestFilterSensitiveLog,
|
|
31
|
-
outputFilterSensitiveLog:
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
32
|
};
|
|
33
33
|
const { requestHandler } = configuration;
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -28,7 +28,7 @@ export class LogoutCommand extends $Command {
|
|
|
28
28
|
clientName,
|
|
29
29
|
commandName,
|
|
30
30
|
inputFilterSensitiveLog: LogoutRequestFilterSensitiveLog,
|
|
31
|
-
outputFilterSensitiveLog: (
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
32
|
};
|
|
33
33
|
const { requestHandler } = configuration;
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -48,9 +48,6 @@ export class UnauthorizedException extends __BaseException {
|
|
|
48
48
|
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
export const AccountInfoFilterSensitiveLog = (obj) => ({
|
|
52
|
-
...obj,
|
|
53
|
-
});
|
|
54
51
|
export const GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({
|
|
55
52
|
...obj,
|
|
56
53
|
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
@@ -68,19 +65,10 @@ export const ListAccountRolesRequestFilterSensitiveLog = (obj) => ({
|
|
|
68
65
|
...obj,
|
|
69
66
|
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
70
67
|
});
|
|
71
|
-
export const RoleInfoFilterSensitiveLog = (obj) => ({
|
|
72
|
-
...obj,
|
|
73
|
-
});
|
|
74
|
-
export const ListAccountRolesResponseFilterSensitiveLog = (obj) => ({
|
|
75
|
-
...obj,
|
|
76
|
-
});
|
|
77
68
|
export const ListAccountsRequestFilterSensitiveLog = (obj) => ({
|
|
78
69
|
...obj,
|
|
79
70
|
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
80
71
|
});
|
|
81
|
-
export const ListAccountsResponseFilterSensitiveLog = (obj) => ({
|
|
82
|
-
...obj,
|
|
83
|
-
});
|
|
84
72
|
export const LogoutRequestFilterSensitiveLog = (obj) => ({
|
|
85
73
|
...obj,
|
|
86
74
|
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
package/dist-types/SSO.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/
|
|
|
5
5
|
import { LogoutCommandInput, LogoutCommandOutput } from "./commands/LogoutCommand";
|
|
6
6
|
import { SSOClient } from "./SSOClient";
|
|
7
7
|
/**
|
|
8
|
+
* @public
|
|
8
9
|
* <p>AWS IAM Identity Center (successor to AWS Single Sign-On) Portal is a web service that makes it easy for you to assign user access to
|
|
9
10
|
* IAM Identity Center resources such as the AWS access portal. Users can get AWS account applications and roles
|
|
10
11
|
* assigned to them and get federated into the application.</p>
|
|
@@ -27,6 +28,7 @@ import { SSOClient } from "./SSOClient";
|
|
|
27
28
|
*/
|
|
28
29
|
export declare class SSO extends SSOClient {
|
|
29
30
|
/**
|
|
31
|
+
* @public
|
|
30
32
|
* <p>Returns the STS short-term credentials for a given role name that is assigned to the
|
|
31
33
|
* user.</p>
|
|
32
34
|
*/
|
|
@@ -34,12 +36,14 @@ export declare class SSO extends SSOClient {
|
|
|
34
36
|
getRoleCredentials(args: GetRoleCredentialsCommandInput, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
|
|
35
37
|
getRoleCredentials(args: GetRoleCredentialsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
|
|
36
38
|
/**
|
|
39
|
+
* @public
|
|
37
40
|
* <p>Lists all roles that are assigned to the user for a given AWS account.</p>
|
|
38
41
|
*/
|
|
39
42
|
listAccountRoles(args: ListAccountRolesCommandInput, options?: __HttpHandlerOptions): Promise<ListAccountRolesCommandOutput>;
|
|
40
43
|
listAccountRoles(args: ListAccountRolesCommandInput, cb: (err: any, data?: ListAccountRolesCommandOutput) => void): void;
|
|
41
44
|
listAccountRoles(args: ListAccountRolesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountRolesCommandOutput) => void): void;
|
|
42
45
|
/**
|
|
46
|
+
* @public
|
|
43
47
|
* <p>Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the
|
|
44
48
|
* 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>IAM Identity Center User Guide</i>. This operation
|
|
45
49
|
* returns a paginated response.</p>
|
|
@@ -48,6 +52,7 @@ export declare class SSO extends SSOClient {
|
|
|
48
52
|
listAccounts(args: ListAccountsCommandInput, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
|
|
49
53
|
listAccounts(args: ListAccountsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
|
|
50
54
|
/**
|
|
55
|
+
* @public
|
|
51
56
|
* <p>Removes the locally stored SSO tokens from the client-side cache and sends an API call to
|
|
52
57
|
* the IAM Identity Center service to invalidate the corresponding server-side IAM Identity Center sign in
|
|
53
58
|
* session.</p>
|
|
@@ -11,15 +11,24 @@ import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./c
|
|
|
11
11
|
import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/ListAccountsCommand";
|
|
12
12
|
import { LogoutCommandInput, LogoutCommandOutput } from "./commands/LogoutCommand";
|
|
13
13
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
14
17
|
export type ServiceInputTypes = GetRoleCredentialsCommandInput | ListAccountRolesCommandInput | ListAccountsCommandInput | LogoutCommandInput;
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
15
21
|
export type ServiceOutputTypes = GetRoleCredentialsCommandOutput | ListAccountRolesCommandOutput | ListAccountsCommandOutput | LogoutCommandOutput;
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
16
25
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
17
26
|
/**
|
|
18
27
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
19
28
|
*/
|
|
20
29
|
requestHandler?: __HttpHandler;
|
|
21
30
|
/**
|
|
22
|
-
* A constructor for a class implementing the {@link
|
|
31
|
+
* A constructor for a class implementing the {@link @aws-sdk/types#ChecksumConstructor} interface
|
|
23
32
|
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
24
33
|
* @internal
|
|
25
34
|
*/
|
|
@@ -104,23 +113,34 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
104
113
|
*/
|
|
105
114
|
logger?: __Logger;
|
|
106
115
|
/**
|
|
107
|
-
* The {@link
|
|
116
|
+
* The {@link @aws-sdk/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
108
117
|
*/
|
|
109
118
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
110
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
111
123
|
type SSOClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
112
124
|
/**
|
|
113
|
-
*
|
|
125
|
+
* @public
|
|
126
|
+
*
|
|
127
|
+
* The configuration interface of SSOClient class constructor that set the region, credentials and other options.
|
|
114
128
|
*/
|
|
115
129
|
export interface SSOClientConfig extends SSOClientConfigType {
|
|
116
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
117
134
|
type SSOClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
118
135
|
/**
|
|
119
|
-
*
|
|
136
|
+
* @public
|
|
137
|
+
*
|
|
138
|
+
* The resolved configuration interface of SSOClient class. This is resolved and normalized from the {@link SSOClientConfig | constructor configuration interface}.
|
|
120
139
|
*/
|
|
121
140
|
export interface SSOClientResolvedConfig extends SSOClientResolvedConfigType {
|
|
122
141
|
}
|
|
123
142
|
/**
|
|
143
|
+
* @public
|
|
124
144
|
* <p>AWS IAM Identity Center (successor to AWS Single Sign-On) Portal is a web service that makes it easy for you to assign user access to
|
|
125
145
|
* IAM Identity Center resources such as the AWS access portal. Users can get AWS account applications and roles
|
|
126
146
|
* assigned to them and get federated into the application.</p>
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { GetRoleCredentialsRequest, GetRoleCredentialsResponse } from "../models/models_0";
|
|
5
5
|
import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link GetRoleCredentialsCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface GetRoleCredentialsCommandInput extends GetRoleCredentialsRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link GetRoleCredentialsCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface GetRoleCredentialsCommandOutput extends GetRoleCredentialsResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <p>Returns the STS short-term credentials for a given role name that is assigned to the
|
|
18
23
|
* user.</p>
|
|
19
24
|
* @example
|
|
@@ -26,6 +31,8 @@ export interface GetRoleCredentialsCommandOutput extends GetRoleCredentialsRespo
|
|
|
26
31
|
* const response = await client.send(command);
|
|
27
32
|
* ```
|
|
28
33
|
*
|
|
34
|
+
* @param GetRoleCredentialsCommandInput - {@link GetRoleCredentialsCommandInput}
|
|
35
|
+
* @returns {@link GetRoleCredentialsCommandOutput}
|
|
29
36
|
* @see {@link GetRoleCredentialsCommandInput} for command's `input` shape.
|
|
30
37
|
* @see {@link GetRoleCredentialsCommandOutput} for command's `response` shape.
|
|
31
38
|
* @see {@link SSOClientResolvedConfig | config} for SSOClient's `config` shape.
|
|
@@ -50,11 +57,20 @@ export interface GetRoleCredentialsCommandOutput extends GetRoleCredentialsRespo
|
|
|
50
57
|
export declare class GetRoleCredentialsCommand extends $Command<GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput, SSOClientResolvedConfig> {
|
|
51
58
|
readonly input: GetRoleCredentialsCommandInput;
|
|
52
59
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
60
|
+
/**
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
53
63
|
constructor(input: GetRoleCredentialsCommandInput);
|
|
54
64
|
/**
|
|
55
65
|
* @internal
|
|
56
66
|
*/
|
|
57
67
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput>;
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
58
71
|
private serialize;
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
59
75
|
private deserialize;
|
|
60
76
|
}
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { ListAccountRolesRequest, ListAccountRolesResponse } from "../models/models_0";
|
|
5
5
|
import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link ListAccountRolesCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface ListAccountRolesCommandInput extends ListAccountRolesRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link ListAccountRolesCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface ListAccountRolesCommandOutput extends ListAccountRolesResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <p>Lists all roles that are assigned to the user for a given AWS account.</p>
|
|
18
23
|
* @example
|
|
19
24
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -25,6 +30,8 @@ export interface ListAccountRolesCommandOutput extends ListAccountRolesResponse,
|
|
|
25
30
|
* const response = await client.send(command);
|
|
26
31
|
* ```
|
|
27
32
|
*
|
|
33
|
+
* @param ListAccountRolesCommandInput - {@link ListAccountRolesCommandInput}
|
|
34
|
+
* @returns {@link ListAccountRolesCommandOutput}
|
|
28
35
|
* @see {@link ListAccountRolesCommandInput} for command's `input` shape.
|
|
29
36
|
* @see {@link ListAccountRolesCommandOutput} for command's `response` shape.
|
|
30
37
|
* @see {@link SSOClientResolvedConfig | config} for SSOClient's `config` shape.
|
|
@@ -49,11 +56,20 @@ export interface ListAccountRolesCommandOutput extends ListAccountRolesResponse,
|
|
|
49
56
|
export declare class ListAccountRolesCommand extends $Command<ListAccountRolesCommandInput, ListAccountRolesCommandOutput, SSOClientResolvedConfig> {
|
|
50
57
|
readonly input: ListAccountRolesCommandInput;
|
|
51
58
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
59
|
+
/**
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
52
62
|
constructor(input: ListAccountRolesCommandInput);
|
|
53
63
|
/**
|
|
54
64
|
* @internal
|
|
55
65
|
*/
|
|
56
66
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAccountRolesCommandInput, ListAccountRolesCommandOutput>;
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
57
70
|
private serialize;
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
58
74
|
private deserialize;
|
|
59
75
|
}
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { ListAccountsRequest, ListAccountsResponse } from "../models/models_0";
|
|
5
5
|
import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link ListAccountsCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface ListAccountsCommandInput extends ListAccountsRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link ListAccountsCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface ListAccountsCommandOutput extends ListAccountsResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <p>Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the
|
|
18
23
|
* 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>IAM Identity Center User Guide</i>. This operation
|
|
19
24
|
* returns a paginated response.</p>
|
|
@@ -27,6 +32,8 @@ export interface ListAccountsCommandOutput extends ListAccountsResponse, __Metad
|
|
|
27
32
|
* const response = await client.send(command);
|
|
28
33
|
* ```
|
|
29
34
|
*
|
|
35
|
+
* @param ListAccountsCommandInput - {@link ListAccountsCommandInput}
|
|
36
|
+
* @returns {@link ListAccountsCommandOutput}
|
|
30
37
|
* @see {@link ListAccountsCommandInput} for command's `input` shape.
|
|
31
38
|
* @see {@link ListAccountsCommandOutput} for command's `response` shape.
|
|
32
39
|
* @see {@link SSOClientResolvedConfig | config} for SSOClient's `config` shape.
|
|
@@ -51,11 +58,20 @@ export interface ListAccountsCommandOutput extends ListAccountsResponse, __Metad
|
|
|
51
58
|
export declare class ListAccountsCommand extends $Command<ListAccountsCommandInput, ListAccountsCommandOutput, SSOClientResolvedConfig> {
|
|
52
59
|
readonly input: ListAccountsCommandInput;
|
|
53
60
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
61
|
+
/**
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
54
64
|
constructor(input: ListAccountsCommandInput);
|
|
55
65
|
/**
|
|
56
66
|
* @internal
|
|
57
67
|
*/
|
|
58
68
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAccountsCommandInput, ListAccountsCommandOutput>;
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
59
72
|
private serialize;
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
60
76
|
private deserialize;
|
|
61
77
|
}
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { LogoutRequest } from "../models/models_0";
|
|
5
5
|
import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link LogoutCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface LogoutCommandInput extends LogoutRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link LogoutCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface LogoutCommandOutput extends __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <p>Removes the locally stored SSO tokens from the client-side cache and sends an API call to
|
|
18
23
|
* the IAM Identity Center service to invalidate the corresponding server-side IAM Identity Center sign in
|
|
19
24
|
* session.</p>
|
|
@@ -40,6 +45,8 @@ export interface LogoutCommandOutput extends __MetadataBearer {
|
|
|
40
45
|
* const response = await client.send(command);
|
|
41
46
|
* ```
|
|
42
47
|
*
|
|
48
|
+
* @param LogoutCommandInput - {@link LogoutCommandInput}
|
|
49
|
+
* @returns {@link LogoutCommandOutput}
|
|
43
50
|
* @see {@link LogoutCommandInput} for command's `input` shape.
|
|
44
51
|
* @see {@link LogoutCommandOutput} for command's `response` shape.
|
|
45
52
|
* @see {@link SSOClientResolvedConfig | config} for SSOClient's `config` shape.
|
|
@@ -61,11 +68,20 @@ export interface LogoutCommandOutput extends __MetadataBearer {
|
|
|
61
68
|
export declare class LogoutCommand extends $Command<LogoutCommandInput, LogoutCommandOutput, SSOClientResolvedConfig> {
|
|
62
69
|
readonly input: LogoutCommandInput;
|
|
63
70
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
71
|
+
/**
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
64
74
|
constructor(input: LogoutCommandInput);
|
|
65
75
|
/**
|
|
66
76
|
* @internal
|
|
67
77
|
*/
|
|
68
78
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler<LogoutCommandInput, LogoutCommandOutput>;
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
69
82
|
private serialize;
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
70
86
|
private deserialize;
|
|
71
87
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
2
|
/**
|
|
3
|
+
* @public
|
|
4
|
+
*
|
|
3
5
|
* Base exception class for all service exceptions from SSO service.
|
|
4
6
|
*/
|
|
5
7
|
export declare class SSOServiceException extends __ServiceException {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { SSOServiceException as __BaseException } from "./SSOServiceException";
|
|
3
3
|
/**
|
|
4
|
+
* @public
|
|
4
5
|
* <p>Provides information about your AWS account.</p>
|
|
5
6
|
*/
|
|
6
7
|
export interface AccountInfo {
|
|
@@ -17,6 +18,9 @@ export interface AccountInfo {
|
|
|
17
18
|
*/
|
|
18
19
|
emailAddress?: string;
|
|
19
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
20
24
|
export interface GetRoleCredentialsRequest {
|
|
21
25
|
/**
|
|
22
26
|
* <p>The friendly name of the role that is assigned to the user.</p>
|
|
@@ -33,6 +37,7 @@ export interface GetRoleCredentialsRequest {
|
|
|
33
37
|
accessToken: string | undefined;
|
|
34
38
|
}
|
|
35
39
|
/**
|
|
40
|
+
* @public
|
|
36
41
|
* <p>Provides information about the role credentials that are assigned to the user.</p>
|
|
37
42
|
*/
|
|
38
43
|
export interface RoleCredentials {
|
|
@@ -57,6 +62,9 @@ export interface RoleCredentials {
|
|
|
57
62
|
*/
|
|
58
63
|
expiration?: number;
|
|
59
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
60
68
|
export interface GetRoleCredentialsResponse {
|
|
61
69
|
/**
|
|
62
70
|
* <p>The credentials for the role that is assigned to the user.</p>
|
|
@@ -64,6 +72,7 @@ export interface GetRoleCredentialsResponse {
|
|
|
64
72
|
roleCredentials?: RoleCredentials;
|
|
65
73
|
}
|
|
66
74
|
/**
|
|
75
|
+
* @public
|
|
67
76
|
* <p>Indicates that a problem occurred with the input to the request. For example, a required
|
|
68
77
|
* parameter might be missing or out of range.</p>
|
|
69
78
|
*/
|
|
@@ -76,6 +85,7 @@ export declare class InvalidRequestException extends __BaseException {
|
|
|
76
85
|
constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
|
|
77
86
|
}
|
|
78
87
|
/**
|
|
88
|
+
* @public
|
|
79
89
|
* <p>The specified resource doesn't exist.</p>
|
|
80
90
|
*/
|
|
81
91
|
export declare class ResourceNotFoundException extends __BaseException {
|
|
@@ -87,6 +97,7 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
87
97
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
88
98
|
}
|
|
89
99
|
/**
|
|
100
|
+
* @public
|
|
90
101
|
* <p>Indicates that the request is being made too frequently and is more than what the server
|
|
91
102
|
* can handle.</p>
|
|
92
103
|
*/
|
|
@@ -99,6 +110,7 @@ export declare class TooManyRequestsException extends __BaseException {
|
|
|
99
110
|
constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
|
|
100
111
|
}
|
|
101
112
|
/**
|
|
113
|
+
* @public
|
|
102
114
|
* <p>Indicates that the request is not authorized. This can happen due to an invalid access
|
|
103
115
|
* token in the request.</p>
|
|
104
116
|
*/
|
|
@@ -110,6 +122,9 @@ export declare class UnauthorizedException extends __BaseException {
|
|
|
110
122
|
*/
|
|
111
123
|
constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
|
|
112
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
113
128
|
export interface ListAccountRolesRequest {
|
|
114
129
|
/**
|
|
115
130
|
* <p>The page token from the previous response output when you request subsequent pages.</p>
|
|
@@ -130,6 +145,7 @@ export interface ListAccountRolesRequest {
|
|
|
130
145
|
accountId: string | undefined;
|
|
131
146
|
}
|
|
132
147
|
/**
|
|
148
|
+
* @public
|
|
133
149
|
* <p>Provides information about the role that is assigned to the user.</p>
|
|
134
150
|
*/
|
|
135
151
|
export interface RoleInfo {
|
|
@@ -142,6 +158,9 @@ export interface RoleInfo {
|
|
|
142
158
|
*/
|
|
143
159
|
accountId?: string;
|
|
144
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
145
164
|
export interface ListAccountRolesResponse {
|
|
146
165
|
/**
|
|
147
166
|
* <p>The page token client that is used to retrieve the list of accounts.</p>
|
|
@@ -153,6 +172,9 @@ export interface ListAccountRolesResponse {
|
|
|
153
172
|
*/
|
|
154
173
|
roleList?: RoleInfo[];
|
|
155
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
156
178
|
export interface ListAccountsRequest {
|
|
157
179
|
/**
|
|
158
180
|
* <p>(Optional) When requesting subsequent pages, this is the page token from the previous
|
|
@@ -169,6 +191,9 @@ export interface ListAccountsRequest {
|
|
|
169
191
|
*/
|
|
170
192
|
accessToken: string | undefined;
|
|
171
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* @public
|
|
196
|
+
*/
|
|
172
197
|
export interface ListAccountsResponse {
|
|
173
198
|
/**
|
|
174
199
|
* <p>The page token client that is used to retrieve the list of accounts.</p>
|
|
@@ -180,6 +205,9 @@ export interface ListAccountsResponse {
|
|
|
180
205
|
*/
|
|
181
206
|
accountList?: AccountInfo[];
|
|
182
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* @public
|
|
210
|
+
*/
|
|
183
211
|
export interface LogoutRequest {
|
|
184
212
|
/**
|
|
185
213
|
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
|
|
@@ -187,10 +215,6 @@ export interface LogoutRequest {
|
|
|
187
215
|
*/
|
|
188
216
|
accessToken: string | undefined;
|
|
189
217
|
}
|
|
190
|
-
/**
|
|
191
|
-
* @internal
|
|
192
|
-
*/
|
|
193
|
-
export declare const AccountInfoFilterSensitiveLog: (obj: AccountInfo) => any;
|
|
194
218
|
/**
|
|
195
219
|
* @internal
|
|
196
220
|
*/
|
|
@@ -207,22 +231,10 @@ export declare const GetRoleCredentialsResponseFilterSensitiveLog: (obj: GetRole
|
|
|
207
231
|
* @internal
|
|
208
232
|
*/
|
|
209
233
|
export declare const ListAccountRolesRequestFilterSensitiveLog: (obj: ListAccountRolesRequest) => any;
|
|
210
|
-
/**
|
|
211
|
-
* @internal
|
|
212
|
-
*/
|
|
213
|
-
export declare const RoleInfoFilterSensitiveLog: (obj: RoleInfo) => any;
|
|
214
|
-
/**
|
|
215
|
-
* @internal
|
|
216
|
-
*/
|
|
217
|
-
export declare const ListAccountRolesResponseFilterSensitiveLog: (obj: ListAccountRolesResponse) => any;
|
|
218
234
|
/**
|
|
219
235
|
* @internal
|
|
220
236
|
*/
|
|
221
237
|
export declare const ListAccountsRequestFilterSensitiveLog: (obj: ListAccountsRequest) => any;
|
|
222
|
-
/**
|
|
223
|
-
* @internal
|
|
224
|
-
*/
|
|
225
|
-
export declare const ListAccountsResponseFilterSensitiveLog: (obj: ListAccountsResponse) => any;
|
|
226
238
|
/**
|
|
227
239
|
* @internal
|
|
228
240
|
*/
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Paginator } from "@aws-sdk/types";
|
|
2
2
|
import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "../commands/ListAccountRolesCommand";
|
|
3
3
|
import { SSOPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
4
7
|
export declare function paginateListAccountRoles(config: SSOPaginationConfiguration, input: ListAccountRolesCommandInput, ...additionalArguments: any): Paginator<ListAccountRolesCommandOutput>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Paginator } from "@aws-sdk/types";
|
|
2
2
|
import { ListAccountsCommandInput, ListAccountsCommandOutput } from "../commands/ListAccountsCommand";
|
|
3
3
|
import { SSOPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
4
7
|
export declare function paginateListAccounts(config: SSOPaginationConfiguration, input: ListAccountsCommandInput, ...additionalArguments: any): Paginator<ListAccountsCommandOutput>;
|
|
@@ -73,7 +73,6 @@ export interface ListAccountsResponse {
|
|
|
73
73
|
export interface LogoutRequest {
|
|
74
74
|
accessToken: string | undefined;
|
|
75
75
|
}
|
|
76
|
-
export declare const AccountInfoFilterSensitiveLog: (obj: AccountInfo) => any;
|
|
77
76
|
export declare const GetRoleCredentialsRequestFilterSensitiveLog: (
|
|
78
77
|
obj: GetRoleCredentialsRequest
|
|
79
78
|
) => any;
|
|
@@ -86,16 +85,9 @@ export declare const GetRoleCredentialsResponseFilterSensitiveLog: (
|
|
|
86
85
|
export declare const ListAccountRolesRequestFilterSensitiveLog: (
|
|
87
86
|
obj: ListAccountRolesRequest
|
|
88
87
|
) => any;
|
|
89
|
-
export declare const RoleInfoFilterSensitiveLog: (obj: RoleInfo) => any;
|
|
90
|
-
export declare const ListAccountRolesResponseFilterSensitiveLog: (
|
|
91
|
-
obj: ListAccountRolesResponse
|
|
92
|
-
) => any;
|
|
93
88
|
export declare const ListAccountsRequestFilterSensitiveLog: (
|
|
94
89
|
obj: ListAccountsRequest
|
|
95
90
|
) => any;
|
|
96
|
-
export declare const ListAccountsResponseFilterSensitiveLog: (
|
|
97
|
-
obj: ListAccountsResponse
|
|
98
|
-
) => any;
|
|
99
91
|
export declare const LogoutRequestFilterSensitiveLog: (
|
|
100
92
|
obj: LogoutRequest
|
|
101
93
|
) => any;
|
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.
|
|
4
|
+
"version": "3.298.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",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"build:types": "tsc -p tsconfig.types.json",
|
|
12
12
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
13
13
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
14
|
+
"extract:docs": "api-extractor run --local",
|
|
14
15
|
"generate:client": "node ../../scripts/generate-clients/single-service --solo sso"
|
|
15
16
|
},
|
|
16
17
|
"main": "./dist-cjs/index.js",
|