@aws-sdk/client-sts 3.131.0 → 3.142.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,29 +1,5 @@
1
1
  import { __assign, __extends } from "tslib";
2
2
  import { STSServiceException as __BaseException } from "./STSServiceException";
3
- export var AssumedRoleUser;
4
- (function (AssumedRoleUser) {
5
- AssumedRoleUser.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
- })(AssumedRoleUser || (AssumedRoleUser = {}));
7
- export var PolicyDescriptorType;
8
- (function (PolicyDescriptorType) {
9
- PolicyDescriptorType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
10
- })(PolicyDescriptorType || (PolicyDescriptorType = {}));
11
- export var Tag;
12
- (function (Tag) {
13
- Tag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
14
- })(Tag || (Tag = {}));
15
- export var AssumeRoleRequest;
16
- (function (AssumeRoleRequest) {
17
- AssumeRoleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
18
- })(AssumeRoleRequest || (AssumeRoleRequest = {}));
19
- export var Credentials;
20
- (function (Credentials) {
21
- Credentials.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
22
- })(Credentials || (Credentials = {}));
23
- export var AssumeRoleResponse;
24
- (function (AssumeRoleResponse) {
25
- AssumeRoleResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
26
- })(AssumeRoleResponse || (AssumeRoleResponse = {}));
27
3
  var ExpiredTokenException = (function (_super) {
28
4
  __extends(ExpiredTokenException, _super);
29
5
  function ExpiredTokenException(opts) {
@@ -72,14 +48,6 @@ var RegionDisabledException = (function (_super) {
72
48
  return RegionDisabledException;
73
49
  }(__BaseException));
74
50
  export { RegionDisabledException };
75
- export var AssumeRoleWithSAMLRequest;
76
- (function (AssumeRoleWithSAMLRequest) {
77
- AssumeRoleWithSAMLRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
78
- })(AssumeRoleWithSAMLRequest || (AssumeRoleWithSAMLRequest = {}));
79
- export var AssumeRoleWithSAMLResponse;
80
- (function (AssumeRoleWithSAMLResponse) {
81
- AssumeRoleWithSAMLResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
82
- })(AssumeRoleWithSAMLResponse || (AssumeRoleWithSAMLResponse = {}));
83
51
  var IDPRejectedClaimException = (function (_super) {
84
52
  __extends(IDPRejectedClaimException, _super);
85
53
  function IDPRejectedClaimException(opts) {
@@ -104,14 +72,6 @@ var InvalidIdentityTokenException = (function (_super) {
104
72
  return InvalidIdentityTokenException;
105
73
  }(__BaseException));
106
74
  export { InvalidIdentityTokenException };
107
- export var AssumeRoleWithWebIdentityRequest;
108
- (function (AssumeRoleWithWebIdentityRequest) {
109
- AssumeRoleWithWebIdentityRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
110
- })(AssumeRoleWithWebIdentityRequest || (AssumeRoleWithWebIdentityRequest = {}));
111
- export var AssumeRoleWithWebIdentityResponse;
112
- (function (AssumeRoleWithWebIdentityResponse) {
113
- AssumeRoleWithWebIdentityResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
114
- })(AssumeRoleWithWebIdentityResponse || (AssumeRoleWithWebIdentityResponse = {}));
115
75
  var IDPCommunicationErrorException = (function (_super) {
116
76
  __extends(IDPCommunicationErrorException, _super);
117
77
  function IDPCommunicationErrorException(opts) {
@@ -124,14 +84,6 @@ var IDPCommunicationErrorException = (function (_super) {
124
84
  return IDPCommunicationErrorException;
125
85
  }(__BaseException));
126
86
  export { IDPCommunicationErrorException };
127
- export var DecodeAuthorizationMessageRequest;
128
- (function (DecodeAuthorizationMessageRequest) {
129
- DecodeAuthorizationMessageRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
130
- })(DecodeAuthorizationMessageRequest || (DecodeAuthorizationMessageRequest = {}));
131
- export var DecodeAuthorizationMessageResponse;
132
- (function (DecodeAuthorizationMessageResponse) {
133
- DecodeAuthorizationMessageResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
134
- })(DecodeAuthorizationMessageResponse || (DecodeAuthorizationMessageResponse = {}));
135
87
  var InvalidAuthorizationMessageException = (function (_super) {
136
88
  __extends(InvalidAuthorizationMessageException, _super);
137
89
  function InvalidAuthorizationMessageException(opts) {
@@ -144,39 +96,24 @@ var InvalidAuthorizationMessageException = (function (_super) {
144
96
  return InvalidAuthorizationMessageException;
145
97
  }(__BaseException));
146
98
  export { InvalidAuthorizationMessageException };
147
- export var GetAccessKeyInfoRequest;
148
- (function (GetAccessKeyInfoRequest) {
149
- GetAccessKeyInfoRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
150
- })(GetAccessKeyInfoRequest || (GetAccessKeyInfoRequest = {}));
151
- export var GetAccessKeyInfoResponse;
152
- (function (GetAccessKeyInfoResponse) {
153
- GetAccessKeyInfoResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
154
- })(GetAccessKeyInfoResponse || (GetAccessKeyInfoResponse = {}));
155
- export var GetCallerIdentityRequest;
156
- (function (GetCallerIdentityRequest) {
157
- GetCallerIdentityRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
158
- })(GetCallerIdentityRequest || (GetCallerIdentityRequest = {}));
159
- export var GetCallerIdentityResponse;
160
- (function (GetCallerIdentityResponse) {
161
- GetCallerIdentityResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
162
- })(GetCallerIdentityResponse || (GetCallerIdentityResponse = {}));
163
- export var GetFederationTokenRequest;
164
- (function (GetFederationTokenRequest) {
165
- GetFederationTokenRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
166
- })(GetFederationTokenRequest || (GetFederationTokenRequest = {}));
167
- export var FederatedUser;
168
- (function (FederatedUser) {
169
- FederatedUser.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
170
- })(FederatedUser || (FederatedUser = {}));
171
- export var GetFederationTokenResponse;
172
- (function (GetFederationTokenResponse) {
173
- GetFederationTokenResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
174
- })(GetFederationTokenResponse || (GetFederationTokenResponse = {}));
175
- export var GetSessionTokenRequest;
176
- (function (GetSessionTokenRequest) {
177
- GetSessionTokenRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
178
- })(GetSessionTokenRequest || (GetSessionTokenRequest = {}));
179
- export var GetSessionTokenResponse;
180
- (function (GetSessionTokenResponse) {
181
- GetSessionTokenResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
182
- })(GetSessionTokenResponse || (GetSessionTokenResponse = {}));
99
+ export var AssumedRoleUserFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
100
+ export var PolicyDescriptorTypeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
101
+ export var TagFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
102
+ export var AssumeRoleRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
103
+ export var CredentialsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
104
+ export var AssumeRoleResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
105
+ export var AssumeRoleWithSAMLRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
106
+ export var AssumeRoleWithSAMLResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
107
+ export var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
108
+ export var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
109
+ export var DecodeAuthorizationMessageRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
110
+ export var DecodeAuthorizationMessageResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
111
+ export var GetAccessKeyInfoRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
112
+ export var GetAccessKeyInfoResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
113
+ export var GetCallerIdentityRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
114
+ export var GetCallerIdentityResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
115
+ export var GetFederationTokenRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
116
+ export var FederatedUserFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
117
+ export var GetFederationTokenResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
118
+ export var GetSessionTokenRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
119
+ export var GetSessionTokenResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read, __values } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getValueFromTextNode as __getValueFromTextNode, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getValueFromTextNode as __getValueFromTextNode, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { decodeHTML } from "entities";
5
5
  import { parse as xmlParse } from "fast-xml-parser";
6
6
  import { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidAuthorizationMessageException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, } from "../models/models_0";
@@ -104,7 +104,7 @@ export var deserializeAws_queryAssumeRoleCommand = function (output, context) {
104
104
  });
105
105
  }); };
106
106
  var deserializeAws_queryAssumeRoleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
107
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
107
+ var parsedOutput, _a, errorCode, _b, parsedBody;
108
108
  var _c;
109
109
  return __generator(this, function (_d) {
110
110
  switch (_d.label) {
@@ -137,14 +137,14 @@ var deserializeAws_queryAssumeRoleCommandError = function (output, context) { re
137
137
  case 9: throw _d.sent();
138
138
  case 10:
139
139
  parsedBody = parsedOutput.body;
140
- $metadata = deserializeMetadata(output);
141
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
142
- response = new __BaseException({
143
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
144
- $fault: "client",
145
- $metadata: $metadata,
140
+ throwDefaultError({
141
+ output: output,
142
+ parsedBody: parsedBody.Error,
143
+ exceptionCtor: __BaseException,
144
+ errorCode: errorCode,
146
145
  });
147
- throw __decorateServiceException(response, parsedBody.Error);
146
+ _d.label = 11;
147
+ case 11: return [2];
148
148
  }
149
149
  });
150
150
  }); };
@@ -167,7 +167,7 @@ export var deserializeAws_queryAssumeRoleWithSAMLCommand = function (output, con
167
167
  });
168
168
  }); };
169
169
  var deserializeAws_queryAssumeRoleWithSAMLCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
170
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
170
+ var parsedOutput, _a, errorCode, _b, parsedBody;
171
171
  var _c;
172
172
  return __generator(this, function (_d) {
173
173
  switch (_d.label) {
@@ -208,14 +208,14 @@ var deserializeAws_queryAssumeRoleWithSAMLCommandError = function (output, conte
208
208
  case 13: throw _d.sent();
209
209
  case 14:
210
210
  parsedBody = parsedOutput.body;
211
- $metadata = deserializeMetadata(output);
212
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
213
- response = new __BaseException({
214
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
215
- $fault: "client",
216
- $metadata: $metadata,
211
+ throwDefaultError({
212
+ output: output,
213
+ parsedBody: parsedBody.Error,
214
+ exceptionCtor: __BaseException,
215
+ errorCode: errorCode,
217
216
  });
218
- throw __decorateServiceException(response, parsedBody.Error);
217
+ _d.label = 15;
218
+ case 15: return [2];
219
219
  }
220
220
  });
221
221
  }); };
@@ -238,7 +238,7 @@ export var deserializeAws_queryAssumeRoleWithWebIdentityCommand = function (outp
238
238
  });
239
239
  }); };
