1
1
// smithy-typescript generated code
2
+ import { parseXmlBody as parseBody , parseXmlErrorBody as parseErrorBody } from "@aws-sdk/core" ;
3
+ import { HttpRequest as __HttpRequest , HttpResponse as __HttpResponse } from "@smithy/protocol-http" ;
4
+ import {
5
+ collectBody ,
6
+ decorateServiceException as __decorateServiceException ,
7
+ expectNonNull as __expectNonNull ,
8
+ expectString as __expectString ,
9
+ extendedEncodeURIComponent as __extendedEncodeURIComponent ,
10
+ parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset ,
11
+ strictParseInt32 as __strictParseInt32 ,
12
+ withBaseException ,
13
+ } from "@smithy/smithy-client" ;
14
+ import {
15
+ Endpoint as __Endpoint ,
16
+ HeaderBag as __HeaderBag ,
17
+ ResponseMetadata as __ResponseMetadata ,
18
+ SerdeContext as __SerdeContext ,
19
+ } from "@smithy/types" ;
20
+
2
21
import { AssumeRoleCommandInput , AssumeRoleCommandOutput } from "../commands/AssumeRoleCommand" ;
3
22
import {
4
23
AssumeRoleWithWebIdentityCommandInput ,
5
24
AssumeRoleWithWebIdentityCommandOutput ,
6
25
} from "../commands/AssumeRoleWithWebIdentityCommand" ;
7
- import { STSServiceException as __BaseException } from "../models/STSServiceException" ;
8
26
import {
27
+ AssumedRoleUser ,
9
28
AssumeRoleRequest ,
10
29
AssumeRoleResponse ,
11
30
AssumeRoleWithWebIdentityRequest ,
12
31
AssumeRoleWithWebIdentityResponse ,
13
- AssumedRoleUser ,
14
32
Credentials ,
15
33
ExpiredTokenException ,
16
34
IDPCommunicationErrorException ,
@@ -23,24 +41,7 @@ import {
23
41
RegionDisabledException ,
24
42
Tag ,
25
43
} from "../models/models_0" ;
26
- import { parseXmlBody as parseBody , parseXmlErrorBody as parseErrorBody } from "@aws-sdk/core" ;
27
- import { HttpRequest as __HttpRequest , HttpResponse as __HttpResponse } from "@smithy/protocol-http" ;
28
- import {
29
- decorateServiceException as __decorateServiceException ,
30
- expectNonNull as __expectNonNull ,
31
- expectString as __expectString ,
32
- extendedEncodeURIComponent as __extendedEncodeURIComponent ,
33
- parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset ,
34
- strictParseInt32 as __strictParseInt32 ,
35
- collectBody ,
36
- withBaseException ,
37
- } from "@smithy/smithy-client" ;
38
- import {
39
- Endpoint as __Endpoint ,
40
- HeaderBag as __HeaderBag ,
41
- ResponseMetadata as __ResponseMetadata ,
42
- SerdeContext as __SerdeContext ,
43
- } from "@smithy/types" ;
44
+ import { STSServiceException as __BaseException } from "../models/STSServiceException" ;
44
45
45
46
/**
46
47
* serializeAws_queryAssumeRoleCommand
@@ -383,7 +384,7 @@ const se_AssumeRoleWithWebIdentityRequest = (input: AssumeRoleWithWebIdentityReq
383
384
const se_policyDescriptorListType = ( input : PolicyDescriptorType [ ] , context : __SerdeContext ) : any => {
384
385
const entries : any = { } ;
385
386
let counter = 1 ;
386
- for ( let entry of input ) {
387
+ for ( const entry of input ) {
387
388
if ( entry === null ) {
388
389
continue ;
389
390
}
@@ -427,7 +428,7 @@ const se_ProvidedContext = (input: ProvidedContext, context: __SerdeContext): an
427
428
const se_ProvidedContextsListType = ( input : ProvidedContext [ ] , context : __SerdeContext ) : any => {
428
429
const entries : any = { } ;
429
430
let counter = 1 ;
430
- for ( let entry of input ) {
431
+ for ( const entry of input ) {
431
432
if ( entry === null ) {
432
433
continue ;
433
434
}
@@ -460,7 +461,7 @@ const se_Tag = (input: Tag, context: __SerdeContext): any => {
460
461
const se_tagKeyListType = ( input : string [ ] , context : __SerdeContext ) : any => {
461
462
const entries : any = { } ;
462
463
let counter = 1 ;
463
- for ( let entry of input ) {
464
+ for ( const entry of input ) {
464
465
if ( entry === null ) {
465
466
continue ;
466
467
}
@@ -476,7 +477,7 @@ const se_tagKeyListType = (input: string[], context: __SerdeContext): any => {
476
477
const se_tagListType = ( input : Tag [ ] , context : __SerdeContext ) : any => {
477
478
const entries : any = { } ;
478
479
let counter = 1 ;
479
- for ( let entry of input ) {
480
+ for ( const entry of input ) {
480
481
if ( entry === null ) {
481
482
continue ;
482
483
}
@@ -493,7 +494,7 @@ const se_tagListType = (input: Tag[], context: __SerdeContext): any => {
493
494
* deserializeAws_queryAssumedRoleUser
494
495
*/
495
496
const de_AssumedRoleUser = ( output : any , context : __SerdeContext ) : AssumedRoleUser => {
496
- let contents : any = { } ;
497
+ const contents : any = { } ;
497
498
if ( output [ _ARI ] != null ) {
498
499
contents [ _ARI ] = __expectString ( output [ _ARI ] ) ;
499
500
}
@@ -507,7 +508,7 @@ const de_AssumedRoleUser = (output: any, context: __SerdeContext): AssumedRoleUs
507
508
* deserializeAws_queryAssumeRoleResponse
508
509
*/
509
510
const de_AssumeRoleResponse = ( output : any , context : __SerdeContext ) : AssumeRoleResponse => {
510
- let contents : any = { } ;
511
+ const contents : any = { } ;
511
512
if ( output [ _C ] != null ) {
512
513
contents [ _C ] = de_Credentials ( output [ _C ] , context ) ;
513
514
}
@@ -530,7 +531,7 @@ const de_AssumeRoleWithWebIdentityResponse = (
530
531
output : any ,
531
532
context : __SerdeContext
532
533
) : AssumeRoleWithWebIdentityResponse => {
533
- let contents : any = { } ;
534
+ const contents : any = { } ;
534
535
if ( output [ _C ] != null ) {
535
536
contents [ _C ] = de_Credentials ( output [ _C ] , context ) ;
536
537
}
@@ -559,7 +560,7 @@ const de_AssumeRoleWithWebIdentityResponse = (
559
560
* deserializeAws_queryCredentials
560
561
*/
561
562
const de_Credentials = ( output : any , context : __SerdeContext ) : Credentials => {
562
- let contents : any = { } ;
563
+ const contents : any = { } ;
563
564
if ( output [ _AKI ] != null ) {
564
565
contents [ _AKI ] = __expectString ( output [ _AKI ] ) ;
565
566
}
@@ -579,7 +580,7 @@ const de_Credentials = (output: any, context: __SerdeContext): Credentials => {
579
580
* deserializeAws_queryExpiredTokenException
580
581
*/
581
582
const de_ExpiredTokenException = ( output : any , context : __SerdeContext ) : ExpiredTokenException => {
582
- let contents : any = { } ;
583
+ const contents : any = { } ;
583
584
if ( output [ _m ] != null ) {
584
585
contents [ _m ] = __expectString ( output [ _m ] ) ;
585
586
}
@@ -590,7 +591,7 @@ const de_ExpiredTokenException = (output: any, context: __SerdeContext): Expired
590
591
* deserializeAws_queryIDPCommunicationErrorException
591
592
*/
592
593
const de_IDPCommunicationErrorException = ( output : any , context : __SerdeContext ) : IDPCommunicationErrorException => {
593
- let contents : any = { } ;
594
+ const contents : any = { } ;
594
595
if ( output [ _m ] != null ) {
595
596
contents [ _m ] = __expectString ( output [ _m ] ) ;
596
597
}
@@ -601,7 +602,7 @@ const de_IDPCommunicationErrorException = (output: any, context: __SerdeContext)
601
602
* deserializeAws_queryIDPRejectedClaimException
602
603
*/
603
604
const de_IDPRejectedClaimException = ( output : any , context : __SerdeContext ) : IDPRejectedClaimException => {
604
- let contents : any = { } ;
605
+ const contents : any = { } ;
605
606
if ( output [ _m ] != null ) {
606
607
contents [ _m ] = __expectString ( output [ _m ] ) ;
607
608
}
@@ -612,7 +613,7 @@ const de_IDPRejectedClaimException = (output: any, context: __SerdeContext): IDP
612
613
* deserializeAws_queryInvalidIdentityTokenException
613
614
*/
614
615
const de_InvalidIdentityTokenException = ( output : any , context : __SerdeContext ) : InvalidIdentityTokenException => {
615
- let contents : any = { } ;
616
+ const contents : any = { } ;
616
617
if ( output [ _m ] != null ) {
617
618
contents [ _m ] = __expectString ( output [ _m ] ) ;
618
619
}
@@ -626,7 +627,7 @@ const de_MalformedPolicyDocumentException = (
626
627
output : any ,
627
628
context : __SerdeContext
628
629
) : MalformedPolicyDocumentException => {
629
- let contents : any = { } ;
630
+ const contents : any = { } ;
630
631
if ( output [ _m ] != null ) {
631
632
contents [ _m ] = __expectString ( output [ _m ] ) ;
632
633
}
@@ -637,7 +638,7 @@ const de_MalformedPolicyDocumentException = (
637
638
* deserializeAws_queryPackedPolicyTooLargeException
638
639
*/
639
640
const de_PackedPolicyTooLargeException = ( output : any , context : __SerdeContext ) : PackedPolicyTooLargeException => {
640
- let contents : any = { } ;
641
+ const contents : any = { } ;
641
642
if ( output [ _m ] != null ) {
642
643
contents [ _m ] = __expectString ( output [ _m ] ) ;
643
644
}
@@ -648,7 +649,7 @@ const de_PackedPolicyTooLargeException = (output: any, context: __SerdeContext):
648
649
* deserializeAws_queryRegionDisabledException
649
650
*/
650
651
const de_RegionDisabledException = ( output : any , context : __SerdeContext ) : RegionDisabledException => {
651
- let contents : any = { } ;
652
+ const contents : any = { } ;
652
653
if ( output [ _m ] != null ) {
653
654
contents [ _m ] = __expectString ( output [ _m ] ) ;
654
655
}
0 commit comments