@aws-sdk/client-sts 3.52.0 → 3.53.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.
@@ -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>
@@ -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
  /**
@@ -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
  /**
@@ -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
 
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.52.0",
4
+ "version": "3.53.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,34 +18,34 @@
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.52.0",
22
- "@aws-sdk/credential-provider-node": "3.52.0",
23
- "@aws-sdk/fetch-http-handler": "3.52.0",
24
- "@aws-sdk/hash-node": "3.52.0",
25
- "@aws-sdk/invalid-dependency": "3.52.0",
26
- "@aws-sdk/middleware-content-length": "3.52.0",
27
- "@aws-sdk/middleware-host-header": "3.52.0",
28
- "@aws-sdk/middleware-logger": "3.52.0",
29
- "@aws-sdk/middleware-retry": "3.52.0",
30
- "@aws-sdk/middleware-sdk-sts": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/config-resolver": "3.53.0",
22
+ "@aws-sdk/credential-provider-node": "3.53.0",
23
+ "@aws-sdk/fetch-http-handler": "3.53.0",
24
+ "@aws-sdk/hash-node": "3.53.0",
25
+ "@aws-sdk/invalid-dependency": "3.53.0",
26
+ "@aws-sdk/middleware-content-length": "3.53.0",
27
+ "@aws-sdk/middleware-host-header": "3.53.0",
28
+ "@aws-sdk/middleware-logger": "3.53.0",
29
+ "@aws-sdk/middleware-retry": "3.53.0",
30
+ "@aws-sdk/middleware-sdk-sts": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "entities": "2.2.0",