240
240
  var deserializeAws_queryAssumeRoleWithWebIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
241
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
241
+ var parsedOutput, _a, errorCode, _b, parsedBody;
242
242
  var _c;
243
243
  return __generator(this, function (_d) {
244
244
  switch (_d.label) {
@@ -283,14 +283,14 @@ var deserializeAws_queryAssumeRoleWithWebIdentityCommandError = function (output
283
283
  case 15: throw _d.sent();
284
284
  case 16:
285
285
  parsedBody = parsedOutput.body;
286
- $metadata = deserializeMetadata(output);
287
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
288
- response = new __BaseException({
289
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
290
- $fault: "client",
291
- $metadata: $metadata,
286
+ throwDefaultError({
287
+ output: output,
288
+ parsedBody: parsedBody.Error,
289
+ exceptionCtor: __BaseException,
290
+ errorCode: errorCode,
292
291
  });
293
- throw __decorateServiceException(response, parsedBody.Error);
292
+ _d.label = 17;
293
+ case 17: return [2];
294
294
  }
295
295
  });
296
296
  }); };
@@ -313,7 +313,7 @@ export var deserializeAws_queryDecodeAuthorizationMessageCommand = function (out
313
313
  });
314
314
  }); };
315
315
  var deserializeAws_queryDecodeAuthorizationMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
