@aws-sdk/client-mediatailor 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 +600 -1598
- package/dist-es/protocols/Aws_restJson1.js +548 -1546
- 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, expectInt32 as __expectInt32, expectLong as __expectLong, 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 { MediaTailorServiceException as __BaseException } from "../models/MediaTailorServiceException";
|
|
4
4
|
import { BadRequestException, } from "../models/models_0";
|
|
5
5
|
export const se_ConfigureLogsForChannelCommand = async (input, context) => {
|
|
@@ -9,10 +9,10 @@ export const se_ConfigureLogsForChannelCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/channel";
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
});
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
ChannelName: [],
|
|
14
|
+
LogTypes: (_) => _json(_),
|
|
15
|
+
}));
|
|
16
16
|
return new __HttpRequest({
|
|
17
17
|
protocol,
|
|
18
18
|
hostname,
|
|
@@ -30,10 +30,10 @@ export const se_ConfigureLogsForPlaybackConfigurationCommand = async (input, con
|
|
|
30
30
|
};
|
|
31
31
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/playbackConfiguration";
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify({
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
});
|
|
33
|
+
body = JSON.stringify(take(input, {
|
|
34
|
+
PercentEnabled: [],
|
|
35
|
+
PlaybackConfigurationName: [],
|
|
36
|
+
}));
|
|
37
37
|
return new __HttpRequest({
|
|
38
38
|
protocol,
|
|
39
39
|
hostname,
|
|
@@ -52,13 +52,13 @@ export const se_CreateChannelCommand = async (input, context) => {
|
|
|
52
52
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
|
|
53
53
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
54
54
|
let body;
|
|
55
|
-
body = JSON.stringify({
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
});
|
|
55
|
+
body = JSON.stringify(take(input, {
|
|
56
|
+
FillerSlate: (_) => _json(_),
|
|
57
|
+
Outputs: (_) => _json(_),
|
|
58
|
+
PlaybackMode: [],
|
|
59
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
60
|
+
Tier: [],
|
|
61
|
+
}));
|
|
62
62
|
return new __HttpRequest({
|
|
63
63
|
protocol,
|
|
64
64
|
hostname,
|
|
@@ -79,12 +79,10 @@ export const se_CreateLiveSourceCommand = async (input, context) => {
|
|
|
79
79
|
resolvedPath = __resolvedPath(resolvedPath, input, "LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
|
|
80
80
|
resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
81
81
|
let body;
|
|
82
|
-
body = JSON.stringify({
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
...(input.Tags != null && { tags: se___mapOf__string(input.Tags, context) }),
|
|
87
|
-
});
|
|
82
|
+
body = JSON.stringify(take(input, {
|
|
83
|
+
HttpPackageConfigurations: (_) => _json(_),
|
|
84
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
85
|
+
}));
|
|
88
86
|
return new __HttpRequest({
|
|
89
87
|
protocol,
|
|
90
88
|
hostname,
|
|
@@ -105,11 +103,11 @@ export const se_CreatePrefetchScheduleCommand = async (input, context) => {
|
|
|
105
103
|
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
106
104
|
resolvedPath = __resolvedPath(resolvedPath, input, "PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
|
|
107
105
|
let body;
|
|
108
|
-
body = JSON.stringify({
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
});
|
|
106
|
+
body = JSON.stringify(take(input, {
|
|
107
|
+
Consumption: (_) => se_PrefetchConsumption(_, context),
|
|
108
|
+
Retrieval: (_) => se_PrefetchRetrieval(_, context),
|
|
109
|
+
StreamId: [],
|
|
110
|
+
}));
|
|
113
111
|
return new __HttpRequest({
|
|
114
112
|
protocol,
|
|
115
113
|
hostname,
|
|
@@ -130,15 +128,13 @@ export const se_CreateProgramCommand = async (input, context) => {
|
|
|
130
128
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
131
129
|
resolvedPath = __resolvedPath(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
|
|
132
130
|
let body;
|
|
133
|
-
body = JSON.stringify({
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
...(input.VodSourceName != null && { VodSourceName: input.VodSourceName }),
|
|
141
|
-
});
|
|
131
|
+
body = JSON.stringify(take(input, {
|
|
132
|
+
AdBreaks: (_) => _json(_),
|
|
133
|
+
LiveSourceName: [],
|
|
134
|
+
ScheduleConfiguration: (_) => _json(_),
|
|
135
|
+
SourceLocationName: [],
|
|
136
|
+
VodSourceName: [],
|
|
137
|
+
}));
|
|
142
138
|
return new __HttpRequest({
|
|
143
139
|
protocol,
|
|
144
140
|
hostname,
|
|
@@ -157,21 +153,13 @@ export const se_CreateSourceLocationCommand = async (input, context) => {
|
|
|
157
153
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
|
|
158
154
|
resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
159
155
|
let body;
|
|
160
|
-
body = JSON.stringify({
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
...(input.HttpConfiguration != null && {
|
|
168
|
-
HttpConfiguration: se_HttpConfiguration(input.HttpConfiguration, context),
|
|
169
|
-
}),
|
|
170
|
-
...(input.SegmentDeliveryConfigurations != null && {
|
|
171
|
-
SegmentDeliveryConfigurations: se___listOfSegmentDeliveryConfiguration(input.SegmentDeliveryConfigurations, context),
|
|
172
|
-
}),
|
|
173
|
-
...(input.Tags != null && { tags: se___mapOf__string(input.Tags, context) }),
|
|
174
|
-
});
|
|
156
|
+
body = JSON.stringify(take(input, {
|
|
157
|
+
AccessConfiguration: (_) => _json(_),
|
|
158
|
+
DefaultSegmentDeliveryConfiguration: (_) => _json(_),
|
|
159
|
+
HttpConfiguration: (_) => _json(_),
|
|
160
|
+
SegmentDeliveryConfigurations: (_) => _json(_),
|
|
161
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
162
|
+
}));
|
|
175
163
|
return new __HttpRequest({
|
|
176
164
|
protocol,
|
|
177
165
|
hostname,
|
|
@@ -192,12 +180,10 @@ export const se_CreateVodSourceCommand = async (input, context) => {
|
|
|
192
180
|
resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
193
181
|
resolvedPath = __resolvedPath(resolvedPath, input, "VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
|
|
194
182
|
let body;
|
|
195
|
-
body = JSON.stringify({
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
...(input.Tags != null && { tags: se___mapOf__string(input.Tags, context) }),
|
|
200
|
-
});
|
|
183
|
+
body = JSON.stringify(take(input, {
|
|
184
|
+
HttpPackageConfigurations: (_) => _json(_),
|
|
185
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
186
|
+
}));
|
|
201
187
|
return new __HttpRequest({
|
|
202
188
|
protocol,
|
|
203
189
|
hostname,
|
|
@@ -594,11 +580,11 @@ export const se_ListPrefetchSchedulesCommand = async (input, context) => {
|
|
|
594
580
|
"/prefetchSchedule/{PlaybackConfigurationName}";
|
|
595
581
|
resolvedPath = __resolvedPath(resolvedPath, input, "PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
|
|
596
582
|
let body;
|
|
597
|
-
body = JSON.stringify({
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
});
|
|
583
|
+
body = JSON.stringify(take(input, {
|
|
584
|
+
MaxResults: [],
|
|
585
|
+
NextToken: [],
|
|
586
|
+
StreamId: [],
|
|
587
|
+
}));
|
|
602
588
|
return new __HttpRequest({
|
|
603
589
|
protocol,
|
|
604
590
|
hostname,
|
|
@@ -675,9 +661,9 @@ export const se_PutChannelPolicyCommand = async (input, context) => {
|
|
|
675
661
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
|
|
676
662
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
677
663
|
let body;
|
|
678
|
-
body = JSON.stringify({
|
|
679
|
-
|
|
680
|
-
});
|
|
664
|
+
body = JSON.stringify(take(input, {
|
|
665
|
+
Policy: [],
|
|
666
|
+
}));
|
|
681
667
|
return new __HttpRequest({
|
|
682
668
|
protocol,
|
|
683
669
|
hostname,
|
|
@@ -695,32 +681,22 @@ export const se_PutPlaybackConfigurationCommand = async (input, context) => {
|
|
|
695
681
|
};
|
|
696
682
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration";
|
|
697
683
|
let body;
|
|
698
|
-
body = JSON.stringify({
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
}),
|
|
715
|
-
...(input.Name != null && { Name: input.Name }),
|
|
716
|
-
...(input.PersonalizationThresholdSeconds != null && {
|
|
717
|
-
PersonalizationThresholdSeconds: input.PersonalizationThresholdSeconds,
|
|
718
|
-
}),
|
|
719
|
-
...(input.SlateAdUrl != null && { SlateAdUrl: input.SlateAdUrl }),
|
|
720
|
-
...(input.Tags != null && { tags: se___mapOf__string(input.Tags, context) }),
|
|
721
|
-
...(input.TranscodeProfileName != null && { TranscodeProfileName: input.TranscodeProfileName }),
|
|
722
|
-
...(input.VideoContentSourceUrl != null && { VideoContentSourceUrl: input.VideoContentSourceUrl }),
|
|
723
|
-
});
|
|
684
|
+
body = JSON.stringify(take(input, {
|
|
685
|
+
AdDecisionServerUrl: [],
|
|
686
|
+
AvailSuppression: (_) => _json(_),
|
|
687
|
+
Bumper: (_) => _json(_),
|
|
688
|
+
CdnConfiguration: (_) => _json(_),
|
|
689
|
+
ConfigurationAliases: (_) => _json(_),
|
|
690
|
+
DashConfiguration: (_) => _json(_),
|
|
691
|
+
LivePreRollConfiguration: (_) => _json(_),
|
|
692
|
+
ManifestProcessingRules: (_) => _json(_),
|
|
693
|
+
Name: [],
|
|
694
|
+
PersonalizationThresholdSeconds: [],
|
|
695
|
+
SlateAdUrl: [],
|
|
696
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
697
|
+
TranscodeProfileName: [],
|
|
698
|
+
VideoContentSourceUrl: [],
|
|
699
|
+
}));
|
|
724
700
|
return new __HttpRequest({
|
|
725
701
|
protocol,
|
|
726
702
|
hostname,
|
|
@@ -771,9 +747,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
771
747
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
772
748
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
773
749
|
let body;
|
|
774
|
-
body = JSON.stringify({
|
|
775
|
-
|
|
776
|
-
});
|
|
750
|
+
body = JSON.stringify(take(input, {
|
|
751
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
752
|
+
}));
|
|
777
753
|
return new __HttpRequest({
|
|
778
754
|
protocol,
|
|
779
755
|
hostname,
|
|
@@ -815,10 +791,10 @@ export const se_UpdateChannelCommand = async (input, context) => {
|
|
|
815
791
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
|
|
816
792
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
817
793
|
let body;
|
|
818
|
-
body = JSON.stringify({
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
});
|
|
794
|
+
body = JSON.stringify(take(input, {
|
|
795
|
+
FillerSlate: (_) => _json(_),
|
|
796
|
+
Outputs: (_) => _json(_),
|
|
797
|
+
}));
|
|
822
798
|
return new __HttpRequest({
|
|
823
799
|
protocol,
|
|
824
800
|
hostname,
|
|
@@ -839,11 +815,9 @@ export const se_UpdateLiveSourceCommand = async (input, context) => {
|
|
|
839
815
|
resolvedPath = __resolvedPath(resolvedPath, input, "LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
|
|
840
816
|
resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
841
817
|
let body;
|
|
842
|
-
body = JSON.stringify({
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
}),
|
|
846
|
-
});
|
|
818
|
+
body = JSON.stringify(take(input, {
|
|
819
|
+
HttpPackageConfigurations: (_) => _json(_),
|
|
820
|
+
}));
|
|
847
821
|
return new __HttpRequest({
|
|
848
822
|
protocol,
|
|
849
823
|
hostname,
|
|
@@ -864,12 +838,10 @@ export const se_UpdateProgramCommand = async (input, context) => {
|
|
|
864
838
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
|
|
865
839
|
resolvedPath = __resolvedPath(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
|
|
866
840
|
let body;
|
|
867
|
-
body = JSON.stringify({
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
}),
|
|
872
|
-
});
|
|
841
|
+
body = JSON.stringify(take(input, {
|
|
842
|
+
AdBreaks: (_) => _json(_),
|
|
843
|
+
ScheduleConfiguration: (_) => _json(_),
|
|
844
|
+
}));
|
|
873
845
|
return new __HttpRequest({
|
|
874
846
|
protocol,
|
|
875
847
|
hostname,
|
|
@@ -888,20 +860,12 @@ export const se_UpdateSourceLocationCommand = async (input, context) => {
|
|
|
888
860
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
|
|
889
861
|
resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
890
862
|
let body;
|
|
891
|
-
body = JSON.stringify({
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
}),
|
|
898
|
-
...(input.HttpConfiguration != null && {
|
|
899
|
-
HttpConfiguration: se_HttpConfiguration(input.HttpConfiguration, context),
|
|
900
|
-
}),
|
|
901
|
-
...(input.SegmentDeliveryConfigurations != null && {
|
|
902
|
-
SegmentDeliveryConfigurations: se___listOfSegmentDeliveryConfiguration(input.SegmentDeliveryConfigurations, context),
|
|
903
|
-
}),
|
|
904
|
-
});
|
|
863
|
+
body = JSON.stringify(take(input, {
|
|
864
|
+
AccessConfiguration: (_) => _json(_),
|
|
865
|
+
DefaultSegmentDeliveryConfiguration: (_) => _json(_),
|
|
866
|
+
HttpConfiguration: (_) => _json(_),
|
|
867
|
+
SegmentDeliveryConfigurations: (_) => _json(_),
|
|
868
|
+
}));
|
|
905
869
|
return new __HttpRequest({
|
|
906
870
|
protocol,
|
|
907
871
|
hostname,
|
|
@@ -922,11 +886,9 @@ export const se_UpdateVodSourceCommand = async (input, context) => {
|
|
|
922
886
|
resolvedPath = __resolvedPath(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
|
|
923
887
|
resolvedPath = __resolvedPath(resolvedPath, input, "VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
|
|
924
888
|
let body;
|
|
925
|
-
body = JSON.stringify({
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
}),
|
|
929
|
-
});
|
|
889
|
+
body = JSON.stringify(take(input, {
|
|
890
|
+
HttpPackageConfigurations: (_) => _json(_),
|
|
891
|
+
}));
|
|
930
892
|
return new __HttpRequest({
|
|
931
893
|
protocol,
|
|
932
894
|
hostname,
|
|
@@ -945,12 +907,11 @@ export const de_ConfigureLogsForChannelCommand = async (output, context) => {
|
|
|
945
907
|
$metadata: deserializeMetadata(output),
|
|
946
908
|
});
|
|
947
909
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
}
|
|
910
|
+
const doc = take(data, {
|
|
911
|
+
ChannelName: __expectString,
|
|
912
|
+
LogTypes: _json,
|
|
913
|
+
});
|
|
914
|
+
Object.assign(contents, doc);
|
|
954
915
|
return contents;
|
|
955
916
|
};
|
|
956
917
|
const de_ConfigureLogsForChannelCommandError = async (output, context) => {
|
|
@@ -960,10 +921,9 @@ const de_ConfigureLogsForChannelCommandError = async (output, context) => {
|
|
|
960
921
|
};
|
|
961
922
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
923
|
const parsedBody = parsedOutput.body;
|
|
963
|
-
throwDefaultError({
|
|
924
|
+
return throwDefaultError({
|
|
964
925
|
output,
|
|
965
926
|
parsedBody,
|
|
966
|
-
exceptionCtor: __BaseException,
|
|
967
927
|
errorCode,
|
|
968
928
|
});
|
|
969
929
|
};
|
|
@@ -975,12 +935,11 @@ export const de_ConfigureLogsForPlaybackConfigurationCommand = async (output, co
|
|
|
975
935
|
$metadata: deserializeMetadata(output),
|
|
976
936
|
});
|
|
977
937
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
}
|
|
938
|
+
const doc = take(data, {
|
|
939
|
+
PercentEnabled: __expectInt32,
|
|
940
|
+
PlaybackConfigurationName: __expectString,
|
|
941
|
+
});
|
|
942
|
+
Object.assign(contents, doc);
|
|
984
943
|
return contents;
|
|
985
944
|
};
|
|
986
945
|
const de_ConfigureLogsForPlaybackConfigurationCommandError = async (output, context) => {
|
|
@@ -990,10 +949,9 @@ const de_ConfigureLogsForPlaybackConfigurationCommandError = async (output, cont
|
|
|
990
949
|
};
|
|
991
950
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
951
|
const parsedBody = parsedOutput.body;
|
|
993
|
-
throwDefaultError({
|
|
952
|
+
return throwDefaultError({
|
|
994
953
|
output,
|
|
995
954
|
parsedBody,
|
|
996
|
-
exceptionCtor: __BaseException,
|
|
997
955
|
errorCode,
|
|
998
956
|
});
|
|
999
957
|
};
|
|
@@ -1005,36 +963,19 @@ export const de_CreateChannelCommand = async (output, context) => {
|
|
|
1005
963
|
$metadata: deserializeMetadata(output),
|
|
1006
964
|
});
|
|
1007
965
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
contents.FillerSlate = de_SlateSource(data.FillerSlate, context);
|
|
1022
|
-
}
|
|
1023
|
-
if (data.LastModifiedTime != null) {
|
|
1024
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
1025
|
-
}
|
|
1026
|
-
if (data.Outputs != null) {
|
|
1027
|
-
contents.Outputs = de_ResponseOutputs(data.Outputs, context);
|
|
1028
|
-
}
|
|
1029
|
-
if (data.PlaybackMode != null) {
|
|
1030
|
-
contents.PlaybackMode = __expectString(data.PlaybackMode);
|
|
1031
|
-
}
|
|
1032
|
-
if (data.tags != null) {
|
|
1033
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
1034
|
-
}
|
|
1035
|
-
if (data.Tier != null) {
|
|
1036
|
-
contents.Tier = __expectString(data.Tier);
|
|
1037
|
-
}
|
|
966
|
+
const doc = take(data, {
|
|
967
|
+
Arn: __expectString,
|
|
968
|
+
ChannelName: __expectString,
|
|
969
|
+
ChannelState: __expectString,
|
|
970
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
971
|
+
FillerSlate: _json,
|
|
972
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
973
|
+
Outputs: _json,
|
|
974
|
+
PlaybackMode: __expectString,
|
|
975
|
+
Tags: [, _json, `tags`],
|
|
976
|
+
Tier: __expectString,
|
|
977
|
+
});
|
|
978
|
+
Object.assign(contents, doc);
|
|
1038
979
|
return contents;
|
|
1039
980
|
};
|
|
1040
981
|
const de_CreateChannelCommandError = async (output, context) => {
|
|
@@ -1044,10 +985,9 @@ const de_CreateChannelCommandError = async (output, context) => {
|
|
|
1044
985
|
};
|
|
1045
986
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1046
987
|
const parsedBody = parsedOutput.body;
|
|
1047
|
-
throwDefaultError({
|
|
988
|
+
return throwDefaultError({
|
|
1048
989
|
output,
|
|
1049
990
|
parsedBody,
|
|
1050
|
-
exceptionCtor: __BaseException,
|
|
1051
991
|
errorCode,
|
|
1052
992
|
});
|
|
1053
993
|
};
|
|
@@ -1059,27 +999,16 @@ export const de_CreateLiveSourceCommand = async (output, context) => {
|
|
|
1059
999
|
$metadata: deserializeMetadata(output),
|
|
1060
1000
|
});
|
|
1061
1001
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
1073
|
-
}
|
|
1074
|
-
if (data.LiveSourceName != null) {
|
|
1075
|
-
contents.LiveSourceName = __expectString(data.LiveSourceName);
|
|
1076
|
-
}
|
|
1077
|
-
if (data.SourceLocationName != null) {
|
|
1078
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
1079
|
-
}
|
|
1080
|
-
if (data.tags != null) {
|
|
1081
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
1082
|
-
}
|
|
1002
|
+
const doc = take(data, {
|
|
1003
|
+
Arn: __expectString,
|
|
1004
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1005
|
+
HttpPackageConfigurations: _json,
|
|
1006
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1007
|
+
LiveSourceName: __expectString,
|
|
1008
|
+
SourceLocationName: __expectString,
|
|
1009
|
+
Tags: [, _json, `tags`],
|
|
1010
|
+
});
|
|
1011
|
+
Object.assign(contents, doc);
|
|
1083
1012
|
return contents;
|
|
1084
1013
|
};
|
|
1085
1014
|
const de_CreateLiveSourceCommandError = async (output, context) => {
|
|
@@ -1089,10 +1018,9 @@ const de_CreateLiveSourceCommandError = async (output, context) => {
|
|
|
1089
1018
|
};
|
|
1090
1019
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
1020
|
const parsedBody = parsedOutput.body;
|
|
1092
|
-
throwDefaultError({
|
|
1021
|
+
return throwDefaultError({
|
|
1093
1022
|
output,
|
|
1094
1023
|
parsedBody,
|
|
1095
|
-
exceptionCtor: __BaseException,
|
|
1096
1024
|
errorCode,
|
|
1097
1025
|
});
|
|
1098
1026
|
};
|
|
@@ -1104,24 +1032,15 @@ export const de_CreatePrefetchScheduleCommand = async (output, context) => {
|
|
|
1104
1032
|
$metadata: deserializeMetadata(output),
|
|
1105
1033
|
});
|
|
1106
1034
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
if (data.PlaybackConfigurationName != null) {
|
|
1117
|
-
contents.PlaybackConfigurationName = __expectString(data.PlaybackConfigurationName);
|
|
1118
|
-
}
|
|
1119
|
-
if (data.Retrieval != null) {
|
|
1120
|
-
contents.Retrieval = de_PrefetchRetrieval(data.Retrieval, context);
|
|
1121
|
-
}
|
|
1122
|
-
if (data.StreamId != null) {
|
|
1123
|
-
contents.StreamId = __expectString(data.StreamId);
|
|
1124
|
-
}
|
|
1035
|
+
const doc = take(data, {
|
|
1036
|
+
Arn: __expectString,
|
|
1037
|
+
Consumption: (_) => de_PrefetchConsumption(_, context),
|
|
1038
|
+
Name: __expectString,
|
|
1039
|
+
PlaybackConfigurationName: __expectString,
|
|
1040
|
+
Retrieval: (_) => de_PrefetchRetrieval(_, context),
|
|
1041
|
+
StreamId: __expectString,
|
|
1042
|
+
});
|
|
1043
|
+
Object.assign(contents, doc);
|
|
1125
1044
|
return contents;
|
|
1126
1045
|
};
|
|
1127
1046
|
const de_CreatePrefetchScheduleCommandError = async (output, context) => {
|
|
@@ -1131,10 +1050,9 @@ const de_CreatePrefetchScheduleCommandError = async (output, context) => {
|
|
|
1131
1050
|
};
|
|
1132
1051
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
1052
|
const parsedBody = parsedOutput.body;
|
|
1134
|
-
throwDefaultError({
|
|
1053
|
+
return throwDefaultError({
|
|
1135
1054
|
output,
|
|
1136
1055
|
parsedBody,
|
|
1137
|
-
exceptionCtor: __BaseException,
|
|
1138
1056
|
errorCode,
|
|
1139
1057
|
});
|
|
1140
1058
|
};
|
|
@@ -1146,39 +1064,20 @@ export const de_CreateProgramCommand = async (output, context) => {
|
|
|
1146
1064
|
$metadata: deserializeMetadata(output),
|
|
1147
1065
|
});
|
|
1148
1066
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
}
|
|
1164
|
-
if (data.DurationMillis != null) {
|
|
1165
|
-
contents.DurationMillis = __expectLong(data.DurationMillis);
|
|
1166
|
-
}
|
|
1167
|
-
if (data.LiveSourceName != null) {
|
|
1168
|
-
contents.LiveSourceName = __expectString(data.LiveSourceName);
|
|
1169
|
-
}
|
|
1170
|
-
if (data.ProgramName != null) {
|
|
1171
|
-
contents.ProgramName = __expectString(data.ProgramName);
|
|
1172
|
-
}
|
|
1173
|
-
if (data.ScheduledStartTime != null) {
|
|
1174
|
-
contents.ScheduledStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.ScheduledStartTime)));
|
|
1175
|
-
}
|
|
1176
|
-
if (data.SourceLocationName != null) {
|
|
1177
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
1178
|
-
}
|
|
1179
|
-
if (data.VodSourceName != null) {
|
|
1180
|
-
contents.VodSourceName = __expectString(data.VodSourceName);
|
|
1181
|
-
}
|
|
1067
|
+
const doc = take(data, {
|
|
1068
|
+
AdBreaks: _json,
|
|
1069
|
+
Arn: __expectString,
|
|
1070
|
+
ChannelName: __expectString,
|
|
1071
|
+
ClipRange: _json,
|
|
1072
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1073
|
+
DurationMillis: __expectLong,
|
|
1074
|
+
LiveSourceName: __expectString,
|
|
1075
|
+
ProgramName: __expectString,
|
|
1076
|
+
ScheduledStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1077
|
+
SourceLocationName: __expectString,
|
|
1078
|
+
VodSourceName: __expectString,
|
|
1079
|
+
});
|
|
1080
|
+
Object.assign(contents, doc);
|
|
1182
1081
|
return contents;
|
|
1183
1082
|
};
|
|
1184
1083
|
const de_CreateProgramCommandError = async (output, context) => {
|
|
@@ -1188,10 +1087,9 @@ const de_CreateProgramCommandError = async (output, context) => {
|
|
|
1188
1087
|
};
|
|
1189
1088
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
1089
|
const parsedBody = parsedOutput.body;
|
|
1191
|
-
throwDefaultError({
|
|
1090
|
+
return throwDefaultError({
|
|
1192
1091
|
output,
|
|
1193
1092
|
parsedBody,
|
|
1194
|
-
exceptionCtor: __BaseException,
|
|
1195
1093
|
errorCode,
|
|
1196
1094
|
});
|
|
1197
1095
|
};
|
|
@@ -1203,33 +1101,18 @@ export const de_CreateSourceLocationCommand = async (output, context) => {
|
|
|
1203
1101
|
$metadata: deserializeMetadata(output),
|
|
1204
1102
|
});
|
|
1205
1103
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
if (data.HttpConfiguration != null) {
|
|
1219
|
-
contents.HttpConfiguration = de_HttpConfiguration(data.HttpConfiguration, context);
|
|
1220
|
-
}
|
|
1221
|
-
if (data.LastModifiedTime != null) {
|
|
1222
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
1223
|
-
}
|
|
1224
|
-
if (data.SegmentDeliveryConfigurations != null) {
|
|
1225
|
-
contents.SegmentDeliveryConfigurations = de___listOfSegmentDeliveryConfiguration(data.SegmentDeliveryConfigurations, context);
|
|
1226
|
-
}
|
|
1227
|
-
if (data.SourceLocationName != null) {
|
|
1228
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
1229
|
-
}
|
|
1230
|
-
if (data.tags != null) {
|
|
1231
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
1232
|
-
}
|
|
1104
|
+
const doc = take(data, {
|
|
1105
|
+
AccessConfiguration: _json,
|
|
1106
|
+
Arn: __expectString,
|
|
1107
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1108
|
+
DefaultSegmentDeliveryConfiguration: _json,
|
|
1109
|
+
HttpConfiguration: _json,
|
|
1110
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1111
|
+
SegmentDeliveryConfigurations: _json,
|
|
1112
|
+
SourceLocationName: __expectString,
|
|
1113
|
+
Tags: [, _json, `tags`],
|
|
1114
|
+
});
|
|
1115
|
+
Object.assign(contents, doc);
|
|
1233
1116
|
return contents;
|
|
1234
1117
|
};
|
|
1235
1118
|
const de_CreateSourceLocationCommandError = async (output, context) => {
|
|
@@ -1239,10 +1122,9 @@ const de_CreateSourceLocationCommandError = async (output, context) => {
|
|
|
1239
1122
|
};
|
|
1240
1123
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
1124
|
const parsedBody = parsedOutput.body;
|
|
1242
|
-
throwDefaultError({
|
|
1125
|
+
return throwDefaultError({
|
|
1243
1126
|
output,
|
|
1244
1127
|
parsedBody,
|
|
1245
|
-
exceptionCtor: __BaseException,
|
|
1246
1128
|
errorCode,
|
|
1247
1129
|
});
|
|
1248
1130
|
};
|
|
@@ -1254,27 +1136,16 @@ export const de_CreateVodSourceCommand = async (output, context) => {
|
|
|
1254
1136
|
$metadata: deserializeMetadata(output),
|
|
1255
1137
|
});
|
|
1256
1138
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
1268
|
-
}
|
|
1269
|
-
if (data.SourceLocationName != null) {
|
|
1270
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
1271
|
-
}
|
|
1272
|
-
if (data.tags != null) {
|
|
1273
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
1274
|
-
}
|
|
1275
|
-
if (data.VodSourceName != null) {
|
|
1276
|
-
contents.VodSourceName = __expectString(data.VodSourceName);
|
|
1277
|
-
}
|
|
1139
|
+
const doc = take(data, {
|
|
1140
|
+
Arn: __expectString,
|
|
1141
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1142
|
+
HttpPackageConfigurations: _json,
|
|
1143
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1144
|
+
SourceLocationName: __expectString,
|
|
1145
|
+
Tags: [, _json, `tags`],
|
|
1146
|
+
VodSourceName: __expectString,
|
|
1147
|
+
});
|
|
1148
|
+
Object.assign(contents, doc);
|
|
1278
1149
|
return contents;
|
|
1279
1150
|
};
|
|
1280
1151
|
const de_CreateVodSourceCommandError = async (output, context) => {
|
|
@@ -1284,10 +1155,9 @@ const de_CreateVodSourceCommandError = async (output, context) => {
|
|
|
1284
1155
|
};
|
|
1285
1156
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
1157
|
const parsedBody = parsedOutput.body;
|
|
1287
|
-
throwDefaultError({
|
|
1158
|
+
return throwDefaultError({
|
|
1288
1159
|
output,
|
|
1289
1160
|
parsedBody,
|
|
1290
|
-
exceptionCtor: __BaseException,
|
|
1291
1161
|
errorCode,
|
|
1292
1162
|
});
|
|
1293
1163
|
};
|
|
@@ -1308,10 +1178,9 @@ const de_DeleteChannelCommandError = async (output, context) => {
|
|
|
1308
1178
|
};
|
|
1309
1179
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1310
1180
|
const parsedBody = parsedOutput.body;
|
|
1311
|
-
throwDefaultError({
|
|
1181
|
+
return throwDefaultError({
|
|
1312
1182
|
output,
|
|
1313
1183
|
parsedBody,
|
|
1314
|
-
exceptionCtor: __BaseException,
|
|
1315
1184
|
errorCode,
|
|
1316
1185
|
});
|
|
1317
1186
|
};
|
|
@@ -1332,10 +1201,9 @@ const de_DeleteChannelPolicyCommandError = async (output, context) => {
|
|
|
1332
1201
|
};
|
|
1333
1202
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
1203
|
const parsedBody = parsedOutput.body;
|
|
1335
|
-
throwDefaultError({
|
|
1204
|
+
return throwDefaultError({
|
|
1336
1205
|
output,
|
|
1337
1206
|
parsedBody,
|
|
1338
|
-
exceptionCtor: __BaseException,
|
|
1339
1207
|
errorCode,
|
|
1340
1208
|
});
|
|
1341
1209
|
};
|
|
@@ -1356,10 +1224,9 @@ const de_DeleteLiveSourceCommandError = async (output, context) => {
|
|
|
1356
1224
|
};
|
|
1357
1225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1358
1226
|
const parsedBody = parsedOutput.body;
|
|
1359
|
-
throwDefaultError({
|
|
1227
|
+
return throwDefaultError({
|
|
1360
1228
|
output,
|
|
1361
1229
|
parsedBody,
|
|
1362
|
-
exceptionCtor: __BaseException,
|
|
1363
1230
|
errorCode,
|
|
1364
1231
|
});
|
|
1365
1232
|
};
|
|
@@ -1380,10 +1247,9 @@ const de_DeletePlaybackConfigurationCommandError = async (output, context) => {
|
|
|
1380
1247
|
};
|
|
1381
1248
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1382
1249
|
const parsedBody = parsedOutput.body;
|
|
1383
|
-
throwDefaultError({
|
|
1250
|
+
return throwDefaultError({
|
|
1384
1251
|
output,
|
|
1385
1252
|
parsedBody,
|
|
1386
|
-
exceptionCtor: __BaseException,
|
|
1387
1253
|
errorCode,
|
|
1388
1254
|
});
|
|
1389
1255
|
};
|
|
@@ -1404,10 +1270,9 @@ const de_DeletePrefetchScheduleCommandError = async (output, context) => {
|
|
|
1404
1270
|
};
|
|
1405
1271
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
1272
|
const parsedBody = parsedOutput.body;
|
|
1407
|
-
throwDefaultError({
|
|
1273
|
+
return throwDefaultError({
|
|
1408
1274
|
output,
|
|
1409
1275
|
parsedBody,
|
|
1410
|
-
exceptionCtor: __BaseException,
|
|
1411
1276
|
errorCode,
|
|
1412
1277
|
});
|
|
1413
1278
|
};
|
|
@@ -1428,10 +1293,9 @@ const de_DeleteProgramCommandError = async (output, context) => {
|
|
|
1428
1293
|
};
|
|
1429
1294
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
1295
|
const parsedBody = parsedOutput.body;
|
|
1431
|
-
throwDefaultError({
|
|
1296
|
+
return throwDefaultError({
|
|
1432
1297
|
output,
|
|
1433
1298
|
parsedBody,
|
|
1434
|
-
exceptionCtor: __BaseException,
|
|
1435
1299
|
errorCode,
|
|
1436
1300
|
});
|
|
1437
1301
|
};
|
|
@@ -1452,10 +1316,9 @@ const de_DeleteSourceLocationCommandError = async (output, context) => {
|
|
|
1452
1316
|
};
|
|
1453
1317
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1454
1318
|
const parsedBody = parsedOutput.body;
|
|
1455
|
-
throwDefaultError({
|
|
1319
|
+
return throwDefaultError({
|
|
1456
1320
|
output,
|
|
1457
1321
|
parsedBody,
|
|
1458
|
-
exceptionCtor: __BaseException,
|
|
1459
1322
|
errorCode,
|
|
1460
1323
|
});
|
|
1461
1324
|
};
|
|
@@ -1476,10 +1339,9 @@ const de_DeleteVodSourceCommandError = async (output, context) => {
|
|
|
1476
1339
|
};
|
|
1477
1340
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1478
1341
|
const parsedBody = parsedOutput.body;
|
|
1479
|
-
throwDefaultError({
|
|
1342
|
+
return throwDefaultError({
|
|
1480
1343
|
output,
|
|
1481
1344
|
parsedBody,
|
|
1482
|
-
exceptionCtor: __BaseException,
|
|
1483
1345
|
errorCode,
|
|
1484
1346
|
});
|
|
1485
1347
|
};
|
|
@@ -1491,39 +1353,20 @@ export const de_DescribeChannelCommand = async (output, context) => {
|
|
|
1491
1353
|
$metadata: deserializeMetadata(output),
|
|
1492
1354
|
});
|
|
1493
1355
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
}
|
|
1509
|
-
if (data.LastModifiedTime != null) {
|
|
1510
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
1511
|
-
}
|
|
1512
|
-
if (data.LogConfiguration != null) {
|
|
1513
|
-
contents.LogConfiguration = de_LogConfigurationForChannel(data.LogConfiguration, context);
|
|
1514
|
-
}
|
|
1515
|
-
if (data.Outputs != null) {
|
|
1516
|
-
contents.Outputs = de_ResponseOutputs(data.Outputs, context);
|
|
1517
|
-
}
|
|
1518
|
-
if (data.PlaybackMode != null) {
|
|
1519
|
-
contents.PlaybackMode = __expectString(data.PlaybackMode);
|
|
1520
|
-
}
|
|
1521
|
-
if (data.tags != null) {
|
|
1522
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
1523
|
-
}
|
|
1524
|
-
if (data.Tier != null) {
|
|
1525
|
-
contents.Tier = __expectString(data.Tier);
|
|
1526
|
-
}
|
|
1356
|
+
const doc = take(data, {
|
|
1357
|
+
Arn: __expectString,
|
|
1358
|
+
ChannelName: __expectString,
|
|
1359
|
+
ChannelState: __expectString,
|
|
1360
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1361
|
+
FillerSlate: _json,
|
|
1362
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1363
|
+
LogConfiguration: _json,
|
|
1364
|
+
Outputs: _json,
|
|
1365
|
+
PlaybackMode: __expectString,
|
|
1366
|
+
Tags: [, _json, `tags`],
|
|
1367
|
+
Tier: __expectString,
|
|
1368
|
+
});
|
|
1369
|
+
Object.assign(contents, doc);
|
|
1527
1370
|
return contents;
|
|
1528
1371
|
};
|
|
1529
1372
|
const de_DescribeChannelCommandError = async (output, context) => {
|
|
@@ -1533,10 +1376,9 @@ const de_DescribeChannelCommandError = async (output, context) => {
|
|
|
1533
1376
|
};
|
|
1534
1377
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1535
1378
|
const parsedBody = parsedOutput.body;
|
|
1536
|
-
throwDefaultError({
|
|
1379
|
+
return throwDefaultError({
|
|
1537
1380
|
output,
|
|
1538
1381
|
parsedBody,
|
|
1539
|
-
exceptionCtor: __BaseException,
|
|
1540
1382
|
errorCode,
|
|
1541
1383
|
});
|
|
1542
1384
|
};
|
|
@@ -1548,27 +1390,16 @@ export const de_DescribeLiveSourceCommand = async (output, context) => {
|
|
|
1548
1390
|
$metadata: deserializeMetadata(output),
|
|
1549
1391
|
});
|
|
1550
1392
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
1562
|
-
}
|
|
1563
|
-
if (data.LiveSourceName != null) {
|
|
1564
|
-
contents.LiveSourceName = __expectString(data.LiveSourceName);
|
|
1565
|
-
}
|
|
1566
|
-
if (data.SourceLocationName != null) {
|
|
1567
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
1568
|
-
}
|
|
1569
|
-
if (data.tags != null) {
|
|
1570
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
1571
|
-
}
|
|
1393
|
+
const doc = take(data, {
|
|
1394
|
+
Arn: __expectString,
|
|
1395
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1396
|
+
HttpPackageConfigurations: _json,
|
|
1397
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1398
|
+
LiveSourceName: __expectString,
|
|
1399
|
+
SourceLocationName: __expectString,
|
|
1400
|
+
Tags: [, _json, `tags`],
|
|
1401
|
+
});
|
|
1402
|
+
Object.assign(contents, doc);
|
|
1572
1403
|
return contents;
|
|
1573
1404
|
};
|
|
1574
1405
|
const de_DescribeLiveSourceCommandError = async (output, context) => {
|
|
@@ -1578,10 +1409,9 @@ const de_DescribeLiveSourceCommandError = async (output, context) => {
|
|
|
1578
1409
|
};
|
|
1579
1410
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1580
1411
|
const parsedBody = parsedOutput.body;
|
|
1581
|
-
throwDefaultError({
|
|
1412
|
+
return throwDefaultError({
|
|
1582
1413
|
output,
|
|
1583
1414
|
parsedBody,
|
|
1584
|
-
exceptionCtor: __BaseException,
|
|
1585
1415
|
errorCode,
|
|
1586
1416
|
});
|
|
1587
1417
|
};
|
|
@@ -1593,39 +1423,20 @@ export const de_DescribeProgramCommand = async (output, context) => {
|
|
|
1593
1423
|
$metadata: deserializeMetadata(output),
|
|
1594
1424
|
});
|
|
1595
1425
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
}
|
|
1611
|
-
if (data.DurationMillis != null) {
|
|
1612
|
-
contents.DurationMillis = __expectLong(data.DurationMillis);
|
|
1613
|
-
}
|
|
1614
|
-
if (data.LiveSourceName != null) {
|
|
1615
|
-
contents.LiveSourceName = __expectString(data.LiveSourceName);
|
|
1616
|
-
}
|
|
1617
|
-
if (data.ProgramName != null) {
|
|
1618
|
-
contents.ProgramName = __expectString(data.ProgramName);
|
|
1619
|
-
}
|
|
1620
|
-
if (data.ScheduledStartTime != null) {
|
|
1621
|
-
contents.ScheduledStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.ScheduledStartTime)));
|
|
1622
|
-
}
|
|
1623
|
-
if (data.SourceLocationName != null) {
|
|
1624
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
1625
|
-
}
|
|
1626
|
-
if (data.VodSourceName != null) {
|
|
1627
|
-
contents.VodSourceName = __expectString(data.VodSourceName);
|
|
1628
|
-
}
|
|
1426
|
+
const doc = take(data, {
|
|
1427
|
+
AdBreaks: _json,
|
|
1428
|
+
Arn: __expectString,
|
|
1429
|
+
ChannelName: __expectString,
|
|
1430
|
+
ClipRange: _json,
|
|
1431
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1432
|
+
DurationMillis: __expectLong,
|
|
1433
|
+
LiveSourceName: __expectString,
|
|
1434
|
+
ProgramName: __expectString,
|
|
1435
|
+
ScheduledStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1436
|
+
SourceLocationName: __expectString,
|
|
1437
|
+
VodSourceName: __expectString,
|
|
1438
|
+
});
|
|
1439
|
+
Object.assign(contents, doc);
|
|
1629
1440
|
return contents;
|
|
1630
1441
|
};
|
|
1631
1442
|
const de_DescribeProgramCommandError = async (output, context) => {
|
|
@@ -1635,10 +1446,9 @@ const de_DescribeProgramCommandError = async (output, context) => {
|
|
|
1635
1446
|
};
|
|
1636
1447
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1637
1448
|
const parsedBody = parsedOutput.body;
|
|
1638
|
-
throwDefaultError({
|
|
1449
|
+
return throwDefaultError({
|
|
1639
1450
|
output,
|
|
1640
1451
|
parsedBody,
|
|
1641
|
-
exceptionCtor: __BaseException,
|
|
1642
1452
|
errorCode,
|
|
1643
1453
|
});
|
|
1644
1454
|
};
|
|
@@ -1650,33 +1460,18 @@ export const de_DescribeSourceLocationCommand = async (output, context) => {
|
|
|
1650
1460
|
$metadata: deserializeMetadata(output),
|
|
1651
1461
|
});
|
|
1652
1462
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
if (data.HttpConfiguration != null) {
|
|
1666
|
-
contents.HttpConfiguration = de_HttpConfiguration(data.HttpConfiguration, context);
|
|
1667
|
-
}
|
|
1668
|
-
if (data.LastModifiedTime != null) {
|
|
1669
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
1670
|
-
}
|
|
1671
|
-
if (data.SegmentDeliveryConfigurations != null) {
|
|
1672
|
-
contents.SegmentDeliveryConfigurations = de___listOfSegmentDeliveryConfiguration(data.SegmentDeliveryConfigurations, context);
|
|
1673
|
-
}
|
|
1674
|
-
if (data.SourceLocationName != null) {
|
|
1675
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
1676
|
-
}
|
|
1677
|
-
if (data.tags != null) {
|
|
1678
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
1679
|
-
}
|
|
1463
|
+
const doc = take(data, {
|
|
1464
|
+
AccessConfiguration: _json,
|
|
1465
|
+
Arn: __expectString,
|
|
1466
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1467
|
+
DefaultSegmentDeliveryConfiguration: _json,
|
|
1468
|
+
HttpConfiguration: _json,
|
|
1469
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1470
|
+
SegmentDeliveryConfigurations: _json,
|
|
1471
|
+
SourceLocationName: __expectString,
|
|
1472
|
+
Tags: [, _json, `tags`],
|
|
1473
|
+
});
|
|
1474
|
+
Object.assign(contents, doc);
|
|
1680
1475
|
return contents;
|
|
1681
1476
|
};
|
|
1682
1477
|
const de_DescribeSourceLocationCommandError = async (output, context) => {
|
|
@@ -1686,10 +1481,9 @@ const de_DescribeSourceLocationCommandError = async (output, context) => {
|
|
|
1686
1481
|
};
|
|
1687
1482
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
1483
|
const parsedBody = parsedOutput.body;
|
|
1689
|
-
throwDefaultError({
|
|
1484
|
+
return throwDefaultError({
|
|
1690
1485
|
output,
|
|
1691
1486
|
parsedBody,
|
|
1692
|
-
exceptionCtor: __BaseException,
|
|
1693
1487
|
errorCode,
|
|
1694
1488
|
});
|
|
1695
1489
|
};
|
|
@@ -1701,27 +1495,16 @@ export const de_DescribeVodSourceCommand = async (output, context) => {
|
|
|
1701
1495
|
$metadata: deserializeMetadata(output),
|
|
1702
1496
|
});
|
|
1703
1497
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
1715
|
-
}
|
|
1716
|
-
if (data.SourceLocationName != null) {
|
|
1717
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
1718
|
-
}
|
|
1719
|
-
if (data.tags != null) {
|
|
1720
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
1721
|
-
}
|
|
1722
|
-
if (data.VodSourceName != null) {
|
|
1723
|
-
contents.VodSourceName = __expectString(data.VodSourceName);
|
|
1724
|
-
}
|
|
1498
|
+
const doc = take(data, {
|
|
1499
|
+
Arn: __expectString,
|
|
1500
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1501
|
+
HttpPackageConfigurations: _json,
|
|
1502
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1503
|
+
SourceLocationName: __expectString,
|
|
1504
|
+
Tags: [, _json, `tags`],
|
|
1505
|
+
VodSourceName: __expectString,
|
|
1506
|
+
});
|
|
1507
|
+
Object.assign(contents, doc);
|
|
1725
1508
|
return contents;
|
|
1726
1509
|
};
|
|
1727
1510
|
const de_DescribeVodSourceCommandError = async (output, context) => {
|
|
@@ -1731,10 +1514,9 @@ const de_DescribeVodSourceCommandError = async (output, context) => {
|
|
|
1731
1514
|
};
|
|
1732
1515
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1733
1516
|
const parsedBody = parsedOutput.body;
|
|
1734
|
-
throwDefaultError({
|
|
1517
|
+
return throwDefaultError({
|
|
1735
1518
|
output,
|
|
1736
1519
|
parsedBody,
|
|
1737
|
-
exceptionCtor: __BaseException,
|
|
1738
1520
|
errorCode,
|
|
1739
1521
|
});
|
|
1740
1522
|
};
|
|
@@ -1746,9 +1528,10 @@ export const de_GetChannelPolicyCommand = async (output, context) => {
|
|
|
1746
1528
|
$metadata: deserializeMetadata(output),
|
|
1747
1529
|
});
|
|
1748
1530
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
}
|
|
1531
|
+
const doc = take(data, {
|
|
1532
|
+
Policy: __expectString,
|
|
1533
|
+
});
|
|
1534
|
+
Object.assign(contents, doc);
|
|
1752
1535
|
return contents;
|
|
1753
1536
|
};
|
|
1754
1537
|
const de_GetChannelPolicyCommandError = async (output, context) => {
|
|
@@ -1758,10 +1541,9 @@ const de_GetChannelPolicyCommandError = async (output, context) => {
|
|
|
1758
1541
|
};
|
|
1759
1542
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
1543
|
const parsedBody = parsedOutput.body;
|
|
1761
|
-
throwDefaultError({
|
|
1544
|
+
return throwDefaultError({
|
|
1762
1545
|
output,
|
|
1763
1546
|
parsedBody,
|
|
1764
|
-
exceptionCtor: __BaseException,
|
|
1765
1547
|
errorCode,
|
|
1766
1548
|
});
|
|
1767
1549
|
};
|
|
@@ -1773,12 +1555,11 @@ export const de_GetChannelScheduleCommand = async (output, context) => {
|
|
|
1773
1555
|
$metadata: deserializeMetadata(output),
|
|
1774
1556
|
});
|
|
1775
1557
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
}
|
|
1558
|
+
const doc = take(data, {
|
|
1559
|
+
Items: (_) => de___listOfScheduleEntry(_, context),
|
|
1560
|
+
NextToken: __expectString,
|
|
1561
|
+
});
|
|
1562
|
+
Object.assign(contents, doc);
|
|
1782
1563
|
return contents;
|
|
1783
1564
|
};
|
|
1784
1565
|
const de_GetChannelScheduleCommandError = async (output, context) => {
|
|
@@ -1788,10 +1569,9 @@ const de_GetChannelScheduleCommandError = async (output, context) => {
|
|
|
1788
1569
|
};
|
|
1789
1570
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1790
1571
|
const parsedBody = parsedOutput.body;
|
|
1791
|
-
throwDefaultError({
|
|
1572
|
+
return throwDefaultError({
|
|
1792
1573
|
output,
|
|
1793
1574
|
parsedBody,
|
|
1794
|
-
exceptionCtor: __BaseException,
|
|
1795
1575
|
errorCode,
|
|
1796
1576
|
});
|
|
1797
1577
|
};
|
|
@@ -1803,63 +1583,28 @@ export const de_GetPlaybackConfigurationCommand = async (output, context) => {
|
|
|
1803
1583
|
$metadata: deserializeMetadata(output),
|
|
1804
1584
|
});
|
|
1805
1585
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
contents.LivePreRollConfiguration = de_LivePreRollConfiguration(data.LivePreRollConfiguration, context);
|
|
1829
|
-
}
|
|
1830
|
-
if (data.LogConfiguration != null) {
|
|
1831
|
-
contents.LogConfiguration = de_LogConfiguration(data.LogConfiguration, context);
|
|
1832
|
-
}
|
|
1833
|
-
if (data.ManifestProcessingRules != null) {
|
|
1834
|
-
contents.ManifestProcessingRules = de_ManifestProcessingRules(data.ManifestProcessingRules, context);
|
|
1835
|
-
}
|
|
1836
|
-
if (data.Name != null) {
|
|
1837
|
-
contents.Name = __expectString(data.Name);
|
|
1838
|
-
}
|
|
1839
|
-
if (data.PersonalizationThresholdSeconds != null) {
|
|
1840
|
-
contents.PersonalizationThresholdSeconds = __expectInt32(data.PersonalizationThresholdSeconds);
|
|
1841
|
-
}
|
|
1842
|
-
if (data.PlaybackConfigurationArn != null) {
|
|
1843
|
-
contents.PlaybackConfigurationArn = __expectString(data.PlaybackConfigurationArn);
|
|
1844
|
-
}
|
|
1845
|
-
if (data.PlaybackEndpointPrefix != null) {
|
|
1846
|
-
contents.PlaybackEndpointPrefix = __expectString(data.PlaybackEndpointPrefix);
|
|
1847
|
-
}
|
|
1848
|
-
if (data.SessionInitializationEndpointPrefix != null) {
|
|
1849
|
-
contents.SessionInitializationEndpointPrefix = __expectString(data.SessionInitializationEndpointPrefix);
|
|
1850
|
-
}
|
|
1851
|
-
if (data.SlateAdUrl != null) {
|
|
1852
|
-
contents.SlateAdUrl = __expectString(data.SlateAdUrl);
|
|
1853
|
-
}
|
|
1854
|
-
if (data.tags != null) {
|
|
1855
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
1856
|
-
}
|
|
1857
|
-
if (data.TranscodeProfileName != null) {
|
|
1858
|
-
contents.TranscodeProfileName = __expectString(data.TranscodeProfileName);
|
|
1859
|
-
}
|
|
1860
|
-
if (data.VideoContentSourceUrl != null) {
|
|
1861
|
-
contents.VideoContentSourceUrl = __expectString(data.VideoContentSourceUrl);
|
|
1862
|
-
}
|
|
1586
|
+
const doc = take(data, {
|
|
1587
|
+
AdDecisionServerUrl: __expectString,
|
|
1588
|
+
AvailSuppression: _json,
|
|
1589
|
+
Bumper: _json,
|
|
1590
|
+
CdnConfiguration: _json,
|
|
1591
|
+
ConfigurationAliases: _json,
|
|
1592
|
+
DashConfiguration: _json,
|
|
1593
|
+
HlsConfiguration: _json,
|
|
1594
|
+
LivePreRollConfiguration: _json,
|
|
1595
|
+
LogConfiguration: _json,
|
|
1596
|
+
ManifestProcessingRules: _json,
|
|
1597
|
+
Name: __expectString,
|
|
1598
|
+
PersonalizationThresholdSeconds: __expectInt32,
|
|
1599
|
+
PlaybackConfigurationArn: __expectString,
|
|
1600
|
+
PlaybackEndpointPrefix: __expectString,
|
|
1601
|
+
SessionInitializationEndpointPrefix: __expectString,
|
|
1602
|
+
SlateAdUrl: __expectString,
|
|
1603
|
+
Tags: [, _json, `tags`],
|
|
1604
|
+
TranscodeProfileName: __expectString,
|
|
1605
|
+
VideoContentSourceUrl: __expectString,
|
|
1606
|
+
});
|
|
1607
|
+
Object.assign(contents, doc);
|
|
1863
1608
|
return contents;
|
|
1864
1609
|
};
|
|
1865
1610
|
const de_GetPlaybackConfigurationCommandError = async (output, context) => {
|
|
@@ -1869,10 +1614,9 @@ const de_GetPlaybackConfigurationCommandError = async (output, context) => {
|
|
|
1869
1614
|
};
|
|
1870
1615
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
1616
|
const parsedBody = parsedOutput.body;
|
|
1872
|
-
throwDefaultError({
|
|
1617
|
+
return throwDefaultError({
|
|
1873
1618
|
output,
|
|
1874
1619
|
parsedBody,
|
|
1875
|
-
exceptionCtor: __BaseException,
|
|
1876
1620
|
errorCode,
|
|
1877
1621
|
});
|
|
1878
1622
|
};
|
|
@@ -1884,24 +1628,15 @@ export const de_GetPrefetchScheduleCommand = async (output, context) => {
|
|
|
1884
1628
|
$metadata: deserializeMetadata(output),
|
|
1885
1629
|
});
|
|
1886
1630
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
if (data.PlaybackConfigurationName != null) {
|
|
1897
|
-
contents.PlaybackConfigurationName = __expectString(data.PlaybackConfigurationName);
|
|
1898
|
-
}
|
|
1899
|
-
if (data.Retrieval != null) {
|
|
1900
|
-
contents.Retrieval = de_PrefetchRetrieval(data.Retrieval, context);
|
|
1901
|
-
}
|
|
1902
|
-
if (data.StreamId != null) {
|
|
1903
|
-
contents.StreamId = __expectString(data.StreamId);
|
|
1904
|
-
}
|
|
1631
|
+
const doc = take(data, {
|
|
1632
|
+
Arn: __expectString,
|
|
1633
|
+
Consumption: (_) => de_PrefetchConsumption(_, context),
|
|
1634
|
+
Name: __expectString,
|
|
1635
|
+
PlaybackConfigurationName: __expectString,
|
|
1636
|
+
Retrieval: (_) => de_PrefetchRetrieval(_, context),
|
|
1637
|
+
StreamId: __expectString,
|
|
1638
|
+
});
|
|
1639
|
+
Object.assign(contents, doc);
|
|
1905
1640
|
return contents;
|
|
1906
1641
|
};
|
|
1907
1642
|
const de_GetPrefetchScheduleCommandError = async (output, context) => {
|
|
@@ -1911,10 +1646,9 @@ const de_GetPrefetchScheduleCommandError = async (output, context) => {
|
|
|
1911
1646
|
};
|
|
1912
1647
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1913
1648
|
const parsedBody = parsedOutput.body;
|
|
1914
|
-
throwDefaultError({
|
|
1649
|
+
return throwDefaultError({
|
|
1915
1650
|
output,
|
|
1916
1651
|
parsedBody,
|
|
1917
|
-
exceptionCtor: __BaseException,
|
|
1918
1652
|
errorCode,
|
|
1919
1653
|
});
|
|
1920
1654
|
};
|
|
@@ -1926,12 +1660,11 @@ export const de_ListAlertsCommand = async (output, context) => {
|
|
|
1926
1660
|
$metadata: deserializeMetadata(output),
|
|
1927
1661
|
});
|
|
1928
1662
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
}
|
|
1663
|
+
const doc = take(data, {
|
|
1664
|
+
Items: (_) => de___listOfAlert(_, context),
|
|
1665
|
+
NextToken: __expectString,
|
|
1666
|
+
});
|
|
1667
|
+
Object.assign(contents, doc);
|
|
1935
1668
|
return contents;
|
|
1936
1669
|
};
|
|
1937
1670
|
const de_ListAlertsCommandError = async (output, context) => {
|
|
@@ -1941,10 +1674,9 @@ const de_ListAlertsCommandError = async (output, context) => {
|
|
|
1941
1674
|
};
|
|
1942
1675
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1943
1676
|
const parsedBody = parsedOutput.body;
|
|
1944
|
-
throwDefaultError({
|
|
1677
|
+
return throwDefaultError({
|
|
1945
1678
|
output,
|
|
1946
1679
|
parsedBody,
|
|
1947
|
-
exceptionCtor: __BaseException,
|
|
1948
1680
|
errorCode,
|
|
1949
1681
|
});
|
|
1950
1682
|
};
|
|
@@ -1956,12 +1688,11 @@ export const de_ListChannelsCommand = async (output, context) => {
|
|
|
1956
1688
|
$metadata: deserializeMetadata(output),
|
|
1957
1689
|
});
|
|
1958
1690
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
}
|
|
1691
|
+
const doc = take(data, {
|
|
1692
|
+
Items: (_) => de___listOfChannel(_, context),
|
|
1693
|
+
NextToken: __expectString,
|
|
1694
|
+
});
|
|
1695
|
+
Object.assign(contents, doc);
|
|
1965
1696
|
return contents;
|
|
1966
1697
|
};
|
|
1967
1698
|
const de_ListChannelsCommandError = async (output, context) => {
|
|
@@ -1971,10 +1702,9 @@ const de_ListChannelsCommandError = async (output, context) => {
|
|
|
1971
1702
|
};
|
|
1972
1703
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
1704
|
const parsedBody = parsedOutput.body;
|
|
1974
|
-
throwDefaultError({
|
|
1705
|
+
return throwDefaultError({
|
|
1975
1706
|
output,
|
|
1976
1707
|
parsedBody,
|
|
1977
|
-
exceptionCtor: __BaseException,
|
|
1978
1708
|
errorCode,
|
|
1979
1709
|
});
|
|
1980
1710
|
};
|
|
@@ -1986,12 +1716,11 @@ export const de_ListLiveSourcesCommand = async (output, context) => {
|
|
|
1986
1716
|
$metadata: deserializeMetadata(output),
|
|
1987
1717
|
});
|
|
1988
1718
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
}
|
|
1719
|
+
const doc = take(data, {
|
|
1720
|
+
Items: (_) => de___listOfLiveSource(_, context),
|
|
1721
|
+
NextToken: __expectString,
|
|
1722
|
+
});
|
|
1723
|
+
Object.assign(contents, doc);
|
|
1995
1724
|
return contents;
|
|
1996
1725
|
};
|
|
1997
1726
|
const de_ListLiveSourcesCommandError = async (output, context) => {
|
|
@@ -2001,10 +1730,9 @@ const de_ListLiveSourcesCommandError = async (output, context) => {
|
|
|
2001
1730
|
};
|
|
2002
1731
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2003
1732
|
const parsedBody = parsedOutput.body;
|
|
2004
|
-
throwDefaultError({
|
|
1733
|
+
return throwDefaultError({
|
|
2005
1734
|
output,
|
|
2006
1735
|
parsedBody,
|
|
2007
|
-
exceptionCtor: __BaseException,
|
|
2008
1736
|
errorCode,
|
|
2009
1737
|
});
|
|
2010
1738
|
};
|
|
@@ -2016,12 +1744,11 @@ export const de_ListPlaybackConfigurationsCommand = async (output, context) => {
|
|
|
2016
1744
|
$metadata: deserializeMetadata(output),
|
|
2017
1745
|
});
|
|
2018
1746
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
}
|
|
1747
|
+
const doc = take(data, {
|
|
1748
|
+
Items: (_) => de___listOfPlaybackConfiguration(_, context),
|
|
1749
|
+
NextToken: __expectString,
|
|
1750
|
+
});
|
|
1751
|
+
Object.assign(contents, doc);
|
|
2025
1752
|
return contents;
|
|
2026
1753
|
};
|
|
2027
1754
|
const de_ListPlaybackConfigurationsCommandError = async (output, context) => {
|
|
@@ -2031,10 +1758,9 @@ const de_ListPlaybackConfigurationsCommandError = async (output, context) => {
|
|
|
2031
1758
|
};
|
|
2032
1759
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2033
1760
|
const parsedBody = parsedOutput.body;
|
|
2034
|
-
throwDefaultError({
|
|
1761
|
+
return throwDefaultError({
|
|
2035
1762
|
output,
|
|
2036
1763
|
parsedBody,
|
|
2037
|
-
exceptionCtor: __BaseException,
|
|
2038
1764
|
errorCode,
|
|
2039
1765
|
});
|
|
2040
1766
|
};
|
|
@@ -2046,12 +1772,11 @@ export const de_ListPrefetchSchedulesCommand = async (output, context) => {
|
|
|
2046
1772
|
$metadata: deserializeMetadata(output),
|
|
2047
1773
|
});
|
|
2048
1774
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
}
|
|
1775
|
+
const doc = take(data, {
|
|
1776
|
+
Items: (_) => de___listOfPrefetchSchedule(_, context),
|
|
1777
|
+
NextToken: __expectString,
|
|
1778
|
+
});
|
|
1779
|
+
Object.assign(contents, doc);
|
|
2055
1780
|
return contents;
|
|
2056
1781
|
};
|
|
2057
1782
|
const de_ListPrefetchSchedulesCommandError = async (output, context) => {
|
|
@@ -2061,10 +1786,9 @@ const de_ListPrefetchSchedulesCommandError = async (output, context) => {
|
|
|
2061
1786
|
};
|
|
2062
1787
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2063
1788
|
const parsedBody = parsedOutput.body;
|
|
2064
|
-
throwDefaultError({
|
|
1789
|
+
return throwDefaultError({
|
|
2065
1790
|
output,
|
|
2066
1791
|
parsedBody,
|
|
2067
|
-
exceptionCtor: __BaseException,
|
|
2068
1792
|
errorCode,
|
|
2069
1793
|
});
|
|
2070
1794
|
};
|
|
@@ -2076,12 +1800,11 @@ export const de_ListSourceLocationsCommand = async (output, context) => {
|
|
|
2076
1800
|
$metadata: deserializeMetadata(output),
|
|
2077
1801
|
});
|
|
2078
1802
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
}
|
|
1803
|
+
const doc = take(data, {
|
|
1804
|
+
Items: (_) => de___listOfSourceLocation(_, context),
|
|
1805
|
+
NextToken: __expectString,
|
|
1806
|
+
});
|
|
1807
|
+
Object.assign(contents, doc);
|
|
2085
1808
|
return contents;
|
|
2086
1809
|
};
|
|
2087
1810
|
const de_ListSourceLocationsCommandError = async (output, context) => {
|
|
@@ -2091,10 +1814,9 @@ const de_ListSourceLocationsCommandError = async (output, context) => {
|
|
|
2091
1814
|
};
|
|
2092
1815
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2093
1816
|
const parsedBody = parsedOutput.body;
|
|
2094
|
-
throwDefaultError({
|
|
1817
|
+
return throwDefaultError({
|
|
2095
1818
|
output,
|
|
2096
1819
|
parsedBody,
|
|
2097
|
-
exceptionCtor: __BaseException,
|
|
2098
1820
|
errorCode,
|
|
2099
1821
|
});
|
|
2100
1822
|
};
|
|
@@ -2106,9 +1828,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2106
1828
|
$metadata: deserializeMetadata(output),
|
|
2107
1829
|
});
|
|
2108
1830
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
}
|
|
1831
|
+
const doc = take(data, {
|
|
1832
|
+
Tags: [, _json, `tags`],
|
|
1833
|
+
});
|
|
1834
|
+
Object.assign(contents, doc);
|
|
2112
1835
|
return contents;
|
|
2113
1836
|
};
|
|
2114
1837
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -2123,10 +1846,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
2123
1846
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2124
1847
|
default:
|
|
2125
1848
|
const parsedBody = parsedOutput.body;
|
|
2126
|
-
throwDefaultError({
|
|
1849
|
+
return throwDefaultError({
|
|
2127
1850
|
output,
|
|
2128
1851
|
parsedBody,
|
|
2129
|
-
exceptionCtor: __BaseException,
|
|
2130
1852
|
errorCode,
|
|
2131
1853
|
});
|
|
2132
1854
|
}
|
|
@@ -2139,12 +1861,11 @@ export const de_ListVodSourcesCommand = async (output, context) => {
|
|
|
2139
1861
|
$metadata: deserializeMetadata(output),
|
|
2140
1862
|
});
|
|
2141
1863
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
}
|
|
1864
|
+
const doc = take(data, {
|
|
1865
|
+
Items: (_) => de___listOfVodSource(_, context),
|
|
1866
|
+
NextToken: __expectString,
|
|
1867
|
+
});
|
|
1868
|
+
Object.assign(contents, doc);
|
|
2148
1869
|
return contents;
|
|
2149
1870
|
};
|
|
2150
1871
|
const de_ListVodSourcesCommandError = async (output, context) => {
|
|
@@ -2154,10 +1875,9 @@ const de_ListVodSourcesCommandError = async (output, context) => {
|
|
|
2154
1875
|
};
|
|
2155
1876
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2156
1877
|
const parsedBody = parsedOutput.body;
|
|
2157
|
-
throwDefaultError({
|
|
1878
|
+
return throwDefaultError({
|
|
2158
1879
|
output,
|
|
2159
1880
|
parsedBody,
|
|
2160
|
-
exceptionCtor: __BaseException,
|
|
2161
1881
|
errorCode,
|
|
2162
1882
|
});
|
|
2163
1883
|
};
|
|
@@ -2178,10 +1898,9 @@ const de_PutChannelPolicyCommandError = async (output, context) => {
|
|
|
2178
1898
|
};
|
|
2179
1899
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
1900
|
const parsedBody = parsedOutput.body;
|
|
2181
|
-
throwDefaultError({
|
|
1901
|
+
return throwDefaultError({
|
|
2182
1902
|
output,
|
|
2183
1903
|
parsedBody,
|
|
2184
|
-
exceptionCtor: __BaseException,
|
|
2185
1904
|
errorCode,
|
|
2186
1905
|
});
|
|
2187
1906
|
};
|
|
@@ -2193,63 +1912,28 @@ export const de_PutPlaybackConfigurationCommand = async (output, context) => {
|
|
|
2193
1912
|
$metadata: deserializeMetadata(output),
|
|
2194
1913
|
});
|
|
2195
1914
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
contents.LivePreRollConfiguration = de_LivePreRollConfiguration(data.LivePreRollConfiguration, context);
|
|
2219
|
-
}
|
|
2220
|
-
if (data.LogConfiguration != null) {
|
|
2221
|
-
contents.LogConfiguration = de_LogConfiguration(data.LogConfiguration, context);
|
|
2222
|
-
}
|
|
2223
|
-
if (data.ManifestProcessingRules != null) {
|
|
2224
|
-
contents.ManifestProcessingRules = de_ManifestProcessingRules(data.ManifestProcessingRules, context);
|
|
2225
|
-
}
|
|
2226
|
-
if (data.Name != null) {
|
|
2227
|
-
contents.Name = __expectString(data.Name);
|
|
2228
|
-
}
|
|
2229
|
-
if (data.PersonalizationThresholdSeconds != null) {
|
|
2230
|
-
contents.PersonalizationThresholdSeconds = __expectInt32(data.PersonalizationThresholdSeconds);
|
|
2231
|
-
}
|
|
2232
|
-
if (data.PlaybackConfigurationArn != null) {
|
|
2233
|
-
contents.PlaybackConfigurationArn = __expectString(data.PlaybackConfigurationArn);
|
|
2234
|
-
}
|
|
2235
|
-
if (data.PlaybackEndpointPrefix != null) {
|
|
2236
|
-
contents.PlaybackEndpointPrefix = __expectString(data.PlaybackEndpointPrefix);
|
|
2237
|
-
}
|
|
2238
|
-
if (data.SessionInitializationEndpointPrefix != null) {
|
|
2239
|
-
contents.SessionInitializationEndpointPrefix = __expectString(data.SessionInitializationEndpointPrefix);
|
|
2240
|
-
}
|
|
2241
|
-
if (data.SlateAdUrl != null) {
|
|
2242
|
-
contents.SlateAdUrl = __expectString(data.SlateAdUrl);
|
|
2243
|
-
}
|
|
2244
|
-
if (data.tags != null) {
|
|
2245
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
2246
|
-
}
|
|
2247
|
-
if (data.TranscodeProfileName != null) {
|
|
2248
|
-
contents.TranscodeProfileName = __expectString(data.TranscodeProfileName);
|
|
2249
|
-
}
|
|
2250
|
-
if (data.VideoContentSourceUrl != null) {
|
|
2251
|
-
contents.VideoContentSourceUrl = __expectString(data.VideoContentSourceUrl);
|
|
2252
|
-
}
|
|
1915
|
+
const doc = take(data, {
|
|
1916
|
+
AdDecisionServerUrl: __expectString,
|
|
1917
|
+
AvailSuppression: _json,
|
|
1918
|
+
Bumper: _json,
|
|
1919
|
+
CdnConfiguration: _json,
|
|
1920
|
+
ConfigurationAliases: _json,
|
|
1921
|
+
DashConfiguration: _json,
|
|
1922
|
+
HlsConfiguration: _json,
|
|
1923
|
+
LivePreRollConfiguration: _json,
|
|
1924
|
+
LogConfiguration: _json,
|
|
1925
|
+
ManifestProcessingRules: _json,
|
|
1926
|
+
Name: __expectString,
|
|
1927
|
+
PersonalizationThresholdSeconds: __expectInt32,
|
|
1928
|
+
PlaybackConfigurationArn: __expectString,
|
|
1929
|
+
PlaybackEndpointPrefix: __expectString,
|
|
1930
|
+
SessionInitializationEndpointPrefix: __expectString,
|
|
1931
|
+
SlateAdUrl: __expectString,
|
|
1932
|
+
Tags: [, _json, `tags`],
|
|
1933
|
+
TranscodeProfileName: __expectString,
|
|
1934
|
+
VideoContentSourceUrl: __expectString,
|
|
1935
|
+
});
|
|
1936
|
+
Object.assign(contents, doc);
|
|
2253
1937
|
return contents;
|
|
2254
1938
|
};
|
|
2255
1939
|
const de_PutPlaybackConfigurationCommandError = async (output, context) => {
|
|
@@ -2259,10 +1943,9 @@ const de_PutPlaybackConfigurationCommandError = async (output, context) => {
|
|
|
2259
1943
|
};
|
|
2260
1944
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2261
1945
|
const parsedBody = parsedOutput.body;
|
|
2262
|
-
throwDefaultError({
|
|
1946
|
+
return throwDefaultError({
|
|
2263
1947
|
output,
|
|
2264
1948
|
parsedBody,
|
|
2265
|
-
exceptionCtor: __BaseException,
|
|
2266
1949
|
errorCode,
|
|
2267
1950
|
});
|
|
2268
1951
|
};
|
|
@@ -2283,10 +1966,9 @@ const de_StartChannelCommandError = async (output, context) => {
|
|
|
2283
1966
|
};
|
|
2284
1967
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2285
1968
|
const parsedBody = parsedOutput.body;
|
|
2286
|
-
throwDefaultError({
|
|
1969
|
+
return throwDefaultError({
|
|
2287
1970
|
output,
|
|
2288
1971
|
parsedBody,
|
|
2289
|
-
exceptionCtor: __BaseException,
|
|
2290
1972
|
errorCode,
|
|
2291
1973
|
});
|
|
2292
1974
|
};
|
|
@@ -2307,10 +1989,9 @@ const de_StopChannelCommandError = async (output, context) => {
|
|
|
2307
1989
|
};
|
|
2308
1990
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2309
1991
|
const parsedBody = parsedOutput.body;
|
|
2310
|
-
throwDefaultError({
|
|
1992
|
+
return throwDefaultError({
|
|
2311
1993
|
output,
|
|
2312
1994
|
parsedBody,
|
|
2313
|
-
exceptionCtor: __BaseException,
|
|
2314
1995
|
errorCode,
|
|
2315
1996
|
});
|
|
2316
1997
|
};
|
|
@@ -2336,10 +2017,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2336
2017
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2337
2018
|
default:
|
|
2338
2019
|
const parsedBody = parsedOutput.body;
|
|
2339
|
-
throwDefaultError({
|
|
2020
|
+
return throwDefaultError({
|
|
2340
2021
|
output,
|
|
2341
2022
|
parsedBody,
|
|
2342
|
-
exceptionCtor: __BaseException,
|
|
2343
2023
|
errorCode,
|
|
2344
2024
|
});
|
|
2345
2025
|
}
|
|
@@ -2366,10 +2046,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2366
2046
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2367
2047
|
default:
|
|
2368
2048
|
const parsedBody = parsedOutput.body;
|
|
2369
|
-
throwDefaultError({
|
|
2049
|
+
return throwDefaultError({
|
|
2370
2050
|
output,
|
|
2371
2051
|
parsedBody,
|
|
2372
|
-
exceptionCtor: __BaseException,
|
|
2373
2052
|
errorCode,
|
|
2374
2053
|
});
|
|
2375
2054
|
}
|
|
@@ -2382,36 +2061,19 @@ export const de_UpdateChannelCommand = async (output, context) => {
|
|
|
2382
2061
|
$metadata: deserializeMetadata(output),
|
|
2383
2062
|
});
|
|
2384
2063
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
}
|
|
2397
|
-
|
|
2398
|
-
contents.FillerSlate = de_SlateSource(data.FillerSlate, context);
|
|
2399
|
-
}
|
|
2400
|
-
if (data.LastModifiedTime != null) {
|
|
2401
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
2402
|
-
}
|
|
2403
|
-
if (data.Outputs != null) {
|
|
2404
|
-
contents.Outputs = de_ResponseOutputs(data.Outputs, context);
|
|
2405
|
-
}
|
|
2406
|
-
if (data.PlaybackMode != null) {
|
|
2407
|
-
contents.PlaybackMode = __expectString(data.PlaybackMode);
|
|
2408
|
-
}
|
|
2409
|
-
if (data.tags != null) {
|
|
2410
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
2411
|
-
}
|
|
2412
|
-
if (data.Tier != null) {
|
|
2413
|
-
contents.Tier = __expectString(data.Tier);
|
|
2414
|
-
}
|
|
2064
|
+
const doc = take(data, {
|
|
2065
|
+
Arn: __expectString,
|
|
2066
|
+
ChannelName: __expectString,
|
|
2067
|
+
ChannelState: __expectString,
|
|
2068
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2069
|
+
FillerSlate: _json,
|
|
2070
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2071
|
+
Outputs: _json,
|
|
2072
|
+
PlaybackMode: __expectString,
|
|
2073
|
+
Tags: [, _json, `tags`],
|
|
2074
|
+
Tier: __expectString,
|
|
2075
|
+
});
|
|
2076
|
+
Object.assign(contents, doc);
|
|
2415
2077
|
return contents;
|
|
2416
2078
|
};
|
|
2417
2079
|
const de_UpdateChannelCommandError = async (output, context) => {
|
|
@@ -2421,10 +2083,9 @@ const de_UpdateChannelCommandError = async (output, context) => {
|
|
|
2421
2083
|
};
|
|
2422
2084
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2423
2085
|
const parsedBody = parsedOutput.body;
|
|
2424
|
-
throwDefaultError({
|
|
2086
|
+
return throwDefaultError({
|
|
2425
2087
|
output,
|
|
2426
2088
|
parsedBody,
|
|
2427
|
-
exceptionCtor: __BaseException,
|
|
2428
2089
|
errorCode,
|
|
2429
2090
|
});
|
|
2430
2091
|
};
|
|
@@ -2436,27 +2097,16 @@ export const de_UpdateLiveSourceCommand = async (output, context) => {
|
|
|
2436
2097
|
$metadata: deserializeMetadata(output),
|
|
2437
2098
|
});
|
|
2438
2099
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
}
|
|
2448
|
-
|
|
2449
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
2450
|
-
}
|
|
2451
|
-
if (data.LiveSourceName != null) {
|
|
2452
|
-
contents.LiveSourceName = __expectString(data.LiveSourceName);
|
|
2453
|
-
}
|
|
2454
|
-
if (data.SourceLocationName != null) {
|
|
2455
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
2456
|
-
}
|
|
2457
|
-
if (data.tags != null) {
|
|
2458
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
2459
|
-
}
|
|
2100
|
+
const doc = take(data, {
|
|
2101
|
+
Arn: __expectString,
|
|
2102
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2103
|
+
HttpPackageConfigurations: _json,
|
|
2104
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2105
|
+
LiveSourceName: __expectString,
|
|
2106
|
+
SourceLocationName: __expectString,
|
|
2107
|
+
Tags: [, _json, `tags`],
|
|
2108
|
+
});
|
|
2109
|
+
Object.assign(contents, doc);
|
|
2460
2110
|
return contents;
|
|
2461
2111
|
};
|
|
2462
2112
|
const de_UpdateLiveSourceCommandError = async (output, context) => {
|
|
@@ -2466,10 +2116,9 @@ const de_UpdateLiveSourceCommandError = async (output, context) => {
|
|
|
2466
2116
|
};
|
|
2467
2117
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2468
2118
|
const parsedBody = parsedOutput.body;
|
|
2469
|
-
throwDefaultError({
|
|
2119
|
+
return throwDefaultError({
|
|
2470
2120
|
output,
|
|
2471
2121
|
parsedBody,
|
|
2472
|
-
exceptionCtor: __BaseException,
|
|
2473
2122
|
errorCode,
|
|
2474
2123
|
});
|
|
2475
2124
|
};
|
|
@@ -2481,39 +2130,20 @@ export const de_UpdateProgramCommand = async (output, context) => {
|
|
|
2481
2130
|
$metadata: deserializeMetadata(output),
|
|
2482
2131
|
});
|
|
2483
2132
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
}
|
|
2499
|
-
if (data.DurationMillis != null) {
|
|
2500
|
-
contents.DurationMillis = __expectLong(data.DurationMillis);
|
|
2501
|
-
}
|
|
2502
|
-
if (data.LiveSourceName != null) {
|
|
2503
|
-
contents.LiveSourceName = __expectString(data.LiveSourceName);
|
|
2504
|
-
}
|
|
2505
|
-
if (data.ProgramName != null) {
|
|
2506
|
-
contents.ProgramName = __expectString(data.ProgramName);
|
|
2507
|
-
}
|
|
2508
|
-
if (data.ScheduledStartTime != null) {
|
|
2509
|
-
contents.ScheduledStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.ScheduledStartTime)));
|
|
2510
|
-
}
|
|
2511
|
-
if (data.SourceLocationName != null) {
|
|
2512
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
2513
|
-
}
|
|
2514
|
-
if (data.VodSourceName != null) {
|
|
2515
|
-
contents.VodSourceName = __expectString(data.VodSourceName);
|
|
2516
|
-
}
|
|
2133
|
+
const doc = take(data, {
|
|
2134
|
+
AdBreaks: _json,
|
|
2135
|
+
Arn: __expectString,
|
|
2136
|
+
ChannelName: __expectString,
|
|
2137
|
+
ClipRange: _json,
|
|
2138
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2139
|
+
DurationMillis: __expectLong,
|
|
2140
|
+
LiveSourceName: __expectString,
|
|
2141
|
+
ProgramName: __expectString,
|
|
2142
|
+
ScheduledStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2143
|
+
SourceLocationName: __expectString,
|
|
2144
|
+
VodSourceName: __expectString,
|
|
2145
|
+
});
|
|
2146
|
+
Object.assign(contents, doc);
|
|
2517
2147
|
return contents;
|
|
2518
2148
|
};
|
|
2519
2149
|
const de_UpdateProgramCommandError = async (output, context) => {
|
|
@@ -2523,10 +2153,9 @@ const de_UpdateProgramCommandError = async (output, context) => {
|
|
|
2523
2153
|
};
|
|
2524
2154
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2525
2155
|
const parsedBody = parsedOutput.body;
|
|
2526
|
-
throwDefaultError({
|
|
2156
|
+
return throwDefaultError({
|
|
2527
2157
|
output,
|
|
2528
2158
|
parsedBody,
|
|
2529
|
-
exceptionCtor: __BaseException,
|
|
2530
2159
|
errorCode,
|
|
2531
2160
|
});
|
|
2532
2161
|
};
|
|
@@ -2538,33 +2167,18 @@ export const de_UpdateSourceLocationCommand = async (output, context) => {
|
|
|
2538
2167
|
$metadata: deserializeMetadata(output),
|
|
2539
2168
|
});
|
|
2540
2169
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
if (data.HttpConfiguration != null) {
|
|
2554
|
-
contents.HttpConfiguration = de_HttpConfiguration(data.HttpConfiguration, context);
|
|
2555
|
-
}
|
|
2556
|
-
if (data.LastModifiedTime != null) {
|
|
2557
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
2558
|
-
}
|
|
2559
|
-
if (data.SegmentDeliveryConfigurations != null) {
|
|
2560
|
-
contents.SegmentDeliveryConfigurations = de___listOfSegmentDeliveryConfiguration(data.SegmentDeliveryConfigurations, context);
|
|
2561
|
-
}
|
|
2562
|
-
if (data.SourceLocationName != null) {
|
|
2563
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
2564
|
-
}
|
|
2565
|
-
if (data.tags != null) {
|
|
2566
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
2567
|
-
}
|
|
2170
|
+
const doc = take(data, {
|
|
2171
|
+
AccessConfiguration: _json,
|
|
2172
|
+
Arn: __expectString,
|
|
2173
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2174
|
+
DefaultSegmentDeliveryConfiguration: _json,
|
|
2175
|
+
HttpConfiguration: _json,
|
|
2176
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2177
|
+
SegmentDeliveryConfigurations: _json,
|
|
2178
|
+
SourceLocationName: __expectString,
|
|
2179
|
+
Tags: [, _json, `tags`],
|
|
2180
|
+
});
|
|
2181
|
+
Object.assign(contents, doc);
|
|
2568
2182
|
return contents;
|
|
2569
2183
|
};
|
|
2570
2184
|
const de_UpdateSourceLocationCommandError = async (output, context) => {
|
|
@@ -2574,10 +2188,9 @@ const de_UpdateSourceLocationCommandError = async (output, context) => {
|
|
|
2574
2188
|
};
|
|
2575
2189
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2576
2190
|
const parsedBody = parsedOutput.body;
|
|
2577
|
-
throwDefaultError({
|
|
2191
|
+
return throwDefaultError({
|
|
2578
2192
|
output,
|
|
2579
2193
|
parsedBody,
|
|
2580
|
-
exceptionCtor: __BaseException,
|
|
2581
2194
|
errorCode,
|
|
2582
2195
|
});
|
|
2583
2196
|
};
|
|
@@ -2589,27 +2202,16 @@ export const de_UpdateVodSourceCommand = async (output, context) => {
|
|
|
2589
2202
|
$metadata: deserializeMetadata(output),
|
|
2590
2203
|
});
|
|
2591
2204
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
}
|
|
2601
|
-
|
|
2602
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
2603
|
-
}
|
|
2604
|
-
if (data.SourceLocationName != null) {
|
|
2605
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
2606
|
-
}
|
|
2607
|
-
if (data.tags != null) {
|
|
2608
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
2609
|
-
}
|
|
2610
|
-
if (data.VodSourceName != null) {
|
|
2611
|
-
contents.VodSourceName = __expectString(data.VodSourceName);
|
|
2612
|
-
}
|
|
2205
|
+
const doc = take(data, {
|
|
2206
|
+
Arn: __expectString,
|
|
2207
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2208
|
+
HttpPackageConfigurations: _json,
|
|
2209
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2210
|
+
SourceLocationName: __expectString,
|
|
2211
|
+
Tags: [, _json, `tags`],
|
|
2212
|
+
VodSourceName: __expectString,
|
|
2213
|
+
});
|
|
2214
|
+
Object.assign(contents, doc);
|
|
2613
2215
|
return contents;
|
|
2614
2216
|
};
|
|
2615
2217
|
const de_UpdateVodSourceCommandError = async (output, context) => {
|
|
@@ -2619,351 +2221,52 @@ const de_UpdateVodSourceCommandError = async (output, context) => {
|
|
|
2619
2221
|
};
|
|
2620
2222
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2621
2223
|
const parsedBody = parsedOutput.body;
|
|
2622
|
-
throwDefaultError({
|
|
2224
|
+
return throwDefaultError({
|
|
2623
2225
|
output,
|
|
2624
2226
|
parsedBody,
|
|
2625
|
-
exceptionCtor: __BaseException,
|
|
2626
2227
|
errorCode,
|
|
2627
2228
|
});
|
|
2628
2229
|
};
|
|
2629
|
-
const
|
|
2230
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2630
2231
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2631
2232
|
const contents = map({});
|
|
2632
2233
|
const data = parsedOutput.body;
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
}
|
|
2234
|
+
const doc = take(data, {
|
|
2235
|
+
Message: __expectString,
|
|
2236
|
+
});
|
|
2237
|
+
Object.assign(contents, doc);
|
|
2636
2238
|
const exception = new BadRequestException({
|
|
2637
2239
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2638
2240
|
...contents,
|
|
2639
2241
|
});
|
|
2640
2242
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2641
2243
|
};
|
|
2642
|
-
const se___listOfAdBreak = (input, context) => {
|
|
2643
|
-
return input
|
|
2644
|
-
.filter((e) => e != null)
|
|
2645
|
-
.map((entry) => {
|
|
2646
|
-
return se_AdBreak(entry, context);
|
|
2647
|
-
});
|
|
2648
|
-
};
|
|
2649
|
-
const se___listOfAvailMatchingCriteria = (input, context) => {
|
|
2650
|
-
return input
|
|
2651
|
-
.filter((e) => e != null)
|
|
2652
|
-
.map((entry) => {
|
|
2653
|
-
return se_AvailMatchingCriteria(entry, context);
|
|
2654
|
-
});
|
|
2655
|
-
};
|
|
2656
|
-
const se___listOfSegmentDeliveryConfiguration = (input, context) => {
|
|
2657
|
-
return input
|
|
2658
|
-
.filter((e) => e != null)
|
|
2659
|
-
.map((entry) => {
|
|
2660
|
-
return se_SegmentDeliveryConfiguration(entry, context);
|
|
2661
|
-
});
|
|
2662
|
-
};
|
|
2663
|
-
const se___mapOf__string = (input, context) => {
|
|
2664
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2665
|
-
if (value === null) {
|
|
2666
|
-
return acc;
|
|
2667
|
-
}
|
|
2668
|
-
acc[key] = value;
|
|
2669
|
-
return acc;
|
|
2670
|
-
}, {});
|
|
2671
|
-
};
|
|
2672
|
-
const se_AccessConfiguration = (input, context) => {
|
|
2673
|
-
return {
|
|
2674
|
-
...(input.AccessType != null && { AccessType: input.AccessType }),
|
|
2675
|
-
...(input.SecretsManagerAccessTokenConfiguration != null && {
|
|
2676
|
-
SecretsManagerAccessTokenConfiguration: se_SecretsManagerAccessTokenConfiguration(input.SecretsManagerAccessTokenConfiguration, context),
|
|
2677
|
-
}),
|
|
2678
|
-
};
|
|
2679
|
-
};
|
|
2680
|
-
const se_AdBreak = (input, context) => {
|
|
2681
|
-
return {
|
|
2682
|
-
...(input.MessageType != null && { MessageType: input.MessageType }),
|
|
2683
|
-
...(input.OffsetMillis != null && { OffsetMillis: input.OffsetMillis }),
|
|
2684
|
-
...(input.Slate != null && { Slate: se_SlateSource(input.Slate, context) }),
|
|
2685
|
-
...(input.SpliceInsertMessage != null && {
|
|
2686
|
-
SpliceInsertMessage: se_SpliceInsertMessage(input.SpliceInsertMessage, context),
|
|
2687
|
-
}),
|
|
2688
|
-
...(input.TimeSignalMessage != null && {
|
|
2689
|
-
TimeSignalMessage: se_TimeSignalMessage(input.TimeSignalMessage, context),
|
|
2690
|
-
}),
|
|
2691
|
-
};
|
|
2692
|
-
};
|
|
2693
|
-
const se_AdMarkerPassthrough = (input, context) => {
|
|
2694
|
-
return {
|
|
2695
|
-
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
2696
|
-
};
|
|
2697
|
-
};
|
|
2698
|
-
const se_AvailMatchingCriteria = (input, context) => {
|
|
2699
|
-
return {
|
|
2700
|
-
...(input.DynamicVariable != null && { DynamicVariable: input.DynamicVariable }),
|
|
2701
|
-
...(input.Operator != null && { Operator: input.Operator }),
|
|
2702
|
-
};
|
|
2703
|
-
};
|
|
2704
|
-
const se_AvailSuppression = (input, context) => {
|
|
2705
|
-
return {
|
|
2706
|
-
...(input.Mode != null && { Mode: input.Mode }),
|
|
2707
|
-
...(input.Value != null && { Value: input.Value }),
|
|
2708
|
-
};
|
|
2709
|
-
};
|
|
2710
|
-
const se_Bumper = (input, context) => {
|
|
2711
|
-
return {
|
|
2712
|
-
...(input.EndUrl != null && { EndUrl: input.EndUrl }),
|
|
2713
|
-
...(input.StartUrl != null && { StartUrl: input.StartUrl }),
|
|
2714
|
-
};
|
|
2715
|
-
};
|
|
2716
|
-
const se_CdnConfiguration = (input, context) => {
|
|
2717
|
-
return {
|
|
2718
|
-
...(input.AdSegmentUrlPrefix != null && { AdSegmentUrlPrefix: input.AdSegmentUrlPrefix }),
|
|
2719
|
-
...(input.ContentSegmentUrlPrefix != null && { ContentSegmentUrlPrefix: input.ContentSegmentUrlPrefix }),
|
|
2720
|
-
};
|
|
2721
|
-
};
|
|
2722
|
-
const se_ClipRange = (input, context) => {
|
|
2723
|
-
return {
|
|
2724
|
-
...(input.EndOffsetMillis != null && { EndOffsetMillis: input.EndOffsetMillis }),
|
|
2725
|
-
};
|
|
2726
|
-
};
|
|
2727
|
-
const se_ConfigurationAliasesRequest = (input, context) => {
|
|
2728
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2729
|
-
if (value === null) {
|
|
2730
|
-
return acc;
|
|
2731
|
-
}
|
|
2732
|
-
acc[key] = se___mapOf__string(value, context);
|
|
2733
|
-
return acc;
|
|
2734
|
-
}, {});
|
|
2735
|
-
};
|
|
2736
|
-
const se_DashConfigurationForPut = (input, context) => {
|
|
2737
|
-
return {
|
|
2738
|
-
...(input.MpdLocation != null && { MpdLocation: input.MpdLocation }),
|
|
2739
|
-
...(input.OriginManifestType != null && { OriginManifestType: input.OriginManifestType }),
|
|
2740
|
-
};
|
|
2741
|
-
};
|
|
2742
|
-
const se_DashPlaylistSettings = (input, context) => {
|
|
2743
|
-
return {
|
|
2744
|
-
...(input.ManifestWindowSeconds != null && { ManifestWindowSeconds: input.ManifestWindowSeconds }),
|
|
2745
|
-
...(input.MinBufferTimeSeconds != null && { MinBufferTimeSeconds: input.MinBufferTimeSeconds }),
|
|
2746
|
-
...(input.MinUpdatePeriodSeconds != null && { MinUpdatePeriodSeconds: input.MinUpdatePeriodSeconds }),
|
|
2747
|
-
...(input.SuggestedPresentationDelaySeconds != null && {
|
|
2748
|
-
SuggestedPresentationDelaySeconds: input.SuggestedPresentationDelaySeconds,
|
|
2749
|
-
}),
|
|
2750
|
-
};
|
|
2751
|
-
};
|
|
2752
|
-
const se_DefaultSegmentDeliveryConfiguration = (input, context) => {
|
|
2753
|
-
return {
|
|
2754
|
-
...(input.BaseUrl != null && { BaseUrl: input.BaseUrl }),
|
|
2755
|
-
};
|
|
2756
|
-
};
|
|
2757
|
-
const se_HlsPlaylistSettings = (input, context) => {
|
|
2758
|
-
return {
|
|
2759
|
-
...(input.ManifestWindowSeconds != null && { ManifestWindowSeconds: input.ManifestWindowSeconds }),
|
|
2760
|
-
};
|
|
2761
|
-
};
|
|
2762
|
-
const se_HttpConfiguration = (input, context) => {
|
|
2763
|
-
return {
|
|
2764
|
-
...(input.BaseUrl != null && { BaseUrl: input.BaseUrl }),
|
|
2765
|
-
};
|
|
2766
|
-
};
|
|
2767
|
-
const se_HttpPackageConfiguration = (input, context) => {
|
|
2768
|
-
return {
|
|
2769
|
-
...(input.Path != null && { Path: input.Path }),
|
|
2770
|
-
...(input.SourceGroup != null && { SourceGroup: input.SourceGroup }),
|
|
2771
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2772
|
-
};
|
|
2773
|
-
};
|
|
2774
|
-
const se_HttpPackageConfigurations = (input, context) => {
|
|
2775
|
-
return input
|
|
2776
|
-
.filter((e) => e != null)
|
|
2777
|
-
.map((entry) => {
|
|
2778
|
-
return se_HttpPackageConfiguration(entry, context);
|
|
2779
|
-
});
|
|
2780
|
-
};
|
|
2781
|
-
const se_LivePreRollConfiguration = (input, context) => {
|
|
2782
|
-
return {
|
|
2783
|
-
...(input.AdDecisionServerUrl != null && { AdDecisionServerUrl: input.AdDecisionServerUrl }),
|
|
2784
|
-
...(input.MaxDurationSeconds != null && { MaxDurationSeconds: input.MaxDurationSeconds }),
|
|
2785
|
-
};
|
|
2786
|
-
};
|
|
2787
|
-
const se_LogTypes = (input, context) => {
|
|
2788
|
-
return input
|
|
2789
|
-
.filter((e) => e != null)
|
|
2790
|
-
.map((entry) => {
|
|
2791
|
-
return entry;
|
|
2792
|
-
});
|
|
2793
|
-
};
|
|
2794
|
-
const se_ManifestProcessingRules = (input, context) => {
|
|
2795
|
-
return {
|
|
2796
|
-
...(input.AdMarkerPassthrough != null && {
|
|
2797
|
-
AdMarkerPassthrough: se_AdMarkerPassthrough(input.AdMarkerPassthrough, context),
|
|
2798
|
-
}),
|
|
2799
|
-
};
|
|
2800
|
-
};
|
|
2801
2244
|
const se_PrefetchConsumption = (input, context) => {
|
|
2802
|
-
return {
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
2807
|
-
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2808
|
-
};
|
|
2809
|
-
};
|
|
2810
|
-
const se_PrefetchRetrieval = (input, context) => {
|
|
2811
|
-
return {
|
|
2812
|
-
...(input.DynamicVariables != null && { DynamicVariables: se___mapOf__string(input.DynamicVariables, context) }),
|
|
2813
|
-
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
2814
|
-
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2815
|
-
};
|
|
2816
|
-
};
|
|
2817
|
-
const se_RequestOutputItem = (input, context) => {
|
|
2818
|
-
return {
|
|
2819
|
-
...(input.DashPlaylistSettings != null && {
|
|
2820
|
-
DashPlaylistSettings: se_DashPlaylistSettings(input.DashPlaylistSettings, context),
|
|
2821
|
-
}),
|
|
2822
|
-
...(input.HlsPlaylistSettings != null && {
|
|
2823
|
-
HlsPlaylistSettings: se_HlsPlaylistSettings(input.HlsPlaylistSettings, context),
|
|
2824
|
-
}),
|
|
2825
|
-
...(input.ManifestName != null && { ManifestName: input.ManifestName }),
|
|
2826
|
-
...(input.SourceGroup != null && { SourceGroup: input.SourceGroup }),
|
|
2827
|
-
};
|
|
2828
|
-
};
|
|
2829
|
-
const se_RequestOutputs = (input, context) => {
|
|
2830
|
-
return input
|
|
2831
|
-
.filter((e) => e != null)
|
|
2832
|
-
.map((entry) => {
|
|
2833
|
-
return se_RequestOutputItem(entry, context);
|
|
2245
|
+
return take(input, {
|
|
2246
|
+
AvailMatchingCriteria: _json,
|
|
2247
|
+
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
2248
|
+
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
2834
2249
|
});
|
|
2835
2250
|
};
|
|
2836
|
-
const
|
|
2837
|
-
return {
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
};
|
|
2842
|
-
const se_SecretsManagerAccessTokenConfiguration = (input, context) => {
|
|
2843
|
-
return {
|
|
2844
|
-
...(input.HeaderName != null && { HeaderName: input.HeaderName }),
|
|
2845
|
-
...(input.SecretArn != null && { SecretArn: input.SecretArn }),
|
|
2846
|
-
...(input.SecretStringKey != null && { SecretStringKey: input.SecretStringKey }),
|
|
2847
|
-
};
|
|
2848
|
-
};
|
|
2849
|
-
const se_SegmentationDescriptor = (input, context) => {
|
|
2850
|
-
return {
|
|
2851
|
-
...(input.SegmentNum != null && { SegmentNum: input.SegmentNum }),
|
|
2852
|
-
...(input.SegmentationEventId != null && { SegmentationEventId: input.SegmentationEventId }),
|
|
2853
|
-
...(input.SegmentationTypeId != null && { SegmentationTypeId: input.SegmentationTypeId }),
|
|
2854
|
-
...(input.SegmentationUpid != null && { SegmentationUpid: input.SegmentationUpid }),
|
|
2855
|
-
...(input.SegmentationUpidType != null && { SegmentationUpidType: input.SegmentationUpidType }),
|
|
2856
|
-
...(input.SegmentsExpected != null && { SegmentsExpected: input.SegmentsExpected }),
|
|
2857
|
-
...(input.SubSegmentNum != null && { SubSegmentNum: input.SubSegmentNum }),
|
|
2858
|
-
...(input.SubSegmentsExpected != null && { SubSegmentsExpected: input.SubSegmentsExpected }),
|
|
2859
|
-
};
|
|
2860
|
-
};
|
|
2861
|
-
const se_SegmentationDescriptorList = (input, context) => {
|
|
2862
|
-
return input
|
|
2863
|
-
.filter((e) => e != null)
|
|
2864
|
-
.map((entry) => {
|
|
2865
|
-
return se_SegmentationDescriptor(entry, context);
|
|
2866
|
-
});
|
|
2867
|
-
};
|
|
2868
|
-
const se_SegmentDeliveryConfiguration = (input, context) => {
|
|
2869
|
-
return {
|
|
2870
|
-
...(input.BaseUrl != null && { BaseUrl: input.BaseUrl }),
|
|
2871
|
-
...(input.Name != null && { Name: input.Name }),
|
|
2872
|
-
};
|
|
2873
|
-
};
|
|
2874
|
-
const se_SlateSource = (input, context) => {
|
|
2875
|
-
return {
|
|
2876
|
-
...(input.SourceLocationName != null && { SourceLocationName: input.SourceLocationName }),
|
|
2877
|
-
...(input.VodSourceName != null && { VodSourceName: input.VodSourceName }),
|
|
2878
|
-
};
|
|
2879
|
-
};
|
|
2880
|
-
const se_SpliceInsertMessage = (input, context) => {
|
|
2881
|
-
return {
|
|
2882
|
-
...(input.AvailNum != null && { AvailNum: input.AvailNum }),
|
|
2883
|
-
...(input.AvailsExpected != null && { AvailsExpected: input.AvailsExpected }),
|
|
2884
|
-
...(input.SpliceEventId != null && { SpliceEventId: input.SpliceEventId }),
|
|
2885
|
-
...(input.UniqueProgramId != null && { UniqueProgramId: input.UniqueProgramId }),
|
|
2886
|
-
};
|
|
2887
|
-
};
|
|
2888
|
-
const se_TimeSignalMessage = (input, context) => {
|
|
2889
|
-
return {
|
|
2890
|
-
...(input.SegmentationDescriptors != null && {
|
|
2891
|
-
SegmentationDescriptors: se_SegmentationDescriptorList(input.SegmentationDescriptors, context),
|
|
2892
|
-
}),
|
|
2893
|
-
};
|
|
2894
|
-
};
|
|
2895
|
-
const se_Transition = (input, context) => {
|
|
2896
|
-
return {
|
|
2897
|
-
...(input.DurationMillis != null && { DurationMillis: input.DurationMillis }),
|
|
2898
|
-
...(input.RelativePosition != null && { RelativePosition: input.RelativePosition }),
|
|
2899
|
-
...(input.RelativeProgram != null && { RelativeProgram: input.RelativeProgram }),
|
|
2900
|
-
...(input.ScheduledStartTimeMillis != null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis }),
|
|
2901
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2902
|
-
};
|
|
2903
|
-
};
|
|
2904
|
-
const se_UpdateProgramScheduleConfiguration = (input, context) => {
|
|
2905
|
-
return {
|
|
2906
|
-
...(input.ClipRange != null && { ClipRange: se_ClipRange(input.ClipRange, context) }),
|
|
2907
|
-
...(input.Transition != null && { Transition: se_UpdateProgramTransition(input.Transition, context) }),
|
|
2908
|
-
};
|
|
2909
|
-
};
|
|
2910
|
-
const se_UpdateProgramTransition = (input, context) => {
|
|
2911
|
-
return {
|
|
2912
|
-
...(input.DurationMillis != null && { DurationMillis: input.DurationMillis }),
|
|
2913
|
-
...(input.ScheduledStartTimeMillis != null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis }),
|
|
2914
|
-
};
|
|
2915
|
-
};
|
|
2916
|
-
const de___listOf__string = (output, context) => {
|
|
2917
|
-
const retVal = (output || [])
|
|
2918
|
-
.filter((e) => e != null)
|
|
2919
|
-
.map((entry) => {
|
|
2920
|
-
if (entry === null) {
|
|
2921
|
-
return null;
|
|
2922
|
-
}
|
|
2923
|
-
return __expectString(entry);
|
|
2924
|
-
});
|
|
2925
|
-
return retVal;
|
|
2926
|
-
};
|
|
2927
|
-
const de___listOfAdBreak = (output, context) => {
|
|
2928
|
-
const retVal = (output || [])
|
|
2929
|
-
.filter((e) => e != null)
|
|
2930
|
-
.map((entry) => {
|
|
2931
|
-
if (entry === null) {
|
|
2932
|
-
return null;
|
|
2933
|
-
}
|
|
2934
|
-
return de_AdBreak(entry, context);
|
|
2251
|
+
const se_PrefetchRetrieval = (input, context) => {
|
|
2252
|
+
return take(input, {
|
|
2253
|
+
DynamicVariables: _json,
|
|
2254
|
+
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
2255
|
+
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
2935
2256
|
});
|
|
2936
|
-
return retVal;
|
|
2937
2257
|
};
|
|
2938
2258
|
const de___listOfAlert = (output, context) => {
|
|
2939
2259
|
const retVal = (output || [])
|
|
2940
2260
|
.filter((e) => e != null)
|
|
2941
2261
|
.map((entry) => {
|
|
2942
|
-
if (entry === null) {
|
|
2943
|
-
return null;
|
|
2944
|
-
}
|
|
2945
2262
|
return de_Alert(entry, context);
|
|
2946
2263
|
});
|
|
2947
2264
|
return retVal;
|
|
2948
2265
|
};
|
|
2949
|
-
const de___listOfAvailMatchingCriteria = (output, context) => {
|
|
2950
|
-
const retVal = (output || [])
|
|
2951
|
-
.filter((e) => e != null)
|
|
2952
|
-
.map((entry) => {
|
|
2953
|
-
if (entry === null) {
|
|
2954
|
-
return null;
|
|
2955
|
-
}
|
|
2956
|
-
return de_AvailMatchingCriteria(entry, context);
|
|
2957
|
-
});
|
|
2958
|
-
return retVal;
|
|
2959
|
-
};
|
|
2960
2266
|
const de___listOfChannel = (output, context) => {
|
|
2961
2267
|
const retVal = (output || [])
|
|
2962
2268
|
.filter((e) => e != null)
|
|
2963
2269
|
.map((entry) => {
|
|
2964
|
-
if (entry === null) {
|
|
2965
|
-
return null;
|
|
2966
|
-
}
|
|
2967
2270
|
return de_Channel(entry, context);
|
|
2968
2271
|
});
|
|
2969
2272
|
return retVal;
|
|
@@ -2972,9 +2275,6 @@ const de___listOfLiveSource = (output, context) => {
|
|
|
2972
2275
|
const retVal = (output || [])
|
|
2973
2276
|
.filter((e) => e != null)
|
|
2974
2277
|
.map((entry) => {
|
|
2975
|
-
if (entry === null) {
|
|
2976
|
-
return null;
|
|
2977
|
-
}
|
|
2978
2278
|
return de_LiveSource(entry, context);
|
|
2979
2279
|
});
|
|
2980
2280
|
return retVal;
|
|
@@ -2983,9 +2283,6 @@ const de___listOfPlaybackConfiguration = (output, context) => {
|
|
|
2983
2283
|
const retVal = (output || [])
|
|
2984
2284
|
.filter((e) => e != null)
|
|
2985
2285
|
.map((entry) => {
|
|
2986
|
-
if (entry === null) {
|
|
2987
|
-
return null;
|
|
2988
|
-
}
|
|
2989
2286
|
return de_PlaybackConfiguration(entry, context);
|
|
2990
2287
|
});
|
|
2991
2288
|
return retVal;
|
|
@@ -2994,9 +2291,6 @@ const de___listOfPrefetchSchedule = (output, context) => {
|
|
|
2994
2291
|
const retVal = (output || [])
|
|
2995
2292
|
.filter((e) => e != null)
|
|
2996
2293
|
.map((entry) => {
|
|
2997
|
-
if (entry === null) {
|
|
2998
|
-
return null;
|
|
2999
|
-
}
|
|
3000
2294
|
return de_PrefetchSchedule(entry, context);
|
|
3001
2295
|
});
|
|
3002
2296
|
return retVal;
|
|
@@ -3005,9 +2299,6 @@ const de___listOfScheduleAdBreak = (output, context) => {
|
|
|
3005
2299
|
const retVal = (output || [])
|
|
3006
2300
|
.filter((e) => e != null)
|
|
3007
2301
|
.map((entry) => {
|
|
3008
|
-
if (entry === null) {
|
|
3009
|
-
return null;
|
|
3010
|
-
}
|
|
3011
2302
|
return de_ScheduleAdBreak(entry, context);
|
|
3012
2303
|
});
|
|
3013
2304
|
return retVal;
|
|
@@ -3016,31 +2307,14 @@ const de___listOfScheduleEntry = (output, context) => {
|
|
|
3016
2307
|
const retVal = (output || [])
|
|
3017
2308
|
.filter((e) => e != null)
|
|
3018
2309
|
.map((entry) => {
|
|
3019
|
-
if (entry === null) {
|
|
3020
|
-
return null;
|
|
3021
|
-
}
|
|
3022
2310
|
return de_ScheduleEntry(entry, context);
|
|
3023
2311
|
});
|
|
3024
2312
|
return retVal;
|
|
3025
2313
|
};
|
|
3026
|
-
const de___listOfSegmentDeliveryConfiguration = (output, context) => {
|
|
3027
|
-
const retVal = (output || [])
|
|
3028
|
-
.filter((e) => e != null)
|
|
3029
|
-
.map((entry) => {
|
|
3030
|
-
if (entry === null) {
|
|
3031
|
-
return null;
|
|
3032
|
-
}
|
|
3033
|
-
return de_SegmentDeliveryConfiguration(entry, context);
|
|
3034
|
-
});
|
|
3035
|
-
return retVal;
|
|
3036
|
-
};
|
|
3037
2314
|
const de___listOfSourceLocation = (output, context) => {
|
|
3038
2315
|
const retVal = (output || [])
|
|
3039
2316
|
.filter((e) => e != null)
|
|
3040
2317
|
.map((entry) => {
|
|
3041
|
-
if (entry === null) {
|
|
3042
|
-
return null;
|
|
3043
|
-
}
|
|
3044
2318
|
return de_SourceLocation(entry, context);
|
|
3045
2319
|
});
|
|
3046
2320
|
return retVal;
|
|
@@ -3049,409 +2323,137 @@ const de___listOfVodSource = (output, context) => {
|
|
|
3049
2323
|
const retVal = (output || [])
|
|
3050
2324
|
.filter((e) => e != null)
|
|
3051
2325
|
.map((entry) => {
|
|
3052
|
-
if (entry === null) {
|
|
3053
|
-
return null;
|
|
3054
|
-
}
|
|
3055
2326
|
return de_VodSource(entry, context);
|
|
3056
2327
|
});
|
|
3057
2328
|
return retVal;
|
|
3058
2329
|
};
|
|
3059
|
-
const de___mapOf__string = (output, context) => {
|
|
3060
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3061
|
-
if (value === null) {
|
|
3062
|
-
return acc;
|
|
3063
|
-
}
|
|
3064
|
-
acc[key] = __expectString(value);
|
|
3065
|
-
return acc;
|
|
3066
|
-
}, {});
|
|
3067
|
-
};
|
|
3068
|
-
const de_AccessConfiguration = (output, context) => {
|
|
3069
|
-
return {
|
|
3070
|
-
AccessType: __expectString(output.AccessType),
|
|
3071
|
-
SecretsManagerAccessTokenConfiguration: output.SecretsManagerAccessTokenConfiguration != null
|
|
3072
|
-
? de_SecretsManagerAccessTokenConfiguration(output.SecretsManagerAccessTokenConfiguration, context)
|
|
3073
|
-
: undefined,
|
|
3074
|
-
};
|
|
3075
|
-
};
|
|
3076
|
-
const de_AdBreak = (output, context) => {
|
|
3077
|
-
return {
|
|
3078
|
-
MessageType: __expectString(output.MessageType),
|
|
3079
|
-
OffsetMillis: __expectLong(output.OffsetMillis),
|
|
3080
|
-
Slate: output.Slate != null ? de_SlateSource(output.Slate, context) : undefined,
|
|
3081
|
-
SpliceInsertMessage: output.SpliceInsertMessage != null ? de_SpliceInsertMessage(output.SpliceInsertMessage, context) : undefined,
|
|
3082
|
-
TimeSignalMessage: output.TimeSignalMessage != null ? de_TimeSignalMessage(output.TimeSignalMessage, context) : undefined,
|
|
3083
|
-
};
|
|
3084
|
-
};
|
|
3085
|
-
const de_AdMarkerPassthrough = (output, context) => {
|
|
3086
|
-
return {
|
|
3087
|
-
Enabled: __expectBoolean(output.Enabled),
|
|
3088
|
-
};
|
|
3089
|
-
};
|
|
3090
2330
|
const de_Alert = (output, context) => {
|
|
3091
|
-
return {
|
|
3092
|
-
AlertCode: __expectString
|
|
3093
|
-
AlertMessage: __expectString
|
|
3094
|
-
LastModifiedTime:
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
ResourceArn: __expectString(output.ResourceArn),
|
|
3099
|
-
};
|
|
3100
|
-
};
|
|
3101
|
-
const de_AvailMatchingCriteria = (output, context) => {
|
|
3102
|
-
return {
|
|
3103
|
-
DynamicVariable: __expectString(output.DynamicVariable),
|
|
3104
|
-
Operator: __expectString(output.Operator),
|
|
3105
|
-
};
|
|
3106
|
-
};
|
|
3107
|
-
const de_AvailSuppression = (output, context) => {
|
|
3108
|
-
return {
|
|
3109
|
-
Mode: __expectString(output.Mode),
|
|
3110
|
-
Value: __expectString(output.Value),
|
|
3111
|
-
};
|
|
3112
|
-
};
|
|
3113
|
-
const de_Bumper = (output, context) => {
|
|
3114
|
-
return {
|
|
3115
|
-
EndUrl: __expectString(output.EndUrl),
|
|
3116
|
-
StartUrl: __expectString(output.StartUrl),
|
|
3117
|
-
};
|
|
3118
|
-
};
|
|
3119
|
-
const de_CdnConfiguration = (output, context) => {
|
|
3120
|
-
return {
|
|
3121
|
-
AdSegmentUrlPrefix: __expectString(output.AdSegmentUrlPrefix),
|
|
3122
|
-
ContentSegmentUrlPrefix: __expectString(output.ContentSegmentUrlPrefix),
|
|
3123
|
-
};
|
|
2331
|
+
return take(output, {
|
|
2332
|
+
AlertCode: __expectString,
|
|
2333
|
+
AlertMessage: __expectString,
|
|
2334
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2335
|
+
RelatedResourceArns: _json,
|
|
2336
|
+
ResourceArn: __expectString,
|
|
2337
|
+
});
|
|
3124
2338
|
};
|
|
3125
2339
|
const de_Channel = (output, context) => {
|
|
3126
|
-
return {
|
|
3127
|
-
Arn: __expectString
|
|
3128
|
-
ChannelName: __expectString
|
|
3129
|
-
ChannelState: __expectString
|
|
3130
|
-
CreationTime:
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
Outputs: output.Outputs != null ? de_ResponseOutputs(output.Outputs, context) : undefined,
|
|
3139
|
-
PlaybackMode: __expectString(output.PlaybackMode),
|
|
3140
|
-
Tags: output.tags != null ? de___mapOf__string(output.tags, context) : undefined,
|
|
3141
|
-
Tier: __expectString(output.Tier),
|
|
3142
|
-
};
|
|
3143
|
-
};
|
|
3144
|
-
const de_ClipRange = (output, context) => {
|
|
3145
|
-
return {
|
|
3146
|
-
EndOffsetMillis: __expectLong(output.EndOffsetMillis),
|
|
3147
|
-
};
|
|
3148
|
-
};
|
|
3149
|
-
const de_ConfigurationAliasesResponse = (output, context) => {
|
|
3150
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3151
|
-
if (value === null) {
|
|
3152
|
-
return acc;
|
|
3153
|
-
}
|
|
3154
|
-
acc[key] = de___mapOf__string(value, context);
|
|
3155
|
-
return acc;
|
|
3156
|
-
}, {});
|
|
3157
|
-
};
|
|
3158
|
-
const de_DashConfiguration = (output, context) => {
|
|
3159
|
-
return {
|
|
3160
|
-
ManifestEndpointPrefix: __expectString(output.ManifestEndpointPrefix),
|
|
3161
|
-
MpdLocation: __expectString(output.MpdLocation),
|
|
3162
|
-
OriginManifestType: __expectString(output.OriginManifestType),
|
|
3163
|
-
};
|
|
3164
|
-
};
|
|
3165
|
-
const de_DashPlaylistSettings = (output, context) => {
|
|
3166
|
-
return {
|
|
3167
|
-
ManifestWindowSeconds: __expectInt32(output.ManifestWindowSeconds),
|
|
3168
|
-
MinBufferTimeSeconds: __expectInt32(output.MinBufferTimeSeconds),
|
|
3169
|
-
MinUpdatePeriodSeconds: __expectInt32(output.MinUpdatePeriodSeconds),
|
|
3170
|
-
SuggestedPresentationDelaySeconds: __expectInt32(output.SuggestedPresentationDelaySeconds),
|
|
3171
|
-
};
|
|
3172
|
-
};
|
|
3173
|
-
const de_DefaultSegmentDeliveryConfiguration = (output, context) => {
|
|
3174
|
-
return {
|
|
3175
|
-
BaseUrl: __expectString(output.BaseUrl),
|
|
3176
|
-
};
|
|
3177
|
-
};
|
|
3178
|
-
const de_HlsConfiguration = (output, context) => {
|
|
3179
|
-
return {
|
|
3180
|
-
ManifestEndpointPrefix: __expectString(output.ManifestEndpointPrefix),
|
|
3181
|
-
};
|
|
3182
|
-
};
|
|
3183
|
-
const de_HlsPlaylistSettings = (output, context) => {
|
|
3184
|
-
return {
|
|
3185
|
-
ManifestWindowSeconds: __expectInt32(output.ManifestWindowSeconds),
|
|
3186
|
-
};
|
|
3187
|
-
};
|
|
3188
|
-
const de_HttpConfiguration = (output, context) => {
|
|
3189
|
-
return {
|
|
3190
|
-
BaseUrl: __expectString(output.BaseUrl),
|
|
3191
|
-
};
|
|
3192
|
-
};
|
|
3193
|
-
const de_HttpPackageConfiguration = (output, context) => {
|
|
3194
|
-
return {
|
|
3195
|
-
Path: __expectString(output.Path),
|
|
3196
|
-
SourceGroup: __expectString(output.SourceGroup),
|
|
3197
|
-
Type: __expectString(output.Type),
|
|
3198
|
-
};
|
|
3199
|
-
};
|
|
3200
|
-
const de_HttpPackageConfigurations = (output, context) => {
|
|
3201
|
-
const retVal = (output || [])
|
|
3202
|
-
.filter((e) => e != null)
|
|
3203
|
-
.map((entry) => {
|
|
3204
|
-
if (entry === null) {
|
|
3205
|
-
return null;
|
|
3206
|
-
}
|
|
3207
|
-
return de_HttpPackageConfiguration(entry, context);
|
|
2340
|
+
return take(output, {
|
|
2341
|
+
Arn: __expectString,
|
|
2342
|
+
ChannelName: __expectString,
|
|
2343
|
+
ChannelState: __expectString,
|
|
2344
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2345
|
+
FillerSlate: _json,
|
|
2346
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2347
|
+
LogConfiguration: _json,
|
|
2348
|
+
Outputs: _json,
|
|
2349
|
+
PlaybackMode: __expectString,
|
|
2350
|
+
Tags: [, _json, `tags`],
|
|
2351
|
+
Tier: __expectString,
|
|
3208
2352
|
});
|
|
3209
|
-
return retVal;
|
|
3210
|
-
};
|
|
3211
|
-
const de_LivePreRollConfiguration = (output, context) => {
|
|
3212
|
-
return {
|
|
3213
|
-
AdDecisionServerUrl: __expectString(output.AdDecisionServerUrl),
|
|
3214
|
-
MaxDurationSeconds: __expectInt32(output.MaxDurationSeconds),
|
|
3215
|
-
};
|
|
3216
2353
|
};
|
|
3217
2354
|
const de_LiveSource = (output, context) => {
|
|
3218
|
-
return {
|
|
3219
|
-
Arn: __expectString
|
|
3220
|
-
CreationTime:
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
LastModifiedTime: output.LastModifiedTime != null
|
|
3227
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
3228
|
-
: undefined,
|
|
3229
|
-
LiveSourceName: __expectString(output.LiveSourceName),
|
|
3230
|
-
SourceLocationName: __expectString(output.SourceLocationName),
|
|
3231
|
-
Tags: output.tags != null ? de___mapOf__string(output.tags, context) : undefined,
|
|
3232
|
-
};
|
|
3233
|
-
};
|
|
3234
|
-
const de_LogConfiguration = (output, context) => {
|
|
3235
|
-
return {
|
|
3236
|
-
PercentEnabled: __expectInt32(output.PercentEnabled),
|
|
3237
|
-
};
|
|
3238
|
-
};
|
|
3239
|
-
const de_LogConfigurationForChannel = (output, context) => {
|
|
3240
|
-
return {
|
|
3241
|
-
LogTypes: output.LogTypes != null ? de_LogTypes(output.LogTypes, context) : undefined,
|
|
3242
|
-
};
|
|
3243
|
-
};
|
|
3244
|
-
const de_LogTypes = (output, context) => {
|
|
3245
|
-
const retVal = (output || [])
|
|
3246
|
-
.filter((e) => e != null)
|
|
3247
|
-
.map((entry) => {
|
|
3248
|
-
if (entry === null) {
|
|
3249
|
-
return null;
|
|
3250
|
-
}
|
|
3251
|
-
return __expectString(entry);
|
|
2355
|
+
return take(output, {
|
|
2356
|
+
Arn: __expectString,
|
|
2357
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2358
|
+
HttpPackageConfigurations: _json,
|
|
2359
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2360
|
+
LiveSourceName: __expectString,
|
|
2361
|
+
SourceLocationName: __expectString,
|
|
2362
|
+
Tags: [, _json, `tags`],
|
|
3252
2363
|
});
|
|
3253
|
-
return retVal;
|
|
3254
|
-
};
|
|
3255
|
-
const de_ManifestProcessingRules = (output, context) => {
|
|
3256
|
-
return {
|
|
3257
|
-
AdMarkerPassthrough: output.AdMarkerPassthrough != null ? de_AdMarkerPassthrough(output.AdMarkerPassthrough, context) : undefined,
|
|
3258
|
-
};
|
|
3259
2364
|
};
|
|
3260
2365
|
const de_PlaybackConfiguration = (output, context) => {
|
|
3261
|
-
return {
|
|
3262
|
-
AdDecisionServerUrl: __expectString
|
|
3263
|
-
AvailSuppression:
|
|
3264
|
-
Bumper:
|
|
3265
|
-
CdnConfiguration:
|
|
3266
|
-
ConfigurationAliases:
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
SessionInitializationEndpointPrefix: __expectString(output.SessionInitializationEndpointPrefix),
|
|
3283
|
-
SlateAdUrl: __expectString(output.SlateAdUrl),
|
|
3284
|
-
Tags: output.tags != null ? de___mapOf__string(output.tags, context) : undefined,
|
|
3285
|
-
TranscodeProfileName: __expectString(output.TranscodeProfileName),
|
|
3286
|
-
VideoContentSourceUrl: __expectString(output.VideoContentSourceUrl),
|
|
3287
|
-
};
|
|
2366
|
+
return take(output, {
|
|
2367
|
+
AdDecisionServerUrl: __expectString,
|
|
2368
|
+
AvailSuppression: _json,
|
|
2369
|
+
Bumper: _json,
|
|
2370
|
+
CdnConfiguration: _json,
|
|
2371
|
+
ConfigurationAliases: _json,
|
|
2372
|
+
DashConfiguration: _json,
|
|
2373
|
+
HlsConfiguration: _json,
|
|
2374
|
+
LivePreRollConfiguration: _json,
|
|
2375
|
+
LogConfiguration: _json,
|
|
2376
|
+
ManifestProcessingRules: _json,
|
|
2377
|
+
Name: __expectString,
|
|
2378
|
+
PersonalizationThresholdSeconds: __expectInt32,
|
|
2379
|
+
PlaybackConfigurationArn: __expectString,
|
|
2380
|
+
PlaybackEndpointPrefix: __expectString,
|
|
2381
|
+
SessionInitializationEndpointPrefix: __expectString,
|
|
2382
|
+
SlateAdUrl: __expectString,
|
|
2383
|
+
Tags: [, _json, `tags`],
|
|
2384
|
+
TranscodeProfileName: __expectString,
|
|
2385
|
+
VideoContentSourceUrl: __expectString,
|
|
2386
|
+
});
|
|
3288
2387
|
};
|
|
3289
2388
|
const de_PrefetchConsumption = (output, context) => {
|
|
3290
|
-
return {
|
|
3291
|
-
AvailMatchingCriteria:
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
3296
|
-
};
|
|
2389
|
+
return take(output, {
|
|
2390
|
+
AvailMatchingCriteria: _json,
|
|
2391
|
+
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2392
|
+
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2393
|
+
});
|
|
3297
2394
|
};
|
|
3298
2395
|
const de_PrefetchRetrieval = (output, context) => {
|
|
3299
|
-
return {
|
|
3300
|
-
DynamicVariables:
|
|
3301
|
-
EndTime:
|
|
3302
|
-
StartTime:
|
|
3303
|
-
};
|
|
2396
|
+
return take(output, {
|
|
2397
|
+
DynamicVariables: _json,
|
|
2398
|
+
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2399
|
+
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2400
|
+
});
|
|
3304
2401
|
};
|
|
3305
2402
|
const de_PrefetchSchedule = (output, context) => {
|
|
3306
|
-
return {
|
|
3307
|
-
Arn: __expectString
|
|
3308
|
-
Consumption:
|
|
3309
|
-
Name: __expectString
|
|
3310
|
-
PlaybackConfigurationName: __expectString
|
|
3311
|
-
Retrieval:
|
|
3312
|
-
StreamId: __expectString
|
|
3313
|
-
};
|
|
3314
|
-
};
|
|
3315
|
-
const de_ResponseOutputItem = (output, context) => {
|
|
3316
|
-
return {
|
|
3317
|
-
DashPlaylistSettings: output.DashPlaylistSettings != null ? de_DashPlaylistSettings(output.DashPlaylistSettings, context) : undefined,
|
|
3318
|
-
HlsPlaylistSettings: output.HlsPlaylistSettings != null ? de_HlsPlaylistSettings(output.HlsPlaylistSettings, context) : undefined,
|
|
3319
|
-
ManifestName: __expectString(output.ManifestName),
|
|
3320
|
-
PlaybackUrl: __expectString(output.PlaybackUrl),
|
|
3321
|
-
SourceGroup: __expectString(output.SourceGroup),
|
|
3322
|
-
};
|
|
3323
|
-
};
|
|
3324
|
-
const de_ResponseOutputs = (output, context) => {
|
|
3325
|
-
const retVal = (output || [])
|
|
3326
|
-
.filter((e) => e != null)
|
|
3327
|
-
.map((entry) => {
|
|
3328
|
-
if (entry === null) {
|
|
3329
|
-
return null;
|
|
3330
|
-
}
|
|
3331
|
-
return de_ResponseOutputItem(entry, context);
|
|
2403
|
+
return take(output, {
|
|
2404
|
+
Arn: __expectString,
|
|
2405
|
+
Consumption: (_) => de_PrefetchConsumption(_, context),
|
|
2406
|
+
Name: __expectString,
|
|
2407
|
+
PlaybackConfigurationName: __expectString,
|
|
2408
|
+
Retrieval: (_) => de_PrefetchRetrieval(_, context),
|
|
2409
|
+
StreamId: __expectString,
|
|
3332
2410
|
});
|
|
3333
|
-
return retVal;
|
|
3334
2411
|
};
|
|
3335
2412
|
const de_ScheduleAdBreak = (output, context) => {
|
|
3336
|
-
return {
|
|
3337
|
-
ApproximateDurationSeconds: __expectLong
|
|
3338
|
-
ApproximateStartTime:
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
VodSourceName: __expectString(output.VodSourceName),
|
|
3343
|
-
};
|
|
2413
|
+
return take(output, {
|
|
2414
|
+
ApproximateDurationSeconds: __expectLong,
|
|
2415
|
+
ApproximateStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2416
|
+
SourceLocationName: __expectString,
|
|
2417
|
+
VodSourceName: __expectString,
|
|
2418
|
+
});
|
|
3344
2419
|
};
|
|
3345
2420
|
const de_ScheduleEntry = (output, context) => {
|
|
3346
|
-
return {
|
|
3347
|
-
ApproximateDurationSeconds: __expectLong
|
|
3348
|
-
ApproximateStartTime:
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
SourceLocationName: __expectString(output.SourceLocationName),
|
|
3358
|
-
VodSourceName: __expectString(output.VodSourceName),
|
|
3359
|
-
};
|
|
3360
|
-
};
|
|
3361
|
-
const de_SecretsManagerAccessTokenConfiguration = (output, context) => {
|
|
3362
|
-
return {
|
|
3363
|
-
HeaderName: __expectString(output.HeaderName),
|
|
3364
|
-
SecretArn: __expectString(output.SecretArn),
|
|
3365
|
-
SecretStringKey: __expectString(output.SecretStringKey),
|
|
3366
|
-
};
|
|
3367
|
-
};
|
|
3368
|
-
const de_SegmentationDescriptor = (output, context) => {
|
|
3369
|
-
return {
|
|
3370
|
-
SegmentNum: __expectInt32(output.SegmentNum),
|
|
3371
|
-
SegmentationEventId: __expectInt32(output.SegmentationEventId),
|
|
3372
|
-
SegmentationTypeId: __expectInt32(output.SegmentationTypeId),
|
|
3373
|
-
SegmentationUpid: __expectString(output.SegmentationUpid),
|
|
3374
|
-
SegmentationUpidType: __expectInt32(output.SegmentationUpidType),
|
|
3375
|
-
SegmentsExpected: __expectInt32(output.SegmentsExpected),
|
|
3376
|
-
SubSegmentNum: __expectInt32(output.SubSegmentNum),
|
|
3377
|
-
SubSegmentsExpected: __expectInt32(output.SubSegmentsExpected),
|
|
3378
|
-
};
|
|
3379
|
-
};
|
|
3380
|
-
const de_SegmentationDescriptorList = (output, context) => {
|
|
3381
|
-
const retVal = (output || [])
|
|
3382
|
-
.filter((e) => e != null)
|
|
3383
|
-
.map((entry) => {
|
|
3384
|
-
if (entry === null) {
|
|
3385
|
-
return null;
|
|
3386
|
-
}
|
|
3387
|
-
return de_SegmentationDescriptor(entry, context);
|
|
2421
|
+
return take(output, {
|
|
2422
|
+
ApproximateDurationSeconds: __expectLong,
|
|
2423
|
+
ApproximateStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2424
|
+
Arn: __expectString,
|
|
2425
|
+
ChannelName: __expectString,
|
|
2426
|
+
LiveSourceName: __expectString,
|
|
2427
|
+
ProgramName: __expectString,
|
|
2428
|
+
ScheduleAdBreaks: (_) => de___listOfScheduleAdBreak(_, context),
|
|
2429
|
+
ScheduleEntryType: __expectString,
|
|
2430
|
+
SourceLocationName: __expectString,
|
|
2431
|
+
VodSourceName: __expectString,
|
|
3388
2432
|
});
|
|
3389
|
-
return retVal;
|
|
3390
|
-
};
|
|
3391
|
-
const de_SegmentDeliveryConfiguration = (output, context) => {
|
|
3392
|
-
return {
|
|
3393
|
-
BaseUrl: __expectString(output.BaseUrl),
|
|
3394
|
-
Name: __expectString(output.Name),
|
|
3395
|
-
};
|
|
3396
|
-
};
|
|
3397
|
-
const de_SlateSource = (output, context) => {
|
|
3398
|
-
return {
|
|
3399
|
-
SourceLocationName: __expectString(output.SourceLocationName),
|
|
3400
|
-
VodSourceName: __expectString(output.VodSourceName),
|
|
3401
|
-
};
|
|
3402
2433
|
};
|
|
3403
2434
|
const de_SourceLocation = (output, context) => {
|
|
3404
|
-
return {
|
|
3405
|
-
AccessConfiguration:
|
|
3406
|
-
Arn: __expectString
|
|
3407
|
-
CreationTime:
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
3416
|
-
: undefined,
|
|
3417
|
-
SegmentDeliveryConfigurations: output.SegmentDeliveryConfigurations != null
|
|
3418
|
-
? de___listOfSegmentDeliveryConfiguration(output.SegmentDeliveryConfigurations, context)
|
|
3419
|
-
: undefined,
|
|
3420
|
-
SourceLocationName: __expectString(output.SourceLocationName),
|
|
3421
|
-
Tags: output.tags != null ? de___mapOf__string(output.tags, context) : undefined,
|
|
3422
|
-
};
|
|
3423
|
-
};
|
|
3424
|
-
const de_SpliceInsertMessage = (output, context) => {
|
|
3425
|
-
return {
|
|
3426
|
-
AvailNum: __expectInt32(output.AvailNum),
|
|
3427
|
-
AvailsExpected: __expectInt32(output.AvailsExpected),
|
|
3428
|
-
SpliceEventId: __expectInt32(output.SpliceEventId),
|
|
3429
|
-
UniqueProgramId: __expectInt32(output.UniqueProgramId),
|
|
3430
|
-
};
|
|
3431
|
-
};
|
|
3432
|
-
const de_TimeSignalMessage = (output, context) => {
|
|
3433
|
-
return {
|
|
3434
|
-
SegmentationDescriptors: output.SegmentationDescriptors != null
|
|
3435
|
-
? de_SegmentationDescriptorList(output.SegmentationDescriptors, context)
|
|
3436
|
-
: undefined,
|
|
3437
|
-
};
|
|
2435
|
+
return take(output, {
|
|
2436
|
+
AccessConfiguration: _json,
|
|
2437
|
+
Arn: __expectString,
|
|
2438
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2439
|
+
DefaultSegmentDeliveryConfiguration: _json,
|
|
2440
|
+
HttpConfiguration: _json,
|
|
2441
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2442
|
+
SegmentDeliveryConfigurations: _json,
|
|
2443
|
+
SourceLocationName: __expectString,
|
|
2444
|
+
Tags: [, _json, `tags`],
|
|
2445
|
+
});
|
|
3438
2446
|
};
|
|
3439
2447
|
const de_VodSource = (output, context) => {
|
|
3440
|
-
return {
|
|
3441
|
-
Arn: __expectString
|
|
3442
|
-
CreationTime:
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
3450
|
-
: undefined,
|
|
3451
|
-
SourceLocationName: __expectString(output.SourceLocationName),
|
|
3452
|
-
Tags: output.tags != null ? de___mapOf__string(output.tags, context) : undefined,
|
|
3453
|
-
VodSourceName: __expectString(output.VodSourceName),
|
|
3454
|
-
};
|
|
2448
|
+
return take(output, {
|
|
2449
|
+
Arn: __expectString,
|
|
2450
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2451
|
+
HttpPackageConfigurations: _json,
|
|
2452
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2453
|
+
SourceLocationName: __expectString,
|
|
2454
|
+
Tags: [, _json, `tags`],
|
|
2455
|
+
VodSourceName: __expectString,
|
|
2456
|
+
});
|
|
3455
2457
|
};
|
|
3456
2458
|
const deserializeMetadata = (output) => ({
|
|
3457
2459
|
httpStatusCode: output.statusCode,
|