@aws-sdk/client-sts 3.31.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 +39 -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 +13 -13
- package/dist-cjs/STSClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/AssumeRoleCommand.js +6 -6
- package/dist-cjs/commands/AssumeRoleCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/AssumeRoleWithSAMLCommand.js +5 -5
- package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/AssumeRoleWithWebIdentityCommand.js +5 -5
- package/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DecodeAuthorizationMessageCommand.js +6 -6
- package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetAccessKeyInfoCommand.js +6 -6
- package/dist-cjs/commands/GetAccessKeyInfoCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetCallerIdentityCommand.js +6 -6
- package/dist-cjs/commands/GetCallerIdentityCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetFederationTokenCommand.js +6 -6
- package/dist-cjs/commands/GetFederationTokenCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetSessionTokenCommand.js +6 -6
- package/dist-cjs/commands/GetSessionTokenCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/defaultRoleAssumers.js +4 -4
- package/dist-cjs/defaultRoleAssumers.js.map +1 -0
- package/{dist/cjs → dist-cjs}/defaultStsRoleAssumers.js +2 -2
- package/dist-cjs/defaultStsRoleAssumers.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +16 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- 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 +62 -62
- package/dist-cjs/protocols/Aws_query.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +11 -10
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- 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 +2 -9
- package/dist-es/STS.js.map +1 -0
- package/{dist/es → dist-es}/STSClient.js +2 -14
- package/dist-es/STSClient.js.map +1 -0
- package/dist-es/commands/AssumeRoleCommand.js +42 -0
- package/dist-es/commands/AssumeRoleCommand.js.map +1 -0
- package/dist-es/commands/AssumeRoleWithSAMLCommand.js +40 -0
- package/dist-es/commands/AssumeRoleWithSAMLCommand.js.map +1 -0
- package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +40 -0
- package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js.map +1 -0
- package/dist-es/commands/DecodeAuthorizationMessageCommand.js +42 -0
- package/dist-es/commands/DecodeAuthorizationMessageCommand.js.map +1 -0
- package/dist-es/commands/GetAccessKeyInfoCommand.js +42 -0
- package/dist-es/commands/GetAccessKeyInfoCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetCallerIdentityCommand.js +4 -38
- package/dist-es/commands/GetCallerIdentityCommand.js.map +1 -0
- package/dist-es/commands/GetFederationTokenCommand.js +42 -0
- package/dist-es/commands/GetFederationTokenCommand.js.map +1 -0
- package/dist-es/commands/GetSessionTokenCommand.js +42 -0
- package/dist-es/commands/GetSessionTokenCommand.js.map +1 -0
- package/dist-es/defaultRoleAssumers.js +17 -0
- package/dist-es/defaultRoleAssumers.js.map +1 -0
- package/{dist/es → dist-es}/defaultStsRoleAssumers.js +10 -31
- package/dist-es/defaultStsRoleAssumers.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- 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 -87
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_query.js +152 -154
- package/dist-es/protocols/Aws_query.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +3 -6
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- 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 +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- 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 +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- 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 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- 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 +0 -16
- 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 +0 -150
- package/dist/es/commands/AssumeRoleCommand.js.map +0 -1
- package/dist/es/commands/AssumeRoleWithSAMLCommand.js +0 -196
- package/dist/es/commands/AssumeRoleWithSAMLCommand.js.map +0 -1
- package/dist/es/commands/AssumeRoleWithWebIdentityCommand.js +0 -200
- package/dist/es/commands/AssumeRoleWithWebIdentityCommand.js.map +0 -1
- package/dist/es/commands/DecodeAuthorizationMessageCommand.js +0 -102
- package/dist/es/commands/DecodeAuthorizationMessageCommand.js.map +0 -1
- package/dist/es/commands/GetAccessKeyInfoCommand.js +0 -84
- package/dist/es/commands/GetAccessKeyInfoCommand.js.map +0 -1
- package/dist/es/commands/GetCallerIdentityCommand.js.map +0 -1
- package/dist/es/commands/GetFederationTokenCommand.js +0 -205
- package/dist/es/commands/GetFederationTokenCommand.js.map +0 -1
- package/dist/es/commands/GetSessionTokenCommand.js +0 -118
- package/dist/es/commands/GetSessionTokenCommand.js.map +0 -1
- package/dist/es/defaultRoleAssumers.js +0 -33
- package/dist/es/defaultRoleAssumers.js.map +0 -1
- package/dist/es/defaultRoleAssumers.spec.js +0 -142
- 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 { 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>;
|
|
@@ -32,5 +32,6 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
32
32
|
signingEscapePath?: boolean | undefined;
|
|
33
33
|
systemClockOffset?: number | undefined;
|
|
34
34
|
signingRegion?: string | undefined;
|
|
35
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
35
36
|
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
36
37
|
};
|
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
2
|
-
import { STSClientConfig } from "./STSClient";
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
7
|
-
runtime: string;
|
|
8
|
-
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
|
-
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
|
-
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: import("./defaultStsRoleAssumers").DefaultCredentialProvider;
|
|
12
|
-
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
|
-
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
|
-
region: string | import("@aws-sdk/types").Provider<string>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
|
|
16
|
-
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
|
-
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
|
-
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
19
|
-
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
20
|
-
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
21
|
-
apiVersion: string;
|
|
22
|
-
urlParser: import("@aws-sdk/types").UrlParser;
|
|
23
|
-
disableHostPrefix: boolean;
|
|
24
|
-
logger: import("@aws-sdk/types").Logger;
|
|
25
|
-
serviceId: string;
|
|
26
|
-
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
|
-
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
|
-
tls?: boolean | undefined;
|
|
29
|
-
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
30
|
-
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
31
|
-
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
32
|
-
signingEscapePath?: boolean | undefined;
|
|
33
|
-
systemClockOffset?: number | undefined;
|
|
34
|
-
signingRegion?: string | undefined;
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
2
|
+
import { STSClientConfig } from "./STSClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
+
credentialDefaultProvider: import("./defaultStsRoleAssumers").DefaultCredentialProvider;
|
|
12
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
|
+
region: string | import("@aws-sdk/types").Provider<string>;
|
|
15
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
|
|
16
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
19
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
20
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
21
|
+
apiVersion: string;
|
|
22
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
23
|
+
disableHostPrefix: boolean;
|
|
24
|
+
logger: import("@aws-sdk/types").Logger;
|
|
25
|
+
serviceId: string;
|
|
26
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
|
+
tls?: boolean | undefined;
|
|
29
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
30
|
+
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
31
|
+
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
32
|
+
signingEscapePath?: boolean | undefined;
|
|
33
|
+
systemClockOffset?: number | undefined;
|
|
34
|
+
signingRegion?: string | undefined;
|
|
35
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
36
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
37
|
+
};
|
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { STSClientConfig } from "./STSClient";
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
|
-
export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
6
|
-
runtime: string;
|
|
7
|
-
sha256: import("@aws-sdk/types").HashConstructor;
|
|
8
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
|
-
apiVersion: string;
|
|
10
|
-
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
-
bodyLengthChecker: (body: any) => number | undefined;
|
|
12
|
-
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
|
-
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
|
-
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
15
|
-
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
16
|
-
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
17
|
-
disableHostPrefix: boolean;
|
|
18
|
-
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
19
|
-
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
20
|
-
logger: import("@aws-sdk/types").Logger;
|
|
21
|
-
serviceId: string;
|
|
22
|
-
region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
|
|
23
|
-
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
|
-
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
|
-
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
-
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
27
|
-
tls?: boolean | undefined;
|
|
28
|
-
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
29
|
-
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
30
|
-
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
31
|
-
signingEscapePath?: boolean | undefined;
|
|
32
|
-
systemClockOffset?: number | undefined;
|
|
33
|
-
signingRegion?: string | undefined;
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import { STSClientConfig } from "./STSClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
6
|
+
runtime: string;
|
|
7
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
8
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
|
+
apiVersion: string;
|
|
10
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
12
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
15
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
16
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
17
|
+
disableHostPrefix: boolean;
|
|
18
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
19
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
20
|
+
logger: import("@aws-sdk/types").Logger;
|
|
21
|
+
serviceId: string;
|
|
22
|
+
region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
|
|
23
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
27
|
+
tls?: boolean | undefined;
|
|
28
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
29
|
+
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
30
|
+
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
31
|
+
signingEscapePath?: boolean | undefined;
|
|
32
|
+
systemClockOffset?: number | undefined;
|
|
33
|
+
signingRegion?: string | undefined;
|
|
34
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
35
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
36
|
+
};
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,81 +1,75 @@
|
|
|
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
|
-
"
|
|
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/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",
|
|
67
61
|
"rimraf": "^3.0.0",
|
|
68
62
|
"ts-jest": "^26.4.1",
|
|
69
63
|
"typedoc": "^0.19.2",
|
|
70
|
-
"typescript": "~4.
|
|
64
|
+
"typescript": "~4.3.5"
|
|
71
65
|
},
|
|
72
66
|
"engines": {
|
|
73
67
|
"node": ">=10.0.0"
|
|
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
|
|