316
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
316
+ var parsedOutput, _a, errorCode, _b, parsedBody;
317
317
  var _c;
318
318
  return __generator(this, function (_d) {
319
319
  switch (_d.label) {
@@ -334,14 +334,14 @@ var deserializeAws_queryDecodeAuthorizationMessageCommandError = function (outpu
334
334
  case 3: throw _d.sent();
335
335
  case 4:
336
336
  parsedBody = parsedOutput.body;
337
- $metadata = deserializeMetadata(output);
338
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
339
- response = new __BaseException({
340
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
341
- $fault: "client",
342
- $metadata: $metadata,
337
+ throwDefaultError({
338
+ output: output,
339
+ parsedBody: parsedBody.Error,
340
+ exceptionCtor: __BaseException,
341
+ errorCode: errorCode,
343
342
  });
344
- throw __decorateServiceException(response, parsedBody.Error);
343
+ _d.label = 5;
344
+ case 5: return [2];
345
345
  }
346
346
  });
347
347
  }); };
@@ -364,7 +364,7 @@ export var deserializeAws_queryGetAccessKeyInfoCommand = function (output, conte
364
364
  });
365
365
  }); };
366
366
  var deserializeAws_queryGetAccessKeyInfoCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
367
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
367
+ var parsedOutput, _a, errorCode, parsedBody;
368
368
  var _b;
