@aws-sdk/client-mediapackage-vod 3.28.0 → 3.32.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.
@@ -76,7 +76,9 @@ import {
76
76
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
77
77
  import {
78
78
  expectBoolean as __expectBoolean,
79
- expectInt as __expectInt,
79
+ expectInt32 as __expectInt32,
80
+ expectNonNull as __expectNonNull,
81
+ expectObject as __expectObject,
80
82
  expectString as __expectString,
81
83
  extendedEncodeURIComponent as __extendedEncodeURIComponent,
82
84
  } from "@aws-sdk/smithy-client";
@@ -615,7 +617,7 @@ export const deserializeAws_restJson1ConfigureLogsCommand = async (
615
617
  Id: undefined,
616
618
  Tags: undefined,
617
619
  };
618
- const data: any = await parseBody(output.body, context);
620
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
619
621
  if (data.arn !== undefined && data.arn !== null) {
620
622
  contents.Arn = __expectString(data.arn);
621
623
  }
@@ -733,7 +735,7 @@ export const deserializeAws_restJson1CreateAssetCommand = async (
733
735
  SourceRoleArn: undefined,
734
736
  Tags: undefined,
735
737
  };
736
- const data: any = await parseBody(output.body, context);
738
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
737
739
  if (data.arn !== undefined && data.arn !== null) {
738
740
  contents.Arn = __expectString(data.arn);
739
741
  }
@@ -859,7 +861,7 @@ export const deserializeAws_restJson1CreatePackagingConfigurationCommand = async
859
861
  PackagingGroupId: undefined,
860
862
  Tags: undefined,
861
863
  };
862
- const data: any = await parseBody(output.body, context);
864
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
863
865
  if (data.arn !== undefined && data.arn !== null) {
864
866
  contents.Arn = __expectString(data.arn);
865
867
  }
@@ -980,7 +982,7 @@ export const deserializeAws_restJson1CreatePackagingGroupCommand = async (
980
982
  Id: undefined,
981
983
  Tags: undefined,
982
984
  };
983
- const data: any = await parseBody(output.body, context);
985
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
984
986
  if (data.arn !== undefined && data.arn !== null) {
985
987
  contents.Arn = __expectString(data.arn);
986
988
  }
@@ -1371,7 +1373,7 @@ export const deserializeAws_restJson1DescribeAssetCommand = async (
1371
1373
  SourceRoleArn: undefined,
1372
1374
  Tags: undefined,
1373
1375
  };
1374
- const data: any = await parseBody(output.body, context);
1376
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1375
1377
  if (data.arn !== undefined && data.arn !== null) {
1376
1378
  contents.Arn = __expectString(data.arn);
1377
1379
  }
@@ -1497,7 +1499,7 @@ export const deserializeAws_restJson1DescribePackagingConfigurationCommand = asy
1497
1499
  PackagingGroupId: undefined,
1498
1500
  Tags: undefined,
1499
1501
  };
1500
- const data: any = await parseBody(output.body, context);
1502
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1501
1503
  if (data.arn !== undefined && data.arn !== null) {
1502
1504
  contents.Arn = __expectString(data.arn);
1503
1505
  }
@@ -1618,7 +1620,7 @@ export const deserializeAws_restJson1DescribePackagingGroupCommand = async (
1618
1620
  Id: undefined,
1619
1621
  Tags: undefined,
1620
1622
  };
1621
- const data: any = await parseBody(output.body, context);
1623
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1622
1624
  if (data.arn !== undefined && data.arn !== null) {
1623
1625
  contents.Arn = __expectString(data.arn);
1624
1626
  }
@@ -1729,7 +1731,7 @@ export const deserializeAws_restJson1ListAssetsCommand = async (
1729
1731
  Assets: undefined,
1730
1732
  NextToken: undefined,
1731
1733
  };
1732
- const data: any = await parseBody(output.body, context);
1734
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1733
1735
  if (data.assets !== undefined && data.assets !== null) {
1734
1736
  contents.Assets = deserializeAws_restJson1__listOfAssetShallow(data.assets, context);
1735
1737
  }
@@ -1828,7 +1830,7 @@ export const deserializeAws_restJson1ListPackagingConfigurationsCommand = async
1828
1830
  NextToken: undefined,
1829
1831
  PackagingConfigurations: undefined,
1830
1832
  };
1831
- const data: any = await parseBody(output.body, context);
1833
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1832
1834
  if (data.nextToken !== undefined && data.nextToken !== null) {
1833
1835
  contents.NextToken = __expectString(data.nextToken);
1834
1836
  }
@@ -1930,7 +1932,7 @@ export const deserializeAws_restJson1ListPackagingGroupsCommand = async (
1930
1932
  NextToken: undefined,
1931
1933
  PackagingGroups: undefined,
1932
1934
  };
1933
- const data: any = await parseBody(output.body, context);
1935
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1934
1936
  if (data.nextToken !== undefined && data.nextToken !== null) {
1935
1937
  contents.NextToken = __expectString(data.nextToken);
1936
1938
  }
