@aws-sdk/client-sts 3.53.0 → 3.55.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 +27 -0
- package/dist-cjs/STSClient.js +12 -12
- package/dist-cjs/commands/AssumeRoleCommand.js +4 -4
- package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +3 -3
- package/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +3 -3
- package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +4 -4
- package/dist-cjs/commands/GetAccessKeyInfoCommand.js +4 -4
- package/dist-cjs/commands/GetCallerIdentityCommand.js +4 -4
- package/dist-cjs/commands/GetFederationTokenCommand.js +4 -4
- package/dist-cjs/commands/GetSessionTokenCommand.js +4 -4
- package/dist-cjs/defaultRoleAssumers.js +4 -4
- package/dist-cjs/defaultStsRoleAssumers.js +2 -2
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_query.js +56 -56
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/STS.js +8 -8
- package/dist-es/defaultStsRoleAssumers.js +2 -2
- package/dist-es/protocols/Aws_query.js +10 -10
- package/dist-types/STS.d.ts +7 -7
- package/dist-types/STSClient.d.ts +2 -2
- package/dist-types/commands/AssumeRoleCommand.d.ts +4 -4
- package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -3
- package/dist-types/models/models_0.d.ts +6 -6
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/STSClient.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -623,7 +623,7 @@ var serializeAws_queryAssumeRoleRequest = function (input, context) {
|
|
|
623
623
|
var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
|
|
624
624
|
Object.entries(memberEntries).forEach(function (_a) {
|
|
625
625
|
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
626
|
-
var loc = "PolicyArns."
|
|
626
|
+
var loc = "PolicyArns.".concat(key);
|
|
627
627
|
entries[loc] = value;
|
|
628
628
|
});
|
|
629
629
|
}
|
|
@@ -637,7 +637,7 @@ var serializeAws_queryAssumeRoleRequest = function (input, context) {
|
|
|
637
637
|
var memberEntries = serializeAws_querytagListType(input.Tags, context);
|
|
638
638
|
Object.entries(memberEntries).forEach(function (_a) {
|
|
639
639
|
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
640
|
-
var loc = "Tags."
|
|
640
|
+
var loc = "Tags.".concat(key);
|
|
641
641
|
entries[loc] = value;
|
|
642
642
|
});
|
|
643
643
|
}
|
|
@@ -645,7 +645,7 @@ var serializeAws_queryAssumeRoleRequest = function (input, context) {
|
|
|
645
645
|
var memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context);
|
|
646
646
|
Object.entries(memberEntries).forEach(function (_a) {
|
|
647
647
|
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
648
|
-
var loc = "TransitiveTagKeys."
|
|
648
|
+
var loc = "TransitiveTagKeys.".concat(key);
|
|
649
649
|
entries[loc] = value;
|
|
650
650
|
});
|
|
651
651
|
}
|
|
@@ -678,7 +678,7 @@ var serializeAws_queryAssumeRoleWithSAMLRequest = function (input, context) {
|
|
|
678
678
|
var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
|
|
679
679
|
Object.entries(memberEntries).forEach(function (_a) {
|
|
680
680
|
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
681
|
-
var loc = "PolicyArns."
|
|
681
|
+
var loc = "PolicyArns.".concat(key);
|
|
682
682
|
entries[loc] = value;
|
|
683
683
|
});
|
|
684
684
|
}
|
|
@@ -708,7 +708,7 @@ var serializeAws_queryAssumeRoleWithWebIdentityRequest = function (input, contex
|
|
|
708
708
|
var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
|
|
709
709
|
Object.entries(memberEntries).forEach(function (_a) {
|
|
710
710
|
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
711
|
-
var loc = "PolicyArns."
|
|
711
|
+
var loc = "PolicyArns.".concat(key);
|
|
712
712
|
entries[loc] = value;
|
|
713
713
|
});
|
|
714
714
|
}
|
|
@@ -750,7 +750,7 @@ var serializeAws_queryGetFederationTokenRequest = function (input, context) {
|
|
|
750
750
|
var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
|
|
751
751
|
Object.entries(memberEntries).forEach(function (_a) {
|
|
752
752
|
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
753
|
-
var loc = "PolicyArns."
|
|
753
|
+
var loc = "PolicyArns.".concat(key);
|
|
754
754
|
entries[loc] = value;
|
|
755
755
|
});
|
|
756
756
|
}
|
|
@@ -761,7 +761,7 @@ var serializeAws_queryGetFederationTokenRequest = function (input, context) {
|
|
|
761
761
|
var memberEntries = serializeAws_querytagListType(input.Tags, context);
|
|
762
762
|
Object.entries(memberEntries).forEach(function (_a) {
|
|
763
763
|
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
764
|
-
var loc = "Tags."
|
|
764
|
+
var loc = "Tags.".concat(key);
|
|
765
765
|
entries[loc] = value;
|
|
766
766
|
});
|
|
767
767
|
}
|
|
@@ -793,7 +793,7 @@ var serializeAws_querypolicyDescriptorListType = function (input, context) {
|
|
|
793
793
|
var memberEntries = serializeAws_queryPolicyDescriptorType(entry, context);
|
|
794
794
|
Object.entries(memberEntries).forEach(function (_a) {
|
|
795
795
|
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
796
|
-
entries["member."
|
|
796
|
+
entries["member.".concat(counter, ".").concat(key)] = value;
|
|
797
797
|
});
|
|
798
798
|
counter++;
|
|
799
799
|
}
|
|
@@ -834,7 +834,7 @@ var serializeAws_querytagKeyListType = function (input, context) {
|
|
|
834
834
|
if (entry === null) {
|
|
835
835
|
continue;
|
|
836
836
|
}
|
|
837
|
-
entries["member."
|
|
837
|
+
entries["member.".concat(counter)] = entry;
|
|
838
838
|
counter++;
|
|
839
839
|
}
|
|
840
840
|
}
|
|
@@ -860,7 +860,7 @@ var serializeAws_querytagListType = function (input, context) {
|
|
|
860
860
|
var memberEntries = serializeAws_queryTag(entry, context);
|
|
861
861
|
Object.entries(memberEntries).forEach(function (_a) {
|
|
862
862
|
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
863
|
-
entries["member."
|
|
863
|
+
entries["member.".concat(counter, ".").concat(key)] = value;
|
|
864
864
|
});
|
|
865
865
|
counter++;
|
|
866
866
|
}
|
package/dist-types/STS.d.ts
CHANGED
|
@@ -45,8 +45,8 @@ export declare class STS extends STSClient {
|
|
|
45
45
|
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
|
|
46
46
|
* Policies</a> in the <i>IAM User Guide</i>.</p>
|
|
47
47
|
* <p>When you create a role, you create two policies: A role trust policy that specifies
|
|
48
|
-
*
|
|
49
|
-
*
|
|
48
|
+
* <i>who</i> can assume the role and a permissions policy that specifies
|
|
49
|
+
* <i>what</i> can be done with the role. You specify the trusted principal
|
|
50
50
|
* who is allowed to assume the role in the role trust policy.</p>
|
|
51
51
|
* <p>To assume a role from a different account, your Amazon Web Services account must be trusted by the
|
|
52
52
|
* role. The trust relationship is defined in the role's trust policy when the role is
|
|
@@ -60,8 +60,8 @@ export declare class STS extends STSClient {
|
|
|
60
60
|
* following:</p>
|
|
61
61
|
* <ul>
|
|
62
62
|
* <li>
|
|
63
|
-
* <p>Attach a policy to the user that allows the user to call
|
|
64
|
-
*
|
|
63
|
+
* <p>Attach a policy to the user that allows the user to call <code>AssumeRole</code>
|
|
64
|
+
* (as long as the role's trust policy trusts the account).</p>
|
|
65
65
|
* </li>
|
|
66
66
|
* <li>
|
|
67
67
|
* <p>Add the user as a principal directly in the role's trust policy.</p>
|
|
@@ -250,9 +250,9 @@ export declare class STS extends STSClient {
|
|
|
250
250
|
assumeRoleWithSAML(args: AssumeRoleWithSAMLCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssumeRoleWithSAMLCommandOutput) => void): void;
|
|
251
251
|
/**
|
|
252
252
|
* <p>Returns a set of temporary security credentials for users who have been authenticated in
|
|
253
|
-
* a mobile or web application with a web identity provider. Example providers include
|
|
254
|
-
* Login with Amazon
|
|
255
|
-
* provider
|
|
253
|
+
* a mobile or web application with a web identity provider. Example providers include the
|
|
254
|
+
* OAuth 2.0 providers Login with Amazon and Facebook, or any OpenID Connect-compatible
|
|
255
|
+
* identity provider such as Google or <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html">Amazon Cognito federated identities</a>.</p>
|
|
256
256
|
* <note>
|
|
257
257
|
* <p>For mobile applications, we recommend that you use Amazon Cognito. You can use Amazon Cognito with the
|
|
258
258
|
* <a href="http://aws.amazon.com/sdkforios/">Amazon Web Services SDK for iOS Developer Guide</a> and the <a href="http://aws.amazon.com/sdkforandroid/">Amazon Web Services SDK for Android Developer Guide</a> to uniquely
|
|
@@ -5,7 +5,7 @@ import { StsAuthInputConfig, StsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, 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";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, 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";
|
|
9
9
|
import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
|
|
10
10
|
import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand";
|
|
11
11
|
import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
@@ -36,7 +36,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
36
36
|
* A function that can calculate the length of a request body.
|
|
37
37
|
* @internal
|
|
38
38
|
*/
|
|
39
|
-
bodyLengthChecker?:
|
|
39
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
40
40
|
/**
|
|
41
41
|
* A function that converts a stream into an array of bytes.
|
|
42
42
|
* @internal
|
|
@@ -35,8 +35,8 @@ export interface AssumeRoleCommandOutput extends AssumeRoleResponse, __MetadataB
|
|
|
35
35
|
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
|
|
36
36
|
* Policies</a> in the <i>IAM User Guide</i>.</p>
|
|
37
37
|
* <p>When you create a role, you create two policies: A role trust policy that specifies
|
|
38
|
-
*
|
|
39
|
-
*
|
|
38
|
+
* <i>who</i> can assume the role and a permissions policy that specifies
|
|
39
|
+
* <i>what</i> can be done with the role. You specify the trusted principal
|
|
40
40
|
* who is allowed to assume the role in the role trust policy.</p>
|
|
41
41
|
* <p>To assume a role from a different account, your Amazon Web Services account must be trusted by the
|
|
42
42
|
* role. The trust relationship is defined in the role's trust policy when the role is
|
|
@@ -50,8 +50,8 @@ export interface AssumeRoleCommandOutput extends AssumeRoleResponse, __MetadataB
|
|
|
50
50
|
* following:</p>
|
|
51
51
|
* <ul>
|
|
52
52
|
* <li>
|
|
53
|
-
* <p>Attach a policy to the user that allows the user to call
|
|
54
|
-
*
|
|
53
|
+
* <p>Attach a policy to the user that allows the user to call <code>AssumeRole</code>
|
|
54
|
+
* (as long as the role's trust policy trusts the account).</p>
|
|
55
55
|
* </li>
|
|
56
56
|
* <li>
|
|
57
57
|
* <p>Add the user as a principal directly in the role's trust policy.</p>
|
|
@@ -8,9 +8,9 @@ export interface AssumeRoleWithWebIdentityCommandOutput extends AssumeRoleWithWe
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Returns a set of temporary security credentials for users who have been authenticated in
|
|
11
|
-
* a mobile or web application with a web identity provider. Example providers include
|
|
12
|
-
* Login with Amazon
|
|
13
|
-
* provider
|
|
11
|
+
* a mobile or web application with a web identity provider. Example providers include the
|
|
12
|
+
* OAuth 2.0 providers Login with Amazon and Facebook, or any OpenID Connect-compatible
|
|
13
|
+
* identity provider such as Google or <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html">Amazon Cognito federated identities</a>.</p>
|
|
14
14
|
* <note>
|
|
15
15
|
* <p>For mobile applications, we recommend that you use Amazon Cognito. You can use Amazon Cognito with the
|
|
16
16
|
* <a href="http://aws.amazon.com/sdkforios/">Amazon Web Services SDK for iOS Developer Guide</a> and the <a href="http://aws.amazon.com/sdkforandroid/">Amazon Web Services SDK for Android Developer Guide</a> to uniquely
|
|
@@ -197,7 +197,7 @@ export interface AssumeRoleRequest {
|
|
|
197
197
|
* <p>Additionally, if you used temporary credentials to perform this operation, the new
|
|
198
198
|
* session inherits any transitive session tags from the calling session. If you pass a
|
|
199
199
|
* session tag with the same key as an inherited tag, the operation fails. To view the
|
|
200
|
-
* inherited tags for a session, see the CloudTrail logs. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/
|
|
200
|
+
* inherited tags for a session, see the CloudTrail logs. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_ctlogs">Viewing Session Tags in CloudTrail</a> in the
|
|
201
201
|
* <i>IAM User Guide</i>.</p>
|
|
202
202
|
*/
|
|
203
203
|
Tags?: Tag[];
|
|
@@ -658,11 +658,11 @@ export interface AssumeRoleWithWebIdentityRequest {
|
|
|
658
658
|
*/
|
|
659
659
|
WebIdentityToken: string | undefined;
|
|
660
660
|
/**
|
|
661
|
-
* <p>The fully qualified host component of the domain name of the identity
|
|
662
|
-
*
|
|
663
|
-
*
|
|
664
|
-
* identity providers for OAuth 2.0 access tokens. Do not include URL schemes and
|
|
665
|
-
* numbers.</p>
|
|
661
|
+
* <p>The fully qualified host component of the domain name of the OAuth 2.0 identity
|
|
662
|
+
* provider. Do not specify this value for an OpenID Connect identity provider.</p>
|
|
663
|
+
* <p>Currently <code>www.amazon.com</code> and <code>graph.facebook.com</code> are the only
|
|
664
|
+
* supported identity providers for OAuth 2.0 access tokens. Do not include URL schemes and
|
|
665
|
+
* port numbers.</p>
|
|
666
666
|
* <p>Do not specify this value for OpenID Connect ID tokens.</p>
|
|
667
667
|
*/
|
|
668
668
|
ProviderId?: string;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: import("./defaultStsRoleAssumers").DefaultCredentialProvider;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
8
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
9
|
apiVersion: string;
|
|
10
10
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
13
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
14
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
21
21
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
22
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
23
23
|
serviceId: string;
|
|
24
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
24
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
29
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
30
30
|
tls?: boolean | undefined;
|
|
31
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -5,7 +5,7 @@ import { StsAuthInputConfig, StsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, 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";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, 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";
|
|
9
9
|
import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
|
|
10
10
|
import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand";
|
|
11
11
|
import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
@@ -24,7 +24,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
24
24
|
|
|
25
25
|
urlParser?: __UrlParser;
|
|
26
26
|
|
|
27
|
-
bodyLengthChecker?:
|
|
27
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
28
28
|
|
|
29
29
|
streamCollector?: __StreamCollector;
|
|
30
30
|
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: import("./defaultStsRoleAssumers").DefaultCredentialProvider;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
6
6
|
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;
|
|
7
7
|
apiVersion: string;
|
|
8
8
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
11
11
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
12
12
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
19
19
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
21
|
serviceId: string;
|
|
22
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
22
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
27
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
28
|
tls?: boolean | undefined;
|
|
29
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
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.55.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,49 +18,49 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/config-resolver": "3.
|
|
22
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
24
|
-
"@aws-sdk/hash-node": "3.
|
|
25
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
26
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-retry": "3.
|
|
30
|
-
"@aws-sdk/middleware-sdk-sts": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-node": "3.
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
21
|
+
"@aws-sdk/config-resolver": "3.55.0",
|
|
22
|
+
"@aws-sdk/credential-provider-node": "3.55.0",
|
|
23
|
+
"@aws-sdk/fetch-http-handler": "3.55.0",
|
|
24
|
+
"@aws-sdk/hash-node": "3.55.0",
|
|
25
|
+
"@aws-sdk/invalid-dependency": "3.55.0",
|
|
26
|
+
"@aws-sdk/middleware-content-length": "3.55.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.55.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.55.0",
|
|
29
|
+
"@aws-sdk/middleware-retry": "3.55.0",
|
|
30
|
+
"@aws-sdk/middleware-sdk-sts": "3.55.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.55.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.55.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.55.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.55.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.55.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.55.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.55.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.55.0",
|
|
39
|
+
"@aws-sdk/types": "3.55.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.55.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.55.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.55.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.55.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.55.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.55.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.55.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.55.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.55.0",
|
|
51
51
|
"entities": "2.2.0",
|
|
52
52
|
"fast-xml-parser": "3.19.0",
|
|
53
|
-
"tslib": "^2.3.
|
|
53
|
+
"tslib": "^2.3.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
56
|
+
"@aws-sdk/service-client-documentation-generator": "3.55.0",
|
|
57
57
|
"@tsconfig/recommended": "1.0.1",
|
|
58
58
|
"@types/node": "^12.7.5",
|
|
59
59
|
"concurrently": "7.0.0",
|
|
60
60
|
"downlevel-dts": "0.7.0",
|
|
61
61
|
"rimraf": "3.0.2",
|
|
62
62
|
"typedoc": "0.19.2",
|
|
63
|
-
"typescript": "~4.
|
|
63
|
+
"typescript": "~4.6.2"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">=12.0.0"
|