@aws-sdk/client-chime-sdk-media-pipelines 3.118.1 → 3.128.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,33 @@
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.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-chime-sdk-media-pipelines
9
+
10
+
11
+
12
+
13
+
14
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-chime-sdk-media-pipelines
17
+
18
+
19
+
20
+
21
+
22
+ # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
28
+
29
+
30
+
31
+
32
+
6
33
  ## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-chime-sdk-media-pipelines
@@ -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,
@@ -208,8 +204,7 @@ const deserializeAws_restJson1CreateMediaCapturePipelineCommandError = async (ou
208
204
  body: await parseBody(output.body, context),
209
205
  };
210
206
  let response;
211
- let errorCode = "UnknownError";
212
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
207
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
213
208
  switch (errorCode) {
214
209
  case "BadRequestException":
215
210
  case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
@@ -234,10 +229,12 @@ const deserializeAws_restJson1CreateMediaCapturePipelineCommandError = async (ou
234
229
  throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
235
230
  default:
236
231
  const parsedBody = parsedOutput.body;
232
+ const $metadata = deserializeMetadata(output);
233
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
237
234
  response = new ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException({
238
- name: parsedBody.code || parsedBody.Code || errorCode,
235
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
239
236
  $fault: "client",
240
- $metadata: deserializeMetadata(output),
237
+ $metadata,
241
238
  });
242
239
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
243
240
  }
@@ -259,8 +256,7 @@ const deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = async (ou
259
256
  body: await parseBody(output.body, context),
260
257
  };
261
258
  let response;
262
- let errorCode = "UnknownError";
263
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
259
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
264
260
  switch (errorCode) {
265
261
  case "BadRequestException":
266
262
  case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
@@ -285,10 +281,12 @@ const deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = async (ou
285
281
  throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
286
282
  default:
287
283
  const parsedBody = parsedOutput.body;
284
+ const $metadata = deserializeMetadata(output);
285
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
288
286
  response = new ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException({
289
- name: parsedBody.code || parsedBody.Code || errorCode,
287
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
290
288
  $fault: "client",
291
- $metadata: deserializeMetadata(output),
289
+ $metadata,
292
290
  });
293
291
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
294
292
  }
@@ -314,8 +312,7 @@ const deserializeAws_restJson1GetMediaCapturePipelineCommandError = async (outpu
314
312
  body: await parseBody(output.body, context),
315
313
  };
316
314
  let response;
317
- let errorCode = "UnknownError";
318
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
315
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
319
316
  switch (errorCode) {
320
317
  case "BadRequestException":
321
318
  case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
@@ -340,10 +337,12 @@ const deserializeAws_restJson1GetMediaCapturePipelineCommandError = async (outpu
340
337
  throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
341
338
  default:
342
339
  const parsedBody = parsedOutput.body;
340
+ const $metadata = deserializeMetadata(output);
341
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
343
342
  response = new ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException({
344
- name: parsedBody.code || parsedBody.Code || errorCode,
343
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
345
344
  $fault: "client",
346
- $metadata: deserializeMetadata(output),
345
+ $metadata,
347
346
  });
348
347
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
349
348
  }
@@ -373,8 +372,7 @@ const deserializeAws_restJson1ListMediaCapturePipelinesCommandError = async (out
373
372
  body: await parseBody(output.body, context),
374
373
  };
375
374
  let response;
376
- let errorCode = "UnknownError";
377
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
375
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
378
376
  switch (errorCode) {
379
377
  case "BadRequestException":
380
378
  case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
@@ -399,10 +397,12 @@ const deserializeAws_restJson1ListMediaCapturePipelinesCommandError = async (out
399
397
  throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
400
398
  default:
401
399
  const parsedBody = parsedOutput.body;
400
+ const $metadata = deserializeMetadata(output);
401
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
402
402
  response = new ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException({
403
- name: parsedBody.code || parsedBody.Code || errorCode,
403
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
404
404
  $fault: "client",
405
- $metadata: deserializeMetadata(output),
405
+ $metadata,
406
406
  });
407
407
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
408
408
  }
@@ -428,8 +428,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
428
428
  body: await parseBody(output.body, context),
429
429
  };
430
430
  let response;
431
- let errorCode = "UnknownError";
432
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
431
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
433
432
  switch (errorCode) {
434
433
  case "BadRequestException":
435
434
  case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
@@ -454,10 +453,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
454
453
  throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
455
454
  default:
456
455
  const parsedBody = parsedOutput.body;
456
+ const $metadata = deserializeMetadata(output);
457
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
457
458
  response = new ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException({
458
- name: parsedBody.code || parsedBody.Code || errorCode,
459
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
459
460
  $fault: "client",
460
- $metadata: deserializeMetadata(output),
461
+ $metadata,
461
462
  });
462
463
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
463
464
  }
@@ -479,8 +480,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
479
480
  body: await parseBody(output.body, context),
480
481
  };
481
482
  let response;
482
- let errorCode = "UnknownError";
483
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
483
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
484
484
  switch (errorCode) {
485
485
  case "BadRequestException":
486
486
  case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
@@ -505,10 +505,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
505
505
  throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
506
506
  default:
507
507
  const parsedBody = parsedOutput.body;
508
+ const $metadata = deserializeMetadata(output);
509
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
508
510
  response = new ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException({
509
- name: parsedBody.code || parsedBody.Code || errorCode,
511
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
510
512
  $fault: "client",
511
- $metadata: deserializeMetadata(output),
513
+ $metadata,
512
514
  });
513
515
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
514
516
  }
@@ -530,8 +532,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
530
532
  body: await parseBody(output.body, context),
531
533
  };
532
534
  let response;
533
- let errorCode = "UnknownError";
534
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
535
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
535
536
  switch (errorCode) {
536
537
  case "BadRequestException":
537
538
  case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
@@ -556,10 +557,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
556
557
  throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
557
558
  default:
558
559
  const parsedBody = parsedOutput.body;
560
+ const $metadata = deserializeMetadata(output);
561
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
559
562
  response = new ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException({
560
- name: parsedBody.code || parsedBody.Code || errorCode,
563
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
561
564
  $fault: "client",
562
- $metadata: deserializeMetadata(output),
565
+ $metadata,
563
566
  });
564
567
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
565
568
  }
@@ -710,14 +713,11 @@ const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parse
710
713
  };
