@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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-sts
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.STSServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./STS"), exports);
5
6
  tslib_1.__exportStar(require("./STSClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./defaultRoleAssumers"), exports);
8
9
  tslib_1.__exportStar(require("./models"), exports);
10
+ var STSServiceException_1 = require("./models/STSServiceException");
11
+ Object.defineProperty(exports, "STSServiceException", { enumerable: true, get: function () { return STSServiceException_1.STSServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.STSServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class STSServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, STSServiceException.prototype);
9
+ }
10
+ }
11
+ exports.STSServiceException = STSServiceException;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetSessionTokenResponse = exports.GetSessionTokenRequest = exports.GetFederationTokenResponse = exports.FederatedUser = exports.GetFederationTokenRequest = exports.GetCallerIdentityResponse = exports.GetCallerIdentityRequest = exports.GetAccessKeyInfoResponse = exports.GetAccessKeyInfoRequest = exports.DecodeAuthorizationMessageResponse = exports.DecodeAuthorizationMessageRequest = exports.AssumeRoleWithWebIdentityResponse = exports.AssumeRoleWithWebIdentityRequest = exports.AssumeRoleWithSAMLResponse = exports.AssumeRoleWithSAMLRequest = exports.AssumeRoleResponse = exports.Credentials = exports.AssumeRoleRequest = exports.Tag = exports.PolicyDescriptorType = exports.AssumedRoleUser = void 0;
3
+ exports.GetSessionTokenResponse = exports.GetSessionTokenRequest = exports.GetFederationTokenResponse = exports.FederatedUser = exports.GetFederationTokenRequest = exports.GetCallerIdentityResponse = exports.GetCallerIdentityRequest = exports.GetAccessKeyInfoResponse = exports.GetAccessKeyInfoRequest = exports.InvalidAuthorizationMessageException = exports.DecodeAuthorizationMessageResponse = exports.DecodeAuthorizationMessageRequest = exports.IDPCommunicationErrorException = exports.AssumeRoleWithWebIdentityResponse = exports.AssumeRoleWithWebIdentityRequest = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.AssumeRoleWithSAMLResponse = exports.AssumeRoleWithSAMLRequest = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = exports.AssumeRoleResponse = exports.Credentials = exports.AssumeRoleRequest = exports.Tag = exports.PolicyDescriptorType = exports.AssumedRoleUser = void 0;
4
+ const STSServiceException_1 = require("./STSServiceException");
4
5
  var AssumedRoleUser;
5
6
  (function (AssumedRoleUser) {
6
7
  AssumedRoleUser.filterSensitiveLog = (obj) => ({
@@ -37,6 +38,58 @@ var AssumeRoleResponse;
37
38
  ...obj,
38
39
  });
39
40
  })(AssumeRoleResponse = exports.AssumeRoleResponse || (exports.AssumeRoleResponse = {}));
41
+ class ExpiredTokenException extends STSServiceException_1.STSServiceException {
42
+ constructor(opts) {
43
+ super({
44
+ name: "ExpiredTokenException",
45
+ $fault: "client",
46
+ ...opts,
47
+ });
48
+ this.name = "ExpiredTokenException";
49
+ this.$fault = "client";
50
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
51
+ }
52
+ }
53
+ exports.ExpiredTokenException = ExpiredTokenException;
54
+ class MalformedPolicyDocumentException extends STSServiceException_1.STSServiceException {
55
+ constructor(opts) {
56
+ super({
57
+ name: "MalformedPolicyDocumentException",
58
+ $fault: "client",
59
+ ...opts,
60
+ });
61
+ this.name = "MalformedPolicyDocumentException";
62
+ this.$fault = "client";
63
+ Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
64
+ }
65
+ }
66
+ exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
67
+ class PackedPolicyTooLargeException extends STSServiceException_1.STSServiceException {
68
+ constructor(opts) {
69
+ super({
70
+ name: "PackedPolicyTooLargeException",
71
+ $fault: "client",
72
+ ...opts,
73
+ });
74
+ this.name = "PackedPolicyTooLargeException";
75
+ this.$fault = "client";
76
+ Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);
77
+ }
78
+ }
79
+ exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;
80
+ class RegionDisabledException extends STSServiceException_1.STSServiceException {
81
+ constructor(opts) {
82
+ super({
83
+ name: "RegionDisabledException",
84
+ $fault: "client",
85
+ ...opts,
86
+ });
87
+ this.name = "RegionDisabledException";
88
+ this.$fault = "client";
89
+ Object.setPrototypeOf(this, RegionDisabledException.prototype);
90
+ }
91
+ }
92
+ exports.RegionDisabledException = RegionDisabledException;
40
93
  var AssumeRoleWithSAMLRequest;
