@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.
- package/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/AssumeRoleCommand.js +2 -2
- package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +2 -2
- package/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +2 -2
- package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +2 -2
- package/dist-cjs/commands/GetAccessKeyInfoCommand.js +2 -2
- package/dist-cjs/commands/GetCallerIdentityCommand.js +2 -2
- package/dist-cjs/commands/GetFederationTokenCommand.js +2 -2
- package/dist-cjs/commands/GetSessionTokenCommand.js +2 -2
- package/dist-cjs/models/models_0.js +85 -127
- package/dist-cjs/protocols/Aws_query.js +81 -111
- package/dist-es/commands/AssumeRoleCommand.js +3 -3
- package/dist-es/commands/AssumeRoleWithSAMLCommand.js +3 -3
- package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +3 -3
- package/dist-es/commands/DecodeAuthorizationMessageCommand.js +3 -3
- package/dist-es/commands/GetAccessKeyInfoCommand.js +3 -3
- package/dist-es/commands/GetCallerIdentityCommand.js +3 -3
- package/dist-es/commands/GetFederationTokenCommand.js +3 -3
- package/dist-es/commands/GetSessionTokenCommand.js +3 -3
- package/dist-es/models/models_0.js +21 -84
- package/dist-es/protocols/Aws_query.js +102 -112
- package/dist-types/models/models_0.d.ts +84 -126
- package/dist-types/ts3.4/models/models_0.d.ts +42 -84
- package/package.json +5 -5
|
@@ -130,7 +130,6 @@ const deserializeAws_queryAssumeRoleCommandError = async (output, context) => {
|
|
|
130
130
|
...output,
|
|
131
131
|
body: await parseBody(output.body, context),
|
|
132
132
|
};
|
|
133
|
-
let response;
|
|
134
133
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
135
134
|
switch (errorCode) {
|
|
136
135
|
case "ExpiredTokenException":
|
|
@@ -147,14 +146,12 @@ const deserializeAws_queryAssumeRoleCommandError = async (output, context) => {
|
|
|
147
146
|
throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context);
|
|
148
147
|
default:
|
|
149
148
|
const parsedBody = parsedOutput.body;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
$metadata,
|
|
149
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
150
|
+
output,
|
|
151
|
+
parsedBody: parsedBody.Error,
|
|
152
|
+
exceptionCtor: STSServiceException_1.STSServiceException,
|
|
153
|
+
errorCode,
|
|
156
154
|
});
|
|
157
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
158
155
|
}
|
|
159
156
|
};
|
|
160
157
|
const deserializeAws_queryAssumeRoleWithSAMLCommand = async (output, context) => {
|
|
@@ -176,7 +173,6 @@ const deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, contex
|
|
|
176
173
|
...output,
|
|
177
174
|
body: await parseBody(output.body, context),
|
|
178
175
|
};
|
|
179
|
-
let response;
|
|
180
176
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
181
177
|
switch (errorCode) {
|
|
182
178
|
case "ExpiredTokenException":
|
|
@@ -199,14 +195,12 @@ const deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, contex
|
|
|
199
195
|
throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context);
|
|
200
196
|
default:
|
|
201
197
|
const parsedBody = parsedOutput.body;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
$metadata,
|
|
198
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
199
|
+
output,
|
|
200
|
+
parsedBody: parsedBody.Error,
|
|
201
|
+
exceptionCtor: STSServiceException_1.STSServiceException,
|
|
202
|
+
errorCode,
|
|
208
203
|
});
|
|
209
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
210
204
|
}
|
|
211
205
|
};
|
|
212
206
|
const deserializeAws_queryAssumeRoleWithWebIdentityCommand = async (output, context) => {
|
|
@@ -228,7 +222,6 @@ const deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output,
|
|
|
228
222
|
...output,
|
|
229
223
|
body: await parseBody(output.body, context),
|
|
230
224
|
};
|
|
231
|
-
let response;
|
|
232
225
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
233
226
|
switch (errorCode) {
|
|
234
227
|
case "ExpiredTokenException":
|
|
@@ -254,14 +247,12 @@ const deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output,
|
|
|
254
247
|
throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context);
|
|
255
248
|
default:
|
|
256
249
|
const parsedBody = parsedOutput.body;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
$metadata,
|
|
250
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
251
|
+
output,
|
|
252
|
+
parsedBody: parsedBody.Error,
|
|
253
|
+
exceptionCtor: STSServiceException_1.STSServiceException,
|
|
254
|
+
errorCode,
|
|
263
255
|
});
|
|
264
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
265
256
|
}
|
|
266
257
|
};
|
|
267
258
|
const deserializeAws_queryDecodeAuthorizationMessageCommand = async (output, context) => {
|
|
@@ -283,7 +274,6 @@ const deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output
|
|
|
283
274
|
...output,
|
|
284
275
|
body: await parseBody(output.body, context),
|
|
285
276
|
};
|
|
286
|
-
let response;
|
|
287
277
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
288
278
|
switch (errorCode) {
|
|
289
279
|
case "InvalidAuthorizationMessageException":
|
|
@@ -291,14 +281,12 @@ const deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output
|
|
|
291
281
|
throw await deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(parsedOutput, context);
|
|
292
282
|
default:
|
|
293
283
|
const parsedBody = parsedOutput.body;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
$metadata,
|
|
284
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
285
|
+
output,
|
|
286
|
+
parsedBody: parsedBody.Error,
|
|
287
|
+
exceptionCtor: STSServiceException_1.STSServiceException,
|
|
288
|
+
errorCode,
|
|
300
289
|
});
|
|
301
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
302
290
|
}
|
|
303
291
|
};
|
|
304
292
|
const deserializeAws_queryGetAccessKeyInfoCommand = async (output, context) => {
|
|
@@ -320,20 +308,14 @@ const deserializeAws_queryGetAccessKeyInfoCommandError = async (output, context)
|
|
|
320
308
|
...output,
|
|
321
309
|
body: await parseBody(output.body, context),
|
|
322
310
|
};
|
|
323
|
-
let response;
|
|
324
311
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
$fault: "client",
|
|
333
|
-
$metadata,
|
|
334
|
-
});
|
|
335
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
336
|
-
}
|
|
312
|
+
const parsedBody = parsedOutput.body;
|
|
313
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
314
|
+
output,
|
|
315
|
+
parsedBody: parsedBody.Error,
|
|
316
|
+
exceptionCtor: STSServiceException_1.STSServiceException,
|
|
317
|
+
errorCode,
|
|
318
|
+
});
|
|
337
319
|
};
|
|
338
320
|
const deserializeAws_queryGetCallerIdentityCommand = async (output, context) => {
|
|
339
321
|
if (output.statusCode >= 300) {
|
|
@@ -354,20 +336,14 @@ const deserializeAws_queryGetCallerIdentityCommandError = async (output, context
|
|
|
354
336
|
...output,
|
|
355
337
|
body: await parseBody(output.body, context),
|
|
356
338
|
};
|
|
357
|
-
let response;
|
|
358
339
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
$fault: "client",
|
|
367
|
-
$metadata,
|
|
368
|
-
});
|
|
369
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
370
|
-
}
|
|
340
|
+
const parsedBody = parsedOutput.body;
|
|
341
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
342
|
+
output,
|
|
343
|
+
parsedBody: parsedBody.Error,
|
|
344
|
+
exceptionCtor: STSServiceException_1.STSServiceException,
|
|
345
|
+
errorCode,
|
|
346
|
+
});
|
|
371
347
|
};
|
|
372
348
|
const deserializeAws_queryGetFederationTokenCommand = async (output, context) => {
|
|
373
349
|
if (output.statusCode >= 300) {
|
|
@@ -388,7 +364,6 @@ const deserializeAws_queryGetFederationTokenCommandError = async (output, contex
|
|
|
388
364
|
...output,
|
|
389
365
|
body: await parseBody(output.body, context),
|
|
390
366
|
};
|
|
391
|
-
let response;
|
|
392
367
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
393
368
|
switch (errorCode) {
|
|
394
369
|
case "MalformedPolicyDocumentException":
|
|
@@ -402,14 +377,12 @@ const deserializeAws_queryGetFederationTokenCommandError = async (output, contex
|
|
|
402
377
|
throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context);
|
|
403
378
|
default:
|
|
404
379
|
const parsedBody = parsedOutput.body;
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
$metadata,
|
|
380
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
381
|
+
output,
|
|
382
|
+
parsedBody: parsedBody.Error,
|
|
383
|
+
exceptionCtor: STSServiceException_1.STSServiceException,
|
|
384
|
+
errorCode,
|
|
411
385
|
});
|
|
412
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
413
386
|
}
|
|
414
387
|
};
|
|
415
388
|
const deserializeAws_queryGetSessionTokenCommand = async (output, context) => {
|
|
@@ -431,7 +404,6 @@ const deserializeAws_queryGetSessionTokenCommandError = async (output, context)
|
|
|
431
404
|
...output,
|
|
432
405
|
body: await parseBody(output.body, context),
|
|
433
406
|
};
|
|
434
|
-
let response;
|
|
435
407
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
436
408
|
switch (errorCode) {
|
|
437
409
|
case "RegionDisabledException":
|
|
@@ -439,14 +411,12 @@ const deserializeAws_queryGetSessionTokenCommandError = async (output, context)
|
|
|
439
411
|
throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context);
|
|
440
412
|
default:
|
|
441
413
|
const parsedBody = parsedOutput.body;
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
$metadata,
|
|
414
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
415
|
+
output,
|
|
416
|
+
parsedBody: parsedBody.Error,
|
|
417
|
+
exceptionCtor: STSServiceException_1.STSServiceException,
|
|
418
|
+
errorCode,
|
|
448
419
|
});
|
|
449
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
450
420
|
}
|
|
451
421
|
};
|
|
452
422
|
const deserializeAws_queryExpiredTokenExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -523,118 +493,118 @@ const deserializeAws_queryRegionDisabledExceptionResponse = async (parsedOutput,
|
|
|
523
493
|
};
|
|
524
494
|
const serializeAws_queryAssumeRoleRequest = (input, context) => {
|
|
525
495
|
const entries = {};
|
|
526
|
-
if (input.RoleArn
|
|
496
|
+
if (input.RoleArn != null) {
|
|
527
497
|
entries["RoleArn"] = input.RoleArn;
|
|
528
498
|
}
|
|
529
|
-
if (input.RoleSessionName
|
|
499
|
+
if (input.RoleSessionName != null) {
|
|
530
500
|
entries["RoleSessionName"] = input.RoleSessionName;
|
|
531
501
|
}
|
|
532
|
-
if (input.PolicyArns
|
|
502
|
+
if (input.PolicyArns != null) {
|
|
533
503
|
const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
|
|
534
504
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
535
505
|
const loc = `PolicyArns.${key}`;
|
|
536
506
|
entries[loc] = value;
|
|
537
507
|
});
|
|
538
508
|
}
|
|
539
|
-
if (input.Policy
|
|
509
|
+
if (input.Policy != null) {
|
|
540
510
|
entries["Policy"] = input.Policy;
|
|
541
511
|
}
|
|
542
|
-
if (input.DurationSeconds
|
|
512
|
+
if (input.DurationSeconds != null) {
|
|
543
513
|
entries["DurationSeconds"] = input.DurationSeconds;
|
|
544
514
|
}
|
|
545
|
-
if (input.Tags
|
|
515
|
+
if (input.Tags != null) {
|
|
546
516
|
const memberEntries = serializeAws_querytagListType(input.Tags, context);
|
|
547
517
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
548
518
|
const loc = `Tags.${key}`;
|
|
549
519
|
entries[loc] = value;
|
|
550
520
|
});
|
|
551
521
|
}
|
|
552
|
-
if (input.TransitiveTagKeys
|
|
522
|
+
if (input.TransitiveTagKeys != null) {
|
|
553
523
|
const memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context);
|
|
554
524
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
555
525
|
const loc = `TransitiveTagKeys.${key}`;
|
|
556
526
|
entries[loc] = value;
|
|
557
527
|
});
|
|
558
528
|
}
|
|
559
|
-
if (input.ExternalId
|
|
529
|
+
if (input.ExternalId != null) {
|
|
560
530
|
entries["ExternalId"] = input.ExternalId;
|
|
561
531
|
}
|
|
562
|
-
if (input.SerialNumber
|
|
532
|
+
if (input.SerialNumber != null) {
|
|
563
533
|
entries["SerialNumber"] = input.SerialNumber;
|
|
564
534
|
}
|
|
565
|
-
if (input.TokenCode
|
|
535
|
+
if (input.TokenCode != null) {
|
|
566
536
|
entries["TokenCode"] = input.TokenCode;
|
|
567
537
|
}
|
|
568
|
-
if (input.SourceIdentity
|
|
538
|
+
if (input.SourceIdentity != null) {
|
|
569
539
|
entries["SourceIdentity"] = input.SourceIdentity;
|
|
570
540
|
}
|
|
571
541
|
return entries;
|
|
572
542
|
};
|
|
573
543
|
const serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => {
|
|
574
544
|
const entries = {};
|
|
575
|
-
if (input.RoleArn
|
|
545
|
+
if (input.RoleArn != null) {
|
|
576
546
|
entries["RoleArn"] = input.RoleArn;
|
|
577
547
|
}
|
|
578
|
-
if (input.PrincipalArn
|
|
548
|
+
if (input.PrincipalArn != null) {
|
|
579
549
|
entries["PrincipalArn"] = input.PrincipalArn;
|
|
580
550
|
}
|
|
581
|
-
if (input.SAMLAssertion
|
|
551
|
+
if (input.SAMLAssertion != null) {
|
|
582
552
|
entries["SAMLAssertion"] = input.SAMLAssertion;
|
|
583
553
|
}
|
|
584
|
-
if (input.PolicyArns
|
|
554
|
+
if (input.PolicyArns != null) {
|
|
585
555
|
const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
|
|
586
556
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
587
557
|
const loc = `PolicyArns.${key}`;
|
|
588
558
|
entries[loc] = value;
|
|
589
559
|
});
|
|
590
560
|
}
|
|
591
|
-
if (input.Policy
|
|
561
|
+
if (input.Policy != null) {
|
|
592
562
|
entries["Policy"] = input.Policy;
|
|
593
563
|
}
|
|
594
|
-
if (input.DurationSeconds
|
|
564
|
+
if (input.DurationSeconds != null) {
|
|
595
565
|
entries["DurationSeconds"] = input.DurationSeconds;
|
|
596
566
|
}
|
|
597
567
|
return entries;
|
|
598
568
|
};
|
|
599
569
|
const serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => {
|
|
600
570
|
const entries = {};
|
|
601
|
-
if (input.RoleArn
|
|
571
|
+
if (input.RoleArn != null) {
|
|
602
572
|
entries["RoleArn"] = input.RoleArn;
|
|
603
573
|
}
|
|
604
|
-
if (input.RoleSessionName
|
|
574
|
+
if (input.RoleSessionName != null) {
|
|
605
575
|
entries["RoleSessionName"] = input.RoleSessionName;
|
|
606
576
|
}
|
|
607
|
-
if (input.WebIdentityToken
|
|
577
|
+
if (input.WebIdentityToken != null) {
|
|
608
578
|
entries["WebIdentityToken"] = input.WebIdentityToken;
|
|
609
579
|
}
|
|
610
|
-
if (input.ProviderId
|
|
580
|
+
if (input.ProviderId != null) {
|
|
611
581
|
entries["ProviderId"] = input.ProviderId;
|
|
612
582
|
}
|
|
613
|
-
if (input.PolicyArns
|
|
583
|
+
if (input.PolicyArns != null) {
|
|
614
584
|
const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
|
|
615
585
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
616
586
|
const loc = `PolicyArns.${key}`;
|
|
617
587
|
entries[loc] = value;
|
|
618
588
|
});
|
|
619
589
|
}
|
|
620
|
-
if (input.Policy
|
|
590
|
+
if (input.Policy != null) {
|
|
621
591
|
entries["Policy"] = input.Policy;
|
|
622
592
|
}
|
|
623
|
-
if (input.DurationSeconds
|
|
593
|
+
if (input.DurationSeconds != null) {
|
|
624
594
|
entries["DurationSeconds"] = input.DurationSeconds;
|
|
625
595
|
}
|
|
626
596
|
return entries;
|
|
627
597
|
};
|
|
628
598
|
const serializeAws_queryDecodeAuthorizationMessageRequest = (input, context) => {
|
|
629
599
|
const entries = {};
|
|
630
|
-
if (input.EncodedMessage
|
|
600
|
+
if (input.EncodedMessage != null) {
|
|
631
601
|
entries["EncodedMessage"] = input.EncodedMessage;
|
|
632
602
|
}
|
|
633
603
|
return entries;
|
|
634
604
|
};
|
|
635
605
|
const serializeAws_queryGetAccessKeyInfoRequest = (input, context) => {
|
|
636
606
|
const entries = {};
|
|
637
|
-
if (input.AccessKeyId
|
|
607
|
+
if (input.AccessKeyId != null) {
|
|
638
608
|
entries["AccessKeyId"] = input.AccessKeyId;
|
|
639
609
|
}
|
|
640
610
|
return entries;
|
|
@@ -645,23 +615,23 @@ const serializeAws_queryGetCallerIdentityRequest = (input, context) => {
|
|
|
645
615
|
};
|
|
646
616
|
const serializeAws_queryGetFederationTokenRequest = (input, context) => {
|
|
647
617
|
const entries = {};
|
|
648
|
-
if (input.Name
|
|
618
|
+
if (input.Name != null) {
|
|
649
619
|
entries["Name"] = input.Name;
|
|
650
620
|
}
|
|
651
|
-
if (input.Policy
|
|
621
|
+
if (input.Policy != null) {
|
|
652
622
|
entries["Policy"] = input.Policy;
|
|
653
623
|
}
|
|
654
|
-
if (input.PolicyArns
|
|
624
|
+
if (input.PolicyArns != null) {
|
|
655
625
|
const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
|
|
656
626
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
657
627
|
const loc = `PolicyArns.${key}`;
|
|
658
628
|
entries[loc] = value;
|
|
659
629
|
});
|
|
660
630
|
}
|
|
661
|
-
if (input.DurationSeconds
|
|
631
|
+
if (input.DurationSeconds != null) {
|
|
662
632
|
entries["DurationSeconds"] = input.DurationSeconds;
|
|
663
633
|
}
|
|
664
|
-
if (input.Tags
|
|
634
|
+
if (input.Tags != null) {
|
|
665
635
|
const memberEntries = serializeAws_querytagListType(input.Tags, context);
|
|
666
636
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
667
637
|
const loc = `Tags.${key}`;
|
|
@@ -672,13 +642,13 @@ const serializeAws_queryGetFederationTokenRequest = (input, context) => {
|
|
|
672
642
|
};
|
|
673
643
|
const serializeAws_queryGetSessionTokenRequest = (input, context) => {
|
|
674
644
|
const entries = {};
|
|
675
|
-
if (input.DurationSeconds
|
|
645
|
+
if (input.DurationSeconds != null) {
|
|
676
646
|
entries["DurationSeconds"] = input.DurationSeconds;
|
|
677
647
|
}
|
|
678
|
-
if (input.SerialNumber
|
|
648
|
+
if (input.SerialNumber != null) {
|
|
679
649
|
entries["SerialNumber"] = input.SerialNumber;
|
|
680
650
|
}
|
|
681
|
-
if (input.TokenCode
|
|
651
|
+
if (input.TokenCode != null) {
|
|
682
652
|
entries["TokenCode"] = input.TokenCode;
|
|
683
653
|
}
|
|
684
654
|
return entries;
|
|
@@ -700,17 +670,17 @@ const serializeAws_querypolicyDescriptorListType = (input, context) => {
|
|
|
700
670
|
};
|
|
701
671
|
const serializeAws_queryPolicyDescriptorType = (input, context) => {
|
|
702
672
|
const entries = {};
|
|
703
|
-
if (input.arn
|
|
673
|
+
if (input.arn != null) {
|
|
704
674
|
entries["arn"] = input.arn;
|
|
705
675
|
}
|
|
706
676
|
return entries;
|
|
707
677
|
};
|
|
708
678
|
const serializeAws_queryTag = (input, context) => {
|
|
709
679
|
const entries = {};
|
|
710
|
-
if (input.Key
|
|
680
|
+
if (input.Key != null) {
|
|
711
681
|
entries["Key"] = input.Key;
|
|
712
682
|
}
|
|
713
|
-
if (input.Value
|
|
683
|
+
if (input.Value != null) {
|
|
714
684
|
entries["Value"] = input.Value;
|
|
715
685
|
}
|
|
716
686
|
return entries;
|
|
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
4
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
|
-
import {
|
|
5
|
+
import { AssumeRoleRequestFilterSensitiveLog, AssumeRoleResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_queryAssumeRoleCommand, serializeAws_queryAssumeRoleCommand } from "../protocols/Aws_query";
|
|
7
7
|
var AssumeRoleCommand = (function (_super) {
|
|
8
8
|
__extends(AssumeRoleCommand, _super);
|
|
@@ -22,8 +22,8 @@ var AssumeRoleCommand = (function (_super) {
|
|
|
22
22
|
logger: logger,
|
|
23
23
|
clientName: clientName,
|
|
24
24
|
commandName: commandName,
|
|
25
|
-
inputFilterSensitiveLog:
|
|
26
|
-
outputFilterSensitiveLog:
|
|
25
|
+
inputFilterSensitiveLog: AssumeRoleRequestFilterSensitiveLog,
|
|
26
|
+
outputFilterSensitiveLog: AssumeRoleResponseFilterSensitiveLog,
|
|
27
27
|
};
|
|
28
28
|
var requestHandler = configuration.requestHandler;
|
|
29
29
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { AssumeRoleWithSAMLRequestFilterSensitiveLog, AssumeRoleWithSAMLResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_queryAssumeRoleWithSAMLCommand, serializeAws_queryAssumeRoleWithSAMLCommand, } from "../protocols/Aws_query";
|
|
6
6
|
var AssumeRoleWithSAMLCommand = (function (_super) {
|
|
7
7
|
__extends(AssumeRoleWithSAMLCommand, _super);
|
|
@@ -20,8 +20,8 @@ var AssumeRoleWithSAMLCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: AssumeRoleWithSAMLRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: AssumeRoleWithSAMLResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_queryAssumeRoleWithWebIdentityCommand, serializeAws_queryAssumeRoleWithWebIdentityCommand, } from "../protocols/Aws_query";
|
|
6
6
|
var AssumeRoleWithWebIdentityCommand = (function (_super) {
|
|
7
7
|
__extends(AssumeRoleWithWebIdentityCommand, _super);
|
|
@@ -20,8 +20,8 @@ var AssumeRoleWithWebIdentityCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: AssumeRoleWithWebIdentityRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: AssumeRoleWithWebIdentityResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
4
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
|
-
import {
|
|
5
|
+
import { DecodeAuthorizationMessageRequestFilterSensitiveLog, DecodeAuthorizationMessageResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_queryDecodeAuthorizationMessageCommand, serializeAws_queryDecodeAuthorizationMessageCommand, } from "../protocols/Aws_query";
|
|
7
7
|
var DecodeAuthorizationMessageCommand = (function (_super) {
|
|
8
8
|
__extends(DecodeAuthorizationMessageCommand, _super);
|
|
@@ -22,8 +22,8 @@ var DecodeAuthorizationMessageCommand = (function (_super) {
|
|
|
22
22
|
logger: logger,
|
|
23
23
|
clientName: clientName,
|
|
24
24
|
commandName: commandName,
|
|
25
|
-
inputFilterSensitiveLog:
|
|
26
|
-
outputFilterSensitiveLog:
|
|
25
|
+
inputFilterSensitiveLog: DecodeAuthorizationMessageRequestFilterSensitiveLog,
|
|
26
|
+
outputFilterSensitiveLog: DecodeAuthorizationMessageResponseFilterSensitiveLog,
|
|
27
27
|
};
|
|
28
28
|
var requestHandler = configuration.requestHandler;
|
|
29
29
|
return stack.resolve(function (request) {
|
|
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
4
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
|
-
import {
|
|
5
|
+
import { GetAccessKeyInfoRequestFilterSensitiveLog, GetAccessKeyInfoResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_queryGetAccessKeyInfoCommand, serializeAws_queryGetAccessKeyInfoCommand, } from "../protocols/Aws_query";
|
|
7
7
|
var GetAccessKeyInfoCommand = (function (_super) {
|
|
8
8
|
__extends(GetAccessKeyInfoCommand, _super);
|
|
@@ -22,8 +22,8 @@ var GetAccessKeyInfoCommand = (function (_super) {
|
|
|
22
22
|
logger: logger,
|
|
23
23
|
clientName: clientName,
|
|
24
24
|
commandName: commandName,
|
|
25
|
-
inputFilterSensitiveLog:
|
|
26
|
-
outputFilterSensitiveLog:
|
|
25
|
+
inputFilterSensitiveLog: GetAccessKeyInfoRequestFilterSensitiveLog,
|
|
26
|
+
outputFilterSensitiveLog: GetAccessKeyInfoResponseFilterSensitiveLog,
|
|
27
27
|
};
|
|
28
28
|
var requestHandler = configuration.requestHandler;
|
|
29
29
|
return stack.resolve(function (request) {
|
|
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
4
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
|
-
import {
|
|
5
|
+
import { GetCallerIdentityRequestFilterSensitiveLog, GetCallerIdentityResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_queryGetCallerIdentityCommand, serializeAws_queryGetCallerIdentityCommand, } from "../protocols/Aws_query";
|
|
7
7
|
var GetCallerIdentityCommand = (function (_super) {
|
|
8
8
|
__extends(GetCallerIdentityCommand, _super);
|
|
@@ -22,8 +22,8 @@ var GetCallerIdentityCommand = (function (_super) {
|
|
|
22
22
|
logger: logger,
|
|
23
23
|
clientName: clientName,
|
|
24
24
|
commandName: commandName,
|
|
25
|
-
inputFilterSensitiveLog:
|
|
26
|
-
outputFilterSensitiveLog:
|
|
25
|
+
inputFilterSensitiveLog: GetCallerIdentityRequestFilterSensitiveLog,
|
|
26
|
+
outputFilterSensitiveLog: GetCallerIdentityResponseFilterSensitiveLog,
|
|
27
27
|
};
|
|
28
28
|
var requestHandler = configuration.requestHandler;
|
|
29
29
|
return stack.resolve(function (request) {
|
|
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
4
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
|
-
import {
|
|
5
|
+
import { GetFederationTokenRequestFilterSensitiveLog, GetFederationTokenResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_queryGetFederationTokenCommand, serializeAws_queryGetFederationTokenCommand, } from "../protocols/Aws_query";
|
|
7
7
|
var GetFederationTokenCommand = (function (_super) {
|
|
8
8
|
__extends(GetFederationTokenCommand, _super);
|
|
@@ -22,8 +22,8 @@ var GetFederationTokenCommand = (function (_super) {
|
|
|
22
22
|
logger: logger,
|
|
23
23
|
clientName: clientName,
|
|
24
24
|
commandName: commandName,
|
|
25
|
-
inputFilterSensitiveLog:
|
|
26
|
-
outputFilterSensitiveLog:
|
|
25
|
+
inputFilterSensitiveLog: GetFederationTokenRequestFilterSensitiveLog,
|
|
26
|
+
outputFilterSensitiveLog: GetFederationTokenResponseFilterSensitiveLog,
|
|
27
27
|
};
|
|
28
28
|
var requestHandler = configuration.requestHandler;
|
|
29
29
|
return stack.resolve(function (request) {
|
|
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
4
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
|
-
import {
|
|
5
|
+
import { GetSessionTokenRequestFilterSensitiveLog, GetSessionTokenResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_queryGetSessionTokenCommand, serializeAws_queryGetSessionTokenCommand, } from "../protocols/Aws_query";
|
|
7
7
|
var GetSessionTokenCommand = (function (_super) {
|
|
8
8
|
__extends(GetSessionTokenCommand, _super);
|
|
@@ -22,8 +22,8 @@ var GetSessionTokenCommand = (function (_super) {
|
|
|
22
22
|
logger: logger,
|
|
23
23
|
clientName: clientName,
|
|
24
24
|
commandName: commandName,
|
|
25
|
-
inputFilterSensitiveLog:
|
|
26
|
-
outputFilterSensitiveLog:
|
|
25
|
+
inputFilterSensitiveLog: GetSessionTokenRequestFilterSensitiveLog,
|
|
26
|
+
outputFilterSensitiveLog: GetSessionTokenResponseFilterSensitiveLog,
|
|
27
27
|
};
|
|
28
28
|
var requestHandler = configuration.requestHandler;
|
|
29
29
|
return stack.resolve(function (request) {
|