@aws-sdk/client-sso 3.52.0 → 3.54.1

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,33 @@
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.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-sso
9
+
10
+
11
+
12
+
13
+
14
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-sso
17
+
18
+
19
+
20
+
21
+
22
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
23
+
24
+
25
+ ### Features
26
+
27
+ * **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))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-sso
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SSOServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./SSO"), exports);
5
6
  tslib_1.__exportStar(require("./SSOClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var SSOServiceException_1 = require("./models/SSOServiceException");
11
+ Object.defineProperty(exports, "SSOServiceException", { enumerable: true, get: function () { return SSOServiceException_1.SSOServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SSOServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class SSOServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, SSOServiceException.prototype);
9
+ }
10
+ }
11
+ exports.SSOServiceException = SSOServiceException;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LogoutRequest = exports.ListAccountsResponse = exports.ListAccountsRequest = exports.ListAccountRolesResponse = exports.RoleInfo = exports.ListAccountRolesRequest = exports.GetRoleCredentialsResponse = exports.RoleCredentials = exports.GetRoleCredentialsRequest = exports.AccountInfo = void 0;
3
+ exports.LogoutRequest = exports.ListAccountsResponse = exports.ListAccountsRequest = exports.ListAccountRolesResponse = exports.RoleInfo = exports.ListAccountRolesRequest = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = exports.GetRoleCredentialsResponse = exports.RoleCredentials = exports.GetRoleCredentialsRequest = exports.AccountInfo = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ const SSOServiceException_1 = require("./SSOServiceException");
5
6
  var AccountInfo;
6
7
  (function (AccountInfo) {
7
8
  AccountInfo.filterSensitiveLog = (obj) => ({
@@ -30,6 +31,58 @@ var GetRoleCredentialsResponse;
30
31
  ...(obj.roleCredentials && { roleCredentials: RoleCredentials.filterSensitiveLog(obj.roleCredentials) }),
31
32
  });
32
33
  })(GetRoleCredentialsResponse = exports.GetRoleCredentialsResponse || (exports.GetRoleCredentialsResponse = {}));
34
+ class InvalidRequestException extends SSOServiceException_1.SSOServiceException {
35
+ constructor(opts) {
36
+ super({
37
+ name: "InvalidRequestException",
38
+ $fault: "client",
39
+ ...opts,
40
+ });
41
+ this.name = "InvalidRequestException";
42
+ this.$fault = "client";
43
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
44
+ }
45
+ }
46
+ exports.InvalidRequestException = InvalidRequestException;
47
+ class ResourceNotFoundException extends SSOServiceException_1.SSOServiceException {
48
+ constructor(opts) {
49
+ super({
50
+ name: "ResourceNotFoundException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ this.name = "ResourceNotFoundException";
55
+ this.$fault = "client";
56
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
57
+ }
58
+ }
59
+ exports.ResourceNotFoundException = ResourceNotFoundException;
60
+ class TooManyRequestsException extends SSOServiceException_1.SSOServiceException {
61
+ constructor(opts) {
62
+ super({
63
+ name: "TooManyRequestsException",
64
+ $fault: "client",
65
+ ...opts,
66
+ });
67
+ this.name = "TooManyRequestsException";
68
+ this.$fault = "client";
69
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
70
+ }
71
+ }
72
+ exports.TooManyRequestsException = TooManyRequestsException;
73
+ class UnauthorizedException extends SSOServiceException_1.SSOServiceException {
74
+ constructor(opts) {
75
+ super({
76
+ name: "UnauthorizedException",
77
+ $fault: "client",
78
+ ...opts,
79
+ });
80
+ this.name = "UnauthorizedException";
81
+ this.$fault = "client";
82
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
83
+ }
84
+ }
85
+ exports.UnauthorizedException = UnauthorizedException;
33
86
  var ListAccountRolesRequest;
34
87
  (function (ListAccountRolesRequest) {
35
88
  ListAccountRolesRequest.filterSensitiveLog = (obj) => ({
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deserializeAws_restJson1LogoutCommand = exports.deserializeAws_restJson1ListAccountsCommand = exports.deserializeAws_restJson1ListAccountRolesCommand = exports.deserializeAws_restJson1GetRoleCredentialsCommand = exports.serializeAws_restJson1LogoutCommand = exports.serializeAws_restJson1ListAccountsCommand = exports.serializeAws_restJson1ListAccountRolesCommand = exports.serializeAws_restJson1GetRoleCredentialsCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const SSOServiceException_1 = require("../models/SSOServiceException");
6
8
  const serializeAws_restJson1GetRoleCredentialsCommand = async (input, context) => {
7
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
10
  const headers = {
@@ -117,51 +119,25 @@ const deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, co
117
119
  switch (errorCode) {
118
120
  case "InvalidRequestException":
119
121
  case "com.amazonaws.sso#InvalidRequestException":
120
- response = {
121
- ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
122
- name: errorCode,
123
- $metadata: deserializeMetadata(output),
124
- };
125
- break;
122
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
126
123
  case "ResourceNotFoundException":
127
124
  case "com.amazonaws.sso#ResourceNotFoundException":
128
- response = {
129
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
130
- name: errorCode,
131
- $metadata: deserializeMetadata(output),
132
- };
133
- break;
125
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
134
126
  case "TooManyRequestsException":
135
127
  case "com.amazonaws.sso#TooManyRequestsException":
136
- response = {
137
- ...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
138
- name: errorCode,
139
- $metadata: deserializeMetadata(output),
140
- };
141
- break;
128
+ throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
142
129
  case "UnauthorizedException":
143
130
  case "com.amazonaws.sso#UnauthorizedException":
144
- response = {
145
- ...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
146
- name: errorCode,
147
- $metadata: deserializeMetadata(output),
148
- };
149
- break;
131
+ throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
150
132
  default:
151
133
  const parsedBody = parsedOutput.body;
152
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
153
- response = {
154
- ...parsedBody,
155
- name: `${errorCode}`,
156
- message: parsedBody.message || parsedBody.Message || errorCode,
134
+ response = new SSOServiceException_1.SSOServiceException({
135
+ name: parsedBody.code || parsedBody.Code || errorCode,
157
136
  $fault: "client",
158
137
  $metadata: deserializeMetadata(output),
159
- };
138
+ });
139
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
160
140
  }
161
- const message = response.message || response.Message || errorCode;
162
- response.message = message;
163
- delete response.Message;
164
- return Promise.reject(Object.assign(new Error(message), response));
165
141
  };
166
142
  const deserializeAws_restJson1ListAccountRolesCommand = async (output, context) => {
167
143
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -193,51 +169,25 @@ const deserializeAws_restJson1ListAccountRolesCommandError = async (output, cont
193
169
  switch (errorCode) {
194
170
  case "InvalidRequestException":
195
171
  case "com.amazonaws.sso#InvalidRequestException":
196
- response = {
197
- ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
198
- name: errorCode,
199
- $metadata: deserializeMetadata(output),
200
- };
201
- break;
172
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
202
173
  case "ResourceNotFoundException":
203
174
  case "com.amazonaws.sso#ResourceNotFoundException":
204
- response = {
205
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
206
- name: errorCode,
207
- $metadata: deserializeMetadata(output),
208
- };
209
- break;
175
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
210
176
  case "TooManyRequestsException":
211
177
  case "com.amazonaws.sso#TooManyRequestsException":
212
- response = {
213
- ...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
214
- name: errorCode,
215
- $metadata: deserializeMetadata(output),
216
- };
217
- break;
178
+ throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
218
179
  case "UnauthorizedException":
219
180
  case "com.amazonaws.sso#UnauthorizedException":
220
- response = {
221
- ...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
222
- name: errorCode,
223
- $metadata: deserializeMetadata(output),
224
- };
225
- break;
181
+ throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
226
182
  default:
227
183
  const parsedBody = parsedOutput.body;
228
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
229
- response = {
230
- ...parsedBody,
231
- name: `${errorCode}`,
232
- message: parsedBody.message || parsedBody.Message || errorCode,
184
+ response = new SSOServiceException_1.SSOServiceException({
185
+ name: parsedBody.code || parsedBody.Code || errorCode,
233
186
  $fault: "client",
234
187
  $metadata: deserializeMetadata(output),
235
- };
188
+ });
189
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
236
190
  }
237
- const message = response.message || response.Message || errorCode;
238
- response.message = message;
239
- delete response.Message;
240
- return Promise.reject(Object.assign(new Error(message), response));
241
191
  };
242
192
  const deserializeAws_restJson1ListAccountsCommand = async (output, context) => {
243
193
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -269,51 +219,25 @@ const deserializeAws_restJson1ListAccountsCommandError = async (output, context)
269
219
  switch (errorCode) {
270
220
  case "InvalidRequestException":
271
221
  case "com.amazonaws.sso#InvalidRequestException":
272
- response = {
273
- ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
274
- name: errorCode,
275
- $metadata: deserializeMetadata(output),
276
- };
277
- break;
222
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
278
223
  case "ResourceNotFoundException":
279
224
  case "com.amazonaws.sso#ResourceNotFoundException":
280
- response = {
281
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
282
- name: errorCode,
283
- $metadata: deserializeMetadata(output),
284
- };
285
- break;
225
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
286
226
  case "TooManyRequestsException":
287
227
  case "com.amazonaws.sso#TooManyRequestsException":
288
- response = {
289
- ...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
290
- name: errorCode,
291
- $metadata: deserializeMetadata(output),
292
- };
293
- break;
228
+ throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
294
229
  case "UnauthorizedException":
295
230
  case "com.amazonaws.sso#UnauthorizedException":
296
- response = {
297
- ...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
298
- name: errorCode,
299
- $metadata: deserializeMetadata(output),
300
- };
301
- break;
231
+ throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
302
232
  default:
303
233
  const parsedBody = parsedOutput.body;
304
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
305
- response = {
306
- ...parsedBody,
307
- name: `${errorCode}`,
308
- message: parsedBody.message || parsedBody.Message || errorCode,
234
+ response = new SSOServiceException_1.SSOServiceException({
235
+ name: parsedBody.code || parsedBody.Code || errorCode,
309
236
  $fault: "client",
310
237
  $metadata: deserializeMetadata(output),
311
- };
238
+ });
239
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
312
240
  }
313
- const message = response.message || response.Message || errorCode;
314
- response.message = message;
315
- delete response.Message;
316
- return Promise.reject(Object.assign(new Error(message), response));
317
241
  };
318
242
  const deserializeAws_restJson1LogoutCommand = async (output, context) => {
319
243
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -337,95 +261,70 @@ const deserializeAws_restJson1LogoutCommandError = async (output, context) => {
337
261
  switch (errorCode) {
338
262
  case "InvalidRequestException":
339
263
  case "com.amazonaws.sso#InvalidRequestException":
340
- response = {
341
- ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
342
- name: errorCode,
343
- $metadata: deserializeMetadata(output),
344
- };
345
- break;
264
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
346
265
  case "TooManyRequestsException":
347
266
  case "com.amazonaws.sso#TooManyRequestsException":
348
- response = {
349
- ...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
350
- name: errorCode,
351
- $metadata: deserializeMetadata(output),
352
- };
353
- break;
267
+ throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
354
268
  case "UnauthorizedException":
355
269
  case "com.amazonaws.sso#UnauthorizedException":
356
- response = {
357
- ...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
358
- name: errorCode,
359
- $metadata: deserializeMetadata(output),
360
- };
361
- break;
270
+ throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
362
271
  default:
363
272
  const parsedBody = parsedOutput.body;
364
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
365
- response = {
366
- ...parsedBody,
367
- name: `${errorCode}`,
368
- message: parsedBody.message || parsedBody.Message || errorCode,
273
+ response = new SSOServiceException_1.SSOServiceException({
274
+ name: parsedBody.code || parsedBody.Code || errorCode,
369
275
  $fault: "client",
370
276
  $metadata: deserializeMetadata(output),
371
- };
277
+ });
278
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
372
279
  }
373
- const message = response.message || response.Message || errorCode;
374
- response.message = message;
375
- delete response.Message;
376
- return Promise.reject(Object.assign(new Error(message), response));
377
280
  };
378
281
  const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
379
- const contents = {
380
- name: "InvalidRequestException",
381
- $fault: "client",
382
- $metadata: deserializeMetadata(parsedOutput),
383
- message: undefined,
384
- };
282
+ const contents = {};
385
283
  const data = parsedOutput.body;
386
284
  if (data.message !== undefined && data.message !== null) {
387
285
  contents.message = smithy_client_1.expectString(data.message);
388
286
  }
389
- return contents;
287
+ const exception = new models_0_1.InvalidRequestException({
288
+ $metadata: deserializeMetadata(parsedOutput),
289
+ ...contents,
290
+ });
291
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
390
292
  };
391
293
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
392
- const contents = {
393
- name: "ResourceNotFoundException",
394
- $fault: "client",
395
- $metadata: deserializeMetadata(parsedOutput),
396
- message: undefined,
397
- };
294
+ const contents = {};
398
295
  const data = parsedOutput.body;
399
296
  if (data.message !== undefined && data.message !== null) {
400
297
  contents.message = smithy_client_1.expectString(data.message);
401
298
  }
402
- return contents;
299
+ const exception = new models_0_1.ResourceNotFoundException({
300
+ $metadata: deserializeMetadata(parsedOutput),
301
+ ...contents,
302
+ });
303
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
403
304
  };
404
305
  const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
405
- const contents = {
406
- name: "TooManyRequestsException",
407
- $fault: "client",
408
- $metadata: deserializeMetadata(parsedOutput),
409
- message: undefined,
410
- };
306
+ const contents = {};
411
307
  const data = parsedOutput.body;
412
308
  if (data.message !== undefined && data.message !== null) {
413
309
  contents.message = smithy_client_1.expectString(data.message);
414
310
  }
415
- return contents;
311
+ const exception = new models_0_1.TooManyRequestsException({
312
+ $metadata: deserializeMetadata(parsedOutput),
313
+ ...contents,
314
+ });
315
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
416
316
  };
417
317
  const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
418
- const contents = {
419
- name: "UnauthorizedException",
420
- $fault: "client",
421
- $metadata: deserializeMetadata(parsedOutput),
422
- message: undefined,
423
- };
318
+ const contents = {};
424
319
  const data = parsedOutput.body;
425
320
  if (data.message !== undefined && data.message !== null) {
426
321
  contents.message = smithy_client_1.expectString(data.message);
427
322
  }
428
- return contents;
323
+ const exception = new models_0_1.UnauthorizedException({
324
+ $metadata: deserializeMetadata(parsedOutput),
325
+ ...contents,
326
+ });
327
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
429
328
  };
430
329
  const deserializeAws_restJson1AccountInfo = (output, context) => {
431
330
  return {
@@ -435,7 +334,7 @@ const deserializeAws_restJson1AccountInfo = (output, context) => {
435
334
  };
436
335
  };
437
336
  const deserializeAws_restJson1AccountListType = (output, context) => {
438
- return (output || [])
337
+ const retVal = (output || [])
439
338
  .filter((e) => e != null)
440
339
  .map((entry) => {
441
340
  if (entry === null) {
@@ -443,6 +342,7 @@ const deserializeAws_restJson1AccountListType = (output, context) => {
443
342
  }
444
343
  return deserializeAws_restJson1AccountInfo(entry, context);
445
344
  });
345
+ return retVal;
446
346
  };
447
347
  const deserializeAws_restJson1RoleCredentials = (output, context) => {
448
348
  return {
@@ -459,7 +359,7 @@ const deserializeAws_restJson1RoleInfo = (output, context) => {
459
359
  };
460
360
  };
461
361
  const deserializeAws_restJson1RoleListType = (output, context) => {
462
- return (output || [])
362
+ const retVal = (output || [])
463
363
  .filter((e) => e != null)
464
364
  .map((entry) => {
465
365
  if (entry === null) {
@@ -467,6 +367,7 @@ const deserializeAws_restJson1RoleListType = (output, context) => {
467
367
  }
468
368
  return deserializeAws_restJson1RoleInfo(entry, context);
469
369
  });
370
+ return retVal;
470
371
  };
471
372
  const deserializeMetadata = (output) => {
472
373
  var _a;
package/dist-es/index.js CHANGED
@@ -3,3 +3,4 @@ export * from "./SSOClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { SSOServiceException } from "./models/SSOServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var SSOServiceException = (function (_super) {
4
+ __extends(SSOServiceException, _super);
5
+ function SSOServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, SSOServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return SSOServiceException;
11
+ }(__ServiceException));
12
+ export { SSOServiceException };
@@ -1,5 +1,6 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
+ import { SSOServiceException as __BaseException } from "./SSOServiceException";
3
4
  export var AccountInfo;
4
5
  (function (AccountInfo) {
5
6
  AccountInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -16,6 +17,54 @@ export var GetRoleCredentialsResponse;
16
17
  (function (GetRoleCredentialsResponse) {
17
18
  GetRoleCredentialsResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.roleCredentials && { roleCredentials: RoleCredentials.filterSensitiveLog(obj.roleCredentials) }))); };
18
19
  })(GetRoleCredentialsResponse || (GetRoleCredentialsResponse = {}));
20
+ var InvalidRequestException = (function (_super) {
21
+ __extends(InvalidRequestException, _super);
22
+ function InvalidRequestException(opts) {
23
+ var _this = _super.call(this, __assign({ name: "InvalidRequestException", $fault: "client" }, opts)) || this;
24
+ _this.name = "InvalidRequestException";
25
+ _this.$fault = "client";
26
+ Object.setPrototypeOf(_this, InvalidRequestException.prototype);
27
+ return _this;
28
+ }
29
+ return InvalidRequestException;
30
+ }(__BaseException));
31
+ export { InvalidRequestException };
32
+ var ResourceNotFoundException = (function (_super) {
33
+ __extends(ResourceNotFoundException, _super);
34
+ function ResourceNotFoundException(opts) {
35
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
36
+ _this.name = "ResourceNotFoundException";
37
+ _this.$fault = "client";
38
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
39
+ return _this;
40
+ }
41
+ return ResourceNotFoundException;
42
+ }(__BaseException));
43
+ export { ResourceNotFoundException };
44
+ var TooManyRequestsException = (function (_super) {
45
+ __extends(TooManyRequestsException, _super);
46
+ function TooManyRequestsException(opts) {
47
+ var _this = _super.call(this, __assign({ name: "TooManyRequestsException", $fault: "client" }, opts)) || this;
48
+ _this.name = "TooManyRequestsException";
49
+ _this.$fault = "client";
50
+ Object.setPrototypeOf(_this, TooManyRequestsException.prototype);
51
+ return _this;
52
+ }
53
+ return TooManyRequestsException;
54
+ }(__BaseException));
55
+ export { TooManyRequestsException };
56
+ var UnauthorizedException = (function (_super) {
57
+ __extends(UnauthorizedException, _super);
58
+ function UnauthorizedException(opts) {
59
+ var _this = _super.call(this, __assign({ name: "UnauthorizedException", $fault: "client" }, opts)) || this;
60
+ _this.name = "UnauthorizedException";
61
+ _this.$fault = "client";
62
+ Object.setPrototypeOf(_this, UnauthorizedException.prototype);
63
+ return _this;
64
+ }
65
+ return UnauthorizedException;
66
+ }(__BaseException));
67
+ export { UnauthorizedException };
19
68
  export var ListAccountRolesRequest;
20
69
  (function (ListAccountRolesRequest) {
21
70
  ListAccountRolesRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };