@aws-sdk/client-sso 3.32.0 → 3.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/{dist/cjs → dist-cjs}/SSO.js +1 -2
- package/{dist/cjs → dist-cjs}/SSOClient.js +7 -8
- package/{dist/cjs → dist-cjs}/commands/GetRoleCredentialsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListAccountRolesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListAccountsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/LogoutCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListAccountRolesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListAccountsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +4 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/SSO.js +2 -21
- package/{dist/es → dist-es}/SSOClient.js +2 -26
- package/{dist/es → dist-es}/commands/GetRoleCredentialsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/ListAccountRolesCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListAccountsCommand.js +4 -32
- package/{dist/es → dist-es}/commands/LogoutCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -43
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListAccountRolesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListAccountsPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +96 -102
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/SSO.d.ts +2 -2
- package/{dist/types → dist-types}/SSOClient.d.ts +5 -5
- package/{dist/types → dist-types}/commands/GetRoleCredentialsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListAccountRolesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListAccountsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/LogoutCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAccountRolesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAccountsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/SSO.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/SSOClient.d.ts +5 -5
- package/{dist/types → dist-types}/ts3.4/commands/GetRoleCredentialsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListAccountRolesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListAccountsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/LogoutCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAccountRolesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAccountsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +49 -46
- package/SSO.ts +0 -160
- package/SSOClient.ts +0 -245
- package/commands/GetRoleCredentialsCommand.ts +0 -95
- package/commands/ListAccountRolesCommand.ts +0 -94
- package/commands/ListAccountsCommand.ts +0 -96
- package/commands/LogoutCommand.ts +0 -87
- package/dist/cjs/SSO.js.map +0 -1
- package/dist/cjs/SSOClient.js.map +0 -1
- package/dist/cjs/commands/GetRoleCredentialsCommand.js.map +0 -1
- package/dist/cjs/commands/ListAccountRolesCommand.js.map +0 -1
- package/dist/cjs/commands/ListAccountsCommand.js.map +0 -1
- package/dist/cjs/commands/LogoutCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -88
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListAccountRolesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListAccountsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/SSO.js.map +0 -1
- package/dist/es/SSOClient.js.map +0 -1
- package/dist/es/commands/GetRoleCredentialsCommand.js.map +0 -1
- package/dist/es/commands/ListAccountRolesCommand.js.map +0 -1
- package/dist/es/commands/ListAccountsCommand.js.map +0 -1
- package/dist/es/commands/LogoutCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -11
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -88
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListAccountRolesPaginator.js.map +0 -1
- package/dist/es/pagination/ListAccountsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -94
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -334
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListAccountRolesPaginator.ts +0 -58
- package/pagination/ListAccountsPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -621
- package/runtimeConfig.browser.ts +0 -38
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -41
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -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,9 +1,9 @@
|
|
|
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 {
|
|
6
|
+
import { SSOClient } from "./SSOClient";
|
|
7
7
|
/**
|
|
8
8
|
* <p>AWS Single Sign-On Portal is a web service that makes it easy for you to assign user
|
|
9
9
|
* access to AWS SSO resources such as the user portal. Users can get AWS account applications
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
|
|
2
|
-
import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./commands/ListAccountRolesCommand";
|
|
3
|
-
import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/ListAccountsCommand";
|
|
4
|
-
import { LogoutCommandInput, LogoutCommandOutput } from "./commands/LogoutCommand";
|
|
5
1
|
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
6
2
|
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
7
3
|
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
8
4
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
9
5
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
10
6
|
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
11
|
-
import {
|
|
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
12
|
export declare type ServiceInputTypes = GetRoleCredentialsCommandInput | ListAccountRolesCommandInput | ListAccountsCommandInput | LogoutCommandInput;
|
|
13
13
|
export declare type ServiceOutputTypes = GetRoleCredentialsCommandOutput | ListAccountRolesCommandOutput | ListAccountsCommandOutput | LogoutCommandOutput;
|
|
14
14
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
@@ -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
|
package/package.json
CHANGED
|
@@ -1,61 +1,55 @@
|
|
|
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.36.0",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"
|
|
7
|
-
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
8
|
-
"remove-definitions": "rimraf ./types",
|
|
9
|
-
"remove-dist": "rimraf ./dist",
|
|
10
|
-
"remove-documentation": "rimraf ./docs",
|
|
11
|
-
"test": "exit 0",
|
|
6
|
+
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
12
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
+
"build:docs": "yarn clean:docs && typedoc ./",
|
|
13
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
14
|
-
"build": "
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"browser": {
|
|
21
|
-
"./runtimeConfig": "./runtimeConfig.browser"
|
|
22
|
-
},
|
|
23
|
-
"react-native": {
|
|
24
|
-
"./runtimeConfig": "./runtimeConfig.native"
|
|
10
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
+
"clean": "yarn clean:dist && yarn clean:docs",
|
|
12
|
+
"clean:dist": "rimraf ./dist",
|
|
13
|
+
"clean:docs": "rimraf ./docs",
|
|
14
|
+
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
|
+
"test": "exit 0"
|
|
25
16
|
},
|
|
17
|
+
"main": "./dist-cjs/index.js",
|
|
18
|
+
"types": "./dist-types/index.d.ts",
|
|
19
|
+
"module": "./dist-es/index.js",
|
|
26
20
|
"sideEffects": false,
|
|
27
21
|
"dependencies": {
|
|
28
22
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
23
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/config-resolver": "3.
|
|
31
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
32
|
-
"@aws-sdk/hash-node": "3.
|
|
33
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
34
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
35
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
36
|
-
"@aws-sdk/middleware-logger": "3.
|
|
37
|
-
"@aws-sdk/middleware-retry": "3.
|
|
38
|
-
"@aws-sdk/middleware-serde": "3.
|
|
39
|
-
"@aws-sdk/middleware-stack": "3.
|
|
40
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
41
|
-
"@aws-sdk/node-config-provider": "3.
|
|
42
|
-
"@aws-sdk/node-http-handler": "3.
|
|
43
|
-
"@aws-sdk/protocol-http": "3.
|
|
44
|
-
"@aws-sdk/smithy-client": "3.
|
|
45
|
-
"@aws-sdk/types": "3.
|
|
46
|
-
"@aws-sdk/url-parser": "3.
|
|
47
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
48
|
-
"@aws-sdk/util-base64-node": "3.
|
|
49
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
50
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
53
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
54
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
24
|
+
"@aws-sdk/config-resolver": "3.36.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.36.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.36.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.36.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.36.0",
|
|
29
|
+
"@aws-sdk/middleware-host-header": "3.36.0",
|
|
30
|
+
"@aws-sdk/middleware-logger": "3.36.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.36.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.36.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.36.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.36.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.36.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.36.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.36.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.36.0",
|
|
39
|
+
"@aws-sdk/types": "3.36.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.36.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.36.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.36.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.36.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.36.0",
|
|
45
|
+
"@aws-sdk/util-user-agent-browser": "3.36.0",
|
|
46
|
+
"@aws-sdk/util-user-agent-node": "3.36.0",
|
|
47
|
+
"@aws-sdk/util-utf8-browser": "3.36.0",
|
|
48
|
+
"@aws-sdk/util-utf8-node": "3.36.0",
|
|
55
49
|
"tslib": "^2.3.0"
|
|
56
50
|
},
|
|
57
51
|
"devDependencies": {
|
|
58
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
52
|
+
"@aws-sdk/client-documentation-generator": "3.36.0",
|
|
59
53
|
"@types/node": "^12.7.5",
|
|
60
54
|
"downlevel-dts": "0.7.0",
|
|
61
55
|
"jest": "^26.1.0",
|
|
@@ -69,16 +63,25 @@
|
|
|
69
63
|
},
|
|
70
64
|
"typesVersions": {
|
|
71
65
|
"<4.0": {
|
|
72
|
-
"dist
|
|
73
|
-
"dist
|
|
66
|
+
"dist-types/*": [
|
|
67
|
+
"dist-types/ts3.4/*"
|
|
74
68
|
]
|
|
75
69
|
}
|
|
76
70
|
},
|
|
71
|
+
"files": [
|
|
72
|
+
"dist-*"
|
|
73
|
+
],
|
|
77
74
|
"author": {
|
|
78
75
|
"name": "AWS SDK for JavaScript Team",
|
|
79
76
|
"url": "https://aws.amazon.com/javascript/"
|
|
80
77
|
},
|
|
81
78
|
"license": "Apache-2.0",
|
|
79
|
+
"browser": {
|
|
80
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
81
|
+
},
|
|
82
|
+
"react-native": {
|
|
83
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
84
|
+
},
|
|
82
85
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",
|
|
83
86
|
"repository": {
|
|
84
87
|
"type": "git",
|
package/SSO.ts
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { SSOClient } from "./SSOClient";
|
|
2
|
-
import {
|
|
3
|
-
GetRoleCredentialsCommand,
|
|
4
|
-
GetRoleCredentialsCommandInput,
|
|
5
|
-
GetRoleCredentialsCommandOutput,
|
|
6
|
-
} from "./commands/GetRoleCredentialsCommand";
|
|
7
|
-
import {
|
|
8
|
-
ListAccountRolesCommand,
|
|
9
|
-
ListAccountRolesCommandInput,
|
|
10
|
-
ListAccountRolesCommandOutput,
|
|
11
|
-
} from "./commands/ListAccountRolesCommand";
|
|
12
|
-
import {
|
|
13
|
-
ListAccountsCommand,
|
|
14
|
-
ListAccountsCommandInput,
|
|
15
|
-
ListAccountsCommandOutput,
|
|
16
|
-
} from "./commands/ListAccountsCommand";
|
|
17
|
-
import { LogoutCommand, LogoutCommandInput, LogoutCommandOutput } from "./commands/LogoutCommand";
|
|
18
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* <p>AWS Single Sign-On Portal is a web service that makes it easy for you to assign user
|
|
22
|
-
* access to AWS SSO resources such as the user portal. Users can get AWS account applications
|
|
23
|
-
* and roles assigned to them and get federated into the application.</p>
|
|
24
|
-
*
|
|
25
|
-
* <p>For general information about AWS SSO, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is AWS
|
|
26
|
-
* Single Sign-On?</a> in the <i>AWS SSO User Guide</i>.</p>
|
|
27
|
-
*
|
|
28
|
-
* <p>This API reference guide describes the AWS SSO Portal operations that you can call
|
|
29
|
-
* programatically and includes detailed information on data types and errors.</p>
|
|
30
|
-
*
|
|
31
|
-
* <note>
|
|
32
|
-
* <p>AWS provides SDKs that consist of libraries and sample code for various programming
|
|
33
|
-
* languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a
|
|
34
|
-
* convenient way to create programmatic access to AWS SSO and other AWS services. For more
|
|
35
|
-
* 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>
|
|
36
|
-
* </note>
|
|
37
|
-
*/
|
|
38
|
-
export class SSO extends SSOClient {
|
|
39
|
-
/**
|
|
40
|
-
* <p>Returns the STS short-term credentials for a given role name that is assigned to the
|
|
41
|
-
* user.</p>
|
|
42
|
-
*/
|
|
43
|
-
public getRoleCredentials(
|
|
44
|
-
args: GetRoleCredentialsCommandInput,
|
|
45
|
-
options?: __HttpHandlerOptions
|
|
46
|
-
): Promise<GetRoleCredentialsCommandOutput>;
|
|
47
|
-
public getRoleCredentials(
|
|
48
|
-
args: GetRoleCredentialsCommandInput,
|
|
49
|
-
cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void
|
|
50
|
-
): void;
|
|
51
|
-
public getRoleCredentials(
|
|
52
|
-
args: GetRoleCredentialsCommandInput,
|
|
53
|
-
options: __HttpHandlerOptions,
|
|
54
|
-
cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void
|
|
55
|
-
): void;
|
|
56
|
-
public getRoleCredentials(
|
|
57
|
-
args: GetRoleCredentialsCommandInput,
|
|
58
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetRoleCredentialsCommandOutput) => void),
|
|
59
|
-
cb?: (err: any, data?: GetRoleCredentialsCommandOutput) => void
|
|
60
|
-
): Promise<GetRoleCredentialsCommandOutput> | void {
|
|
61
|
-
const command = new GetRoleCredentialsCommand(args);
|
|
62
|
-
if (typeof optionsOrCb === "function") {
|
|
63
|
-
this.send(command, optionsOrCb);
|
|
64
|
-
} else if (typeof cb === "function") {
|
|
65
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
66
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
67
|
-
} else {
|
|
68
|
-
return this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* <p>Lists all roles that are assigned to the user for a given AWS account.</p>
|
|
74
|
-
*/
|
|
75
|
-
public listAccountRoles(
|
|
76
|
-
args: ListAccountRolesCommandInput,
|
|
77
|
-
options?: __HttpHandlerOptions
|
|
78
|
-
): Promise<ListAccountRolesCommandOutput>;
|
|
79
|
-
public listAccountRoles(
|
|
80
|
-
args: ListAccountRolesCommandInput,
|
|
81
|
-
cb: (err: any, data?: ListAccountRolesCommandOutput) => void
|
|
82
|
-
): void;
|
|
83
|
-
public listAccountRoles(
|
|
84
|
-
args: ListAccountRolesCommandInput,
|
|
85
|
-
options: __HttpHandlerOptions,
|
|
86
|
-
cb: (err: any, data?: ListAccountRolesCommandOutput) => void
|
|
87
|
-
): void;
|
|
88
|
-
public listAccountRoles(
|
|
89
|
-
args: ListAccountRolesCommandInput,
|
|
90
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAccountRolesCommandOutput) => void),
|
|
91
|
-
cb?: (err: any, data?: ListAccountRolesCommandOutput) => void
|
|
92
|
-
): Promise<ListAccountRolesCommandOutput> | void {
|
|
93
|
-
const command = new ListAccountRolesCommand(args);
|
|
94
|
-
if (typeof optionsOrCb === "function") {
|
|
95
|
-
this.send(command, optionsOrCb);
|
|
96
|
-
} else if (typeof cb === "function") {
|
|
97
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
98
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
99
|
-
} else {
|
|
100
|
-
return this.send(command, optionsOrCb);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* <p>Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the
|
|
106
|
-
* 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
|
|
107
|
-
* returns a paginated response.</p>
|
|
108
|
-
*/
|
|
109
|
-
public listAccounts(
|
|
110
|
-
args: ListAccountsCommandInput,
|
|
111
|
-
options?: __HttpHandlerOptions
|
|
112
|
-
): Promise<ListAccountsCommandOutput>;
|
|
113
|
-
public listAccounts(args: ListAccountsCommandInput, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
|
|
114
|
-
public listAccounts(
|
|
115
|
-
args: ListAccountsCommandInput,
|
|
116
|
-
options: __HttpHandlerOptions,
|
|
117
|
-
cb: (err: any, data?: ListAccountsCommandOutput) => void
|
|
118
|
-
): void;
|
|
119
|
-
public listAccounts(
|
|
120
|
-
args: ListAccountsCommandInput,
|
|
121
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAccountsCommandOutput) => void),
|
|
122
|
-
cb?: (err: any, data?: ListAccountsCommandOutput) => void
|
|
123
|
-
): Promise<ListAccountsCommandOutput> | void {
|
|
124
|
-
const command = new ListAccountsCommand(args);
|
|
125
|
-
if (typeof optionsOrCb === "function") {
|
|
126
|
-
this.send(command, optionsOrCb);
|
|
127
|
-
} else if (typeof cb === "function") {
|
|
128
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
129
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
130
|
-
} else {
|
|
131
|
-
return this.send(command, optionsOrCb);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* <p>Removes the client- and server-side session that is associated with the user.</p>
|
|
137
|
-
*/
|
|
138
|
-
public logout(args: LogoutCommandInput, options?: __HttpHandlerOptions): Promise<LogoutCommandOutput>;
|
|
139
|
-
public logout(args: LogoutCommandInput, cb: (err: any, data?: LogoutCommandOutput) => void): void;
|
|
140
|
-
public logout(
|
|
141
|
-
args: LogoutCommandInput,
|
|
142
|
-
options: __HttpHandlerOptions,
|
|
143
|
-
cb: (err: any, data?: LogoutCommandOutput) => void
|
|
144
|
-
): void;
|
|
145
|
-
public logout(
|
|
146
|
-
args: LogoutCommandInput,
|
|
147
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: LogoutCommandOutput) => void),
|
|
148
|
-
cb?: (err: any, data?: LogoutCommandOutput) => void
|
|
149
|
-
): Promise<LogoutCommandOutput> | void {
|
|
150
|
-
const command = new LogoutCommand(args);
|
|
151
|
-
if (typeof optionsOrCb === "function") {
|
|
152
|
-
this.send(command, optionsOrCb);
|
|
153
|
-
} else if (typeof cb === "function") {
|
|
154
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
155
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
156
|
-
} else {
|
|
157
|
-
return this.send(command, optionsOrCb);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|