@aws-sdk/client-sts 3.51.0 → 3.54.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.
@@ -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
- * <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
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
- * <code>AssumeRole</code> (as long as the role's trust policy trusts the account).</p>
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 Amazon Cognito,
254
- * Login with Amazon, Facebook, Google, or any OpenID Connect-compatible identity
255
- * provider.</p>
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?: (body: any) => number | undefined;
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
- * <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
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
- * <code>AssumeRole</code> (as long as the role's trust policy trusts the account).</p>
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 Amazon Cognito,
12
- * Login with Amazon, Facebook, Google, or any OpenID Connect-compatible identity
13
- * provider.</p>
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
@@ -3,3 +3,4 @@ export * from "./STSClient";
3
3
  export * from "./commands";
4
4
  export * from "./defaultRoleAssumers";
5
5
  export * from "./models";
6
+ export { STSServiceException } from "./models/STSServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from STS service.
4
+ */
5
+ export declare class STSServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { STSServiceException as __BaseException } from "./STSServiceException";
2
3
  /**
3
4
  * <p>The identifiers for the temporary security credentials that the operation
4
5
  * returns.</p>
@@ -196,7 +197,7 @@ export interface AssumeRoleRequest {
196
197
  * <p>Additionally, if you used temporary credentials to perform this operation, the new
197
198
  * session inherits any transitive session tags from the calling session. If you pass a
198
199
  * session tag with the same key as an inherited tag, the operation fails. To view the
199
- * inherited tags for a session, see the CloudTrail logs. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/session-tags.html#id_session-tags_ctlogs">Viewing Session Tags in CloudTrail</a> in 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/id_session-tags.html#id_session-tags_ctlogs">Viewing Session Tags in CloudTrail</a> in the
200
201
  * <i>IAM User Guide</i>.</p>
201
202
  */
202
203
  Tags?: Tag[];
@@ -356,19 +357,25 @@ export declare namespace AssumeRoleResponse {
356
357
  * <p>The web identity token that was passed is expired or is not valid. Get a new identity
357
358
  * token from the identity provider and then retry the request.</p>
358
359
  */
359
- export interface ExpiredTokenException extends __SmithyException, $MetadataBearer {
360
- name: "ExpiredTokenException";
361
- $fault: "client";
362
- message?: string;
360
+ export declare class ExpiredTokenException extends __BaseException {
361
+ readonly name: "ExpiredTokenException";
362
+ readonly $fault: "client";
363
+ /**
364
+ * @internal
365
+ */
366
+ constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
363
367
  }
364
368
  /**
365
369
  * <p>The request was rejected because the policy document was malformed. The error message
366
370
  * describes the specific error.</p>
367
371
  */
368
- export interface MalformedPolicyDocumentException extends __SmithyException, $MetadataBearer {
369
- name: "MalformedPolicyDocumentException";
370
- $fault: "client";
371
- message?: string;
372
+ export declare class MalformedPolicyDocumentException extends __BaseException {
373
+ readonly name: "MalformedPolicyDocumentException";
374
+ readonly $fault: "client";
375
+ /**
376
+ * @internal
377
+ */
378
+ constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
372
379
  }
373
380
  /**
374
381
  * <p>The request was rejected because the total packed size of the session policies and
@@ -381,10 +388,13 @@ export interface MalformedPolicyDocumentException extends __SmithyException, $Me
381
388
  * session tag limits. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length">IAM and STS Entity
382
389
  * Character Limits</a> in the <i>IAM User Guide</i>.</p>
383
390
  */
384
- export interface PackedPolicyTooLargeException extends __SmithyException, $MetadataBearer {
385
- name: "PackedPolicyTooLargeException";
386
- $fault: "client";
387
- message?: string;
391
+ export declare class PackedPolicyTooLargeException extends __BaseException {
392
+ readonly name: "PackedPolicyTooLargeException";
393
+ readonly $fault: "client";
394
+ /**
395
+ * @internal
396
+ */
397
+ constructor(opts: __ExceptionOptionType<PackedPolicyTooLargeException, __BaseException>);
388
398
  }
389
399
  /**
390
400
  * <p>STS is not activated in the requested region for the account that is being asked to
@@ -393,10 +403,13 @@ export interface PackedPolicyTooLargeException extends __SmithyException, $Metad
393
403
  * Deactivating Amazon Web Services STS in an Amazon Web Services Region</a> in the <i>IAM User
394
404
  * Guide</i>.</p>
395
405
  */
396
- export interface RegionDisabledException extends __SmithyException, $MetadataBearer {
397
- name: "RegionDisabledException";
398
- $fault: "client";
399
- message?: string;
406
+ export declare class RegionDisabledException extends __BaseException {
407
+ readonly name: "RegionDisabledException";
408
+ readonly $fault: "client";
409
+ /**
410
+ * @internal
411
+ */
412
+ constructor(opts: __ExceptionOptionType<RegionDisabledException, __BaseException>);
400
413
  }
401
414
  export interface AssumeRoleWithSAMLRequest {
402
415
  /**
@@ -601,19 +614,25 @@ export declare namespace AssumeRoleWithSAMLResponse {
601
614
  * <p>If this error is returned for the <code>AssumeRoleWithWebIdentity</code> operation, it
602
615
  * can also mean that the claim has expired or has been explicitly revoked. </p>
603
616
  */
604
- export interface IDPRejectedClaimException extends __SmithyException, $MetadataBearer {
605
- name: "IDPRejectedClaimException";
606
- $fault: "client";
607
- message?: string;
617
+ export declare class IDPRejectedClaimException extends __BaseException {
618
+ readonly name: "IDPRejectedClaimException";
619
+ readonly $fault: "client";
620
+ /**
621
+ * @internal
622
+ */
623
+ constructor(opts: __ExceptionOptionType<IDPRejectedClaimException, __BaseException>);
608
624
  }
609
625
  /**
610
626
  * <p>The web identity token that was passed could not be validated by Amazon Web Services. Get a new
611
627
  * identity token from the identity provider and then retry the request.</p>
612
628
  */
613
- export interface InvalidIdentityTokenException extends __SmithyException, $MetadataBearer {
614
- name: "InvalidIdentityTokenException";
615
- $fault: "client";
616
- message?: string;
629
+ export declare class InvalidIdentityTokenException extends __BaseException {
630
+ readonly name: "InvalidIdentityTokenException";
631
+ readonly $fault: "client";
632
+ /**
633
+ * @internal
634
+ */
635
+ constructor(opts: __ExceptionOptionType<InvalidIdentityTokenException, __BaseException>);
617
636
  }
618
637
  export interface AssumeRoleWithWebIdentityRequest {
619
638
  /**
@@ -639,11 +658,11 @@ export interface AssumeRoleWithWebIdentityRequest {
639
658
  */
640
659
  WebIdentityToken: string | undefined;
641
660
  /**
642
- * <p>The fully qualified host component of the domain name of the identity provider.</p>
643
- * <p>Specify this value only for OAuth 2.0 access tokens. Currently
644
- * <code>www.amazon.com</code> and <code>graph.facebook.com</code> are the only supported
645
- * identity providers for OAuth 2.0 access tokens. Do not include URL schemes and port
646
- * 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>
647
666
  * <p>Do not specify this value for OpenID Connect ID tokens.</p>
648
667
  */
649
668
  ProviderId?: string;
@@ -813,10 +832,13 @@ export declare namespace AssumeRoleWithWebIdentityResponse {
813
832
  * times so that you don't exceed the request rate. If the error persists, the
814
833
  * identity provider might be down or not responding.</p>
815
834
  */
816
- export interface IDPCommunicationErrorException extends __SmithyException, $MetadataBearer {
817
- name: "IDPCommunicationErrorException";
818
- $fault: "client";
819
- message?: string;
835
+ export declare class IDPCommunicationErrorException extends __BaseException {
836
+ readonly name: "IDPCommunicationErrorException";
837
+ readonly $fault: "client";
838
+ /**
839
+ * @internal
840
+ */
841
+ constructor(opts: __ExceptionOptionType<IDPCommunicationErrorException, __BaseException>);
820
842
  }
821
843
  export interface DecodeAuthorizationMessageRequest {
822
844
  /**
@@ -851,10 +873,13 @@ export declare namespace DecodeAuthorizationMessageResponse {
851
873
  * was invalid. This can happen if the token contains invalid characters, such as
852
874
  * linebreaks. </p>
853
875
  */
854
- export interface InvalidAuthorizationMessageException extends __SmithyException, $MetadataBearer {
855
- name: "InvalidAuthorizationMessageException";
856
- $fault: "client";
857
- message?: string;
876
+ export declare class InvalidAuthorizationMessageException extends __BaseException {
877
+ readonly name: "InvalidAuthorizationMessageException";
878
+ readonly $fault: "client";
879
+ /**
880
+ * @internal
881
+ */
882
+ constructor(opts: __ExceptionOptionType<InvalidAuthorizationMessageException, __BaseException>);
858
883
  }
859
884
  export interface GetAccessKeyInfoRequest {
860
885
  /**
@@ -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: (body: any) => number | undefined;
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: (body: any) => number | undefined;
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: (body: any) => number | undefined;
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;
@@ -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?: (body: any) => number | undefined;
27
+ bodyLengthChecker?: __BodyLengthCalculator;
28
28
 
29
29
  streamCollector?: __StreamCollector;
30
30
 
@@ -3,3 +3,4 @@ export * from "./STSClient";
3
3
  export * from "./commands";
4
4
  export * from "./defaultRoleAssumers";
5
5
  export * from "./models";
6
+ export { STSServiceException } from "./models/STSServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class STSServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { STSServiceException as __BaseException } from "./STSServiceException";
2
3
 
3
4
  export interface AssumedRoleUser {
4
5
 
@@ -89,28 +90,32 @@ export declare namespace AssumeRoleResponse {
89
90
  const filterSensitiveLog: (obj: AssumeRoleResponse) => any;
90
91
  }
91
92
 
92
- export interface ExpiredTokenException extends __SmithyException, $MetadataBearer {
93
- name: "ExpiredTokenException";
94
- $fault: "client";
95
- message?: string;
93
+ export declare class ExpiredTokenException extends __BaseException {
94
+ readonly name: "ExpiredTokenException";
95
+ readonly $fault: "client";
96
+
97
+ constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
96
98
  }
97
99
 
98
- export interface MalformedPolicyDocumentException extends __SmithyException, $MetadataBearer {
99
- name: "MalformedPolicyDocumentException";
100
- $fault: "client";
101
- message?: string;
100
+ export declare class MalformedPolicyDocumentException extends __BaseException {
101
+ readonly name: "MalformedPolicyDocumentException";
102
+ readonly $fault: "client";
103
+
104
+ constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
102
105
  }
103
106
 
104
- export interface PackedPolicyTooLargeException extends __SmithyException, $MetadataBearer {
105
- name: "PackedPolicyTooLargeException";
106
- $fault: "client";
107
- message?: string;
107
+ export declare class PackedPolicyTooLargeException extends __BaseException {
108
+ readonly name: "PackedPolicyTooLargeException";
109
+ readonly $fault: "client";
110
+
111
+ constructor(opts: __ExceptionOptionType<PackedPolicyTooLargeException, __BaseException>);
108
112
  }
109
113
 
110
- export interface RegionDisabledException extends __SmithyException, $MetadataBearer {
111
- name: "RegionDisabledException";
112
- $fault: "client";
113
- message?: string;
114
+ export declare class RegionDisabledException extends __BaseException {
115
+ readonly name: "RegionDisabledException";
116
+ readonly $fault: "client";
117
+
118
+ constructor(opts: __ExceptionOptionType<RegionDisabledException, __BaseException>);
114
119
  }
115
120
  export interface AssumeRoleWithSAMLRequest {
116
121
 
@@ -156,16 +161,18 @@ export declare namespace AssumeRoleWithSAMLResponse {
156
161
  const filterSensitiveLog: (obj: AssumeRoleWithSAMLResponse) => any;
157
162
  }
158
163
 
159
- export interface IDPRejectedClaimException extends __SmithyException, $MetadataBearer {
160
- name: "IDPRejectedClaimException";
161
- $fault: "client";
162
- message?: string;
164
+ export declare class IDPRejectedClaimException extends __BaseException {
165
+ readonly name: "IDPRejectedClaimException";
166
+ readonly $fault: "client";
167
+
168
+ constructor(opts: __ExceptionOptionType<IDPRejectedClaimException, __BaseException>);
163
169
  }
164
170
 
165
- export interface InvalidIdentityTokenException extends __SmithyException, $MetadataBearer {
166
- name: "InvalidIdentityTokenException";
167
- $fault: "client";
168
- message?: string;
171
+ export declare class InvalidIdentityTokenException extends __BaseException {
172
+ readonly name: "InvalidIdentityTokenException";
173
+ readonly $fault: "client";
174
+
175
+ constructor(opts: __ExceptionOptionType<InvalidIdentityTokenException, __BaseException>);
169
176
  }
170
177
  export interface AssumeRoleWithWebIdentityRequest {
171
178
 
@@ -209,10 +216,11 @@ export declare namespace AssumeRoleWithWebIdentityResponse {
209
216
  const filterSensitiveLog: (obj: AssumeRoleWithWebIdentityResponse) => any;
210
217
  }
211
218
 
212
- export interface IDPCommunicationErrorException extends __SmithyException, $MetadataBearer {
213
- name: "IDPCommunicationErrorException";
214
- $fault: "client";
215
- message?: string;
219
+ export declare class IDPCommunicationErrorException extends __BaseException {
220
+ readonly name: "IDPCommunicationErrorException";
221
+ readonly $fault: "client";
222
+
223
+ constructor(opts: __ExceptionOptionType<IDPCommunicationErrorException, __BaseException>);
216
224
  }
217
225
  export interface DecodeAuthorizationMessageRequest {
218
226
 
@@ -232,10 +240,11 @@ export declare namespace DecodeAuthorizationMessageResponse {
232
240
  const filterSensitiveLog: (obj: DecodeAuthorizationMessageResponse) => any;
233
241
  }
234
242
 
235
- export interface InvalidAuthorizationMessageException extends __SmithyException, $MetadataBearer {
236
- name: "InvalidAuthorizationMessageException";
237
- $fault: "client";
238
- message?: string;
243
+ export declare class InvalidAuthorizationMessageException extends __BaseException {
244
+ readonly name: "InvalidAuthorizationMessageException";
245
+ readonly $fault: "client";
246
+
247
+ constructor(opts: __ExceptionOptionType<InvalidAuthorizationMessageException, __BaseException>);
239
248
  }
240
249
  export interface GetAccessKeyInfoRequest {
241
250
 
@@ -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: (body: any) => number | undefined;
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: (body: any) => number | undefined;
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: (body: any) => number | undefined;
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;
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.51.0",
4
+ "version": "3.54.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",
@@ -9,7 +9,7 @@
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "rimraf ./dist-*"
12
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
13
13
  },
14
14
  "main": "./dist-cjs/index.js",
15
15
  "types": "./dist-types/index.d.ts",
@@ -18,42 +18,42 @@
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.51.0",
22
- "@aws-sdk/credential-provider-node": "3.51.0",
23
- "@aws-sdk/fetch-http-handler": "3.50.0",
24
- "@aws-sdk/hash-node": "3.50.0",
25
- "@aws-sdk/invalid-dependency": "3.50.0",
26
- "@aws-sdk/middleware-content-length": "3.50.0",
27
- "@aws-sdk/middleware-host-header": "3.50.0",
28
- "@aws-sdk/middleware-logger": "3.50.0",
29
- "@aws-sdk/middleware-retry": "3.51.0",
30
- "@aws-sdk/middleware-sdk-sts": "3.50.0",
31
- "@aws-sdk/middleware-serde": "3.50.0",
32
- "@aws-sdk/middleware-signing": "3.50.0",
33
- "@aws-sdk/middleware-stack": "3.50.0",
34
- "@aws-sdk/middleware-user-agent": "3.50.0",
35
- "@aws-sdk/node-config-provider": "3.51.0",
36
- "@aws-sdk/node-http-handler": "3.50.0",
37
- "@aws-sdk/protocol-http": "3.50.0",
38
- "@aws-sdk/smithy-client": "3.50.0",
39
- "@aws-sdk/types": "3.50.0",
40
- "@aws-sdk/url-parser": "3.50.0",
41
- "@aws-sdk/util-base64-browser": "3.49.0",
42
- "@aws-sdk/util-base64-node": "3.49.0",
43
- "@aws-sdk/util-body-length-browser": "3.49.0",
44
- "@aws-sdk/util-body-length-node": "3.49.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.50.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.51.0",
47
- "@aws-sdk/util-user-agent-browser": "3.50.0",
48
- "@aws-sdk/util-user-agent-node": "3.51.0",
49
- "@aws-sdk/util-utf8-browser": "3.49.0",
50
- "@aws-sdk/util-utf8-node": "3.49.0",
21
+ "@aws-sdk/config-resolver": "3.54.0",
22
+ "@aws-sdk/credential-provider-node": "3.54.0",
23
+ "@aws-sdk/fetch-http-handler": "3.54.0",
24
+ "@aws-sdk/hash-node": "3.54.0",
25
+ "@aws-sdk/invalid-dependency": "3.54.0",
26
+ "@aws-sdk/middleware-content-length": "3.54.0",
27
+ "@aws-sdk/middleware-host-header": "3.54.0",
28
+ "@aws-sdk/middleware-logger": "3.54.0",
29
+ "@aws-sdk/middleware-retry": "3.54.0",
30
+ "@aws-sdk/middleware-sdk-sts": "3.54.0",
31
+ "@aws-sdk/middleware-serde": "3.54.0",
32
+ "@aws-sdk/middleware-signing": "3.54.0",
33
+ "@aws-sdk/middleware-stack": "3.54.0",
34
+ "@aws-sdk/middleware-user-agent": "3.54.0",
35
+ "@aws-sdk/node-config-provider": "3.54.0",
36
+ "@aws-sdk/node-http-handler": "3.54.0",
37
+ "@aws-sdk/protocol-http": "3.54.0",
38
+ "@aws-sdk/smithy-client": "3.54.0",
39
+ "@aws-sdk/types": "3.54.0",
40
+ "@aws-sdk/url-parser": "3.54.0",
41
+ "@aws-sdk/util-base64-browser": "3.52.0",
42
+ "@aws-sdk/util-base64-node": "3.52.0",
43
+ "@aws-sdk/util-body-length-browser": "3.54.0",
44
+ "@aws-sdk/util-body-length-node": "3.54.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.54.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.0",
48
+ "@aws-sdk/util-user-agent-node": "3.54.0",
49
+ "@aws-sdk/util-utf8-browser": "3.52.0",
50
+ "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "entities": "2.2.0",
52
52
  "fast-xml-parser": "3.19.0",
53
53
  "tslib": "^2.3.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@aws-sdk/service-client-documentation-generator": "3.49.0",
56
+ "@aws-sdk/service-client-documentation-generator": "3.52.0",
57
57
  "@tsconfig/recommended": "1.0.1",
58
58
  "@types/node": "^12.7.5",
59
59
  "concurrently": "7.0.0",