@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
|
@@ -214,6 +214,30 @@ export var serializeAws_restJson1DeleteJobTemplateCommand = function (input, con
|
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
216
|
}); };
|
|
217
|
+
export var serializeAws_restJson1DeletePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
218
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
219
|
+
return __generator(this, function (_c) {
|
|
220
|
+
switch (_c.label) {
|
|
221
|
+
case 0: return [4, context.endpoint()];
|
|
222
|
+
case 1:
|
|
223
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
224
|
+
headers = {
|
|
225
|
+
"content-type": "application/json",
|
|
226
|
+
};
|
|
227
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2017-08-29/policy";
|
|
228
|
+
body = "";
|
|
229
|
+
return [2, new __HttpRequest({
|
|
230
|
+
protocol: protocol,
|
|
231
|
+
hostname: hostname,
|
|
232
|
+
port: port,
|
|
233
|
+
method: "DELETE",
|
|
234
|
+
headers: headers,
|
|
235
|
+
path: resolvedPath,
|
|
236
|
+
body: body,
|
|
237
|
+
})];
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
}); };
|
|
217
241
|
export var serializeAws_restJson1DeletePresetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
218
242
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
219
243
|
return __generator(this, function (_c) {
|
|
@@ -393,6 +417,30 @@ export var serializeAws_restJson1GetJobTemplateCommand = function (input, contex
|
|
|
393
417
|
}
|
|
394
418
|
});
|
|
395
419
|
}); };
|
|
420
|
+
export var serializeAws_restJson1GetPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
421
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
422
|
+
return __generator(this, function (_c) {
|
|
423
|
+
switch (_c.label) {
|
|
424
|
+
case 0: return [4, context.endpoint()];
|
|
425
|
+
case 1:
|
|
426
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
427
|
+
headers = {
|
|
428
|
+
"content-type": "application/json",
|
|
429
|
+
};
|
|
430
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2017-08-29/policy";
|
|
431
|
+
body = "";
|
|
432
|
+
return [2, new __HttpRequest({
|
|
433
|
+
protocol: protocol,
|
|
434
|
+
hostname: hostname,
|
|
435
|
+
port: port,
|
|
436
|
+
method: "GET",
|
|
437
|
+
headers: headers,
|
|
438
|
+
path: resolvedPath,
|
|
439
|
+
body: body,
|
|
440
|
+
})];
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
}); };
|
|
396
444
|
export var serializeAws_restJson1GetPresetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
397
445
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
398
446
|
return __generator(this, function (_c) {
|
|
@@ -578,6 +626,31 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
578
626
|
}
|
|
579
627
|
});
|
|
580
628
|
}); };
|
|
629
|
+
export var serializeAws_restJson1PutPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
630
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
631
|
+
return __generator(this, function (_c) {
|
|
632
|
+
switch (_c.label) {
|
|
633
|
+
case 0: return [4, context.endpoint()];
|
|
634
|
+
case 1:
|
|
635
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
636
|
+
headers = {
|
|
637
|
+
"content-type": "application/json",
|
|
638
|
+
};
|
|
639
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2017-08-29/policy";
|
|
640
|
+
body = JSON.stringify(__assign({}, (input.Policy !== undefined &&
|
|
641
|
+
input.Policy !== null && { policy: serializeAws_restJson1Policy(input.Policy, context) })));
|
|
642
|
+
return [2, new __HttpRequest({
|
|
643
|
+
protocol: protocol,
|
|
644
|
+
hostname: hostname,
|
|
645
|
+
port: port,
|
|
646
|
+
method: "PUT",
|
|
647
|
+
headers: headers,
|
|
648
|
+
path: resolvedPath,
|
|
649
|
+
body: body,
|
|
650
|
+
})];
|
|
651
|
+
}
|
|
652
|
+
});
|
|
653
|
+
}); };
|
|
581
654
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
582
655
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
583
656
|
return __generator(this, function (_c) {
|
|
@@ -1448,6 +1521,102 @@ var deserializeAws_restJson1DeleteJobTemplateCommandError = function (output, co
|
|
|
1448
1521
|
}
|
|
1449
1522
|
});
|
|
1450
1523
|
}); };
|
|
1524
|
+
export var deserializeAws_restJson1DeletePolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1525
|
+
var contents;
|
|
1526
|
+
return __generator(this, function (_a) {
|
|
1527
|
+
switch (_a.label) {
|
|
1528
|
+
case 0:
|
|
1529
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1530
|
+
return [2, deserializeAws_restJson1DeletePolicyCommandError(output, context)];
|
|
1531
|
+
}
|
|
1532
|
+
contents = {
|
|
1533
|
+
$metadata: deserializeMetadata(output),
|
|
1534
|
+
};
|
|
1535
|
+
return [4, collectBody(output.body, context)];
|
|
1536
|
+
case 1:
|
|
1537
|
+
_a.sent();
|
|
1538
|
+
return [2, Promise.resolve(contents)];
|
|
1539
|
+
}
|
|
1540
|
+
});
|
|
1541
|
+
}); };
|
|
1542
|
+
var deserializeAws_restJson1DeletePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1543
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
1544
|
+
var _j;
|
|
1545
|
+
return __generator(this, function (_k) {
|
|
1546
|
+
switch (_k.label) {
|
|
1547
|
+
case 0:
|
|
1548
|
+
_a = [__assign({}, output)];
|
|
1549
|
+
_j = {};
|
|
1550
|
+
return [4, parseBody(output.body, context)];
|
|
1551
|
+
case 1:
|
|
1552
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1553
|
+
errorCode = "UnknownError";
|
|
1554
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
|
+
_b = errorCode;
|
|
1556
|
+
switch (_b) {
|
|
1557
|
+
case "BadRequestException": return [3, 2];
|
|
1558
|
+
case "com.amazonaws.mediaconvert#BadRequestException": return [3, 2];
|
|
1559
|
+
case "ConflictException": return [3, 4];
|
|
1560
|
+
case "com.amazonaws.mediaconvert#ConflictException": return [3, 4];
|
|
1561
|
+
case "ForbiddenException": return [3, 6];
|
|
1562
|
+
case "com.amazonaws.mediaconvert#ForbiddenException": return [3, 6];
|
|
1563
|
+
case "InternalServerErrorException": return [3, 8];
|
|
1564
|
+
case "com.amazonaws.mediaconvert#InternalServerErrorException": return [3, 8];
|
|
1565
|
+
case "NotFoundException": return [3, 10];
|
|
1566
|
+
case "com.amazonaws.mediaconvert#NotFoundException": return [3, 10];
|
|
1567
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1568
|
+
case "com.amazonaws.mediaconvert#TooManyRequestsException": return [3, 12];
|
|
1569
|
+
}
|
|
1570
|
+
return [3, 14];
|
|
1571
|
+
case 2:
|
|
1572
|
+
_c = [{}];
|
|
1573
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1574
|
+
case 3:
|
|
1575
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1576
|
+
return [3, 15];
|
|
1577
|
+
case 4:
|
|
1578
|
+
_d = [{}];
|
|
1579
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1580
|
+
case 5:
|
|
1581
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1582
|
+
return [3, 15];
|
|
1583
|
+
case 6:
|
|
1584
|
+
_e = [{}];
|
|
1585
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1586
|
+
case 7:
|
|
1587
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1588
|
+
return [3, 15];
|
|
1589
|
+
case 8:
|
|
1590
|
+
_f = [{}];
|
|
1591
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1592
|
+
case 9:
|
|
1593
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1594
|
+
return [3, 15];
|
|
1595
|
+
case 10:
|
|
1596
|
+
_g = [{}];
|
|
1597
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1598
|
+
case 11:
|
|
1599
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1600
|
+
return [3, 15];
|
|
1601
|
+
case 12:
|
|
1602
|
+
_h = [{}];
|
|
1603
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1604
|
+
case 13:
|
|
1605
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1606
|
+
return [3, 15];
|
|
1607
|
+
case 14:
|
|
1608
|
+
parsedBody = parsedOutput.body;
|
|
1609
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1610
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1611
|
+
_k.label = 15;
|
|
1612
|
+
case 15:
|
|
1613
|
+
message = response.message || response.Message || errorCode;
|
|
1614
|
+
response.message = message;
|
|
1615
|
+
delete response.Message;
|
|
1616
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1617
|
+
}
|
|
1618
|
+
});
|
|
1619
|
+
}); };
|
|
1451
1620
|
export var deserializeAws_restJson1DeletePresetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1452
1621
|
var contents;
|
|
1453
1622
|
return __generator(this, function (_a) {
|
|
@@ -2046,6 +2215,108 @@ var deserializeAws_restJson1GetJobTemplateCommandError = function (output, conte
|
|
|
2046
2215
|
}
|
|
2047
2216
|
});
|
|
2048
2217
|
}); };
|
|
2218
|
+
export var deserializeAws_restJson1GetPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2219
|
+
var contents, data, _a, _b;
|
|
2220
|
+
return __generator(this, function (_c) {
|
|
2221
|
+
switch (_c.label) {
|
|
2222
|
+
case 0:
|
|
2223
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2224
|
+
return [2, deserializeAws_restJson1GetPolicyCommandError(output, context)];
|
|
2225
|
+
}
|
|
2226
|
+
contents = {
|
|
2227
|
+
$metadata: deserializeMetadata(output),
|
|
2228
|
+
Policy: undefined,
|
|
2229
|
+
};
|
|
2230
|
+
_a = __expectNonNull;
|
|
2231
|
+
_b = __expectObject;
|
|
2232
|
+
return [4, parseBody(output.body, context)];
|
|
2233
|
+
case 1:
|
|
2234
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2235
|
+
if (data.policy !== undefined && data.policy !== null) {
|
|
2236
|
+
contents.Policy = deserializeAws_restJson1Policy(data.policy, context);
|
|
2237
|
+
}
|
|
2238
|
+
return [2, Promise.resolve(contents)];
|
|
2239
|
+
}
|
|
2240
|
+
});
|
|
2241
|
+
}); };
|
|
2242
|
+
var deserializeAws_restJson1GetPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2243
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
2244
|
+
var _j;
|
|
2245
|
+
return __generator(this, function (_k) {
|
|
2246
|
+
switch (_k.label) {
|
|
2247
|
+
case 0:
|
|
2248
|
+
_a = [__assign({}, output)];
|
|
2249
|
+
_j = {};
|
|
2250
|
+
return [4, parseBody(output.body, context)];
|
|
2251
|
+
case 1:
|
|
2252
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2253
|
+
errorCode = "UnknownError";
|
|
2254
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2255
|
+
_b = errorCode;
|
|
2256
|
+
switch (_b) {
|
|
2257
|
+
case "BadRequestException": return [3, 2];
|
|
2258
|
+
case "com.amazonaws.mediaconvert#BadRequestException": return [3, 2];
|
|
2259
|
+
case "ConflictException": return [3, 4];
|
|
2260
|
+
case "com.amazonaws.mediaconvert#ConflictException": return [3, 4];
|
|
2261
|
+
case "ForbiddenException": return [3, 6];
|
|
2262
|
+
case "com.amazonaws.mediaconvert#ForbiddenException": return [3, 6];
|
|
2263
|
+
case "InternalServerErrorException": return [3, 8];
|
|
2264
|
+
case "com.amazonaws.mediaconvert#InternalServerErrorException": return [3, 8];
|
|
2265
|
+
case "NotFoundException": return [3, 10];
|
|
2266
|
+
case "com.amazonaws.mediaconvert#NotFoundException": return [3, 10];
|
|
2267
|
+
case "TooManyRequestsException": return [3, 12];
|
|
2268
|
+
case "com.amazonaws.mediaconvert#TooManyRequestsException": return [3, 12];
|
|
2269
|
+
}
|
|
2270
|
+
return [3, 14];
|
|
2271
|
+
case 2:
|
|
2272
|
+
_c = [{}];
|
|
2273
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2274
|
+
case 3:
|
|
2275
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2276
|
+
return [3, 15];
|
|
2277
|
+
case 4:
|
|
2278
|
+
_d = [{}];
|
|
2279
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2280
|
+
case 5:
|
|
2281
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2282
|
+
return [3, 15];
|
|
2283
|
+
case 6:
|
|
2284
|
+
_e = [{}];
|
|
2285
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2286
|
+
case 7:
|
|
2287
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2288
|
+
return [3, 15];
|
|
2289
|
+
case 8:
|
|
2290
|
+
_f = [{}];
|
|
2291
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2292
|
+
case 9:
|
|
2293
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2294
|
+
return [3, 15];
|
|
2295
|
+
case 10:
|
|
2296
|
+
_g = [{}];
|
|
2297
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2298
|
+
case 11:
|
|
2299
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2300
|
+
return [3, 15];
|
|
2301
|
+
case 12:
|
|
2302
|
+
_h = [{}];
|
|
2303
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2304
|
+
case 13:
|
|
2305
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2306
|
+
return [3, 15];
|
|
2307
|
+
case 14:
|
|
2308
|
+
parsedBody = parsedOutput.body;
|
|
2309
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2310
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2311
|
+
_k.label = 15;
|
|
2312
|
+
case 15:
|
|
2313
|
+
message = response.message || response.Message || errorCode;
|
|
2314
|
+
response.message = message;
|
|
2315
|
+
delete response.Message;
|
|
2316
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2317
|
+
}
|
|
2318
|
+
});
|
|
2319
|
+
}); };
|
|
2049
2320
|
export var deserializeAws_restJson1GetPresetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2050
2321
|
var contents, data, _a, _b;
|
|
2051
2322
|
return __generator(this, function (_c) {
|
|
@@ -2776,6 +3047,108 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2776
3047
|
}
|
|
2777
3048
|
});
|
|
2778
3049
|
}); };
|
|
3050
|
+
export var deserializeAws_restJson1PutPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3051
|
+
var contents, data, _a, _b;
|
|
3052
|
+
return __generator(this, function (_c) {
|
|
3053
|
+
switch (_c.label) {
|
|
3054
|
+
case 0:
|
|
3055
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3056
|
+
return [2, deserializeAws_restJson1PutPolicyCommandError(output, context)];
|
|
3057
|
+
}
|
|
3058
|
+
contents = {
|
|
3059
|
+
$metadata: deserializeMetadata(output),
|
|
3060
|
+
Policy: undefined,
|
|
3061
|
+
};
|
|
3062
|
+
_a = __expectNonNull;
|
|
3063
|
+
_b = __expectObject;
|
|
3064
|
+
return [4, parseBody(output.body, context)];
|
|
3065
|
+
case 1:
|
|
3066
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3067
|
+
if (data.policy !== undefined && data.policy !== null) {
|
|
3068
|
+
contents.Policy = deserializeAws_restJson1Policy(data.policy, context);
|
|
3069
|
+
}
|
|
3070
|
+
return [2, Promise.resolve(contents)];
|
|
3071
|
+
}
|
|
3072
|
+
});
|
|
3073
|
+
}); };
|
|
3074
|
+
var deserializeAws_restJson1PutPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3075
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
3076
|
+
var _j;
|
|
3077
|
+
return __generator(this, function (_k) {
|
|
3078
|
+
switch (_k.label) {
|
|
3079
|
+
case 0:
|
|
3080
|
+
_a = [__assign({}, output)];
|
|
3081
|
+
_j = {};
|
|
3082
|
+
return [4, parseBody(output.body, context)];
|
|
3083
|
+
case 1:
|
|
3084
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3085
|
+
errorCode = "UnknownError";
|
|
3086
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3087
|
+
_b = errorCode;
|
|
3088
|
+
switch (_b) {
|
|
3089
|
+
case "BadRequestException": return [3, 2];
|
|
3090
|
+
case "com.amazonaws.mediaconvert#BadRequestException": return [3, 2];
|
|
3091
|
+
case "ConflictException": return [3, 4];
|
|
3092
|
+
case "com.amazonaws.mediaconvert#ConflictException": return [3, 4];
|
|
3093
|
+
case "ForbiddenException": return [3, 6];
|
|
3094
|
+
case "com.amazonaws.mediaconvert#ForbiddenException": return [3, 6];
|
|
3095
|
+
case "InternalServerErrorException": return [3, 8];
|
|
3096
|
+
case "com.amazonaws.mediaconvert#InternalServerErrorException": return [3, 8];
|
|
3097
|
+
case "NotFoundException": return [3, 10];
|
|
3098
|
+
case "com.amazonaws.mediaconvert#NotFoundException": return [3, 10];
|
|
3099
|
+
case "TooManyRequestsException": return [3, 12];
|
|
3100
|
+
case "com.amazonaws.mediaconvert#TooManyRequestsException": return [3, 12];
|
|
3101
|
+
}
|
|
3102
|
+
return [3, 14];
|
|
3103
|
+
case 2:
|
|
3104
|
+
_c = [{}];
|
|
3105
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3106
|
+
case 3:
|
|
3107
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3108
|
+
return [3, 15];
|
|
3109
|
+
case 4:
|
|
3110
|
+
_d = [{}];
|
|
3111
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
3112
|
+
case 5:
|
|
3113
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3114
|
+
return [3, 15];
|
|
3115
|
+
case 6:
|
|
3116
|
+
_e = [{}];
|
|
3117
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3118
|
+
case 7:
|
|
3119
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3120
|
+
return [3, 15];
|
|
3121
|
+
case 8:
|
|
3122
|
+
_f = [{}];
|
|
3123
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
3124
|
+
case 9:
|
|
3125
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3126
|
+
return [3, 15];
|
|
3127
|
+
case 10:
|
|
3128
|
+
_g = [{}];
|
|
3129
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3130
|
+
case 11:
|
|
3131
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3132
|
+
return [3, 15];
|
|
3133
|
+
case 12:
|
|
3134
|
+
_h = [{}];
|
|
3135
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3136
|
+
case 13:
|
|
3137
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3138
|
+
return [3, 15];
|
|
3139
|
+
case 14:
|
|
3140
|
+
parsedBody = parsedOutput.body;
|
|
3141
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3142
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3143
|
+
_k.label = 15;
|
|
3144
|
+
case 15:
|
|
3145
|
+
message = response.message || response.Message || errorCode;
|
|
3146
|
+
response.message = message;
|
|
3147
|
+
delete response.Message;
|
|
3148
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3149
|
+
}
|
|
3150
|
+
});
|
|
3151
|
+
}); };
|
|
2779
3152
|
export var deserializeAws_restJson1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2780
3153
|
var contents;
|
|
2781
3154
|
return __generator(this, function (_a) {
|
|
@@ -4194,11 +4567,12 @@ var serializeAws_restJson1FileGroupSettings = function (input, context) {
|
|
|
4194
4567
|
}));
|
|
4195
4568
|
};
|
|
4196
4569
|
var serializeAws_restJson1FileSourceSettings = function (input, context) {
|
|
4197
|
-
return __assign(__assign(__assign(__assign({}, (input.Convert608To708 !== undefined &&
|
|
4570
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Convert608To708 !== undefined &&
|
|
4198
4571
|
input.Convert608To708 !== null && { convert608To708: input.Convert608To708 })), (input.Framerate !== undefined &&
|
|
4199
4572
|
input.Framerate !== null && {
|
|
4200
4573
|
framerate: serializeAws_restJson1CaptionSourceFramerate(input.Framerate, context),
|
|
4201
|
-
})), (input.SourceFile !== undefined && input.SourceFile !== null && { sourceFile: input.SourceFile })), (input.TimeDelta !== undefined && input.TimeDelta !== null && { timeDelta: input.TimeDelta }))
|
|
4574
|
+
})), (input.SourceFile !== undefined && input.SourceFile !== null && { sourceFile: input.SourceFile })), (input.TimeDelta !== undefined && input.TimeDelta !== null && { timeDelta: input.TimeDelta })), (input.TimeDeltaUnits !== undefined &&
|
|
4575
|
+
input.TimeDeltaUnits !== null && { timeDeltaUnits: input.TimeDeltaUnits }));
|
|
4202
4576
|
};
|
|
4203
4577
|
var serializeAws_restJson1FrameCaptureSettings = function (input, context) {
|
|
4204
4578
|
return __assign(__assign(__assign(__assign({}, (input.FramerateDenominator !== undefined &&
|
|
@@ -4809,6 +5183,9 @@ var serializeAws_restJson1PartnerWatermarking = function (input, context) {
|
|
|
4809
5183
|
nexguardFileMarkerSettings: serializeAws_restJson1NexGuardFileMarkerSettings(input.NexguardFileMarkerSettings, context),
|
|
4810
5184
|
}));
|
|
4811
5185
|
};
|
|
5186
|
+
var serializeAws_restJson1Policy = function (input, context) {
|
|
5187
|
+
return __assign(__assign(__assign({}, (input.HttpInputs !== undefined && input.HttpInputs !== null && { httpInputs: input.HttpInputs })), (input.HttpsInputs !== undefined && input.HttpsInputs !== null && { httpsInputs: input.HttpsInputs })), (input.S3Inputs !== undefined && input.S3Inputs !== null && { s3Inputs: input.S3Inputs }));
|
|
5188
|
+
};
|
|
4812
5189
|
var serializeAws_restJson1PresetSettings = function (input, context) {
|
|
4813
5190
|
return __assign(__assign(__assign(__assign({}, (input.AudioDescriptions !== undefined &&
|
|
4814
5191
|
input.AudioDescriptions !== null && {
|
|
@@ -6200,6 +6577,7 @@ var deserializeAws_restJson1FileSourceSettings = function (output, context) {
|
|
|
6200
6577
|
: undefined,
|
|
6201
6578
|
SourceFile: __expectString(output.sourceFile),
|
|
6202
6579
|
TimeDelta: __expectInt32(output.timeDelta),
|
|
6580
|
+
TimeDeltaUnits: __expectString(output.timeDeltaUnits),
|
|
6203
6581
|
};
|
|
6204
6582
|
};
|
|
6205
6583
|
var deserializeAws_restJson1FrameCaptureSettings = function (output, context) {
|
|
@@ -7159,6 +7537,13 @@ var deserializeAws_restJson1PartnerWatermarking = function (output, context) {
|
|
|
7159
7537
|
: undefined,
|
|
7160
7538
|
};
|
|
7161
7539
|
};
|
|
7540
|
+
var deserializeAws_restJson1Policy = function (output, context) {
|
|
7541
|
+
return {
|
|
7542
|
+
HttpInputs: __expectString(output.httpInputs),
|
|
7543
|
+
HttpsInputs: __expectString(output.httpsInputs),
|
|
7544
|
+
S3Inputs: __expectString(output.s3Inputs),
|
|
7545
|
+
};
|
|
7546
|
+
};
|
|
7162
7547
|
var deserializeAws_restJson1Preset = function (output, context) {
|
|
7163
7548
|
return {
|
|
7164
7549
|
Arn: __expectString(output.arn),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
5
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
|
10
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
11
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
13
|
export var getRuntimeConfig = function (config) {
|
|
13
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
14
15
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
15
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector,
|
|
16
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
16
17
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
15
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
16
|
export var getRuntimeConfig = function (config) {
|
|
17
|
-
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;
|
|
18
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
19
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector,
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
21
|
};
|
|
@@ -6,12 +6,14 @@ import { CreateJobTemplateCommandInput, CreateJobTemplateCommandOutput } from ".
|
|
|
6
6
|
import { CreatePresetCommandInput, CreatePresetCommandOutput } from "./commands/CreatePresetCommand";
|
|
7
7
|
import { CreateQueueCommandInput, CreateQueueCommandOutput } from "./commands/CreateQueueCommand";
|
|
8
8
|
import { DeleteJobTemplateCommandInput, DeleteJobTemplateCommandOutput } from "./commands/DeleteJobTemplateCommand";
|
|
9
|
+
import { DeletePolicyCommandInput, DeletePolicyCommandOutput } from "./commands/DeletePolicyCommand";
|
|
9
10
|
import { DeletePresetCommandInput, DeletePresetCommandOutput } from "./commands/DeletePresetCommand";
|
|
10
11
|
import { DeleteQueueCommandInput, DeleteQueueCommandOutput } from "./commands/DeleteQueueCommand";
|
|
11
12
|
import { DescribeEndpointsCommandInput, DescribeEndpointsCommandOutput } from "./commands/DescribeEndpointsCommand";
|
|
12
13
|
import { DisassociateCertificateCommandInput, DisassociateCertificateCommandOutput } from "./commands/DisassociateCertificateCommand";
|
|
13
14
|
import { GetJobCommandInput, GetJobCommandOutput } from "./commands/GetJobCommand";
|
|
14
15
|
import { GetJobTemplateCommandInput, GetJobTemplateCommandOutput } from "./commands/GetJobTemplateCommand";
|
|
16
|
+
import { GetPolicyCommandInput, GetPolicyCommandOutput } from "./commands/GetPolicyCommand";
|
|
15
17
|
import { GetPresetCommandInput, GetPresetCommandOutput } from "./commands/GetPresetCommand";
|
|
16
18
|
import { GetQueueCommandInput, GetQueueCommandOutput } from "./commands/GetQueueCommand";
|
|
17
19
|
import { ListJobsCommandInput, ListJobsCommandOutput } from "./commands/ListJobsCommand";
|
|
@@ -19,6 +21,7 @@ import { ListJobTemplatesCommandInput, ListJobTemplatesCommandOutput } from "./c
|
|
|
19
21
|
import { ListPresetsCommandInput, ListPresetsCommandOutput } from "./commands/ListPresetsCommand";
|
|
20
22
|
import { ListQueuesCommandInput, ListQueuesCommandOutput } from "./commands/ListQueuesCommand";
|
|
21
23
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
24
|
+
import { PutPolicyCommandInput, PutPolicyCommandOutput } from "./commands/PutPolicyCommand";
|
|
22
25
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
23
26
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
24
27
|
import { UpdateJobTemplateCommandInput, UpdateJobTemplateCommandOutput } from "./commands/UpdateJobTemplateCommand";
|
|
@@ -71,6 +74,12 @@ export declare class MediaConvert extends MediaConvertClient {
|
|
|
71
74
|
deleteJobTemplate(args: DeleteJobTemplateCommandInput, options?: __HttpHandlerOptions): Promise<DeleteJobTemplateCommandOutput>;
|
|
72
75
|
deleteJobTemplate(args: DeleteJobTemplateCommandInput, cb: (err: any, data?: DeleteJobTemplateCommandOutput) => void): void;
|
|
73
76
|
deleteJobTemplate(args: DeleteJobTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteJobTemplateCommandOutput) => void): void;
|
|
77
|
+
/**
|
|
78
|
+
* Permanently delete a policy that you created.
|
|
79
|
+
*/
|
|
80
|
+
deletePolicy(args: DeletePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeletePolicyCommandOutput>;
|
|
81
|
+
deletePolicy(args: DeletePolicyCommandInput, cb: (err: any, data?: DeletePolicyCommandOutput) => void): void;
|
|
82
|
+
deletePolicy(args: DeletePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePolicyCommandOutput) => void): void;
|
|
74
83
|
/**
|
|
75
84
|
* Permanently delete a preset you have created.
|
|
76
85
|
*/
|
|
@@ -107,6 +116,12 @@ export declare class MediaConvert extends MediaConvertClient {
|
|
|
107
116
|
getJobTemplate(args: GetJobTemplateCommandInput, options?: __HttpHandlerOptions): Promise<GetJobTemplateCommandOutput>;
|
|
108
117
|
getJobTemplate(args: GetJobTemplateCommandInput, cb: (err: any, data?: GetJobTemplateCommandOutput) => void): void;
|
|
109
118
|
getJobTemplate(args: GetJobTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetJobTemplateCommandOutput) => void): void;
|
|
119
|
+
/**
|
|
120
|
+
* Retrieve the JSON for your policy.
|
|
121
|
+
*/
|
|
122
|
+
getPolicy(args: GetPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetPolicyCommandOutput>;
|
|
123
|
+
getPolicy(args: GetPolicyCommandInput, cb: (err: any, data?: GetPolicyCommandOutput) => void): void;
|
|
124
|
+
getPolicy(args: GetPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPolicyCommandOutput) => void): void;
|
|
110
125
|
/**
|
|
111
126
|
* Retrieve the JSON for a specific preset.
|
|
112
127
|
*/
|
|
@@ -149,6 +164,12 @@ export declare class MediaConvert extends MediaConvertClient {
|
|
|
149
164
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
150
165
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
151
166
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
167
|
+
/**
|
|
168
|
+
* Create or change your policy. For more information about policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
|
|
169
|
+
*/
|
|
170
|
+
putPolicy(args: PutPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutPolicyCommandOutput>;
|
|
171
|
+
putPolicy(args: PutPolicyCommandInput, cb: (err: any, data?: PutPolicyCommandOutput) => void): void;
|
|
172
|
+
putPolicy(args: PutPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutPolicyCommandOutput) => void): void;
|
|
152
173
|
/**
|
|
153
174
|
* Add tags to a MediaConvert queue, preset, or job template. For information about tagging, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-resources.html
|
|
154
175
|
*/
|
|
@@ -13,12 +13,14 @@ import { CreateJobTemplateCommandInput, CreateJobTemplateCommandOutput } from ".
|
|
|
13
13
|
import { CreatePresetCommandInput, CreatePresetCommandOutput } from "./commands/CreatePresetCommand";
|
|
14
14
|
import { CreateQueueCommandInput, CreateQueueCommandOutput } from "./commands/CreateQueueCommand";
|
|
15
15
|
import { DeleteJobTemplateCommandInput, DeleteJobTemplateCommandOutput } from "./commands/DeleteJobTemplateCommand";
|
|
16
|
+
import { DeletePolicyCommandInput, DeletePolicyCommandOutput } from "./commands/DeletePolicyCommand";
|
|
16
17
|
import { DeletePresetCommandInput, DeletePresetCommandOutput } from "./commands/DeletePresetCommand";
|
|
17
18
|
import { DeleteQueueCommandInput, DeleteQueueCommandOutput } from "./commands/DeleteQueueCommand";
|
|
18
19
|
import { DescribeEndpointsCommandInput, DescribeEndpointsCommandOutput } from "./commands/DescribeEndpointsCommand";
|
|
19
20
|
import { DisassociateCertificateCommandInput, DisassociateCertificateCommandOutput } from "./commands/DisassociateCertificateCommand";
|
|
20
21
|
import { GetJobCommandInput, GetJobCommandOutput } from "./commands/GetJobCommand";
|
|
21
22
|
import { GetJobTemplateCommandInput, GetJobTemplateCommandOutput } from "./commands/GetJobTemplateCommand";
|
|
23
|
+
import { GetPolicyCommandInput, GetPolicyCommandOutput } from "./commands/GetPolicyCommand";
|
|
22
24
|
import { GetPresetCommandInput, GetPresetCommandOutput } from "./commands/GetPresetCommand";
|
|
23
25
|
import { GetQueueCommandInput, GetQueueCommandOutput } from "./commands/GetQueueCommand";
|
|
24
26
|
import { ListJobsCommandInput, ListJobsCommandOutput } from "./commands/ListJobsCommand";
|
|
@@ -26,13 +28,14 @@ import { ListJobTemplatesCommandInput, ListJobTemplatesCommandOutput } from "./c
|
|
|
26
28
|
import { ListPresetsCommandInput, ListPresetsCommandOutput } from "./commands/ListPresetsCommand";
|
|
27
29
|
import { ListQueuesCommandInput, ListQueuesCommandOutput } from "./commands/ListQueuesCommand";
|
|
28
30
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
31
|
+
import { PutPolicyCommandInput, PutPolicyCommandOutput } from "./commands/PutPolicyCommand";
|
|
29
32
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
30
33
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
31
34
|
import { UpdateJobTemplateCommandInput, UpdateJobTemplateCommandOutput } from "./commands/UpdateJobTemplateCommand";
|
|
32
35
|
import { UpdatePresetCommandInput, UpdatePresetCommandOutput } from "./commands/UpdatePresetCommand";
|
|
33
36
|
import { UpdateQueueCommandInput, UpdateQueueCommandOutput } from "./commands/UpdateQueueCommand";
|
|
34
|
-
export declare type ServiceInputTypes = AssociateCertificateCommandInput | CancelJobCommandInput | CreateJobCommandInput | CreateJobTemplateCommandInput | CreatePresetCommandInput | CreateQueueCommandInput | DeleteJobTemplateCommandInput | DeletePresetCommandInput | DeleteQueueCommandInput | DescribeEndpointsCommandInput | DisassociateCertificateCommandInput | GetJobCommandInput | GetJobTemplateCommandInput | GetPresetCommandInput | GetQueueCommandInput | ListJobTemplatesCommandInput | ListJobsCommandInput | ListPresetsCommandInput | ListQueuesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateJobTemplateCommandInput | UpdatePresetCommandInput | UpdateQueueCommandInput;
|
|
35
|
-
export declare type ServiceOutputTypes = AssociateCertificateCommandOutput | CancelJobCommandOutput | CreateJobCommandOutput | CreateJobTemplateCommandOutput | CreatePresetCommandOutput | CreateQueueCommandOutput | DeleteJobTemplateCommandOutput | DeletePresetCommandOutput | DeleteQueueCommandOutput | DescribeEndpointsCommandOutput | DisassociateCertificateCommandOutput | GetJobCommandOutput | GetJobTemplateCommandOutput | GetPresetCommandOutput | GetQueueCommandOutput | ListJobTemplatesCommandOutput | ListJobsCommandOutput | ListPresetsCommandOutput | ListQueuesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateJobTemplateCommandOutput | UpdatePresetCommandOutput | UpdateQueueCommandOutput;
|
|
37
|
+
export declare type ServiceInputTypes = AssociateCertificateCommandInput | CancelJobCommandInput | CreateJobCommandInput | CreateJobTemplateCommandInput | CreatePresetCommandInput | CreateQueueCommandInput | DeleteJobTemplateCommandInput | DeletePolicyCommandInput | DeletePresetCommandInput | DeleteQueueCommandInput | DescribeEndpointsCommandInput | DisassociateCertificateCommandInput | GetJobCommandInput | GetJobTemplateCommandInput | GetPolicyCommandInput | GetPresetCommandInput | GetQueueCommandInput | ListJobTemplatesCommandInput | ListJobsCommandInput | ListPresetsCommandInput | ListQueuesCommandInput | ListTagsForResourceCommandInput | PutPolicyCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateJobTemplateCommandInput | UpdatePresetCommandInput | UpdateQueueCommandInput;
|
|
38
|
+
export declare type ServiceOutputTypes = AssociateCertificateCommandOutput | CancelJobCommandOutput | CreateJobCommandOutput | CreateJobTemplateCommandOutput | CreatePresetCommandOutput | CreateQueueCommandOutput | DeleteJobTemplateCommandOutput | DeletePolicyCommandOutput | DeletePresetCommandOutput | DeleteQueueCommandOutput | DescribeEndpointsCommandOutput | DisassociateCertificateCommandOutput | GetJobCommandOutput | GetJobTemplateCommandOutput | GetPolicyCommandOutput | GetPresetCommandOutput | GetQueueCommandOutput | ListJobTemplatesCommandOutput | ListJobsCommandOutput | ListPresetsCommandOutput | ListQueuesCommandOutput | ListTagsForResourceCommandOutput | PutPolicyCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateJobTemplateCommandOutput | UpdatePresetCommandOutput | UpdateQueueCommandOutput;
|
|
36
39
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
37
40
|
/**
|
|
38
41
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -101,6 +104,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
101
104
|
* Optional logger for logging debug/info/warn/error.
|
|
102
105
|
*/
|
|
103
106
|
logger?: __Logger;
|
|
107
|
+
/**
|
|
108
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
109
|
+
*/
|
|
110
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
111
|
+
/**
|
|
112
|
+
* Enables FIPS compatible endpoints.
|
|
113
|
+
*/
|
|
114
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
104
115
|
/**
|
|
105
116
|
* Unique service identifier.
|
|
106
117
|
* @internal
|