@aws-sdk/client-sts 3.1045.0 → 3.1046.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/auth/httpAuthSchemeProvider.js +11 -17
- package/dist-cjs/endpoint/bdd.js +2 -2
- package/dist-cjs/endpoint/endpointResolver.js +4 -4
- package/dist-cjs/index.js +155 -57
- package/dist-cjs/models/STSServiceException.js +3 -3
- package/dist-cjs/runtimeConfig.browser.js +12 -14
- package/dist-cjs/runtimeConfig.js +19 -23
- package/dist-cjs/runtimeConfig.shared.js +9 -10
- package/dist-es/STS.js +1 -1
- package/dist-es/STSClient.js +5 -5
- package/dist-es/auth/httpAuthSchemeProvider.js +5 -10
- package/dist-es/commands/AssumeRoleCommand.js +2 -2
- package/dist-es/commands/AssumeRoleWithSAMLCommand.js +2 -2
- package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +2 -2
- package/dist-es/commands/AssumeRootCommand.js +2 -2
- package/dist-es/commands/DecodeAuthorizationMessageCommand.js +2 -2
- package/dist-es/commands/GetAccessKeyInfoCommand.js +2 -2
- package/dist-es/commands/GetCallerIdentityCommand.js +2 -2
- package/dist-es/commands/GetDelegatedAccessTokenCommand.js +2 -2
- package/dist-es/commands/GetFederationTokenCommand.js +2 -2
- package/dist-es/commands/GetSessionTokenCommand.js +2 -2
- package/dist-es/commands/GetWebIdentityTokenCommand.js +2 -2
- package/dist-es/defaultStsRoleAssumers.js +0 -5
- package/dist-es/endpoint/bdd.js +1 -1
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/STSServiceException.js +1 -1
- package/dist-es/runtimeConfig.browser.js +4 -6
- package/dist-es/runtimeConfig.js +4 -8
- package/dist-es/runtimeConfig.shared.js +3 -4
- package/dist-es/runtimeExtensions.js +2 -2
- package/dist-types/STSClient.d.ts +5 -5
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +3 -13
- package/dist-types/commands/AssumeRoleCommand.d.ts +6 -4
- package/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +6 -4
- package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +6 -4
- package/dist-types/commands/AssumeRootCommand.d.ts +6 -4
- package/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +6 -4
- package/dist-types/commands/GetAccessKeyInfoCommand.d.ts +6 -4
- package/dist-types/commands/GetCallerIdentityCommand.d.ts +6 -4
- package/dist-types/commands/GetDelegatedAccessTokenCommand.d.ts +6 -4
- package/dist-types/commands/GetFederationTokenCommand.d.ts +6 -4
- package/dist-types/commands/GetSessionTokenCommand.d.ts +6 -4
- package/dist-types/commands/GetWebIdentityTokenCommand.d.ts +6 -4
- package/dist-types/defaultStsRoleAssumers.d.ts +0 -9
- package/dist-types/endpoint/bdd.d.ts +1 -1
- package/dist-types/extensionConfiguration.d.ts +1 -1
- package/dist-types/models/STSServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +3 -3
- package/dist-types/runtimeConfig.d.ts +3 -3
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/runtimeConfig.shared.d.ts +1 -1
- package/dist-types/ts3.4/STSClient.d.ts +8 -14
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +2 -12
- package/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/AssumeRootCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetDelegatedAccessTokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetWebIdentityTokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +0 -3
- package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/STSServiceException.d.ts +1 -1
- package/dist-types/ts3.4/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
- package/package.json +15 -36
- package/dist-cjs/STSClient.js +0 -55
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/endpoint/EndpointParameters.js +0 -19
- package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-es/STSClient.js
CHANGED
|
@@ -2,13 +2,13 @@ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middlewa
|
|
|
2
2
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
3
3
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
|
-
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
5
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
6
|
+
import { Client as __Client, } from "@smithy/core/client";
|
|
7
|
+
import { resolveRegionConfig } from "@smithy/core/config";
|
|
8
|
+
import { resolveEndpointConfig } from "@smithy/core/endpoints";
|
|
9
|
+
import { getContentLengthPlugin } from "@smithy/core/protocols";
|
|
10
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
|
|
7
11
|
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
8
|
-
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
9
|
-
import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
|
|
10
|
-
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
11
|
-
import { Client as __Client, } from "@smithy/smithy-client";
|
|
12
12
|
import { defaultSTSHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
13
13
|
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
14
14
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
|
|
4
|
+
import { resolveParams } from "@smithy/core/endpoints";
|
|
5
5
|
import { defaultEndpointResolver } from "../endpoint/endpointResolver";
|
|
6
|
-
import { STSClient } from "../STSClient";
|
|
7
6
|
const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
|
|
8
7
|
if (!input) {
|
|
9
8
|
throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
|
|
@@ -130,14 +129,10 @@ export const defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSch
|
|
|
130
129
|
"aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
|
|
131
130
|
"smithy.api#noAuth": createSmithyApiNoAuthHttpAuthOption,
|
|
132
131
|
});
|
|
133
|
-
export const resolveStsAuthConfig = (input) => Object.assign(input, {
|
|
134
|
-
stsClientCtor: STSClient,
|
|
135
|
-
});
|
|
136
132
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
137
|
-
const config_0 =
|
|
138
|
-
const config_1 =
|
|
139
|
-
|
|
140
|
-
return Object.assign(config_2, {
|
|
133
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
134
|
+
const config_1 = resolveAwsSdkSigV4AConfig(config_0);
|
|
135
|
+
return Object.assign(config_1, {
|
|
141
136
|
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
142
137
|
});
|
|
143
138
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
4
|
import { AssumeRole$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
4
|
import { AssumeRoleWithSAML$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
4
|
import { AssumeRoleWithWebIdentity$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
4
|
import { AssumeRoot$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
4
|
import { DecodeAuthorizationMessage$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
4
|
import { GetAccessKeyInfo$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
4
|
import { GetCallerIdentity$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
4
|
import { GetDelegatedAccessToken$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
4
|
import { GetFederationToken$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
4
|
import { GetSessionToken$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
4
|
import { GetWebIdentityToken$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
@@ -97,11 +97,6 @@ export const getDefaultRoleAssumerWithWebIdentity = (stsOptions, STSClient) => {
|
|
|
97
97
|
return credentials;
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
|
-
export const decorateDefaultCredentialProvider = (provider) => (input) => provider({
|
|
101
|
-
roleAssumer: getDefaultRoleAssumer(input, input.stsClientCtor),
|
|
102
|
-
roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input, input.stsClientCtor),
|
|
103
|
-
...input,
|
|
104
|
-
});
|
|
105
100
|
const isH2 = (requestHandler) => {
|
|
106
101
|
return requestHandler?.metadata?.handlerProtocol === "h2";
|
|
107
102
|
};
|
package/dist-es/endpoint/bdd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BinaryDecisionDiagram } from "@smithy/
|
|
1
|
+
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
2
|
const q = "ref";
|
|
3
3
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = "us-east-1", i = "sigv4", j = "sts", k = "https://sts.{Region}.{PartitionResult#dnsSuffix}", l = { [q]: "Endpoint" }, m = { [q]: "Region" }, n = { [q]: d }, o = {}, p = [m];
|
|
4
4
|
const _data = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
-
import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/
|
|
2
|
+
import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
|
|
3
3
|
import { bdd } from "./bdd";
|
|
4
4
|
const cache = new EndpointCache({
|
|
5
5
|
size: 50,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceException as __ServiceException, } from "@smithy/
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/core/client";
|
|
2
2
|
export { __ServiceException };
|
|
3
3
|
export class STSServiceException extends __ServiceException {
|
|
4
4
|
constructor(options) {
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
3
|
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
|
|
4
|
-
import {
|
|
4
|
+
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
6
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
5
8
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
|
-
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
7
|
-
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
8
|
-
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
9
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
10
|
-
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
11
9
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
10
|
export const getRuntimeConfig = (config) => {
|
|
13
11
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -3,16 +3,12 @@ import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/cor
|
|
|
3
3
|
import { AwsSdkSigV4ASigner, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS, } from "@aws-sdk/core/httpAuthSchemes";
|
|
4
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
5
|
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
|
|
6
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
7
6
|
import { NoAuthSigner } from "@smithy/core";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
8
|
+
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
9
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
10
|
+
import { calculateBodyLength, Hash } from "@smithy/core/serde";
|
|
11
11
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
12
|
-
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
13
|
-
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
14
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
15
|
-
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
16
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
17
13
|
export const getRuntimeConfig = (config) => {
|
|
18
14
|
emitWarningIfUnsupportedVersion(process.version);
|
|
@@ -2,10 +2,9 @@ import { AwsSdkSigV4ASigner, AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSch
|
|
|
2
2
|
import { AwsQueryProtocol } from "@aws-sdk/core/protocols";
|
|
3
3
|
import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
|
|
4
4
|
import { NoAuthSigner } from "@smithy/core";
|
|
5
|
-
import { NoOpLogger } from "@smithy/
|
|
6
|
-
import { parseUrl } from "@smithy/
|
|
7
|
-
import { fromBase64, toBase64 } from "@smithy/
|
|
8
|
-
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
5
|
+
import { NoOpLogger } from "@smithy/core/client";
|
|
6
|
+
import { parseUrl } from "@smithy/core/protocols";
|
|
7
|
+
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
9
8
|
import { defaultSTSHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
10
9
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
11
10
|
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
|
|
3
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
6
|
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
2
|
import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
3
|
-
import { type
|
|
4
|
-
import { type
|
|
5
|
-
import { type
|
|
6
|
-
import type
|
|
7
|
-
import { type
|
|
3
|
+
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
|
|
4
|
+
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
|
|
5
|
+
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
|
|
6
|
+
import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
|
|
7
|
+
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
|
|
8
8
|
import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, 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 "@smithy/types";
|
|
9
9
|
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import type { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
-
import type {
|
|
2
|
+
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
3
|
import { EndpointParameters } from "../endpoint/EndpointParameters";
|
|
4
4
|
import { STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
/**
|
|
@@ -32,20 +32,10 @@ export interface STSHttpAuthSchemeProvider extends HttpAuthSchemeProvider<STSHtt
|
|
|
32
32
|
* @internal
|
|
33
33
|
*/
|
|
34
34
|
export declare const defaultSTSHttpAuthSchemeProvider: STSHttpAuthSchemeProvider;
|
|
35
|
-
export interface StsAuthInputConfig {
|
|
36
|
-
}
|
|
37
|
-
export interface StsAuthResolvedConfig {
|
|
38
|
-
/**
|
|
39
|
-
* Reference to STSClient class constructor.
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
|
-
stsClientCtor: new (clientConfig: any) => Client<any, any, any>;
|
|
43
|
-
}
|
|
44
|
-
export declare const resolveStsAuthConfig: <T>(input: T & StsAuthInputConfig) => T & StsAuthResolvedConfig;
|
|
45
35
|
/**
|
|
46
36
|
* @public
|
|
47
37
|
*/
|
|
48
|
-
export interface HttpAuthSchemeInputConfig extends
|
|
38
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AAuthInputConfig {
|
|
49
39
|
/**
|
|
50
40
|
* A comma-separated list of case-sensitive auth scheme names.
|
|
51
41
|
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
@@ -67,7 +57,7 @@ export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AwsSdkSig
|
|
|
67
57
|
/**
|
|
68
58
|
* @internal
|
|
69
59
|
*/
|
|
70
|
-
export interface HttpAuthSchemeResolvedConfig extends
|
|
60
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4AAuthResolvedConfig {
|
|
71
61
|
/**
|
|
72
62
|
* A comma-separated list of case-sensitive auth scheme names.
|
|
73
63
|
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { AssumeRoleRequest, AssumeRoleResponse } from "../models/models_0";
|
|
4
4
|
import type { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
@@ -22,9 +22,11 @@ export interface AssumeRoleCommandInput extends AssumeRoleRequest {
|
|
|
22
22
|
export interface AssumeRoleCommandOutput extends AssumeRoleResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const AssumeRoleCommand_base: {
|
|
25
|
-
new (input: AssumeRoleCommandInput): import("@smithy/
|
|
26
|
-
new (input: AssumeRoleCommandInput): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: AssumeRoleCommandInput): import("@smithy/core/client").CommandImpl<AssumeRoleCommandInput, AssumeRoleCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: AssumeRoleCommandInput): import("@smithy/core/client").CommandImpl<AssumeRoleCommandInput, AssumeRoleCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Returns a set of temporary security credentials that you can use to access Amazon Web Services
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { AssumeRoleWithSAMLRequest, AssumeRoleWithSAMLResponse } from "../models/models_0";
|
|
4
4
|
import type { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
@@ -22,9 +22,11 @@ export interface AssumeRoleWithSAMLCommandInput extends AssumeRoleWithSAMLReques
|
|
|
22
22
|
export interface AssumeRoleWithSAMLCommandOutput extends AssumeRoleWithSAMLResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const AssumeRoleWithSAMLCommand_base: {
|
|
25
|
-
new (input: AssumeRoleWithSAMLCommandInput): import("@smithy/
|
|
26
|
-
new (input: AssumeRoleWithSAMLCommandInput): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: AssumeRoleWithSAMLCommandInput): import("@smithy/core/client").CommandImpl<AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: AssumeRoleWithSAMLCommandInput): import("@smithy/core/client").CommandImpl<AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Returns a set of temporary security credentials for users who have been authenticated
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { AssumeRoleWithWebIdentityRequest, AssumeRoleWithWebIdentityResponse } from "../models/models_0";
|
|
4
4
|
import type { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
@@ -22,9 +22,11 @@ export interface AssumeRoleWithWebIdentityCommandInput extends AssumeRoleWithWeb
|
|
|
22
22
|
export interface AssumeRoleWithWebIdentityCommandOutput extends AssumeRoleWithWebIdentityResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const AssumeRoleWithWebIdentityCommand_base: {
|
|
25
|
-
new (input: AssumeRoleWithWebIdentityCommandInput): import("@smithy/
|
|
26
|
-
new (input: AssumeRoleWithWebIdentityCommandInput): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: AssumeRoleWithWebIdentityCommandInput): import("@smithy/core/client").CommandImpl<AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: AssumeRoleWithWebIdentityCommandInput): import("@smithy/core/client").CommandImpl<AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Returns a set of temporary security credentials for users who have been authenticated in
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { AssumeRootRequest, AssumeRootResponse } from "../models/models_0";
|
|
4
4
|
import type { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
@@ -22,9 +22,11 @@ export interface AssumeRootCommandInput extends AssumeRootRequest {
|
|
|
22
22
|
export interface AssumeRootCommandOutput extends AssumeRootResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const AssumeRootCommand_base: {
|
|
25
|
-
new (input: AssumeRootCommandInput): import("@smithy/
|
|
26
|
-
new (input: AssumeRootCommandInput): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: AssumeRootCommandInput): import("@smithy/core/client").CommandImpl<AssumeRootCommandInput, AssumeRootCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: AssumeRootCommandInput): import("@smithy/core/client").CommandImpl<AssumeRootCommandInput, AssumeRootCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Returns a set of short term credentials you can use to perform privileged tasks on a
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { DecodeAuthorizationMessageRequest, DecodeAuthorizationMessageResponse } from "../models/models_0";
|
|
4
4
|
import type { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
@@ -22,9 +22,11 @@ export interface DecodeAuthorizationMessageCommandInput extends DecodeAuthorizat
|
|
|
22
22
|
export interface DecodeAuthorizationMessageCommandOutput extends DecodeAuthorizationMessageResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const DecodeAuthorizationMessageCommand_base: {
|
|
25
|
-
new (input: DecodeAuthorizationMessageCommandInput): import("@smithy/
|
|
26
|
-
new (input: DecodeAuthorizationMessageCommandInput): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: DecodeAuthorizationMessageCommandInput): import("@smithy/core/client").CommandImpl<DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: DecodeAuthorizationMessageCommandInput): import("@smithy/core/client").CommandImpl<DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Decodes additional information about the authorization status of a request from an
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { GetAccessKeyInfoRequest, GetAccessKeyInfoResponse } from "../models/models_0";
|
|
4
4
|
import type { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
@@ -22,9 +22,11 @@ export interface GetAccessKeyInfoCommandInput extends GetAccessKeyInfoRequest {
|
|
|
22
22
|
export interface GetAccessKeyInfoCommandOutput extends GetAccessKeyInfoResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const GetAccessKeyInfoCommand_base: {
|
|
25
|
-
new (input: GetAccessKeyInfoCommandInput): import("@smithy/
|
|
26
|
-
new (input: GetAccessKeyInfoCommandInput): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: GetAccessKeyInfoCommandInput): import("@smithy/core/client").CommandImpl<GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetAccessKeyInfoCommandInput): import("@smithy/core/client").CommandImpl<GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Returns the account identifier for the specified access key ID.</p>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { GetCallerIdentityRequest, GetCallerIdentityResponse } from "../models/models_0";
|
|
4
4
|
import type { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
@@ -22,9 +22,11 @@ export interface GetCallerIdentityCommandInput extends GetCallerIdentityRequest
|
|
|
22
22
|
export interface GetCallerIdentityCommandOutput extends GetCallerIdentityResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const GetCallerIdentityCommand_base: {
|
|
25
|
-
new (input: GetCallerIdentityCommandInput): import("@smithy/
|
|
26
|
-
new (...[input]: [] | [GetCallerIdentityCommandInput]): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: GetCallerIdentityCommandInput): import("@smithy/core/client").CommandImpl<GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetCallerIdentityCommandInput]): import("@smithy/core/client").CommandImpl<GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Returns details about the IAM user or role whose credentials are used to
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { GetDelegatedAccessTokenRequest, GetDelegatedAccessTokenResponse } from "../models/models_0";
|
|
4
4
|
import type { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
@@ -22,9 +22,11 @@ export interface GetDelegatedAccessTokenCommandInput extends GetDelegatedAccessT
|
|
|
22
22
|
export interface GetDelegatedAccessTokenCommandOutput extends GetDelegatedAccessTokenResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const GetDelegatedAccessTokenCommand_base: {
|
|
25
|
-
new (input: GetDelegatedAccessTokenCommandInput): import("@smithy/
|
|
26
|
-
new (input: GetDelegatedAccessTokenCommandInput): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: GetDelegatedAccessTokenCommandInput): import("@smithy/core/client").CommandImpl<GetDelegatedAccessTokenCommandInput, GetDelegatedAccessTokenCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetDelegatedAccessTokenCommandInput): import("@smithy/core/client").CommandImpl<GetDelegatedAccessTokenCommandInput, GetDelegatedAccessTokenCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Exchanges a trade-in token for temporary Amazon Web Services credentials with the permissions
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { GetFederationTokenRequest, GetFederationTokenResponse } from "../models/models_0";
|
|
4
4
|
import type { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
@@ -22,9 +22,11 @@ export interface GetFederationTokenCommandInput extends GetFederationTokenReques
|
|
|
22
22
|
export interface GetFederationTokenCommandOutput extends GetFederationTokenResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const GetFederationTokenCommand_base: {
|
|
25
|
-
new (input: GetFederationTokenCommandInput): import("@smithy/
|
|
26
|
-
new (input: GetFederationTokenCommandInput): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: GetFederationTokenCommandInput): import("@smithy/core/client").CommandImpl<GetFederationTokenCommandInput, GetFederationTokenCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetFederationTokenCommandInput): import("@smithy/core/client").CommandImpl<GetFederationTokenCommandInput, GetFederationTokenCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Returns a set of temporary security credentials (consisting of an access key ID, a
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { GetSessionTokenRequest, GetSessionTokenResponse } from "../models/models_0";
|
|
4
4
|
import type { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
@@ -22,9 +22,11 @@ export interface GetSessionTokenCommandInput extends GetSessionTokenRequest {
|
|
|
22
22
|
export interface GetSessionTokenCommandOutput extends GetSessionTokenResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const GetSessionTokenCommand_base: {
|
|
25
|
-
new (input: GetSessionTokenCommandInput): import("@smithy/
|
|
26
|
-
new (...[input]: [] | [GetSessionTokenCommandInput]): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: GetSessionTokenCommandInput): import("@smithy/core/client").CommandImpl<GetSessionTokenCommandInput, GetSessionTokenCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetSessionTokenCommandInput]): import("@smithy/core/client").CommandImpl<GetSessionTokenCommandInput, GetSessionTokenCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Returns a set of temporary credentials for an Amazon Web Services account or IAM user.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { GetWebIdentityTokenRequest, GetWebIdentityTokenResponse } from "../models/models_0";
|
|
4
4
|
import type { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
@@ -22,9 +22,11 @@ export interface GetWebIdentityTokenCommandInput extends GetWebIdentityTokenRequ
|
|
|
22
22
|
export interface GetWebIdentityTokenCommandOutput extends GetWebIdentityTokenResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const GetWebIdentityTokenCommand_base: {
|
|
25
|
-
new (input: GetWebIdentityTokenCommandInput): import("@smithy/
|
|
26
|
-
new (input: GetWebIdentityTokenCommandInput): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: GetWebIdentityTokenCommandInput): import("@smithy/core/client").CommandImpl<GetWebIdentityTokenCommandInput, GetWebIdentityTokenCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetWebIdentityTokenCommandInput): import("@smithy/core/client").CommandImpl<GetWebIdentityTokenCommandInput, GetWebIdentityTokenCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Returns a signed JSON Web Token (JWT) that represents the calling Amazon Web Services identity.
|
|
@@ -32,12 +32,3 @@ export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions: STSRoleA
|
|
|
32
32
|
* @internal
|
|
33
33
|
*/
|
|
34
34
|
export type DefaultCredentialProvider = (input: any) => Provider<AwsCredentialIdentity>;
|
|
35
|
-
/**
|
|
36
|
-
* The default credential providers depend STS client to assume role with desired API: sts:assumeRole,
|
|
37
|
-
* sts:assumeRoleWithWebIdentity, etc. This function decorates the default credential provider with role assumers which
|
|
38
|
-
* encapsulates the process of calling STS commands. This can only be imported by AWS client packages to avoid circular
|
|
39
|
-
* dependencies.
|
|
40
|
-
*
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
|
-
export declare const decorateDefaultCredentialProvider: (provider: DefaultCredentialProvider) => DefaultCredentialProvider;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BinaryDecisionDiagram } from "@smithy/
|
|
1
|
+
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
2
|
export declare const bdd: BinaryDecisionDiagram;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
-
import type { HttpHandlerExtensionConfiguration } from "@smithy/
|
|
2
|
+
import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
|
|
3
3
|
import type { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
4
|
import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
5
|
/**
|