369
369
  return __generator(this, function (_c) {
370
370
  switch (_c.label) {
@@ -375,18 +375,13 @@ var deserializeAws_queryGetAccessKeyInfoCommandError = function (output, context
375
375
  case 1:
376
376
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
377
377
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
378
- switch (errorCode) {
379
- default:
380
- parsedBody = parsedOutput.body;
381
- $metadata = deserializeMetadata(output);
382
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
383
- response = new __BaseException({
384
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
385
- $fault: "client",
386
- $metadata: $metadata,
387
- });
388
- throw __decorateServiceException(response, parsedBody.Error);
389
- }
378
+ parsedBody = parsedOutput.body;
379
+ throwDefaultError({
380
+ output: output,
381
+ parsedBody: parsedBody.Error,
382
+ exceptionCtor: __BaseException,
383
+ errorCode: errorCode,
384
+ });
390
385
  return [2];
391
386
  }
392
387
  });
@@ -410,7 +405,7 @@ export var deserializeAws_queryGetCallerIdentityCommand = function (output, cont
410
405
  });
411
406
  }); };
412
407
  var deserializeAws_queryGetCallerIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
413
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
408
+ var parsedOutput, _a, errorCode, parsedBody;
414
409
  var _b;
415
410
  return __generator(this, function (_c) {
416
411
  switch (_c.label) {
@@ -421,18 +416,13 @@ var deserializeAws_queryGetCallerIdentityCommandError = function (output, contex
421
416
  case 1:
422
417
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
423
418
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
424
- switch (errorCode) {
425
- default:
426
- parsedBody = parsedOutput.body;
427
- $metadata = deserializeMetadata(output);
428
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
429
- response = new __BaseException({
430
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
431
- $fault: "client",
432
- $metadata: $metadata,
433
- });
434
- throw __decorateServiceException(response, parsedBody.Error);
435
- }
419
+ parsedBody = parsedOutput.body;
420
+ throwDefaultError({
421
+ output: output,
422
+ parsedBody: parsedBody.Error,
423
+ exceptionCtor: __BaseException,
424
+ errorCode: errorCode,
425
+ });
436
426
  return [2];
437
427
  }
438
428
  });
@@ -456,7 +446,7 @@ export var deserializeAws_queryGetFederationTokenCommand = function (output, con
456
446
  });
457
447
  }); };
458
448
  var deserializeAws_queryGetFederationTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
459
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
449
+ var parsedOutput, _a, errorCode, _b, parsedBody;
460
450
  var _c;
461
451
  return __generator(this, function (_d) {
462
452
  switch (_d.label) {
@@ -485,14 +475,14 @@ var deserializeAws_queryGetFederationTokenCommandError = function (output, conte
485
475
  case 7: throw _d.sent();
486
476
  case 8:
487
477
  parsedBody = parsedOutput.body;
488
- $metadata = deserializeMetadata(output);
489
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
490
- response = new __BaseException({
491
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
492
- $fault: "client",
493
- $metadata: $metadata,
478
+ throwDefaultError({
479
+ output: output,
480
+ parsedBody: parsedBody.Error,
481
+ exceptionCtor: __BaseException,
482
+ errorCode: errorCode,
494
483
  });
495
- throw __decorateServiceException(response, parsedBody.Error);
484
+ _d.label = 9;
485
+ case 9: return [2];
496
486
  }
497
487
  });
498
488
  }); };
