@aws-sdk/client-mediaconvert 3.913.0 → 3.916.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 +16 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/index.js +178 -0
- package/dist-es/MediaConvert.js +4 -0
- package/dist-es/commands/GetJobsQueryResultsCommand.js +22 -0
- package/dist-es/commands/StartJobsQueryCommand.js +22 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/models/models_2.js +32 -0
- package/dist-es/protocols/Aws_restJson1.js +105 -1
- package/dist-types/MediaConvert.d.ts +15 -0
- package/dist-types/MediaConvertClient.d.ts +4 -2
- package/dist-types/commands/AssociateCertificateCommand.d.ts +3 -0
- package/dist-types/commands/CancelJobCommand.d.ts +3 -0
- package/dist-types/commands/CreateJobCommand.d.ts +17 -10
- package/dist-types/commands/CreateJobTemplateCommand.d.ts +13 -10
- package/dist-types/commands/CreatePresetCommand.d.ts +13 -10
- package/dist-types/commands/CreateQueueCommand.d.ts +3 -0
- package/dist-types/commands/CreateResourceShareCommand.d.ts +3 -0
- package/dist-types/commands/DeleteJobTemplateCommand.d.ts +3 -0
- package/dist-types/commands/DeletePolicyCommand.d.ts +3 -0
- package/dist-types/commands/DeletePresetCommand.d.ts +3 -0
- package/dist-types/commands/DeleteQueueCommand.d.ts +3 -0
- package/dist-types/commands/DescribeEndpointsCommand.d.ts +3 -0
- package/dist-types/commands/DisassociateCertificateCommand.d.ts +3 -0
- package/dist-types/commands/GetJobCommand.d.ts +10 -5
- package/dist-types/commands/GetJobTemplateCommand.d.ts +8 -5
- package/dist-types/commands/GetJobsQueryResultsCommand.d.ts +1727 -0
- package/dist-types/commands/GetPolicyCommand.d.ts +3 -0
- package/dist-types/commands/GetPresetCommand.d.ts +8 -5
- package/dist-types/commands/GetQueueCommand.d.ts +3 -0
- package/dist-types/commands/ListJobTemplatesCommand.d.ts +8 -5
- package/dist-types/commands/ListJobsCommand.d.ts +10 -5
- package/dist-types/commands/ListPresetsCommand.d.ts +8 -5
- package/dist-types/commands/ListQueuesCommand.d.ts +3 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
- package/dist-types/commands/ListVersionsCommand.d.ts +3 -0
- package/dist-types/commands/ProbeCommand.d.ts +20 -1
- package/dist-types/commands/PutPolicyCommand.d.ts +3 -0
- package/dist-types/commands/SearchJobsCommand.d.ts +10 -5
- package/dist-types/commands/StartJobsQueryCommand.d.ts +105 -0
- package/dist-types/commands/TagResourceCommand.d.ts +3 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +3 -0
- package/dist-types/commands/UpdateJobTemplateCommand.d.ts +13 -10
- package/dist-types/commands/UpdatePresetCommand.d.ts +13 -10
- package/dist-types/commands/UpdateQueueCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +21 -10
- package/dist-types/models/models_1.d.ts +8 -8
- package/dist-types/models/models_2.d.ts +205 -11
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/MediaConvert.d.ts +35 -0
- package/dist-types/ts3.4/MediaConvertClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetJobsQueryResultsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartJobsQueryCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +3 -0
- package/dist-types/ts3.4/models/models_2.d.ts +65 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +33 -33
package/README.md
CHANGED
|
@@ -314,6 +314,14 @@ GetJob
|
|
|
314
314
|
|
|
315
315
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediaconvert/command/GetJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/GetJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/GetJobCommandOutput/)
|
|
316
316
|
|
|
317
|
+
</details>
|
|
318
|
+
<details>
|
|
319
|
+
<summary>
|
|
320
|
+
GetJobsQueryResults
|
|
321
|
+
</summary>
|
|
322
|
+
|
|
323
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediaconvert/command/GetJobsQueryResultsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/GetJobsQueryResultsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/GetJobsQueryResultsCommandOutput/)
|
|
324
|
+
|
|
317
325
|
</details>
|
|
318
326
|
<details>
|
|
319
327
|
<summary>
|
|
@@ -418,6 +426,14 @@ SearchJobs
|
|
|
418
426
|
|
|
419
427
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediaconvert/command/SearchJobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/SearchJobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/SearchJobsCommandOutput/)
|
|
420
428
|
|
|
429
|
+
</details>
|
|
430
|
+
<details>
|
|
431
|
+
<summary>
|
|
432
|
+
StartJobsQuery
|
|
433
|
+
</summary>
|
|
434
|
+
|
|
435
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediaconvert/command/StartJobsQueryCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/StartJobsQueryCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/StartJobsQueryCommandOutput/)
|
|
436
|
+
|
|
421
437
|
</details>
|
|
422
438
|
<details>
|
|
423
439
|
<summary>
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
4
|
const w = "required", x = "fn", y = "argv", z = "ref";
|
|
5
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = "stringEquals", j = { [w]: false, "type": "
|
|
5
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = "stringEquals", j = { [w]: false, "type": "string" }, k = { [w]: true, "default": false, "type": "boolean" }, l = { [z]: "Endpoint" }, m = { [x]: c, [y]: [{ [z]: "UseFIPS" }, true] }, n = { [x]: c, [y]: [{ [z]: "UseDualStack" }, true] }, o = {}, p = { [z]: "Region" }, q = { [x]: h, [y]: [{ [z]: g }, "supportsFIPS"] }, r = { [z]: g }, s = { [x]: c, [y]: [true, { [x]: h, [y]: [r, "supportsDualStack"] }] }, t = [m], u = [n], v = [p];
|
|
6
6
|
const _data = { version: "1.0", parameters: { Region: j, UseDualStack: k, UseFIPS: k, Endpoint: j }, rules: [{ conditions: [{ [x]: b, [y]: [l] }], rules: [{ conditions: t, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: u, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: l, properties: o, headers: o }, type: e }], type: f }, { conditions: [{ [x]: b, [y]: v }], rules: [{ conditions: [{ [x]: "aws.partition", [y]: v, assign: g }], rules: [{ conditions: [m, n], rules: [{ conditions: [{ [x]: c, [y]: [a, q] }, s], rules: [{ endpoint: { url: "https://mediaconvert-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: t, rules: [{ conditions: [{ [x]: c, [y]: [q, a] }], rules: [{ conditions: [{ [x]: i, [y]: [{ [x]: h, [y]: [r, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://mediaconvert.{Region}.amazonaws.com", properties: o, headers: o }, type: e }, { endpoint: { url: "https://mediaconvert-fips.{Region}.{PartitionResult#dnsSuffix}", properties: o, headers: o }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: u, rules: [{ conditions: [s], rules: [{ endpoint: { url: "https://mediaconvert.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { conditions: [{ [x]: i, [y]: [p, "cn-northwest-1"] }], endpoint: { url: "https://subscribe.mediaconvert.cn-northwest-1.amazonaws.com.cn", properties: o, headers: o }, type: e }, { endpoint: { url: "https://mediaconvert.{Region}.{PartitionResult#dnsSuffix}", properties: o, headers: o }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
7
7
|
exports.ruleSet = _data;
|
package/dist-cjs/index.js
CHANGED
|
@@ -151,6 +151,15 @@ const StatusUpdateInterval = {
|
|
|
151
151
|
SECONDS_60: "SECONDS_60",
|
|
152
152
|
SECONDS_600: "SECONDS_600",
|
|
153
153
|
};
|
|
154
|
+
const JobsQueryFilterKey = {
|
|
155
|
+
audioCodec: "audioCodec",
|
|
156
|
+
fileInput: "fileInput",
|
|
157
|
+
jobEngineVersionRequested: "jobEngineVersionRequested",
|
|
158
|
+
jobEngineVersionUsed: "jobEngineVersionUsed",
|
|
159
|
+
queue: "queue",
|
|
160
|
+
status: "status",
|
|
161
|
+
videoCodec: "videoCodec",
|
|
162
|
+
};
|
|
154
163
|
const Type = {
|
|
155
164
|
CUSTOM: "CUSTOM",
|
|
156
165
|
SYSTEM: "SYSTEM",
|
|
@@ -176,12 +185,15 @@ const Codec = {
|
|
|
176
185
|
MJPEG: "MJPEG",
|
|
177
186
|
MP3: "MP3",
|
|
178
187
|
MP4V: "MP4V",
|
|
188
|
+
MPEG1: "MPEG1",
|
|
179
189
|
MPEG2: "MPEG2",
|
|
180
190
|
OPUS: "OPUS",
|
|
181
191
|
PCM: "PCM",
|
|
182
192
|
PRORES: "PRORES",
|
|
193
|
+
QTRLE: "QTRLE",
|
|
183
194
|
THEORA: "THEORA",
|
|
184
195
|
UNKNOWN: "UNKNOWN",
|
|
196
|
+
VFW: "VFW",
|
|
185
197
|
VORBIS: "VORBIS",
|
|
186
198
|
VP8: "VP8",
|
|
187
199
|
VP9: "VP9",
|
|
@@ -340,6 +352,20 @@ class NotFoundException extends MediaConvertServiceException {
|
|
|
340
352
|
this.Message = opts.Message;
|
|
341
353
|
}
|
|
342
354
|
}
|
|
355
|
+
class ServiceQuotaExceededException extends MediaConvertServiceException {
|
|
356
|
+
name = "ServiceQuotaExceededException";
|
|
357
|
+
$fault = "client";
|
|
358
|
+
Message;
|
|
359
|
+
constructor(opts) {
|
|
360
|
+
super({
|
|
361
|
+
name: "ServiceQuotaExceededException",
|
|
362
|
+
$fault: "client",
|
|
363
|
+
...opts,
|
|
364
|
+
});
|
|
365
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
366
|
+
this.Message = opts.Message;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
343
369
|
class TooManyRequestsException extends MediaConvertServiceException {
|
|
344
370
|
name = "TooManyRequestsException";
|
|
345
371
|
$fault = "client";
|
|
@@ -358,6 +384,12 @@ const DescribeEndpointsMode = {
|
|
|
358
384
|
DEFAULT: "DEFAULT",
|
|
359
385
|
GET_ONLY: "GET_ONLY",
|
|
360
386
|
};
|
|
387
|
+
const JobsQueryStatus = {
|
|
388
|
+
COMPLETE: "COMPLETE",
|
|
389
|
+
ERROR: "ERROR",
|
|
390
|
+
PROGRESSING: "PROGRESSING",
|
|
391
|
+
SUBMITTED: "SUBMITTED",
|
|
392
|
+
};
|
|
361
393
|
const InputPolicy = {
|
|
362
394
|
ALLOWED: "ALLOWED",
|
|
363
395
|
DISALLOWED: "DISALLOWED",
|
|
@@ -569,6 +601,15 @@ const se_GetJobCommand = async (input, context) => {
|
|
|
569
601
|
b.m("GET").h(headers).b(body);
|
|
570
602
|
return b.build();
|
|
571
603
|
};
|
|
604
|
+
const se_GetJobsQueryResultsCommand = async (input, context) => {
|
|
605
|
+
const b = core.requestBuilder(input, context);
|
|
606
|
+
const headers = {};
|
|
607
|
+
b.bp("/2017-08-29/jobsQueries/{Id}");
|
|
608
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
609
|
+
let body;
|
|
610
|
+
b.m("GET").h(headers).b(body);
|
|
611
|
+
return b.build();
|
|
612
|
+
};
|
|
572
613
|
const se_GetJobTemplateCommand = async (input, context) => {
|
|
573
614
|
const b = core.requestBuilder(input, context);
|
|
574
615
|
const headers = {};
|
|
@@ -726,6 +767,22 @@ const se_SearchJobsCommand = async (input, context) => {
|
|
|
726
767
|
b.m("GET").h(headers).q(query).b(body);
|
|
727
768
|
return b.build();
|
|
728
769
|
};
|
|
770
|
+
const se_StartJobsQueryCommand = async (input, context) => {
|
|
771
|
+
const b = core.requestBuilder(input, context);
|
|
772
|
+
const headers = {
|
|
773
|
+
"content-type": "application/json",
|
|
774
|
+
};
|
|
775
|
+
b.bp("/2017-08-29/jobsQueries");
|
|
776
|
+
let body;
|
|
777
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
778
|
+
filterList: [, (_) => se___listOfJobsQueryFilter(_), `FilterList`],
|
|
779
|
+
maxResults: [, , `MaxResults`],
|
|
780
|
+
nextToken: [, , `NextToken`],
|
|
781
|
+
order: [, , `Order`],
|
|
782
|
+
}));
|
|
783
|
+
b.m("POST").h(headers).b(body);
|
|
784
|
+
return b.build();
|
|
785
|
+
};
|
|
729
786
|
const se_TagResourceCommand = async (input, context) => {
|
|
730
787
|
const b = core.requestBuilder(input, context);
|
|
731
788
|
const headers = {
|
|
@@ -973,6 +1030,22 @@ const de_GetJobCommand = async (output, context) => {
|
|
|
973
1030
|
Object.assign(contents, doc);
|
|
974
1031
|
return contents;
|
|
975
1032
|
};
|
|
1033
|
+
const de_GetJobsQueryResultsCommand = async (output, context) => {
|
|
1034
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1035
|
+
return de_CommandError(output, context);
|
|
1036
|
+
}
|
|
1037
|
+
const contents = smithyClient.map({
|
|
1038
|
+
$metadata: deserializeMetadata(output),
|
|
1039
|
+
});
|
|
1040
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1041
|
+
const doc = smithyClient.take(data, {
|
|
1042
|
+
Jobs: [, (_) => de___listOfJob(_), `jobs`],
|
|
1043
|
+
NextToken: [, smithyClient.expectString, `nextToken`],
|
|
1044
|
+
Status: [, smithyClient.expectString, `status`],
|
|
1045
|
+
});
|
|
1046
|
+
Object.assign(contents, doc);
|
|
1047
|
+
return contents;
|
|
1048
|
+
};
|
|
976
1049
|
const de_GetJobTemplateCommand = async (output, context) => {
|
|
977
1050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
978
1051
|
return de_CommandError(output, context);
|
|
@@ -1163,6 +1236,20 @@ const de_SearchJobsCommand = async (output, context) => {
|
|
|
1163
1236
|
Object.assign(contents, doc);
|
|
1164
1237
|
return contents;
|
|
1165
1238
|
};
|
|
1239
|
+
const de_StartJobsQueryCommand = async (output, context) => {
|
|
1240
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1241
|
+
return de_CommandError(output, context);
|
|
1242
|
+
}
|
|
1243
|
+
const contents = smithyClient.map({
|
|
1244
|
+
$metadata: deserializeMetadata(output),
|
|
1245
|
+
});
|
|
1246
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1247
|
+
const doc = smithyClient.take(data, {
|
|
1248
|
+
Id: [, smithyClient.expectString, `id`],
|
|
1249
|
+
});
|
|
1250
|
+
Object.assign(contents, doc);
|
|
1251
|
+
return contents;
|
|
1252
|
+
};
|
|
1166
1253
|
const de_TagResourceCommand = async (output, context) => {
|
|
1167
1254
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1168
1255
|
return de_CommandError(output, context);
|
|
@@ -1247,6 +1334,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1247
1334
|
case "NotFoundException":
|
|
1248
1335
|
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1249
1336
|
throw await de_NotFoundExceptionRes(parsedOutput);
|
|
1337
|
+
case "ServiceQuotaExceededException":
|
|
1338
|
+
case "com.amazonaws.mediaconvert#ServiceQuotaExceededException":
|
|
1339
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
1250
1340
|
case "TooManyRequestsException":
|
|
1251
1341
|
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1252
1342
|
throw await de_TooManyRequestsExceptionRes(parsedOutput);
|
|
@@ -1325,6 +1415,19 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1325
1415
|
});
|
|
1326
1416
|
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1327
1417
|
};
|
|
1418
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1419
|
+
const contents = smithyClient.map({});
|
|
1420
|
+
const data = parsedOutput.body;
|
|
1421
|
+
const doc = smithyClient.take(data, {
|
|
1422
|
+
Message: [, smithyClient.expectString, `message`],
|
|
1423
|
+
});
|
|
1424
|
+
Object.assign(contents, doc);
|
|
1425
|
+
const exception = new ServiceQuotaExceededException({
|
|
1426
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1427
|
+
...contents,
|
|
1428
|
+
});
|
|
1429
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1430
|
+
};
|
|
1328
1431
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1329
1432
|
const contents = smithyClient.map({});
|
|
1330
1433
|
const data = parsedOutput.body;
|
|
@@ -1464,6 +1567,13 @@ const se___listOfInsertableImage = (input, context) => {
|
|
|
1464
1567
|
return se_InsertableImage(entry);
|
|
1465
1568
|
});
|
|
1466
1569
|
};
|
|
1570
|
+
const se___listOfJobsQueryFilter = (input, context) => {
|
|
1571
|
+
return input
|
|
1572
|
+
.filter((e) => e != null)
|
|
1573
|
+
.map((entry) => {
|
|
1574
|
+
return se_JobsQueryFilter(entry);
|
|
1575
|
+
});
|
|
1576
|
+
};
|
|
1467
1577
|
const se___listOfMsSmoothAdditionalManifest = (input, context) => {
|
|
1468
1578
|
return input
|
|
1469
1579
|
.filter((e) => e != null)
|
|
@@ -2616,7 +2726,9 @@ const se_InputVideoGenerator = (input, context) => {
|
|
|
2616
2726
|
duration: [, , `Duration`],
|
|
2617
2727
|
framerateDenominator: [, , `FramerateDenominator`],
|
|
2618
2728
|
framerateNumerator: [, , `FramerateNumerator`],
|
|
2729
|
+
height: [, , `Height`],
|
|
2619
2730
|
sampleRate: [, , `SampleRate`],
|
|
2731
|
+
width: [, , `Width`],
|
|
2620
2732
|
});
|
|
2621
2733
|
};
|
|
2622
2734
|
const se_InsertableImage = (input, context) => {
|
|
@@ -2656,6 +2768,12 @@ const se_JobSettings = (input, context) => {
|
|
|
2656
2768
|
timedMetadataInsertion: [, (_) => se_TimedMetadataInsertion(_), `TimedMetadataInsertion`],
|
|
2657
2769
|
});
|
|
2658
2770
|
};
|
|
2771
|
+
const se_JobsQueryFilter = (input, context) => {
|
|
2772
|
+
return smithyClient.take(input, {
|
|
2773
|
+
key: [, , `Key`],
|
|
2774
|
+
values: [, smithyClient._json, `Values`],
|
|
2775
|
+
});
|
|
2776
|
+
};
|
|
2659
2777
|
const se_JobTemplateSettings = (input, context) => {
|
|
2660
2778
|
return smithyClient.take(input, {
|
|
2661
2779
|
adAvailOffset: [, , `AdAvailOffset`],
|
|
@@ -4253,6 +4371,21 @@ const de_CmfcSettings = (output, context) => {
|
|
|
4253
4371
|
TimedMetadataValue: [, smithyClient.expectString, `timedMetadataValue`],
|
|
4254
4372
|
});
|
|
4255
4373
|
};
|
|
4374
|
+
const de_CodecMetadata = (output, context) => {
|
|
4375
|
+
return smithyClient.take(output, {
|
|
4376
|
+
BitDepth: [, smithyClient.expectInt32, `bitDepth`],
|
|
4377
|
+
ChromaSubsampling: [, smithyClient.expectString, `chromaSubsampling`],
|
|
4378
|
+
CodedFrameRate: [, (_) => de_FrameRate(_), `codedFrameRate`],
|
|
4379
|
+
ColorPrimaries: [, smithyClient.expectString, `colorPrimaries`],
|
|
4380
|
+
Height: [, smithyClient.expectInt32, `height`],
|
|
4381
|
+
Level: [, smithyClient.expectString, `level`],
|
|
4382
|
+
MatrixCoefficients: [, smithyClient.expectString, `matrixCoefficients`],
|
|
4383
|
+
Profile: [, smithyClient.expectString, `profile`],
|
|
4384
|
+
ScanType: [, smithyClient.expectString, `scanType`],
|
|
4385
|
+
TransferCharacteristics: [, smithyClient.expectString, `transferCharacteristics`],
|
|
4386
|
+
Width: [, smithyClient.expectInt32, `width`],
|
|
4387
|
+
});
|
|
4388
|
+
};
|
|
4256
4389
|
const de_ColorConversion3DLUTSetting = (output, context) => {
|
|
4257
4390
|
return smithyClient.take(output, {
|
|
4258
4391
|
FileInput: [, smithyClient.expectString, `fileInput`],
|
|
@@ -4959,7 +5092,9 @@ const de_InputVideoGenerator = (output, context) => {
|
|
|
4959
5092
|
Duration: [, smithyClient.expectInt32, `duration`],
|
|
4960
5093
|
FramerateDenominator: [, smithyClient.expectInt32, `framerateDenominator`],
|
|
4961
5094
|
FramerateNumerator: [, smithyClient.expectInt32, `framerateNumerator`],
|
|
5095
|
+
Height: [, smithyClient.expectInt32, `height`],
|
|
4962
5096
|
SampleRate: [, smithyClient.expectInt32, `sampleRate`],
|
|
5097
|
+
Width: [, smithyClient.expectInt32, `width`],
|
|
4963
5098
|
});
|
|
4964
5099
|
};
|
|
4965
5100
|
const de_InsertableImage = (output, context) => {
|
|
@@ -5866,6 +6001,7 @@ const de_VideoProperties = (output, context) => {
|
|
|
5866
6001
|
return smithyClient.take(output, {
|
|
5867
6002
|
BitDepth: [, smithyClient.expectInt32, `bitDepth`],
|
|
5868
6003
|
BitRate: [, smithyClient.expectLong, `bitRate`],
|
|
6004
|
+
CodecMetadata: [, (_) => de_CodecMetadata(_), `codecMetadata`],
|
|
5869
6005
|
ColorPrimaries: [, smithyClient.expectString, `colorPrimaries`],
|
|
5870
6006
|
FrameRate: [, (_) => de_FrameRate(_), `frameRate`],
|
|
5871
6007
|
Height: [, smithyClient.expectInt32, `height`],
|
|
@@ -6293,6 +6429,23 @@ class GetJobCommand extends smithyClient.Command
|
|
|
6293
6429
|
.build() {
|
|
6294
6430
|
}
|
|
6295
6431
|
|
|
6432
|
+
class GetJobsQueryResultsCommand extends smithyClient.Command
|
|
6433
|
+
.classBuilder()
|
|
6434
|
+
.ep(commonParams)
|
|
6435
|
+
.m(function (Command, cs, config, o) {
|
|
6436
|
+
return [
|
|
6437
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
6438
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
6439
|
+
];
|
|
6440
|
+
})
|
|
6441
|
+
.s("MediaConvert", "GetJobsQueryResults", {})
|
|
6442
|
+
.n("MediaConvertClient", "GetJobsQueryResultsCommand")
|
|
6443
|
+
.f(void 0, void 0)
|
|
6444
|
+
.ser(se_GetJobsQueryResultsCommand)
|
|
6445
|
+
.de(de_GetJobsQueryResultsCommand)
|
|
6446
|
+
.build() {
|
|
6447
|
+
}
|
|
6448
|
+
|
|
6296
6449
|
class GetJobTemplateCommand extends smithyClient.Command
|
|
6297
6450
|
.classBuilder()
|
|
6298
6451
|
.ep(commonParams)
|
|
@@ -6514,6 +6667,23 @@ class SearchJobsCommand extends smithyClient.Command
|
|
|
6514
6667
|
.build() {
|
|
6515
6668
|
}
|
|
6516
6669
|
|
|
6670
|
+
class StartJobsQueryCommand extends smithyClient.Command
|
|
6671
|
+
.classBuilder()
|
|
6672
|
+
.ep(commonParams)
|
|
6673
|
+
.m(function (Command, cs, config, o) {
|
|
6674
|
+
return [
|
|
6675
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
6676
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
6677
|
+
];
|
|
6678
|
+
})
|
|
6679
|
+
.s("MediaConvert", "StartJobsQuery", {})
|
|
6680
|
+
.n("MediaConvertClient", "StartJobsQueryCommand")
|
|
6681
|
+
.f(void 0, void 0)
|
|
6682
|
+
.ser(se_StartJobsQueryCommand)
|
|
6683
|
+
.de(de_StartJobsQueryCommand)
|
|
6684
|
+
.build() {
|
|
6685
|
+
}
|
|
6686
|
+
|
|
6517
6687
|
class TagResourceCommand extends smithyClient.Command
|
|
6518
6688
|
.classBuilder()
|
|
6519
6689
|
.ep(commonParams)
|
|
@@ -6614,6 +6784,7 @@ const commands = {
|
|
|
6614
6784
|
DescribeEndpointsCommand,
|
|
6615
6785
|
DisassociateCertificateCommand,
|
|
6616
6786
|
GetJobCommand,
|
|
6787
|
+
GetJobsQueryResultsCommand,
|
|
6617
6788
|
GetJobTemplateCommand,
|
|
6618
6789
|
GetPolicyCommand,
|
|
6619
6790
|
GetPresetCommand,
|
|
@@ -6627,6 +6798,7 @@ const commands = {
|
|
|
6627
6798
|
ProbeCommand,
|
|
6628
6799
|
PutPolicyCommand,
|
|
6629
6800
|
SearchJobsCommand,
|
|
6801
|
+
StartJobsQueryCommand,
|
|
6630
6802
|
TagResourceCommand,
|
|
6631
6803
|
UntagResourceCommand,
|
|
6632
6804
|
UpdateJobTemplateCommand,
|
|
@@ -7348,6 +7520,7 @@ const FrameMetricType = {
|
|
|
7348
7520
|
PSNR: "PSNR",
|
|
7349
7521
|
PSNR_HVS: "PSNR_HVS",
|
|
7350
7522
|
QVBR: "QVBR",
|
|
7523
|
+
SHOT_CHANGE: "SHOT_CHANGE",
|
|
7351
7524
|
SSIM: "SSIM",
|
|
7352
7525
|
VMAF: "VMAF",
|
|
7353
7526
|
};
|
|
@@ -9199,6 +9372,7 @@ exports.Format = Format;
|
|
|
9199
9372
|
exports.FrameMetricType = FrameMetricType;
|
|
9200
9373
|
exports.GetJobCommand = GetJobCommand;
|
|
9201
9374
|
exports.GetJobTemplateCommand = GetJobTemplateCommand;
|
|
9375
|
+
exports.GetJobsQueryResultsCommand = GetJobsQueryResultsCommand;
|
|
9202
9376
|
exports.GetPolicyCommand = GetPolicyCommand;
|
|
9203
9377
|
exports.GetPresetCommand = GetPresetCommand;
|
|
9204
9378
|
exports.GetQueueCommand = GetQueueCommand;
|
|
@@ -9301,6 +9475,8 @@ exports.InternalServerErrorException = InternalServerErrorException;
|
|
|
9301
9475
|
exports.JobPhase = JobPhase;
|
|
9302
9476
|
exports.JobStatus = JobStatus;
|
|
9303
9477
|
exports.JobTemplateListBy = JobTemplateListBy;
|
|
9478
|
+
exports.JobsQueryFilterKey = JobsQueryFilterKey;
|
|
9479
|
+
exports.JobsQueryStatus = JobsQueryStatus;
|
|
9304
9480
|
exports.LanguageCode = LanguageCode;
|
|
9305
9481
|
exports.ListJobTemplatesCommand = ListJobTemplatesCommand;
|
|
9306
9482
|
exports.ListJobsCommand = ListJobsCommand;
|
|
@@ -9421,9 +9597,11 @@ exports.SampleRangeConversion = SampleRangeConversion;
|
|
|
9421
9597
|
exports.ScalingBehavior = ScalingBehavior;
|
|
9422
9598
|
exports.SccDestinationFramerate = SccDestinationFramerate;
|
|
9423
9599
|
exports.SearchJobsCommand = SearchJobsCommand;
|
|
9600
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
9424
9601
|
exports.ShareStatus = ShareStatus;
|
|
9425
9602
|
exports.SimulateReservedQueue = SimulateReservedQueue;
|
|
9426
9603
|
exports.SrtStylePassthrough = SrtStylePassthrough;
|
|
9604
|
+
exports.StartJobsQueryCommand = StartJobsQueryCommand;
|
|
9427
9605
|
exports.StatusUpdateInterval = StatusUpdateInterval;
|
|
9428
9606
|
exports.TagResourceCommand = TagResourceCommand;
|
|
9429
9607
|
exports.TamsGapHandling = TamsGapHandling;
|
package/dist-es/MediaConvert.js
CHANGED
|
@@ -13,6 +13,7 @@ import { DeleteQueueCommand } from "./commands/DeleteQueueCommand";
|
|
|
13
13
|
import { DescribeEndpointsCommand, } from "./commands/DescribeEndpointsCommand";
|
|
14
14
|
import { DisassociateCertificateCommand, } from "./commands/DisassociateCertificateCommand";
|
|
15
15
|
import { GetJobCommand } from "./commands/GetJobCommand";
|
|
16
|
+
import { GetJobsQueryResultsCommand, } from "./commands/GetJobsQueryResultsCommand";
|
|
16
17
|
import { GetJobTemplateCommand, } from "./commands/GetJobTemplateCommand";
|
|
17
18
|
import { GetPolicyCommand } from "./commands/GetPolicyCommand";
|
|
18
19
|
import { GetPresetCommand } from "./commands/GetPresetCommand";
|
|
@@ -26,6 +27,7 @@ import { ListVersionsCommand, } from "./commands/ListVersionsCommand";
|
|
|
26
27
|
import { ProbeCommand } from "./commands/ProbeCommand";
|
|
27
28
|
import { PutPolicyCommand } from "./commands/PutPolicyCommand";
|
|
28
29
|
import { SearchJobsCommand } from "./commands/SearchJobsCommand";
|
|
30
|
+
import { StartJobsQueryCommand, } from "./commands/StartJobsQueryCommand";
|
|
29
31
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
30
32
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
31
33
|
import { UpdateJobTemplateCommand, } from "./commands/UpdateJobTemplateCommand";
|
|
@@ -47,6 +49,7 @@ const commands = {
|
|
|
47
49
|
DescribeEndpointsCommand,
|
|
48
50
|
DisassociateCertificateCommand,
|
|
49
51
|
GetJobCommand,
|
|
52
|
+
GetJobsQueryResultsCommand,
|
|
50
53
|
GetJobTemplateCommand,
|
|
51
54
|
GetPolicyCommand,
|
|
52
55
|
GetPresetCommand,
|
|
@@ -60,6 +63,7 @@ const commands = {
|
|
|
60
63
|
ProbeCommand,
|
|
61
64
|
PutPolicyCommand,
|
|
62
65
|
SearchJobsCommand,
|
|
66
|
+
StartJobsQueryCommand,
|
|
63
67
|
TagResourceCommand,
|
|
64
68
|
UntagResourceCommand,
|
|
65
69
|
UpdateJobTemplateCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetJobsQueryResultsCommand, se_GetJobsQueryResultsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetJobsQueryResultsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("MediaConvert", "GetJobsQueryResults", {})
|
|
17
|
+
.n("MediaConvertClient", "GetJobsQueryResultsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_GetJobsQueryResultsCommand)
|
|
20
|
+
.de(de_GetJobsQueryResultsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_StartJobsQueryCommand, se_StartJobsQueryCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class StartJobsQueryCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("MediaConvert", "StartJobsQuery", {})
|
|
17
|
+
.n("MediaConvertClient", "StartJobsQueryCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_StartJobsQueryCommand)
|
|
20
|
+
.de(de_StartJobsQueryCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -13,6 +13,7 @@ export * from "./DescribeEndpointsCommand";
|
|
|
13
13
|
export * from "./DisassociateCertificateCommand";
|
|
14
14
|
export * from "./GetJobCommand";
|
|
15
15
|
export * from "./GetJobTemplateCommand";
|
|
16
|
+
export * from "./GetJobsQueryResultsCommand";
|
|
16
17
|
export * from "./GetPolicyCommand";
|
|
17
18
|
export * from "./GetPresetCommand";
|
|
18
19
|
export * from "./GetQueueCommand";
|
|
@@ -25,6 +26,7 @@ export * from "./ListVersionsCommand";
|
|
|
25
26
|
export * from "./ProbeCommand";
|
|
26
27
|
export * from "./PutPolicyCommand";
|
|
27
28
|
export * from "./SearchJobsCommand";
|
|
29
|
+
export * from "./StartJobsQueryCommand";
|
|
28
30
|
export * from "./TagResourceCommand";
|
|
29
31
|
export * from "./UntagResourceCommand";
|
|
30
32
|
export * from "./UpdateJobTemplateCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const w = "required", x = "fn", y = "argv", z = "ref";
|
|
2
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = "stringEquals", j = { [w]: false, "type": "
|
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = "stringEquals", j = { [w]: false, "type": "string" }, k = { [w]: true, "default": false, "type": "boolean" }, l = { [z]: "Endpoint" }, m = { [x]: c, [y]: [{ [z]: "UseFIPS" }, true] }, n = { [x]: c, [y]: [{ [z]: "UseDualStack" }, true] }, o = {}, p = { [z]: "Region" }, q = { [x]: h, [y]: [{ [z]: g }, "supportsFIPS"] }, r = { [z]: g }, s = { [x]: c, [y]: [true, { [x]: h, [y]: [r, "supportsDualStack"] }] }, t = [m], u = [n], v = [p];
|
|
3
3
|
const _data = { version: "1.0", parameters: { Region: j, UseDualStack: k, UseFIPS: k, Endpoint: j }, rules: [{ conditions: [{ [x]: b, [y]: [l] }], rules: [{ conditions: t, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: u, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: l, properties: o, headers: o }, type: e }], type: f }, { conditions: [{ [x]: b, [y]: v }], rules: [{ conditions: [{ [x]: "aws.partition", [y]: v, assign: g }], rules: [{ conditions: [m, n], rules: [{ conditions: [{ [x]: c, [y]: [a, q] }, s], rules: [{ endpoint: { url: "https://mediaconvert-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: t, rules: [{ conditions: [{ [x]: c, [y]: [q, a] }], rules: [{ conditions: [{ [x]: i, [y]: [{ [x]: h, [y]: [r, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://mediaconvert.{Region}.amazonaws.com", properties: o, headers: o }, type: e }, { endpoint: { url: "https://mediaconvert-fips.{Region}.{PartitionResult#dnsSuffix}", properties: o, headers: o }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: u, rules: [{ conditions: [s], rules: [{ endpoint: { url: "https://mediaconvert.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { conditions: [{ [x]: i, [y]: [p, "cn-northwest-1"] }], endpoint: { url: "https://subscribe.mediaconvert.cn-northwest-1.amazonaws.com.cn", properties: o, headers: o }, type: e }, { endpoint: { url: "https://mediaconvert.{Region}.{PartitionResult#dnsSuffix}", properties: o, headers: o }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -32,6 +32,15 @@ export const StatusUpdateInterval = {
|
|
|
32
32
|
SECONDS_60: "SECONDS_60",
|
|
33
33
|
SECONDS_600: "SECONDS_600",
|
|
34
34
|
};
|
|
35
|
+
export const JobsQueryFilterKey = {
|
|
36
|
+
audioCodec: "audioCodec",
|
|
37
|
+
fileInput: "fileInput",
|
|
38
|
+
jobEngineVersionRequested: "jobEngineVersionRequested",
|
|
39
|
+
jobEngineVersionUsed: "jobEngineVersionUsed",
|
|
40
|
+
queue: "queue",
|
|
41
|
+
status: "status",
|
|
42
|
+
videoCodec: "videoCodec",
|
|
43
|
+
};
|
|
35
44
|
export const Type = {
|
|
36
45
|
CUSTOM: "CUSTOM",
|
|
37
46
|
SYSTEM: "SYSTEM",
|
|
@@ -57,12 +66,15 @@ export const Codec = {
|
|
|
57
66
|
MJPEG: "MJPEG",
|
|
58
67
|
MP3: "MP3",
|
|
59
68
|
MP4V: "MP4V",
|
|
69
|
+
MPEG1: "MPEG1",
|
|
60
70
|
MPEG2: "MPEG2",
|
|
61
71
|
OPUS: "OPUS",
|
|
62
72
|
PCM: "PCM",
|
|
63
73
|
PRORES: "PRORES",
|
|
74
|
+
QTRLE: "QTRLE",
|
|
64
75
|
THEORA: "THEORA",
|
|
65
76
|
UNKNOWN: "UNKNOWN",
|
|
77
|
+
VFW: "VFW",
|
|
66
78
|
VORBIS: "VORBIS",
|
|
67
79
|
VP8: "VP8",
|
|
68
80
|
VP9: "VP9",
|
|
@@ -221,6 +233,20 @@ export class NotFoundException extends __BaseException {
|
|
|
221
233
|
this.Message = opts.Message;
|
|
222
234
|
}
|
|
223
235
|
}
|
|
236
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
237
|
+
name = "ServiceQuotaExceededException";
|
|
238
|
+
$fault = "client";
|
|
239
|
+
Message;
|
|
240
|
+
constructor(opts) {
|
|
241
|
+
super({
|
|
242
|
+
name: "ServiceQuotaExceededException",
|
|
243
|
+
$fault: "client",
|
|
244
|
+
...opts,
|
|
245
|
+
});
|
|
246
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
247
|
+
this.Message = opts.Message;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
224
250
|
export class TooManyRequestsException extends __BaseException {
|
|
225
251
|
name = "TooManyRequestsException";
|
|
226
252
|
$fault = "client";
|
|
@@ -239,6 +265,12 @@ export const DescribeEndpointsMode = {
|
|
|
239
265
|
DEFAULT: "DEFAULT",
|
|
240
266
|
GET_ONLY: "GET_ONLY",
|
|
241
267
|
};
|
|
268
|
+
export const JobsQueryStatus = {
|
|
269
|
+
COMPLETE: "COMPLETE",
|
|
270
|
+
ERROR: "ERROR",
|
|
271
|
+
PROGRESSING: "PROGRESSING",
|
|
272
|
+
SUBMITTED: "SUBMITTED",
|
|
273
|
+
};
|
|
242
274
|
export const InputPolicy = {
|
|
243
275
|
ALLOWED: "ALLOWED",
|
|
244
276
|
DISALLOWED: "DISALLOWED",
|