@@ -2028,7 +2030,7 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
2028
2030
  $metadata: deserializeMetadata(output),
2029
2031
  Tags: undefined,
2030
2032
  };
2031
- const data: any = await parseBody(output.body, context);
2033
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2032
2034
  if (data.tags !== undefined && data.tags !== null) {
2033
2035
  contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
2034
2036
  }
@@ -2166,7 +2168,7 @@ export const deserializeAws_restJson1UpdatePackagingGroupCommand = async (
2166
2168
  Id: undefined,
2167
2169
  Tags: undefined,
2168
2170
  };
2169
- const data: any = await parseBody(output.body, context);
2171
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2170
2172
  if (data.arn !== undefined && data.arn !== null) {
2171
2173
  contents.Arn = __expectString(data.arn);
2172
2174
  }
@@ -2801,7 +2803,7 @@ const deserializeAws_restJson1CmafPackage = (output: any, context: __SerdeContex
2801
2803
  ? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context)
2802
2804
  : undefined,
2803
2805
  IncludeEncoderConfigurationInSegments: __expectBoolean(output.includeEncoderConfigurationInSegments),
2804
- SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds),
2806
+ SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
2805
2807
  } as any;
2806
2808
  };
2807
2809
 
@@ -2818,7 +2820,7 @@ const deserializeAws_restJson1DashManifest = (output: any, context: __SerdeConte
2818
2820
  return {
2819
2821
  ManifestLayout: __expectString(output.manifestLayout),
2820
2822
  ManifestName: __expectString(output.manifestName),
2821
- MinBufferTimeSeconds: __expectInt(output.minBufferTimeSeconds),
2823
+ MinBufferTimeSeconds: __expectInt32(output.minBufferTimeSeconds),
2822
2824
  Profile: __expectString(output.profile),
2823
2825
  StreamSelection:
2824
2826
  output.streamSelection !== undefined && output.streamSelection !== null
@@ -2842,7 +2844,7 @@ const deserializeAws_restJson1DashPackage = (output: any, context: __SerdeContex
2842
2844
  output.periodTriggers !== undefined && output.periodTriggers !== null
2843
2845
  ? deserializeAws_restJson1__listOf__PeriodTriggersElement(output.periodTriggers, context)
2844
2846
  : undefined,
2845
- SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds),
2847
+ SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
2846
2848
  SegmentTemplateFormat: __expectString(output.segmentTemplateFormat),
2847
2849
  } as any;
2848
2850
  };
@@ -2876,7 +2878,7 @@ const deserializeAws_restJson1HlsManifest = (output: any, context: __SerdeContex
2876
2878
  AdMarkers: __expectString(output.adMarkers),
2877
2879
  IncludeIframeOnlyStream: __expectBoolean(output.includeIframeOnlyStream),
2878
2880
  ManifestName: __expectString(output.manifestName),
2879
- ProgramDateTimeIntervalSeconds: __expectInt(output.programDateTimeIntervalSeconds),
2881
+ ProgramDateTimeIntervalSeconds: __expectInt32(output.programDateTimeIntervalSeconds),
2880
2882
  RepeatExtXKey: __expectBoolean(output.repeatExtXKey),
2881
2883
  StreamSelection:
2882
2884
  output.streamSelection !== undefined && output.streamSelection !== null
@@ -2895,7 +2897,7 @@ const deserializeAws_restJson1HlsPackage = (output: any, context: __SerdeContext
2895
2897
  output.hlsManifests !== undefined && output.hlsManifests !== null
2896
2898
  ? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context)
2897
2899
  : undefined,
2898
- SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds),
2900
+ SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
2899
2901
  UseAudioRenditionGroup: __expectBoolean(output.useAudioRenditionGroup),
2900
2902
  } as any;
2901
2903
  };
@@ -2929,7 +2931,7 @@ const deserializeAws_restJson1MssPackage = (output: any, context: __SerdeContext
2929
2931
  output.mssManifests !== undefined && output.mssManifests !== null
2930
2932
  ? deserializeAws_restJson1__listOfMssManifest(output.mssManifests, context)
2931
2933
  : undefined,
2932
- SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds),
2934
+ SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
2933
2935
  } as any;
2934
2936
  };
2935
2937
 
@@ -2997,8 +2999,8 @@ const deserializeAws_restJson1SpekeKeyProvider = (output: any, context: __SerdeC
2997
2999
 
2998
3000
  const deserializeAws_restJson1StreamSelection = (output: any, context: __SerdeContext): StreamSelection => {
2999
3001
  return {
3000
- MaxVideoBitsPerSecond: __expectInt(output.maxVideoBitsPerSecond),
3001
- MinVideoBitsPerSecond: __expectInt(output.minVideoBitsPerSecond),
3002
+ MaxVideoBitsPerSecond: __expectInt32(output.maxVideoBitsPerSecond),
3003
+ MinVideoBitsPerSecond: __expectInt32(output.minVideoBitsPerSecond),
3002
3004
  StreamOrder: __expectString(output.streamOrder),
3003
3005
  } as any;
3004
3006
  };