711
714
  const serializeAws_restJson1ArtifactsConfiguration = (input, context) => {
712
715
  return {
713
- ...(input.Audio !== undefined &&
714
- input.Audio !== null && { Audio: serializeAws_restJson1AudioArtifactsConfiguration(input.Audio, context) }),
715
- ...(input.Content !== undefined &&
716
- input.Content !== null && {
716
+ ...(input.Audio != null && { Audio: serializeAws_restJson1AudioArtifactsConfiguration(input.Audio, context) }),
717
+ ...(input.Content != null && {
717
718
  Content: serializeAws_restJson1ContentArtifactsConfiguration(input.Content, context),
718
719
  }),
719
- ...(input.Video !== undefined &&
720
- input.Video !== null && { Video: serializeAws_restJson1VideoArtifactsConfiguration(input.Video, context) }),
720
+ ...(input.Video != null && { Video: serializeAws_restJson1VideoArtifactsConfiguration(input.Video, context) }),
721
721
  };
722
722
  };
723
723
  const serializeAws_restJson1AttendeeIdList = (input, context) => {
@@ -732,25 +732,23 @@ const serializeAws_restJson1AttendeeIdList = (input, context) => {
732
732
  };
733
733
  const serializeAws_restJson1AudioArtifactsConfiguration = (input, context) => {
734
734
  return {
735
- ...(input.MuxType !== undefined && input.MuxType !== null && { MuxType: input.MuxType }),
735
+ ...(input.MuxType != null && { MuxType: input.MuxType }),
736
736
  };
737
737
  };
738
738
  const serializeAws_restJson1ChimeSdkMeetingConfiguration = (input, context) => {
739
739
  return {
740
- ...(input.ArtifactsConfiguration !== undefined &&
741
- input.ArtifactsConfiguration !== null && {
740
+ ...(input.ArtifactsConfiguration != null && {
742
741
  ArtifactsConfiguration: serializeAws_restJson1ArtifactsConfiguration(input.ArtifactsConfiguration, context),
743
742
  }),
744
- ...(input.SourceConfiguration !== undefined &&
745
- input.SourceConfiguration !== null && {
743
+ ...(input.SourceConfiguration != null && {
746
744
  SourceConfiguration: serializeAws_restJson1SourceConfiguration(input.SourceConfiguration, context),
747
745
  }),
748
746
  };
749
747
  };
750
748
  const serializeAws_restJson1ContentArtifactsConfiguration = (input, context) => {
751
749
  return {
752
- ...(input.MuxType !== undefined && input.MuxType !== null && { MuxType: input.MuxType }),
753
- ...(input.State !== undefined && input.State !== null && { State: input.State }),
750
+ ...(input.MuxType != null && { MuxType: input.MuxType }),
751
+ ...(input.State != null && { State: input.State }),
754
752
  };
755
753
  };
756
754
  const serializeAws_restJson1ExternalUserIdList = (input, context) => {
@@ -765,26 +763,23 @@ const serializeAws_restJson1ExternalUserIdList = (input, context) => {
765
763
  };
766
764
  const serializeAws_restJson1SelectedVideoStreams = (input, context) => {
767
765
  return {
768
- ...(input.AttendeeIds !== undefined &&
769
- input.AttendeeIds !== null && { AttendeeIds: serializeAws_restJson1AttendeeIdList(input.AttendeeIds, context) }),
770
- ...(input.ExternalUserIds !== undefined &&
771
- input.ExternalUserIds !== null && {
766
+ ...(input.AttendeeIds != null && { AttendeeIds: serializeAws_restJson1AttendeeIdList(input.AttendeeIds, context) }),
767
+ ...(input.ExternalUserIds != null && {
772
768
  ExternalUserIds: serializeAws_restJson1ExternalUserIdList(input.ExternalUserIds, context),
773
769
  }),
774
770
  };
775
771
  };
776
772
  const serializeAws_restJson1SourceConfiguration = (input, context) => {
777
773
  return {
778
- ...(input.SelectedVideoStreams !== undefined &&
779
- input.SelectedVideoStreams !== null && {
774
+ ...(input.SelectedVideoStreams != null && {
780
775
  SelectedVideoStreams: serializeAws_restJson1SelectedVideoStreams(input.SelectedVideoStreams, context),
781
776
  }),
782
777
  };
783
778
  };
784
779
  const serializeAws_restJson1Tag = (input, context) => {
785
780
  return {
786
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
787
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
781
+ ...(input.Key != null && { Key: input.Key }),
782
+ ...(input.Value != null && { Value: input.Value }),
788
783
  };
789
784
  };
790
785
  const serializeAws_restJson1TagKeyList = (input, context) => {
@@ -809,21 +804,17 @@ const serializeAws_restJson1TagList = (input, context) => {
809
804
  };
810
805
  const serializeAws_restJson1VideoArtifactsConfiguration = (input, context) => {
811
806
  return {
812
- ...(input.MuxType !== undefined && input.MuxType !== null && { MuxType: input.MuxType }),
813
- ...(input.State !== undefined && input.State !== null && { State: input.State }),
807
+ ...(input.MuxType != null && { MuxType: input.MuxType }),
808
+ ...(input.State != null && { State: input.State }),
814
809
  };
815
810
  };
816
811
  const deserializeAws_restJson1ArtifactsConfiguration = (output, context) => {
817
812
  return {
818
- Audio: output.Audio !== undefined && output.Audio !== null
819
- ? deserializeAws_restJson1AudioArtifactsConfiguration(output.Audio, context)
820
- : undefined,
821
- Content: output.Content !== undefined && output.Content !== null
813
+ Audio: output.Audio != null ? deserializeAws_restJson1AudioArtifactsConfiguration(output.Audio, context) : undefined,
814
+ Content: output.Content != null
822
815
  ? deserializeAws_restJson1ContentArtifactsConfiguration(output.Content, context)
823
816
  : undefined,
824
- Video: output.Video !== undefined && output.Video !== null
825
- ? deserializeAws_restJson1VideoArtifactsConfiguration(output.Video, context)
826
- : undefined,
817
+ Video: output.Video != null ? deserializeAws_restJson1VideoArtifactsConfiguration(output.Video, context) : undefined,
827
818
  };
828
819
  };
829
820
  const deserializeAws_restJson1AttendeeIdList = (output, context) => {
@@ -844,10 +835,10 @@ const deserializeAws_restJson1AudioArtifactsConfiguration = (output, context) =>
844
835
  };
845
836
  const deserializeAws_restJson1ChimeSdkMeetingConfiguration = (output, context) => {
846
837
  return {
847
- ArtifactsConfiguration: output.ArtifactsConfiguration !== undefined && output.ArtifactsConfiguration !== null
838
+ ArtifactsConfiguration: output.ArtifactsConfiguration != null
848
839
  ? deserializeAws_restJson1ArtifactsConfiguration(output.ArtifactsConfiguration, context)
849
840
  : undefined,
850
- SourceConfiguration: output.SourceConfiguration !== undefined && output.SourceConfiguration !== null
841
+ SourceConfiguration: output.SourceConfiguration != null
851
842
  ? deserializeAws_restJson1SourceConfiguration(output.SourceConfiguration, context)
852
843
  : undefined,
853
844
  };
@@ -871,12 +862,10 @@ const deserializeAws_restJson1ExternalUserIdList = (output, context) => {
871
862
  };
872
863
  const deserializeAws_restJson1MediaCapturePipeline = (output, context) => {
873
864
  return {
874
- ChimeSdkMeetingConfiguration: output.ChimeSdkMeetingConfiguration !== undefined && output.ChimeSdkMeetingConfiguration !== null
865
+ ChimeSdkMeetingConfiguration: output.ChimeSdkMeetingConfiguration != null
875
866
  ? deserializeAws_restJson1ChimeSdkMeetingConfiguration(output.ChimeSdkMeetingConfiguration, context)
876
867
  : undefined,
877
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
878
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp))
879
- : undefined,
868
+ CreatedTimestamp: output.CreatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp)) : undefined,
880
869
  MediaPipelineArn: (0, smithy_client_1.expectString)(output.MediaPipelineArn),
881
870
  MediaPipelineId: (0, smithy_client_1.expectString)(output.MediaPipelineId),
882
871
  SinkArn: (0, smithy_client_1.expectString)(output.SinkArn),
@@ -884,9 +873,7 @@ const deserializeAws_restJson1MediaCapturePipeline = (output, context) => {
884
873
  SourceArn: (0, smithy_client_1.expectString)(output.SourceArn),
885
874
  SourceType: (0, smithy_client_1.expectString)(output.SourceType),
886
875
  Status: (0, smithy_client_1.expectString)(output.Status),
887
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
888
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp))
889
- : undefined,
876
+ UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
890
877
  };
891
878
  };
892
879
  const deserializeAws_restJson1MediaCapturePipelineSummary = (output, context) => {
@@ -908,17 +895,15 @@ const deserializeAws_restJson1MediaCapturePipelineSummaryList = (output, context
908
895
  };
909
896
  const deserializeAws_restJson1SelectedVideoStreams = (output, context) => {
910
897
  return {
911
- AttendeeIds: output.AttendeeIds !== undefined && output.AttendeeIds !== null
912
- ? deserializeAws_restJson1AttendeeIdList(output.AttendeeIds, context)
913
- : undefined,
914
- ExternalUserIds: output.ExternalUserIds !== undefined && output.ExternalUserIds !== null
898
+ AttendeeIds: output.AttendeeIds != null ? deserializeAws_restJson1AttendeeIdList(output.AttendeeIds, context) : undefined,
899
+ ExternalUserIds: output.ExternalUserIds != null
915
900
  ? deserializeAws_restJson1ExternalUserIdList(output.ExternalUserIds, context)
916
901
  : undefined,
917
902
  };
918
903
  };
919
904
  const deserializeAws_restJson1SourceConfiguration = (output, context) => {
920
905
  return {
921
- SelectedVideoStreams: output.SelectedVideoStreams !== undefined && output.SelectedVideoStreams !== null
906
+ SelectedVideoStreams: output.SelectedVideoStreams != null
922
907
  ? deserializeAws_restJson1SelectedVideoStreams(output.SelectedVideoStreams, context)
923
908
  : undefined,
924
909
  };
@@ -995,5 +980,4 @@ const loadRestJsonErrorCode = (output, data) => {
995
980
  if (data["__type"] !== undefined) {
996
981
  return sanitizeErrorCode(data["__type"]);
997
982
  }
998
- return "";
999
983
  };
@@ -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,
@@ -226,7 +222,7 @@ export var deserializeAws_restJson1CreateMediaCapturePipelineCommand = function
226
222
  });
227
223
  }); };
228
224
  var deserializeAws_restJson1CreateMediaCapturePipelineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
229
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
225
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
230
226
  var _c;
231
227
  return __generator(this, function (_d) {
232
228
  switch (_d.label) {
@@ -236,7 +232,6 @@ var deserializeAws_restJson1CreateMediaCapturePipelineCommandError = function (o
236
232
  return [4, parseBody(output.body, context)];
237
233
  case 1:
238
234
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
239
- errorCode = "UnknownError";
240
235
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
241
236
  _b = errorCode;
242
237
  switch (_b) {
@@ -272,10 +267,12 @@ var deserializeAws_restJson1CreateMediaCapturePipelineCommandError = function (o
272
267
  case 15: throw _d.sent();
273
268
  case 16:
274
269
  parsedBody = parsedOutput.body;
270
+ $metadata = deserializeMetadata(output);
271
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
275
272
  response = new __BaseException({
276
- name: parsedBody.code || parsedBody.Code || errorCode,
273
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
277
274
  $fault: "client",
278
- $metadata: deserializeMetadata(output),
275
+ $metadata: $metadata,
279
276
  });
280
277
  throw __decorateServiceException(response, parsedBody);
281
278
  }
@@ -300,7 +297,7 @@ export var deserializeAws_restJson1DeleteMediaCapturePipelineCommand = function
300
297
  });
301
298
  }); };
302
299
  var deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
303
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
300
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
304
301
  var _c;
305
302
  return __generator(this, function (_d) {
306
303
  switch (_d.label) {
@@ -310,7 +307,6 @@ var deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = function (o
310
307
  return [4, parseBody(output.body, context)];
311
308
  case 1:
312
309
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
313
- errorCode = "UnknownError";
314
310
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
315
311
  _b = errorCode;
316
312
  switch (_b) {
@@ -346,10 +342,12 @@ var deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = function (o
346
342
  case 15: throw _d.sent();
347
343
  case 16:
348
344
  parsedBody = parsedOutput.body;
345
+ $metadata = deserializeMetadata(output);
346
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
349
347
  response = new __BaseException({
350
- name: parsedBody.code || parsedBody.Code || errorCode,
348
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
351
349
  $fault: "client",
352
- $metadata: deserializeMetadata(output),
350
+ $metadata: $metadata,
353
351
  });
354
352
  throw __decorateServiceException(response, parsedBody);
355
353
  }
@@ -380,7 +378,7 @@ export var deserializeAws_restJson1GetMediaCapturePipelineCommand = function (ou
380
378
  });
381
379
  }); };
382
380
  var deserializeAws_restJson1GetMediaCapturePipelineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
383
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
381
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
384
382
  var _c;
385
383
  return __generator(this, function (_d) {
386
384
  switch (_d.label) {
@@ -390,7 +388,6 @@ var deserializeAws_restJson1GetMediaCapturePipelineCommandError = function (outp
390
388
  return [4, parseBody(output.body, context)];
391
389
  case 1:
392
390
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
393
- errorCode = "UnknownError";
394
391
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
395
392
  _b = errorCode;
396
393
  switch (_b) {
@@ -426,10 +423,12 @@ var deserializeAws_restJson1GetMediaCapturePipelineCommandError = function (outp
426
423
  case 15: throw _d.sent();
427
424
  case 16:
428
425
  parsedBody = parsedOutput.body;
426
+ $metadata = deserializeMetadata(output);
427
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
429
428
  response = new __BaseException({
430
- name: parsedBody.code || parsedBody.Code || errorCode,
429
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
431
430
  $fault: "client",
432
- $metadata: deserializeMetadata(output),
431
+ $metadata: $metadata,
433
432
  });
434
433
  throw __decorateServiceException(response, parsedBody);
435
434
  }
@@ -464,7 +463,7 @@ export var deserializeAws_restJson1ListMediaCapturePipelinesCommand = function (
464
463
  });
465
464
  }); };
466
465
  var deserializeAws_restJson1ListMediaCapturePipelinesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
467
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
466
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
468
467
  var _c;
469
468
  return __generator(this, function (_d) {
470
469
  switch (_d.label) {
@@ -474,7 +473,6 @@ var deserializeAws_restJson1ListMediaCapturePipelinesCommandError = function (ou
474
473
  return [4, parseBody(output.body, context)];
475
474
  case 1:
476
475
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
477
- errorCode = "UnknownError";
478
476
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
479
477
  _b = errorCode;
480
478
  switch (_b) {
@@ -510,10 +508,12 @@ var deserializeAws_restJson1ListMediaCapturePipelinesCommandError = function (ou
510
508
  case 15: throw _d.sent();
511
509
  case 16:
512
510
  parsedBody = parsedOutput.body;
511
+ $metadata = deserializeMetadata(output);
512
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
513
513
  response = new __BaseException({
514
- name: parsedBody.code || parsedBody.Code || errorCode,
514
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
515
515
  $fault: "client",
516
- $metadata: deserializeMetadata(output),
516
+ $metadata: $metadata,
517
517
  });
518
518
  throw __decorateServiceException(response, parsedBody);
519
519
  }
@@ -544,7 +544,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
544
544
  });
545
545
  }); };
546
546
  var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
547
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
547
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
548
548
  var _c;
549
549
  return __generator(this, function (_d) {
550
550
  switch (_d.label) {
@@ -554,7 +554,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
554
554
  return [4, parseBody(output.body, context)];
555
555
  case 1:
556
556
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
557
- errorCode = "UnknownError";
558
557
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
559
558
  _b = errorCode;
560
559
  switch (_b) {
@@ -590,10 +589,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
590
589
  case 15: throw _d.sent();
591
590
  case 16:
592
591
  parsedBody = parsedOutput.body;
592
+ $metadata = deserializeMetadata(output);
593
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
593
594
  response = new __BaseException({
594
- name: parsedBody.code || parsedBody.Code || errorCode,
595
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
595
596
  $fault: "client",
596
- $metadata: deserializeMetadata(output),
597
+ $metadata: $metadata,
597
598
  });
598
599
  throw __decorateServiceException(response, parsedBody);
599
600
  }
@@ -618,7 +619,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
618
619
  });
619
620
  }); };
620
621
  var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
621
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
622
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
622
623
  var _c;
623
624
  return __generator(this, function (_d) {
624
625
  switch (_d.label) {
@@ -628,7 +629,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
628
629
  return [4, parseBody(output.body, context)];
629
630
  case 1:
630
631
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
631
- errorCode = "UnknownError";
632
632
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
633
633
  _b = errorCode;
634
634
  switch (_b) {
@@ -664,10 +664,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
664
664
  case 15: throw _d.sent();
665
665
  case 16:
666
666
  parsedBody = parsedOutput.body;
667
+ $metadata = deserializeMetadata(output);
668
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
667
669
  response = new __BaseException({
668
- name: parsedBody.code || parsedBody.Code || errorCode,
670
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
669
671
  $fault: "client",
670
- $metadata: deserializeMetadata(output),
672
+ $metadata: $metadata,
671
673
  });
672
674
  throw __decorateServiceException(response, parsedBody);
673
675
  }
@@ -692,7 +694,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
692
694
  });
693
695
  }); };
694
696
  var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
695
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
697
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
696
698
  var _c;
697
699
  return __generator(this, function (_d) {
698
700
  switch (_d.label) {
@@ -702,7 +704,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
702
704
  return [4, parseBody(output.body, context)];
703
705
  case 1:
704
706
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
705
- errorCode = "UnknownError";
706
707
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
707
708
  _b = errorCode;
708
709
  switch (_b) {
@@ -738,10 +739,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
738
739
  case 15: throw _d.sent();
739
740
  case 16:
740
741
  parsedBody = parsedOutput.body;
742
+ $metadata = deserializeMetadata(output);
743
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
741
744
  response = new __BaseException({
742
- name: parsedBody.code || parsedBody.Code || errorCode,
745
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
743
746
  $fault: "client",
744
- $metadata: deserializeMetadata(output),
747
+ $metadata: $metadata,
745
748
  });
746
749
  throw __decorateServiceException(response, parsedBody);
747
750
  }
@@ -892,12 +895,9 @@ var deserializeAws_restJson1UnauthorizedClientExceptionResponse = function (pars
892
895
  });
893
896
  }); };
894
897
  var serializeAws_restJson1ArtifactsConfiguration = function (input, context) {
895
- return __assign(__assign(__assign({}, (input.Audio !== undefined &&
896
- input.Audio !== null && { Audio: serializeAws_restJson1AudioArtifactsConfiguration(input.Audio, context) })), (input.Content !== undefined &&
897
- input.Content !== null && {
898
+ return __assign(__assign(__assign({}, (input.Audio != null && { Audio: serializeAws_restJson1AudioArtifactsConfiguration(input.Audio, context) })), (input.Content != null && {
898
899
  Content: serializeAws_restJson1ContentArtifactsConfiguration(input.Content, context),
899
- })), (input.Video !== undefined &&
900
- input.Video !== null && { Video: serializeAws_restJson1VideoArtifactsConfiguration(input.Video, context) }));
900
+ })), (input.Video != null && { Video: serializeAws_restJson1VideoArtifactsConfiguration(input.Video, context) }));
901
901
  };
902
902
  var serializeAws_restJson1AttendeeIdList = function (input, context) {
903
903
  return input
@@ -910,19 +910,17 @@ var serializeAws_restJson1AttendeeIdList = function (input, context) {
910
910
  });
911
911
  };
912
912
  var serializeAws_restJson1AudioArtifactsConfiguration = function (input, context) {
913
- return __assign({}, (input.MuxType !== undefined && input.MuxType !== null && { MuxType: input.MuxType }));
913
+ return __assign({}, (input.MuxType != null && { MuxType: input.MuxType }));
914
914
  };
915
915
  var serializeAws_restJson1ChimeSdkMeetingConfiguration = function (input, context) {
916
- return __assign(__assign({}, (input.ArtifactsConfiguration !== undefined &&
917
- input.ArtifactsConfiguration !== null && {
916
+ return __assign(__assign({}, (input.ArtifactsConfiguration != null && {
918
917
  ArtifactsConfiguration: serializeAws_restJson1ArtifactsConfiguration(input.ArtifactsConfiguration, context),
919
- })), (input.SourceConfiguration !== undefined &&
920
- input.SourceConfiguration !== null && {
918
+ })), (input.SourceConfiguration != null && {
921
919
  SourceConfiguration: serializeAws_restJson1SourceConfiguration(input.SourceConfiguration, context),
922
920
  }));
923
921
  };
924
922
  var serializeAws_restJson1ContentArtifactsConfiguration = function (input, context) {
925
- 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 }));
926
924
  };
927
925
  var serializeAws_restJson1ExternalUserIdList = function (input, context) {
928
926
  return input
@@ -935,20 +933,17 @@ var serializeAws_restJson1ExternalUserIdList = function (input, context) {
935
933
  });
936
934
  };
937
935
  var serializeAws_restJson1SelectedVideoStreams = function (input, context) {
938
- return __assign(__assign({}, (input.AttendeeIds !== undefined &&
939
- input.AttendeeIds !== null && { AttendeeIds: serializeAws_restJson1AttendeeIdList(input.AttendeeIds, context) })), (input.ExternalUserIds !== undefined &&
940
- input.ExternalUserIds !== null && {
936
+ return __assign(__assign({}, (input.AttendeeIds != null && { AttendeeIds: serializeAws_restJson1AttendeeIdList(input.AttendeeIds, context) })), (input.ExternalUserIds != null && {
941
937
  ExternalUserIds: serializeAws_restJson1ExternalUserIdList(input.ExternalUserIds, context),
942
938
  }));
943
939
  };
944
940
  var serializeAws_restJson1SourceConfiguration = function (input, context) {
945
- return __assign({}, (input.SelectedVideoStreams !== undefined &&
946
- input.SelectedVideoStreams !== null && {
941
+ return __assign({}, (input.SelectedVideoStreams != null && {
947
942
  SelectedVideoStreams: serializeAws_restJson1SelectedVideoStreams(input.SelectedVideoStreams, context),
948
943
  }));
949
944
  };
950
945
  var serializeAws_restJson1Tag = function (input, context) {
951
- 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 }));
952
947
  };
953
948
  var serializeAws_restJson1TagKeyList = function (input, context) {
954
949
  return input
@@ -971,19 +966,15 @@ var serializeAws_restJson1TagList = function (input, context) {
971
966
  });
972
967
  };
973
968
  var serializeAws_restJson1VideoArtifactsConfiguration = function (input, context) {
974
- 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 }));
975
970
  };
