@aws-sdk/client-chime-sdk-media-pipelines 3.525.0 → 3.529.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/dist-cjs/index.js +25 -65
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -1113,6 +1113,7 @@ var UpdateMediaPipelineKinesisVideoStreamPoolResponseFilterSensitiveLog = /* @__
|
|
|
1113
1113
|
}), "UpdateMediaPipelineKinesisVideoStreamPoolResponseFilterSensitiveLog");
|
|
1114
1114
|
|
|
1115
1115
|
// src/protocols/Aws_restJson1.ts
|
|
1116
|
+
var import_core2 = require("@aws-sdk/core");
|
|
1116
1117
|
|
|
1117
1118
|
|
|
1118
1119
|
var import_uuid = require("uuid");
|
|
@@ -1564,7 +1565,7 @@ var de_CreateMediaCapturePipelineCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1564
1565
|
const contents = (0, import_smithy_client.map)({
|
|
1565
1566
|
$metadata: deserializeMetadata(output)
|
|
1566
1567
|
});
|
|
1567
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1568
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1568
1569
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1569
1570
|
MediaCapturePipeline: (_) => de_MediaCapturePipeline(_, context)
|
|
1570
1571
|
});
|
|
@@ -1578,7 +1579,7 @@ var de_CreateMediaConcatenationPipelineCommand = /* @__PURE__ */ __name(async (o
|
|
|
1578
1579
|
const contents = (0, import_smithy_client.map)({
|
|
1579
1580
|
$metadata: deserializeMetadata(output)
|
|
1580
1581
|
});
|
|
1581
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1582
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1582
1583
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1583
1584
|
MediaConcatenationPipeline: (_) => de_MediaConcatenationPipeline(_, context)
|
|
1584
1585
|
});
|
|
@@ -1592,7 +1593,7 @@ var de_CreateMediaInsightsPipelineCommand = /* @__PURE__ */ __name(async (output
|
|
|
1592
1593
|
const contents = (0, import_smithy_client.map)({
|
|
1593
1594
|
$metadata: deserializeMetadata(output)
|
|
1594
1595
|
});
|
|
1595
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1596
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1596
1597
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1597
1598
|
MediaInsightsPipeline: (_) => de_MediaInsightsPipeline(_, context)
|
|
1598
1599
|
});
|
|
@@ -1606,7 +1607,7 @@ var de_CreateMediaInsightsPipelineConfigurationCommand = /* @__PURE__ */ __name(
|
|
|
1606
1607
|
const contents = (0, import_smithy_client.map)({
|
|
1607
1608
|
$metadata: deserializeMetadata(output)
|
|
1608
1609
|
});
|
|
1609
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1610
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1610
1611
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1611
1612
|
MediaInsightsPipelineConfiguration: (_) => de_MediaInsightsPipelineConfiguration(_, context)
|
|
1612
1613
|
});
|
|
@@ -1620,7 +1621,7 @@ var de_CreateMediaLiveConnectorPipelineCommand = /* @__PURE__ */ __name(async (o
|
|
|
1620
1621
|
const contents = (0, import_smithy_client.map)({
|
|
1621
1622
|
$metadata: deserializeMetadata(output)
|
|
1622
1623
|
});
|
|
1623
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1624
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1624
1625
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1625
1626
|
MediaLiveConnectorPipeline: (_) => de_MediaLiveConnectorPipeline(_, context)
|
|
1626
1627
|
});
|
|
@@ -1634,7 +1635,7 @@ var de_CreateMediaPipelineKinesisVideoStreamPoolCommand = /* @__PURE__ */ __name
|
|
|
1634
1635
|
const contents = (0, import_smithy_client.map)({
|
|
1635
1636
|
$metadata: deserializeMetadata(output)
|
|
1636
1637
|
});
|
|
1637
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1638
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1638
1639
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1639
1640
|
KinesisVideoStreamPoolConfiguration: (_) => de_KinesisVideoStreamPoolConfiguration(_, context)
|
|
1640
1641
|
});
|
|
@@ -1648,7 +1649,7 @@ var de_CreateMediaStreamPipelineCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1648
1649
|
const contents = (0, import_smithy_client.map)({
|
|
1649
1650
|
$metadata: deserializeMetadata(output)
|
|
1650
1651
|
});
|
|
1651
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1652
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1652
1653
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1653
1654
|
MediaStreamPipeline: (_) => de_MediaStreamPipeline(_, context)
|
|
1654
1655
|
});
|
|
@@ -1702,7 +1703,7 @@ var de_GetMediaCapturePipelineCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1702
1703
|
const contents = (0, import_smithy_client.map)({
|
|
1703
1704
|
$metadata: deserializeMetadata(output)
|
|
1704
1705
|
});
|
|
1705
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1706
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1706
1707
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1707
1708
|
MediaCapturePipeline: (_) => de_MediaCapturePipeline(_, context)
|
|
1708
1709
|
});
|
|
@@ -1716,7 +1717,7 @@ var de_GetMediaInsightsPipelineConfigurationCommand = /* @__PURE__ */ __name(asy
|
|
|
1716
1717
|
const contents = (0, import_smithy_client.map)({
|
|
1717
1718
|
$metadata: deserializeMetadata(output)
|
|
1718
1719
|
});
|
|
1719
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1720
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1720
1721
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1721
1722
|
MediaInsightsPipelineConfiguration: (_) => de_MediaInsightsPipelineConfiguration(_, context)
|
|
1722
1723
|
});
|
|
@@ -1730,7 +1731,7 @@ var de_GetMediaPipelineCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1730
1731
|
const contents = (0, import_smithy_client.map)({
|
|
1731
1732
|
$metadata: deserializeMetadata(output)
|
|
1732
1733
|
});
|
|
1733
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1734
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1734
1735
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1735
1736
|
MediaPipeline: (_) => de_MediaPipeline(_, context)
|
|
1736
1737
|
});
|
|
@@ -1744,7 +1745,7 @@ var de_GetMediaPipelineKinesisVideoStreamPoolCommand = /* @__PURE__ */ __name(as
|
|
|
1744
1745
|
const contents = (0, import_smithy_client.map)({
|
|
1745
1746
|
$metadata: deserializeMetadata(output)
|
|
1746
1747
|
});
|
|
1747
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1748
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1748
1749
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1749
1750
|
KinesisVideoStreamPoolConfiguration: (_) => de_KinesisVideoStreamPoolConfiguration(_, context)
|
|
1750
1751
|
});
|
|
@@ -1758,7 +1759,7 @@ var de_GetSpeakerSearchTaskCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1758
1759
|
const contents = (0, import_smithy_client.map)({
|
|
1759
1760
|
$metadata: deserializeMetadata(output)
|
|
1760
1761
|
});
|
|
1761
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1762
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1762
1763
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1763
1764
|
SpeakerSearchTask: (_) => de_SpeakerSearchTask(_, context)
|
|
1764
1765
|
});
|
|
@@ -1772,7 +1773,7 @@ var de_GetVoiceToneAnalysisTaskCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1772
1773
|
const contents = (0, import_smithy_client.map)({
|
|
1773
1774
|
$metadata: deserializeMetadata(output)
|
|
1774
1775
|
});
|
|
1775
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1776
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1776
1777
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1777
1778
|
VoiceToneAnalysisTask: (_) => de_VoiceToneAnalysisTask(_, context)
|
|
1778
1779
|
});
|
|
@@ -1786,7 +1787,7 @@ var de_ListMediaCapturePipelinesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1786
1787
|
const contents = (0, import_smithy_client.map)({
|
|
1787
1788
|
$metadata: deserializeMetadata(output)
|
|
1788
1789
|
});
|
|
1789
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1790
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1790
1791
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1791
1792
|
MediaCapturePipelines: import_smithy_client._json,
|
|
1792
1793
|
NextToken: import_smithy_client.expectString
|
|
@@ -1801,7 +1802,7 @@ var de_ListMediaInsightsPipelineConfigurationsCommand = /* @__PURE__ */ __name(a
|
|
|
1801
1802
|
const contents = (0, import_smithy_client.map)({
|
|
1802
1803
|
$metadata: deserializeMetadata(output)
|
|
1803
1804
|
});
|
|
1804
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1805
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1805
1806
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1806
1807
|
MediaInsightsPipelineConfigurations: import_smithy_client._json,
|
|
1807
1808
|
NextToken: import_smithy_client.expectString
|
|
@@ -1816,7 +1817,7 @@ var de_ListMediaPipelineKinesisVideoStreamPoolsCommand = /* @__PURE__ */ __name(
|
|
|
1816
1817
|
const contents = (0, import_smithy_client.map)({
|
|
1817
1818
|
$metadata: deserializeMetadata(output)
|
|
1818
1819
|
});
|
|
1819
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1820
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1820
1821
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1821
1822
|
KinesisVideoStreamPools: import_smithy_client._json,
|
|
1822
1823
|
NextToken: import_smithy_client.expectString
|
|
@@ -1831,7 +1832,7 @@ var de_ListMediaPipelinesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1831
1832
|
const contents = (0, import_smithy_client.map)({
|
|
1832
1833
|
$metadata: deserializeMetadata(output)
|
|
1833
1834
|
});
|
|
1834
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1835
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1835
1836
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1836
1837
|
MediaPipelines: import_smithy_client._json,
|
|
1837
1838
|
NextToken: import_smithy_client.expectString
|
|
@@ -1846,7 +1847,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1846
1847
|
const contents = (0, import_smithy_client.map)({
|
|
1847
1848
|
$metadata: deserializeMetadata(output)
|
|
1848
1849
|
});
|
|
1849
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1850
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1850
1851
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1851
1852
|
Tags: import_smithy_client._json
|
|
1852
1853
|
});
|
|
@@ -1860,7 +1861,7 @@ var de_StartSpeakerSearchTaskCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1860
1861
|
const contents = (0, import_smithy_client.map)({
|
|
1861
1862
|
$metadata: deserializeMetadata(output)
|
|
1862
1863
|
});
|
|
1863
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1864
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1864
1865
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1865
1866
|
SpeakerSearchTask: (_) => de_SpeakerSearchTask(_, context)
|
|
1866
1867
|
});
|
|
@@ -1874,7 +1875,7 @@ var de_StartVoiceToneAnalysisTaskCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1874
1875
|
const contents = (0, import_smithy_client.map)({
|
|
1875
1876
|
$metadata: deserializeMetadata(output)
|
|
1876
1877
|
});
|
|
1877
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1878
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1878
1879
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1879
1880
|
VoiceToneAnalysisTask: (_) => de_VoiceToneAnalysisTask(_, context)
|
|
1880
1881
|
});
|
|
@@ -1928,7 +1929,7 @@ var de_UpdateMediaInsightsPipelineConfigurationCommand = /* @__PURE__ */ __name(
|
|
|
1928
1929
|
const contents = (0, import_smithy_client.map)({
|
|
1929
1930
|
$metadata: deserializeMetadata(output)
|
|
1930
1931
|
});
|
|
1931
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1932
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1932
1933
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1933
1934
|
MediaInsightsPipelineConfiguration: (_) => de_MediaInsightsPipelineConfiguration(_, context)
|
|
1934
1935
|
});
|
|
@@ -1952,7 +1953,7 @@ var de_UpdateMediaPipelineKinesisVideoStreamPoolCommand = /* @__PURE__ */ __name
|
|
|
1952
1953
|
const contents = (0, import_smithy_client.map)({
|
|
1953
1954
|
$metadata: deserializeMetadata(output)
|
|
1954
1955
|
});
|
|
1955
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1956
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1956
1957
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1957
1958
|
KinesisVideoStreamPoolConfiguration: (_) => de_KinesisVideoStreamPoolConfiguration(_, context)
|
|
1958
1959
|
});
|
|
@@ -1962,9 +1963,9 @@ var de_UpdateMediaPipelineKinesisVideoStreamPoolCommand = /* @__PURE__ */ __name
|
|
|
1962
1963
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1963
1964
|
const parsedOutput = {
|
|
1964
1965
|
...output,
|
|
1965
|
-
body: await
|
|
1966
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1966
1967
|
};
|
|
1967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1968
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1968
1969
|
switch (errorCode) {
|
|
1969
1970
|
case "BadRequestException":
|
|
1970
1971
|
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
@@ -2290,7 +2291,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2290
2291
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2291
2292
|
cfId: output.headers["x-amz-cf-id"]
|
|
2292
2293
|
}), "deserializeMetadata");
|
|
2293
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2294
2294
|
var _MR = "MaxResults";
|
|
2295
2295
|
var _NT = "NextToken";
|
|
2296
2296
|
var _RARN = "ResourceARN";
|
|
@@ -2298,46 +2298,6 @@ var _a = "arn";
|
|
|
2298
2298
|
var _mr = "max-results";
|
|
2299
2299
|
var _nt = "next-token";
|
|
2300
2300
|
var _o = "operation";
|
|
2301
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2302
|
-
if (encoded.length) {
|
|
2303
|
-
return JSON.parse(encoded);
|
|
2304
|
-
}
|
|
2305
|
-
return {};
|
|
2306
|
-
}), "parseBody");
|
|
2307
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2308
|
-
const value = await parseBody(errorBody, context);
|
|
2309
|
-
value.message = value.message ?? value.Message;
|
|
2310
|
-
return value;
|
|
2311
|
-
}, "parseErrorBody");
|
|
2312
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2313
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2314
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2315
|
-
let cleanValue = rawValue;
|
|
2316
|
-
if (typeof cleanValue === "number") {
|
|
2317
|
-
cleanValue = cleanValue.toString();
|
|
2318
|
-
}
|
|
2319
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2320
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2321
|
-
}
|
|
2322
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2323
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2324
|
-
}
|
|
2325
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2326
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2327
|
-
}
|
|
2328
|
-
return cleanValue;
|
|
2329
|
-
}, "sanitizeErrorCode");
|
|
2330
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2331
|
-
if (headerKey !== void 0) {
|
|
2332
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2333
|
-
}
|
|
2334
|
-
if (data.code !== void 0) {
|
|
2335
|
-
return sanitizeErrorCode(data.code);
|
|
2336
|
-
}
|
|
2337
|
-
if (data["__type"] !== void 0) {
|
|
2338
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2339
|
-
}
|
|
2340
|
-
}, "loadRestJsonErrorCode");
|
|
2341
2301
|
|
|
2342
2302
|
// src/commands/CreateMediaCapturePipelineCommand.ts
|
|
2343
2303
|
var _CreateMediaCapturePipelineCommand = class _CreateMediaCapturePipelineCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1162,43 +1163,3 @@ const _a = "arn";
|
|
|
1162
1163
|
const _mr = "max-results";
|
|
1163
1164
|
const _nt = "next-token";
|
|
1164
1165
|
const _o = "operation";
|
|
1165
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1166
|
-
if (encoded.length) {
|
|
1167
|
-
return JSON.parse(encoded);
|
|
1168
|
-
}
|
|
1169
|
-
return {};
|
|
1170
|
-
});
|
|
1171
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1172
|
-
const value = await parseBody(errorBody, context);
|
|
1173
|
-
value.message = value.message ?? value.Message;
|
|
1174
|
-
return value;
|
|
1175
|
-
};
|
|
1176
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1177
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1178
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1179
|
-
let cleanValue = rawValue;
|
|
1180
|
-
if (typeof cleanValue === "number") {
|
|
1181
|
-
cleanValue = cleanValue.toString();
|
|
1182
|
-
}
|
|
1183
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1184
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1185
|
-
}
|
|
1186
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1187
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1188
|
-
}
|
|
1189
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1190
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1191
|
-
}
|
|
1192
|
-
return cleanValue;
|
|
1193
|
-
};
|
|
1194
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1195
|
-
if (headerKey !== undefined) {
|
|
1196
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1197
|
-
}
|
|
1198
|
-
if (data.code !== undefined) {
|
|
1199
|
-
return sanitizeErrorCode(data.code);
|
|
1200
|
-
}
|
|
1201
|
-
if (data["__type"] !== undefined) {
|
|
1202
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1203
|
-
}
|
|
1204
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-chime-sdk-media-pipelines",
|
|
3
3
|
"description": "AWS SDK for JavaScript Chime Sdk Media Pipelines Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-chime-sdk-media-pipelines",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|