@aws-sdk/client-mediaconvert 3.758.0 → 3.759.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/README.md +8 -0
- package/dist-cjs/index.js +254 -0
- package/dist-es/MediaConvert.js +2 -0
- package/dist-es/commands/ProbeCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_2.js +94 -0
- package/dist-es/protocols/Aws_restJson1.js +137 -1
- package/dist-types/MediaConvert.d.ts +8 -0
- package/dist-types/MediaConvertClient.d.ts +3 -2
- package/dist-types/commands/ProbeCommand.d.ts +154 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_2.d.ts +412 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/MediaConvert.d.ts +15 -0
- package/dist-types/ts3.4/MediaConvertClient.d.ts +3 -0
- package/dist-types/ts3.4/commands/ProbeCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_2.d.ts +167 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { MediaConvertServiceException as __BaseException } from "../models/MediaConvertServiceException";
|
|
6
6
|
import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, TooManyRequestsException, } from "../models/models_2";
|
|
@@ -293,6 +293,19 @@ export const se_ListVersionsCommand = async (input, context) => {
|
|
|
293
293
|
b.m("GET").h(headers).q(query).b(body);
|
|
294
294
|
return b.build();
|
|
295
295
|
};
|
|
296
|
+
export const se_ProbeCommand = async (input, context) => {
|
|
297
|
+
const b = rb(input, context);
|
|
298
|
+
const headers = {
|
|
299
|
+
"content-type": "application/json",
|
|
300
|
+
};
|
|
301
|
+
b.bp("/2017-08-29/probe");
|
|
302
|
+
let body;
|
|
303
|
+
body = JSON.stringify(take(input, {
|
|
304
|
+
inputFiles: [, (_) => se___listOfProbeInputFile(_, context), `InputFiles`],
|
|
305
|
+
}));
|
|
306
|
+
b.m("POST").h(headers).b(body);
|
|
307
|
+
return b.build();
|
|
308
|
+
};
|
|
296
309
|
export const se_PutPolicyCommand = async (input, context) => {
|
|
297
310
|
const b = rb(input, context);
|
|
298
311
|
const headers = {
|
|
@@ -706,6 +719,20 @@ export const de_ListVersionsCommand = async (output, context) => {
|
|
|
706
719
|
Object.assign(contents, doc);
|
|
707
720
|
return contents;
|
|
708
721
|
};
|
|
722
|
+
export const de_ProbeCommand = async (output, context) => {
|
|
723
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
724
|
+
return de_CommandError(output, context);
|
|
725
|
+
}
|
|
726
|
+
const contents = map({
|
|
727
|
+
$metadata: deserializeMetadata(output),
|
|
728
|
+
});
|
|
729
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
730
|
+
const doc = take(data, {
|
|
731
|
+
ProbeResults: [, (_) => de___listOfProbeResult(_, context), `probeResults`],
|
|
732
|
+
});
|
|
733
|
+
Object.assign(contents, doc);
|
|
734
|
+
return contents;
|
|
735
|
+
};
|
|
709
736
|
export const de_PutPolicyCommand = async (output, context) => {
|
|
710
737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
711
738
|
return de_CommandError(output, context);
|
|
@@ -1064,6 +1091,13 @@ const se___listOfOutputGroup = (input, context) => {
|
|
|
1064
1091
|
return se_OutputGroup(entry, context);
|
|
1065
1092
|
});
|
|
1066
1093
|
};
|
|
1094
|
+
const se___listOfProbeInputFile = (input, context) => {
|
|
1095
|
+
return input
|
|
1096
|
+
.filter((e) => e != null)
|
|
1097
|
+
.map((entry) => {
|
|
1098
|
+
return se_ProbeInputFile(entry, context);
|
|
1099
|
+
});
|
|
1100
|
+
};
|
|
1067
1101
|
const se___listOfVideoOverlay = (input, context) => {
|
|
1068
1102
|
return input
|
|
1069
1103
|
.filter((e) => e != null)
|
|
@@ -2602,6 +2636,11 @@ const se_PresetSettings = (input, context) => {
|
|
|
2602
2636
|
videoDescription: [, (_) => se_VideoDescription(_, context), `VideoDescription`],
|
|
2603
2637
|
});
|
|
2604
2638
|
};
|
|
2639
|
+
const se_ProbeInputFile = (input, context) => {
|
|
2640
|
+
return take(input, {
|
|
2641
|
+
fileUrl: [, , `FileUrl`],
|
|
2642
|
+
});
|
|
2643
|
+
};
|
|
2605
2644
|
const se_ProresSettings = (input, context) => {
|
|
2606
2645
|
return take(input, {
|
|
2607
2646
|
chromaSampling: [, , `ChromaSampling`],
|
|
@@ -3246,6 +3285,14 @@ const de___listOfPreset = (output, context) => {
|
|
|
3246
3285
|
});
|
|
3247
3286
|
return retVal;
|
|
3248
3287
|
};
|
|
3288
|
+
const de___listOfProbeResult = (output, context) => {
|
|
3289
|
+
const retVal = (output || [])
|
|
3290
|
+
.filter((e) => e != null)
|
|
3291
|
+
.map((entry) => {
|
|
3292
|
+
return de_ProbeResult(entry, context);
|
|
3293
|
+
});
|
|
3294
|
+
return retVal;
|
|
3295
|
+
};
|
|
3249
3296
|
const de___listOfQueue = (output, context) => {
|
|
3250
3297
|
const retVal = (output || [])
|
|
3251
3298
|
.filter((e) => e != null)
|
|
@@ -3270,6 +3317,22 @@ const de___listOfServiceOverride = (output, context) => {
|
|
|
3270
3317
|
});
|
|
3271
3318
|
return retVal;
|
|
3272
3319
|
};
|
|
3320
|
+
const de___listOfTrack = (output, context) => {
|
|
3321
|
+
const retVal = (output || [])
|
|
3322
|
+
.filter((e) => e != null)
|
|
3323
|
+
.map((entry) => {
|
|
3324
|
+
return de_Track(entry, context);
|
|
3325
|
+
});
|
|
3326
|
+
return retVal;
|
|
3327
|
+
};
|
|
3328
|
+
const de___listOfTrackMapping = (output, context) => {
|
|
3329
|
+
const retVal = (output || [])
|
|
3330
|
+
.filter((e) => e != null)
|
|
3331
|
+
.map((entry) => {
|
|
3332
|
+
return de_TrackMapping(entry, context);
|
|
3333
|
+
});
|
|
3334
|
+
return retVal;
|
|
3335
|
+
};
|
|
3273
3336
|
const de___listOfVideoOverlay = (output, context) => {
|
|
3274
3337
|
const retVal = (output || [])
|
|
3275
3338
|
.filter((e) => e != null)
|
|
@@ -3449,6 +3512,16 @@ const de_AudioNormalizationSettings = (output, context) => {
|
|
|
3449
3512
|
TruePeakLimiterThreshold: [, __limitedParseDouble, `truePeakLimiterThreshold`],
|
|
3450
3513
|
});
|
|
3451
3514
|
};
|
|
3515
|
+
const de_AudioProperties = (output, context) => {
|
|
3516
|
+
return take(output, {
|
|
3517
|
+
BitDepth: [, __expectInt32, `bitDepth`],
|
|
3518
|
+
BitRate: [, __expectInt32, `bitRate`],
|
|
3519
|
+
Channels: [, __expectInt32, `channels`],
|
|
3520
|
+
FrameRate: [, (_) => de_FrameRate(_, context), `frameRate`],
|
|
3521
|
+
LanguageCode: [, __expectString, `languageCode`],
|
|
3522
|
+
SampleRate: [, __expectInt32, `sampleRate`],
|
|
3523
|
+
});
|
|
3524
|
+
};
|
|
3452
3525
|
const de_AudioSelector = (output, context) => {
|
|
3453
3526
|
return take(output, {
|
|
3454
3527
|
AudioDurationCorrection: [, __expectString, `audioDurationCorrection`],
|
|
@@ -3757,6 +3830,13 @@ const de_ColorCorrector = (output, context) => {
|
|
|
3757
3830
|
SdrReferenceWhiteLevel: [, __expectInt32, `sdrReferenceWhiteLevel`],
|
|
3758
3831
|
});
|
|
3759
3832
|
};
|
|
3833
|
+
const de_Container = (output, context) => {
|
|
3834
|
+
return take(output, {
|
|
3835
|
+
Duration: [, __limitedParseDouble, `duration`],
|
|
3836
|
+
Format: [, __expectString, `format`],
|
|
3837
|
+
Tracks: [, (_) => de___listOfTrack(_, context), `tracks`],
|
|
3838
|
+
});
|
|
3839
|
+
};
|
|
3760
3840
|
const de_ContainerSettings = (output, context) => {
|
|
3761
3841
|
return take(output, {
|
|
3762
3842
|
CmfcSettings: [, (_) => de_CmfcSettings(_, context), `cmfcSettings`],
|
|
@@ -3822,6 +3902,11 @@ const de_DashIsoImageBasedTrickPlaySettings = (output, context) => {
|
|
|
3822
3902
|
TileWidth: [, __expectInt32, `tileWidth`],
|
|
3823
3903
|
});
|
|
3824
3904
|
};
|
|
3905
|
+
const de_DataProperties = (output, context) => {
|
|
3906
|
+
return take(output, {
|
|
3907
|
+
LanguageCode: [, __expectString, `languageCode`],
|
|
3908
|
+
});
|
|
3909
|
+
};
|
|
3825
3910
|
const de_Deinterlacer = (output, context) => {
|
|
3826
3911
|
return take(output, {
|
|
3827
3912
|
Algorithm: [, __expectString, `algorithm`],
|
|
@@ -4062,6 +4147,12 @@ const de_FrameCaptureSettings = (output, context) => {
|
|
|
4062
4147
|
Quality: [, __expectInt32, `quality`],
|
|
4063
4148
|
});
|
|
4064
4149
|
};
|
|
4150
|
+
const de_FrameRate = (output, context) => {
|
|
4151
|
+
return take(output, {
|
|
4152
|
+
Denominator: [, __expectInt32, `denominator`],
|
|
4153
|
+
Numerator: [, __expectInt32, `numerator`],
|
|
4154
|
+
});
|
|
4155
|
+
};
|
|
4065
4156
|
const de_GifSettings = (output, context) => {
|
|
4066
4157
|
return take(output, {
|
|
4067
4158
|
FramerateControl: [, __expectString, `framerateControl`],
|
|
@@ -4634,6 +4725,14 @@ const de_M3u8Settings = (output, context) => {
|
|
|
4634
4725
|
VideoPid: [, __expectInt32, `videoPid`],
|
|
4635
4726
|
});
|
|
4636
4727
|
};
|
|
4728
|
+
const de_Metadata = (output, context) => {
|
|
4729
|
+
return take(output, {
|
|
4730
|
+
ETag: [, __expectString, `eTag`],
|
|
4731
|
+
FileSize: [, __expectLong, `fileSize`],
|
|
4732
|
+
LastModified: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `lastModified`],
|
|
4733
|
+
MimeType: [, __expectString, `mimeType`],
|
|
4734
|
+
});
|
|
4735
|
+
};
|
|
4637
4736
|
const de_MinBottomRenditionSize = (output, context) => {
|
|
4638
4737
|
return take(output, {
|
|
4639
4738
|
Height: [, __expectInt32, `height`],
|
|
@@ -4941,6 +5040,13 @@ const de_PresetSettings = (output, context) => {
|
|
|
4941
5040
|
VideoDescription: [, (_) => de_VideoDescription(_, context), `videoDescription`],
|
|
4942
5041
|
});
|
|
4943
5042
|
};
|
|
5043
|
+
const de_ProbeResult = (output, context) => {
|
|
5044
|
+
return take(output, {
|
|
5045
|
+
Container: [, (_) => de_Container(_, context), `container`],
|
|
5046
|
+
Metadata: [, (_) => de_Metadata(_, context), `metadata`],
|
|
5047
|
+
TrackMappings: [, (_) => de___listOfTrackMapping(_, context), `trackMappings`],
|
|
5048
|
+
});
|
|
5049
|
+
};
|
|
4944
5050
|
const de_ProresSettings = (output, context) => {
|
|
4945
5051
|
return take(output, {
|
|
4946
5052
|
ChromaSampling: [, __expectString, `chromaSampling`],
|
|
@@ -5125,6 +5231,24 @@ const de_Timing = (output, context) => {
|
|
|
5125
5231
|
SubmitTime: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `submitTime`],
|
|
5126
5232
|
});
|
|
5127
5233
|
};
|
|
5234
|
+
const de_Track = (output, context) => {
|
|
5235
|
+
return take(output, {
|
|
5236
|
+
AudioProperties: [, (_) => de_AudioProperties(_, context), `audioProperties`],
|
|
5237
|
+
Codec: [, __expectString, `codec`],
|
|
5238
|
+
DataProperties: [, (_) => de_DataProperties(_, context), `dataProperties`],
|
|
5239
|
+
Duration: [, __limitedParseDouble, `duration`],
|
|
5240
|
+
Index: [, __expectInt32, `index`],
|
|
5241
|
+
TrackType: [, __expectString, `trackType`],
|
|
5242
|
+
VideoProperties: [, (_) => de_VideoProperties(_, context), `videoProperties`],
|
|
5243
|
+
});
|
|
5244
|
+
};
|
|
5245
|
+
const de_TrackMapping = (output, context) => {
|
|
5246
|
+
return take(output, {
|
|
5247
|
+
AudioTrackIndexes: [, _json, `audioTrackIndexes`],
|
|
5248
|
+
DataTrackIndexes: [, _json, `dataTrackIndexes`],
|
|
5249
|
+
VideoTrackIndexes: [, _json, `videoTrackIndexes`],
|
|
5250
|
+
});
|
|
5251
|
+
};
|
|
5128
5252
|
const de_TrackSourceSettings = (output, context) => {
|
|
5129
5253
|
return take(output, {
|
|
5130
5254
|
TrackNumber: [, __expectInt32, `trackNumber`],
|
|
@@ -5258,6 +5382,18 @@ const de_VideoPreprocessor = (output, context) => {
|
|
|
5258
5382
|
TimecodeBurnin: [, (_) => de_TimecodeBurnin(_, context), `timecodeBurnin`],
|
|
5259
5383
|
});
|
|
5260
5384
|
};
|
|
5385
|
+
const de_VideoProperties = (output, context) => {
|
|
5386
|
+
return take(output, {
|
|
5387
|
+
BitDepth: [, __expectInt32, `bitDepth`],
|
|
5388
|
+
BitRate: [, __expectInt32, `bitRate`],
|
|
5389
|
+
ColorPrimaries: [, __expectString, `colorPrimaries`],
|
|
5390
|
+
FrameRate: [, (_) => de_FrameRate(_, context), `frameRate`],
|
|
5391
|
+
Height: [, __expectInt32, `height`],
|
|
5392
|
+
MatrixCoefficients: [, __expectString, `matrixCoefficients`],
|
|
5393
|
+
TransferCharacteristics: [, __expectString, `transferCharacteristics`],
|
|
5394
|
+
Width: [, __expectInt32, `width`],
|
|
5395
|
+
});
|
|
5396
|
+
};
|
|
5261
5397
|
const de_VideoSelector = (output, context) => {
|
|
5262
5398
|
return take(output, {
|
|
5263
5399
|
AlphaBehavior: [, __expectString, `alphaBehavior`],
|
|
@@ -22,6 +22,7 @@ import { ListPresetsCommandInput, ListPresetsCommandOutput } from "./commands/Li
|
|
|
22
22
|
import { ListQueuesCommandInput, ListQueuesCommandOutput } from "./commands/ListQueuesCommand";
|
|
23
23
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
24
24
|
import { ListVersionsCommandInput, ListVersionsCommandOutput } from "./commands/ListVersionsCommand";
|
|
25
|
+
import { ProbeCommandInput, ProbeCommandOutput } from "./commands/ProbeCommand";
|
|
25
26
|
import { PutPolicyCommandInput, PutPolicyCommandOutput } from "./commands/PutPolicyCommand";
|
|
26
27
|
import { SearchJobsCommandInput, SearchJobsCommandOutput } from "./commands/SearchJobsCommand";
|
|
27
28
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
@@ -177,6 +178,13 @@ export interface MediaConvert {
|
|
|
177
178
|
listVersions(args: ListVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListVersionsCommandOutput>;
|
|
178
179
|
listVersions(args: ListVersionsCommandInput, cb: (err: any, data?: ListVersionsCommandOutput) => void): void;
|
|
179
180
|
listVersions(args: ListVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListVersionsCommandOutput) => void): void;
|
|
181
|
+
/**
|
|
182
|
+
* @see {@link ProbeCommand}
|
|
183
|
+
*/
|
|
184
|
+
probe(): Promise<ProbeCommandOutput>;
|
|
185
|
+
probe(args: ProbeCommandInput, options?: __HttpHandlerOptions): Promise<ProbeCommandOutput>;
|
|
186
|
+
probe(args: ProbeCommandInput, cb: (err: any, data?: ProbeCommandOutput) => void): void;
|
|
187
|
+
probe(args: ProbeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ProbeCommandOutput) => void): void;
|
|
180
188
|
/**
|
|
181
189
|
* @see {@link PutPolicyCommand}
|
|
182
190
|
*/
|
|
@@ -30,6 +30,7 @@ import { ListPresetsCommandInput, ListPresetsCommandOutput } from "./commands/Li
|
|
|
30
30
|
import { ListQueuesCommandInput, ListQueuesCommandOutput } from "./commands/ListQueuesCommand";
|
|
31
31
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
32
32
|
import { ListVersionsCommandInput, ListVersionsCommandOutput } from "./commands/ListVersionsCommand";
|
|
33
|
+
import { ProbeCommandInput, ProbeCommandOutput } from "./commands/ProbeCommand";
|
|
33
34
|
import { PutPolicyCommandInput, PutPolicyCommandOutput } from "./commands/PutPolicyCommand";
|
|
34
35
|
import { SearchJobsCommandInput, SearchJobsCommandOutput } from "./commands/SearchJobsCommand";
|
|
35
36
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
@@ -43,11 +44,11 @@ export { __Client };
|
|
|
43
44
|
/**
|
|
44
45
|
* @public
|
|
45
46
|
*/
|
|
46
|
-
export type ServiceInputTypes = AssociateCertificateCommandInput | CancelJobCommandInput | CreateJobCommandInput | CreateJobTemplateCommandInput | CreatePresetCommandInput | CreateQueueCommandInput | DeleteJobTemplateCommandInput | DeletePolicyCommandInput | DeletePresetCommandInput | DeleteQueueCommandInput | DescribeEndpointsCommandInput | DisassociateCertificateCommandInput | GetJobCommandInput | GetJobTemplateCommandInput | GetPolicyCommandInput | GetPresetCommandInput | GetQueueCommandInput | ListJobTemplatesCommandInput | ListJobsCommandInput | ListPresetsCommandInput | ListQueuesCommandInput | ListTagsForResourceCommandInput | ListVersionsCommandInput | PutPolicyCommandInput | SearchJobsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateJobTemplateCommandInput | UpdatePresetCommandInput | UpdateQueueCommandInput;
|
|
47
|
+
export type ServiceInputTypes = AssociateCertificateCommandInput | CancelJobCommandInput | CreateJobCommandInput | CreateJobTemplateCommandInput | CreatePresetCommandInput | CreateQueueCommandInput | DeleteJobTemplateCommandInput | DeletePolicyCommandInput | DeletePresetCommandInput | DeleteQueueCommandInput | DescribeEndpointsCommandInput | DisassociateCertificateCommandInput | GetJobCommandInput | GetJobTemplateCommandInput | GetPolicyCommandInput | GetPresetCommandInput | GetQueueCommandInput | ListJobTemplatesCommandInput | ListJobsCommandInput | ListPresetsCommandInput | ListQueuesCommandInput | ListTagsForResourceCommandInput | ListVersionsCommandInput | ProbeCommandInput | PutPolicyCommandInput | SearchJobsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateJobTemplateCommandInput | UpdatePresetCommandInput | UpdateQueueCommandInput;
|
|
47
48
|
/**
|
|
48
49
|
* @public
|
|
49
50
|
*/
|
|
50
|
-
export type ServiceOutputTypes = AssociateCertificateCommandOutput | CancelJobCommandOutput | CreateJobCommandOutput | CreateJobTemplateCommandOutput | CreatePresetCommandOutput | CreateQueueCommandOutput | DeleteJobTemplateCommandOutput | DeletePolicyCommandOutput | DeletePresetCommandOutput | DeleteQueueCommandOutput | DescribeEndpointsCommandOutput | DisassociateCertificateCommandOutput | GetJobCommandOutput | GetJobTemplateCommandOutput | GetPolicyCommandOutput | GetPresetCommandOutput | GetQueueCommandOutput | ListJobTemplatesCommandOutput | ListJobsCommandOutput | ListPresetsCommandOutput | ListQueuesCommandOutput | ListTagsForResourceCommandOutput | ListVersionsCommandOutput | PutPolicyCommandOutput | SearchJobsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateJobTemplateCommandOutput | UpdatePresetCommandOutput | UpdateQueueCommandOutput;
|
|
51
|
+
export type ServiceOutputTypes = AssociateCertificateCommandOutput | CancelJobCommandOutput | CreateJobCommandOutput | CreateJobTemplateCommandOutput | CreatePresetCommandOutput | CreateQueueCommandOutput | DeleteJobTemplateCommandOutput | DeletePolicyCommandOutput | DeletePresetCommandOutput | DeleteQueueCommandOutput | DescribeEndpointsCommandOutput | DisassociateCertificateCommandOutput | GetJobCommandOutput | GetJobTemplateCommandOutput | GetPolicyCommandOutput | GetPresetCommandOutput | GetQueueCommandOutput | ListJobTemplatesCommandOutput | ListJobsCommandOutput | ListPresetsCommandOutput | ListQueuesCommandOutput | ListTagsForResourceCommandOutput | ListVersionsCommandOutput | ProbeCommandOutput | PutPolicyCommandOutput | SearchJobsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateJobTemplateCommandOutput | UpdatePresetCommandOutput | UpdateQueueCommandOutput;
|
|
51
52
|
/**
|
|
52
53
|
* @public
|
|
53
54
|
*/
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { MediaConvertClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaConvertClient";
|
|
4
|
+
import { ProbeRequest, ProbeResponse } from "../models/models_2";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ProbeCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ProbeCommandInput extends ProbeRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ProbeCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ProbeCommandOutput extends ProbeResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ProbeCommand_base: {
|
|
25
|
+
new (input: ProbeCommandInput): import("@smithy/smithy-client").CommandImpl<ProbeCommandInput, ProbeCommandOutput, MediaConvertClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ProbeCommandInput]): import("@smithy/smithy-client").CommandImpl<ProbeCommandInput, ProbeCommandOutput, MediaConvertClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* The Probe operation analyzes the provided media file and returns comprehensive metadata about its container format, tracks, and any encountered errors.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { MediaConvertClient, ProbeCommand } from "@aws-sdk/client-mediaconvert"; // ES Modules import
|
|
35
|
+
* // const { MediaConvertClient, ProbeCommand } = require("@aws-sdk/client-mediaconvert"); // CommonJS import
|
|
36
|
+
* const client = new MediaConvertClient(config);
|
|
37
|
+
* const input = { // ProbeRequest
|
|
38
|
+
* InputFiles: [ // __listOfProbeInputFile
|
|
39
|
+
* { // ProbeInputFile
|
|
40
|
+
* FileUrl: "STRING_VALUE",
|
|
41
|
+
* },
|
|
42
|
+
* ],
|
|
43
|
+
* };
|
|
44
|
+
* const command = new ProbeCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // ProbeResponse
|
|
47
|
+
* // ProbeResults: [ // __listOfProbeResult
|
|
48
|
+
* // { // ProbeResult
|
|
49
|
+
* // Container: { // Container
|
|
50
|
+
* // Duration: Number("double"),
|
|
51
|
+
* // Format: "mp4" || "quicktime" || "matroska" || "webm",
|
|
52
|
+
* // Tracks: [ // __listOfTrack
|
|
53
|
+
* // { // Track
|
|
54
|
+
* // AudioProperties: { // AudioProperties
|
|
55
|
+
* // BitDepth: Number("int"),
|
|
56
|
+
* // BitRate: Number("int"),
|
|
57
|
+
* // Channels: Number("int"),
|
|
58
|
+
* // FrameRate: { // FrameRate
|
|
59
|
+
* // Denominator: Number("int"),
|
|
60
|
+
* // Numerator: Number("int"),
|
|
61
|
+
* // },
|
|
62
|
+
* // LanguageCode: "STRING_VALUE",
|
|
63
|
+
* // SampleRate: Number("int"),
|
|
64
|
+
* // },
|
|
65
|
+
* // Codec: "UNKNOWN" || "AAC" || "AC3" || "EAC3" || "FLAC" || "MP3" || "OPUS" || "PCM" || "VORBIS" || "AV1" || "AVC" || "HEVC" || "MJPEG" || "MP4V" || "MPEG2" || "PRORES" || "THEORA" || "VP8" || "VP9" || "C608" || "C708" || "WEBVTT",
|
|
66
|
+
* // DataProperties: { // DataProperties
|
|
67
|
+
* // LanguageCode: "STRING_VALUE",
|
|
68
|
+
* // },
|
|
69
|
+
* // Duration: Number("double"),
|
|
70
|
+
* // Index: Number("int"),
|
|
71
|
+
* // TrackType: "video" || "audio" || "data",
|
|
72
|
+
* // VideoProperties: { // VideoProperties
|
|
73
|
+
* // BitDepth: Number("int"),
|
|
74
|
+
* // BitRate: Number("int"),
|
|
75
|
+
* // ColorPrimaries: "ITU_709" || "UNSPECIFIED" || "RESERVED" || "ITU_470M" || "ITU_470BG" || "SMPTE_170M" || "SMPTE_240M" || "GENERIC_FILM" || "ITU_2020" || "SMPTE_428_1" || "SMPTE_431_2" || "SMPTE_EG_432_1" || "IPT" || "SMPTE_2067XYZ" || "EBU_3213_E" || "LAST",
|
|
76
|
+
* // FrameRate: {
|
|
77
|
+
* // Denominator: Number("int"),
|
|
78
|
+
* // Numerator: Number("int"),
|
|
79
|
+
* // },
|
|
80
|
+
* // Height: Number("int"),
|
|
81
|
+
* // MatrixCoefficients: "RGB" || "ITU_709" || "UNSPECIFIED" || "RESERVED" || "FCC" || "ITU_470BG" || "SMPTE_170M" || "SMPTE_240M" || "YCgCo" || "ITU_2020_NCL" || "ITU_2020_CL" || "SMPTE_2085" || "CD_NCL" || "CD_CL" || "ITU_2100ICtCp" || "IPT" || "EBU3213" || "LAST",
|
|
82
|
+
* // TransferCharacteristics: "ITU_709" || "UNSPECIFIED" || "RESERVED" || "ITU_470M" || "ITU_470BG" || "SMPTE_170M" || "SMPTE_240M" || "LINEAR" || "LOG10_2" || "LOC10_2_5" || "IEC_61966_2_4" || "ITU_1361" || "IEC_61966_2_1" || "ITU_2020_10bit" || "ITU_2020_12bit" || "SMPTE_2084" || "SMPTE_428_1" || "ARIB_B67" || "LAST",
|
|
83
|
+
* // Width: Number("int"),
|
|
84
|
+
* // },
|
|
85
|
+
* // },
|
|
86
|
+
* // ],
|
|
87
|
+
* // },
|
|
88
|
+
* // Metadata: { // Metadata
|
|
89
|
+
* // ETag: "STRING_VALUE",
|
|
90
|
+
* // FileSize: Number("long"),
|
|
91
|
+
* // LastModified: new Date("TIMESTAMP"),
|
|
92
|
+
* // MimeType: "STRING_VALUE",
|
|
93
|
+
* // },
|
|
94
|
+
* // TrackMappings: [ // __listOfTrackMapping
|
|
95
|
+
* // { // TrackMapping
|
|
96
|
+
* // AudioTrackIndexes: [ // __listOf__integer
|
|
97
|
+
* // Number("int"),
|
|
98
|
+
* // ],
|
|
99
|
+
* // DataTrackIndexes: [
|
|
100
|
+
* // Number("int"),
|
|
101
|
+
* // ],
|
|
102
|
+
* // VideoTrackIndexes: [
|
|
103
|
+
* // Number("int"),
|
|
104
|
+
* // ],
|
|
105
|
+
* // },
|
|
106
|
+
* // ],
|
|
107
|
+
* // },
|
|
108
|
+
* // ],
|
|
109
|
+
* // };
|
|
110
|
+
*
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
* @param ProbeCommandInput - {@link ProbeCommandInput}
|
|
114
|
+
* @returns {@link ProbeCommandOutput}
|
|
115
|
+
* @see {@link ProbeCommandInput} for command's `input` shape.
|
|
116
|
+
* @see {@link ProbeCommandOutput} for command's `response` shape.
|
|
117
|
+
* @see {@link MediaConvertClientResolvedConfig | config} for MediaConvertClient's `config` shape.
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link BadRequestException} (client fault)
|
|
120
|
+
* The service can't process your request because of a problem in the request. Please check your request form and syntax.
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link ConflictException} (client fault)
|
|
123
|
+
* The service couldn't complete your request because there is a conflict with the current state of the resource.
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
126
|
+
* You don't have permissions for this action with the credentials you sent.
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link InternalServerErrorException} (server fault)
|
|
129
|
+
* The service encountered an unexpected condition and can't fulfill your request.
|
|
130
|
+
*
|
|
131
|
+
* @throws {@link NotFoundException} (client fault)
|
|
132
|
+
* The resource you requested doesn't exist.
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
135
|
+
* Too many requests have been sent in too short of a time. The service limits the rate at which it will accept requests.
|
|
136
|
+
*
|
|
137
|
+
* @throws {@link MediaConvertServiceException}
|
|
138
|
+
* <p>Base exception class for all service exceptions from MediaConvert service.</p>
|
|
139
|
+
*
|
|
140
|
+
* @public
|
|
141
|
+
*/
|
|
142
|
+
export declare class ProbeCommand extends ProbeCommand_base {
|
|
143
|
+
/** @internal type navigation helper, not in runtime. */
|
|
144
|
+
protected static __types: {
|
|
145
|
+
api: {
|
|
146
|
+
input: ProbeRequest;
|
|
147
|
+
output: ProbeResponse;
|
|
148
|
+
};
|
|
149
|
+
sdk: {
|
|
150
|
+
input: ProbeCommandInput;
|
|
151
|
+
output: ProbeCommandOutput;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
}
|
|
@@ -21,6 +21,7 @@ export * from "./ListPresetsCommand";
|
|
|
21
21
|
export * from "./ListQueuesCommand";
|
|
22
22
|
export * from "./ListTagsForResourceCommand";
|
|
23
23
|
export * from "./ListVersionsCommand";
|
|
24
|
+
export * from "./ProbeCommand";
|
|
24
25
|
export * from "./PutPolicyCommand";
|
|
25
26
|
export * from "./SearchJobsCommand";
|
|
26
27
|
export * from "./TagResourceCommand";
|