@aws-sdk/client-chime-sdk-media-pipelines 3.121.0 → 3.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-chime-sdk-media-pipelines
9
+
10
+
11
+
12
+
13
+
14
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-chime-sdk-media-pipelines
17
+
18
+
19
+
20
+
21
+
22
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/client-chime-sdk-media-pipelines
25
+
26
+
27
+
28
+
29
+
6
30
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
31
 
8
32
 
@@ -15,17 +15,15 @@ const serializeAws_restJson1CreateMediaCapturePipelineCommand = async (input, co
15
15
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-capture-pipelines";
16
16
  let body;
17
17
  body = JSON.stringify({
18
- ...(input.ChimeSdkMeetingConfiguration !== undefined &&
19
- input.ChimeSdkMeetingConfiguration !== null && {
18
+ ...(input.ChimeSdkMeetingConfiguration != null && {
20
19
  ChimeSdkMeetingConfiguration: serializeAws_restJson1ChimeSdkMeetingConfiguration(input.ChimeSdkMeetingConfiguration, context),
21
20
  }),
22
21
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
23
- ...(input.SinkArn !== undefined && input.SinkArn !== null && { SinkArn: input.SinkArn }),
24
- ...(input.SinkType !== undefined && input.SinkType !== null && { SinkType: input.SinkType }),
25
- ...(input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn }),
26
- ...(input.SourceType !== undefined && input.SourceType !== null && { SourceType: input.SourceType }),
27
- ...(input.Tags !== undefined &&
28
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
22
+ ...(input.SinkArn != null && { SinkArn: input.SinkArn }),
23
+ ...(input.SinkType != null && { SinkType: input.SinkType }),
24
+ ...(input.SourceArn != null && { SourceArn: input.SourceArn }),
25
+ ...(input.SourceType != null && { SourceType: input.SourceType }),
26
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
29
27
  });
30
28
  return new protocol_http_1.HttpRequest({
31
29
  protocol,
@@ -144,9 +142,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
144
142
  };
145
143
  let body;
146
144
  body = JSON.stringify({
147
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
148
- ...(input.Tags !== undefined &&
149
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
145
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
146
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
150
147
  });
151
148
  return new protocol_http_1.HttpRequest({
152
149
  protocol,
@@ -171,9 +168,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
171
168
  };
172
169
  let body;
173
170
  body = JSON.stringify({
174
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
175
- ...(input.TagKeys !== undefined &&
176
- input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
171
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
172
+ ...(input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
177
173
  });
178
174
  return new protocol_http_1.HttpRequest({
179
175
  protocol,
@@ -717,14 +713,11 @@ const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parse
717
713
  };
718
714
  const serializeAws_restJson1ArtifactsConfiguration = (input, context) => {
719
715
  return {
720
- ...(input.Audio !== undefined &&
721
- input.Audio !== null && { Audio: serializeAws_restJson1AudioArtifactsConfiguration(input.Audio, context) }),
722
- ...(input.Content !== undefined &&
723
- input.Content !== null && {
716
+ ...(input.Audio != null && { Audio: serializeAws_restJson1AudioArtifactsConfiguration(input.Audio, context) }),
717
+ ...(input.Content != null && {
724
718
  Content: serializeAws_restJson1ContentArtifactsConfiguration(input.Content, context),
725
719
  }),
726
- ...(input.Video !== undefined &&
727
- input.Video !== null && { Video: serializeAws_restJson1VideoArtifactsConfiguration(input.Video, context) }),
720
+ ...(input.Video != null && { Video: serializeAws_restJson1VideoArtifactsConfiguration(input.Video, context) }),
728
721
  };
729
722
  };
730
723
  const serializeAws_restJson1AttendeeIdList = (input, context) => {
@@ -739,25 +732,23 @@ const serializeAws_restJson1AttendeeIdList = (input, context) => {
739
732
  };
740
733
  const serializeAws_restJson1AudioArtifactsConfiguration = (input, context) => {
741
734
  return {
742
- ...(input.MuxType !== undefined && input.MuxType !== null && { MuxType: input.MuxType }),
735
+ ...(input.MuxType != null && { MuxType: input.MuxType }),
743
736
  };
744
737
  };
745
738
  const serializeAws_restJson1ChimeSdkMeetingConfiguration = (input, context) => {
746
739
  return {
747
- ...(input.ArtifactsConfiguration !== undefined &&
748
- input.ArtifactsConfiguration !== null && {
740
+ ...(input.ArtifactsConfiguration != null && {
749
741
  ArtifactsConfiguration: serializeAws_restJson1ArtifactsConfiguration(input.ArtifactsConfiguration, context),
750
742
  }),
751
- ...(input.SourceConfiguration !== undefined &&
752
- input.SourceConfiguration !== null && {
743
+ ...(input.SourceConfiguration != null && {
753
744
  SourceConfiguration: serializeAws_restJson1SourceConfiguration(input.SourceConfiguration, context),
754
745
  }),
755
746
  };
756
747
  };
757
748
  const serializeAws_restJson1ContentArtifactsConfiguration = (input, context) => {
758
749
  return {
759
- ...(input.MuxType !== undefined && input.MuxType !== null && { MuxType: input.MuxType }),
760
- ...(input.State !== undefined && input.State !== null && { State: input.State }),
750
+ ...(input.MuxType != null && { MuxType: input.MuxType }),
751
+ ...(input.State != null && { State: input.State }),
761
752
  };
762
753
  };
763
754
  const serializeAws_restJson1ExternalUserIdList = (input, context) => {
@@ -772,26 +763,23 @@ const serializeAws_restJson1ExternalUserIdList = (input, context) => {
772
763
  };
773
764
  const serializeAws_restJson1SelectedVideoStreams = (input, context) => {
774
765
  return {
775
- ...(input.AttendeeIds !== undefined &&
776
- input.AttendeeIds !== null && { AttendeeIds: serializeAws_restJson1AttendeeIdList(input.AttendeeIds, context) }),
777
- ...(input.ExternalUserIds !== undefined &&
778
- input.ExternalUserIds !== null && {
766
+ ...(input.AttendeeIds != null && { AttendeeIds: serializeAws_restJson1AttendeeIdList(input.AttendeeIds, context) }),
767
+ ...(input.ExternalUserIds != null && {
779
768
  ExternalUserIds: serializeAws_restJson1ExternalUserIdList(input.ExternalUserIds, context),
780
769
  }),
781
770
  };
782
771
  };
783
772
  const serializeAws_restJson1SourceConfiguration = (input, context) => {
784
773
  return {
785
- ...(input.SelectedVideoStreams !== undefined &&
786
- input.SelectedVideoStreams !== null && {
774
+ ...(input.SelectedVideoStreams != null && {
787
775
  SelectedVideoStreams: serializeAws_restJson1SelectedVideoStreams(input.SelectedVideoStreams, context),
788
776
  }),
789
777
  };
790
778
  };
791
779
  const serializeAws_restJson1Tag = (input, context) => {
792
780
  return {
793
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
794
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
781
+ ...(input.Key != null && { Key: input.Key }),
782
+ ...(input.Value != null && { Value: input.Value }),
795
783
  };
796
784
  };
797
785
  const serializeAws_restJson1TagKeyList = (input, context) => {
@@ -816,21 +804,17 @@ const serializeAws_restJson1TagList = (input, context) => {
816
804
  };
817
805
  const serializeAws_restJson1VideoArtifactsConfiguration = (input, context) => {
818
806
  return {
819
- ...(input.MuxType !== undefined && input.MuxType !== null && { MuxType: input.MuxType }),
820
- ...(input.State !== undefined && input.State !== null && { State: input.State }),
807
+ ...(input.MuxType != null && { MuxType: input.MuxType }),
808
+ ...(input.State != null && { State: input.State }),
821
809
  };
822
810
  };
823
811
  const deserializeAws_restJson1ArtifactsConfiguration = (output, context) => {
824
812
  return {
825
- Audio: output.Audio !== undefined && output.Audio !== null
826
- ? deserializeAws_restJson1AudioArtifactsConfiguration(output.Audio, context)
827
- : undefined,
828
- Content: output.Content !== undefined && output.Content !== null
813
+ Audio: output.Audio != null ? deserializeAws_restJson1AudioArtifactsConfiguration(output.Audio, context) : undefined,
814
+ Content: output.Content != null
829
815
  ? deserializeAws_restJson1ContentArtifactsConfiguration(output.Content, context)
830
816
  : undefined,
831
- Video: output.Video !== undefined && output.Video !== null
832
- ? deserializeAws_restJson1VideoArtifactsConfiguration(output.Video, context)
833
- : undefined,
817
+ Video: output.Video != null ? deserializeAws_restJson1VideoArtifactsConfiguration(output.Video, context) : undefined,
834
818
  };
835
819
  };
836
820
  const deserializeAws_restJson1AttendeeIdList = (output, context) => {
@@ -851,10 +835,10 @@ const deserializeAws_restJson1AudioArtifactsConfiguration = (output, context) =>
851
835
  };
852
836
  const deserializeAws_restJson1ChimeSdkMeetingConfiguration = (output, context) => {
853
837
  return {
854
- ArtifactsConfiguration: output.ArtifactsConfiguration !== undefined && output.ArtifactsConfiguration !== null
838
+ ArtifactsConfiguration: output.ArtifactsConfiguration != null
855
839
  ? deserializeAws_restJson1ArtifactsConfiguration(output.ArtifactsConfiguration, context)
856
840
  : undefined,
857
- SourceConfiguration: output.SourceConfiguration !== undefined && output.SourceConfiguration !== null
841
+ SourceConfiguration: output.SourceConfiguration != null
858
842
  ? deserializeAws_restJson1SourceConfiguration(output.SourceConfiguration, context)
859
843
  : undefined,
860
844
  };
@@ -878,12 +862,10 @@ const deserializeAws_restJson1ExternalUserIdList = (output, context) => {
878
862
  };
879
863
  const deserializeAws_restJson1MediaCapturePipeline = (output, context) => {
880
864
  return {
881
- ChimeSdkMeetingConfiguration: output.ChimeSdkMeetingConfiguration !== undefined && output.ChimeSdkMeetingConfiguration !== null
865
+ ChimeSdkMeetingConfiguration: output.ChimeSdkMeetingConfiguration != null
882
866
  ? deserializeAws_restJson1ChimeSdkMeetingConfiguration(output.ChimeSdkMeetingConfiguration, context)
883
867
  : undefined,
884
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
885
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp))
886
- : undefined,
868
+ CreatedTimestamp: output.CreatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp)) : undefined,
887
869
  MediaPipelineArn: (0, smithy_client_1.expectString)(output.MediaPipelineArn),
888
870
  MediaPipelineId: (0, smithy_client_1.expectString)(output.MediaPipelineId),
889
871
  SinkArn: (0, smithy_client_1.expectString)(output.SinkArn),
@@ -891,9 +873,7 @@ const deserializeAws_restJson1MediaCapturePipeline = (output, context) => {
891
873
  SourceArn: (0, smithy_client_1.expectString)(output.SourceArn),
892
874
  SourceType: (0, smithy_client_1.expectString)(output.SourceType),
893
875
  Status: (0, smithy_client_1.expectString)(output.Status),
894
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
895
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp))
896
- : undefined,
876
+ UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
897
877
  };
898
878
  };
899
879
  const deserializeAws_restJson1MediaCapturePipelineSummary = (output, context) => {
@@ -915,17 +895,15 @@ const deserializeAws_restJson1MediaCapturePipelineSummaryList = (output, context
915
895
  };
916
896
  const deserializeAws_restJson1SelectedVideoStreams = (output, context) => {
917
897
  return {
918
- AttendeeIds: output.AttendeeIds !== undefined && output.AttendeeIds !== null
919
- ? deserializeAws_restJson1AttendeeIdList(output.AttendeeIds, context)
920
- : undefined,
921
- ExternalUserIds: output.ExternalUserIds !== undefined && output.ExternalUserIds !== null
898
+ AttendeeIds: output.AttendeeIds != null ? deserializeAws_restJson1AttendeeIdList(output.AttendeeIds, context) : undefined,
899
+ ExternalUserIds: output.ExternalUserIds != null
922
900
  ? deserializeAws_restJson1ExternalUserIdList(output.ExternalUserIds, context)
923
901
  : undefined,
924
902
  };
925
903
  };
926
904
  const deserializeAws_restJson1SourceConfiguration = (output, context) => {
927
905
  return {
928
- SelectedVideoStreams: output.SelectedVideoStreams !== undefined && output.SelectedVideoStreams !== null
906
+ SelectedVideoStreams: output.SelectedVideoStreams != null
929
907
  ? deserializeAws_restJson1SelectedVideoStreams(output.SelectedVideoStreams, context)
930
908
  : undefined,
931
909
  };
@@ -984,6 +962,9 @@ const loadRestJsonErrorCode = (output, data) => {
984
962
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
985
963
  const sanitizeErrorCode = (rawValue) => {
986
964
  let cleanValue = rawValue;
965
+ if (typeof cleanValue === "number") {
966
+ cleanValue = cleanValue.toString();
967
+ }
987
968
  if (cleanValue.indexOf(":") >= 0) {
988
969
  cleanValue = cleanValue.split(":")[0];
989
970
  }
@@ -16,11 +16,9 @@ export var serializeAws_restJson1CreateMediaCapturePipelineCommand = function (i
16
16
  "content-type": "application/json",
17
17
  };
18
18
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sdk-media-capture-pipelines";
19
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ChimeSdkMeetingConfiguration !== undefined &&
20
- input.ChimeSdkMeetingConfiguration !== null && {
19
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ChimeSdkMeetingConfiguration != null && {
21
20
  ChimeSdkMeetingConfiguration: serializeAws_restJson1ChimeSdkMeetingConfiguration(input.ChimeSdkMeetingConfiguration, context),
22
- })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.SinkArn !== undefined && input.SinkArn !== null && { SinkArn: input.SinkArn })), (input.SinkType !== undefined && input.SinkType !== null && { SinkType: input.SinkType })), (input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn })), (input.SourceType !== undefined && input.SourceType !== null && { SourceType: input.SourceType })), (input.Tags !== undefined &&
23
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
21
+ })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.SinkArn != null && { SinkArn: input.SinkArn })), (input.SinkType != null && { SinkType: input.SinkType })), (input.SourceArn != null && { SourceArn: input.SourceArn })), (input.SourceType != null && { SourceType: input.SourceType })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
24
22
  return [2, new __HttpRequest({
25
23
  protocol: protocol,
26
24
  hostname: hostname,
@@ -157,8 +155,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
157
155
  query = {
158
156
  operation: "tag-resource",
159
157
  };
160
- body = JSON.stringify(__assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.Tags !== undefined &&
161
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
158
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
162
159
  return [2, new __HttpRequest({
163
160
  protocol: protocol,
164
161
  hostname: hostname,
@@ -186,8 +183,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
186
183
  query = {
187
184
  operation: "untag-resource",
188
185
  };
189
- body = JSON.stringify(__assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.TagKeys !== undefined &&
190
- input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
186
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
191
187
  return [2, new __HttpRequest({
192
188
  protocol: protocol,
193
189
  hostname: hostname,
@@ -899,12 +895,9 @@ var deserializeAws_restJson1UnauthorizedClientExceptionResponse = function (pars
899
895
  });
900
896
  }); };
901
897
  var serializeAws_restJson1ArtifactsConfiguration = function (input, context) {
902
- return __assign(__assign(__assign({}, (input.Audio !== undefined &&
903
- input.Audio !== null && { Audio: serializeAws_restJson1AudioArtifactsConfiguration(input.Audio, context) })), (input.Content !== undefined &&
904
- input.Content !== null && {
898
+ return __assign(__assign(__assign({}, (input.Audio != null && { Audio: serializeAws_restJson1AudioArtifactsConfiguration(input.Audio, context) })), (input.Content != null && {
905
899
  Content: serializeAws_restJson1ContentArtifactsConfiguration(input.Content, context),
906
- })), (input.Video !== undefined &&
907
- input.Video !== null && { Video: serializeAws_restJson1VideoArtifactsConfiguration(input.Video, context) }));
900
+ })), (input.Video != null && { Video: serializeAws_restJson1VideoArtifactsConfiguration(input.Video, context) }));
908
901
  };
909
902
  var serializeAws_restJson1AttendeeIdList = function (input, context) {
910
903
  return input
@@ -917,19 +910,17 @@ var serializeAws_restJson1AttendeeIdList = function (input, context) {
917
910
  });
918
911
  };
919
912
  var serializeAws_restJson1AudioArtifactsConfiguration = function (input, context) {
920
- return __assign({}, (input.MuxType !== undefined && input.MuxType !== null && { MuxType: input.MuxType }));
913
+ return __assign({}, (input.MuxType != null && { MuxType: input.MuxType }));
921
914
  };
922
915
  var serializeAws_restJson1ChimeSdkMeetingConfiguration = function (input, context) {
923
- return __assign(__assign({}, (input.ArtifactsConfiguration !== undefined &&
924
- input.ArtifactsConfiguration !== null && {
916
+ return __assign(__assign({}, (input.ArtifactsConfiguration != null && {
925
917
  ArtifactsConfiguration: serializeAws_restJson1ArtifactsConfiguration(input.ArtifactsConfiguration, context),
926
- })), (input.SourceConfiguration !== undefined &&
927
- input.SourceConfiguration !== null && {
918
+ })), (input.SourceConfiguration != null && {
928
919
  SourceConfiguration: serializeAws_restJson1SourceConfiguration(input.SourceConfiguration, context),
929
920
  }));
930
921
  };
931
922
  var serializeAws_restJson1ContentArtifactsConfiguration = function (input, context) {
932
- return __assign(__assign({}, (input.MuxType !== undefined && input.MuxType !== null && { MuxType: input.MuxType })), (input.State !== undefined && input.State !== null && { State: input.State }));
923
+ return __assign(__assign({}, (input.MuxType != null && { MuxType: input.MuxType })), (input.State != null && { State: input.State }));
933
924
  };
934
925
  var serializeAws_restJson1ExternalUserIdList = function (input, context) {
935
926
  return input
@@ -942,20 +933,17 @@ var serializeAws_restJson1ExternalUserIdList = function (input, context) {
942
933
  });
943
934
  };
944
935
  var serializeAws_restJson1SelectedVideoStreams = function (input, context) {
945
- return __assign(__assign({}, (input.AttendeeIds !== undefined &&
946
- input.AttendeeIds !== null && { AttendeeIds: serializeAws_restJson1AttendeeIdList(input.AttendeeIds, context) })), (input.ExternalUserIds !== undefined &&
947
- input.ExternalUserIds !== null && {
936
+ return __assign(__assign({}, (input.AttendeeIds != null && { AttendeeIds: serializeAws_restJson1AttendeeIdList(input.AttendeeIds, context) })), (input.ExternalUserIds != null && {
948
937
  ExternalUserIds: serializeAws_restJson1ExternalUserIdList(input.ExternalUserIds, context),
949
938
  }));
950
939
  };
951
940
  var serializeAws_restJson1SourceConfiguration = function (input, context) {
952
- return __assign({}, (input.SelectedVideoStreams !== undefined &&
953
- input.SelectedVideoStreams !== null && {
941
+ return __assign({}, (input.SelectedVideoStreams != null && {
954
942
  SelectedVideoStreams: serializeAws_restJson1SelectedVideoStreams(input.SelectedVideoStreams, context),
955
943
  }));
956
944
  };
957
945
  var serializeAws_restJson1Tag = function (input, context) {
958
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
946
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
959
947
  };
960
948
  var serializeAws_restJson1TagKeyList = function (input, context) {
961
949
  return input
@@ -978,19 +966,15 @@ var serializeAws_restJson1TagList = function (input, context) {
978
966
  });
979
967
  };
980
968
  var serializeAws_restJson1VideoArtifactsConfiguration = function (input, context) {
981
- return __assign(__assign({}, (input.MuxType !== undefined && input.MuxType !== null && { MuxType: input.MuxType })), (input.State !== undefined && input.State !== null && { State: input.State }));
969
+ return __assign(__assign({}, (input.MuxType != null && { MuxType: input.MuxType })), (input.State != null && { State: input.State }));
982
970
  };
983
971
  var deserializeAws_restJson1ArtifactsConfiguration = function (output, context) {
984
972
  return {
985
- Audio: output.Audio !== undefined && output.Audio !== null
986
- ? deserializeAws_restJson1AudioArtifactsConfiguration(output.Audio, context)
987
- : undefined,
988
- Content: output.Content !== undefined && output.Content !== null
973
+ Audio: output.Audio != null ? deserializeAws_restJson1AudioArtifactsConfiguration(output.Audio, context) : undefined,
974
+ Content: output.Content != null
989
975
  ? deserializeAws_restJson1ContentArtifactsConfiguration(output.Content, context)
990
976
  : undefined,
991
- Video: output.Video !== undefined && output.Video !== null
992
- ? deserializeAws_restJson1VideoArtifactsConfiguration(output.Video, context)
993
- : undefined,
977
+ Video: output.Video != null ? deserializeAws_restJson1VideoArtifactsConfiguration(output.Video, context) : undefined,
994
978
  };
995
979
  };
996
980
  var deserializeAws_restJson1AttendeeIdList = function (output, context) {
@@ -1011,10 +995,10 @@ var deserializeAws_restJson1AudioArtifactsConfiguration = function (output, cont
1011
995
  };
1012
996
  var deserializeAws_restJson1ChimeSdkMeetingConfiguration = function (output, context) {
1013
997
  return {
1014
- ArtifactsConfiguration: output.ArtifactsConfiguration !== undefined && output.ArtifactsConfiguration !== null
998
+ ArtifactsConfiguration: output.ArtifactsConfiguration != null
1015
999
  ? deserializeAws_restJson1ArtifactsConfiguration(output.ArtifactsConfiguration, context)
1016
1000
  : undefined,
1017
- SourceConfiguration: output.SourceConfiguration !== undefined && output.SourceConfiguration !== null
1001
+ SourceConfiguration: output.SourceConfiguration != null
1018
1002
  ? deserializeAws_restJson1SourceConfiguration(output.SourceConfiguration, context)
1019
1003
  : undefined,
1020
1004
  };
@@ -1038,12 +1022,10 @@ var deserializeAws_restJson1ExternalUserIdList = function (output, context) {
1038
1022
  };
1039
1023
  var deserializeAws_restJson1MediaCapturePipeline = function (output, context) {
1040
1024
  return {
1041
- ChimeSdkMeetingConfiguration: output.ChimeSdkMeetingConfiguration !== undefined && output.ChimeSdkMeetingConfiguration !== null
1025
+ ChimeSdkMeetingConfiguration: output.ChimeSdkMeetingConfiguration != null
1042
1026
  ? deserializeAws_restJson1ChimeSdkMeetingConfiguration(output.ChimeSdkMeetingConfiguration, context)
1043
1027
  : undefined,
1044
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
1045
- ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
1046
- : undefined,
1028
+ CreatedTimestamp: output.CreatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp)) : undefined,
1047
1029
  MediaPipelineArn: __expectString(output.MediaPipelineArn),
1048
1030
  MediaPipelineId: __expectString(output.MediaPipelineId),
1049
1031
  SinkArn: __expectString(output.SinkArn),
@@ -1051,9 +1033,7 @@ var deserializeAws_restJson1MediaCapturePipeline = function (output, context) {
1051
1033
  SourceArn: __expectString(output.SourceArn),
1052
1034
  SourceType: __expectString(output.SourceType),
1053
1035
  Status: __expectString(output.Status),
1054
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
1055
- ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
1056
- : undefined,
1036
+ UpdatedTimestamp: output.UpdatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp)) : undefined,
1057
1037
  };
1058
1038
  };
1059
1039
  var deserializeAws_restJson1MediaCapturePipelineSummary = function (output, context) {
@@ -1075,17 +1055,15 @@ var deserializeAws_restJson1MediaCapturePipelineSummaryList = function (output,
1075
1055
  };
1076
1056
  var deserializeAws_restJson1SelectedVideoStreams = function (output, context) {
1077
1057
  return {
1078
- AttendeeIds: output.AttendeeIds !== undefined && output.AttendeeIds !== null
1079
- ? deserializeAws_restJson1AttendeeIdList(output.AttendeeIds, context)
1080
- : undefined,
1081
- ExternalUserIds: output.ExternalUserIds !== undefined && output.ExternalUserIds !== null
1058
+ AttendeeIds: output.AttendeeIds != null ? deserializeAws_restJson1AttendeeIdList(output.AttendeeIds, context) : undefined,
1059
+ ExternalUserIds: output.ExternalUserIds != null
1082
1060
  ? deserializeAws_restJson1ExternalUserIdList(output.ExternalUserIds, context)
1083
1061
  : undefined,
1084
1062
  };
1085
1063
  };
1086
1064
  var deserializeAws_restJson1SourceConfiguration = function (output, context) {
1087
1065
  return {
1088
- SelectedVideoStreams: output.SelectedVideoStreams !== undefined && output.SelectedVideoStreams !== null
1066
+ SelectedVideoStreams: output.SelectedVideoStreams != null
1089
1067
  ? deserializeAws_restJson1SelectedVideoStreams(output.SelectedVideoStreams, context)
1090
1068
  : undefined,
1091
1069
  };
@@ -1151,6 +1129,9 @@ var loadRestJsonErrorCode = function (output, data) {
1151
1129
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
1152
1130
  var sanitizeErrorCode = function (rawValue) {
1153
1131
  var cleanValue = rawValue;
1132
+ if (typeof cleanValue === "number") {
1133
+ cleanValue = cleanValue.toString();
1134
+ }
1154
1135
  if (cleanValue.indexOf(":") >= 0) {
1155
1136
  cleanValue = cleanValue.split(":")[0];
1156
1137
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-chime-sdk-media-pipelines",
3
3
  "description": "AWS SDK for JavaScript Chime Sdk Media Pipelines Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1",