@aws-sdk/client-sts 3.34.0 → 3.35.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 +12 -0
- package/{dist/cjs → dist-cjs}/STS.js +1 -1
- package/dist-cjs/STS.js.map +1 -0
- package/{dist/cjs → dist-cjs}/STSClient.js +8 -8
- package/dist-cjs/STSClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/AssumeRoleCommand.js +2 -2
- package/dist-cjs/commands/AssumeRoleCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/AssumeRoleWithSAMLCommand.js +2 -2
- package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/AssumeRoleWithWebIdentityCommand.js +2 -2
- package/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DecodeAuthorizationMessageCommand.js +2 -2
- package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetAccessKeyInfoCommand.js +2 -2
- package/dist-cjs/commands/GetAccessKeyInfoCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetCallerIdentityCommand.js +2 -2
- package/dist-cjs/commands/GetCallerIdentityCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetFederationTokenCommand.js +2 -2
- package/dist-cjs/commands/GetFederationTokenCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetSessionTokenCommand.js +2 -2
- package/dist-cjs/commands/GetSessionTokenCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/defaultRoleAssumers.js +0 -0
- package/dist-cjs/defaultRoleAssumers.js.map +1 -0
- package/{dist/cjs → dist-cjs}/defaultStsRoleAssumers.js +0 -0
- package/dist-cjs/defaultStsRoleAssumers.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -0
- package/dist-cjs/endpoints.js.map +1 -0
- package/{dist/cjs → dist-cjs}/index.js +0 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +0 -0
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_query.js +22 -22
- package/dist-cjs/protocols/Aws_query.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -1
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +4 -3
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -0
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/STS.js +1 -1
- package/dist-es/STS.js.map +1 -0
- package/{dist/es → dist-es}/STSClient.js +1 -1
- package/dist-es/STSClient.js.map +1 -0
- package/{dist/es → dist-es}/commands/AssumeRoleCommand.js +2 -2
- package/dist-es/commands/AssumeRoleCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/AssumeRoleWithSAMLCommand.js +2 -2
- package/dist-es/commands/AssumeRoleWithSAMLCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/AssumeRoleWithWebIdentityCommand.js +2 -2
- package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DecodeAuthorizationMessageCommand.js +2 -2
- package/dist-es/commands/DecodeAuthorizationMessageCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetAccessKeyInfoCommand.js +2 -2
- package/dist-es/commands/GetAccessKeyInfoCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetCallerIdentityCommand.js +2 -2
- package/dist-es/commands/GetCallerIdentityCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetFederationTokenCommand.js +2 -2
- package/dist-es/commands/GetFederationTokenCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetSessionTokenCommand.js +2 -2
- package/dist-es/commands/GetSessionTokenCommand.js.map +1 -0
- package/{dist/es → dist-es}/defaultRoleAssumers.js +0 -0
- package/dist-es/defaultRoleAssumers.js.map +1 -0
- package/{dist/es → dist-es}/defaultStsRoleAssumers.js +0 -0
- package/dist-es/defaultStsRoleAssumers.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +0 -0
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -0
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_query.js +0 -0
- package/dist-es/protocols/Aws_query.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -1
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +3 -3
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -0
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -1
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types → dist-types}/STS.d.ts +2 -2
- package/{dist/types → dist-types}/STSClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/AssumeRoleCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/AssumeRoleWithSAMLCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DecodeAuthorizationMessageCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetAccessKeyInfoCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetCallerIdentityCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetFederationTokenCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetSessionTokenCommand.d.ts +3 -3
- package/{dist/types → dist-types}/defaultRoleAssumers.d.ts +0 -0
- package/{dist/types → dist-types}/defaultStsRoleAssumers.d.ts +0 -0
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → 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}/protocols/Aws_query.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/STS.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/STSClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/AssumeRoleCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetCallerIdentityCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetFederationTokenCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetSessionTokenCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/defaultRoleAssumers.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/defaultStsRoleAssumers.d.ts +0 -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 → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_query.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 +42 -42
- package/{STS.ts → src/STS.ts} +3 -2
- package/{STSClient.ts → src/STSClient.ts} +30 -29
- package/{commands → src/commands}/AssumeRoleCommand.ts +5 -4
- package/{commands → src/commands}/AssumeRoleWithSAMLCommand.ts +8 -7
- package/{commands → src/commands}/AssumeRoleWithWebIdentityCommand.ts +8 -7
- package/{commands → src/commands}/DecodeAuthorizationMessageCommand.ts +8 -7
- package/{commands → src/commands}/GetAccessKeyInfoCommand.ts +8 -7
- package/{commands → src/commands}/GetCallerIdentityCommand.ts +8 -7
- package/{commands → src/commands}/GetFederationTokenCommand.ts +8 -7
- package/{commands → src/commands}/GetSessionTokenCommand.ts +8 -7
- package/{defaultRoleAssumers.ts → src/defaultRoleAssumers.ts} +0 -0
- package/{defaultStsRoleAssumers.ts → src/defaultStsRoleAssumers.ts} +0 -0
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/{protocols → src/protocols}/Aws_query.ts +51 -50
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +4 -3
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +2 -1
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +6 -5
- package/{defaultRoleAssumers.spec.ts → test/defaultRoleAssumers.spec.ts} +6 -5
- package/tsconfig.es.json +1 -1
- package/tsconfig.json +4 -2
- package/tsconfig.types.json +3 -2
- package/dist/cjs/STS.js.map +0 -1
- package/dist/cjs/STSClient.js.map +0 -1
- package/dist/cjs/commands/AssumeRoleCommand.js.map +0 -1
- package/dist/cjs/commands/AssumeRoleWithSAMLCommand.js.map +0 -1
- package/dist/cjs/commands/AssumeRoleWithWebIdentityCommand.js.map +0 -1
- package/dist/cjs/commands/DecodeAuthorizationMessageCommand.js.map +0 -1
- package/dist/cjs/commands/GetAccessKeyInfoCommand.js.map +0 -1
- package/dist/cjs/commands/GetCallerIdentityCommand.js.map +0 -1
- package/dist/cjs/commands/GetFederationTokenCommand.js.map +0 -1
- package/dist/cjs/commands/GetSessionTokenCommand.js.map +0 -1
- package/dist/cjs/defaultRoleAssumers.js.map +0 -1
- package/dist/cjs/defaultRoleAssumers.spec.js +0 -135
- package/dist/cjs/defaultRoleAssumers.spec.js.map +0 -1
- package/dist/cjs/defaultStsRoleAssumers.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -93
- package/dist/cjs/protocols/Aws_query.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/STS.js.map +0 -1
- package/dist/es/STSClient.js.map +0 -1
- package/dist/es/commands/AssumeRoleCommand.js.map +0 -1
- package/dist/es/commands/AssumeRoleWithSAMLCommand.js.map +0 -1
- package/dist/es/commands/AssumeRoleWithWebIdentityCommand.js.map +0 -1
- package/dist/es/commands/DecodeAuthorizationMessageCommand.js.map +0 -1
- package/dist/es/commands/GetAccessKeyInfoCommand.js.map +0 -1
- package/dist/es/commands/GetCallerIdentityCommand.js.map +0 -1
- package/dist/es/commands/GetFederationTokenCommand.js.map +0 -1
- package/dist/es/commands/GetSessionTokenCommand.js.map +0 -1
- package/dist/es/defaultRoleAssumers.js.map +0 -1
- package/dist/es/defaultRoleAssumers.spec.js +0 -137
- package/dist/es/defaultRoleAssumers.spec.js.map +0 -1
- package/dist/es/defaultStsRoleAssumers.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- 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 -93
- package/dist/es/protocols/Aws_query.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/defaultRoleAssumers.spec.d.ts +0 -1
- package/dist/types/ts3.4/defaultRoleAssumers.spec.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { AssumeRoleWithWebIdentityRequest, AssumeRoleWithWebIdentityResponse } 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 { AssumeRoleWithWebIdentityRequest, AssumeRoleWithWebIdentityResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
export interface AssumeRoleWithWebIdentityCommandInput extends AssumeRoleWithWebIdentityRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface AssumeRoleWithWebIdentityCommandOutput extends AssumeRoleWithWebIdentityResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { DecodeAuthorizationMessageRequest, DecodeAuthorizationMessageResponse } 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 { DecodeAuthorizationMessageRequest, DecodeAuthorizationMessageResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
export interface DecodeAuthorizationMessageCommandInput extends DecodeAuthorizationMessageRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface DecodeAuthorizationMessageCommandOutput extends DecodeAuthorizationMessageResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { GetAccessKeyInfoRequest, GetAccessKeyInfoResponse } 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 { GetAccessKeyInfoRequest, GetAccessKeyInfoResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
export interface GetAccessKeyInfoCommandInput extends GetAccessKeyInfoRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface GetAccessKeyInfoCommandOutput extends GetAccessKeyInfoResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { GetCallerIdentityRequest, GetCallerIdentityResponse } 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 { GetCallerIdentityRequest, GetCallerIdentityResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
export interface GetCallerIdentityCommandInput extends GetCallerIdentityRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface GetCallerIdentityCommandOutput extends GetCallerIdentityResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { GetFederationTokenRequest, GetFederationTokenResponse } 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 { GetFederationTokenRequest, GetFederationTokenResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
export interface GetFederationTokenCommandInput extends GetFederationTokenRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface GetFederationTokenCommandOutput extends GetFederationTokenResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { GetSessionTokenRequest, GetSessionTokenResponse } 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 { GetSessionTokenRequest, GetSessionTokenResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
export interface GetSessionTokenCommandInput extends GetSessionTokenRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface GetSessionTokenCommandOutput extends GetSessionTokenResponse, __MetadataBearer {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,3 +1,5 @@
|
|
|
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 { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "../commands/AssumeRoleCommand";
|
|
2
4
|
import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "../commands/AssumeRoleWithSAMLCommand";
|
|
3
5
|
import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "../commands/AssumeRoleWithWebIdentityCommand";
|
|
@@ -6,8 +8,6 @@ import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "../
|
|
|
6
8
|
import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "../commands/GetCallerIdentityCommand";
|
|
7
9
|
import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "../commands/GetFederationTokenCommand";
|
|
8
10
|
import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "../commands/GetSessionTokenCommand";
|
|
9
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
10
|
-
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
11
11
|
export declare const serializeAws_queryAssumeRoleCommand: (input: AssumeRoleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
12
12
|
export declare const serializeAws_queryAssumeRoleWithSAMLCommand: (input: AssumeRoleWithSAMLCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
13
|
export declare const serializeAws_queryAssumeRoleWithWebIdentityCommand: (input: AssumeRoleWithWebIdentityCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
|
|
3
3
|
import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand";
|
|
4
4
|
import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
@@ -7,7 +7,7 @@ import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "./c
|
|
|
7
7
|
import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand";
|
|
8
8
|
import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
|
|
9
9
|
import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand";
|
|
10
|
-
import {
|
|
10
|
+
import { STSClient } from "./STSClient";
|
|
11
11
|
/**
|
|
12
12
|
* <fullname>Security Token Service</fullname>
|
|
13
13
|
* <p>Security Token Service (STS) enables you to request temporary, limited-privilege
|
|
@@ -1,3 +1,11 @@
|
|
|
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 { StsAuthInputConfig, StsAuthResolvedConfig } from "@aws-sdk/middleware-sdk-sts";
|
|
5
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
+
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
+
import { Credentials as __Credentials, 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";
|
|
1
9
|
import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
|
|
2
10
|
import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand";
|
|
3
11
|
import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
@@ -6,14 +14,6 @@ import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "./c
|
|
|
6
14
|
import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand";
|
|
7
15
|
import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
|
|
8
16
|
import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand";
|
|
9
|
-
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
10
|
-
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
11
|
-
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
12
|
-
import { StsAuthInputConfig, StsAuthResolvedConfig } from "@aws-sdk/middleware-sdk-sts";
|
|
13
|
-
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
14
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
15
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
16
|
-
import { Provider, RegionInfoProvider, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
17
17
|
export declare type ServiceInputTypes = AssumeRoleCommandInput | AssumeRoleWithSAMLCommandInput | AssumeRoleWithWebIdentityCommandInput | DecodeAuthorizationMessageCommandInput | GetAccessKeyInfoCommandInput | GetCallerIdentityCommandInput | GetFederationTokenCommandInput | GetSessionTokenCommandInput;
|
|
18
18
|
export declare type ServiceOutputTypes = AssumeRoleCommandOutput | AssumeRoleWithSAMLCommandOutput | AssumeRoleWithWebIdentityCommandOutput | DecodeAuthorizationMessageCommandOutput | GetAccessKeyInfoCommandOutput | GetCallerIdentityCommandOutput | GetFederationTokenCommandOutput | GetSessionTokenCommandOutput;
|
|
19
19
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { AssumeRoleRequest, AssumeRoleResponse } 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 { AssumeRoleRequest, AssumeRoleResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
export interface AssumeRoleCommandInput extends AssumeRoleRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface AssumeRoleCommandOutput extends AssumeRoleResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { AssumeRoleWithSAMLRequest, AssumeRoleWithSAMLResponse } 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 { AssumeRoleWithSAMLRequest, AssumeRoleWithSAMLResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
export interface AssumeRoleWithSAMLCommandInput extends AssumeRoleWithSAMLRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface AssumeRoleWithSAMLCommandOutput extends AssumeRoleWithSAMLResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { AssumeRoleWithWebIdentityRequest, AssumeRoleWithWebIdentityResponse } 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 { AssumeRoleWithWebIdentityRequest, AssumeRoleWithWebIdentityResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
export interface AssumeRoleWithWebIdentityCommandInput extends AssumeRoleWithWebIdentityRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface AssumeRoleWithWebIdentityCommandOutput extends AssumeRoleWithWebIdentityResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { DecodeAuthorizationMessageRequest, DecodeAuthorizationMessageResponse } 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 { DecodeAuthorizationMessageRequest, DecodeAuthorizationMessageResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
export interface DecodeAuthorizationMessageCommandInput extends DecodeAuthorizationMessageRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface DecodeAuthorizationMessageCommandOutput extends DecodeAuthorizationMessageResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { GetAccessKeyInfoRequest, GetAccessKeyInfoResponse } 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 { GetAccessKeyInfoRequest, GetAccessKeyInfoResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
export interface GetAccessKeyInfoCommandInput extends GetAccessKeyInfoRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface GetAccessKeyInfoCommandOutput extends GetAccessKeyInfoResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { GetCallerIdentityRequest, GetCallerIdentityResponse } 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 { GetCallerIdentityRequest, GetCallerIdentityResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
export interface GetCallerIdentityCommandInput extends GetCallerIdentityRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface GetCallerIdentityCommandOutput extends GetCallerIdentityResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { GetFederationTokenRequest, GetFederationTokenResponse } 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 { GetFederationTokenRequest, GetFederationTokenResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
export interface GetFederationTokenCommandInput extends GetFederationTokenRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface GetFederationTokenCommandOutput extends GetFederationTokenResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { GetSessionTokenRequest, GetSessionTokenResponse } 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 { GetSessionTokenRequest, GetSessionTokenResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
export interface GetSessionTokenCommandInput extends GetSessionTokenRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface GetSessionTokenCommandOutput extends GetSessionTokenResponse, __MetadataBearer {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,3 +1,5 @@
|
|
|
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 { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "../commands/AssumeRoleCommand";
|
|
2
4
|
import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "../commands/AssumeRoleWithSAMLCommand";
|
|
3
5
|
import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "../commands/AssumeRoleWithWebIdentityCommand";
|
|
@@ -6,8 +8,6 @@ import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "../
|
|
|
6
8
|
import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "../commands/GetCallerIdentityCommand";
|
|
7
9
|
import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "../commands/GetFederationTokenCommand";
|
|
8
10
|
import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "../commands/GetSessionTokenCommand";
|
|
9
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
10
|
-
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
11
11
|
export declare const serializeAws_queryAssumeRoleCommand: (input: AssumeRoleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
12
12
|
export declare const serializeAws_queryAssumeRoleWithSAMLCommand: (input: AssumeRoleWithSAMLCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
13
|
export declare const serializeAws_queryAssumeRoleWithWebIdentityCommand: (input: AssumeRoleWithWebIdentityCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.35.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
@@ -11,56 +11,50 @@
|
|
|
11
11
|
"clean": "yarn clean:dist && yarn clean:docs",
|
|
12
12
|
"clean:dist": "rimraf ./dist",
|
|
13
13
|
"clean:docs": "rimraf ./docs",
|
|
14
|
-
"downlevel-dts": "downlevel-dts dist
|
|
14
|
+
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
15
|
"test": "exit 0"
|
|
16
16
|
},
|
|
17
|
-
"main": "./dist
|
|
18
|
-
"types": "./dist
|
|
19
|
-
"module": "./dist
|
|
20
|
-
"browser": {
|
|
21
|
-
"./runtimeConfig": "./runtimeConfig.browser"
|
|
22
|
-
},
|
|
23
|
-
"react-native": {
|
|
24
|
-
"./runtimeConfig": "./runtimeConfig.native"
|
|
25
|
-
},
|
|
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/credential-provider-node": "3.
|
|
32
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
33
|
-
"@aws-sdk/hash-node": "3.
|
|
34
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
35
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
36
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
37
|
-
"@aws-sdk/middleware-logger": "3.
|
|
38
|
-
"@aws-sdk/middleware-retry": "3.
|
|
39
|
-
"@aws-sdk/middleware-sdk-sts": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
24
|
+
"@aws-sdk/config-resolver": "3.35.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.35.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.35.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.35.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.35.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.35.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.35.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.35.0",
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.35.0",
|
|
33
|
+
"@aws-sdk/middleware-sdk-sts": "3.35.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.35.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.35.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.35.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.35.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.35.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.35.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.35.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.35.0",
|
|
42
|
+
"@aws-sdk/types": "3.35.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.35.0",
|
|
44
|
+
"@aws-sdk/util-base64-browser": "3.35.0",
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.35.0",
|
|
46
|
+
"@aws-sdk/util-body-length-browser": "3.35.0",
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.35.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.35.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.35.0",
|
|
50
|
+
"@aws-sdk/util-utf8-browser": "3.35.0",
|
|
51
|
+
"@aws-sdk/util-utf8-node": "3.35.0",
|
|
58
52
|
"entities": "2.2.0",
|
|
59
53
|
"fast-xml-parser": "3.19.0",
|
|
60
54
|
"tslib": "^2.3.0"
|
|
61
55
|
},
|
|
62
56
|
"devDependencies": {
|
|
63
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
57
|
+
"@aws-sdk/client-documentation-generator": "3.35.0",
|
|
64
58
|
"@types/node": "^12.7.5",
|
|
65
59
|
"downlevel-dts": "0.7.0",
|
|
66
60
|
"jest": "^26.1.0",
|
|
@@ -74,8 +68,8 @@
|
|
|
74
68
|
},
|
|
75
69
|
"typesVersions": {
|
|
76
70
|
"<4.0": {
|
|
77
|
-
"dist
|
|
78
|
-
"dist
|
|
71
|
+
"dist-types/*": [
|
|
72
|
+
"dist-types/ts3.4/*"
|
|
79
73
|
]
|
|
80
74
|
}
|
|
81
75
|
},
|
|
@@ -84,6 +78,12 @@
|
|
|
84
78
|
"url": "https://aws.amazon.com/javascript/"
|
|
85
79
|
},
|
|
86
80
|
"license": "Apache-2.0",
|
|
81
|
+
"browser": {
|
|
82
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
83
|
+
},
|
|
84
|
+
"react-native": {
|
|
85
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
86
|
+
},
|
|
87
87
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",
|
|
88
88
|
"repository": {
|
|
89
89
|
"type": "git",
|
package/{STS.ts → src/STS.ts}
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
|
|
2
3
|
import { AssumeRoleCommand, AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
|
|
3
4
|
import {
|
|
4
5
|
AssumeRoleWithSAMLCommand,
|
|
@@ -35,7 +36,7 @@ import {
|
|
|
35
36
|
GetSessionTokenCommandInput,
|
|
36
37
|
GetSessionTokenCommandOutput,
|
|
37
38
|
} from "./commands/GetSessionTokenCommand";
|
|
38
|
-
import {
|
|
39
|
+
import { STSClient } from "./STSClient";
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
42
|
* <fullname>Security Token Service</fullname>
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
|
|
2
|
-
import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand";
|
|
3
|
-
import {
|
|
4
|
-
AssumeRoleWithWebIdentityCommandInput,
|
|
5
|
-
AssumeRoleWithWebIdentityCommandOutput,
|
|
6
|
-
} from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
7
|
-
import {
|
|
8
|
-
DecodeAuthorizationMessageCommandInput,
|
|
9
|
-
DecodeAuthorizationMessageCommandOutput,
|
|
10
|
-
} from "./commands/DecodeAuthorizationMessageCommand";
|
|
11
|
-
import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "./commands/GetAccessKeyInfoCommand";
|
|
12
|
-
import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand";
|
|
13
|
-
import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
|
|
14
|
-
import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand";
|
|
15
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
16
1
|
import {
|
|
17
2
|
EndpointsInputConfig,
|
|
18
3
|
EndpointsResolvedConfig,
|
|
@@ -23,19 +8,19 @@ import {
|
|
|
23
8
|
} from "@aws-sdk/config-resolver";
|
|
24
9
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
25
10
|
import {
|
|
11
|
+
getHostHeaderPlugin,
|
|
26
12
|
HostHeaderInputConfig,
|
|
27
13
|
HostHeaderResolvedConfig,
|
|
28
|
-
getHostHeaderPlugin,
|
|
29
14
|
resolveHostHeaderConfig,
|
|
30
15
|
} from "@aws-sdk/middleware-host-header";
|
|
31
16
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
32
|
-
import {
|
|
33
|
-
import { StsAuthInputConfig, StsAuthResolvedConfig
|
|
17
|
+
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
+
import { resolveStsAuthConfig, StsAuthInputConfig, StsAuthResolvedConfig } from "@aws-sdk/middleware-sdk-sts";
|
|
34
19
|
import {
|
|
35
|
-
UserAgentInputConfig,
|
|
36
|
-
UserAgentResolvedConfig,
|
|
37
20
|
getUserAgentPlugin,
|
|
38
21
|
resolveUserAgentConfig,
|
|
22
|
+
UserAgentInputConfig,
|
|
23
|
+
UserAgentResolvedConfig,
|
|
39
24
|
} from "@aws-sdk/middleware-user-agent";
|
|
40
25
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
41
26
|
import {
|
|
@@ -44,8 +29,6 @@ import {
|
|
|
44
29
|
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
45
30
|
} from "@aws-sdk/smithy-client";
|
|
46
31
|
import {
|
|
47
|
-
Provider,
|
|
48
|
-
RegionInfoProvider,
|
|
49
32
|
Credentials as __Credentials,
|
|
50
33
|
Decoder as __Decoder,
|
|
51
34
|
Encoder as __Encoder,
|
|
@@ -54,11 +37,29 @@ import {
|
|
|
54
37
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
55
38
|
Logger as __Logger,
|
|
56
39
|
Provider as __Provider,
|
|
40
|
+
Provider,
|
|
41
|
+
RegionInfoProvider,
|
|
57
42
|
StreamCollector as __StreamCollector,
|
|
58
43
|
UrlParser as __UrlParser,
|
|
59
44
|
UserAgent as __UserAgent,
|
|
60
45
|
} from "@aws-sdk/types";
|
|
61
46
|
|
|
47
|
+
import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
|
|
48
|
+
import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand";
|
|
49
|
+
import {
|
|
50
|
+
AssumeRoleWithWebIdentityCommandInput,
|
|
51
|
+
AssumeRoleWithWebIdentityCommandOutput,
|
|
52
|
+
} from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
53
|
+
import {
|
|
54
|
+
DecodeAuthorizationMessageCommandInput,
|
|
55
|
+
DecodeAuthorizationMessageCommandOutput,
|
|
56
|
+
} from "./commands/DecodeAuthorizationMessageCommand";
|
|
57
|
+
import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "./commands/GetAccessKeyInfoCommand";
|
|
58
|
+
import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand";
|
|
59
|
+
import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
|
|
60
|
+
import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand";
|
|
61
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
62
|
+
|
|
62
63
|
export type ServiceInputTypes =
|
|
63
64
|
| AssumeRoleCommandInput
|
|
64
65
|
| AssumeRoleWithSAMLCommandInput
|
|
@@ -236,13 +237,13 @@ export class STSClient extends __Client<
|
|
|
236
237
|
readonly config: STSClientResolvedConfig;
|
|
237
238
|
|
|
238
239
|
constructor(configuration: STSClientConfig) {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
240
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
241
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
242
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
243
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
244
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
245
|
+
const _config_5 = resolveStsAuthConfig(_config_4, { stsClientCtor: STSClient });
|
|
246
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
246
247
|
super(_config_6);
|
|
247
248
|
this.config = _config_6;
|
|
248
249
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { AssumeRoleRequest, AssumeRoleResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_queryAssumeRoleCommand, serializeAws_queryAssumeRoleCommand } from "../protocols/Aws_query";
|
|
4
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
2
|
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
6
3
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
@@ -9,12 +6,16 @@ import {
|
|
|
9
6
|
FinalizeHandlerArguments,
|
|
10
7
|
Handler,
|
|
11
8
|
HandlerExecutionContext,
|
|
12
|
-
MiddlewareStack,
|
|
13
9
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
14
10
|
MetadataBearer as __MetadataBearer,
|
|
11
|
+
MiddlewareStack,
|
|
15
12
|
SerdeContext as __SerdeContext,
|
|
16
13
|
} from "@aws-sdk/types";
|
|
17
14
|
|
|
15
|
+
import { AssumeRoleRequest, AssumeRoleResponse } from "../models/models_0";
|
|
16
|
+
import { deserializeAws_queryAssumeRoleCommand, serializeAws_queryAssumeRoleCommand } from "../protocols/Aws_query";
|
|
17
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
18
|
+
|
|
18
19
|
export interface AssumeRoleCommandInput extends AssumeRoleRequest {}
|
|
19
20
|
export interface AssumeRoleCommandOutput extends AssumeRoleResponse, __MetadataBearer {}
|
|
20
21
|
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../STSClient";
|
|
2
|
-
import { AssumeRoleWithSAMLRequest, AssumeRoleWithSAMLResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_queryAssumeRoleWithSAMLCommand,
|
|
5
|
-
serializeAws_queryAssumeRoleWithSAMLCommand,
|
|
6
|
-
} from "../protocols/Aws_query";
|
|
7
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
2
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
@@ -11,12 +5,19 @@ import {
|
|
|
11
5
|
FinalizeHandlerArguments,
|
|
12
6
|
Handler,
|
|
13
7
|
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
8
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
9
|
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
17
11
|
SerdeContext as __SerdeContext,
|
|
18
12
|
} from "@aws-sdk/types";
|
|
19
13
|
|
|
14
|
+
import { AssumeRoleWithSAMLRequest, AssumeRoleWithSAMLResponse } from "../models/models_0";
|
|
15
|
+
import {
|
|
16
|
+
deserializeAws_queryAssumeRoleWithSAMLCommand,
|
|
17
|
+
serializeAws_queryAssumeRoleWithSAMLCommand,
|
|
18
|
+
} from "../protocols/Aws_query";
|
|
19
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
20
|
+
|
|
20
21
|
export interface AssumeRoleWithSAMLCommandInput extends AssumeRoleWithSAMLRequest {}
|
|
21
22
|
export interface AssumeRoleWithSAMLCommandOutput extends AssumeRoleWithSAMLResponse, __MetadataBearer {}
|
|
22
23
|
|