@aws-sdk/client-mediaconvert 3.46.0 → 3.48.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 +38 -0
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateJobTemplateCommand.js +3 -3
- package/dist-cjs/commands/UpdatePresetCommand.js +1 -2
- package/dist-cjs/endpoints.js +0 -20
- package/dist-cjs/models/models_0.js +21 -21
- package/dist-cjs/models/models_1.js +33 -72
- package/dist-cjs/models/models_2.js +31 -1
- package/dist-cjs/protocols/Aws_restJson1.js +16 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/commands/UntagResourceCommand.js +1 -1
- package/dist-es/commands/UpdateJobTemplateCommand.js +1 -1
- package/dist-es/commands/UpdatePresetCommand.js +1 -2
- package/dist-es/endpoints.js +0 -20
- package/dist-es/models/models_0.js +16 -14
- package/dist-es/models/models_1.js +25 -44
- package/dist-es/models/models_2.js +20 -0
- package/dist-es/protocols/Aws_restJson1.js +21 -12
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/MediaConvertClient.d.ts +5 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateJobTemplateCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePresetCommand.d.ts +1 -2
- package/dist-types/models/models_0.d.ts +33 -95
- package/dist-types/models/models_1.d.ts +114 -142
- package/dist-types/models/models_2.d.ts +106 -1
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/MediaConvertClient.d.ts +3 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateJobTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdatePresetCommand.d.ts +1 -2
- package/dist-types/ts3.4/models/models_0.d.ts +23 -53
- package/dist-types/ts3.4/models/models_1.d.ts +67 -87
- package/dist-types/ts3.4/models/models_2.d.ts +64 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +35 -35
|
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
18
20
|
const getRuntimeConfig = (config) => {
|
|
19
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
21
25
|
return {
|
|
22
26
|
...clientSharedValues,
|
|
23
27
|
...config,
|
|
24
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
25
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
26
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
27
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
29
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
31
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
32
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
33
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
34
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
35
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
36
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { UntagResourceRequest, UntagResourceResponse } from "../models/
|
|
4
|
+
import { UntagResourceRequest, UntagResourceResponse } from "../models/models_2";
|
|
5
5
|
import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var UntagResourceCommand = (function (_super) {
|
|
7
7
|
__extends(UntagResourceCommand, _super);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { UpdateJobTemplateRequest, UpdateJobTemplateResponse } from "../models/
|
|
4
|
+
import { UpdateJobTemplateRequest, UpdateJobTemplateResponse } from "../models/models_2";
|
|
5
5
|
import { deserializeAws_restJson1UpdateJobTemplateCommand, serializeAws_restJson1UpdateJobTemplateCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var UpdateJobTemplateCommand = (function (_super) {
|
|
7
7
|
__extends(UpdateJobTemplateCommand, _super);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { UpdatePresetRequest } from "../models/
|
|
5
|
-
import { UpdatePresetResponse } from "../models/models_2";
|
|
4
|
+
import { UpdatePresetRequest, UpdatePresetResponse } from "../models/models_2";
|
|
6
5
|
import { deserializeAws_restJson1UpdatePresetCommand, serializeAws_restJson1UpdatePresetCommand, } from "../protocols/Aws_restJson1";
|
|
7
6
|
var UpdatePresetCommand = (function (_super) {
|
|
8
7
|
__extends(UpdatePresetCommand, _super);
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"ca-central-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "mediaconvert.ca-central-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "mediaconvert-fips.ca-central-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -24,10 +20,6 @@ var regionHash = {
|
|
|
24
20
|
},
|
|
25
21
|
"us-east-1": {
|
|
26
22
|
variants: [
|
|
27
|
-
{
|
|
28
|
-
hostname: "mediaconvert.us-east-1.amazonaws.com",
|
|
29
|
-
tags: [],
|
|
30
|
-
},
|
|
31
23
|
{
|
|
32
24
|
hostname: "mediaconvert-fips.us-east-1.amazonaws.com",
|
|
33
25
|
tags: ["fips"],
|
|
@@ -36,10 +28,6 @@ var regionHash = {
|
|
|
36
28
|
},
|
|
37
29
|
"us-east-2": {
|
|
38
30
|
variants: [
|
|
39
|
-
{
|
|
40
|
-
hostname: "mediaconvert.us-east-2.amazonaws.com",
|
|
41
|
-
tags: [],
|
|
42
|
-
},
|
|
43
31
|
{
|
|
44
32
|
hostname: "mediaconvert-fips.us-east-2.amazonaws.com",
|
|
45
33
|
tags: ["fips"],
|
|
@@ -57,10 +45,6 @@ var regionHash = {
|
|
|
57
45
|
},
|
|
58
46
|
"us-west-1": {
|
|
59
47
|
variants: [
|
|
60
|
-
{
|
|
61
|
-
hostname: "mediaconvert.us-west-1.amazonaws.com",
|
|
62
|
-
tags: [],
|
|
63
|
-
},
|
|
64
48
|
{
|
|
65
49
|
hostname: "mediaconvert-fips.us-west-1.amazonaws.com",
|
|
66
50
|
tags: ["fips"],
|
|
@@ -69,10 +53,6 @@ var regionHash = {
|
|
|
69
53
|
},
|
|
70
54
|
"us-west-2": {
|
|
71
55
|
variants: [
|
|
72
|
-
{
|
|
73
|
-
hostname: "mediaconvert.us-west-2.amazonaws.com",
|
|
74
|
-
tags: [],
|
|
75
|
-
},
|
|
76
56
|
{
|
|
77
57
|
hostname: "mediaconvert-fips.us-west-2.amazonaws.com",
|
|
78
58
|
tags: ["fips"],
|
|
@@ -522,6 +522,7 @@ export var LanguageCode;
|
|
|
522
522
|
LanguageCode["SQI"] = "SQI";
|
|
523
523
|
LanguageCode["SRB"] = "SRB";
|
|
524
524
|
LanguageCode["SRD"] = "SRD";
|
|
525
|
+
LanguageCode["SRP"] = "SRP";
|
|
525
526
|
LanguageCode["SSW"] = "SSW";
|
|
526
527
|
LanguageCode["SUN"] = "SUN";
|
|
527
528
|
LanguageCode["SWA"] = "SWA";
|
|
@@ -752,6 +753,11 @@ export var EmbeddedDestinationSettings;
|
|
|
752
753
|
(function (EmbeddedDestinationSettings) {
|
|
753
754
|
EmbeddedDestinationSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
754
755
|
})(EmbeddedDestinationSettings || (EmbeddedDestinationSettings = {}));
|
|
756
|
+
export var ImscAccessibilitySubs;
|
|
757
|
+
(function (ImscAccessibilitySubs) {
|
|
758
|
+
ImscAccessibilitySubs["DISABLED"] = "DISABLED";
|
|
759
|
+
ImscAccessibilitySubs["ENABLED"] = "ENABLED";
|
|
760
|
+
})(ImscAccessibilitySubs || (ImscAccessibilitySubs = {}));
|
|
755
761
|
export var ImscStylePassthrough;
|
|
756
762
|
(function (ImscStylePassthrough) {
|
|
757
763
|
ImscStylePassthrough["DISABLED"] = "DISABLED";
|
|
@@ -803,6 +809,11 @@ export var TtmlDestinationSettings;
|
|
|
803
809
|
(function (TtmlDestinationSettings) {
|
|
804
810
|
TtmlDestinationSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
805
811
|
})(TtmlDestinationSettings || (TtmlDestinationSettings = {}));
|
|
812
|
+
export var WebvttAccessibilitySubs;
|
|
813
|
+
(function (WebvttAccessibilitySubs) {
|
|
814
|
+
WebvttAccessibilitySubs["DISABLED"] = "DISABLED";
|
|
815
|
+
WebvttAccessibilitySubs["ENABLED"] = "ENABLED";
|
|
816
|
+
})(WebvttAccessibilitySubs || (WebvttAccessibilitySubs = {}));
|
|
806
817
|
export var WebvttStylePassthrough;
|
|
807
818
|
(function (WebvttStylePassthrough) {
|
|
808
819
|
WebvttStylePassthrough["DISABLED"] = "DISABLED";
|
|
@@ -1610,6 +1621,11 @@ export var CmfcScte35Source;
|
|
|
1610
1621
|
CmfcScte35Source["NONE"] = "NONE";
|
|
1611
1622
|
CmfcScte35Source["PASSTHROUGH"] = "PASSTHROUGH";
|
|
1612
1623
|
})(CmfcScte35Source || (CmfcScte35Source = {}));
|
|
1624
|
+
export var CmfcTimedMetadata;
|
|
1625
|
+
(function (CmfcTimedMetadata) {
|
|
1626
|
+
CmfcTimedMetadata["NONE"] = "NONE";
|
|
1627
|
+
CmfcTimedMetadata["PASSTHROUGH"] = "PASSTHROUGH";
|
|
1628
|
+
})(CmfcTimedMetadata || (CmfcTimedMetadata = {}));
|
|
1613
1629
|
export var CmfcSettings;
|
|
1614
1630
|
(function (CmfcSettings) {
|
|
1615
1631
|
CmfcSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1763,17 +1779,3 @@ export var M3u8Scte35Source;
|
|
|
1763
1779
|
M3u8Scte35Source["NONE"] = "NONE";
|
|
1764
1780
|
M3u8Scte35Source["PASSTHROUGH"] = "PASSTHROUGH";
|
|
1765
1781
|
})(M3u8Scte35Source || (M3u8Scte35Source = {}));
|
|
1766
|
-
export var TimedMetadata;
|
|
1767
|
-
(function (TimedMetadata) {
|
|
1768
|
-
TimedMetadata["NONE"] = "NONE";
|
|
1769
|
-
TimedMetadata["PASSTHROUGH"] = "PASSTHROUGH";
|
|
1770
|
-
})(TimedMetadata || (TimedMetadata = {}));
|
|
1771
|
-
export var M3u8Settings;
|
|
1772
|
-
(function (M3u8Settings) {
|
|
1773
|
-
M3u8Settings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1774
|
-
})(M3u8Settings || (M3u8Settings = {}));
|
|
1775
|
-
export var MovClapAtom;
|
|
1776
|
-
(function (MovClapAtom) {
|
|
1777
|
-
MovClapAtom["EXCLUDE"] = "EXCLUDE";
|
|
1778
|
-
MovClapAtom["INCLUDE"] = "INCLUDE";
|
|
1779
|
-
})(MovClapAtom || (MovClapAtom = {}));
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
+
export var TimedMetadata;
|
|
3
|
+
(function (TimedMetadata) {
|
|
4
|
+
TimedMetadata["NONE"] = "NONE";
|
|
5
|
+
TimedMetadata["PASSTHROUGH"] = "PASSTHROUGH";
|
|
6
|
+
})(TimedMetadata || (TimedMetadata = {}));
|
|
7
|
+
export var M3u8Settings;
|
|
8
|
+
(function (M3u8Settings) {
|
|
9
|
+
M3u8Settings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
10
|
+
})(M3u8Settings || (M3u8Settings = {}));
|
|
11
|
+
export var MovClapAtom;
|
|
12
|
+
(function (MovClapAtom) {
|
|
13
|
+
MovClapAtom["EXCLUDE"] = "EXCLUDE";
|
|
14
|
+
MovClapAtom["INCLUDE"] = "INCLUDE";
|
|
15
|
+
})(MovClapAtom || (MovClapAtom = {}));
|
|
2
16
|
export var MovCslgAtom;
|
|
3
17
|
(function (MovCslgAtom) {
|
|
4
18
|
MovCslgAtom["EXCLUDE"] = "EXCLUDE";
|
|
@@ -67,6 +81,11 @@ export var MpdScte35Source;
|
|
|
67
81
|
MpdScte35Source["NONE"] = "NONE";
|
|
68
82
|
MpdScte35Source["PASSTHROUGH"] = "PASSTHROUGH";
|
|
69
83
|
})(MpdScte35Source || (MpdScte35Source = {}));
|
|
84
|
+
export var MpdTimedMetadata;
|
|
85
|
+
(function (MpdTimedMetadata) {
|
|
86
|
+
MpdTimedMetadata["NONE"] = "NONE";
|
|
87
|
+
MpdTimedMetadata["PASSTHROUGH"] = "PASSTHROUGH";
|
|
88
|
+
})(MpdTimedMetadata || (MpdTimedMetadata = {}));
|
|
70
89
|
export var MpdSettings;
|
|
71
90
|
(function (MpdSettings) {
|
|
72
91
|
MpdSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -150,6 +169,11 @@ export var Av1AdaptiveQuantization;
|
|
|
150
169
|
Av1AdaptiveQuantization["MEDIUM"] = "MEDIUM";
|
|
151
170
|
Av1AdaptiveQuantization["OFF"] = "OFF";
|
|
152
171
|
})(Av1AdaptiveQuantization || (Av1AdaptiveQuantization = {}));
|
|
172
|
+
export var Av1BitDepth;
|
|
173
|
+
(function (Av1BitDepth) {
|
|
174
|
+
Av1BitDepth["BIT_10"] = "BIT_10";
|
|
175
|
+
Av1BitDepth["BIT_8"] = "BIT_8";
|
|
176
|
+
})(Av1BitDepth || (Av1BitDepth = {}));
|
|
153
177
|
export var Av1FramerateControl;
|
|
154
178
|
(function (Av1FramerateControl) {
|
|
155
179
|
Av1FramerateControl["INITIALIZE_FROM_SOURCE"] = "INITIALIZE_FROM_SOURCE";
|
|
@@ -414,6 +438,7 @@ export var H264Settings;
|
|
|
414
438
|
})(H264Settings || (H264Settings = {}));
|
|
415
439
|
export var H265AdaptiveQuantization;
|
|
416
440
|
(function (H265AdaptiveQuantization) {
|
|
441
|
+
H265AdaptiveQuantization["AUTO"] = "AUTO";
|
|
417
442
|
H265AdaptiveQuantization["HIGH"] = "HIGH";
|
|
418
443
|
H265AdaptiveQuantization["HIGHER"] = "HIGHER";
|
|
419
444
|
H265AdaptiveQuantization["LOW"] = "LOW";
|
|
@@ -1285,30 +1310,6 @@ export var AssociateCertificateResponse;
|
|
|
1285
1310
|
(function (AssociateCertificateResponse) {
|
|
1286
1311
|
AssociateCertificateResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1287
1312
|
})(AssociateCertificateResponse || (AssociateCertificateResponse = {}));
|
|
1288
|
-
export var BadRequestException;
|
|
1289
|
-
(function (BadRequestException) {
|
|
1290
|
-
BadRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1291
|
-
})(BadRequestException || (BadRequestException = {}));
|
|
1292
|
-
export var ConflictException;
|
|
1293
|
-
(function (ConflictException) {
|
|
1294
|
-
ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1295
|
-
})(ConflictException || (ConflictException = {}));
|
|
1296
|
-
export var ForbiddenException;
|
|
1297
|
-
(function (ForbiddenException) {
|
|
1298
|
-
ForbiddenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1299
|
-
})(ForbiddenException || (ForbiddenException = {}));
|
|
1300
|
-
export var InternalServerErrorException;
|
|
1301
|
-
(function (InternalServerErrorException) {
|
|
1302
|
-
InternalServerErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1303
|
-
})(InternalServerErrorException || (InternalServerErrorException = {}));
|
|
1304
|
-
export var NotFoundException;
|
|
1305
|
-
(function (NotFoundException) {
|
|
1306
|
-
NotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1307
|
-
})(NotFoundException || (NotFoundException = {}));
|
|
1308
|
-
export var TooManyRequestsException;
|
|
1309
|
-
(function (TooManyRequestsException) {
|
|
1310
|
-
TooManyRequestsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1311
|
-
})(TooManyRequestsException || (TooManyRequestsException = {}));
|
|
1312
1313
|
export var CancelJobRequest;
|
|
1313
1314
|
(function (CancelJobRequest) {
|
|
1314
1315
|
CancelJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1537,23 +1538,3 @@ export var TagResourceResponse;
|
|
|
1537
1538
|
(function (TagResourceResponse) {
|
|
1538
1539
|
TagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1539
1540
|
})(TagResourceResponse || (TagResourceResponse = {}));
|
|
1540
|
-
export var UntagResourceRequest;
|
|
1541
|
-
(function (UntagResourceRequest) {
|
|
1542
|
-
UntagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1543
|
-
})(UntagResourceRequest || (UntagResourceRequest = {}));
|
|
1544
|
-
export var UntagResourceResponse;
|
|
1545
|
-
(function (UntagResourceResponse) {
|
|
1546
|
-
UntagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1547
|
-
})(UntagResourceResponse || (UntagResourceResponse = {}));
|
|
1548
|
-
export var UpdateJobTemplateRequest;
|
|
1549
|
-
(function (UpdateJobTemplateRequest) {
|
|
1550
|
-
UpdateJobTemplateRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1551
|
-
})(UpdateJobTemplateRequest || (UpdateJobTemplateRequest = {}));
|
|
1552
|
-
export var UpdateJobTemplateResponse;
|
|
1553
|
-
(function (UpdateJobTemplateResponse) {
|
|
1554
|
-
UpdateJobTemplateResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1555
|
-
})(UpdateJobTemplateResponse || (UpdateJobTemplateResponse = {}));
|
|
1556
|
-
export var UpdatePresetRequest;
|
|
1557
|
-
(function (UpdatePresetRequest) {
|
|
1558
|
-
UpdatePresetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1559
|
-
})(UpdatePresetRequest || (UpdatePresetRequest = {}));
|
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
+
export var UntagResourceRequest;
|
|
3
|
+
(function (UntagResourceRequest) {
|
|
4
|
+
UntagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
5
|
+
})(UntagResourceRequest || (UntagResourceRequest = {}));
|
|
6
|
+
export var UntagResourceResponse;
|
|
7
|
+
(function (UntagResourceResponse) {
|
|
8
|
+
UntagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
9
|
+
})(UntagResourceResponse || (UntagResourceResponse = {}));
|
|
10
|
+
export var UpdateJobTemplateRequest;
|
|
11
|
+
(function (UpdateJobTemplateRequest) {
|
|
12
|
+
UpdateJobTemplateRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
13
|
+
})(UpdateJobTemplateRequest || (UpdateJobTemplateRequest = {}));
|
|
14
|
+
export var UpdateJobTemplateResponse;
|
|
15
|
+
(function (UpdateJobTemplateResponse) {
|
|
16
|
+
UpdateJobTemplateResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
17
|
+
})(UpdateJobTemplateResponse || (UpdateJobTemplateResponse = {}));
|
|
18
|
+
export var UpdatePresetRequest;
|
|
19
|
+
(function (UpdatePresetRequest) {
|
|
20
|
+
UpdatePresetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
21
|
+
})(UpdatePresetRequest || (UpdatePresetRequest = {}));
|
|
2
22
|
export var UpdatePresetResponse;
|
|
3
23
|
(function (UpdatePresetResponse) {
|
|
4
24
|
UpdatePresetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -4180,8 +4180,8 @@ var serializeAws_restJson1Av1QvbrSettings = function (input, context) {
|
|
|
4180
4180
|
}));
|
|
4181
4181
|
};
|
|
4182
4182
|
var serializeAws_restJson1Av1Settings = function (input, context) {
|
|
4183
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdaptiveQuantization !== undefined &&
|
|
4184
|
-
input.AdaptiveQuantization !== null && { adaptiveQuantization: input.AdaptiveQuantization })), (input.FramerateControl !== undefined &&
|
|
4183
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdaptiveQuantization !== undefined &&
|
|
4184
|
+
input.AdaptiveQuantization !== null && { adaptiveQuantization: input.AdaptiveQuantization })), (input.BitDepth !== undefined && input.BitDepth !== null && { bitDepth: input.BitDepth })), (input.FramerateControl !== undefined &&
|
|
4185
4185
|
input.FramerateControl !== null && { framerateControl: input.FramerateControl })), (input.FramerateConversionAlgorithm !== undefined &&
|
|
4186
4186
|
input.FramerateConversionAlgorithm !== null && {
|
|
4187
4187
|
framerateConversionAlgorithm: input.FramerateConversionAlgorithm,
|
|
@@ -4381,11 +4381,11 @@ var serializeAws_restJson1CmafImageBasedTrickPlaySettings = function (input, con
|
|
|
4381
4381
|
input.ThumbnailWidth !== null && { thumbnailWidth: input.ThumbnailWidth })), (input.TileHeight !== undefined && input.TileHeight !== null && { tileHeight: input.TileHeight })), (input.TileWidth !== undefined && input.TileWidth !== null && { tileWidth: input.TileWidth }));
|
|
4382
4382
|
};
|
|
4383
4383
|
var serializeAws_restJson1CmfcSettings = function (input, context) {
|
|
4384
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AudioDuration !== undefined && input.AudioDuration !== null && { audioDuration: input.AudioDuration })), (input.AudioGroupId !== undefined && input.AudioGroupId !== null && { audioGroupId: input.AudioGroupId })), (input.AudioRenditionSets !== undefined &&
|
|
4384
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AudioDuration !== undefined && input.AudioDuration !== null && { audioDuration: input.AudioDuration })), (input.AudioGroupId !== undefined && input.AudioGroupId !== null && { audioGroupId: input.AudioGroupId })), (input.AudioRenditionSets !== undefined &&
|
|
4385
4385
|
input.AudioRenditionSets !== null && { audioRenditionSets: input.AudioRenditionSets })), (input.AudioTrackType !== undefined &&
|
|
4386
4386
|
input.AudioTrackType !== null && { audioTrackType: input.AudioTrackType })), (input.DescriptiveVideoServiceFlag !== undefined &&
|
|
4387
4387
|
input.DescriptiveVideoServiceFlag !== null && { descriptiveVideoServiceFlag: input.DescriptiveVideoServiceFlag })), (input.IFrameOnlyManifest !== undefined &&
|
|
4388
|
-
input.IFrameOnlyManifest !== null && { iFrameOnlyManifest: input.IFrameOnlyManifest })), (input.Scte35Esam !== undefined && input.Scte35Esam !== null && { scte35Esam: input.Scte35Esam })), (input.Scte35Source !== undefined && input.Scte35Source !== null && { scte35Source: input.Scte35Source }));
|
|
4388
|
+
input.IFrameOnlyManifest !== null && { iFrameOnlyManifest: input.IFrameOnlyManifest })), (input.Scte35Esam !== undefined && input.Scte35Esam !== null && { scte35Esam: input.Scte35Esam })), (input.Scte35Source !== undefined && input.Scte35Source !== null && { scte35Source: input.Scte35Source })), (input.TimedMetadata !== undefined && input.TimedMetadata !== null && { timedMetadata: input.TimedMetadata }));
|
|
4389
4389
|
};
|
|
4390
4390
|
var serializeAws_restJson1ColorCorrector = function (input, context) {
|
|
4391
4391
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Brightness !== undefined && input.Brightness !== null && { brightness: input.Brightness })), (input.ColorSpaceConversion !== undefined &&
|
|
@@ -4782,11 +4782,11 @@ var serializeAws_restJson1ImageInserter = function (input, context) {
|
|
|
4782
4782
|
}));
|
|
4783
4783
|
};
|
|
4784
4784
|
var serializeAws_restJson1ImscDestinationSettings = function (input, context) {
|
|
4785
|
-
return __assign({}, (input.StylePassthrough !== undefined &&
|
|
4785
|
+
return __assign(__assign({}, (input.Accessibility !== undefined && input.Accessibility !== null && { accessibility: input.Accessibility })), (input.StylePassthrough !== undefined &&
|
|
4786
4786
|
input.StylePassthrough !== null && { stylePassthrough: input.StylePassthrough }));
|
|
4787
4787
|
};
|
|
4788
4788
|
var serializeAws_restJson1Input = function (input, context) {
|
|
4789
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AudioSelectorGroups !== undefined &&
|
|
4789
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AudioSelectorGroups !== undefined &&
|
|
4790
4790
|
input.AudioSelectorGroups !== null && {
|
|
4791
4791
|
audioSelectorGroups: serializeAws_restJson1__mapOfAudioSelectorGroup(input.AudioSelectorGroups, context),
|
|
4792
4792
|
})), (input.AudioSelectors !== undefined &&
|
|
@@ -4799,7 +4799,8 @@ var serializeAws_restJson1Input = function (input, context) {
|
|
|
4799
4799
|
input.Crop !== null && { crop: serializeAws_restJson1Rectangle(input.Crop, context) })), (input.DeblockFilter !== undefined && input.DeblockFilter !== null && { deblockFilter: input.DeblockFilter })), (input.DecryptionSettings !== undefined &&
|
|
4800
4800
|
input.DecryptionSettings !== null && {
|
|
4801
4801
|
decryptionSettings: serializeAws_restJson1InputDecryptionSettings(input.DecryptionSettings, context),
|
|
4802
|
-
})), (input.DenoiseFilter !== undefined && input.DenoiseFilter !== null && { denoiseFilter: input.DenoiseFilter })), (input.
|
|
4802
|
+
})), (input.DenoiseFilter !== undefined && input.DenoiseFilter !== null && { denoiseFilter: input.DenoiseFilter })), (input.DolbyVisionMetadataXml !== undefined &&
|
|
4803
|
+
input.DolbyVisionMetadataXml !== null && { dolbyVisionMetadataXml: input.DolbyVisionMetadataXml })), (input.FileInput !== undefined && input.FileInput !== null && { fileInput: input.FileInput })), (input.FilterEnable !== undefined && input.FilterEnable !== null && { filterEnable: input.FilterEnable })), (input.FilterStrength !== undefined &&
|
|
4803
4804
|
input.FilterStrength !== null && { filterStrength: input.FilterStrength })), (input.ImageInserter !== undefined &&
|
|
4804
4805
|
input.ImageInserter !== null && {
|
|
4805
4806
|
imageInserter: serializeAws_restJson1ImageInserter(input.ImageInserter, context),
|
|
@@ -4826,7 +4827,7 @@ var serializeAws_restJson1InputDecryptionSettings = function (input, context) {
|
|
|
4826
4827
|
input.InitializationVector !== null && { initializationVector: input.InitializationVector })), (input.KmsKeyRegion !== undefined && input.KmsKeyRegion !== null && { kmsKeyRegion: input.KmsKeyRegion }));
|
|
4827
4828
|
};
|
|
4828
4829
|
var serializeAws_restJson1InputTemplate = function (input, context) {
|
|
4829
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AudioSelectorGroups !== undefined &&
|
|
4830
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AudioSelectorGroups !== undefined &&
|
|
4830
4831
|
input.AudioSelectorGroups !== null && {
|
|
4831
4832
|
audioSelectorGroups: serializeAws_restJson1__mapOfAudioSelectorGroup(input.AudioSelectorGroups, context),
|
|
4832
4833
|
})), (input.AudioSelectors !== undefined &&
|
|
@@ -4836,7 +4837,8 @@ var serializeAws_restJson1InputTemplate = function (input, context) {
|
|
|
4836
4837
|
input.CaptionSelectors !== null && {
|
|
4837
4838
|
captionSelectors: serializeAws_restJson1__mapOfCaptionSelector(input.CaptionSelectors, context),
|
|
4838
4839
|
})), (input.Crop !== undefined &&
|
|
4839
|
-
input.Crop !== null && { crop: serializeAws_restJson1Rectangle(input.Crop, context) })), (input.DeblockFilter !== undefined && input.DeblockFilter !== null && { deblockFilter: input.DeblockFilter })), (input.DenoiseFilter !== undefined && input.DenoiseFilter !== null && { denoiseFilter: input.DenoiseFilter })), (input.
|
|
4840
|
+
input.Crop !== null && { crop: serializeAws_restJson1Rectangle(input.Crop, context) })), (input.DeblockFilter !== undefined && input.DeblockFilter !== null && { deblockFilter: input.DeblockFilter })), (input.DenoiseFilter !== undefined && input.DenoiseFilter !== null && { denoiseFilter: input.DenoiseFilter })), (input.DolbyVisionMetadataXml !== undefined &&
|
|
4841
|
+
input.DolbyVisionMetadataXml !== null && { dolbyVisionMetadataXml: input.DolbyVisionMetadataXml })), (input.FilterEnable !== undefined && input.FilterEnable !== null && { filterEnable: input.FilterEnable })), (input.FilterStrength !== undefined &&
|
|
4840
4842
|
input.FilterStrength !== null && { filterStrength: input.FilterStrength })), (input.ImageInserter !== undefined &&
|
|
4841
4843
|
input.ImageInserter !== null && {
|
|
4842
4844
|
imageInserter: serializeAws_restJson1ImageInserter(input.ImageInserter, context),
|
|
@@ -5008,9 +5010,9 @@ var serializeAws_restJson1Mp4Settings = function (input, context) {
|
|
|
5008
5010
|
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AudioDuration !== undefined && input.AudioDuration !== null && { audioDuration: input.AudioDuration })), (input.CslgAtom !== undefined && input.CslgAtom !== null && { cslgAtom: input.CslgAtom })), (input.CttsVersion !== undefined && input.CttsVersion !== null && { cttsVersion: input.CttsVersion })), (input.FreeSpaceBox !== undefined && input.FreeSpaceBox !== null && { freeSpaceBox: input.FreeSpaceBox })), (input.MoovPlacement !== undefined && input.MoovPlacement !== null && { moovPlacement: input.MoovPlacement })), (input.Mp4MajorBrand !== undefined && input.Mp4MajorBrand !== null && { mp4MajorBrand: input.Mp4MajorBrand }));
|
|
5009
5011
|
};
|
|
5010
5012
|
var serializeAws_restJson1MpdSettings = function (input, context) {
|
|
5011
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.AccessibilityCaptionHints !== undefined &&
|
|
5013
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessibilityCaptionHints !== undefined &&
|
|
5012
5014
|
input.AccessibilityCaptionHints !== null && { accessibilityCaptionHints: input.AccessibilityCaptionHints })), (input.AudioDuration !== undefined && input.AudioDuration !== null && { audioDuration: input.AudioDuration })), (input.CaptionContainerType !== undefined &&
|
|
5013
|
-
input.CaptionContainerType !== null && { captionContainerType: input.CaptionContainerType })), (input.Scte35Esam !== undefined && input.Scte35Esam !== null && { scte35Esam: input.Scte35Esam })), (input.Scte35Source !== undefined && input.Scte35Source !== null && { scte35Source: input.Scte35Source }));
|
|
5015
|
+
input.CaptionContainerType !== null && { captionContainerType: input.CaptionContainerType })), (input.Scte35Esam !== undefined && input.Scte35Esam !== null && { scte35Esam: input.Scte35Esam })), (input.Scte35Source !== undefined && input.Scte35Source !== null && { scte35Source: input.Scte35Source })), (input.TimedMetadata !== undefined && input.TimedMetadata !== null && { timedMetadata: input.TimedMetadata }));
|
|
5014
5016
|
};
|
|
5015
5017
|
var serializeAws_restJson1Mpeg2Settings = function (input, context) {
|
|
5016
5018
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdaptiveQuantization !== undefined &&
|
|
@@ -5406,7 +5408,7 @@ var serializeAws_restJson1WavSettings = function (input, context) {
|
|
|
5406
5408
|
return __assign(__assign(__assign(__assign({}, (input.BitDepth !== undefined && input.BitDepth !== null && { bitDepth: input.BitDepth })), (input.Channels !== undefined && input.Channels !== null && { channels: input.Channels })), (input.Format !== undefined && input.Format !== null && { format: input.Format })), (input.SampleRate !== undefined && input.SampleRate !== null && { sampleRate: input.SampleRate }));
|
|
5407
5409
|
};
|
|
5408
5410
|
var serializeAws_restJson1WebvttDestinationSettings = function (input, context) {
|
|
5409
|
-
return __assign({}, (input.StylePassthrough !== undefined &&
|
|
5411
|
+
return __assign(__assign({}, (input.Accessibility !== undefined && input.Accessibility !== null && { accessibility: input.Accessibility })), (input.StylePassthrough !== undefined &&
|
|
5410
5412
|
input.StylePassthrough !== null && { stylePassthrough: input.StylePassthrough }));
|
|
5411
5413
|
};
|
|
5412
5414
|
var serializeAws_restJson1WebvttHlsSourceSettings = function (input, context) {
|
|
@@ -6037,6 +6039,7 @@ var deserializeAws_restJson1Av1QvbrSettings = function (output, context) {
|
|
|
6037
6039
|
var deserializeAws_restJson1Av1Settings = function (output, context) {
|
|
6038
6040
|
return {
|
|
6039
6041
|
AdaptiveQuantization: __expectString(output.adaptiveQuantization),
|
|
6042
|
+
BitDepth: __expectString(output.bitDepth),
|
|
6040
6043
|
FramerateControl: __expectString(output.framerateControl),
|
|
6041
6044
|
FramerateConversionAlgorithm: __expectString(output.framerateConversionAlgorithm),
|
|
6042
6045
|
FramerateDenominator: __expectInt32(output.framerateDenominator),
|
|
@@ -6282,6 +6285,7 @@ var deserializeAws_restJson1CmfcSettings = function (output, context) {
|
|
|
6282
6285
|
IFrameOnlyManifest: __expectString(output.iFrameOnlyManifest),
|
|
6283
6286
|
Scte35Esam: __expectString(output.scte35Esam),
|
|
6284
6287
|
Scte35Source: __expectString(output.scte35Source),
|
|
6288
|
+
TimedMetadata: __expectString(output.timedMetadata),
|
|
6285
6289
|
};
|
|
6286
6290
|
};
|
|
6287
6291
|
var deserializeAws_restJson1ColorCorrector = function (output, context) {
|
|
@@ -6846,6 +6850,7 @@ var deserializeAws_restJson1ImageInserter = function (output, context) {
|
|
|
6846
6850
|
};
|
|
6847
6851
|
var deserializeAws_restJson1ImscDestinationSettings = function (output, context) {
|
|
6848
6852
|
return {
|
|
6853
|
+
Accessibility: __expectString(output.accessibility),
|
|
6849
6854
|
StylePassthrough: __expectString(output.stylePassthrough),
|
|
6850
6855
|
};
|
|
6851
6856
|
};
|
|
@@ -6868,6 +6873,7 @@ var deserializeAws_restJson1Input = function (output, context) {
|
|
|
6868
6873
|
? deserializeAws_restJson1InputDecryptionSettings(output.decryptionSettings, context)
|
|
6869
6874
|
: undefined,
|
|
6870
6875
|
DenoiseFilter: __expectString(output.denoiseFilter),
|
|
6876
|
+
DolbyVisionMetadataXml: __expectString(output.dolbyVisionMetadataXml),
|
|
6871
6877
|
FileInput: __expectString(output.fileInput),
|
|
6872
6878
|
FilterEnable: __expectString(output.filterEnable),
|
|
6873
6879
|
FilterStrength: __expectInt32(output.filterStrength),
|
|
@@ -6923,6 +6929,7 @@ var deserializeAws_restJson1InputTemplate = function (output, context) {
|
|
|
6923
6929
|
: undefined,
|
|
6924
6930
|
DeblockFilter: __expectString(output.deblockFilter),
|
|
6925
6931
|
DenoiseFilter: __expectString(output.denoiseFilter),
|
|
6932
|
+
DolbyVisionMetadataXml: __expectString(output.dolbyVisionMetadataXml),
|
|
6926
6933
|
FilterEnable: __expectString(output.filterEnable),
|
|
6927
6934
|
FilterStrength: __expectInt32(output.filterStrength),
|
|
6928
6935
|
ImageInserter: output.imageInserter !== undefined && output.imageInserter !== null
|
|
@@ -7288,6 +7295,7 @@ var deserializeAws_restJson1MpdSettings = function (output, context) {
|
|
|
7288
7295
|
CaptionContainerType: __expectString(output.captionContainerType),
|
|
7289
7296
|
Scte35Esam: __expectString(output.scte35Esam),
|
|
7290
7297
|
Scte35Source: __expectString(output.scte35Source),
|
|
7298
|
+
TimedMetadata: __expectString(output.timedMetadata),
|
|
7291
7299
|
};
|
|
7292
7300
|
};
|
|
7293
7301
|
var deserializeAws_restJson1Mpeg2Settings = function (output, context) {
|
|
@@ -7966,6 +7974,7 @@ var deserializeAws_restJson1WavSettings = function (output, context) {
|
|
|
7966
7974
|
};
|
|
7967
7975
|
var deserializeAws_restJson1WebvttDestinationSettings = function (output, context) {
|
|
7968
7976
|
return {
|
|
7977
|
+
Accessibility: __expectString(output.accessibility),
|
|
7969
7978
|
StylePassthrough: __expectString(output.stylePassthrough),
|
|
7970
7979
|
};
|
|
7971
7980
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
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
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, 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 RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), 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 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
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
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
15
17
|
export var getRuntimeConfig = function (config) {
|
|
16
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
17
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
-
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
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, 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 RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), 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 });
|
|
19
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AssociateCertificateCommandInput, AssociateCertificateCommandOutput } from "./commands/AssociateCertificateCommand";
|
|
10
10
|
import { CancelJobCommandInput, CancelJobCommandOutput } from "./commands/CancelJobCommand";
|
|
@@ -136,6 +136,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
136
136
|
* @internal
|
|
137
137
|
*/
|
|
138
138
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
139
|
+
/**
|
|
140
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
141
|
+
*/
|
|
142
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
139
143
|
}
|
|
140
144
|
declare type MediaConvertClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
141
145
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
3
|
import { MediaConvertClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaConvertClient";
|
|
4
|
-
import { UntagResourceRequest, UntagResourceResponse } from "../models/
|
|
4
|
+
import { UntagResourceRequest, UntagResourceResponse } from "../models/models_2";
|
|
5
5
|
export interface UntagResourceCommandInput extends UntagResourceRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
3
|
import { MediaConvertClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaConvertClient";
|
|
4
|
-
import { UpdateJobTemplateRequest, UpdateJobTemplateResponse } from "../models/
|
|
4
|
+
import { UpdateJobTemplateRequest, UpdateJobTemplateResponse } from "../models/models_2";
|
|
5
5
|
export interface UpdateJobTemplateCommandInput extends UpdateJobTemplateRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface UpdateJobTemplateCommandOutput extends UpdateJobTemplateResponse, __MetadataBearer {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
3
|
import { MediaConvertClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaConvertClient";
|
|
4
|
-
import { UpdatePresetRequest } from "../models/
|
|
5
|
-
import { UpdatePresetResponse } from "../models/models_2";
|
|
4
|
+
import { UpdatePresetRequest, UpdatePresetResponse } from "../models/models_2";
|
|
6
5
|
export interface UpdatePresetCommandInput extends UpdatePresetRequest {
|
|
7
6
|
}
|
|
8
7
|
export interface UpdatePresetCommandOutput extends UpdatePresetResponse, __MetadataBearer {
|