@aws-sdk/client-mediapackage-vod 3.53.0 → 3.55.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 +24 -0
- package/dist-cjs/MediaPackageVodClient.js +13 -13
- package/dist-cjs/commands/ConfigureLogsCommand.js +3 -3
- package/dist-cjs/commands/CreateAssetCommand.js +3 -3
- package/dist-cjs/commands/CreatePackagingConfigurationCommand.js +3 -3
- package/dist-cjs/commands/CreatePackagingGroupCommand.js +3 -3
- package/dist-cjs/commands/DeleteAssetCommand.js +3 -3
- package/dist-cjs/commands/DeletePackagingConfigurationCommand.js +3 -3
- package/dist-cjs/commands/DeletePackagingGroupCommand.js +3 -3
- package/dist-cjs/commands/DescribeAssetCommand.js +3 -3
- package/dist-cjs/commands/DescribePackagingConfigurationCommand.js +3 -3
- package/dist-cjs/commands/DescribePackagingGroupCommand.js +3 -3
- package/dist-cjs/commands/ListAssetsCommand.js +3 -3
- package/dist-cjs/commands/ListPackagingConfigurationsCommand.js +3 -3
- package/dist-cjs/commands/ListPackagingGroupsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdatePackagingGroupCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +137 -137
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/MediaPackageVod.js +17 -17
- package/dist-es/pagination/ListAssetsPaginator.js +4 -4
- package/dist-es/pagination/ListPackagingConfigurationsPaginator.js +4 -4
- package/dist-es/pagination/ListPackagingGroupsPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +17 -17
- package/dist-types/MediaPackageVodClient.d.ts +2 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/MediaPackageVodClient.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -16,7 +16,7 @@ const serializeAws_restJson1ConfigureLogsCommand = async (input, context) => {
|
|
|
16
16
|
if (labelValue.length <= 0) {
|
|
17
17
|
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
18
18
|
}
|
|
19
|
-
resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
19
|
+
resolvedPath = resolvedPath.replace("{Id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
22
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
@@ -137,7 +137,7 @@ const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
|
|
|
137
137
|
if (labelValue.length <= 0) {
|
|
138
138
|
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
139
139
|
}
|
|
140
|
-
resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
140
|
+
resolvedPath = resolvedPath.replace("{Id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
141
141
|
}
|
|
142
142
|
else {
|
|
143
143
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
@@ -163,7 +163,7 @@ const serializeAws_restJson1DeletePackagingConfigurationCommand = async (input,
|
|
|
163
163
|
if (labelValue.length <= 0) {
|
|
164
164
|
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
165
165
|
}
|
|
166
|
-
resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
166
|
+
resolvedPath = resolvedPath.replace("{Id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
167
167
|
}
|
|
168
168
|
else {
|
|
169
169
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
@@ -189,7 +189,7 @@ const serializeAws_restJson1DeletePackagingGroupCommand = async (input, context)
|
|
|
189
189
|
if (labelValue.length <= 0) {
|
|
190
190
|
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
191
191
|
}
|
|
192
|
-
resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
192
|
+
resolvedPath = resolvedPath.replace("{Id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
193
193
|
}
|
|
194
194
|
else {
|
|
195
195
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
@@ -215,7 +215,7 @@ const serializeAws_restJson1DescribeAssetCommand = async (input, context) => {
|
|
|
215
215
|
if (labelValue.length <= 0) {
|
|
216
216
|
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
217
217
|
}
|
|
218
|
-
resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
218
|
+
resolvedPath = resolvedPath.replace("{Id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
219
219
|
}
|
|
220
220
|
else {
|
|
221
221
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
@@ -241,7 +241,7 @@ const serializeAws_restJson1DescribePackagingConfigurationCommand = async (input
|
|
|
241
241
|
if (labelValue.length <= 0) {
|
|
242
242
|
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
243
243
|
}
|
|
244
|
-
resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
244
|
+
resolvedPath = resolvedPath.replace("{Id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
245
245
|
}
|
|
246
246
|
else {
|
|
247
247
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
@@ -267,7 +267,7 @@ const serializeAws_restJson1DescribePackagingGroupCommand = async (input, contex
|
|
|
267
267
|
if (labelValue.length <= 0) {
|
|
268
268
|
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
269
269
|
}
|
|
270
|
-
resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
270
|
+
resolvedPath = resolvedPath.replace("{Id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
271
271
|
}
|
|
272
272
|
else {
|
|
273
273
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
@@ -358,7 +358,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
358
358
|
if (labelValue.length <= 0) {
|
|
359
359
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
360
360
|
}
|
|
361
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
361
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
362
362
|
}
|
|
363
363
|
else {
|
|
364
364
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -386,7 +386,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
386
386
|
if (labelValue.length <= 0) {
|
|
387
387
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
388
388
|
}
|
|
389
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
389
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
390
390
|
}
|
|
391
391
|
else {
|
|
392
392
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -416,7 +416,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
416
416
|
if (labelValue.length <= 0) {
|
|
417
417
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
418
418
|
}
|
|
419
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
419
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
420
420
|
}
|
|
421
421
|
else {
|
|
422
422
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -448,7 +448,7 @@ const serializeAws_restJson1UpdatePackagingGroupCommand = async (input, context)
|
|
|
448
448
|
if (labelValue.length <= 0) {
|
|
449
449
|
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
450
450
|
}
|
|
451
|
-
resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
451
|
+
resolvedPath = resolvedPath.replace("{Id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
452
452
|
}
|
|
453
453
|
else {
|
|
454
454
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
@@ -484,21 +484,21 @@ const deserializeAws_restJson1ConfigureLogsCommand = async (output, context) =>
|
|
|
484
484
|
Id: undefined,
|
|
485
485
|
Tags: undefined,
|
|
486
486
|
};
|
|
487
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
487
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
488
488
|
if (data.arn !== undefined && data.arn !== null) {
|
|
489
|
-
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
489
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.arn);
|
|
490
490
|
}
|
|
491
491
|
if (data.authorization !== undefined && data.authorization !== null) {
|
|
492
492
|
contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
|
|
493
493
|
}
|
|
494
494
|
if (data.domainName !== undefined && data.domainName !== null) {
|
|
495
|
-
contents.DomainName = smithy_client_1.expectString(data.domainName);
|
|
495
|
+
contents.DomainName = (0, smithy_client_1.expectString)(data.domainName);
|
|
496
496
|
}
|
|
497
497
|
if (data.egressAccessLogs !== undefined && data.egressAccessLogs !== null) {
|
|
498
498
|
contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
|
|
499
499
|
}
|
|
500
500
|
if (data.id !== undefined && data.id !== null) {
|
|
501
|
-
contents.Id = smithy_client_1.expectString(data.id);
|
|
501
|
+
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
502
502
|
}
|
|
503
503
|
if (data.tags !== undefined && data.tags !== null) {
|
|
504
504
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
@@ -540,7 +540,7 @@ const deserializeAws_restJson1ConfigureLogsCommandError = async (output, context
|
|
|
540
540
|
$fault: "client",
|
|
541
541
|
$metadata: deserializeMetadata(output),
|
|
542
542
|
});
|
|
543
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
543
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
544
544
|
}
|
|
545
545
|
};
|
|
546
546
|
const deserializeAws_restJson1CreateAssetCommand = async (output, context) => {
|
|
@@ -559,30 +559,30 @@ const deserializeAws_restJson1CreateAssetCommand = async (output, context) => {
|
|
|
559
559
|
SourceRoleArn: undefined,
|
|
560
560
|
Tags: undefined,
|
|
561
561
|
};
|
|
562
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
562
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
563
563
|
if (data.arn !== undefined && data.arn !== null) {
|
|
564
|
-
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
564
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.arn);
|
|
565
565
|
}
|
|
566
566
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
567
|
-
contents.CreatedAt = smithy_client_1.expectString(data.createdAt);
|
|
567
|
+
contents.CreatedAt = (0, smithy_client_1.expectString)(data.createdAt);
|
|
568
568
|
}
|
|
569
569
|
if (data.egressEndpoints !== undefined && data.egressEndpoints !== null) {
|
|
570
570
|
contents.EgressEndpoints = deserializeAws_restJson1__listOfEgressEndpoint(data.egressEndpoints, context);
|
|
571
571
|
}
|
|
572
572
|
if (data.id !== undefined && data.id !== null) {
|
|
573
|
-
contents.Id = smithy_client_1.expectString(data.id);
|
|
573
|
+
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
574
574
|
}
|
|
575
575
|
if (data.packagingGroupId !== undefined && data.packagingGroupId !== null) {
|
|
576
|
-
contents.PackagingGroupId = smithy_client_1.expectString(data.packagingGroupId);
|
|
576
|
+
contents.PackagingGroupId = (0, smithy_client_1.expectString)(data.packagingGroupId);
|
|
577
577
|
}
|
|
578
578
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
579
|
-
contents.ResourceId = smithy_client_1.expectString(data.resourceId);
|
|
579
|
+
contents.ResourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
580
580
|
}
|
|
581
581
|
if (data.sourceArn !== undefined && data.sourceArn !== null) {
|
|
582
|
-
contents.SourceArn = smithy_client_1.expectString(data.sourceArn);
|
|
582
|
+
contents.SourceArn = (0, smithy_client_1.expectString)(data.sourceArn);
|
|
583
583
|
}
|
|
584
584
|
if (data.sourceRoleArn !== undefined && data.sourceRoleArn !== null) {
|
|
585
|
-
contents.SourceRoleArn = smithy_client_1.expectString(data.sourceRoleArn);
|
|
585
|
+
contents.SourceRoleArn = (0, smithy_client_1.expectString)(data.sourceRoleArn);
|
|
586
586
|
}
|
|
587
587
|
if (data.tags !== undefined && data.tags !== null) {
|
|
588
588
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
@@ -624,7 +624,7 @@ const deserializeAws_restJson1CreateAssetCommandError = async (output, context)
|
|
|
624
624
|
$fault: "client",
|
|
625
625
|
$metadata: deserializeMetadata(output),
|
|
626
626
|
});
|
|
627
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
627
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
628
628
|
}
|
|
629
629
|
};
|
|
630
630
|
const deserializeAws_restJson1CreatePackagingConfigurationCommand = async (output, context) => {
|
|
@@ -642,9 +642,9 @@ const deserializeAws_restJson1CreatePackagingConfigurationCommand = async (outpu
|
|
|
642
642
|
PackagingGroupId: undefined,
|
|
643
643
|
Tags: undefined,
|
|
644
644
|
};
|
|
645
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
645
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
646
646
|
if (data.arn !== undefined && data.arn !== null) {
|
|
647
|
-
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
647
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.arn);
|
|
648
648
|
}
|
|
649
649
|
if (data.cmafPackage !== undefined && data.cmafPackage !== null) {
|
|
650
650
|
contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
|
|
@@ -656,13 +656,13 @@ const deserializeAws_restJson1CreatePackagingConfigurationCommand = async (outpu
|
|
|
656
656
|
contents.HlsPackage = deserializeAws_restJson1HlsPackage(data.hlsPackage, context);
|
|
657
657
|
}
|
|
658
658
|
if (data.id !== undefined && data.id !== null) {
|
|
659
|
-
contents.Id = smithy_client_1.expectString(data.id);
|
|
659
|
+
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
660
660
|
}
|
|
661
661
|
if (data.mssPackage !== undefined && data.mssPackage !== null) {
|
|
662
662
|
contents.MssPackage = deserializeAws_restJson1MssPackage(data.mssPackage, context);
|
|
663
663
|
}
|
|
664
664
|
if (data.packagingGroupId !== undefined && data.packagingGroupId !== null) {
|
|
665
|
-
contents.PackagingGroupId = smithy_client_1.expectString(data.packagingGroupId);
|
|
665
|
+
contents.PackagingGroupId = (0, smithy_client_1.expectString)(data.packagingGroupId);
|
|
666
666
|
}
|
|
667
667
|
if (data.tags !== undefined && data.tags !== null) {
|
|
668
668
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
@@ -704,7 +704,7 @@ const deserializeAws_restJson1CreatePackagingConfigurationCommandError = async (
|
|
|
704
704
|
$fault: "client",
|
|
705
705
|
$metadata: deserializeMetadata(output),
|
|
706
706
|
});
|
|
707
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
707
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
708
708
|
}
|
|
709
709
|
};
|
|
710
710
|
const deserializeAws_restJson1CreatePackagingGroupCommand = async (output, context) => {
|
|
@@ -720,21 +720,21 @@ const deserializeAws_restJson1CreatePackagingGroupCommand = async (output, conte
|
|
|
720
720
|
Id: undefined,
|
|
721
721
|
Tags: undefined,
|
|
722
722
|
};
|
|
723
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
723
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
724
724
|
if (data.arn !== undefined && data.arn !== null) {
|
|
725
|
-
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
725
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.arn);
|
|
726
726
|
}
|
|
727
727
|
if (data.authorization !== undefined && data.authorization !== null) {
|
|
728
728
|
contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
|
|
729
729
|
}
|
|
730
730
|
if (data.domainName !== undefined && data.domainName !== null) {
|
|
731
|
-
contents.DomainName = smithy_client_1.expectString(data.domainName);
|
|
731
|
+
contents.DomainName = (0, smithy_client_1.expectString)(data.domainName);
|
|
732
732
|
}
|
|
733
733
|
if (data.egressAccessLogs !== undefined && data.egressAccessLogs !== null) {
|
|
734
734
|
contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
|
|
735
735
|
}
|
|
736
736
|
if (data.id !== undefined && data.id !== null) {
|
|
737
|
-
contents.Id = smithy_client_1.expectString(data.id);
|
|
737
|
+
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
738
738
|
}
|
|
739
739
|
if (data.tags !== undefined && data.tags !== null) {
|
|
740
740
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
@@ -776,7 +776,7 @@ const deserializeAws_restJson1CreatePackagingGroupCommandError = async (output,
|
|
|
776
776
|
$fault: "client",
|
|
777
777
|
$metadata: deserializeMetadata(output),
|
|
778
778
|
});
|
|
779
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
779
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
780
780
|
}
|
|
781
781
|
};
|
|
782
782
|
const deserializeAws_restJson1DeleteAssetCommand = async (output, context) => {
|
|
@@ -824,7 +824,7 @@ const deserializeAws_restJson1DeleteAssetCommandError = async (output, context)
|
|
|
824
824
|
$fault: "client",
|
|
825
825
|
$metadata: deserializeMetadata(output),
|
|
826
826
|
});
|
|
827
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
827
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
828
828
|
}
|
|
829
829
|
};
|
|
830
830
|
const deserializeAws_restJson1DeletePackagingConfigurationCommand = async (output, context) => {
|
|
@@ -872,7 +872,7 @@ const deserializeAws_restJson1DeletePackagingConfigurationCommandError = async (
|
|
|
872
872
|
$fault: "client",
|
|
873
873
|
$metadata: deserializeMetadata(output),
|
|
874
874
|
});
|
|
875
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
875
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
876
876
|
}
|
|
877
877
|
};
|
|
878
878
|
const deserializeAws_restJson1DeletePackagingGroupCommand = async (output, context) => {
|
|
@@ -920,7 +920,7 @@ const deserializeAws_restJson1DeletePackagingGroupCommandError = async (output,
|
|
|
920
920
|
$fault: "client",
|
|
921
921
|
$metadata: deserializeMetadata(output),
|
|
922
922
|
});
|
|
923
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
923
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
924
924
|
}
|
|
925
925
|
};
|
|
926
926
|
const deserializeAws_restJson1DescribeAssetCommand = async (output, context) => {
|
|
@@ -939,30 +939,30 @@ const deserializeAws_restJson1DescribeAssetCommand = async (output, context) =>
|
|
|
939
939
|
SourceRoleArn: undefined,
|
|
940
940
|
Tags: undefined,
|
|
941
941
|
};
|
|
942
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
942
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
943
943
|
if (data.arn !== undefined && data.arn !== null) {
|
|
944
|
-
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
944
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.arn);
|
|
945
945
|
}
|
|
946
946
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
947
|
-
contents.CreatedAt = smithy_client_1.expectString(data.createdAt);
|
|
947
|
+
contents.CreatedAt = (0, smithy_client_1.expectString)(data.createdAt);
|
|
948
948
|
}
|
|
949
949
|
if (data.egressEndpoints !== undefined && data.egressEndpoints !== null) {
|
|
950
950
|
contents.EgressEndpoints = deserializeAws_restJson1__listOfEgressEndpoint(data.egressEndpoints, context);
|
|
951
951
|
}
|
|
952
952
|
if (data.id !== undefined && data.id !== null) {
|
|
953
|
-
contents.Id = smithy_client_1.expectString(data.id);
|
|
953
|
+
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
954
954
|
}
|
|
955
955
|
if (data.packagingGroupId !== undefined && data.packagingGroupId !== null) {
|
|
956
|
-
contents.PackagingGroupId = smithy_client_1.expectString(data.packagingGroupId);
|
|
956
|
+
contents.PackagingGroupId = (0, smithy_client_1.expectString)(data.packagingGroupId);
|
|
957
957
|
}
|
|
958
958
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
959
|
-
contents.ResourceId = smithy_client_1.expectString(data.resourceId);
|
|
959
|
+
contents.ResourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
960
960
|
}
|
|
961
961
|
if (data.sourceArn !== undefined && data.sourceArn !== null) {
|
|
962
|
-
contents.SourceArn = smithy_client_1.expectString(data.sourceArn);
|
|
962
|
+
contents.SourceArn = (0, smithy_client_1.expectString)(data.sourceArn);
|
|
963
963
|
}
|
|
964
964
|
if (data.sourceRoleArn !== undefined && data.sourceRoleArn !== null) {
|
|
965
|
-
contents.SourceRoleArn = smithy_client_1.expectString(data.sourceRoleArn);
|
|
965
|
+
contents.SourceRoleArn = (0, smithy_client_1.expectString)(data.sourceRoleArn);
|
|
966
966
|
}
|
|
967
967
|
if (data.tags !== undefined && data.tags !== null) {
|
|
968
968
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
@@ -1004,7 +1004,7 @@ const deserializeAws_restJson1DescribeAssetCommandError = async (output, context
|
|
|
1004
1004
|
$fault: "client",
|
|
1005
1005
|
$metadata: deserializeMetadata(output),
|
|
1006
1006
|
});
|
|
1007
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1007
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1008
1008
|
}
|
|
1009
1009
|
};
|
|
1010
1010
|
const deserializeAws_restJson1DescribePackagingConfigurationCommand = async (output, context) => {
|
|
@@ -1022,9 +1022,9 @@ const deserializeAws_restJson1DescribePackagingConfigurationCommand = async (out
|
|
|
1022
1022
|
PackagingGroupId: undefined,
|
|
1023
1023
|
Tags: undefined,
|
|
1024
1024
|
};
|
|
1025
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1025
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1026
1026
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1027
|
-
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
1027
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1028
1028
|
}
|
|
1029
1029
|
if (data.cmafPackage !== undefined && data.cmafPackage !== null) {
|
|
1030
1030
|
contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
|
|
@@ -1036,13 +1036,13 @@ const deserializeAws_restJson1DescribePackagingConfigurationCommand = async (out
|
|
|
1036
1036
|
contents.HlsPackage = deserializeAws_restJson1HlsPackage(data.hlsPackage, context);
|
|
1037
1037
|
}
|
|
1038
1038
|
if (data.id !== undefined && data.id !== null) {
|
|
1039
|
-
contents.Id = smithy_client_1.expectString(data.id);
|
|
1039
|
+
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
1040
1040
|
}
|
|
1041
1041
|
if (data.mssPackage !== undefined && data.mssPackage !== null) {
|
|
1042
1042
|
contents.MssPackage = deserializeAws_restJson1MssPackage(data.mssPackage, context);
|
|
1043
1043
|
}
|
|
1044
1044
|
if (data.packagingGroupId !== undefined && data.packagingGroupId !== null) {
|
|
1045
|
-
contents.PackagingGroupId = smithy_client_1.expectString(data.packagingGroupId);
|
|
1045
|
+
contents.PackagingGroupId = (0, smithy_client_1.expectString)(data.packagingGroupId);
|
|
1046
1046
|
}
|
|
1047
1047
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1048
1048
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
@@ -1084,7 +1084,7 @@ const deserializeAws_restJson1DescribePackagingConfigurationCommandError = async
|
|
|
1084
1084
|
$fault: "client",
|
|
1085
1085
|
$metadata: deserializeMetadata(output),
|
|
1086
1086
|
});
|
|
1087
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1087
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1088
1088
|
}
|
|
1089
1089
|
};
|
|
1090
1090
|
const deserializeAws_restJson1DescribePackagingGroupCommand = async (output, context) => {
|
|
@@ -1100,21 +1100,21 @@ const deserializeAws_restJson1DescribePackagingGroupCommand = async (output, con
|
|
|
1100
1100
|
Id: undefined,
|
|
1101
1101
|
Tags: undefined,
|
|
1102
1102
|
};
|
|
1103
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1103
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1104
1104
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1105
|
-
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
1105
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1106
1106
|
}
|
|
1107
1107
|
if (data.authorization !== undefined && data.authorization !== null) {
|
|
1108
1108
|
contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
|
|
1109
1109
|
}
|
|
1110
1110
|
if (data.domainName !== undefined && data.domainName !== null) {
|
|
1111
|
-
contents.DomainName = smithy_client_1.expectString(data.domainName);
|
|
1111
|
+
contents.DomainName = (0, smithy_client_1.expectString)(data.domainName);
|
|
1112
1112
|
}
|
|
1113
1113
|
if (data.egressAccessLogs !== undefined && data.egressAccessLogs !== null) {
|
|
1114
1114
|
contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
|
|
1115
1115
|
}
|
|
1116
1116
|
if (data.id !== undefined && data.id !== null) {
|
|
1117
|
-
contents.Id = smithy_client_1.expectString(data.id);
|
|
1117
|
+
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
1118
1118
|
}
|
|
1119
1119
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1120
1120
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
@@ -1156,7 +1156,7 @@ const deserializeAws_restJson1DescribePackagingGroupCommandError = async (output
|
|
|
1156
1156
|
$fault: "client",
|
|
1157
1157
|
$metadata: deserializeMetadata(output),
|
|
1158
1158
|
});
|
|
1159
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1159
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1160
1160
|
}
|
|
1161
1161
|
};
|
|
1162
1162
|
const deserializeAws_restJson1ListAssetsCommand = async (output, context) => {
|
|
@@ -1168,12 +1168,12 @@ const deserializeAws_restJson1ListAssetsCommand = async (output, context) => {
|
|
|
1168
1168
|
Assets: undefined,
|
|
1169
1169
|
NextToken: undefined,
|
|
1170
1170
|
};
|
|
1171
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1171
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1172
1172
|
if (data.assets !== undefined && data.assets !== null) {
|
|
1173
1173
|
contents.Assets = deserializeAws_restJson1__listOfAssetShallow(data.assets, context);
|
|
1174
1174
|
}
|
|
1175
1175
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1176
|
-
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
1176
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1177
1177
|
}
|
|
1178
1178
|
return Promise.resolve(contents);
|
|
1179
1179
|
};
|
|
@@ -1212,7 +1212,7 @@ const deserializeAws_restJson1ListAssetsCommandError = async (output, context) =
|
|
|
1212
1212
|
$fault: "client",
|
|
1213
1213
|
$metadata: deserializeMetadata(output),
|
|
1214
1214
|
});
|
|
1215
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1215
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1216
1216
|
}
|
|
1217
1217
|
};
|
|
1218
1218
|
const deserializeAws_restJson1ListPackagingConfigurationsCommand = async (output, context) => {
|
|
@@ -1224,9 +1224,9 @@ const deserializeAws_restJson1ListPackagingConfigurationsCommand = async (output
|
|
|
1224
1224
|
NextToken: undefined,
|
|
1225
1225
|
PackagingConfigurations: undefined,
|
|
1226
1226
|
};
|
|
1227
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1227
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1228
1228
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1229
|
-
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
1229
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1230
1230
|
}
|
|
1231
1231
|
if (data.packagingConfigurations !== undefined && data.packagingConfigurations !== null) {
|
|
1232
1232
|
contents.PackagingConfigurations = deserializeAws_restJson1__listOfPackagingConfiguration(data.packagingConfigurations, context);
|
|
@@ -1268,7 +1268,7 @@ const deserializeAws_restJson1ListPackagingConfigurationsCommandError = async (o
|
|
|
1268
1268
|
$fault: "client",
|
|
1269
1269
|
$metadata: deserializeMetadata(output),
|
|
1270
1270
|
});
|
|
1271
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1271
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1272
1272
|
}
|
|
1273
1273
|
};
|
|
1274
1274
|
const deserializeAws_restJson1ListPackagingGroupsCommand = async (output, context) => {
|
|
@@ -1280,9 +1280,9 @@ const deserializeAws_restJson1ListPackagingGroupsCommand = async (output, contex
|
|
|
1280
1280
|
NextToken: undefined,
|
|
1281
1281
|
PackagingGroups: undefined,
|
|
1282
1282
|
};
|
|
1283
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1283
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1284
1284
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1285
|
-
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
1285
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1286
1286
|
}
|
|
1287
1287
|
if (data.packagingGroups !== undefined && data.packagingGroups !== null) {
|
|
1288
1288
|
contents.PackagingGroups = deserializeAws_restJson1__listOfPackagingGroup(data.packagingGroups, context);
|
|
@@ -1324,7 +1324,7 @@ const deserializeAws_restJson1ListPackagingGroupsCommandError = async (output, c
|
|
|
1324
1324
|
$fault: "client",
|
|
1325
1325
|
$metadata: deserializeMetadata(output),
|
|
1326
1326
|
});
|
|
1327
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1327
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1328
1328
|
}
|
|
1329
1329
|
};
|
|
1330
1330
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1335,7 +1335,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
1335
1335
|
$metadata: deserializeMetadata(output),
|
|
1336
1336
|
Tags: undefined,
|
|
1337
1337
|
};
|
|
1338
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1338
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1339
1339
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1340
1340
|
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
1341
1341
|
}
|
|
@@ -1358,7 +1358,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1358
1358
|
$fault: "client",
|
|
1359
1359
|
$metadata: deserializeMetadata(output),
|
|
1360
1360
|
});
|
|
1361
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1361
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1362
1362
|
}
|
|
1363
1363
|
};
|
|
1364
1364
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -1388,7 +1388,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1388
1388
|
$fault: "client",
|
|
1389
1389
|
$metadata: deserializeMetadata(output),
|
|
1390
1390
|
});
|
|
1391
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1391
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1392
1392
|
}
|
|
1393
1393
|
};
|
|
1394
1394
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -1418,7 +1418,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1418
1418
|
$fault: "client",
|
|
1419
1419
|
$metadata: deserializeMetadata(output),
|
|
1420
1420
|
});
|
|
1421
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1421
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1422
1422
|
}
|
|
1423
1423
|
};
|
|
1424
1424
|
const deserializeAws_restJson1UpdatePackagingGroupCommand = async (output, context) => {
|
|
@@ -1434,21 +1434,21 @@ const deserializeAws_restJson1UpdatePackagingGroupCommand = async (output, conte
|
|
|
1434
1434
|
Id: undefined,
|
|
1435
1435
|
Tags: undefined,
|
|
1436
1436
|
};
|
|
1437
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1437
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1438
1438
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1439
|
-
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
1439
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1440
1440
|
}
|
|
1441
1441
|
if (data.authorization !== undefined && data.authorization !== null) {
|
|
1442
1442
|
contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
|
|
1443
1443
|
}
|
|
1444
1444
|
if (data.domainName !== undefined && data.domainName !== null) {
|
|
1445
|
-
contents.DomainName = smithy_client_1.expectString(data.domainName);
|
|
1445
|
+
contents.DomainName = (0, smithy_client_1.expectString)(data.domainName);
|
|
1446
1446
|
}
|
|
1447
1447
|
if (data.egressAccessLogs !== undefined && data.egressAccessLogs !== null) {
|
|
1448
1448
|
contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
|
|
1449
1449
|
}
|
|
1450
1450
|
if (data.id !== undefined && data.id !== null) {
|
|
1451
|
-
contents.Id = smithy_client_1.expectString(data.id);
|
|
1451
|
+
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
1452
1452
|
}
|
|
1453
1453
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1454
1454
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
@@ -1490,80 +1490,80 @@ const deserializeAws_restJson1UpdatePackagingGroupCommandError = async (output,
|
|
|
1490
1490
|
$fault: "client",
|
|
1491
1491
|
$metadata: deserializeMetadata(output),
|
|
1492
1492
|
});
|
|
1493
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1493
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1494
1494
|
}
|
|
1495
1495
|
};
|
|
1496
1496
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
1497
1497
|
const contents = {};
|
|
1498
1498
|
const data = parsedOutput.body;
|
|
1499
1499
|
if (data.message !== undefined && data.message !== null) {
|
|
1500
|
-
contents.Message = smithy_client_1.expectString(data.message);
|
|
1500
|
+
contents.Message = (0, smithy_client_1.expectString)(data.message);
|
|
1501
1501
|
}
|
|
1502
1502
|
const exception = new models_0_1.ForbiddenException({
|
|
1503
1503
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1504
1504
|
...contents,
|
|
1505
1505
|
});
|
|
1506
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1506
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1507
1507
|
};
|
|
1508
1508
|
const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
|
|
1509
1509
|
const contents = {};
|
|
1510
1510
|
const data = parsedOutput.body;
|
|
1511
1511
|
if (data.message !== undefined && data.message !== null) {
|
|
1512
|
-
contents.Message = smithy_client_1.expectString(data.message);
|
|
1512
|
+
contents.Message = (0, smithy_client_1.expectString)(data.message);
|
|
1513
1513
|
}
|
|
1514
1514
|
const exception = new models_0_1.InternalServerErrorException({
|
|
1515
1515
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1516
1516
|
...contents,
|
|
1517
1517
|
});
|
|
1518
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1518
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1519
1519
|
};
|
|
1520
1520
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1521
1521
|
const contents = {};
|
|
1522
1522
|
const data = parsedOutput.body;
|
|
1523
1523
|
if (data.message !== undefined && data.message !== null) {
|
|
1524
|
-
contents.Message = smithy_client_1.expectString(data.message);
|
|
1524
|
+
contents.Message = (0, smithy_client_1.expectString)(data.message);
|
|
1525
1525
|
}
|
|
1526
1526
|
const exception = new models_0_1.NotFoundException({
|
|
1527
1527
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1528
1528
|
...contents,
|
|
1529
1529
|
});
|
|
1530
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1530
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1531
1531
|
};
|
|
1532
1532
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
1533
1533
|
const contents = {};
|
|
1534
1534
|
const data = parsedOutput.body;
|
|
1535
1535
|
if (data.message !== undefined && data.message !== null) {
|
|
1536
|
-
contents.Message = smithy_client_1.expectString(data.message);
|
|
1536
|
+
contents.Message = (0, smithy_client_1.expectString)(data.message);
|
|
1537
1537
|
}
|
|
1538
1538
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
1539
1539
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1540
1540
|
...contents,
|
|
1541
1541
|
});
|
|
1542
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1542
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1543
1543
|
};
|
|
1544
1544
|
const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
1545
1545
|
const contents = {};
|
|
1546
1546
|
const data = parsedOutput.body;
|
|
1547
1547
|
if (data.message !== undefined && data.message !== null) {
|
|
1548
|
-
contents.Message = smithy_client_1.expectString(data.message);
|
|
1548
|
+
contents.Message = (0, smithy_client_1.expectString)(data.message);
|
|
1549
1549
|
}
|
|
1550
1550
|
const exception = new models_0_1.TooManyRequestsException({
|
|
1551
1551
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1552
1552
|
...contents,
|
|
1553
1553
|
});
|
|
1554
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1554
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1555
1555
|
};
|
|
1556
1556
|
const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (parsedOutput, context) => {
|
|
1557
1557
|
const contents = {};
|
|
1558
1558
|
const data = parsedOutput.body;
|
|
1559
1559
|
if (data.message !== undefined && data.message !== null) {
|
|
1560
|
-
contents.Message = smithy_client_1.expectString(data.message);
|
|
1560
|
+
contents.Message = (0, smithy_client_1.expectString)(data.message);
|
|
1561
1561
|
}
|
|
1562
1562
|
const exception = new models_0_1.UnprocessableEntityException({
|
|
1563
1563
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1564
1564
|
...contents,
|
|
1565
1565
|
});
|
|
1566
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1566
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1567
1567
|
};
|
|
1568
1568
|
const serializeAws_restJson1__listOf__PeriodTriggersElement = (input, context) => {
|
|
1569
1569
|
return input
|
|
@@ -1822,7 +1822,7 @@ const deserializeAws_restJson1__listOf__PeriodTriggersElement = (output, context
|
|
|
1822
1822
|
if (entry === null) {
|
|
1823
1823
|
return null;
|
|
1824
1824
|
}
|
|
1825
|
-
return smithy_client_1.expectString(entry);
|
|
1825
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1826
1826
|
});
|
|
1827
1827
|
return retVal;
|
|
1828
1828
|
};
|
|
@@ -1833,7 +1833,7 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
1833
1833
|
if (entry === null) {
|
|
1834
1834
|
return null;
|
|
1835
1835
|
}
|
|
1836
|
-
return smithy_client_1.expectString(entry);
|
|
1836
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1837
1837
|
});
|
|
1838
1838
|
return retVal;
|
|
1839
1839
|
};
|
|
@@ -1921,19 +1921,19 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
|
|
|
1921
1921
|
}
|
|
1922
1922
|
return {
|
|
1923
1923
|
...acc,
|
|
1924
|
-
[key]: smithy_client_1.expectString(value),
|
|
1924
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1925
1925
|
};
|
|
1926
1926
|
}, {});
|
|
1927
1927
|
};
|
|
1928
1928
|
const deserializeAws_restJson1AssetShallow = (output, context) => {
|
|
1929
1929
|
return {
|
|
1930
|
-
Arn: smithy_client_1.expectString(output.arn),
|
|
1931
|
-
CreatedAt: smithy_client_1.expectString(output.createdAt),
|
|
1932
|
-
Id: smithy_client_1.expectString(output.id),
|
|
1933
|
-
PackagingGroupId: smithy_client_1.expectString(output.packagingGroupId),
|
|
1934
|
-
ResourceId: smithy_client_1.expectString(output.resourceId),
|
|
1935
|
-
SourceArn: smithy_client_1.expectString(output.sourceArn),
|
|
1936
|
-
SourceRoleArn: smithy_client_1.expectString(output.sourceRoleArn),
|
|
1930
|
+
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1931
|
+
CreatedAt: (0, smithy_client_1.expectString)(output.createdAt),
|
|
1932
|
+
Id: (0, smithy_client_1.expectString)(output.id),
|
|
1933
|
+
PackagingGroupId: (0, smithy_client_1.expectString)(output.packagingGroupId),
|
|
1934
|
+
ResourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
1935
|
+
SourceArn: (0, smithy_client_1.expectString)(output.sourceArn),
|
|
1936
|
+
SourceRoleArn: (0, smithy_client_1.expectString)(output.sourceRoleArn),
|
|
1937
1937
|
Tags: output.tags !== undefined && output.tags !== null
|
|
1938
1938
|
? deserializeAws_restJson1Tags(output.tags, context)
|
|
1939
1939
|
: undefined,
|
|
@@ -1941,13 +1941,13 @@ const deserializeAws_restJson1AssetShallow = (output, context) => {
|
|
|
1941
1941
|
};
|
|
1942
1942
|
const deserializeAws_restJson1Authorization = (output, context) => {
|
|
1943
1943
|
return {
|
|
1944
|
-
CdnIdentifierSecret: smithy_client_1.expectString(output.cdnIdentifierSecret),
|
|
1945
|
-
SecretsRoleArn: smithy_client_1.expectString(output.secretsRoleArn),
|
|
1944
|
+
CdnIdentifierSecret: (0, smithy_client_1.expectString)(output.cdnIdentifierSecret),
|
|
1945
|
+
SecretsRoleArn: (0, smithy_client_1.expectString)(output.secretsRoleArn),
|
|
1946
1946
|
};
|
|
1947
1947
|
};
|
|
1948
1948
|
const deserializeAws_restJson1CmafEncryption = (output, context) => {
|
|
1949
1949
|
return {
|
|
1950
|
-
ConstantInitializationVector: smithy_client_1.expectString(output.constantInitializationVector),
|
|
1950
|
+
ConstantInitializationVector: (0, smithy_client_1.expectString)(output.constantInitializationVector),
|
|
1951
1951
|
SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null
|
|
1952
1952
|
? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
|
|
1953
1953
|
: undefined,
|
|
@@ -1961,8 +1961,8 @@ const deserializeAws_restJson1CmafPackage = (output, context) => {
|
|
|
1961
1961
|
HlsManifests: output.hlsManifests !== undefined && output.hlsManifests !== null
|
|
1962
1962
|
? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context)
|
|
1963
1963
|
: undefined,
|
|
1964
|
-
IncludeEncoderConfigurationInSegments: smithy_client_1.expectBoolean(output.includeEncoderConfigurationInSegments),
|
|
1965
|
-
SegmentDurationSeconds: smithy_client_1.expectInt32(output.segmentDurationSeconds),
|
|
1964
|
+
IncludeEncoderConfigurationInSegments: (0, smithy_client_1.expectBoolean)(output.includeEncoderConfigurationInSegments),
|
|
1965
|
+
SegmentDurationSeconds: (0, smithy_client_1.expectInt32)(output.segmentDurationSeconds),
|
|
1966
1966
|
};
|
|
1967
1967
|
};
|
|
1968
1968
|
const deserializeAws_restJson1DashEncryption = (output, context) => {
|
|
@@ -1974,10 +1974,10 @@ const deserializeAws_restJson1DashEncryption = (output, context) => {
|
|
|
1974
1974
|
};
|
|
1975
1975
|
const deserializeAws_restJson1DashManifest = (output, context) => {
|
|
1976
1976
|
return {
|
|
1977
|
-
ManifestLayout: smithy_client_1.expectString(output.manifestLayout),
|
|
1978
|
-
ManifestName: smithy_client_1.expectString(output.manifestName),
|
|
1979
|
-
MinBufferTimeSeconds: smithy_client_1.expectInt32(output.minBufferTimeSeconds),
|
|
1980
|
-
Profile: smithy_client_1.expectString(output.profile),
|
|
1977
|
+
ManifestLayout: (0, smithy_client_1.expectString)(output.manifestLayout),
|
|
1978
|
+
ManifestName: (0, smithy_client_1.expectString)(output.manifestName),
|
|
1979
|
+
MinBufferTimeSeconds: (0, smithy_client_1.expectInt32)(output.minBufferTimeSeconds),
|
|
1980
|
+
Profile: (0, smithy_client_1.expectString)(output.profile),
|
|
1981
1981
|
StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null
|
|
1982
1982
|
? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
|
|
1983
1983
|
: undefined,
|
|
@@ -1991,30 +1991,30 @@ const deserializeAws_restJson1DashPackage = (output, context) => {
|
|
|
1991
1991
|
Encryption: output.encryption !== undefined && output.encryption !== null
|
|
1992
1992
|
? deserializeAws_restJson1DashEncryption(output.encryption, context)
|
|
1993
1993
|
: undefined,
|
|
1994
|
-
IncludeEncoderConfigurationInSegments: smithy_client_1.expectBoolean(output.includeEncoderConfigurationInSegments),
|
|
1994
|
+
IncludeEncoderConfigurationInSegments: (0, smithy_client_1.expectBoolean)(output.includeEncoderConfigurationInSegments),
|
|
1995
1995
|
PeriodTriggers: output.periodTriggers !== undefined && output.periodTriggers !== null
|
|
1996
1996
|
? deserializeAws_restJson1__listOf__PeriodTriggersElement(output.periodTriggers, context)
|
|
1997
1997
|
: undefined,
|
|
1998
|
-
SegmentDurationSeconds: smithy_client_1.expectInt32(output.segmentDurationSeconds),
|
|
1999
|
-
SegmentTemplateFormat: smithy_client_1.expectString(output.segmentTemplateFormat),
|
|
1998
|
+
SegmentDurationSeconds: (0, smithy_client_1.expectInt32)(output.segmentDurationSeconds),
|
|
1999
|
+
SegmentTemplateFormat: (0, smithy_client_1.expectString)(output.segmentTemplateFormat),
|
|
2000
2000
|
};
|
|
2001
2001
|
};
|
|
2002
2002
|
const deserializeAws_restJson1EgressAccessLogs = (output, context) => {
|
|
2003
2003
|
return {
|
|
2004
|
-
LogGroupName: smithy_client_1.expectString(output.logGroupName),
|
|
2004
|
+
LogGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
|
|
2005
2005
|
};
|
|
2006
2006
|
};
|
|
2007
2007
|
const deserializeAws_restJson1EgressEndpoint = (output, context) => {
|
|
2008
2008
|
return {
|
|
2009
|
-
PackagingConfigurationId: smithy_client_1.expectString(output.packagingConfigurationId),
|
|
2010
|
-
Status: smithy_client_1.expectString(output.status),
|
|
2011
|
-
Url: smithy_client_1.expectString(output.url),
|
|
2009
|
+
PackagingConfigurationId: (0, smithy_client_1.expectString)(output.packagingConfigurationId),
|
|
2010
|
+
Status: (0, smithy_client_1.expectString)(output.status),
|
|
2011
|
+
Url: (0, smithy_client_1.expectString)(output.url),
|
|
2012
2012
|
};
|
|
2013
2013
|
};
|
|
2014
2014
|
const deserializeAws_restJson1HlsEncryption = (output, context) => {
|
|
2015
2015
|
return {
|
|
2016
|
-
ConstantInitializationVector: smithy_client_1.expectString(output.constantInitializationVector),
|
|
2017
|
-
EncryptionMethod: smithy_client_1.expectString(output.encryptionMethod),
|
|
2016
|
+
ConstantInitializationVector: (0, smithy_client_1.expectString)(output.constantInitializationVector),
|
|
2017
|
+
EncryptionMethod: (0, smithy_client_1.expectString)(output.encryptionMethod),
|
|
2018
2018
|
SpekeKeyProvider: output.spekeKeyProvider !== undefined && output.spekeKeyProvider !== null
|
|
2019
2019
|
? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
|
|
2020
2020
|
: undefined,
|
|
@@ -2022,11 +2022,11 @@ const deserializeAws_restJson1HlsEncryption = (output, context) => {
|
|
|
2022
2022
|
};
|
|
2023
2023
|
const deserializeAws_restJson1HlsManifest = (output, context) => {
|
|
2024
2024
|
return {
|
|
2025
|
-
AdMarkers: smithy_client_1.expectString(output.adMarkers),
|
|
2026
|
-
IncludeIframeOnlyStream: smithy_client_1.expectBoolean(output.includeIframeOnlyStream),
|
|
2027
|
-
ManifestName: smithy_client_1.expectString(output.manifestName),
|
|
2028
|
-
ProgramDateTimeIntervalSeconds: smithy_client_1.expectInt32(output.programDateTimeIntervalSeconds),
|
|
2029
|
-
RepeatExtXKey: smithy_client_1.expectBoolean(output.repeatExtXKey),
|
|
2025
|
+
AdMarkers: (0, smithy_client_1.expectString)(output.adMarkers),
|
|
2026
|
+
IncludeIframeOnlyStream: (0, smithy_client_1.expectBoolean)(output.includeIframeOnlyStream),
|
|
2027
|
+
ManifestName: (0, smithy_client_1.expectString)(output.manifestName),
|
|
2028
|
+
ProgramDateTimeIntervalSeconds: (0, smithy_client_1.expectInt32)(output.programDateTimeIntervalSeconds),
|
|
2029
|
+
RepeatExtXKey: (0, smithy_client_1.expectBoolean)(output.repeatExtXKey),
|
|
2030
2030
|
StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null
|
|
2031
2031
|
? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
|
|
2032
2032
|
: undefined,
|
|
@@ -2040,9 +2040,9 @@ const deserializeAws_restJson1HlsPackage = (output, context) => {
|
|
|
2040
2040
|
HlsManifests: output.hlsManifests !== undefined && output.hlsManifests !== null
|
|
2041
2041
|
? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context)
|
|
2042
2042
|
: undefined,
|
|
2043
|
-
IncludeDvbSubtitles: smithy_client_1.expectBoolean(output.includeDvbSubtitles),
|
|
2044
|
-
SegmentDurationSeconds: smithy_client_1.expectInt32(output.segmentDurationSeconds),
|
|
2045
|
-
UseAudioRenditionGroup: smithy_client_1.expectBoolean(output.useAudioRenditionGroup),
|
|
2043
|
+
IncludeDvbSubtitles: (0, smithy_client_1.expectBoolean)(output.includeDvbSubtitles),
|
|
2044
|
+
SegmentDurationSeconds: (0, smithy_client_1.expectInt32)(output.segmentDurationSeconds),
|
|
2045
|
+
UseAudioRenditionGroup: (0, smithy_client_1.expectBoolean)(output.useAudioRenditionGroup),
|
|
2046
2046
|
};
|
|
2047
2047
|
};
|
|
2048
2048
|
const deserializeAws_restJson1MssEncryption = (output, context) => {
|
|
@@ -2054,7 +2054,7 @@ const deserializeAws_restJson1MssEncryption = (output, context) => {
|
|
|
2054
2054
|
};
|
|
2055
2055
|
const deserializeAws_restJson1MssManifest = (output, context) => {
|
|
2056
2056
|
return {
|
|
2057
|
-
ManifestName: smithy_client_1.expectString(output.manifestName),
|
|
2057
|
+
ManifestName: (0, smithy_client_1.expectString)(output.manifestName),
|
|
2058
2058
|
StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null
|
|
2059
2059
|
? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
|
|
2060
2060
|
: undefined,
|
|
@@ -2068,12 +2068,12 @@ const deserializeAws_restJson1MssPackage = (output, context) => {
|
|
|
2068
2068
|
MssManifests: output.mssManifests !== undefined && output.mssManifests !== null
|
|
2069
2069
|
? deserializeAws_restJson1__listOfMssManifest(output.mssManifests, context)
|
|
2070
2070
|
: undefined,
|
|
2071
|
-
SegmentDurationSeconds: smithy_client_1.expectInt32(output.segmentDurationSeconds),
|
|
2071
|
+
SegmentDurationSeconds: (0, smithy_client_1.expectInt32)(output.segmentDurationSeconds),
|
|
2072
2072
|
};
|
|
2073
2073
|
};
|
|
2074
2074
|
const deserializeAws_restJson1PackagingConfiguration = (output, context) => {
|
|
2075
2075
|
return {
|
|
2076
|
-
Arn: smithy_client_1.expectString(output.arn),
|
|
2076
|
+
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2077
2077
|
CmafPackage: output.cmafPackage !== undefined && output.cmafPackage !== null
|
|
2078
2078
|
? deserializeAws_restJson1CmafPackage(output.cmafPackage, context)
|
|
2079
2079
|
: undefined,
|
|
@@ -2083,11 +2083,11 @@ const deserializeAws_restJson1PackagingConfiguration = (output, context) => {
|
|
|
2083
2083
|
HlsPackage: output.hlsPackage !== undefined && output.hlsPackage !== null
|
|
2084
2084
|
? deserializeAws_restJson1HlsPackage(output.hlsPackage, context)
|
|
2085
2085
|
: undefined,
|
|
2086
|
-
Id: smithy_client_1.expectString(output.id),
|
|
2086
|
+
Id: (0, smithy_client_1.expectString)(output.id),
|
|
2087
2087
|
MssPackage: output.mssPackage !== undefined && output.mssPackage !== null
|
|
2088
2088
|
? deserializeAws_restJson1MssPackage(output.mssPackage, context)
|
|
2089
2089
|
: undefined,
|
|
2090
|
-
PackagingGroupId: smithy_client_1.expectString(output.packagingGroupId),
|
|
2090
|
+
PackagingGroupId: (0, smithy_client_1.expectString)(output.packagingGroupId),
|
|
2091
2091
|
Tags: output.tags !== undefined && output.tags !== null
|
|
2092
2092
|
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2093
2093
|
: undefined,
|
|
@@ -2095,15 +2095,15 @@ const deserializeAws_restJson1PackagingConfiguration = (output, context) => {
|
|
|
2095
2095
|
};
|
|
2096
2096
|
const deserializeAws_restJson1PackagingGroup = (output, context) => {
|
|
2097
2097
|
return {
|
|
2098
|
-
Arn: smithy_client_1.expectString(output.arn),
|
|
2098
|
+
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2099
2099
|
Authorization: output.authorization !== undefined && output.authorization !== null
|
|
2100
2100
|
? deserializeAws_restJson1Authorization(output.authorization, context)
|
|
2101
2101
|
: undefined,
|
|
2102
|
-
DomainName: smithy_client_1.expectString(output.domainName),
|
|
2102
|
+
DomainName: (0, smithy_client_1.expectString)(output.domainName),
|
|
2103
2103
|
EgressAccessLogs: output.egressAccessLogs !== undefined && output.egressAccessLogs !== null
|
|
2104
2104
|
? deserializeAws_restJson1EgressAccessLogs(output.egressAccessLogs, context)
|
|
2105
2105
|
: undefined,
|
|
2106
|
-
Id: smithy_client_1.expectString(output.id),
|
|
2106
|
+
Id: (0, smithy_client_1.expectString)(output.id),
|
|
2107
2107
|
Tags: output.tags !== undefined && output.tags !== null
|
|
2108
2108
|
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2109
2109
|
: undefined,
|
|
@@ -2111,18 +2111,18 @@ const deserializeAws_restJson1PackagingGroup = (output, context) => {
|
|
|
2111
2111
|
};
|
|
2112
2112
|
const deserializeAws_restJson1SpekeKeyProvider = (output, context) => {
|
|
2113
2113
|
return {
|
|
2114
|
-
RoleArn: smithy_client_1.expectString(output.roleArn),
|
|
2114
|
+
RoleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
2115
2115
|
SystemIds: output.systemIds !== undefined && output.systemIds !== null
|
|
2116
2116
|
? deserializeAws_restJson1__listOf__string(output.systemIds, context)
|
|
2117
2117
|
: undefined,
|
|
2118
|
-
Url: smithy_client_1.expectString(output.url),
|
|
2118
|
+
Url: (0, smithy_client_1.expectString)(output.url),
|
|
2119
2119
|
};
|
|
2120
2120
|
};
|
|
2121
2121
|
const deserializeAws_restJson1StreamSelection = (output, context) => {
|
|
2122
2122
|
return {
|
|
2123
|
-
MaxVideoBitsPerSecond: smithy_client_1.expectInt32(output.maxVideoBitsPerSecond),
|
|
2124
|
-
MinVideoBitsPerSecond: smithy_client_1.expectInt32(output.minVideoBitsPerSecond),
|
|
2125
|
-
StreamOrder: smithy_client_1.expectString(output.streamOrder),
|
|
2123
|
+
MaxVideoBitsPerSecond: (0, smithy_client_1.expectInt32)(output.maxVideoBitsPerSecond),
|
|
2124
|
+
MinVideoBitsPerSecond: (0, smithy_client_1.expectInt32)(output.minVideoBitsPerSecond),
|
|
2125
|
+
StreamOrder: (0, smithy_client_1.expectString)(output.streamOrder),
|
|
2126
2126
|
};
|
|
2127
2127
|
};
|
|
2128
2128
|
const deserializeAws_restJson1Tags = (output, context) => {
|
|
@@ -2132,7 +2132,7 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
2132
2132
|
}
|
|
2133
2133
|
return {
|
|
2134
2134
|
...acc,
|
|
2135
|
-
[key]: smithy_client_1.expectString(value),
|
|
2135
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
2136
2136
|
};
|
|
2137
2137
|
}, {});
|
|
2138
2138
|
};
|