@aws-sdk/client-chime-sdk-identity 3.310.0 → 3.315.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/dist-cjs/protocols/Aws_restJson1.js +330 -614
- package/dist-es/protocols/Aws_restJson1.js +284 -568
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { ChimeSDKIdentityServiceException as __BaseException } from "../models/ChimeSDKIdentityServiceException";
|
|
5
5
|
import { BadRequestException, ConflictException, ForbiddenException, NotFoundException, ResourceLimitExceededException, ServiceFailureException, ServiceUnavailableException, ThrottledClientException, UnauthorizedClientException, } from "../models/models_0";
|
|
@@ -10,12 +10,12 @@ export const se_CreateAppInstanceCommand = async (input, context) => {
|
|
|
10
10
|
};
|
|
11
11
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances";
|
|
12
12
|
let body;
|
|
13
|
-
body = JSON.stringify({
|
|
14
|
-
ClientRequestToken:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
15
|
+
Metadata: [],
|
|
16
|
+
Name: [],
|
|
17
|
+
Tags: (_) => _json(_),
|
|
18
|
+
}));
|
|
19
19
|
return new __HttpRequest({
|
|
20
20
|
protocol,
|
|
21
21
|
hostname,
|
|
@@ -34,9 +34,9 @@ export const se_CreateAppInstanceAdminCommand = async (input, context) => {
|
|
|
34
34
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}/admins";
|
|
35
35
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
36
36
|
let body;
|
|
37
|
-
body = JSON.stringify({
|
|
38
|
-
|
|
39
|
-
});
|
|
37
|
+
body = JSON.stringify(take(input, {
|
|
38
|
+
AppInstanceAdminArn: [],
|
|
39
|
+
}));
|
|
40
40
|
return new __HttpRequest({
|
|
41
41
|
protocol,
|
|
42
42
|
hostname,
|
|
@@ -54,14 +54,14 @@ export const se_CreateAppInstanceBotCommand = async (input, context) => {
|
|
|
54
54
|
};
|
|
55
55
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots";
|
|
56
56
|
let body;
|
|
57
|
-
body = JSON.stringify({
|
|
58
|
-
|
|
59
|
-
ClientRequestToken:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
});
|
|
57
|
+
body = JSON.stringify(take(input, {
|
|
58
|
+
AppInstanceArn: [],
|
|
59
|
+
ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
60
|
+
Configuration: (_) => _json(_),
|
|
61
|
+
Metadata: [],
|
|
62
|
+
Name: [],
|
|
63
|
+
Tags: (_) => _json(_),
|
|
64
|
+
}));
|
|
65
65
|
return new __HttpRequest({
|
|
66
66
|
protocol,
|
|
67
67
|
hostname,
|
|
@@ -79,17 +79,15 @@ export const se_CreateAppInstanceUserCommand = async (input, context) => {
|
|
|
79
79
|
};
|
|
80
80
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users";
|
|
81
81
|
let body;
|
|
82
|
-
body = JSON.stringify({
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
ClientRequestToken:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
92
|
-
});
|
|
82
|
+
body = JSON.stringify(take(input, {
|
|
83
|
+
AppInstanceArn: [],
|
|
84
|
+
AppInstanceUserId: [],
|
|
85
|
+
ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
86
|
+
ExpirationSettings: (_) => _json(_),
|
|
87
|
+
Metadata: [],
|
|
88
|
+
Name: [],
|
|
89
|
+
Tags: (_) => _json(_),
|
|
90
|
+
}));
|
|
93
91
|
return new __HttpRequest({
|
|
94
92
|
protocol,
|
|
95
93
|
hostname,
|
|
@@ -418,11 +416,9 @@ export const se_PutAppInstanceRetentionSettingsCommand = async (input, context)
|
|
|
418
416
|
"/app-instances/{AppInstanceArn}/retention-settings";
|
|
419
417
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
420
418
|
let body;
|
|
421
|
-
body = JSON.stringify({
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
}),
|
|
425
|
-
});
|
|
419
|
+
body = JSON.stringify(take(input, {
|
|
420
|
+
AppInstanceRetentionSettings: (_) => _json(_),
|
|
421
|
+
}));
|
|
426
422
|
return new __HttpRequest({
|
|
427
423
|
protocol,
|
|
428
424
|
hostname,
|
|
@@ -442,11 +438,9 @@ export const se_PutAppInstanceUserExpirationSettingsCommand = async (input, cont
|
|
|
442
438
|
"/app-instance-users/{AppInstanceUserArn}/expiration-settings";
|
|
443
439
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
444
440
|
let body;
|
|
445
|
-
body = JSON.stringify({
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
}),
|
|
449
|
-
});
|
|
441
|
+
body = JSON.stringify(take(input, {
|
|
442
|
+
ExpirationSettings: (_) => _json(_),
|
|
443
|
+
}));
|
|
450
444
|
return new __HttpRequest({
|
|
451
445
|
protocol,
|
|
452
446
|
hostname,
|
|
@@ -466,16 +460,14 @@ export const se_RegisterAppInstanceUserEndpointCommand = async (input, context)
|
|
|
466
460
|
"/app-instance-users/{AppInstanceUserArn}/endpoints";
|
|
467
461
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
468
462
|
let body;
|
|
469
|
-
body = JSON.stringify({
|
|
470
|
-
|
|
471
|
-
ClientRequestToken:
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
...(input.Type != null && { Type: input.Type }),
|
|
478
|
-
});
|
|
463
|
+
body = JSON.stringify(take(input, {
|
|
464
|
+
AllowMessages: [],
|
|
465
|
+
ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
466
|
+
EndpointAttributes: (_) => _json(_),
|
|
467
|
+
Name: [],
|
|
468
|
+
ResourceArn: [],
|
|
469
|
+
Type: [],
|
|
470
|
+
}));
|
|
479
471
|
return new __HttpRequest({
|
|
480
472
|
protocol,
|
|
481
473
|
hostname,
|
|
@@ -496,10 +488,10 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
496
488
|
operation: [, "tag-resource"],
|
|
497
489
|
});
|
|
498
490
|
let body;
|
|
499
|
-
body = JSON.stringify({
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
});
|
|
491
|
+
body = JSON.stringify(take(input, {
|
|
492
|
+
ResourceARN: [],
|
|
493
|
+
Tags: (_) => _json(_),
|
|
494
|
+
}));
|
|
503
495
|
return new __HttpRequest({
|
|
504
496
|
protocol,
|
|
505
497
|
hostname,
|
|
@@ -521,10 +513,10 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
521
513
|
operation: [, "untag-resource"],
|
|
522
514
|
});
|
|
523
515
|
let body;
|
|
524
|
-
body = JSON.stringify({
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
});
|
|
516
|
+
body = JSON.stringify(take(input, {
|
|
517
|
+
ResourceARN: [],
|
|
518
|
+
TagKeys: (_) => _json(_),
|
|
519
|
+
}));
|
|
528
520
|
return new __HttpRequest({
|
|
529
521
|
protocol,
|
|
530
522
|
hostname,
|
|
@@ -544,10 +536,10 @@ export const se_UpdateAppInstanceCommand = async (input, context) => {
|
|
|
544
536
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}";
|
|
545
537
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
546
538
|
let body;
|
|
547
|
-
body = JSON.stringify({
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
});
|
|
539
|
+
body = JSON.stringify(take(input, {
|
|
540
|
+
Metadata: [],
|
|
541
|
+
Name: [],
|
|
542
|
+
}));
|
|
551
543
|
return new __HttpRequest({
|
|
552
544
|
protocol,
|
|
553
545
|
hostname,
|
|
@@ -566,10 +558,10 @@ export const se_UpdateAppInstanceBotCommand = async (input, context) => {
|
|
|
566
558
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots/{AppInstanceBotArn}";
|
|
567
559
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceBotArn", () => input.AppInstanceBotArn, "{AppInstanceBotArn}", false);
|
|
568
560
|
let body;
|
|
569
|
-
body = JSON.stringify({
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
});
|
|
561
|
+
body = JSON.stringify(take(input, {
|
|
562
|
+
Metadata: [],
|
|
563
|
+
Name: [],
|
|
564
|
+
}));
|
|
573
565
|
return new __HttpRequest({
|
|
574
566
|
protocol,
|
|
575
567
|
hostname,
|
|
@@ -588,10 +580,10 @@ export const se_UpdateAppInstanceUserCommand = async (input, context) => {
|
|
|
588
580
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users/{AppInstanceUserArn}";
|
|
589
581
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
590
582
|
let body;
|
|
591
|
-
body = JSON.stringify({
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
});
|
|
583
|
+
body = JSON.stringify(take(input, {
|
|
584
|
+
Metadata: [],
|
|
585
|
+
Name: [],
|
|
586
|
+
}));
|
|
595
587
|
return new __HttpRequest({
|
|
596
588
|
protocol,
|
|
597
589
|
hostname,
|
|
@@ -612,10 +604,10 @@ export const se_UpdateAppInstanceUserEndpointCommand = async (input, context) =>
|
|
|
612
604
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
613
605
|
resolvedPath = __resolvedPath(resolvedPath, input, "EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
614
606
|
let body;
|
|
615
|
-
body = JSON.stringify({
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
});
|
|
607
|
+
body = JSON.stringify(take(input, {
|
|
608
|
+
AllowMessages: [],
|
|
609
|
+
Name: [],
|
|
610
|
+
}));
|
|
619
611
|
return new __HttpRequest({
|
|
620
612
|
protocol,
|
|
621
613
|
hostname,
|
|
@@ -634,9 +626,10 @@ export const de_CreateAppInstanceCommand = async (output, context) => {
|
|
|
634
626
|
$metadata: deserializeMetadata(output),
|
|
635
627
|
});
|
|
636
628
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
}
|
|
629
|
+
const doc = take(data, {
|
|
630
|
+
AppInstanceArn: __expectString,
|
|
631
|
+
});
|
|
632
|
+
Object.assign(contents, doc);
|
|
640
633
|
return contents;
|
|
641
634
|
};
|
|
642
635
|
const de_CreateAppInstanceCommandError = async (output, context) => {
|
|
@@ -672,10 +665,9 @@ const de_CreateAppInstanceCommandError = async (output, context) => {
|
|
|
672
665
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
673
666
|
default:
|
|
674
667
|
const parsedBody = parsedOutput.body;
|
|
675
|
-
throwDefaultError({
|
|
668
|
+
return throwDefaultError({
|
|
676
669
|
output,
|
|
677
670
|
parsedBody,
|
|
678
|
-
exceptionCtor: __BaseException,
|
|
679
671
|
errorCode,
|
|
680
672
|
});
|
|
681
673
|
}
|
|
@@ -688,12 +680,11 @@ export const de_CreateAppInstanceAdminCommand = async (output, context) => {
|
|
|
688
680
|
$metadata: deserializeMetadata(output),
|
|
689
681
|
});
|
|
690
682
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
}
|
|
683
|
+
const doc = take(data, {
|
|
684
|
+
AppInstanceAdmin: _json,
|
|
685
|
+
AppInstanceArn: __expectString,
|
|
686
|
+
});
|
|
687
|
+
Object.assign(contents, doc);
|
|
697
688
|
return contents;
|
|
698
689
|
};
|
|
699
690
|
const de_CreateAppInstanceAdminCommandError = async (output, context) => {
|
|
@@ -729,10 +720,9 @@ const de_CreateAppInstanceAdminCommandError = async (output, context) => {
|
|
|
729
720
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
730
721
|
default:
|
|
731
722
|
const parsedBody = parsedOutput.body;
|
|
732
|
-
throwDefaultError({
|
|
723
|
+
return throwDefaultError({
|
|
733
724
|
output,
|
|
734
725
|
parsedBody,
|
|
735
|
-
exceptionCtor: __BaseException,
|
|
736
726
|
errorCode,
|
|
737
727
|
});
|
|
738
728
|
}
|
|
@@ -745,9 +735,10 @@ export const de_CreateAppInstanceBotCommand = async (output, context) => {
|
|
|
745
735
|
$metadata: deserializeMetadata(output),
|
|
746
736
|
});
|
|
747
737
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
}
|
|
738
|
+
const doc = take(data, {
|
|
739
|
+
AppInstanceBotArn: __expectString,
|
|
740
|
+
});
|
|
741
|
+
Object.assign(contents, doc);
|
|
751
742
|
return contents;
|
|
752
743
|
};
|
|
753
744
|
const de_CreateAppInstanceBotCommandError = async (output, context) => {
|
|
@@ -783,10 +774,9 @@ const de_CreateAppInstanceBotCommandError = async (output, context) => {
|
|
|
783
774
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
784
775
|
default:
|
|
785
776
|
const parsedBody = parsedOutput.body;
|
|
786
|
-
throwDefaultError({
|
|
777
|
+
return throwDefaultError({
|
|
787
778
|
output,
|
|
788
779
|
parsedBody,
|
|
789
|
-
exceptionCtor: __BaseException,
|
|
790
780
|
errorCode,
|
|
791
781
|
});
|
|
792
782
|
}
|
|
@@ -799,9 +789,10 @@ export const de_CreateAppInstanceUserCommand = async (output, context) => {
|
|
|
799
789
|
$metadata: deserializeMetadata(output),
|
|
800
790
|
});
|
|
801
791
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
}
|
|
792
|
+
const doc = take(data, {
|
|
793
|
+
AppInstanceUserArn: __expectString,
|
|
794
|
+
});
|
|
795
|
+
Object.assign(contents, doc);
|
|
805
796
|
return contents;
|
|
806
797
|
};
|
|
807
798
|
const de_CreateAppInstanceUserCommandError = async (output, context) => {
|
|
@@ -837,10 +828,9 @@ const de_CreateAppInstanceUserCommandError = async (output, context) => {
|
|
|
837
828
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
838
829
|
default:
|
|
839
830
|
const parsedBody = parsedOutput.body;
|
|
840
|
-
throwDefaultError({
|
|
831
|
+
return throwDefaultError({
|
|
841
832
|
output,
|
|
842
833
|
parsedBody,
|
|
843
|
-
exceptionCtor: __BaseException,
|
|
844
834
|
errorCode,
|
|
845
835
|
});
|
|
846
836
|
}
|
|
@@ -885,10 +875,9 @@ const de_DeleteAppInstanceCommandError = async (output, context) => {
|
|
|
885
875
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
886
876
|
default:
|
|
887
877
|
const parsedBody = parsedOutput.body;
|
|
888
|
-
throwDefaultError({
|
|
878
|
+
return throwDefaultError({
|
|
889
879
|
output,
|
|
890
880
|
parsedBody,
|
|
891
|
-
exceptionCtor: __BaseException,
|
|
892
881
|
errorCode,
|
|
893
882
|
});
|
|
894
883
|
}
|
|
@@ -936,10 +925,9 @@ const de_DeleteAppInstanceAdminCommandError = async (output, context) => {
|
|
|
936
925
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
937
926
|
default:
|
|
938
927
|
const parsedBody = parsedOutput.body;
|
|
939
|
-
throwDefaultError({
|
|
928
|
+
return throwDefaultError({
|
|
940
929
|
output,
|
|
941
930
|
parsedBody,
|
|
942
|
-
exceptionCtor: __BaseException,
|
|
943
931
|
errorCode,
|
|
944
932
|
});
|
|
945
933
|
}
|
|
@@ -987,10 +975,9 @@ const de_DeleteAppInstanceBotCommandError = async (output, context) => {
|
|
|
987
975
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
988
976
|
default:
|
|
989
977
|
const parsedBody = parsedOutput.body;
|
|
990
|
-
throwDefaultError({
|
|
978
|
+
return throwDefaultError({
|
|
991
979
|
output,
|
|
992
980
|
parsedBody,
|
|
993
|
-
exceptionCtor: __BaseException,
|
|
994
981
|
errorCode,
|
|
995
982
|
});
|
|
996
983
|
}
|
|
@@ -1038,10 +1025,9 @@ const de_DeleteAppInstanceUserCommandError = async (output, context) => {
|
|
|
1038
1025
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1039
1026
|
default:
|
|
1040
1027
|
const parsedBody = parsedOutput.body;
|
|
1041
|
-
throwDefaultError({
|
|
1028
|
+
return throwDefaultError({
|
|
1042
1029
|
output,
|
|
1043
1030
|
parsedBody,
|
|
1044
|
-
exceptionCtor: __BaseException,
|
|
1045
1031
|
errorCode,
|
|
1046
1032
|
});
|
|
1047
1033
|
}
|
|
@@ -1083,10 +1069,9 @@ const de_DeregisterAppInstanceUserEndpointCommandError = async (output, context)
|
|
|
1083
1069
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1084
1070
|
default:
|
|
1085
1071
|
const parsedBody = parsedOutput.body;
|
|
1086
|
-
throwDefaultError({
|
|
1072
|
+
return throwDefaultError({
|
|
1087
1073
|
output,
|
|
1088
1074
|
parsedBody,
|
|
1089
|
-
exceptionCtor: __BaseException,
|
|
1090
1075
|
errorCode,
|
|
1091
1076
|
});
|
|
1092
1077
|
}
|
|
@@ -1099,9 +1084,10 @@ export const de_DescribeAppInstanceCommand = async (output, context) => {
|
|
|
1099
1084
|
$metadata: deserializeMetadata(output),
|
|
1100
1085
|
});
|
|
1101
1086
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
}
|
|
1087
|
+
const doc = take(data, {
|
|
1088
|
+
AppInstance: (_) => de_AppInstance(_, context),
|
|
1089
|
+
});
|
|
1090
|
+
Object.assign(contents, doc);
|
|
1105
1091
|
return contents;
|
|
1106
1092
|
};
|
|
1107
1093
|
const de_DescribeAppInstanceCommandError = async (output, context) => {
|
|
@@ -1131,10 +1117,9 @@ const de_DescribeAppInstanceCommandError = async (output, context) => {
|
|
|
1131
1117
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1132
1118
|
default:
|
|
1133
1119
|
const parsedBody = parsedOutput.body;
|
|
1134
|
-
throwDefaultError({
|
|
1120
|
+
return throwDefaultError({
|
|
1135
1121
|
output,
|
|
1136
1122
|
parsedBody,
|
|
1137
|
-
exceptionCtor: __BaseException,
|
|
1138
1123
|
errorCode,
|
|
1139
1124
|
});
|
|
1140
1125
|
}
|
|
@@ -1147,9 +1132,10 @@ export const de_DescribeAppInstanceAdminCommand = async (output, context) => {
|
|
|
1147
1132
|
$metadata: deserializeMetadata(output),
|
|
1148
1133
|
});
|
|
1149
1134
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
}
|
|
1135
|
+
const doc = take(data, {
|
|
1136
|
+
AppInstanceAdmin: (_) => de_AppInstanceAdmin(_, context),
|
|
1137
|
+
});
|
|
1138
|
+
Object.assign(contents, doc);
|
|
1153
1139
|
return contents;
|
|
1154
1140
|
};
|
|
1155
1141
|
const de_DescribeAppInstanceAdminCommandError = async (output, context) => {
|
|
@@ -1179,10 +1165,9 @@ const de_DescribeAppInstanceAdminCommandError = async (output, context) => {
|
|
|
1179
1165
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1180
1166
|
default:
|
|
1181
1167
|
const parsedBody = parsedOutput.body;
|
|
1182
|
-
throwDefaultError({
|
|
1168
|
+
return throwDefaultError({
|
|
1183
1169
|
output,
|
|
1184
1170
|
parsedBody,
|
|
1185
|
-
exceptionCtor: __BaseException,
|
|
1186
1171
|
errorCode,
|
|
1187
1172
|
});
|
|
1188
1173
|
}
|
|
@@ -1195,9 +1180,10 @@ export const de_DescribeAppInstanceBotCommand = async (output, context) => {
|
|
|
1195
1180
|
$metadata: deserializeMetadata(output),
|
|
1196
1181
|
});
|
|
1197
1182
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
}
|
|
1183
|
+
const doc = take(data, {
|
|
1184
|
+
AppInstanceBot: (_) => de_AppInstanceBot(_, context),
|
|
1185
|
+
});
|
|
1186
|
+
Object.assign(contents, doc);
|
|
1201
1187
|
return contents;
|
|
1202
1188
|
};
|
|
1203
1189
|
const de_DescribeAppInstanceBotCommandError = async (output, context) => {
|
|
@@ -1230,10 +1216,9 @@ const de_DescribeAppInstanceBotCommandError = async (output, context) => {
|
|
|
1230
1216
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1231
1217
|
default:
|
|
1232
1218
|
const parsedBody = parsedOutput.body;
|
|
1233
|
-
throwDefaultError({
|
|
1219
|
+
return throwDefaultError({
|
|
1234
1220
|
output,
|
|
1235
1221
|
parsedBody,
|
|
1236
|
-
exceptionCtor: __BaseException,
|
|
1237
1222
|
errorCode,
|
|
1238
1223
|
});
|
|
1239
1224
|
}
|
|
@@ -1246,9 +1231,10 @@ export const de_DescribeAppInstanceUserCommand = async (output, context) => {
|
|
|
1246
1231
|
$metadata: deserializeMetadata(output),
|
|
1247
1232
|
});
|
|
1248
1233
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
}
|
|
1234
|
+
const doc = take(data, {
|
|
1235
|
+
AppInstanceUser: (_) => de_AppInstanceUser(_, context),
|
|
1236
|
+
});
|
|
1237
|
+
Object.assign(contents, doc);
|
|
1252
1238
|
return contents;
|
|
1253
1239
|
};
|
|
1254
1240
|
const de_DescribeAppInstanceUserCommandError = async (output, context) => {
|
|
@@ -1278,10 +1264,9 @@ const de_DescribeAppInstanceUserCommandError = async (output, context) => {
|
|
|
1278
1264
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1279
1265
|
default:
|
|
1280
1266
|
const parsedBody = parsedOutput.body;
|
|
1281
|
-
throwDefaultError({
|
|
1267
|
+
return throwDefaultError({
|
|
1282
1268
|
output,
|
|
1283
1269
|
parsedBody,
|
|
1284
|
-
exceptionCtor: __BaseException,
|
|
1285
1270
|
errorCode,
|
|
1286
1271
|
});
|
|
1287
1272
|
}
|
|
@@ -1294,9 +1279,10 @@ export const de_DescribeAppInstanceUserEndpointCommand = async (output, context)
|
|
|
1294
1279
|
$metadata: deserializeMetadata(output),
|
|
1295
1280
|
});
|
|
1296
1281
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
}
|
|
1282
|
+
const doc = take(data, {
|
|
1283
|
+
AppInstanceUserEndpoint: (_) => de_AppInstanceUserEndpoint(_, context),
|
|
1284
|
+
});
|
|
1285
|
+
Object.assign(contents, doc);
|
|
1300
1286
|
return contents;
|
|
1301
1287
|
};
|
|
1302
1288
|
const de_DescribeAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
@@ -1326,10 +1312,9 @@ const de_DescribeAppInstanceUserEndpointCommandError = async (output, context) =
|
|
|
1326
1312
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1327
1313
|
default:
|
|
1328
1314
|
const parsedBody = parsedOutput.body;
|
|
1329
|
-
throwDefaultError({
|
|
1315
|
+
return throwDefaultError({
|
|
1330
1316
|
output,
|
|
1331
1317
|
parsedBody,
|
|
1332
|
-
exceptionCtor: __BaseException,
|
|
1333
1318
|
errorCode,
|
|
1334
1319
|
});
|
|
1335
1320
|
}
|
|
@@ -1342,12 +1327,11 @@ export const de_GetAppInstanceRetentionSettingsCommand = async (output, context)
|
|
|
1342
1327
|
$metadata: deserializeMetadata(output),
|
|
1343
1328
|
});
|
|
1344
1329
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
}
|
|
1330
|
+
const doc = take(data, {
|
|
1331
|
+
AppInstanceRetentionSettings: _json,
|
|
1332
|
+
InitiateDeletionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1333
|
+
});
|
|
1334
|
+
Object.assign(contents, doc);
|
|
1351
1335
|
return contents;
|
|
1352
1336
|
};
|
|
1353
1337
|
const de_GetAppInstanceRetentionSettingsCommandError = async (output, context) => {
|
|
@@ -1377,10 +1361,9 @@ const de_GetAppInstanceRetentionSettingsCommandError = async (output, context) =
|
|
|
1377
1361
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1378
1362
|
default:
|
|
1379
1363
|
const parsedBody = parsedOutput.body;
|
|
1380
|
-
throwDefaultError({
|
|
1364
|
+
return throwDefaultError({
|
|
1381
1365
|
output,
|
|
1382
1366
|
parsedBody,
|
|
1383
|
-
exceptionCtor: __BaseException,
|
|
1384
1367
|
errorCode,
|
|
1385
1368
|
});
|
|
1386
1369
|
}
|
|
@@ -1393,15 +1376,12 @@ export const de_ListAppInstanceAdminsCommand = async (output, context) => {
|
|
|
1393
1376
|
$metadata: deserializeMetadata(output),
|
|
1394
1377
|
});
|
|
1395
1378
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
if (data.NextToken != null) {
|
|
1403
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
1404
|
-
}
|
|
1379
|
+
const doc = take(data, {
|
|
1380
|
+
AppInstanceAdmins: _json,
|
|
1381
|
+
AppInstanceArn: __expectString,
|
|
1382
|
+
NextToken: __expectString,
|
|
1383
|
+
});
|
|
1384
|
+
Object.assign(contents, doc);
|
|
1405
1385
|
return contents;
|
|
1406
1386
|
};
|
|
1407
1387
|
const de_ListAppInstanceAdminsCommandError = async (output, context) => {
|
|
@@ -1434,10 +1414,9 @@ const de_ListAppInstanceAdminsCommandError = async (output, context) => {
|
|
|
1434
1414
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1435
1415
|
default:
|
|
1436
1416
|
const parsedBody = parsedOutput.body;
|
|
1437
|
-
throwDefaultError({
|
|
1417
|
+
return throwDefaultError({
|
|
1438
1418
|
output,
|
|
1439
1419
|
parsedBody,
|
|
1440
|
-
exceptionCtor: __BaseException,
|
|
1441
1420
|
errorCode,
|
|
1442
1421
|
});
|
|
1443
1422
|
}
|
|
@@ -1450,15 +1429,12 @@ export const de_ListAppInstanceBotsCommand = async (output, context) => {
|
|
|
1450
1429
|
$metadata: deserializeMetadata(output),
|
|
1451
1430
|
});
|
|
1452
1431
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
if (data.NextToken != null) {
|
|
1460
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
1461
|
-
}
|
|
1432
|
+
const doc = take(data, {
|
|
1433
|
+
AppInstanceArn: __expectString,
|
|
1434
|
+
AppInstanceBots: _json,
|
|
1435
|
+
NextToken: __expectString,
|
|
1436
|
+
});
|
|
1437
|
+
Object.assign(contents, doc);
|
|
1462
1438
|
return contents;
|
|
1463
1439
|
};
|
|
1464
1440
|
const de_ListAppInstanceBotsCommandError = async (output, context) => {
|
|
@@ -1491,10 +1467,9 @@ const de_ListAppInstanceBotsCommandError = async (output, context) => {
|
|
|
1491
1467
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1492
1468
|
default:
|
|
1493
1469
|
const parsedBody = parsedOutput.body;
|
|
1494
|
-
throwDefaultError({
|
|
1470
|
+
return throwDefaultError({
|
|
1495
1471
|
output,
|
|
1496
1472
|
parsedBody,
|
|
1497
|
-
exceptionCtor: __BaseException,
|
|
1498
1473
|
errorCode,
|
|
1499
1474
|
});
|
|
1500
1475
|
}
|
|
@@ -1507,12 +1482,11 @@ export const de_ListAppInstancesCommand = async (output, context) => {
|
|
|
1507
1482
|
$metadata: deserializeMetadata(output),
|
|
1508
1483
|
});
|
|
1509
1484
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
}
|
|
1485
|
+
const doc = take(data, {
|
|
1486
|
+
AppInstances: _json,
|
|
1487
|
+
NextToken: __expectString,
|
|
1488
|
+
});
|
|
1489
|
+
Object.assign(contents, doc);
|
|
1516
1490
|
return contents;
|
|
1517
1491
|
};
|
|
1518
1492
|
const de_ListAppInstancesCommandError = async (output, context) => {
|
|
@@ -1542,10 +1516,9 @@ const de_ListAppInstancesCommandError = async (output, context) => {
|
|
|
1542
1516
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1543
1517
|
default:
|
|
1544
1518
|
const parsedBody = parsedOutput.body;
|
|
1545
|
-
throwDefaultError({
|
|
1519
|
+
return throwDefaultError({
|
|
1546
1520
|
output,
|
|
1547
1521
|
parsedBody,
|
|
1548
|
-
exceptionCtor: __BaseException,
|
|
1549
1522
|
errorCode,
|
|
1550
1523
|
});
|
|
1551
1524
|
}
|
|
@@ -1558,12 +1531,11 @@ export const de_ListAppInstanceUserEndpointsCommand = async (output, context) =>
|
|
|
1558
1531
|
$metadata: deserializeMetadata(output),
|
|
1559
1532
|
});
|
|
1560
1533
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
}
|
|
1534
|
+
const doc = take(data, {
|
|
1535
|
+
AppInstanceUserEndpoints: _json,
|
|
1536
|
+
NextToken: __expectString,
|
|
1537
|
+
});
|
|
1538
|
+
Object.assign(contents, doc);
|
|
1567
1539
|
return contents;
|
|
1568
1540
|
};
|
|
1569
1541
|
const de_ListAppInstanceUserEndpointsCommandError = async (output, context) => {
|
|
@@ -1593,10 +1565,9 @@ const de_ListAppInstanceUserEndpointsCommandError = async (output, context) => {
|
|
|
1593
1565
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1594
1566
|
default:
|
|
1595
1567
|
const parsedBody = parsedOutput.body;
|
|
1596
|
-
throwDefaultError({
|
|
1568
|
+
return throwDefaultError({
|
|
1597
1569
|
output,
|
|
1598
1570
|
parsedBody,
|
|
1599
|
-
exceptionCtor: __BaseException,
|
|
1600
1571
|
errorCode,
|
|
1601
1572
|
});
|
|
1602
1573
|
}
|
|
@@ -1609,15 +1580,12 @@ export const de_ListAppInstanceUsersCommand = async (output, context) => {
|
|
|
1609
1580
|
$metadata: deserializeMetadata(output),
|
|
1610
1581
|
});
|
|
1611
1582
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
if (data.NextToken != null) {
|
|
1619
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
1620
|
-
}
|
|
1583
|
+
const doc = take(data, {
|
|
1584
|
+
AppInstanceArn: __expectString,
|
|
1585
|
+
AppInstanceUsers: _json,
|
|
1586
|
+
NextToken: __expectString,
|
|
1587
|
+
});
|
|
1588
|
+
Object.assign(contents, doc);
|
|
1621
1589
|
return contents;
|
|
1622
1590
|
};
|
|
1623
1591
|
const de_ListAppInstanceUsersCommandError = async (output, context) => {
|
|
@@ -1647,10 +1615,9 @@ const de_ListAppInstanceUsersCommandError = async (output, context) => {
|
|
|
1647
1615
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1648
1616
|
default:
|
|
1649
1617
|
const parsedBody = parsedOutput.body;
|
|
1650
|
-
throwDefaultError({
|
|
1618
|
+
return throwDefaultError({
|
|
1651
1619
|
output,
|
|
1652
1620
|
parsedBody,
|
|
1653
|
-
exceptionCtor: __BaseException,
|
|
1654
1621
|
errorCode,
|
|
1655
1622
|
});
|
|
1656
1623
|
}
|
|
@@ -1663,9 +1630,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1663
1630
|
$metadata: deserializeMetadata(output),
|
|
1664
1631
|
});
|
|
1665
1632
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
}
|
|
1633
|
+
const doc = take(data, {
|
|
1634
|
+
Tags: _json,
|
|
1635
|
+
});
|
|
1636
|
+
Object.assign(contents, doc);
|
|
1669
1637
|
return contents;
|
|
1670
1638
|
};
|
|
1671
1639
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1695,10 +1663,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1695
1663
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1696
1664
|
default:
|
|
1697
1665
|
const parsedBody = parsedOutput.body;
|
|
1698
|
-
throwDefaultError({
|
|
1666
|
+
return throwDefaultError({
|
|
1699
1667
|
output,
|
|
1700
1668
|
parsedBody,
|
|
1701
|
-
exceptionCtor: __BaseException,
|
|
1702
1669
|
errorCode,
|
|
1703
1670
|
});
|
|
1704
1671
|
}
|
|
@@ -1711,12 +1678,11 @@ export const de_PutAppInstanceRetentionSettingsCommand = async (output, context)
|
|
|
1711
1678
|
$metadata: deserializeMetadata(output),
|
|
1712
1679
|
});
|
|
1713
1680
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
}
|
|
1681
|
+
const doc = take(data, {
|
|
1682
|
+
AppInstanceRetentionSettings: _json,
|
|
1683
|
+
InitiateDeletionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1684
|
+
});
|
|
1685
|
+
Object.assign(contents, doc);
|
|
1720
1686
|
return contents;
|
|
1721
1687
|
};
|
|
1722
1688
|
const de_PutAppInstanceRetentionSettingsCommandError = async (output, context) => {
|
|
@@ -1746,10 +1712,9 @@ const de_PutAppInstanceRetentionSettingsCommandError = async (output, context) =
|
|
|
1746
1712
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1747
1713
|
default:
|
|
1748
1714
|
const parsedBody = parsedOutput.body;
|
|
1749
|
-
throwDefaultError({
|
|
1715
|
+
return throwDefaultError({
|
|
1750
1716
|
output,
|
|
1751
1717
|
parsedBody,
|
|
1752
|
-
exceptionCtor: __BaseException,
|
|
1753
1718
|
errorCode,
|
|
1754
1719
|
});
|
|
1755
1720
|
}
|
|
@@ -1762,12 +1727,11 @@ export const de_PutAppInstanceUserExpirationSettingsCommand = async (output, con
|
|
|
1762
1727
|
$metadata: deserializeMetadata(output),
|
|
1763
1728
|
});
|
|
1764
1729
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
}
|
|
1730
|
+
const doc = take(data, {
|
|
1731
|
+
AppInstanceUserArn: __expectString,
|
|
1732
|
+
ExpirationSettings: _json,
|
|
1733
|
+
});
|
|
1734
|
+
Object.assign(contents, doc);
|
|
1771
1735
|
return contents;
|
|
1772
1736
|
};
|
|
1773
1737
|
const de_PutAppInstanceUserExpirationSettingsCommandError = async (output, context) => {
|
|
@@ -1800,10 +1764,9 @@ const de_PutAppInstanceUserExpirationSettingsCommandError = async (output, conte
|
|
|
1800
1764
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1801
1765
|
default:
|
|
1802
1766
|
const parsedBody = parsedOutput.body;
|
|
1803
|
-
throwDefaultError({
|
|
1767
|
+
return throwDefaultError({
|
|
1804
1768
|
output,
|
|
1805
1769
|
parsedBody,
|
|
1806
|
-
exceptionCtor: __BaseException,
|
|
1807
1770
|
errorCode,
|
|
1808
1771
|
});
|
|
1809
1772
|
}
|
|
@@ -1816,12 +1779,11 @@ export const de_RegisterAppInstanceUserEndpointCommand = async (output, context)
|
|
|
1816
1779
|
$metadata: deserializeMetadata(output),
|
|
1817
1780
|
});
|
|
1818
1781
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
}
|
|
1782
|
+
const doc = take(data, {
|
|
1783
|
+
AppInstanceUserArn: __expectString,
|
|
1784
|
+
EndpointId: __expectString,
|
|
1785
|
+
});
|
|
1786
|
+
Object.assign(contents, doc);
|
|
1825
1787
|
return contents;
|
|
1826
1788
|
};
|
|
1827
1789
|
const de_RegisterAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
@@ -1857,10 +1819,9 @@ const de_RegisterAppInstanceUserEndpointCommandError = async (output, context) =
|
|
|
1857
1819
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1858
1820
|
default:
|
|
1859
1821
|
const parsedBody = parsedOutput.body;
|
|
1860
|
-
throwDefaultError({
|
|
1822
|
+
return throwDefaultError({
|
|
1861
1823
|
output,
|
|
1862
1824
|
parsedBody,
|
|
1863
|
-
exceptionCtor: __BaseException,
|
|
1864
1825
|
errorCode,
|
|
1865
1826
|
});
|
|
1866
1827
|
}
|
|
@@ -1905,10 +1866,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1905
1866
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1906
1867
|
default:
|
|
1907
1868
|
const parsedBody = parsedOutput.body;
|
|
1908
|
-
throwDefaultError({
|
|
1869
|
+
return throwDefaultError({
|
|
1909
1870
|
output,
|
|
1910
1871
|
parsedBody,
|
|
1911
|
-
exceptionCtor: __BaseException,
|
|
1912
1872
|
errorCode,
|
|
1913
1873
|
});
|
|
1914
1874
|
}
|
|
@@ -1950,10 +1910,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1950
1910
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1951
1911
|
default:
|
|
1952
1912
|
const parsedBody = parsedOutput.body;
|
|
1953
|
-
throwDefaultError({
|
|
1913
|
+
return throwDefaultError({
|
|
1954
1914
|
output,
|
|
1955
1915
|
parsedBody,
|
|
1956
|
-
exceptionCtor: __BaseException,
|
|
1957
1916
|
errorCode,
|
|
1958
1917
|
});
|
|
1959
1918
|
}
|
|
@@ -1966,9 +1925,10 @@ export const de_UpdateAppInstanceCommand = async (output, context) => {
|
|
|
1966
1925
|
$metadata: deserializeMetadata(output),
|
|
1967
1926
|
});
|
|
1968
1927
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
}
|
|
1928
|
+
const doc = take(data, {
|
|
1929
|
+
AppInstanceArn: __expectString,
|
|
1930
|
+
});
|
|
1931
|
+
Object.assign(contents, doc);
|
|
1972
1932
|
return contents;
|
|
1973
1933
|
};
|
|
1974
1934
|
const de_UpdateAppInstanceCommandError = async (output, context) => {
|
|
@@ -2001,10 +1961,9 @@ const de_UpdateAppInstanceCommandError = async (output, context) => {
|
|
|
2001
1961
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2002
1962
|
default:
|
|
2003
1963
|
const parsedBody = parsedOutput.body;
|
|
2004
|
-
throwDefaultError({
|
|
1964
|
+
return throwDefaultError({
|
|
2005
1965
|
output,
|
|
2006
1966
|
parsedBody,
|
|
2007
|
-
exceptionCtor: __BaseException,
|
|
2008
1967
|
errorCode,
|
|
2009
1968
|
});
|
|
2010
1969
|
}
|
|
@@ -2017,9 +1976,10 @@ export const de_UpdateAppInstanceBotCommand = async (output, context) => {
|
|
|
2017
1976
|
$metadata: deserializeMetadata(output),
|
|
2018
1977
|
});
|
|
2019
1978
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
}
|
|
1979
|
+
const doc = take(data, {
|
|
1980
|
+
AppInstanceBotArn: __expectString,
|
|
1981
|
+
});
|
|
1982
|
+
Object.assign(contents, doc);
|
|
2023
1983
|
return contents;
|
|
2024
1984
|
};
|
|
2025
1985
|
const de_UpdateAppInstanceBotCommandError = async (output, context) => {
|
|
@@ -2055,10 +2015,9 @@ const de_UpdateAppInstanceBotCommandError = async (output, context) => {
|
|
|
2055
2015
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2056
2016
|
default:
|
|
2057
2017
|
const parsedBody = parsedOutput.body;
|
|
2058
|
-
throwDefaultError({
|
|
2018
|
+
return throwDefaultError({
|
|
2059
2019
|
output,
|
|
2060
2020
|
parsedBody,
|
|
2061
|
-
exceptionCtor: __BaseException,
|
|
2062
2021
|
errorCode,
|
|
2063
2022
|
});
|
|
2064
2023
|
}
|
|
@@ -2071,9 +2030,10 @@ export const de_UpdateAppInstanceUserCommand = async (output, context) => {
|
|
|
2071
2030
|
$metadata: deserializeMetadata(output),
|
|
2072
2031
|
});
|
|
2073
2032
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
}
|
|
2033
|
+
const doc = take(data, {
|
|
2034
|
+
AppInstanceUserArn: __expectString,
|
|
2035
|
+
});
|
|
2036
|
+
Object.assign(contents, doc);
|
|
2077
2037
|
return contents;
|
|
2078
2038
|
};
|
|
2079
2039
|
const de_UpdateAppInstanceUserCommandError = async (output, context) => {
|
|
@@ -2109,10 +2069,9 @@ const de_UpdateAppInstanceUserCommandError = async (output, context) => {
|
|
|
2109
2069
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2110
2070
|
default:
|
|
2111
2071
|
const parsedBody = parsedOutput.body;
|
|
2112
|
-
throwDefaultError({
|
|
2072
|
+
return throwDefaultError({
|
|
2113
2073
|
output,
|
|
2114
2074
|
parsedBody,
|
|
2115
|
-
exceptionCtor: __BaseException,
|
|
2116
2075
|
errorCode,
|
|
2117
2076
|
});
|
|
2118
2077
|
}
|
|
@@ -2125,12 +2084,11 @@ export const de_UpdateAppInstanceUserEndpointCommand = async (output, context) =
|
|
|
2125
2084
|
$metadata: deserializeMetadata(output),
|
|
2126
2085
|
});
|
|
2127
2086
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
}
|
|
2087
|
+
const doc = take(data, {
|
|
2088
|
+
AppInstanceUserArn: __expectString,
|
|
2089
|
+
EndpointId: __expectString,
|
|
2090
|
+
});
|
|
2091
|
+
Object.assign(contents, doc);
|
|
2134
2092
|
return contents;
|
|
2135
2093
|
};
|
|
2136
2094
|
const de_UpdateAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
@@ -2163,24 +2121,22 @@ const de_UpdateAppInstanceUserEndpointCommandError = async (output, context) =>
|
|
|
2163
2121
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2164
2122
|
default:
|
|
2165
2123
|
const parsedBody = parsedOutput.body;
|
|
2166
|
-
throwDefaultError({
|
|
2124
|
+
return throwDefaultError({
|
|
2167
2125
|
output,
|
|
2168
2126
|
parsedBody,
|
|
2169
|
-
exceptionCtor: __BaseException,
|
|
2170
2127
|
errorCode,
|
|
2171
2128
|
});
|
|
2172
2129
|
}
|
|
2173
2130
|
};
|
|
2174
|
-
const
|
|
2131
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2175
2132
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2176
2133
|
const contents = map({});
|
|
2177
2134
|
const data = parsedOutput.body;
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
}
|
|
2135
|
+
const doc = take(data, {
|
|
2136
|
+
Code: __expectString,
|
|
2137
|
+
Message: __expectString,
|
|
2138
|
+
});
|
|
2139
|
+
Object.assign(contents, doc);
|
|
2184
2140
|
const exception = new BadRequestException({
|
|
2185
2141
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2186
2142
|
...contents,
|
|
@@ -2190,12 +2146,11 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
2190
2146
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2191
2147
|
const contents = map({});
|
|
2192
2148
|
const data = parsedOutput.body;
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
}
|
|
2149
|
+
const doc = take(data, {
|
|
2150
|
+
Code: __expectString,
|
|
2151
|
+
Message: __expectString,
|
|
2152
|
+
});
|
|
2153
|
+
Object.assign(contents, doc);
|
|
2199
2154
|
const exception = new ConflictException({
|
|
2200
2155
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2201
2156
|
...contents,
|
|
@@ -2205,12 +2160,11 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2205
2160
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2206
2161
|
const contents = map({});
|
|
2207
2162
|
const data = parsedOutput.body;
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
}
|
|
2163
|
+
const doc = take(data, {
|
|
2164
|
+
Code: __expectString,
|
|
2165
|
+
Message: __expectString,
|
|
2166
|
+
});
|
|
2167
|
+
Object.assign(contents, doc);
|
|
2214
2168
|
const exception = new ForbiddenException({
|
|
2215
2169
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2216
2170
|
...contents,
|
|
@@ -2220,12 +2174,11 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
2220
2174
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2221
2175
|
const contents = map({});
|
|
2222
2176
|
const data = parsedOutput.body;
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
}
|
|
2177
|
+
const doc = take(data, {
|
|
2178
|
+
Code: __expectString,
|
|
2179
|
+
Message: __expectString,
|
|
2180
|
+
});
|
|
2181
|
+
Object.assign(contents, doc);
|
|
2229
2182
|
const exception = new NotFoundException({
|
|
2230
2183
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2231
2184
|
...contents,
|
|
@@ -2235,12 +2188,11 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2235
2188
|
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2236
2189
|
const contents = map({});
|
|
2237
2190
|
const data = parsedOutput.body;
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
}
|
|
2191
|
+
const doc = take(data, {
|
|
2192
|
+
Code: __expectString,
|
|
2193
|
+
Message: __expectString,
|
|
2194
|
+
});
|
|
2195
|
+
Object.assign(contents, doc);
|
|
2244
2196
|
const exception = new ResourceLimitExceededException({
|
|
2245
2197
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2246
2198
|
...contents,
|
|
@@ -2250,12 +2202,11 @@ const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2250
2202
|
const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
2251
2203
|
const contents = map({});
|
|
2252
2204
|
const data = parsedOutput.body;
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
}
|
|
2205
|
+
const doc = take(data, {
|
|
2206
|
+
Code: __expectString,
|
|
2207
|
+
Message: __expectString,
|
|
2208
|
+
});
|
|
2209
|
+
Object.assign(contents, doc);
|
|
2259
2210
|
const exception = new ServiceFailureException({
|
|
2260
2211
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2261
2212
|
...contents,
|
|
@@ -2265,12 +2216,11 @@ const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
2265
2216
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2266
2217
|
const contents = map({});
|
|
2267
2218
|
const data = parsedOutput.body;
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
}
|
|
2219
|
+
const doc = take(data, {
|
|
2220
|
+
Code: __expectString,
|
|
2221
|
+
Message: __expectString,
|
|
2222
|
+
});
|
|
2223
|
+
Object.assign(contents, doc);
|
|
2274
2224
|
const exception = new ServiceUnavailableException({
|
|
2275
2225
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2276
2226
|
...contents,
|
|
@@ -2280,12 +2230,11 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
2280
2230
|
const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
|
|
2281
2231
|
const contents = map({});
|
|
2282
2232
|
const data = parsedOutput.body;
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
}
|
|
2233
|
+
const doc = take(data, {
|
|
2234
|
+
Code: __expectString,
|
|
2235
|
+
Message: __expectString,
|
|
2236
|
+
});
|
|
2237
|
+
Object.assign(contents, doc);
|
|
2289
2238
|
const exception = new ThrottledClientException({
|
|
2290
2239
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2291
2240
|
...contents,
|
|
@@ -2295,299 +2244,66 @@ const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
|
|
|
2295
2244
|
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
|
2296
2245
|
const contents = map({});
|
|
2297
2246
|
const data = parsedOutput.body;
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
}
|
|
2247
|
+
const doc = take(data, {
|
|
2248
|
+
Code: __expectString,
|
|
2249
|
+
Message: __expectString,
|
|
2250
|
+
});
|
|
2251
|
+
Object.assign(contents, doc);
|
|
2304
2252
|
const exception = new UnauthorizedClientException({
|
|
2305
2253
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2306
2254
|
...contents,
|
|
2307
2255
|
});
|
|
2308
2256
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2309
2257
|
};
|
|
2310
|
-
const se_AppInstanceRetentionSettings = (input, context) => {
|
|
2311
|
-
return {
|
|
2312
|
-
...(input.ChannelRetentionSettings != null && {
|
|
2313
|
-
ChannelRetentionSettings: se_ChannelRetentionSettings(input.ChannelRetentionSettings, context),
|
|
2314
|
-
}),
|
|
2315
|
-
};
|
|
2316
|
-
};
|
|
2317
|
-
const se_ChannelRetentionSettings = (input, context) => {
|
|
2318
|
-
return {
|
|
2319
|
-
...(input.RetentionDays != null && { RetentionDays: input.RetentionDays }),
|
|
2320
|
-
};
|
|
2321
|
-
};
|
|
2322
|
-
const se_Configuration = (input, context) => {
|
|
2323
|
-
return {
|
|
2324
|
-
...(input.Lex != null && { Lex: se_LexConfiguration(input.Lex, context) }),
|
|
2325
|
-
};
|
|
2326
|
-
};
|
|
2327
|
-
const se_EndpointAttributes = (input, context) => {
|
|
2328
|
-
return {
|
|
2329
|
-
...(input.DeviceToken != null && { DeviceToken: input.DeviceToken }),
|
|
2330
|
-
...(input.VoipDeviceToken != null && { VoipDeviceToken: input.VoipDeviceToken }),
|
|
2331
|
-
};
|
|
2332
|
-
};
|
|
2333
|
-
const se_ExpirationSettings = (input, context) => {
|
|
2334
|
-
return {
|
|
2335
|
-
...(input.ExpirationCriterion != null && { ExpirationCriterion: input.ExpirationCriterion }),
|
|
2336
|
-
...(input.ExpirationDays != null && { ExpirationDays: input.ExpirationDays }),
|
|
2337
|
-
};
|
|
2338
|
-
};
|
|
2339
|
-
const se_LexConfiguration = (input, context) => {
|
|
2340
|
-
return {
|
|
2341
|
-
...(input.LexBotAliasArn != null && { LexBotAliasArn: input.LexBotAliasArn }),
|
|
2342
|
-
...(input.LocaleId != null && { LocaleId: input.LocaleId }),
|
|
2343
|
-
...(input.RespondsTo != null && { RespondsTo: input.RespondsTo }),
|
|
2344
|
-
...(input.WelcomeIntent != null && { WelcomeIntent: input.WelcomeIntent }),
|
|
2345
|
-
};
|
|
2346
|
-
};
|
|
2347
|
-
const se_Tag = (input, context) => {
|
|
2348
|
-
return {
|
|
2349
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2350
|
-
...(input.Value != null && { Value: input.Value }),
|
|
2351
|
-
};
|
|
2352
|
-
};
|
|
2353
|
-
const se_TagKeyList = (input, context) => {
|
|
2354
|
-
return input
|
|
2355
|
-
.filter((e) => e != null)
|
|
2356
|
-
.map((entry) => {
|
|
2357
|
-
return entry;
|
|
2358
|
-
});
|
|
2359
|
-
};
|
|
2360
|
-
const se_TagList = (input, context) => {
|
|
2361
|
-
return input
|
|
2362
|
-
.filter((e) => e != null)
|
|
2363
|
-
.map((entry) => {
|
|
2364
|
-
return se_Tag(entry, context);
|
|
2365
|
-
});
|
|
2366
|
-
};
|
|
2367
2258
|
const de_AppInstance = (output, context) => {
|
|
2368
|
-
return {
|
|
2369
|
-
AppInstanceArn: __expectString
|
|
2370
|
-
CreatedTimestamp:
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
: undefined,
|
|
2376
|
-
Metadata: __expectString(output.Metadata),
|
|
2377
|
-
Name: __expectString(output.Name),
|
|
2378
|
-
};
|
|
2259
|
+
return take(output, {
|
|
2260
|
+
AppInstanceArn: __expectString,
|
|
2261
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2262
|
+
LastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2263
|
+
Metadata: __expectString,
|
|
2264
|
+
Name: __expectString,
|
|
2265
|
+
});
|
|
2379
2266
|
};
|
|
2380
2267
|
const de_AppInstanceAdmin = (output, context) => {
|
|
2381
|
-
return {
|
|
2382
|
-
Admin:
|
|
2383
|
-
AppInstanceArn: __expectString
|
|
2384
|
-
CreatedTimestamp:
|
|
2385
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
2386
|
-
: undefined,
|
|
2387
|
-
};
|
|
2388
|
-
};
|
|
2389
|
-
const de_AppInstanceAdminList = (output, context) => {
|
|
2390
|
-
const retVal = (output || [])
|
|
2391
|
-
.filter((e) => e != null)
|
|
2392
|
-
.map((entry) => {
|
|
2393
|
-
if (entry === null) {
|
|
2394
|
-
return null;
|
|
2395
|
-
}
|
|
2396
|
-
return de_AppInstanceAdminSummary(entry, context);
|
|
2268
|
+
return take(output, {
|
|
2269
|
+
Admin: _json,
|
|
2270
|
+
AppInstanceArn: __expectString,
|
|
2271
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2397
2272
|
});
|
|
2398
|
-
return retVal;
|
|
2399
|
-
};
|
|
2400
|
-
const de_AppInstanceAdminSummary = (output, context) => {
|
|
2401
|
-
return {
|
|
2402
|
-
Admin: output.Admin != null ? de_Identity(output.Admin, context) : undefined,
|
|
2403
|
-
};
|
|
2404
2273
|
};
|
|
2405
2274
|
const de_AppInstanceBot = (output, context) => {
|
|
2406
|
-
return {
|
|
2407
|
-
AppInstanceBotArn: __expectString
|
|
2408
|
-
Configuration:
|
|
2409
|
-
CreatedTimestamp:
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
2414
|
-
: undefined,
|
|
2415
|
-
Metadata: __expectString(output.Metadata),
|
|
2416
|
-
Name: __expectString(output.Name),
|
|
2417
|
-
};
|
|
2418
|
-
};
|
|
2419
|
-
const de_AppInstanceBotList = (output, context) => {
|
|
2420
|
-
const retVal = (output || [])
|
|
2421
|
-
.filter((e) => e != null)
|
|
2422
|
-
.map((entry) => {
|
|
2423
|
-
if (entry === null) {
|
|
2424
|
-
return null;
|
|
2425
|
-
}
|
|
2426
|
-
return de_AppInstanceBotSummary(entry, context);
|
|
2275
|
+
return take(output, {
|
|
2276
|
+
AppInstanceBotArn: __expectString,
|
|
2277
|
+
Configuration: _json,
|
|
2278
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2279
|
+
LastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2280
|
+
Metadata: __expectString,
|
|
2281
|
+
Name: __expectString,
|
|
2427
2282
|
});
|
|
2428
|
-
return retVal;
|
|
2429
|
-
};
|
|
2430
|
-
const de_AppInstanceBotSummary = (output, context) => {
|
|
2431
|
-
return {
|
|
2432
|
-
AppInstanceBotArn: __expectString(output.AppInstanceBotArn),
|
|
2433
|
-
Metadata: __expectString(output.Metadata),
|
|
2434
|
-
Name: __expectString(output.Name),
|
|
2435
|
-
};
|
|
2436
|
-
};
|
|
2437
|
-
const de_AppInstanceList = (output, context) => {
|
|
2438
|
-
const retVal = (output || [])
|
|
2439
|
-
.filter((e) => e != null)
|
|
2440
|
-
.map((entry) => {
|
|
2441
|
-
if (entry === null) {
|
|
2442
|
-
return null;
|
|
2443
|
-
}
|
|
2444
|
-
return de_AppInstanceSummary(entry, context);
|
|
2445
|
-
});
|
|
2446
|
-
return retVal;
|
|
2447
|
-
};
|
|
2448
|
-
const de_AppInstanceRetentionSettings = (output, context) => {
|
|
2449
|
-
return {
|
|
2450
|
-
ChannelRetentionSettings: output.ChannelRetentionSettings != null
|
|
2451
|
-
? de_ChannelRetentionSettings(output.ChannelRetentionSettings, context)
|
|
2452
|
-
: undefined,
|
|
2453
|
-
};
|
|
2454
|
-
};
|
|
2455
|
-
const de_AppInstanceSummary = (output, context) => {
|
|
2456
|
-
return {
|
|
2457
|
-
AppInstanceArn: __expectString(output.AppInstanceArn),
|
|
2458
|
-
Metadata: __expectString(output.Metadata),
|
|
2459
|
-
Name: __expectString(output.Name),
|
|
2460
|
-
};
|
|
2461
2283
|
};
|
|
2462
2284
|
const de_AppInstanceUser = (output, context) => {
|
|
2463
|
-
return {
|
|
2464
|
-
AppInstanceUserArn: __expectString
|
|
2465
|
-
CreatedTimestamp:
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
2471
|
-
: undefined,
|
|
2472
|
-
Metadata: __expectString(output.Metadata),
|
|
2473
|
-
Name: __expectString(output.Name),
|
|
2474
|
-
};
|
|
2475
|
-
};
|
|
2476
|
-
const de_AppInstanceUserEndpoint = (output, context) => {
|
|
2477
|
-
return {
|
|
2478
|
-
AllowMessages: __expectString(output.AllowMessages),
|
|
2479
|
-
AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
|
|
2480
|
-
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2481
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
2482
|
-
: undefined,
|
|
2483
|
-
EndpointAttributes: output.EndpointAttributes != null ? de_EndpointAttributes(output.EndpointAttributes, context) : undefined,
|
|
2484
|
-
EndpointId: __expectString(output.EndpointId),
|
|
2485
|
-
EndpointState: output.EndpointState != null ? de_EndpointState(output.EndpointState, context) : undefined,
|
|
2486
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
2487
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
2488
|
-
: undefined,
|
|
2489
|
-
Name: __expectString(output.Name),
|
|
2490
|
-
ResourceArn: __expectString(output.ResourceArn),
|
|
2491
|
-
Type: __expectString(output.Type),
|
|
2492
|
-
};
|
|
2493
|
-
};
|
|
2494
|
-
const de_AppInstanceUserEndpointSummary = (output, context) => {
|
|
2495
|
-
return {
|
|
2496
|
-
AllowMessages: __expectString(output.AllowMessages),
|
|
2497
|
-
AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
|
|
2498
|
-
EndpointId: __expectString(output.EndpointId),
|
|
2499
|
-
EndpointState: output.EndpointState != null ? de_EndpointState(output.EndpointState, context) : undefined,
|
|
2500
|
-
Name: __expectString(output.Name),
|
|
2501
|
-
Type: __expectString(output.Type),
|
|
2502
|
-
};
|
|
2503
|
-
};
|
|
2504
|
-
const de_AppInstanceUserEndpointSummaryList = (output, context) => {
|
|
2505
|
-
const retVal = (output || [])
|
|
2506
|
-
.filter((e) => e != null)
|
|
2507
|
-
.map((entry) => {
|
|
2508
|
-
if (entry === null) {
|
|
2509
|
-
return null;
|
|
2510
|
-
}
|
|
2511
|
-
return de_AppInstanceUserEndpointSummary(entry, context);
|
|
2512
|
-
});
|
|
2513
|
-
return retVal;
|
|
2514
|
-
};
|
|
2515
|
-
const de_AppInstanceUserList = (output, context) => {
|
|
2516
|
-
const retVal = (output || [])
|
|
2517
|
-
.filter((e) => e != null)
|
|
2518
|
-
.map((entry) => {
|
|
2519
|
-
if (entry === null) {
|
|
2520
|
-
return null;
|
|
2521
|
-
}
|
|
2522
|
-
return de_AppInstanceUserSummary(entry, context);
|
|
2285
|
+
return take(output, {
|
|
2286
|
+
AppInstanceUserArn: __expectString,
|
|
2287
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2288
|
+
ExpirationSettings: _json,
|
|
2289
|
+
LastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2290
|
+
Metadata: __expectString,
|
|
2291
|
+
Name: __expectString,
|
|
2523
2292
|
});
|
|
2524
|
-
return retVal;
|
|
2525
|
-
};
|
|
2526
|
-
const de_AppInstanceUserSummary = (output, context) => {
|
|
2527
|
-
return {
|
|
2528
|
-
AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
|
|
2529
|
-
Metadata: __expectString(output.Metadata),
|
|
2530
|
-
Name: __expectString(output.Name),
|
|
2531
|
-
};
|
|
2532
|
-
};
|
|
2533
|
-
const de_ChannelRetentionSettings = (output, context) => {
|
|
2534
|
-
return {
|
|
2535
|
-
RetentionDays: __expectInt32(output.RetentionDays),
|
|
2536
|
-
};
|
|
2537
|
-
};
|
|
2538
|
-
const de_Configuration = (output, context) => {
|
|
2539
|
-
return {
|
|
2540
|
-
Lex: output.Lex != null ? de_LexConfiguration(output.Lex, context) : undefined,
|
|
2541
|
-
};
|
|
2542
|
-
};
|
|
2543
|
-
const de_EndpointAttributes = (output, context) => {
|
|
2544
|
-
return {
|
|
2545
|
-
DeviceToken: __expectString(output.DeviceToken),
|
|
2546
|
-
VoipDeviceToken: __expectString(output.VoipDeviceToken),
|
|
2547
|
-
};
|
|
2548
|
-
};
|
|
2549
|
-
const de_EndpointState = (output, context) => {
|
|
2550
|
-
return {
|
|
2551
|
-
Status: __expectString(output.Status),
|
|
2552
|
-
StatusReason: __expectString(output.StatusReason),
|
|
2553
|
-
};
|
|
2554
2293
|
};
|
|
2555
|
-
const
|
|
2556
|
-
return {
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
Name: __expectString
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
const de_LexConfiguration = (output, context) => {
|
|
2568
|
-
return {
|
|
2569
|
-
LexBotAliasArn: __expectString(output.LexBotAliasArn),
|
|
2570
|
-
LocaleId: __expectString(output.LocaleId),
|
|
2571
|
-
RespondsTo: __expectString(output.RespondsTo),
|
|
2572
|
-
WelcomeIntent: __expectString(output.WelcomeIntent),
|
|
2573
|
-
};
|
|
2574
|
-
};
|
|
2575
|
-
const de_Tag = (output, context) => {
|
|
2576
|
-
return {
|
|
2577
|
-
Key: __expectString(output.Key),
|
|
2578
|
-
Value: __expectString(output.Value),
|
|
2579
|
-
};
|
|
2580
|
-
};
|
|
2581
|
-
const de_TagList = (output, context) => {
|
|
2582
|
-
const retVal = (output || [])
|
|
2583
|
-
.filter((e) => e != null)
|
|
2584
|
-
.map((entry) => {
|
|
2585
|
-
if (entry === null) {
|
|
2586
|
-
return null;
|
|
2587
|
-
}
|
|
2588
|
-
return de_Tag(entry, context);
|
|
2294
|
+
const de_AppInstanceUserEndpoint = (output, context) => {
|
|
2295
|
+
return take(output, {
|
|
2296
|
+
AllowMessages: __expectString,
|
|
2297
|
+
AppInstanceUserArn: __expectString,
|
|
2298
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2299
|
+
EndpointAttributes: _json,
|
|
2300
|
+
EndpointId: __expectString,
|
|
2301
|
+
EndpointState: _json,
|
|
2302
|
+
LastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2303
|
+
Name: __expectString,
|
|
2304
|
+
ResourceArn: __expectString,
|
|
2305
|
+
Type: __expectString,
|
|
2589
2306
|
});
|
|
2590
|
-
return retVal;
|
|
2591
2307
|
};
|
|
2592
2308
|
const deserializeMetadata = (output) => ({
|
|
2593
2309
|
httpStatusCode: output.statusCode,
|