@@ -515,7 +505,7 @@ export var deserializeAws_queryGetSessionTokenCommand = function (output, contex
515
505
  });
516
506
  }); };
517
507
  var deserializeAws_queryGetSessionTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
518
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
508
+ var parsedOutput, _a, errorCode, _b, parsedBody;
519
509
  var _c;
520
510
  return __generator(this, function (_d) {
521
511
  switch (_d.label) {
@@ -536,14 +526,14 @@ var deserializeAws_queryGetSessionTokenCommandError = function (output, context)
536
526
  case 3: throw _d.sent();
537
527
  case 4:
538
528
  parsedBody = parsedOutput.body;
539
- $metadata = deserializeMetadata(output);
540
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
541
- response = new __BaseException({
542
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
543
- $fault: "client",
544
- $metadata: $metadata,
529
+ throwDefaultError({
530
+ output: output,
531
+ parsedBody: parsedBody.Error,
532
+ exceptionCtor: __BaseException,
533
+ errorCode: errorCode,
545
534
  });
546
- throw __decorateServiceException(response, parsedBody.Error);
535
+ _d.label = 5;
536
+ case 5: return [2];
547
537
  }
548
538
  });
549
539
  }); };
@@ -621,13 +611,13 @@ var deserializeAws_queryRegionDisabledExceptionResponse = function (parsedOutput
621
611
  }); };