41
94
  (function (AssumeRoleWithSAMLRequest) {
42
95
  AssumeRoleWithSAMLRequest.filterSensitiveLog = (obj) => ({
@@ -49,6 +102,32 @@ var AssumeRoleWithSAMLResponse;
49
102
  ...obj,
50
103
  });
51
104
  })(AssumeRoleWithSAMLResponse = exports.AssumeRoleWithSAMLResponse || (exports.AssumeRoleWithSAMLResponse = {}));
105
+ class IDPRejectedClaimException extends STSServiceException_1.STSServiceException {
106
+ constructor(opts) {
107
+ super({
108
+ name: "IDPRejectedClaimException",
109
+ $fault: "client",
110
+ ...opts,
111
+ });
112
+ this.name = "IDPRejectedClaimException";
113
+ this.$fault = "client";
114
+ Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);
115
+ }
116
+ }
117
+ exports.IDPRejectedClaimException = IDPRejectedClaimException;
118
+ class InvalidIdentityTokenException extends STSServiceException_1.STSServiceException {
119
+ constructor(opts) {
120
+ super({
121
+ name: "InvalidIdentityTokenException",
122
+ $fault: "client",
123
+ ...opts,
124
+ });
125
+ this.name = "InvalidIdentityTokenException";
126
+ this.$fault = "client";
127
+ Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);
128
+ }
129
+ }
130
+ exports.InvalidIdentityTokenException = InvalidIdentityTokenException;
52
131
  var AssumeRoleWithWebIdentityRequest;
53
132
  (function (AssumeRoleWithWebIdentityRequest) {
54
133
  AssumeRoleWithWebIdentityRequest.filterSensitiveLog = (obj) => ({
@@ -61,6 +140,19 @@ var AssumeRoleWithWebIdentityResponse;
61
140
  ...obj,
62
141
  });
63
142
  })(AssumeRoleWithWebIdentityResponse = exports.AssumeRoleWithWebIdentityResponse || (exports.AssumeRoleWithWebIdentityResponse = {}));
143
+ class IDPCommunicationErrorException extends STSServiceException_1.STSServiceException {
144
+ constructor(opts) {
145
+ super({
146
+ name: "IDPCommunicationErrorException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ this.name = "IDPCommunicationErrorException";
151
+ this.$fault = "client";
152
+ Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
153
+ }
154
+ }
155
+ exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
64
156
  var DecodeAuthorizationMessageRequest;
65
157
  (function (DecodeAuthorizationMessageRequest) {
66
158
  DecodeAuthorizationMessageRequest.filterSensitiveLog = (obj) => ({
@@ -73,6 +165,19 @@ var DecodeAuthorizationMessageResponse;
73
165
  ...obj,
74
166
  });
75
167
  })(DecodeAuthorizationMessageResponse = exports.DecodeAuthorizationMessageResponse || (exports.DecodeAuthorizationMessageResponse = {}));
168
+ class InvalidAuthorizationMessageException extends STSServiceException_1.STSServiceException {
169
+ constructor(opts) {
170
+ super({
171
+ name: "InvalidAuthorizationMessageException",
172
+ $fault: "client",
173
+ ...opts,
174
+ });
175
+ this.name = "InvalidAuthorizationMessageException";
176
+ this.$fault = "client";
177
+ Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype);
178
+ }
179
+ }
180
+ exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException;
76
181
  var GetAccessKeyInfoRequest;
77
182
  (function (GetAccessKeyInfoRequest) {
78
183
  GetAccessKeyInfoRequest.filterSensitiveLog = (obj) => ({