976
971
  var deserializeAws_restJson1ArtifactsConfiguration = function (output, context) {
977
972
  return {
978
- Audio: output.Audio !== undefined && output.Audio !== null
979
- ? deserializeAws_restJson1AudioArtifactsConfiguration(output.Audio, context)
980
- : undefined,
981
- Content: output.Content !== undefined && output.Content !== null
973
+ Audio: output.Audio != null ? deserializeAws_restJson1AudioArtifactsConfiguration(output.Audio, context) : undefined,
974
+ Content: output.Content != null
982
975
  ? deserializeAws_restJson1ContentArtifactsConfiguration(output.Content, context)
983
976
  : undefined,
984
- Video: output.Video !== undefined && output.Video !== null
985
- ? deserializeAws_restJson1VideoArtifactsConfiguration(output.Video, context)
986
- : undefined,
977
+ Video: output.Video != null ? deserializeAws_restJson1VideoArtifactsConfiguration(output.Video, context) : undefined,
987
978
  };
988
979
  };
989
980
  var deserializeAws_restJson1AttendeeIdList = function (output, context) {
@@ -1004,10 +995,10 @@ var deserializeAws_restJson1AudioArtifactsConfiguration = function (output, cont
1004
995
  };
1005
996
  var deserializeAws_restJson1ChimeSdkMeetingConfiguration = function (output, context) {
1006
997
  return {
1007
- ArtifactsConfiguration: output.ArtifactsConfiguration !== undefined && output.ArtifactsConfiguration !== null
998
+ ArtifactsConfiguration: output.ArtifactsConfiguration != null
1008
999
  ? deserializeAws_restJson1ArtifactsConfiguration(output.ArtifactsConfiguration, context)
1009
1000
  : undefined,
1010
- SourceConfiguration: output.SourceConfiguration !== undefined && output.SourceConfiguration !== null
1001
+ SourceConfiguration: output.SourceConfiguration != null
1011
1002
  ? deserializeAws_restJson1SourceConfiguration(output.SourceConfiguration, context)
1012
1003
  : undefined,
1013
1004
  };
@@ -1031,12 +1022,10 @@ var deserializeAws_restJson1ExternalUserIdList = function (output, context) {
1031
1022
  };
1032
1023
  var deserializeAws_restJson1MediaCapturePipeline = function (output, context) {
1033
1024
  return {
1034
- ChimeSdkMeetingConfiguration: output.ChimeSdkMeetingConfiguration !== undefined && output.ChimeSdkMeetingConfiguration !== null
1025
+ ChimeSdkMeetingConfiguration: output.ChimeSdkMeetingConfiguration != null
1035
1026
  ? deserializeAws_restJson1ChimeSdkMeetingConfiguration(output.ChimeSdkMeetingConfiguration, context)
1036
1027
  : undefined,
1037
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
1038
- ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
1039
- : undefined,
1028
+ CreatedTimestamp: output.CreatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp)) : undefined,
1040
1029
  MediaPipelineArn: __expectString(output.MediaPipelineArn),
1041
1030
  MediaPipelineId: __expectString(output.MediaPipelineId),
1042
1031
  SinkArn: __expectString(output.SinkArn),
@@ -1044,9 +1033,7 @@ var deserializeAws_restJson1MediaCapturePipeline = function (output, context) {
1044
1033
  SourceArn: __expectString(output.SourceArn),
1045
1034
  SourceType: __expectString(output.SourceType),
1046
1035
  Status: __expectString(output.Status),
1047
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
1048
- ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
1049
- : undefined,
1036
+ UpdatedTimestamp: output.UpdatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp)) : undefined,
1050
1037
  };
