@aws-sdk/client-sso 3.33.0 → 3.36.1
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 +47 -0
- package/{dist/cjs → dist-cjs}/SSO.js +1 -20
- package/dist-cjs/SSOClient.js +32 -0
- package/{dist/cjs → dist-cjs}/commands/GetRoleCredentialsCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListAccountRolesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListAccountsCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/LogoutCommand.js +2 -27
- 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 -43
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListAccountRolesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListAccountsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +4 -10
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- 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 +7 -35
- package/dist-types/ts3.4/SSOClient.d.ts +68 -0
- package/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/LogoutCommand.d.ts +17 -0
- 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/ts3.4/models/models_0.d.ts +154 -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 +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- 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 +0 -56
- 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/dist/types/ts3.4/SSOClient.d.ts +0 -145
- package/dist/types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/ListAccountRolesCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListAccountsCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/LogoutCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -255
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SSOClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SSOClient";
|
|
2
|
-
import { GetRoleCredentialsRequest, GetRoleCredentialsResponse } from "../models/models_0";
|
|
3
1
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler,
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { GetRoleCredentialsRequest, GetRoleCredentialsResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient";
|
|
5
5
|
export interface GetRoleCredentialsCommandInput extends GetRoleCredentialsRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface GetRoleCredentialsCommandOutput extends GetRoleCredentialsResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SSOClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SSOClient";
|
|
2
|
-
import { ListAccountRolesRequest, ListAccountRolesResponse } from "../models/models_0";
|
|
3
1
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler,
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { ListAccountRolesRequest, ListAccountRolesResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient";
|
|
5
5
|
export interface ListAccountRolesCommandInput extends ListAccountRolesRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface ListAccountRolesCommandOutput extends ListAccountRolesResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SSOClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SSOClient";
|
|
2
|
-
import { ListAccountsRequest, ListAccountsResponse } from "../models/models_0";
|
|
3
1
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler,
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { ListAccountsRequest, ListAccountsResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient";
|
|
5
5
|
export interface ListAccountsCommandInput extends ListAccountsRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface ListAccountsCommandOutput extends ListAccountsResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SSOClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SSOClient";
|
|
2
|
-
import { LogoutRequest } from "../models/models_0";
|
|
3
1
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler,
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { LogoutRequest } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient";
|
|
5
5
|
export interface LogoutCommandInput extends LogoutRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface LogoutCommandOutput extends __MetadataBearer {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
1
2
|
import { SSO } from "../SSO";
|
|
2
3
|
import { SSOClient } from "../SSOClient";
|
|
3
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
4
4
|
export interface SSOPaginationConfiguration extends PaginationConfiguration {
|
|
5
5
|
client: SSO | SSOClient;
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
1
2
|
import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "../commands/ListAccountRolesCommand";
|
|
2
3
|
import { SSOPaginationConfiguration } from "./Interfaces";
|
|
3
|
-
import { Paginator } from "@aws-sdk/types";
|
|
4
4
|
export declare function paginateListAccountRoles(config: SSOPaginationConfiguration, input: ListAccountRolesCommandInput, ...additionalArguments: any): Paginator<ListAccountRolesCommandOutput>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
1
2
|
import { ListAccountsCommandInput, ListAccountsCommandOutput } from "../commands/ListAccountsCommand";
|
|
2
3
|
import { SSOPaginationConfiguration } from "./Interfaces";
|
|
3
|
-
import { Paginator } from "@aws-sdk/types";
|
|
4
4
|
export declare function paginateListAccounts(config: SSOPaginationConfiguration, input: ListAccountsCommandInput, ...additionalArguments: any): Paginator<ListAccountsCommandOutput>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
+
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
1
3
|
import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "../commands/GetRoleCredentialsCommand";
|
|
2
4
|
import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "../commands/ListAccountRolesCommand";
|
|
3
5
|
import { ListAccountsCommandInput, ListAccountsCommandOutput } from "../commands/ListAccountsCommand";
|
|
4
6
|
import { LogoutCommandInput, LogoutCommandOutput } from "../commands/LogoutCommand";
|
|
5
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
6
|
-
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
7
7
|
export declare const serializeAws_restJson1GetRoleCredentialsCommand: (input: GetRoleCredentialsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
8
8
|
export declare const serializeAws_restJson1ListAccountRolesCommand: (input: ListAccountRolesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
9
9
|
export declare const serializeAws_restJson1ListAccountsCommand: (input: ListAccountsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,52 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
|
|
3
3
|
import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./commands/ListAccountRolesCommand";
|
|
4
4
|
import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/ListAccountsCommand";
|
|
5
5
|
import { LogoutCommandInput, LogoutCommandOutput } from "./commands/LogoutCommand";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
* <p>AWS Single Sign-On Portal is a web service that makes it easy for you to assign user
|
|
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
|
-
*/
|
|
6
|
+
import { SSOClient } from "./SSOClient";
|
|
7
|
+
|
|
25
8
|
export declare class SSO extends SSOClient {
|
|
26
|
-
|
|
27
|
-
* <p>Returns the STS short-term credentials for a given role name that is assigned to the
|
|
28
|
-
* user.</p>
|
|
29
|
-
*/
|
|
9
|
+
|
|
30
10
|
getRoleCredentials(args: GetRoleCredentialsCommandInput, options?: __HttpHandlerOptions): Promise<GetRoleCredentialsCommandOutput>;
|
|
31
11
|
getRoleCredentials(args: GetRoleCredentialsCommandInput, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
|
|
32
12
|
getRoleCredentials(args: GetRoleCredentialsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
|
|
33
|
-
|
|
34
|
-
* <p>Lists all roles that are assigned to the user for a given AWS account.</p>
|
|
35
|
-
*/
|
|
13
|
+
|
|
36
14
|
listAccountRoles(args: ListAccountRolesCommandInput, options?: __HttpHandlerOptions): Promise<ListAccountRolesCommandOutput>;
|
|
37
15
|
listAccountRoles(args: ListAccountRolesCommandInput, cb: (err: any, data?: ListAccountRolesCommandOutput) => void): void;
|
|
38
16
|
listAccountRoles(args: ListAccountRolesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountRolesCommandOutput) => void): void;
|
|
39
|
-
|
|
40
|
-
* <p>Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the
|
|
41
|
-
* 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
|
|
42
|
-
* returns a paginated response.</p>
|
|
43
|
-
*/
|
|
17
|
+
|
|
44
18
|
listAccounts(args: ListAccountsCommandInput, options?: __HttpHandlerOptions): Promise<ListAccountsCommandOutput>;
|
|
45
19
|
listAccounts(args: ListAccountsCommandInput, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
|
|
46
20
|
listAccounts(args: ListAccountsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
|
|
47
|
-
|
|
48
|
-
* <p>Removes the client- and server-side session that is associated with the user.</p>
|
|
49
|
-
*/
|
|
21
|
+
|
|
50
22
|
logout(args: LogoutCommandInput, options?: __HttpHandlerOptions): Promise<LogoutCommandOutput>;
|
|
51
23
|
logout(args: LogoutCommandInput, cb: (err: any, data?: LogoutCommandOutput) => void): void;
|
|
52
24
|
logout(args: LogoutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LogoutCommandOutput) => void): void;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
4
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
5
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
6
|
+
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
|
|
9
|
+
import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./commands/ListAccountRolesCommand";
|
|
10
|
+
import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/ListAccountsCommand";
|
|
11
|
+
import { LogoutCommandInput, LogoutCommandOutput } from "./commands/LogoutCommand";
|
|
12
|
+
export declare type ServiceInputTypes = GetRoleCredentialsCommandInput | ListAccountRolesCommandInput | ListAccountsCommandInput | LogoutCommandInput;
|
|
13
|
+
export declare type ServiceOutputTypes = GetRoleCredentialsCommandOutput | ListAccountRolesCommandOutput | ListAccountsCommandOutput | LogoutCommandOutput;
|
|
14
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
15
|
+
|
|
16
|
+
requestHandler?: __HttpHandler;
|
|
17
|
+
|
|
18
|
+
sha256?: __HashConstructor;
|
|
19
|
+
|
|
20
|
+
urlParser?: __UrlParser;
|
|
21
|
+
|
|
22
|
+
bodyLengthChecker?: (body: any) => number | undefined;
|
|
23
|
+
|
|
24
|
+
streamCollector?: __StreamCollector;
|
|
25
|
+
|
|
26
|
+
base64Decoder?: __Decoder;
|
|
27
|
+
|
|
28
|
+
base64Encoder?: __Encoder;
|
|
29
|
+
|
|
30
|
+
utf8Decoder?: __Decoder;
|
|
31
|
+
|
|
32
|
+
utf8Encoder?: __Encoder;
|
|
33
|
+
|
|
34
|
+
runtime?: string;
|
|
35
|
+
|
|
36
|
+
disableHostPrefix?: boolean;
|
|
37
|
+
|
|
38
|
+
maxAttempts?: number | __Provider<number>;
|
|
39
|
+
|
|
40
|
+
retryMode?: string | __Provider<string>;
|
|
41
|
+
|
|
42
|
+
logger?: __Logger;
|
|
43
|
+
|
|
44
|
+
serviceId?: string;
|
|
45
|
+
|
|
46
|
+
region?: string | __Provider<string>;
|
|
47
|
+
|
|
48
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
49
|
+
|
|
50
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
51
|
+
}
|
|
52
|
+
declare type SSOClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig;
|
|
53
|
+
|
|
54
|
+
export interface SSOClientConfig extends SSOClientConfigType {
|
|
55
|
+
}
|
|
56
|
+
declare type SSOClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig;
|
|
57
|
+
|
|
58
|
+
export interface SSOClientResolvedConfig extends SSOClientResolvedConfigType {
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export declare class SSOClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig> {
|
|
62
|
+
|
|
63
|
+
readonly config: SSOClientResolvedConfig;
|
|
64
|
+
constructor(configuration: SSOClientConfig);
|
|
65
|
+
|
|
66
|
+
destroy(): void;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { GetRoleCredentialsRequest, GetRoleCredentialsResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient";
|
|
5
|
+
export interface GetRoleCredentialsCommandInput extends GetRoleCredentialsRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetRoleCredentialsCommandOutput extends GetRoleCredentialsResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class GetRoleCredentialsCommand extends $Command<GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput, SSOClientResolvedConfig> {
|
|
11
|
+
readonly input: GetRoleCredentialsCommandInput;
|
|
12
|
+
constructor(input: GetRoleCredentialsCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { ListAccountRolesRequest, ListAccountRolesResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient";
|
|
5
|
+
export interface ListAccountRolesCommandInput extends ListAccountRolesRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface ListAccountRolesCommandOutput extends ListAccountRolesResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class ListAccountRolesCommand extends $Command<ListAccountRolesCommandInput, ListAccountRolesCommandOutput, SSOClientResolvedConfig> {
|
|
11
|
+
readonly input: ListAccountRolesCommandInput;
|
|
12
|
+
constructor(input: ListAccountRolesCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAccountRolesCommandInput, ListAccountRolesCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { ListAccountsRequest, ListAccountsResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient";
|
|
5
|
+
export interface ListAccountsCommandInput extends ListAccountsRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface ListAccountsCommandOutput extends ListAccountsResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class ListAccountsCommand extends $Command<ListAccountsCommandInput, ListAccountsCommandOutput, SSOClientResolvedConfig> {
|
|
11
|
+
readonly input: ListAccountsCommandInput;
|
|
12
|
+
constructor(input: ListAccountsCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAccountsCommandInput, ListAccountsCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { LogoutRequest } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient";
|
|
5
|
+
export interface LogoutCommandInput extends LogoutRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface LogoutCommandOutput extends __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class LogoutCommand extends $Command<LogoutCommandInput, LogoutCommandOutput, SSOClientResolvedConfig> {
|
|
11
|
+
readonly input: LogoutCommandInput;
|
|
12
|
+
constructor(input: LogoutCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler<LogoutCommandInput, LogoutCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
2
|
+
|
|
3
|
+
export interface AccountInfo {
|
|
4
|
+
|
|
5
|
+
accountId?: string;
|
|
6
|
+
|
|
7
|
+
accountName?: string;
|
|
8
|
+
|
|
9
|
+
emailAddress?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace AccountInfo {
|
|
12
|
+
|
|
13
|
+
const filterSensitiveLog: (obj: AccountInfo) => any;
|
|
14
|
+
}
|
|
15
|
+
export interface GetRoleCredentialsRequest {
|
|
16
|
+
|
|
17
|
+
roleName: string | undefined;
|
|
18
|
+
|
|
19
|
+
accountId: string | undefined;
|
|
20
|
+
|
|
21
|
+
accessToken: string | undefined;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace GetRoleCredentialsRequest {
|
|
24
|
+
|
|
25
|
+
const filterSensitiveLog: (obj: GetRoleCredentialsRequest) => any;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface RoleCredentials {
|
|
29
|
+
|
|
30
|
+
accessKeyId?: string;
|
|
31
|
+
|
|
32
|
+
secretAccessKey?: string;
|
|
33
|
+
|
|
34
|
+
sessionToken?: string;
|
|
35
|
+
|
|
36
|
+
expiration?: number;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace RoleCredentials {
|
|
39
|
+
|
|
40
|
+
const filterSensitiveLog: (obj: RoleCredentials) => any;
|
|
41
|
+
}
|
|
42
|
+
export interface GetRoleCredentialsResponse {
|
|
43
|
+
|
|
44
|
+
roleCredentials?: RoleCredentials;
|
|
45
|
+
}
|
|
46
|
+
export declare namespace GetRoleCredentialsResponse {
|
|
47
|
+
|
|
48
|
+
const filterSensitiveLog: (obj: GetRoleCredentialsResponse) => any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
|
|
52
|
+
name: "InvalidRequestException";
|
|
53
|
+
$fault: "client";
|
|
54
|
+
message?: string;
|
|
55
|
+
}
|
|
56
|
+
export declare namespace InvalidRequestException {
|
|
57
|
+
|
|
58
|
+
const filterSensitiveLog: (obj: InvalidRequestException) => any;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
|
|
62
|
+
name: "ResourceNotFoundException";
|
|
63
|
+
$fault: "client";
|
|
64
|
+
message?: string;
|
|
65
|
+
}
|
|
66
|
+
export declare namespace ResourceNotFoundException {
|
|
67
|
+
|
|
68
|
+
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
|
|
72
|
+
name: "TooManyRequestsException";
|
|
73
|
+
$fault: "client";
|
|
74
|
+
message?: string;
|
|
75
|
+
}
|
|
76
|
+
export declare namespace TooManyRequestsException {
|
|
77
|
+
|
|
78
|
+
const filterSensitiveLog: (obj: TooManyRequestsException) => any;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
|
|
82
|
+
name: "UnauthorizedException";
|
|
83
|
+
$fault: "client";
|
|
84
|
+
message?: string;
|
|
85
|
+
}
|
|
86
|
+
export declare namespace UnauthorizedException {
|
|
87
|
+
|
|
88
|
+
const filterSensitiveLog: (obj: UnauthorizedException) => any;
|
|
89
|
+
}
|
|
90
|
+
export interface ListAccountRolesRequest {
|
|
91
|
+
|
|
92
|
+
nextToken?: string;
|
|
93
|
+
|
|
94
|
+
maxResults?: number;
|
|
95
|
+
|
|
96
|
+
accessToken: string | undefined;
|
|
97
|
+
|
|
98
|
+
accountId: string | undefined;
|
|
99
|
+
}
|
|
100
|
+
export declare namespace ListAccountRolesRequest {
|
|
101
|
+
|
|
102
|
+
const filterSensitiveLog: (obj: ListAccountRolesRequest) => any;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface RoleInfo {
|
|
106
|
+
|
|
107
|
+
roleName?: string;
|
|
108
|
+
|
|
109
|
+
accountId?: string;
|
|
110
|
+
}
|
|
111
|
+
export declare namespace RoleInfo {
|
|
112
|
+
|
|
113
|
+
const filterSensitiveLog: (obj: RoleInfo) => any;
|
|
114
|
+
}
|
|
115
|
+
export interface ListAccountRolesResponse {
|
|
116
|
+
|
|
117
|
+
nextToken?: string;
|
|
118
|
+
|
|
119
|
+
roleList?: RoleInfo[];
|
|
120
|
+
}
|
|
121
|
+
export declare namespace ListAccountRolesResponse {
|
|
122
|
+
|
|
123
|
+
const filterSensitiveLog: (obj: ListAccountRolesResponse) => any;
|
|
124
|
+
}
|
|
125
|
+
export interface ListAccountsRequest {
|
|
126
|
+
|
|
127
|
+
nextToken?: string;
|
|
128
|
+
|
|
129
|
+
maxResults?: number;
|
|
130
|
+
|
|
131
|
+
accessToken: string | undefined;
|
|
132
|
+
}
|
|
133
|
+
export declare namespace ListAccountsRequest {
|
|
134
|
+
|
|
135
|
+
const filterSensitiveLog: (obj: ListAccountsRequest) => any;
|
|
136
|
+
}
|
|
137
|
+
export interface ListAccountsResponse {
|
|
138
|
+
|
|
139
|
+
nextToken?: string;
|
|
140
|
+
|
|
141
|
+
accountList?: AccountInfo[];
|
|
142
|
+
}
|
|
143
|
+
export declare namespace ListAccountsResponse {
|
|
144
|
+
|
|
145
|
+
const filterSensitiveLog: (obj: ListAccountsResponse) => any;
|
|
146
|
+
}
|
|
147
|
+
export interface LogoutRequest {
|
|
148
|
+
|
|
149
|
+
accessToken: string | undefined;
|
|
150
|
+
}
|
|
151
|
+
export declare namespace LogoutRequest {
|
|
152
|
+
|
|
153
|
+
const filterSensitiveLog: (obj: LogoutRequest) => any;
|
|
154
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
1
2
|
import { SSO } from "../SSO";
|
|
2
3
|
import { SSOClient } from "../SSOClient";
|
|
3
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
4
4
|
export interface SSOPaginationConfiguration extends PaginationConfiguration {
|
|
5
5
|
client: SSO | SSOClient;
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
1
2
|
import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "../commands/ListAccountRolesCommand";
|
|
2
3
|
import { SSOPaginationConfiguration } from "./Interfaces";
|
|
3
|
-
import { Paginator } from "@aws-sdk/types";
|
|
4
4
|
export declare function paginateListAccountRoles(config: SSOPaginationConfiguration, input: ListAccountRolesCommandInput, ...additionalArguments: any): Paginator<ListAccountRolesCommandOutput>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
1
2
|
import { ListAccountsCommandInput, ListAccountsCommandOutput } from "../commands/ListAccountsCommand";
|
|
2
3
|
import { SSOPaginationConfiguration } from "./Interfaces";
|
|
3
|
-
import { Paginator } from "@aws-sdk/types";
|
|
4
4
|
export declare function paginateListAccounts(config: SSOPaginationConfiguration, input: ListAccountsCommandInput, ...additionalArguments: any): Paginator<ListAccountsCommandOutput>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
+
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
1
3
|
import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "../commands/GetRoleCredentialsCommand";
|
|
2
4
|
import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "../commands/ListAccountRolesCommand";
|
|
3
5
|
import { ListAccountsCommandInput, ListAccountsCommandOutput } from "../commands/ListAccountsCommand";
|
|
4
6
|
import { LogoutCommandInput, LogoutCommandOutput } from "../commands/LogoutCommand";
|
|
5
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
6
|
-
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
7
7
|
export declare const serializeAws_restJson1GetRoleCredentialsCommand: (input: GetRoleCredentialsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
8
8
|
export declare const serializeAws_restJson1ListAccountRolesCommand: (input: ListAccountRolesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
9
9
|
export declare const serializeAws_restJson1ListAccountsCommand: (input: ListAccountsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { SSOClientConfig } from "./SSOClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
7
5
|
runtime: string;
|
|
8
6
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { SSOClientConfig } from "./SSOClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
7
5
|
runtime: string;
|
|
8
6
|
base64Decoder: import("@aws-sdk/types").Decoder;
|