622
612
  var serializeAws_queryAssumeRoleRequest = function (input, context) {
623
613
  var entries = {};
624
- if (input.RoleArn !== undefined && input.RoleArn !== null) {
614
+ if (input.RoleArn != null) {
625
615
  entries["RoleArn"] = input.RoleArn;
626
616
  }
627
- if (input.RoleSessionName !== undefined && input.RoleSessionName !== null) {
617
+ if (input.RoleSessionName != null) {
628
618
  entries["RoleSessionName"] = input.RoleSessionName;
629
619
  }
630
- if (input.PolicyArns !== undefined && input.PolicyArns !== null) {
620
+ if (input.PolicyArns != null) {
631
621
  var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
632
622
  Object.entries(memberEntries).forEach(function (_a) {
633
623
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -635,13 +625,13 @@ var serializeAws_queryAssumeRoleRequest = function (input, context) {
635
625
  entries[loc] = value;
636
626
  });
637
627
  }
638
- if (input.Policy !== undefined && input.Policy !== null) {
628
+ if (input.Policy != null) {
639
629
  entries["Policy"] = input.Policy;
640
630
  }
641
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
631
+ if (input.DurationSeconds != null) {
642
632
  entries["DurationSeconds"] = input.DurationSeconds;
643
633
  }
644
- if (input.Tags !== undefined && input.Tags !== null) {
634
+ if (input.Tags != null) {
645
635
  var memberEntries = serializeAws_querytagListType(input.Tags, context);
646
636
  Object.entries(memberEntries).forEach(function (_a) {
647
637
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -649,7 +639,7 @@ var serializeAws_queryAssumeRoleRequest = function (input, context) {
649
639
  entries[loc] = value;
650
640
  });
651
641
  }
652
- if (input.TransitiveTagKeys !== undefined && input.TransitiveTagKeys !== null) {
642
+ if (input.TransitiveTagKeys != null) {
653
643
  var memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context);
654
644
  Object.entries(memberEntries).forEach(function (_a) {
655
645
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -657,32 +647,32 @@ var serializeAws_queryAssumeRoleRequest = function (input, context) {
657
647
  entries[loc] = value;
658
648
  });
659
649
  }
660
- if (input.ExternalId !== undefined && input.ExternalId !== null) {
650
+ if (input.ExternalId != null) {
661
651
  entries["ExternalId"] = input.ExternalId;
662
652
  }
663
- if (input.SerialNumber !== undefined && input.SerialNumber !== null) {
653
+ if (input.SerialNumber != null) {
664
654
  entries["SerialNumber"] = input.SerialNumber;
665
655
  }
666
- if (input.TokenCode !== undefined && input.TokenCode !== null) {
656
+ if (input.TokenCode != null) {
667
657
  entries["TokenCode"] = input.TokenCode;
668
658
  }
669
- if (input.SourceIdentity !== undefined && input.SourceIdentity !== null) {
659
+ if (input.SourceIdentity != null) {
670
660
  entries["SourceIdentity"] = input.SourceIdentity;
671
661
  }
672
662
  return entries;
673
663
  };
674
664
  var serializeAws_queryAssumeRoleWithSAMLRequest = function (input, context) {
675
665
  var entries = {};
676
- if (input.RoleArn !== undefined && input.RoleArn !== null) {
666
+ if (input.RoleArn != null) {
677
667
  entries["RoleArn"] = input.RoleArn;
678
668
  }
679
- if (input.PrincipalArn !== undefined && input.PrincipalArn !== null) {
669
+ if (input.PrincipalArn != null) {
680
670
  entries["PrincipalArn"] = input.PrincipalArn;
681
671
  }
682
- if (input.SAMLAssertion !== undefined && input.SAMLAssertion !== null) {
672
+ if (input.SAMLAssertion != null) {
683
673
  entries["SAMLAssertion"] = input.SAMLAssertion;
684
674
  }
685
- if (input.PolicyArns !== undefined && input.PolicyArns !== null) {
675
+ if (input.PolicyArns != null) {
686
676
  var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
687
677
  Object.entries(memberEntries).forEach(function (_a) {
688
678
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -690,29 +680,29 @@ var serializeAws_queryAssumeRoleWithSAMLRequest = function (input, context) {
690
680
  entries[loc] = value;
691
681
  });
692
682
  }
693
- if (input.Policy !== undefined && input.Policy !== null) {
683
+ if (input.Policy != null) {
694
684
  entries["Policy"] = input.Policy;
695
685
  }
696
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
686
+ if (input.DurationSeconds != null) {
697
687
  entries["DurationSeconds"] = input.DurationSeconds;
698
688
  }
699
689
  return entries;
700
690
  };
701
691
  var serializeAws_queryAssumeRoleWithWebIdentityRequest = function (input, context) {
702
692
  var entries = {};
703
- if (input.RoleArn !== undefined && input.RoleArn !== null) {
693
+ if (input.RoleArn != null) {
704
694
  entries["RoleArn"] = input.RoleArn;
705
695
  }
706
- if (input.RoleSessionName !== undefined && input.RoleSessionName !== null) {
696
+ if (input.RoleSessionName != null) {
707
697
  entries["RoleSessionName"] = input.RoleSessionName;
708
698
  }
709
- if (input.WebIdentityToken !== undefined && input.WebIdentityToken !== null) {
699
+ if (input.WebIdentityToken != null) {
710
700
  entries["WebIdentityToken"] = input.WebIdentityToken;
711
701
  }
712
- if (input.ProviderId !== undefined && input.ProviderId !== null) {
702
+ if (input.ProviderId != null) {
713
703
  entries["ProviderId"] = input.ProviderId;
714
704
  }
715
- if (input.PolicyArns !== undefined && input.PolicyArns !== null) {
705
+ if (input.PolicyArns != null) {
716
706
  var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
717
707
  Object.entries(memberEntries).forEach(function (_a) {
718
708
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -720,24 +710,24 @@ var serializeAws_queryAssumeRoleWithWebIdentityRequest = function (input, contex
720
710
  entries[loc] = value;
721
711
  });
722
712
  }
723
- if (input.Policy !== undefined && input.Policy !== null) {
713
+ if (input.Policy != null) {
724
714
  entries["Policy"] = input.Policy;
725
715
  }
726
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
716
+ if (input.DurationSeconds != null) {
727
717
  entries["DurationSeconds"] = input.DurationSeconds;
728
718
  }
729
719
  return entries;
730
720
  };
731
721
  var serializeAws_queryDecodeAuthorizationMessageRequest = function (input, context) {
732
722
  var entries = {};
733
- if (input.EncodedMessage !== undefined && input.EncodedMessage !== null) {
723
+ if (input.EncodedMessage != null) {
734
724
  entries["EncodedMessage"] = input.EncodedMessage;
735
725
  }
736
726
  return entries;
737
727
  };
738
728
  var serializeAws_queryGetAccessKeyInfoRequest = function (input, context) {
739
729
  var entries = {};
740
- if (input.AccessKeyId !== undefined && input.AccessKeyId !== null) {
730
+ if (input.AccessKeyId != null) {
741
731
  entries["AccessKeyId"] = input.AccessKeyId;
742
732
  }
743
733
  return entries;
@@ -748,13 +738,13 @@ var serializeAws_queryGetCallerIdentityRequest = function (input, context) {
748
738
  };
749
739
  var serializeAws_queryGetFederationTokenRequest = function (input, context) {
750
740
  var entries = {};
751
- if (input.Name !== undefined && input.Name !== null) {
741
+ if (input.Name != null) {
752
742
  entries["Name"] = input.Name;
753
743
  }
754
- if (input.Policy !== undefined && input.Policy !== null) {
744
+ if (input.Policy != null) {
755
745
  entries["Policy"] = input.Policy;
756
746
  }
757
- if (input.PolicyArns !== undefined && input.PolicyArns !== null) {
747
+ if (input.PolicyArns != null) {
758
748
  var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
759
749
  Object.entries(memberEntries).forEach(function (_a) {
760
750
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -762,10 +752,10 @@ var serializeAws_queryGetFederationTokenRequest = function (input, context) {
762
752
  entries[loc] = value;
763
753
  });
764
754
  }
765
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
755
+ if (input.DurationSeconds != null) {
766
756
  entries["DurationSeconds"] = input.DurationSeconds;
767
757
  }
768
- if (input.Tags !== undefined && input.Tags !== null) {
758
+ if (input.Tags != null) {
769
759
  var memberEntries = serializeAws_querytagListType(input.Tags, context);
770
760
  Object.entries(memberEntries).forEach(function (_a) {
771
761
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -777,13 +767,13 @@ var serializeAws_queryGetFederationTokenRequest = function (input, context) {
777
767
  };
778
768
  var serializeAws_queryGetSessionTokenRequest = function (input, context) {
779
769
  var entries = {};
780
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
770
+ if (input.DurationSeconds != null) {
781
771
  entries["DurationSeconds"] = input.DurationSeconds;
782
772
  }
783
- if (input.SerialNumber !== undefined && input.SerialNumber !== null) {
773
+ if (input.SerialNumber != null) {
784
774
  entries["SerialNumber"] = input.SerialNumber;
785
775
  }
786
- if (input.TokenCode !== undefined && input.TokenCode !== null) {
776
+ if (input.TokenCode != null) {
787
777
  entries["TokenCode"] = input.TokenCode;
788
778
  }
789
779
  return entries;
@@ -817,17 +807,17 @@ var serializeAws_querypolicyDescriptorListType = function (input, context) {
817
807
  };
818
808
  var serializeAws_queryPolicyDescriptorType = function (input, context) {
819
809
  var entries = {};
820
- if (input.arn !== undefined && input.arn !== null) {
810
+ if (input.arn != null) {
821
811
  entries["arn"] = input.arn;
822
812
  }
823
813
  return entries;
824
814
  };
825
815
  var serializeAws_queryTag = function (input, context) {
826
816
  var entries = {};
827
- if (input.Key !== undefined && input.Key !== null) {
817
+ if (input.Key != null) {
828
818
  entries["Key"] = input.Key;
829
819
  }
830
- if (input.Value !== undefined && input.Value !== null) {
820
+ if (input.Value != null) {
831
821
  entries["Value"] = input.Value;
832
822
  }
833
823
  return entries;