1051
1038
  };
1052
1039
  var deserializeAws_restJson1MediaCapturePipelineSummary = function (output, context) {
@@ -1068,17 +1055,15 @@ var deserializeAws_restJson1MediaCapturePipelineSummaryList = function (output,
1068
1055
  };
1069
1056
  var deserializeAws_restJson1SelectedVideoStreams = function (output, context) {
1070
1057
  return {
1071
- AttendeeIds: output.AttendeeIds !== undefined && output.AttendeeIds !== null
1072
- ? deserializeAws_restJson1AttendeeIdList(output.AttendeeIds, context)
1073
- : undefined,
1074
- ExternalUserIds: output.ExternalUserIds !== undefined && output.ExternalUserIds !== null
1058
+ AttendeeIds: output.AttendeeIds != null ? deserializeAws_restJson1AttendeeIdList(output.AttendeeIds, context) : undefined,
1059
+ ExternalUserIds: output.ExternalUserIds != null
1075
1060
  ? deserializeAws_restJson1ExternalUserIdList(output.ExternalUserIds, context)
1076
1061
  : undefined,
1077
1062
  };
1078
1063
  };
1079
1064
  var deserializeAws_restJson1SourceConfiguration = function (output, context) {
1080
1065
  return {
1081
- SelectedVideoStreams: output.SelectedVideoStreams !== undefined && output.SelectedVideoStreams !== null
1066
+ SelectedVideoStreams: output.SelectedVideoStreams != null
1082
1067
  ? deserializeAws_restJson1SelectedVideoStreams(output.SelectedVideoStreams, context)
1083
1068
  : undefined,
1084
1069
  };
@@ -1162,5 +1147,4 @@ var loadRestJsonErrorCode = function (output, data) {
1162
1147
  if (data["__type"] !== undefined) {
1163
1148
  return sanitizeErrorCode(data["__type"]);
1164
1149
  }
1165
- return "";
1166
1150
  };
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.118.1",
4
+ "version": "3.128.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.118.1",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.118.1",
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.128.0",
22
+ "@aws-sdk/config-resolver": "3.128.0",
23
+ "@aws-sdk/credential-provider-node": "3.128.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.128.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.128.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",