@aws-sdk/client-mediaconvert 3.36.1 → 3.40.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 +43 -0
- package/dist-cjs/MediaConvert.js +45 -0
- package/dist-cjs/commands/DeletePolicyCommand.js +36 -0
- package/dist-cjs/commands/GetPolicyCommand.js +36 -0
- package/dist-cjs/commands/PutPolicyCommand.js +36 -0
- package/dist-cjs/commands/UpdateQueueCommand.js +3 -3
- package/dist-cjs/commands/index.js +31 -0
- package/dist-cjs/endpoints.js +142 -26
- package/dist-cjs/index.js +4 -33
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +9 -9
- package/dist-cjs/models/models_1.js +58 -18
- package/dist-cjs/models/models_2.js +15 -0
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_restJson1.js +339 -1
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/MediaConvert.js +45 -0
- package/dist-es/commands/DeletePolicyCommand.js +39 -0
- package/dist-es/commands/GetPolicyCommand.js +39 -0
- package/dist-es/commands/PutPolicyCommand.js +39 -0
- package/dist-es/commands/UpdateQueueCommand.js +1 -1
- package/dist-es/commands/index.js +28 -0
- package/dist-es/endpoints.js +142 -26
- package/dist-es/index.js +4 -33
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +5 -5
- package/dist-es/models/models_1.js +38 -8
- package/dist-es/models/models_2.js +9 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +387 -2
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/MediaConvert.d.ts +21 -0
- package/dist-types/MediaConvertClient.d.ts +13 -2
- package/dist-types/commands/DeletePolicyCommand.d.ts +35 -0
- package/dist-types/commands/GetPolicyCommand.d.ts +35 -0
- package/dist-types/commands/PutPolicyCommand.d.ts +35 -0
- package/dist-types/commands/UpdateQueueCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +28 -0
- package/dist-types/index.d.ts +4 -33
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +64 -66
- package/dist-types/models/models_1.d.ts +92 -37
- package/dist-types/models/models_2.d.ts +37 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/MediaConvert.d.ts +15 -0
- package/dist-types/ts3.4/MediaConvertClient.d.ts +9 -2
- package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateQueueCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +28 -0
- package/dist-types/ts3.4/index.d.ts +4 -33
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +6 -4
- package/dist-types/ts3.4/models/models_1.d.ts +64 -23
- package/dist-types/ts3.4/models/models_2.d.ts +23 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +32 -32
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
3
|
+
exports.H264CodecLevel = exports.H264AdaptiveQuantization = exports.FrameCaptureSettings = exports.VideoCodec = exports.AvcIntraSettings = exports.AvcIntraTelecine = exports.AvcIntraSlowPal = exports.AvcIntraScanTypeConversionMode = exports.AvcIntraInterlaceMode = exports.AvcIntraFramerateConversionAlgorithm = exports.AvcIntraFramerateControl = exports.AvcIntraUhdSettings = exports.AvcIntraUhdQualityTuningLevel = exports.AvcIntraClass = exports.Av1Settings = exports.Av1SpatialAdaptiveQuantization = exports.Av1RateControlMode = exports.Av1QvbrSettings = exports.Av1FramerateConversionAlgorithm = exports.Av1FramerateControl = exports.Av1AdaptiveQuantization = exports.AntiAlias = exports.AfdSignaling = exports.OutputSettings = exports.HlsSettings = exports.HlsIFrameOnlyManifest = exports.HlsDescriptiveVideoServiceFlag = exports.HlsAudioTrackType = exports.HlsAudioOnlyContainer = exports.ContainerSettings = exports.MxfSettings = exports.MxfXavcProfileSettings = exports.MxfXavcDurationMode = exports.MxfProfile = exports.MxfAfdSignaling = exports.MpdSettings = exports.MpdScte35Source = exports.MpdScte35Esam = exports.MpdCaptionContainerType = exports.MpdAudioDuration = exports.MpdAccessibilityCaptionHints = exports.Mp4Settings = exports.Mp4MoovPlacement = exports.Mp4FreeSpaceBox = exports.Mp4CslgAtom = exports.MovSettings = exports.MovReference = exports.MovPaddingControl = exports.MovMpeg2FourCCControl = exports.MovCslgAtom = void 0;
|
|
4
|
+
exports.H265WriteMp4PackagingType = exports.H265UnregisteredSeiTimecode = exports.H265Tiles = exports.H265TemporalIds = exports.H265TemporalAdaptiveQuantization = exports.H265Telecine = exports.H265SpatialAdaptiveQuantization = exports.H265SlowPal = exports.H265SceneChangeDetect = exports.H265ScanTypeConversionMode = exports.H265SampleAdaptiveOffsetFilterMode = exports.H265RateControlMode = exports.H265QvbrSettings = exports.H265QualityTuningLevel = exports.H265ParControl = exports.H265InterlaceMode = exports.H265GopSizeUnits = exports.H265GopBReference = exports.H265FramerateConversionAlgorithm = exports.H265FramerateControl = exports.H265FlickerAdaptiveQuantization = exports.H265DynamicSubGop = exports.H265CodecProfile = exports.H265CodecLevel = exports.H265AlternateTransferFunctionSei = exports.H265AdaptiveQuantization = exports.H264Settings = exports.H264UnregisteredSeiTimecode = exports.H264TemporalAdaptiveQuantization = exports.H264Telecine = exports.H264Syntax = exports.H264SpatialAdaptiveQuantization = exports.H264SlowPal = exports.H264SceneChangeDetect = exports.H264ScanTypeConversionMode = exports.H264RepeatPps = exports.H264RateControlMode = exports.H264QvbrSettings = exports.H264QualityTuningLevel = exports.H264ParControl = exports.H264InterlaceMode = exports.H264GopSizeUnits = exports.H264GopBReference = exports.H264FramerateConversionAlgorithm = exports.H264FramerateControl = exports.H264FlickerAdaptiveQuantization = exports.H264FieldEncoding = exports.H264EntropyEncoding = exports.H264DynamicSubGop = exports.H264CodecProfile = void 0;
|
|
5
|
+
exports.Vp9RateControlMode = exports.Vp9QualityTuningLevel = exports.Vp9ParControl = exports.Vp9FramerateConversionAlgorithm = exports.Vp9FramerateControl = exports.Vp8Settings = exports.Vp8RateControlMode = exports.Vp8QualityTuningLevel = exports.Vp8ParControl = exports.Vp8FramerateConversionAlgorithm = exports.Vp8FramerateControl = exports.Vc3Settings = exports.Vc3Class = exports.Vc3Telecine = exports.Vc3SlowPal = exports.Vc3ScanTypeConversionMode = exports.Vc3InterlaceMode = exports.Vc3FramerateConversionAlgorithm = exports.Vc3FramerateControl = exports.ProresSettings = exports.ProresTelecine = exports.ProresSlowPal = exports.ProresScanTypeConversionMode = exports.ProresParControl = exports.ProresInterlaceMode = exports.ProresFramerateConversionAlgorithm = exports.ProresFramerateControl = exports.ProresCodecProfile = exports.ProresChromaSampling = exports.Mpeg2Settings = exports.Mpeg2TemporalAdaptiveQuantization = exports.Mpeg2Telecine = exports.Mpeg2Syntax = exports.Mpeg2SpatialAdaptiveQuantization = exports.Mpeg2SlowPal = exports.Mpeg2SceneChangeDetect = exports.Mpeg2ScanTypeConversionMode = exports.Mpeg2RateControlMode = exports.Mpeg2QualityTuningLevel = exports.Mpeg2ParControl = exports.Mpeg2IntraDcPrecision = exports.Mpeg2InterlaceMode = exports.Mpeg2GopSizeUnits = exports.Mpeg2FramerateConversionAlgorithm = exports.Mpeg2FramerateControl = exports.Mpeg2DynamicSubGop = exports.Mpeg2CodecProfile = exports.Mpeg2CodecLevel = exports.Mpeg2AdaptiveQuantization = exports.H265Settings = void 0;
|
|
6
|
+
exports.NoiseReducerTemporalFilterSettings = exports.NoiseFilterPostTemporalSharpening = exports.NoiseReducerSpatialFilterSettings = exports.NoiseReducerFilterSettings = exports.NoiseReducerFilter = exports.Hdr10Plus = exports.DolbyVision = exports.DolbyVisionProfile = exports.DolbyVisionLevel6Mode = exports.DolbyVisionLevel6Metadata = exports.Deinterlacer = exports.DeinterlacerMode = exports.DeinterlacerControl = exports.DeinterlaceAlgorithm = exports.ColorCorrector = exports.SampleRangeConversion = exports.ColorSpaceConversion = exports.VideoTimecodeInsertion = exports.ScalingBehavior = exports.RespondToAfd = exports.DropFrameTimecode = exports.ColorMetadata = exports.VideoCodecSettings = exports.XavcSettings = exports.XavcHdProfileSettings = exports.XavcHdProfileTelecine = exports.XavcHdProfileQualityTuningLevel = exports.XavcInterlaceMode = exports.XavcHdProfileBitrateClass = exports.XavcHdIntraCbgProfileSettings = exports.XavcHdIntraCbgProfileClass = exports.Xavc4kProfileSettings = exports.Xavc4kProfileQualityTuningLevel = exports.XavcGopBReference = exports.XavcFlickerAdaptiveQuantization = exports.Xavc4kProfileCodecProfile = exports.Xavc4kProfileBitrateClass = exports.Xavc4kIntraVbrProfileSettings = exports.Xavc4kIntraVbrProfileClass = exports.Xavc4kIntraCbgProfileSettings = exports.Xavc4kIntraCbgProfileClass = exports.XavcTemporalAdaptiveQuantization = exports.XavcSpatialAdaptiveQuantization = exports.XavcSlowPal = exports.XavcProfile = exports.XavcFramerateConversionAlgorithm = exports.XavcFramerateControl = exports.XavcEntropyEncoding = exports.XavcAdaptiveQuantization = exports.Vp9Settings = void 0;
|
|
7
|
+
exports.CreateQueueResponse = exports.CreateQueueRequest = exports.ReservationPlanSettings = exports.CreatePresetResponse = exports.CreatePresetRequest = exports.CreateJobTemplateResponse = exports.CreateJobTemplateRequest = exports.CreateJobResponse = exports.CreateJobRequest = exports.CancelJobResponse = exports.CancelJobRequest = exports.TooManyRequestsException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.ConflictException = exports.BadRequestException = exports.AssociateCertificateResponse = exports.AssociateCertificateRequest = exports.Queue = exports.QueueStatus = exports.ReservationPlan = exports.ReservationPlanStatus = exports.RenewalType = exports.Commitment = exports.PricingPlan = exports.Preset = exports.PresetSettings = exports.JobTemplate = exports.Type = exports.JobTemplateSettings = exports.Job = exports.Timing = exports.StatusUpdateInterval = exports.JobStatus = exports.SimulateReservedQueue = exports.JobSettings = exports.TimedMetadataInsertion = exports.TimecodeConfig = exports.TimecodeSource = exports.OutputGroup = exports.Output = exports.VideoDescription = exports.VideoPreprocessor = exports.TimecodeBurnin = exports.TimecodeBurninPosition = exports.PartnerWatermarking = exports.NexGuardFileMarkerSettings = exports.WatermarkingStrength = exports.NoiseReducer = void 0;
|
|
8
|
+
exports.UpdatePresetResponse = exports.UpdatePresetRequest = exports.UpdateJobTemplateResponse = exports.UpdateJobTemplateRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.PutPolicyResponse = exports.PutPolicyRequest = exports.ListTagsForResourceResponse = exports.ResourceTags = exports.ListTagsForResourceRequest = exports.ListQueuesResponse = exports.ListQueuesRequest = exports.QueueListBy = exports.ListPresetsResponse = exports.ListPresetsRequest = exports.PresetListBy = exports.ListJobTemplatesResponse = exports.ListJobTemplatesRequest = exports.ListJobsResponse = exports.ListJobsRequest = exports.Order = exports.JobTemplateListBy = exports.GetQueueResponse = exports.GetQueueRequest = exports.GetPresetResponse = exports.GetPresetRequest = exports.GetPolicyResponse = exports.Policy = exports.InputPolicy = exports.GetPolicyRequest = exports.GetJobTemplateResponse = exports.GetJobTemplateRequest = exports.GetJobResponse = exports.GetJobRequest = exports.DisassociateCertificateResponse = exports.DisassociateCertificateRequest = exports.DescribeEndpointsResponse = exports.DescribeEndpointsRequest = exports.DescribeEndpointsMode = exports.DeleteQueueResponse = exports.DeleteQueueRequest = exports.DeletePresetResponse = exports.DeletePresetRequest = exports.DeletePolicyResponse = exports.DeletePolicyRequest = exports.DeleteJobTemplateResponse = exports.DeleteJobTemplateRequest = void 0;
|
|
9
|
+
var MovCslgAtom;
|
|
10
|
+
(function (MovCslgAtom) {
|
|
11
|
+
MovCslgAtom["EXCLUDE"] = "EXCLUDE";
|
|
12
|
+
MovCslgAtom["INCLUDE"] = "INCLUDE";
|
|
13
|
+
})(MovCslgAtom = exports.MovCslgAtom || (exports.MovCslgAtom = {}));
|
|
9
14
|
var MovMpeg2FourCCControl;
|
|
10
15
|
(function (MovMpeg2FourCCControl) {
|
|
11
16
|
MovMpeg2FourCCControl["MPEG"] = "MPEG";
|
|
@@ -1509,6 +1514,18 @@ var DeleteJobTemplateResponse;
|
|
|
1509
1514
|
...obj,
|
|
1510
1515
|
});
|
|
1511
1516
|
})(DeleteJobTemplateResponse = exports.DeleteJobTemplateResponse || (exports.DeleteJobTemplateResponse = {}));
|
|
1517
|
+
var DeletePolicyRequest;
|
|
1518
|
+
(function (DeletePolicyRequest) {
|
|
1519
|
+
DeletePolicyRequest.filterSensitiveLog = (obj) => ({
|
|
1520
|
+
...obj,
|
|
1521
|
+
});
|
|
1522
|
+
})(DeletePolicyRequest = exports.DeletePolicyRequest || (exports.DeletePolicyRequest = {}));
|
|
1523
|
+
var DeletePolicyResponse;
|
|
1524
|
+
(function (DeletePolicyResponse) {
|
|
1525
|
+
DeletePolicyResponse.filterSensitiveLog = (obj) => ({
|
|
1526
|
+
...obj,
|
|
1527
|
+
});
|
|
1528
|
+
})(DeletePolicyResponse = exports.DeletePolicyResponse || (exports.DeletePolicyResponse = {}));
|
|
1512
1529
|
var DeletePresetRequest;
|
|
1513
1530
|
(function (DeletePresetRequest) {
|
|
1514
1531
|
DeletePresetRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1586,6 +1603,29 @@ var GetJobTemplateResponse;
|
|
|
1586
1603
|
...obj,
|
|
1587
1604
|
});
|
|
1588
1605
|
})(GetJobTemplateResponse = exports.GetJobTemplateResponse || (exports.GetJobTemplateResponse = {}));
|
|
1606
|
+
var GetPolicyRequest;
|
|
1607
|
+
(function (GetPolicyRequest) {
|
|
1608
|
+
GetPolicyRequest.filterSensitiveLog = (obj) => ({
|
|
1609
|
+
...obj,
|
|
1610
|
+
});
|
|
1611
|
+
})(GetPolicyRequest = exports.GetPolicyRequest || (exports.GetPolicyRequest = {}));
|
|
1612
|
+
var InputPolicy;
|
|
1613
|
+
(function (InputPolicy) {
|
|
1614
|
+
InputPolicy["ALLOWED"] = "ALLOWED";
|
|
1615
|
+
InputPolicy["DISALLOWED"] = "DISALLOWED";
|
|
1616
|
+
})(InputPolicy = exports.InputPolicy || (exports.InputPolicy = {}));
|
|
1617
|
+
var Policy;
|
|
1618
|
+
(function (Policy) {
|
|
1619
|
+
Policy.filterSensitiveLog = (obj) => ({
|
|
1620
|
+
...obj,
|
|
1621
|
+
});
|
|
1622
|
+
})(Policy = exports.Policy || (exports.Policy = {}));
|
|
1623
|
+
var GetPolicyResponse;
|
|
1624
|
+
(function (GetPolicyResponse) {
|
|
1625
|
+
GetPolicyResponse.filterSensitiveLog = (obj) => ({
|
|
1626
|
+
...obj,
|
|
1627
|
+
});
|
|
1628
|
+
})(GetPolicyResponse = exports.GetPolicyResponse || (exports.GetPolicyResponse = {}));
|
|
1589
1629
|
var GetPresetRequest;
|
|
1590
1630
|
(function (GetPresetRequest) {
|
|
1591
1631
|
GetPresetRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1698,6 +1738,18 @@ var ListTagsForResourceResponse;
|
|
|
1698
1738
|
...obj,
|
|
1699
1739
|
});
|
|
1700
1740
|
})(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
|
|
1741
|
+
var PutPolicyRequest;
|
|
1742
|
+
(function (PutPolicyRequest) {
|
|
1743
|
+
PutPolicyRequest.filterSensitiveLog = (obj) => ({
|
|
1744
|
+
...obj,
|
|
1745
|
+
});
|
|
1746
|
+
})(PutPolicyRequest = exports.PutPolicyRequest || (exports.PutPolicyRequest = {}));
|
|
1747
|
+
var PutPolicyResponse;
|
|
1748
|
+
(function (PutPolicyResponse) {
|
|
1749
|
+
PutPolicyResponse.filterSensitiveLog = (obj) => ({
|
|
1750
|
+
...obj,
|
|
1751
|
+
});
|
|
1752
|
+
})(PutPolicyResponse = exports.PutPolicyResponse || (exports.PutPolicyResponse = {}));
|
|
1701
1753
|
var TagResourceRequest;
|
|
1702
1754
|
(function (TagResourceRequest) {
|
|
1703
1755
|
TagResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1746,15 +1798,3 @@ var UpdatePresetResponse;
|
|
|
1746
1798
|
...obj,
|
|
1747
1799
|
});
|
|
1748
1800
|
})(UpdatePresetResponse = exports.UpdatePresetResponse || (exports.UpdatePresetResponse = {}));
|
|
1749
|
-
var UpdateQueueRequest;
|
|
1750
|
-
(function (UpdateQueueRequest) {
|
|
1751
|
-
UpdateQueueRequest.filterSensitiveLog = (obj) => ({
|
|
1752
|
-
...obj,
|
|
1753
|
-
});
|
|
1754
|
-
})(UpdateQueueRequest = exports.UpdateQueueRequest || (exports.UpdateQueueRequest = {}));
|
|
1755
|
-
var UpdateQueueResponse;
|
|
1756
|
-
(function (UpdateQueueResponse) {
|
|
1757
|
-
UpdateQueueResponse.filterSensitiveLog = (obj) => ({
|
|
1758
|
-
...obj,
|
|
1759
|
-
});
|
|
1760
|
-
})(UpdateQueueResponse = exports.UpdateQueueResponse || (exports.UpdateQueueResponse = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateQueueResponse = exports.UpdateQueueRequest = void 0;
|
|
4
|
+
var UpdateQueueRequest;
|
|
5
|
+
(function (UpdateQueueRequest) {
|
|
6
|
+
UpdateQueueRequest.filterSensitiveLog = (obj) => ({
|
|
7
|
+
...obj,
|
|
8
|
+
});
|
|
9
|
+
})(UpdateQueueRequest = exports.UpdateQueueRequest || (exports.UpdateQueueRequest = {}));
|
|
10
|
+
var UpdateQueueResponse;
|
|
11
|
+
(function (UpdateQueueResponse) {
|
|
12
|
+
UpdateQueueResponse.filterSensitiveLog = (obj) => ({
|
|
13
|
+
...obj,
|
|
14
|
+
});
|
|
15
|
+
})(UpdateQueueResponse = exports.UpdateQueueResponse || (exports.UpdateQueueResponse = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DescribeEndpointsPaginator"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListJobTemplatesPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListJobsPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListPresetsPaginator"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ListQueuesPaginator"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListPresetsCommand = exports.deserializeAws_restJson1ListJobTemplatesCommand = exports.deserializeAws_restJson1ListJobsCommand = exports.deserializeAws_restJson1GetQueueCommand = exports.deserializeAws_restJson1GetPresetCommand = exports.deserializeAws_restJson1GetPolicyCommand = exports.deserializeAws_restJson1GetJobTemplateCommand = exports.deserializeAws_restJson1GetJobCommand = exports.deserializeAws_restJson1DisassociateCertificateCommand = exports.deserializeAws_restJson1DescribeEndpointsCommand = exports.deserializeAws_restJson1DeleteQueueCommand = exports.deserializeAws_restJson1DeletePresetCommand = exports.deserializeAws_restJson1DeletePolicyCommand = exports.deserializeAws_restJson1DeleteJobTemplateCommand = exports.deserializeAws_restJson1CreateQueueCommand = exports.deserializeAws_restJson1CreatePresetCommand = exports.deserializeAws_restJson1CreateJobTemplateCommand = exports.deserializeAws_restJson1CreateJobCommand = exports.deserializeAws_restJson1CancelJobCommand = exports.deserializeAws_restJson1AssociateCertificateCommand = exports.serializeAws_restJson1UpdateQueueCommand = exports.serializeAws_restJson1UpdatePresetCommand = exports.serializeAws_restJson1UpdateJobTemplateCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1PutPolicyCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListQueuesCommand = exports.serializeAws_restJson1ListPresetsCommand = exports.serializeAws_restJson1ListJobTemplatesCommand = exports.serializeAws_restJson1ListJobsCommand = exports.serializeAws_restJson1GetQueueCommand = exports.serializeAws_restJson1GetPresetCommand = exports.serializeAws_restJson1GetPolicyCommand = exports.serializeAws_restJson1GetJobTemplateCommand = exports.serializeAws_restJson1GetJobCommand = exports.serializeAws_restJson1DisassociateCertificateCommand = exports.serializeAws_restJson1DescribeEndpointsCommand = exports.serializeAws_restJson1DeleteQueueCommand = exports.serializeAws_restJson1DeletePresetCommand = exports.serializeAws_restJson1DeletePolicyCommand = exports.serializeAws_restJson1DeleteJobTemplateCommand = exports.serializeAws_restJson1CreateQueueCommand = exports.serializeAws_restJson1CreatePresetCommand = exports.serializeAws_restJson1CreateJobTemplateCommand = exports.serializeAws_restJson1CreateJobCommand = exports.serializeAws_restJson1CancelJobCommand = exports.serializeAws_restJson1AssociateCertificateCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateQueueCommand = exports.deserializeAws_restJson1UpdatePresetCommand = exports.deserializeAws_restJson1UpdateJobTemplateCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1PutPolicyCommand = void 0;
|
|
4
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const uuid_1 = require("uuid");
|
|
@@ -221,6 +222,25 @@ const serializeAws_restJson1DeleteJobTemplateCommand = async (input, context) =>
|
|
|
221
222
|
});
|
|
222
223
|
};
|
|
223
224
|
exports.serializeAws_restJson1DeleteJobTemplateCommand = serializeAws_restJson1DeleteJobTemplateCommand;
|
|
225
|
+
const serializeAws_restJson1DeletePolicyCommand = async (input, context) => {
|
|
226
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
227
|
+
const headers = {
|
|
228
|
+
"content-type": "application/json",
|
|
229
|
+
};
|
|
230
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/policy";
|
|
231
|
+
let body;
|
|
232
|
+
body = "";
|
|
233
|
+
return new protocol_http_1.HttpRequest({
|
|
234
|
+
protocol,
|
|
235
|
+
hostname,
|
|
236
|
+
port,
|
|
237
|
+
method: "DELETE",
|
|
238
|
+
headers,
|
|
239
|
+
path: resolvedPath,
|
|
240
|
+
body,
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
exports.serializeAws_restJson1DeletePolicyCommand = serializeAws_restJson1DeletePolicyCommand;
|
|
224
244
|
const serializeAws_restJson1DeletePresetCommand = async (input, context) => {
|
|
225
245
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
226
246
|
const headers = {};
|
|
@@ -374,6 +394,25 @@ const serializeAws_restJson1GetJobTemplateCommand = async (input, context) => {
|
|
|
374
394
|
});
|
|
375
395
|
};
|
|
376
396
|
exports.serializeAws_restJson1GetJobTemplateCommand = serializeAws_restJson1GetJobTemplateCommand;
|
|
397
|
+
const serializeAws_restJson1GetPolicyCommand = async (input, context) => {
|
|
398
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
399
|
+
const headers = {
|
|
400
|
+
"content-type": "application/json",
|
|
401
|
+
};
|
|
402
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/policy";
|
|
403
|
+
let body;
|
|
404
|
+
body = "";
|
|
405
|
+
return new protocol_http_1.HttpRequest({
|
|
406
|
+
protocol,
|
|
407
|
+
hostname,
|
|
408
|
+
port,
|
|
409
|
+
method: "GET",
|
|
410
|
+
headers,
|
|
411
|
+
path: resolvedPath,
|
|
412
|
+
body,
|
|
413
|
+
});
|
|
414
|
+
};
|
|
415
|
+
exports.serializeAws_restJson1GetPolicyCommand = serializeAws_restJson1GetPolicyCommand;
|
|
377
416
|
const serializeAws_restJson1GetPresetCommand = async (input, context) => {
|
|
378
417
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
379
418
|
const headers = {};
|
|
@@ -547,6 +586,28 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
547
586
|
});
|
|
548
587
|
};
|
|
549
588
|
exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
|
|
589
|
+
const serializeAws_restJson1PutPolicyCommand = async (input, context) => {
|
|
590
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
591
|
+
const headers = {
|
|
592
|
+
"content-type": "application/json",
|
|
593
|
+
};
|
|
594
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/policy";
|
|
595
|
+
let body;
|
|
596
|
+
body = JSON.stringify({
|
|
597
|
+
...(input.Policy !== undefined &&
|
|
598
|
+
input.Policy !== null && { policy: serializeAws_restJson1Policy(input.Policy, context) }),
|
|
599
|
+
});
|
|
600
|
+
return new protocol_http_1.HttpRequest({
|
|
601
|
+
protocol,
|
|
602
|
+
hostname,
|
|
603
|
+
port,
|
|
604
|
+
method: "PUT",
|
|
605
|
+
headers,
|
|
606
|
+
path: resolvedPath,
|
|
607
|
+
body,
|
|
608
|
+
});
|
|
609
|
+
};
|
|
610
|
+
exports.serializeAws_restJson1PutPolicyCommand = serializeAws_restJson1PutPolicyCommand;
|
|
550
611
|
const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
551
612
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
552
613
|
const headers = {
|
|
@@ -1322,6 +1383,90 @@ const deserializeAws_restJson1DeleteJobTemplateCommandError = async (output, con
|
|
|
1322
1383
|
delete response.Message;
|
|
1323
1384
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1324
1385
|
};
|
|
1386
|
+
const deserializeAws_restJson1DeletePolicyCommand = async (output, context) => {
|
|
1387
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1388
|
+
return deserializeAws_restJson1DeletePolicyCommandError(output, context);
|
|
1389
|
+
}
|
|
1390
|
+
const contents = {
|
|
1391
|
+
$metadata: deserializeMetadata(output),
|
|
1392
|
+
};
|
|
1393
|
+
await collectBody(output.body, context);
|
|
1394
|
+
return Promise.resolve(contents);
|
|
1395
|
+
};
|
|
1396
|
+
exports.deserializeAws_restJson1DeletePolicyCommand = deserializeAws_restJson1DeletePolicyCommand;
|
|
1397
|
+
const deserializeAws_restJson1DeletePolicyCommandError = async (output, context) => {
|
|
1398
|
+
const parsedOutput = {
|
|
1399
|
+
...output,
|
|
1400
|
+
body: await parseBody(output.body, context),
|
|
1401
|
+
};
|
|
1402
|
+
let response;
|
|
1403
|
+
let errorCode = "UnknownError";
|
|
1404
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
|
+
switch (errorCode) {
|
|
1406
|
+
case "BadRequestException":
|
|
1407
|
+
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
1408
|
+
response = {
|
|
1409
|
+
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1410
|
+
name: errorCode,
|
|
1411
|
+
$metadata: deserializeMetadata(output),
|
|
1412
|
+
};
|
|
1413
|
+
break;
|
|
1414
|
+
case "ConflictException":
|
|
1415
|
+
case "com.amazonaws.mediaconvert#ConflictException":
|
|
1416
|
+
response = {
|
|
1417
|
+
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1418
|
+
name: errorCode,
|
|
1419
|
+
$metadata: deserializeMetadata(output),
|
|
1420
|
+
};
|
|
1421
|
+
break;
|
|
1422
|
+
case "ForbiddenException":
|
|
1423
|
+
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
1424
|
+
response = {
|
|
1425
|
+
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1426
|
+
name: errorCode,
|
|
1427
|
+
$metadata: deserializeMetadata(output),
|
|
1428
|
+
};
|
|
1429
|
+
break;
|
|
1430
|
+
case "InternalServerErrorException":
|
|
1431
|
+
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
1432
|
+
response = {
|
|
1433
|
+
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1434
|
+
name: errorCode,
|
|
1435
|
+
$metadata: deserializeMetadata(output),
|
|
1436
|
+
};
|
|
1437
|
+
break;
|
|
1438
|
+
case "NotFoundException":
|
|
1439
|
+
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1440
|
+
response = {
|
|
1441
|
+
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1442
|
+
name: errorCode,
|
|
1443
|
+
$metadata: deserializeMetadata(output),
|
|
1444
|
+
};
|
|
1445
|
+
break;
|
|
1446
|
+
case "TooManyRequestsException":
|
|
1447
|
+
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1448
|
+
response = {
|
|
1449
|
+
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1450
|
+
name: errorCode,
|
|
1451
|
+
$metadata: deserializeMetadata(output),
|
|
1452
|
+
};
|
|
1453
|
+
break;
|
|
1454
|
+
default:
|
|
1455
|
+
const parsedBody = parsedOutput.body;
|
|
1456
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1457
|
+
response = {
|
|
1458
|
+
...parsedBody,
|
|
1459
|
+
name: `${errorCode}`,
|
|
1460
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1461
|
+
$fault: "client",
|
|
1462
|
+
$metadata: deserializeMetadata(output),
|
|
1463
|
+
};
|
|
1464
|
+
}
|
|
1465
|
+
const message = response.message || response.Message || errorCode;
|
|
1466
|
+
response.message = message;
|
|
1467
|
+
delete response.Message;
|
|
1468
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1469
|
+
};
|
|
1325
1470
|
const deserializeAws_restJson1DeletePresetCommand = async (output, context) => {
|
|
1326
1471
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1327
1472
|
return deserializeAws_restJson1DeletePresetCommandError(output, context);
|
|
@@ -1842,6 +1987,94 @@ const deserializeAws_restJson1GetJobTemplateCommandError = async (output, contex
|
|
|
1842
1987
|
delete response.Message;
|
|
1843
1988
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1844
1989
|
};
|
|
1990
|
+
const deserializeAws_restJson1GetPolicyCommand = async (output, context) => {
|
|
1991
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1992
|
+
return deserializeAws_restJson1GetPolicyCommandError(output, context);
|
|
1993
|
+
}
|
|
1994
|
+
const contents = {
|
|
1995
|
+
$metadata: deserializeMetadata(output),
|
|
1996
|
+
Policy: undefined,
|
|
1997
|
+
};
|
|
1998
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1999
|
+
if (data.policy !== undefined && data.policy !== null) {
|
|
2000
|
+
contents.Policy = deserializeAws_restJson1Policy(data.policy, context);
|
|
2001
|
+
}
|
|
2002
|
+
return Promise.resolve(contents);
|
|
2003
|
+
};
|
|
2004
|
+
exports.deserializeAws_restJson1GetPolicyCommand = deserializeAws_restJson1GetPolicyCommand;
|
|
2005
|
+
const deserializeAws_restJson1GetPolicyCommandError = async (output, context) => {
|
|
2006
|
+
const parsedOutput = {
|
|
2007
|
+
...output,
|
|
2008
|
+
body: await parseBody(output.body, context),
|
|
2009
|
+
};
|
|
2010
|
+
let response;
|
|
2011
|
+
let errorCode = "UnknownError";
|
|
2012
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2013
|
+
switch (errorCode) {
|
|
2014
|
+
case "BadRequestException":
|
|
2015
|
+
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2016
|
+
response = {
|
|
2017
|
+
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2018
|
+
name: errorCode,
|
|
2019
|
+
$metadata: deserializeMetadata(output),
|
|
2020
|
+
};
|
|
2021
|
+
break;
|
|
2022
|
+
case "ConflictException":
|
|
2023
|
+
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2024
|
+
response = {
|
|
2025
|
+
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2026
|
+
name: errorCode,
|
|
2027
|
+
$metadata: deserializeMetadata(output),
|
|
2028
|
+
};
|
|
2029
|
+
break;
|
|
2030
|
+
case "ForbiddenException":
|
|
2031
|
+
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2032
|
+
response = {
|
|
2033
|
+
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2034
|
+
name: errorCode,
|
|
2035
|
+
$metadata: deserializeMetadata(output),
|
|
2036
|
+
};
|
|
2037
|
+
break;
|
|
2038
|
+
case "InternalServerErrorException":
|
|
2039
|
+
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2040
|
+
response = {
|
|
2041
|
+
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2042
|
+
name: errorCode,
|
|
2043
|
+
$metadata: deserializeMetadata(output),
|
|
2044
|
+
};
|
|
2045
|
+
break;
|
|
2046
|
+
case "NotFoundException":
|
|
2047
|
+
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2048
|
+
response = {
|
|
2049
|
+
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2050
|
+
name: errorCode,
|
|
2051
|
+
$metadata: deserializeMetadata(output),
|
|
2052
|
+
};
|
|
2053
|
+
break;
|
|
2054
|
+
case "TooManyRequestsException":
|
|
2055
|
+
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2056
|
+
response = {
|
|
2057
|
+
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2058
|
+
name: errorCode,
|
|
2059
|
+
$metadata: deserializeMetadata(output),
|
|
2060
|
+
};
|
|
2061
|
+
break;
|
|
2062
|
+
default:
|
|
2063
|
+
const parsedBody = parsedOutput.body;
|
|
2064
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2065
|
+
response = {
|
|
2066
|
+
...parsedBody,
|
|
2067
|
+
name: `${errorCode}`,
|
|
2068
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2069
|
+
$fault: "client",
|
|
2070
|
+
$metadata: deserializeMetadata(output),
|
|
2071
|
+
};
|
|
2072
|
+
}
|
|
2073
|
+
const message = response.message || response.Message || errorCode;
|
|
2074
|
+
response.message = message;
|
|
2075
|
+
delete response.Message;
|
|
2076
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2077
|
+
};
|
|
1845
2078
|
const deserializeAws_restJson1GetPresetCommand = async (output, context) => {
|
|
1846
2079
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1847
2080
|
return deserializeAws_restJson1GetPresetCommandError(output, context);
|
|
@@ -2474,6 +2707,94 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2474
2707
|
delete response.Message;
|
|
2475
2708
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2476
2709
|
};
|
|
2710
|
+
const deserializeAws_restJson1PutPolicyCommand = async (output, context) => {
|
|
2711
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2712
|
+
return deserializeAws_restJson1PutPolicyCommandError(output, context);
|
|
2713
|
+
}
|
|
2714
|
+
const contents = {
|
|
2715
|
+
$metadata: deserializeMetadata(output),
|
|
2716
|
+
Policy: undefined,
|
|
2717
|
+
};
|
|
2718
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2719
|
+
if (data.policy !== undefined && data.policy !== null) {
|
|
2720
|
+
contents.Policy = deserializeAws_restJson1Policy(data.policy, context);
|
|
2721
|
+
}
|
|
2722
|
+
return Promise.resolve(contents);
|
|
2723
|
+
};
|
|
2724
|
+
exports.deserializeAws_restJson1PutPolicyCommand = deserializeAws_restJson1PutPolicyCommand;
|
|
2725
|
+
const deserializeAws_restJson1PutPolicyCommandError = async (output, context) => {
|
|
2726
|
+
const parsedOutput = {
|
|
2727
|
+
...output,
|
|
2728
|
+
body: await parseBody(output.body, context),
|
|
2729
|
+
};
|
|
2730
|
+
let response;
|
|
2731
|
+
let errorCode = "UnknownError";
|
|
2732
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2733
|
+
switch (errorCode) {
|
|
2734
|
+
case "BadRequestException":
|
|
2735
|
+
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2736
|
+
response = {
|
|
2737
|
+
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2738
|
+
name: errorCode,
|
|
2739
|
+
$metadata: deserializeMetadata(output),
|
|
2740
|
+
};
|
|
2741
|
+
break;
|
|
2742
|
+
case "ConflictException":
|
|
2743
|
+
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2744
|
+
response = {
|
|
2745
|
+
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2746
|
+
name: errorCode,
|
|
2747
|
+
$metadata: deserializeMetadata(output),
|
|
2748
|
+
};
|
|
2749
|
+
break;
|
|
2750
|
+
case "ForbiddenException":
|
|
2751
|
+
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2752
|
+
response = {
|
|
2753
|
+
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2754
|
+
name: errorCode,
|
|
2755
|
+
$metadata: deserializeMetadata(output),
|
|
2756
|
+
};
|
|
2757
|
+
break;
|
|
2758
|
+
case "InternalServerErrorException":
|
|
2759
|
+
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2760
|
+
response = {
|
|
2761
|
+
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2762
|
+
name: errorCode,
|
|
2763
|
+
$metadata: deserializeMetadata(output),
|
|
2764
|
+
};
|
|
2765
|
+
break;
|
|
2766
|
+
case "NotFoundException":
|
|
2767
|
+
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2768
|
+
response = {
|
|
2769
|
+
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2770
|
+
name: errorCode,
|
|
2771
|
+
$metadata: deserializeMetadata(output),
|
|
2772
|
+
};
|
|
2773
|
+
break;
|
|
2774
|
+
case "TooManyRequestsException":
|
|
2775
|
+
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2776
|
+
response = {
|
|
2777
|
+
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2778
|
+
name: errorCode,
|
|
2779
|
+
$metadata: deserializeMetadata(output),
|
|
2780
|
+
};
|
|
2781
|
+
break;
|
|
2782
|
+
default:
|
|
2783
|
+
const parsedBody = parsedOutput.body;
|
|
2784
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2785
|
+
response = {
|
|
2786
|
+
...parsedBody,
|
|
2787
|
+
name: `${errorCode}`,
|
|
2788
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2789
|
+
$fault: "client",
|
|
2790
|
+
$metadata: deserializeMetadata(output),
|
|
2791
|
+
};
|
|
2792
|
+
}
|
|
2793
|
+
const message = response.message || response.Message || errorCode;
|
|
2794
|
+
response.message = message;
|
|
2795
|
+
delete response.Message;
|
|
2796
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2797
|
+
};
|
|
2477
2798
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
2478
2799
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2479
2800
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
@@ -4217,6 +4538,8 @@ const serializeAws_restJson1FileSourceSettings = (input, context) => {
|
|
|
4217
4538
|
}),
|
|
4218
4539
|
...(input.SourceFile !== undefined && input.SourceFile !== null && { sourceFile: input.SourceFile }),
|
|
4219
4540
|
...(input.TimeDelta !== undefined && input.TimeDelta !== null && { timeDelta: input.TimeDelta }),
|
|
4541
|
+
...(input.TimeDeltaUnits !== undefined &&
|
|
4542
|
+
input.TimeDeltaUnits !== null && { timeDeltaUnits: input.TimeDeltaUnits }),
|
|
4220
4543
|
};
|
|
4221
4544
|
};
|
|
4222
4545
|
const serializeAws_restJson1FrameCaptureSettings = (input, context) => {
|
|
@@ -5341,6 +5664,13 @@ const serializeAws_restJson1PartnerWatermarking = (input, context) => {
|
|
|
5341
5664
|
}),
|
|
5342
5665
|
};
|
|
5343
5666
|
};
|
|
5667
|
+
const serializeAws_restJson1Policy = (input, context) => {
|
|
5668
|
+
return {
|
|
5669
|
+
...(input.HttpInputs !== undefined && input.HttpInputs !== null && { httpInputs: input.HttpInputs }),
|
|
5670
|
+
...(input.HttpsInputs !== undefined && input.HttpsInputs !== null && { httpsInputs: input.HttpsInputs }),
|
|
5671
|
+
...(input.S3Inputs !== undefined && input.S3Inputs !== null && { s3Inputs: input.S3Inputs }),
|
|
5672
|
+
};
|
|
5673
|
+
};
|
|
5344
5674
|
const serializeAws_restJson1PresetSettings = (input, context) => {
|
|
5345
5675
|
return {
|
|
5346
5676
|
...(input.AudioDescriptions !== undefined &&
|
|
@@ -6959,6 +7289,7 @@ const deserializeAws_restJson1FileSourceSettings = (output, context) => {
|
|
|
6959
7289
|
: undefined,
|
|
6960
7290
|
SourceFile: smithy_client_1.expectString(output.sourceFile),
|
|
6961
7291
|
TimeDelta: smithy_client_1.expectInt32(output.timeDelta),
|
|
7292
|
+
TimeDeltaUnits: smithy_client_1.expectString(output.timeDeltaUnits),
|
|
6962
7293
|
};
|
|
6963
7294
|
};
|
|
6964
7295
|
const deserializeAws_restJson1FrameCaptureSettings = (output, context) => {
|
|
@@ -7918,6 +8249,13 @@ const deserializeAws_restJson1PartnerWatermarking = (output, context) => {
|
|
|
7918
8249
|
: undefined,
|
|
7919
8250
|
};
|
|
7920
8251
|
};
|
|
8252
|
+
const deserializeAws_restJson1Policy = (output, context) => {
|
|
8253
|
+
return {
|
|
8254
|
+
HttpInputs: smithy_client_1.expectString(output.httpInputs),
|
|
8255
|
+
HttpsInputs: smithy_client_1.expectString(output.httpsInputs),
|
|
8256
|
+
S3Inputs: smithy_client_1.expectString(output.s3Inputs),
|
|
8257
|
+
};
|
|
8258
|
+
};
|
|
7921
8259
|
const deserializeAws_restJson1Preset = (output, context) => {
|
|
7922
8260
|
return {
|
|
7923
8261
|
Arn: smithy_client_1.expectString(output.arn),
|
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
8
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
9
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
|
13
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
14
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
16
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
18
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
18
19
|
return {
|
|
19
20
|
...clientSharedValues,
|
|
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
|
|
|
30
31
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
|
|
31
32
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
32
33
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
35
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
37
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
35
38
|
};
|
|
36
39
|
};
|
|
37
40
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
19
|
const getRuntimeConfig = (config) => {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
23
|
return {
|
|
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
|
|
|
35
35
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
36
36
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
37
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
39
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
40
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
41
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
40
42
|
};
|
|
41
43
|
};
|
|
42
44
|
exports.getRuntimeConfig = getRuntimeConfig;
|