@aws-sdk/client-mediapackage 3.32.0 → 3.36.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 +44 -0
- package/{dist/cjs → dist-cjs}/MediaPackage.js +1 -2
- package/{dist/cjs → dist-cjs}/MediaPackageClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/ConfigureLogsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateChannelCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateHarvestJobCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateOriginEndpointCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteChannelCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteOriginEndpointCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeChannelCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeHarvestJobCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeOriginEndpointCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListChannelsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListHarvestJobsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListOriginEndpointsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RotateChannelCredentialsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RotateIngestEndpointCredentialsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateChannelCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateOriginEndpointCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListChannelsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListHarvestJobsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListOriginEndpointsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +6 -7
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/MediaPackage.js +2 -6
- package/{dist/es → dist-es}/MediaPackageClient.js +2 -11
- package/{dist/es → dist-es}/commands/ConfigureLogsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateChannelCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateHarvestJobCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateOriginEndpointCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteChannelCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteOriginEndpointCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeChannelCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeHarvestJobCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeOriginEndpointCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListChannelsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListHarvestJobsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListOriginEndpointsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -13
- package/{dist/es → dist-es}/commands/RotateChannelCredentialsCommand.js +4 -32
- package/{dist/es → dist-es}/commands/RotateIngestEndpointCredentialsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -13
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -13
- package/{dist/es → dist-es}/commands/UpdateChannelCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateOriginEndpointCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -196
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListChannelsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListHarvestJobsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListOriginEndpointsPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +555 -561
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/MediaPackage.d.ts +2 -2
- package/{dist/types → dist-types}/MediaPackageClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/ConfigureLogsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateHarvestJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateOriginEndpointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteOriginEndpointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeHarvestJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeOriginEndpointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListChannelsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListHarvestJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListOriginEndpointsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RotateChannelCredentialsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RotateIngestEndpointCredentialsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateOriginEndpointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListChannelsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListHarvestJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListOriginEndpointsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/MediaPackage.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/MediaPackageClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/ConfigureLogsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateHarvestJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateOriginEndpointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteOriginEndpointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeHarvestJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeOriginEndpointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListChannelsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListHarvestJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListOriginEndpointsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/RotateChannelCredentialsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/RotateIngestEndpointCredentialsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateOriginEndpointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListChannelsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListHarvestJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListOriginEndpointsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/MediaPackage.ts +0 -690
- package/MediaPackageClient.ts +0 -316
- package/commands/ConfigureLogsCommand.ts +0 -94
- package/commands/CreateChannelCommand.ts +0 -94
- package/commands/CreateHarvestJobCommand.ts +0 -94
- package/commands/CreateOriginEndpointCommand.ts +0 -94
- package/commands/DeleteChannelCommand.ts +0 -94
- package/commands/DeleteOriginEndpointCommand.ts +0 -94
- package/commands/DescribeChannelCommand.ts +0 -94
- package/commands/DescribeHarvestJobCommand.ts +0 -94
- package/commands/DescribeOriginEndpointCommand.ts +0 -94
- package/commands/ListChannelsCommand.ts +0 -94
- package/commands/ListHarvestJobsCommand.ts +0 -94
- package/commands/ListOriginEndpointsCommand.ts +0 -94
- package/commands/ListTagsForResourceCommand.ts +0 -77
- package/commands/RotateChannelCredentialsCommand.ts +0 -96
- package/commands/RotateIngestEndpointCredentialsCommand.ts +0 -102
- package/commands/TagResourceCommand.ts +0 -77
- package/commands/UntagResourceCommand.ts +0 -77
- package/commands/UpdateChannelCommand.ts +0 -94
- package/commands/UpdateOriginEndpointCommand.ts +0 -94
- package/dist/cjs/MediaPackage.js.map +0 -1
- package/dist/cjs/MediaPackageClient.js.map +0 -1
- package/dist/cjs/commands/ConfigureLogsCommand.js.map +0 -1
- package/dist/cjs/commands/CreateChannelCommand.js.map +0 -1
- package/dist/cjs/commands/CreateHarvestJobCommand.js.map +0 -1
- package/dist/cjs/commands/CreateOriginEndpointCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteChannelCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteOriginEndpointCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeChannelCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeHarvestJobCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeOriginEndpointCommand.js.map +0 -1
- package/dist/cjs/commands/ListChannelsCommand.js.map +0 -1
- package/dist/cjs/commands/ListHarvestJobsCommand.js.map +0 -1
- package/dist/cjs/commands/ListOriginEndpointsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/RotateChannelCredentialsCommand.js.map +0 -1
- package/dist/cjs/commands/RotateIngestEndpointCredentialsCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateChannelCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateOriginEndpointCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListChannelsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListHarvestJobsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListOriginEndpointsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/MediaPackage.js.map +0 -1
- package/dist/es/MediaPackageClient.js.map +0 -1
- package/dist/es/commands/ConfigureLogsCommand.js.map +0 -1
- package/dist/es/commands/CreateChannelCommand.js.map +0 -1
- package/dist/es/commands/CreateHarvestJobCommand.js.map +0 -1
- package/dist/es/commands/CreateOriginEndpointCommand.js.map +0 -1
- package/dist/es/commands/DeleteChannelCommand.js.map +0 -1
- package/dist/es/commands/DeleteOriginEndpointCommand.js.map +0 -1
- package/dist/es/commands/DescribeChannelCommand.js.map +0 -1
- package/dist/es/commands/DescribeHarvestJobCommand.js.map +0 -1
- package/dist/es/commands/DescribeOriginEndpointCommand.js.map +0 -1
- package/dist/es/commands/ListChannelsCommand.js.map +0 -1
- package/dist/es/commands/ListHarvestJobsCommand.js.map +0 -1
- package/dist/es/commands/ListOriginEndpointsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/RotateChannelCredentialsCommand.js.map +0 -1
- package/dist/es/commands/RotateIngestEndpointCredentialsCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateChannelCommand.js.map +0 -1
- package/dist/es/commands/UpdateOriginEndpointCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -27
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListChannelsPaginator.js.map +0 -1
- package/dist/es/pagination/ListHarvestJobsPaginator.js.map +0 -1
- package/dist/es/pagination/ListOriginEndpointsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2553
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListChannelsPaginator.ts +0 -58
- package/pagination/ListHarvestJobsPaginator.ts +0 -58
- package/pagination/ListOriginEndpointsPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -3668
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1ConfigureLogsCommand = function (input, context
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -29,7 +29,7 @@ export var serializeAws_restJson1ConfigureLogsCommand = function (input, context
|
|
|
29
29
|
input.IngressAccessLogs !== null && {
|
|
30
30
|
ingressAccessLogs: serializeAws_restJson1IngressAccessLogs(input.IngressAccessLogs, context),
|
|
31
31
|
})));
|
|
32
|
-
return [2
|
|
32
|
+
return [2, new __HttpRequest({
|
|
33
33
|
protocol: protocol,
|
|
34
34
|
hostname: hostname,
|
|
35
35
|
port: port,
|
|
@@ -45,7 +45,7 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
|
|
|
45
45
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
46
46
|
return __generator(this, function (_c) {
|
|
47
47
|
switch (_c.label) {
|
|
48
|
-
case 0: return [4
|
|
48
|
+
case 0: return [4, context.endpoint()];
|
|
49
49
|
case 1:
|
|
50
50
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
51
51
|
headers = {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
|
|
|
53
53
|
};
|
|
54
54
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
55
55
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.Id !== undefined && input.Id !== null && { id: input.Id })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, new __HttpRequest({
|
|
57
57
|
protocol: protocol,
|
|
58
58
|
hostname: hostname,
|
|
59
59
|
port: port,
|
|
@@ -69,7 +69,7 @@ export var serializeAws_restJson1CreateHarvestJobCommand = function (input, cont
|
|
|
69
69
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
70
70
|
return __generator(this, function (_c) {
|
|
71
71
|
switch (_c.label) {
|
|
72
|
-
case 0: return [4
|
|
72
|
+
case 0: return [4, context.endpoint()];
|
|
73
73
|
case 1:
|
|
74
74
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
75
75
|
headers = {
|
|
@@ -81,7 +81,7 @@ export var serializeAws_restJson1CreateHarvestJobCommand = function (input, cont
|
|
|
81
81
|
input.S3Destination !== null && {
|
|
82
82
|
s3Destination: serializeAws_restJson1S3Destination(input.S3Destination, context),
|
|
83
83
|
})), (input.StartTime !== undefined && input.StartTime !== null && { startTime: input.StartTime })));
|
|
84
|
-
return [2
|
|
84
|
+
return [2, new __HttpRequest({
|
|
85
85
|
protocol: protocol,
|
|
86
86
|
hostname: hostname,
|
|
87
87
|
port: port,
|
|
@@ -97,7 +97,7 @@ export var serializeAws_restJson1CreateOriginEndpointCommand = function (input,
|
|
|
97
97
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
98
98
|
return __generator(this, function (_c) {
|
|
99
99
|
switch (_c.label) {
|
|
100
|
-
case 0: return [4
|
|
100
|
+
case 0: return [4, context.endpoint()];
|
|
101
101
|
case 1:
|
|
102
102
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
103
103
|
headers = {
|
|
@@ -117,7 +117,7 @@ export var serializeAws_restJson1CreateOriginEndpointCommand = function (input,
|
|
|
117
117
|
input.StartoverWindowSeconds !== null && { startoverWindowSeconds: input.StartoverWindowSeconds })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) })), (input.TimeDelaySeconds !== undefined &&
|
|
118
118
|
input.TimeDelaySeconds !== null && { timeDelaySeconds: input.TimeDelaySeconds })), (input.Whitelist !== undefined &&
|
|
119
119
|
input.Whitelist !== null && { whitelist: serializeAws_restJson1__listOf__string(input.Whitelist, context) })));
|
|
120
|
-
return [2
|
|
120
|
+
return [2, new __HttpRequest({
|
|
121
121
|
protocol: protocol,
|
|
122
122
|
hostname: hostname,
|
|
123
123
|
port: port,
|
|
@@ -133,7 +133,7 @@ export var serializeAws_restJson1DeleteChannelCommand = function (input, context
|
|
|
133
133
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
134
134
|
return __generator(this, function (_c) {
|
|
135
135
|
switch (_c.label) {
|
|
136
|
-
case 0: return [4
|
|
136
|
+
case 0: return [4, context.endpoint()];
|
|
137
137
|
case 1:
|
|
138
138
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
139
139
|
headers = {};
|
|
@@ -148,7 +148,7 @@ export var serializeAws_restJson1DeleteChannelCommand = function (input, context
|
|
|
148
148
|
else {
|
|
149
149
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
150
150
|
}
|
|
151
|
-
return [2
|
|
151
|
+
return [2, new __HttpRequest({
|
|
152
152
|
protocol: protocol,
|
|
153
153
|
hostname: hostname,
|
|
154
154
|
port: port,
|
|
@@ -164,7 +164,7 @@ export var serializeAws_restJson1DeleteOriginEndpointCommand = function (input,
|
|
|
164
164
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
165
165
|
return __generator(this, function (_c) {
|
|
166
166
|
switch (_c.label) {
|
|
167
|
-
case 0: return [4
|
|
167
|
+
case 0: return [4, context.endpoint()];
|
|
168
168
|
case 1:
|
|
169
169
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
170
170
|
headers = {};
|
|
@@ -179,7 +179,7 @@ export var serializeAws_restJson1DeleteOriginEndpointCommand = function (input,
|
|
|
179
179
|
else {
|
|
180
180
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
181
181
|
}
|
|
182
|
-
return [2
|
|
182
|
+
return [2, new __HttpRequest({
|
|
183
183
|
protocol: protocol,
|
|
184
184
|
hostname: hostname,
|
|
185
185
|
port: port,
|
|
@@ -195,7 +195,7 @@ export var serializeAws_restJson1DescribeChannelCommand = function (input, conte
|
|
|
195
195
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
196
196
|
return __generator(this, function (_c) {
|
|
197
197
|
switch (_c.label) {
|
|
198
|
-
case 0: return [4
|
|
198
|
+
case 0: return [4, context.endpoint()];
|
|
199
199
|
case 1:
|
|
200
200
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
201
201
|
headers = {};
|
|
@@ -210,7 +210,7 @@ export var serializeAws_restJson1DescribeChannelCommand = function (input, conte
|
|
|
210
210
|
else {
|
|
211
211
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
212
212
|
}
|
|
213
|
-
return [2
|
|
213
|
+
return [2, new __HttpRequest({
|
|
214
214
|
protocol: protocol,
|
|
215
215
|
hostname: hostname,
|
|
216
216
|
port: port,
|
|
@@ -226,7 +226,7 @@ export var serializeAws_restJson1DescribeHarvestJobCommand = function (input, co
|
|
|
226
226
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
227
227
|
return __generator(this, function (_c) {
|
|
228
228
|
switch (_c.label) {
|
|
229
|
-
case 0: return [4
|
|
229
|
+
case 0: return [4, context.endpoint()];
|
|
230
230
|
case 1:
|
|
231
231
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
232
232
|
headers = {};
|
|
@@ -241,7 +241,7 @@ export var serializeAws_restJson1DescribeHarvestJobCommand = function (input, co
|
|
|
241
241
|
else {
|
|
242
242
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
243
243
|
}
|
|
244
|
-
return [2
|
|
244
|
+
return [2, new __HttpRequest({
|
|
245
245
|
protocol: protocol,
|
|
246
246
|
hostname: hostname,
|
|
247
247
|
port: port,
|
|
@@ -257,7 +257,7 @@ export var serializeAws_restJson1DescribeOriginEndpointCommand = function (input
|
|
|
257
257
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
258
258
|
return __generator(this, function (_c) {
|
|
259
259
|
switch (_c.label) {
|
|
260
|
-
case 0: return [4
|
|
260
|
+
case 0: return [4, context.endpoint()];
|
|
261
261
|
case 1:
|
|
262
262
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
263
263
|
headers = {};
|
|
@@ -272,7 +272,7 @@ export var serializeAws_restJson1DescribeOriginEndpointCommand = function (input
|
|
|
272
272
|
else {
|
|
273
273
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
274
274
|
}
|
|
275
|
-
return [2
|
|
275
|
+
return [2, new __HttpRequest({
|
|
276
276
|
protocol: protocol,
|
|
277
277
|
hostname: hostname,
|
|
278
278
|
port: port,
|
|
@@ -288,13 +288,13 @@ export var serializeAws_restJson1ListChannelsCommand = function (input, context)
|
|
|
288
288
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
289
289
|
return __generator(this, function (_c) {
|
|
290
290
|
switch (_c.label) {
|
|
291
|
-
case 0: return [4
|
|
291
|
+
case 0: return [4, context.endpoint()];
|
|
292
292
|
case 1:
|
|
293
293
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
294
294
|
headers = {};
|
|
295
295
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
296
296
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
297
|
-
return [2
|
|
297
|
+
return [2, new __HttpRequest({
|
|
298
298
|
protocol: protocol,
|
|
299
299
|
hostname: hostname,
|
|
300
300
|
port: port,
|
|
@@ -311,13 +311,13 @@ export var serializeAws_restJson1ListHarvestJobsCommand = function (input, conte
|
|
|
311
311
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
312
312
|
return __generator(this, function (_c) {
|
|
313
313
|
switch (_c.label) {
|
|
314
|
-
case 0: return [4
|
|
314
|
+
case 0: return [4, context.endpoint()];
|
|
315
315
|
case 1:
|
|
316
316
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
317
317
|
headers = {};
|
|
318
318
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/harvest_jobs";
|
|
319
319
|
query = __assign(__assign(__assign(__assign({}, (input.IncludeChannelId !== undefined && { includeChannelId: input.IncludeChannelId })), (input.IncludeStatus !== undefined && { includeStatus: input.IncludeStatus })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
320
|
-
return [2
|
|
320
|
+
return [2, new __HttpRequest({
|
|
321
321
|
protocol: protocol,
|
|
322
322
|
hostname: hostname,
|
|
323
323
|
port: port,
|
|
@@ -334,13 +334,13 @@ export var serializeAws_restJson1ListOriginEndpointsCommand = function (input, c
|
|
|
334
334
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
335
335
|
return __generator(this, function (_c) {
|
|
336
336
|
switch (_c.label) {
|
|
337
|
-
case 0: return [4
|
|
337
|
+
case 0: return [4, context.endpoint()];
|
|
338
338
|
case 1:
|
|
339
339
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
340
340
|
headers = {};
|
|
341
341
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/origin_endpoints";
|
|
342
342
|
query = __assign(__assign(__assign({}, (input.ChannelId !== undefined && { channelId: input.ChannelId })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
343
|
-
return [2
|
|
343
|
+
return [2, new __HttpRequest({
|
|
344
344
|
protocol: protocol,
|
|
345
345
|
hostname: hostname,
|
|
346
346
|
port: port,
|
|
@@ -357,7 +357,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
357
357
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
358
358
|
return __generator(this, function (_c) {
|
|
359
359
|
switch (_c.label) {
|
|
360
|
-
case 0: return [4
|
|
360
|
+
case 0: return [4, context.endpoint()];
|
|
361
361
|
case 1:
|
|
362
362
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
363
363
|
headers = {};
|
|
@@ -372,7 +372,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
372
372
|
else {
|
|
373
373
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
374
374
|
}
|
|
375
|
-
return [2
|
|
375
|
+
return [2, new __HttpRequest({
|
|
376
376
|
protocol: protocol,
|
|
377
377
|
hostname: hostname,
|
|
378
378
|
port: port,
|
|
@@ -388,7 +388,7 @@ export var serializeAws_restJson1RotateChannelCredentialsCommand = function (inp
|
|
|
388
388
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
389
389
|
return __generator(this, function (_c) {
|
|
390
390
|
switch (_c.label) {
|
|
391
|
-
case 0: return [4
|
|
391
|
+
case 0: return [4, context.endpoint()];
|
|
392
392
|
case 1:
|
|
393
393
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
394
394
|
headers = {};
|
|
@@ -403,7 +403,7 @@ export var serializeAws_restJson1RotateChannelCredentialsCommand = function (inp
|
|
|
403
403
|
else {
|
|
404
404
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
405
405
|
}
|
|
406
|
-
return [2
|
|
406
|
+
return [2, new __HttpRequest({
|
|
407
407
|
protocol: protocol,
|
|
408
408
|
hostname: hostname,
|
|
409
409
|
port: port,
|
|
@@ -419,7 +419,7 @@ export var serializeAws_restJson1RotateIngestEndpointCredentialsCommand = functi
|
|
|
419
419
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
420
420
|
return __generator(this, function (_c) {
|
|
421
421
|
switch (_c.label) {
|
|
422
|
-
case 0: return [4
|
|
422
|
+
case 0: return [4, context.endpoint()];
|
|
423
423
|
case 1:
|
|
424
424
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
425
425
|
headers = {};
|
|
@@ -445,7 +445,7 @@ export var serializeAws_restJson1RotateIngestEndpointCredentialsCommand = functi
|
|
|
445
445
|
else {
|
|
446
446
|
throw new Error("No value provided for input HTTP label: IngestEndpointId.");
|
|
447
447
|
}
|
|
448
|
-
return [2
|
|
448
|
+
return [2, new __HttpRequest({
|
|
449
449
|
protocol: protocol,
|
|
450
450
|
hostname: hostname,
|
|
451
451
|
port: port,
|
|
@@ -461,7 +461,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
461
461
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
462
462
|
return __generator(this, function (_c) {
|
|
463
463
|
switch (_c.label) {
|
|
464
|
-
case 0: return [4
|
|
464
|
+
case 0: return [4, context.endpoint()];
|
|
465
465
|
case 1:
|
|
466
466
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
467
467
|
headers = {
|
|
@@ -480,7 +480,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
480
480
|
}
|
|
481
481
|
body = JSON.stringify(__assign({}, (input.Tags !== undefined &&
|
|
482
482
|
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
483
|
-
return [2
|
|
483
|
+
return [2, new __HttpRequest({
|
|
484
484
|
protocol: protocol,
|
|
485
485
|
hostname: hostname,
|
|
486
486
|
port: port,
|
|
@@ -496,7 +496,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
496
496
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
497
497
|
return __generator(this, function (_c) {
|
|
498
498
|
switch (_c.label) {
|
|
499
|
-
case 0: return [4
|
|
499
|
+
case 0: return [4, context.endpoint()];
|
|
500
500
|
case 1:
|
|
501
501
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
502
502
|
headers = {};
|
|
@@ -512,7 +512,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
512
512
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
513
513
|
}
|
|
514
514
|
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
515
|
-
return [2
|
|
515
|
+
return [2, new __HttpRequest({
|
|
516
516
|
protocol: protocol,
|
|
517
517
|
hostname: hostname,
|
|
518
518
|
port: port,
|
|
@@ -529,7 +529,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
|
|
|
529
529
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
530
530
|
return __generator(this, function (_c) {
|
|
531
531
|
switch (_c.label) {
|
|
532
|
-
case 0: return [4
|
|
532
|
+
case 0: return [4, context.endpoint()];
|
|
533
533
|
case 1:
|
|
534
534
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
535
535
|
headers = {
|
|
@@ -547,7 +547,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
|
|
|
547
547
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
548
548
|
}
|
|
549
549
|
body = JSON.stringify(__assign({}, (input.Description !== undefined && input.Description !== null && { description: input.Description })));
|
|
550
|
-
return [2
|
|
550
|
+
return [2, new __HttpRequest({
|
|
551
551
|
protocol: protocol,
|
|
552
552
|
hostname: hostname,
|
|
553
553
|
port: port,
|
|
@@ -563,7 +563,7 @@ export var serializeAws_restJson1UpdateOriginEndpointCommand = function (input,
|
|
|
563
563
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
564
564
|
return __generator(this, function (_c) {
|
|
565
565
|
switch (_c.label) {
|
|
566
|
-
case 0: return [4
|
|
566
|
+
case 0: return [4, context.endpoint()];
|
|
567
567
|
case 1:
|
|
568
568
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
569
569
|
headers = {
|
|
@@ -593,7 +593,7 @@ export var serializeAws_restJson1UpdateOriginEndpointCommand = function (input,
|
|
|
593
593
|
input.StartoverWindowSeconds !== null && { startoverWindowSeconds: input.StartoverWindowSeconds })), (input.TimeDelaySeconds !== undefined &&
|
|
594
594
|
input.TimeDelaySeconds !== null && { timeDelaySeconds: input.TimeDelaySeconds })), (input.Whitelist !== undefined &&
|
|
595
595
|
input.Whitelist !== null && { whitelist: serializeAws_restJson1__listOf__string(input.Whitelist, context) })));
|
|
596
|
-
return [2
|
|
596
|
+
return [2, new __HttpRequest({
|
|
597
597
|
protocol: protocol,
|
|
598
598
|
hostname: hostname,
|
|
599
599
|
port: port,
|
|
@@ -611,7 +611,7 @@ export var deserializeAws_restJson1ConfigureLogsCommand = function (output, cont
|
|
|
611
611
|
switch (_c.label) {
|
|
612
612
|
case 0:
|
|
613
613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
614
|
-
return [2
|
|
614
|
+
return [2, deserializeAws_restJson1ConfigureLogsCommandError(output, context)];
|
|
615
615
|
}
|
|
616
616
|
contents = {
|
|
617
617
|
$metadata: deserializeMetadata(output),
|
|
@@ -625,7 +625,7 @@ export var deserializeAws_restJson1ConfigureLogsCommand = function (output, cont
|
|
|
625
625
|
};
|
|
626
626
|
_a = __expectNonNull;
|
|
627
627
|
_b = __expectObject;
|
|
628
|
-
return [4
|
|
628
|
+
return [4, parseBody(output.body, context)];
|
|
629
629
|
case 1:
|
|
630
630
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
631
631
|
if (data.arn !== undefined && data.arn !== null) {
|
|
@@ -649,7 +649,7 @@ export var deserializeAws_restJson1ConfigureLogsCommand = function (output, cont
|
|
|
649
649
|
if (data.tags !== undefined && data.tags !== null) {
|
|
650
650
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
651
651
|
}
|
|
652
|
-
return [2
|
|
652
|
+
return [2, Promise.resolve(contents)];
|
|
653
653
|
}
|
|
654
654
|
});
|
|
655
655
|
}); };
|
|
@@ -661,63 +661,63 @@ var deserializeAws_restJson1ConfigureLogsCommandError = function (output, contex
|
|
|
661
661
|
case 0:
|
|
662
662
|
_a = [__assign({}, output)];
|
|
663
663
|
_j = {};
|
|
664
|
-
return [4
|
|
664
|
+
return [4, parseBody(output.body, context)];
|
|
665
665
|
case 1:
|
|
666
666
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
667
667
|
errorCode = "UnknownError";
|
|
668
668
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
669
669
|
_b = errorCode;
|
|
670
670
|
switch (_b) {
|
|
671
|
-
case "ForbiddenException": return [3
|
|
672
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
673
|
-
case "InternalServerErrorException": return [3
|
|
674
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
675
|
-
case "NotFoundException": return [3
|
|
676
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
677
|
-
case "ServiceUnavailableException": return [3
|
|
678
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
679
|
-
case "TooManyRequestsException": return [3
|
|
680
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
681
|
-
case "UnprocessableEntityException": return [3
|
|
682
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
683
|
-
}
|
|
684
|
-
return [3
|
|
671
|
+
case "ForbiddenException": return [3, 2];
|
|
672
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
673
|
+
case "InternalServerErrorException": return [3, 4];
|
|
674
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
675
|
+
case "NotFoundException": return [3, 6];
|
|
676
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
677
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
678
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
679
|
+
case "TooManyRequestsException": return [3, 10];
|
|
680
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
681
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
682
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
683
|
+
}
|
|
684
|
+
return [3, 14];
|
|
685
685
|
case 2:
|
|
686
686
|
_c = [{}];
|
|
687
|
-
return [4
|
|
687
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
688
688
|
case 3:
|
|
689
689
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
690
|
-
return [3
|
|
690
|
+
return [3, 15];
|
|
691
691
|
case 4:
|
|
692
692
|
_d = [{}];
|
|
693
|
-
return [4
|
|
693
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
694
694
|
case 5:
|
|
695
695
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
696
|
-
return [3
|
|
696
|
+
return [3, 15];
|
|
697
697
|
case 6:
|
|
698
698
|
_e = [{}];
|
|
699
|
-
return [4
|
|
699
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
700
700
|
case 7:
|
|
701
701
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
702
|
-
return [3
|
|
702
|
+
return [3, 15];
|
|
703
703
|
case 8:
|
|
704
704
|
_f = [{}];
|
|
705
|
-
return [4
|
|
705
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
706
706
|
case 9:
|
|
707
707
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
708
|
-
return [3
|
|
708
|
+
return [3, 15];
|
|
709
709
|
case 10:
|
|
710
710
|
_g = [{}];
|
|
711
|
-
return [4
|
|
711
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
712
712
|
case 11:
|
|
713
713
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
714
|
-
return [3
|
|
714
|
+
return [3, 15];
|
|
715
715
|
case 12:
|
|
716
716
|
_h = [{}];
|
|
717
|
-
return [4
|
|
717
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
718
718
|
case 13:
|
|
719
719
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
720
|
-
return [3
|
|
720
|
+
return [3, 15];
|
|
721
721
|
case 14:
|
|
722
722
|
parsedBody = parsedOutput.body;
|
|
723
723
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -727,7 +727,7 @@ var deserializeAws_restJson1ConfigureLogsCommandError = function (output, contex
|
|
|
727
727
|
message = response.message || response.Message || errorCode;
|
|
728
728
|
response.message = message;
|
|
729
729
|
delete response.Message;
|
|
730
|
-
return [2
|
|
730
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
731
731
|
}
|
|
732
732
|
});
|
|
733
733
|
}); };
|
|
@@ -737,7 +737,7 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
|
|
|
737
737
|
switch (_c.label) {
|
|
738
738
|
case 0:
|
|
739
739
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
740
|
-
return [2
|
|
740
|
+
return [2, deserializeAws_restJson1CreateChannelCommandError(output, context)];
|
|
741
741
|
}
|
|
742
742
|
contents = {
|
|
743
743
|
$metadata: deserializeMetadata(output),
|
|
@@ -751,7 +751,7 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
|
|
|
751
751
|
};
|
|
752
752
|
_a = __expectNonNull;
|
|
753
753
|
_b = __expectObject;
|
|
754
|
-
return [4
|
|
754
|
+
return [4, parseBody(output.body, context)];
|
|
755
755
|
case 1:
|
|
756
756
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
757
757
|
if (data.arn !== undefined && data.arn !== null) {
|
|
@@ -775,7 +775,7 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
|
|
|
775
775
|
if (data.tags !== undefined && data.tags !== null) {
|
|
776
776
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
777
777
|
}
|
|
778
|
-
return [2
|
|
778
|
+
return [2, Promise.resolve(contents)];
|
|
779
779
|
}
|
|
780
780
|
});
|
|
781
781
|
}); };
|
|
@@ -787,63 +787,63 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
|
|
|
787
787
|
case 0:
|
|
788
788
|
_a = [__assign({}, output)];
|
|
789
789
|
_j = {};
|
|
790
|
-
return [4
|
|
790
|
+
return [4, parseBody(output.body, context)];
|
|
791
791
|
case 1:
|
|
792
792
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
793
793
|
errorCode = "UnknownError";
|
|
794
794
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
795
795
|
_b = errorCode;
|
|
796
796
|
switch (_b) {
|
|
797
|
-
case "ForbiddenException": return [3
|
|
798
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
799
|
-
case "InternalServerErrorException": return [3
|
|
800
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
801
|
-
case "NotFoundException": return [3
|
|
802
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
803
|
-
case "ServiceUnavailableException": return [3
|
|
804
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
805
|
-
case "TooManyRequestsException": return [3
|
|
806
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
807
|
-
case "UnprocessableEntityException": return [3
|
|
808
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
809
|
-
}
|
|
810
|
-
return [3
|
|
797
|
+
case "ForbiddenException": return [3, 2];
|
|
798
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
799
|
+
case "InternalServerErrorException": return [3, 4];
|
|
800
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
801
|
+
case "NotFoundException": return [3, 6];
|
|
802
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
803
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
804
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
805
|
+
case "TooManyRequestsException": return [3, 10];
|
|
806
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
807
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
808
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
809
|
+
}
|
|
810
|
+
return [3, 14];
|
|
811
811
|
case 2:
|
|
812
812
|
_c = [{}];
|
|
813
|
-
return [4
|
|
813
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
814
814
|
case 3:
|
|
815
815
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
816
|
-
return [3
|
|
816
|
+
return [3, 15];
|
|
817
817
|
case 4:
|
|
818
818
|
_d = [{}];
|
|
819
|
-
return [4
|
|
819
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
820
820
|
case 5:
|
|
821
821
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
822
|
-
return [3
|
|
822
|
+
return [3, 15];
|
|
823
823
|
case 6:
|
|
824
824
|
_e = [{}];
|
|
825
|
-
return [4
|
|
825
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
826
826
|
case 7:
|
|
827
827
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
828
|
-
return [3
|
|
828
|
+
return [3, 15];
|
|
829
829
|
case 8:
|
|
830
830
|
_f = [{}];
|
|
831
|
-
return [4
|
|
831
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
832
832
|
case 9:
|
|
833
833
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
834
|
-
return [3
|
|
834
|
+
return [3, 15];
|
|
835
835
|
case 10:
|
|
836
836
|
_g = [{}];
|
|
837
|
-
return [4
|
|
837
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
838
838
|
case 11:
|
|
839
839
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
840
|
-
return [3
|
|
840
|
+
return [3, 15];
|
|
841
841
|
case 12:
|
|
842
842
|
_h = [{}];
|
|
843
|
-
return [4
|
|
843
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
844
844
|
case 13:
|
|
845
845
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
846
|
-
return [3
|
|
846
|
+
return [3, 15];
|
|
847
847
|
case 14:
|
|
848
848
|
parsedBody = parsedOutput.body;
|
|
849
849
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -853,7 +853,7 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
|
|
|
853
853
|
message = response.message || response.Message || errorCode;
|
|
854
854
|
response.message = message;
|
|
855
855
|
delete response.Message;
|
|
856
|
-
return [2
|
|
856
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
857
857
|
}
|
|
858
858
|
});
|
|
859
859
|
}); };
|
|
@@ -863,7 +863,7 @@ export var deserializeAws_restJson1CreateHarvestJobCommand = function (output, c
|
|
|
863
863
|
switch (_c.label) {
|
|
864
864
|
case 0:
|
|
865
865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
866
|
-
return [2
|
|
866
|
+
return [2, deserializeAws_restJson1CreateHarvestJobCommandError(output, context)];
|
|
867
867
|
}
|
|
868
868
|
contents = {
|
|
869
869
|
$metadata: deserializeMetadata(output),
|
|
@@ -879,7 +879,7 @@ export var deserializeAws_restJson1CreateHarvestJobCommand = function (output, c
|
|
|
879
879
|
};
|
|
880
880
|
_a = __expectNonNull;
|
|
881
881
|
_b = __expectObject;
|
|
882
|
-
return [4
|
|
882
|
+
return [4, parseBody(output.body, context)];
|
|
883
883
|
case 1:
|
|
884
884
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
885
885
|
if (data.arn !== undefined && data.arn !== null) {
|
|
@@ -909,7 +909,7 @@ export var deserializeAws_restJson1CreateHarvestJobCommand = function (output, c
|
|
|
909
909
|
if (data.status !== undefined && data.status !== null) {
|
|
910
910
|
contents.Status = __expectString(data.status);
|
|
911
911
|
}
|
|
912
|
-
return [2
|
|
912
|
+
return [2, Promise.resolve(contents)];
|
|
913
913
|
}
|
|
914
914
|
});
|
|
915
915
|
}); };
|
|
@@ -921,63 +921,63 @@ var deserializeAws_restJson1CreateHarvestJobCommandError = function (output, con
|
|
|
921
921
|
case 0:
|
|
922
922
|
_a = [__assign({}, output)];
|
|
923
923
|
_j = {};
|
|
924
|
-
return [4
|
|
924
|
+
return [4, parseBody(output.body, context)];
|
|
925
925
|
case 1:
|
|
926
926
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
927
927
|
errorCode = "UnknownError";
|
|
928
928
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
929
|
_b = errorCode;
|
|
930
930
|
switch (_b) {
|
|
931
|
-
case "ForbiddenException": return [3
|
|
932
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
933
|
-
case "InternalServerErrorException": return [3
|
|
934
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
935
|
-
case "NotFoundException": return [3
|
|
936
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
937
|
-
case "ServiceUnavailableException": return [3
|
|
938
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
939
|
-
case "TooManyRequestsException": return [3
|
|
940
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
941
|
-
case "UnprocessableEntityException": return [3
|
|
942
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
943
|
-
}
|
|
944
|
-
return [3
|
|
931
|
+
case "ForbiddenException": return [3, 2];
|
|
932
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
933
|
+
case "InternalServerErrorException": return [3, 4];
|
|
934
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
935
|
+
case "NotFoundException": return [3, 6];
|
|
936
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
937
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
938
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
939
|
+
case "TooManyRequestsException": return [3, 10];
|
|
940
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
941
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
942
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
943
|
+
}
|
|
944
|
+
return [3, 14];
|
|
945
945
|
case 2:
|
|
946
946
|
_c = [{}];
|
|
947
|
-
return [4
|
|
947
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
948
948
|
case 3:
|
|
949
949
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
950
|
-
return [3
|
|
950
|
+
return [3, 15];
|
|
951
951
|
case 4:
|
|
952
952
|
_d = [{}];
|
|
953
|
-
return [4
|
|
953
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
954
954
|
case 5:
|
|
955
955
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
956
|
-
return [3
|
|
956
|
+
return [3, 15];
|
|
957
957
|
case 6:
|
|
958
958
|
_e = [{}];
|
|
959
|
-
return [4
|
|
959
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
960
960
|
case 7:
|
|
961
961
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
962
|
-
return [3
|
|
962
|
+
return [3, 15];
|
|
963
963
|
case 8:
|
|
964
964
|
_f = [{}];
|
|
965
|
-
return [4
|
|
965
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
966
966
|
case 9:
|
|
967
967
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
968
|
-
return [3
|
|
968
|
+
return [3, 15];
|
|
969
969
|
case 10:
|
|
970
970
|
_g = [{}];
|
|
971
|
-
return [4
|
|
971
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
972
972
|
case 11:
|
|
973
973
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
974
|
-
return [3
|
|
974
|
+
return [3, 15];
|
|
975
975
|
case 12:
|
|
976
976
|
_h = [{}];
|
|
977
|
-
return [4
|
|
977
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
978
978
|
case 13:
|
|
979
979
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
980
|
-
return [3
|
|
980
|
+
return [3, 15];
|
|
981
981
|
case 14:
|
|
982
982
|
parsedBody = parsedOutput.body;
|
|
983
983
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -987,7 +987,7 @@ var deserializeAws_restJson1CreateHarvestJobCommandError = function (output, con
|
|
|
987
987
|
message = response.message || response.Message || errorCode;
|
|
988
988
|
response.message = message;
|
|
989
989
|
delete response.Message;
|
|
990
|
-
return [2
|
|
990
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
991
991
|
}
|
|
992
992
|
});
|
|
993
993
|
}); };
|
|
@@ -997,7 +997,7 @@ export var deserializeAws_restJson1CreateOriginEndpointCommand = function (outpu
|
|
|
997
997
|
switch (_c.label) {
|
|
998
998
|
case 0:
|
|
999
999
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1000
|
-
return [2
|
|
1000
|
+
return [2, deserializeAws_restJson1CreateOriginEndpointCommandError(output, context)];
|
|
1001
1001
|
}
|
|
1002
1002
|
contents = {
|
|
1003
1003
|
$metadata: deserializeMetadata(output),
|
|
@@ -1020,7 +1020,7 @@ export var deserializeAws_restJson1CreateOriginEndpointCommand = function (outpu
|
|
|
1020
1020
|
};
|
|
1021
1021
|
_a = __expectNonNull;
|
|
1022
1022
|
_b = __expectObject;
|
|
1023
|
-
return [4
|
|
1023
|
+
return [4, parseBody(output.body, context)];
|
|
1024
1024
|
case 1:
|
|
1025
1025
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1026
1026
|
if (data.arn !== undefined && data.arn !== null) {
|
|
@@ -1071,7 +1071,7 @@ export var deserializeAws_restJson1CreateOriginEndpointCommand = function (outpu
|
|
|
1071
1071
|
if (data.whitelist !== undefined && data.whitelist !== null) {
|
|
1072
1072
|
contents.Whitelist = deserializeAws_restJson1__listOf__string(data.whitelist, context);
|
|
1073
1073
|
}
|
|
1074
|
-
return [2
|
|
1074
|
+
return [2, Promise.resolve(contents)];
|
|
1075
1075
|
}
|
|
1076
1076
|
});
|
|
1077
1077
|
}); };
|
|
@@ -1083,63 +1083,63 @@ var deserializeAws_restJson1CreateOriginEndpointCommandError = function (output,
|
|
|
1083
1083
|
case 0:
|
|
1084
1084
|
_a = [__assign({}, output)];
|
|
1085
1085
|
_j = {};
|
|
1086
|
-
return [4
|
|
1086
|
+
return [4, parseBody(output.body, context)];
|
|
1087
1087
|
case 1:
|
|
1088
1088
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1089
1089
|
errorCode = "UnknownError";
|
|
1090
1090
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
1091
|
_b = errorCode;
|
|
1092
1092
|
switch (_b) {
|
|
1093
|
-
case "ForbiddenException": return [3
|
|
1094
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
1095
|
-
case "InternalServerErrorException": return [3
|
|
1096
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
1097
|
-
case "NotFoundException": return [3
|
|
1098
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
1099
|
-
case "ServiceUnavailableException": return [3
|
|
1100
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
1101
|
-
case "TooManyRequestsException": return [3
|
|
1102
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
1103
|
-
case "UnprocessableEntityException": return [3
|
|
1104
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
1105
|
-
}
|
|
1106
|
-
return [3
|
|
1093
|
+
case "ForbiddenException": return [3, 2];
|
|
1094
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
1095
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1096
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
1097
|
+
case "NotFoundException": return [3, 6];
|
|
1098
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
1099
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1100
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
1101
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1102
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
1103
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
1104
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
1105
|
+
}
|
|
1106
|
+
return [3, 14];
|
|
1107
1107
|
case 2:
|
|
1108
1108
|
_c = [{}];
|
|
1109
|
-
return [4
|
|
1109
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1110
1110
|
case 3:
|
|
1111
1111
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1112
|
-
return [3
|
|
1112
|
+
return [3, 15];
|
|
1113
1113
|
case 4:
|
|
1114
1114
|
_d = [{}];
|
|
1115
|
-
return [4
|
|
1115
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1116
1116
|
case 5:
|
|
1117
1117
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1118
|
-
return [3
|
|
1118
|
+
return [3, 15];
|
|
1119
1119
|
case 6:
|
|
1120
1120
|
_e = [{}];
|
|
1121
|
-
return [4
|
|
1121
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1122
1122
|
case 7:
|
|
1123
1123
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1124
|
-
return [3
|
|
1124
|
+
return [3, 15];
|
|
1125
1125
|
case 8:
|
|
1126
1126
|
_f = [{}];
|
|
1127
|
-
return [4
|
|
1127
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1128
1128
|
case 9:
|
|
1129
1129
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1130
|
-
return [3
|
|
1130
|
+
return [3, 15];
|
|
1131
1131
|
case 10:
|
|
1132
1132
|
_g = [{}];
|
|
1133
|
-
return [4
|
|
1133
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1134
1134
|
case 11:
|
|
1135
1135
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1136
|
-
return [3
|
|
1136
|
+
return [3, 15];
|
|
1137
1137
|
case 12:
|
|
1138
1138
|
_h = [{}];
|
|
1139
|
-
return [4
|
|
1139
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1140
1140
|
case 13:
|
|
1141
1141
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1142
|
-
return [3
|
|
1142
|
+
return [3, 15];
|
|
1143
1143
|
case 14:
|
|
1144
1144
|
parsedBody = parsedOutput.body;
|
|
1145
1145
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1149,7 +1149,7 @@ var deserializeAws_restJson1CreateOriginEndpointCommandError = function (output,
|
|
|
1149
1149
|
message = response.message || response.Message || errorCode;
|
|
1150
1150
|
response.message = message;
|
|
1151
1151
|
delete response.Message;
|
|
1152
|
-
return [2
|
|
1152
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1153
1153
|
}
|
|
1154
1154
|
});
|
|
1155
1155
|
}); };
|
|
@@ -1159,15 +1159,15 @@ export var deserializeAws_restJson1DeleteChannelCommand = function (output, cont
|
|
|
1159
1159
|
switch (_a.label) {
|
|
1160
1160
|
case 0:
|
|
1161
1161
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1162
|
-
return [2
|
|
1162
|
+
return [2, deserializeAws_restJson1DeleteChannelCommandError(output, context)];
|
|
1163
1163
|
}
|
|
1164
1164
|
contents = {
|
|
1165
1165
|
$metadata: deserializeMetadata(output),
|
|
1166
1166
|
};
|
|
1167
|
-
return [4
|
|
1167
|
+
return [4, collectBody(output.body, context)];
|
|
1168
1168
|
case 1:
|
|
1169
1169
|
_a.sent();
|
|
1170
|
-
return [2
|
|
1170
|
+
return [2, Promise.resolve(contents)];
|
|
1171
1171
|
}
|
|
1172
1172
|
});
|
|
1173
1173
|
}); };
|
|
@@ -1179,63 +1179,63 @@ var deserializeAws_restJson1DeleteChannelCommandError = function (output, contex
|
|
|
1179
1179
|
case 0:
|
|
1180
1180
|
_a = [__assign({}, output)];
|
|
1181
1181
|
_j = {};
|
|
1182
|
-
return [4
|
|
1182
|
+
return [4, parseBody(output.body, context)];
|
|
1183
1183
|
case 1:
|
|
1184
1184
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1185
1185
|
errorCode = "UnknownError";
|
|
1186
1186
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1187
1187
|
_b = errorCode;
|
|
1188
1188
|
switch (_b) {
|
|
1189
|
-
case "ForbiddenException": return [3
|
|
1190
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
1191
|
-
case "InternalServerErrorException": return [3
|
|
1192
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
1193
|
-
case "NotFoundException": return [3
|
|
1194
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
1195
|
-
case "ServiceUnavailableException": return [3
|
|
1196
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
1197
|
-
case "TooManyRequestsException": return [3
|
|
1198
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
1199
|
-
case "UnprocessableEntityException": return [3
|
|
1200
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
1201
|
-
}
|
|
1202
|
-
return [3
|
|
1189
|
+
case "ForbiddenException": return [3, 2];
|
|
1190
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
1191
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1192
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
1193
|
+
case "NotFoundException": return [3, 6];
|
|
1194
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
1195
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1196
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
1197
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1198
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
1199
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
1200
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
1201
|
+
}
|
|
1202
|
+
return [3, 14];
|
|
1203
1203
|
case 2:
|
|
1204
1204
|
_c = [{}];
|
|
1205
|
-
return [4
|
|
1205
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1206
1206
|
case 3:
|
|
1207
1207
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1208
|
-
return [3
|
|
1208
|
+
return [3, 15];
|
|
1209
1209
|
case 4:
|
|
1210
1210
|
_d = [{}];
|
|
1211
|
-
return [4
|
|
1211
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1212
1212
|
case 5:
|
|
1213
1213
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1214
|
-
return [3
|
|
1214
|
+
return [3, 15];
|
|
1215
1215
|
case 6:
|
|
1216
1216
|
_e = [{}];
|
|
1217
|
-
return [4
|
|
1217
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1218
1218
|
case 7:
|
|
1219
1219
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1220
|
-
return [3
|
|
1220
|
+
return [3, 15];
|
|
1221
1221
|
case 8:
|
|
1222
1222
|
_f = [{}];
|
|
1223
|
-
return [4
|
|
1223
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1224
1224
|
case 9:
|
|
1225
1225
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1226
|
-
return [3
|
|
1226
|
+
return [3, 15];
|
|
1227
1227
|
case 10:
|
|
1228
1228
|
_g = [{}];
|
|
1229
|
-
return [4
|
|
1229
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1230
1230
|
case 11:
|
|
1231
1231
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1232
|
-
return [3
|
|
1232
|
+
return [3, 15];
|
|
1233
1233
|
case 12:
|
|
1234
1234
|
_h = [{}];
|
|
1235
|
-
return [4
|
|
1235
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1236
1236
|
case 13:
|
|
1237
1237
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1238
|
-
return [3
|
|
1238
|
+
return [3, 15];
|
|
1239
1239
|
case 14:
|
|
1240
1240
|
parsedBody = parsedOutput.body;
|
|
1241
1241
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1245,7 +1245,7 @@ var deserializeAws_restJson1DeleteChannelCommandError = function (output, contex
|
|
|
1245
1245
|
message = response.message || response.Message || errorCode;
|
|
1246
1246
|
response.message = message;
|
|
1247
1247
|
delete response.Message;
|
|
1248
|
-
return [2
|
|
1248
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1249
1249
|
}
|
|
1250
1250
|
});
|
|
1251
1251
|
}); };
|
|
@@ -1255,15 +1255,15 @@ export var deserializeAws_restJson1DeleteOriginEndpointCommand = function (outpu
|
|
|
1255
1255
|
switch (_a.label) {
|
|
1256
1256
|
case 0:
|
|
1257
1257
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1258
|
-
return [2
|
|
1258
|
+
return [2, deserializeAws_restJson1DeleteOriginEndpointCommandError(output, context)];
|
|
1259
1259
|
}
|
|
1260
1260
|
contents = {
|
|
1261
1261
|
$metadata: deserializeMetadata(output),
|
|
1262
1262
|
};
|
|
1263
|
-
return [4
|
|
1263
|
+
return [4, collectBody(output.body, context)];
|
|
1264
1264
|
case 1:
|
|
1265
1265
|
_a.sent();
|
|
1266
|
-
return [2
|
|
1266
|
+
return [2, Promise.resolve(contents)];
|
|
1267
1267
|
}
|
|
1268
1268
|
});
|
|
1269
1269
|
}); };
|
|
@@ -1275,63 +1275,63 @@ var deserializeAws_restJson1DeleteOriginEndpointCommandError = function (output,
|
|
|
1275
1275
|
case 0:
|
|
1276
1276
|
_a = [__assign({}, output)];
|
|
1277
1277
|
_j = {};
|
|
1278
|
-
return [4
|
|
1278
|
+
return [4, parseBody(output.body, context)];
|
|
1279
1279
|
case 1:
|
|
1280
1280
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1281
1281
|
errorCode = "UnknownError";
|
|
1282
1282
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1283
1283
|
_b = errorCode;
|
|
1284
1284
|
switch (_b) {
|
|
1285
|
-
case "ForbiddenException": return [3
|
|
1286
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
1287
|
-
case "InternalServerErrorException": return [3
|
|
1288
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
1289
|
-
case "NotFoundException": return [3
|
|
1290
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
1291
|
-
case "ServiceUnavailableException": return [3
|
|
1292
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
1293
|
-
case "TooManyRequestsException": return [3
|
|
1294
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
1295
|
-
case "UnprocessableEntityException": return [3
|
|
1296
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
1297
|
-
}
|
|
1298
|
-
return [3
|
|
1285
|
+
case "ForbiddenException": return [3, 2];
|
|
1286
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
1287
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1288
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
1289
|
+
case "NotFoundException": return [3, 6];
|
|
1290
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
1291
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1292
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
1293
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1294
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
1295
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
1296
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
1297
|
+
}
|
|
1298
|
+
return [3, 14];
|
|
1299
1299
|
case 2:
|
|
1300
1300
|
_c = [{}];
|
|
1301
|
-
return [4
|
|
1301
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1302
1302
|
case 3:
|
|
1303
1303
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1304
|
-
return [3
|
|
1304
|
+
return [3, 15];
|
|
1305
1305
|
case 4:
|
|
1306
1306
|
_d = [{}];
|
|
1307
|
-
return [4
|
|
1307
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1308
1308
|
case 5:
|
|
1309
1309
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1310
|
-
return [3
|
|
1310
|
+
return [3, 15];
|
|
1311
1311
|
case 6:
|
|
1312
1312
|
_e = [{}];
|
|
1313
|
-
return [4
|
|
1313
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1314
1314
|
case 7:
|
|
1315
1315
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1316
|
-
return [3
|
|
1316
|
+
return [3, 15];
|
|
1317
1317
|
case 8:
|
|
1318
1318
|
_f = [{}];
|
|
1319
|
-
return [4
|
|
1319
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1320
1320
|
case 9:
|
|
1321
1321
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1322
|
-
return [3
|
|
1322
|
+
return [3, 15];
|
|
1323
1323
|
case 10:
|
|
1324
1324
|
_g = [{}];
|
|
1325
|
-
return [4
|
|
1325
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1326
1326
|
case 11:
|
|
1327
1327
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1328
|
-
return [3
|
|
1328
|
+
return [3, 15];
|
|
1329
1329
|
case 12:
|
|
1330
1330
|
_h = [{}];
|
|
1331
|
-
return [4
|
|
1331
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1332
1332
|
case 13:
|
|
1333
1333
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1334
|
-
return [3
|
|
1334
|
+
return [3, 15];
|
|
1335
1335
|
case 14:
|
|
1336
1336
|
parsedBody = parsedOutput.body;
|
|
1337
1337
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1341,7 +1341,7 @@ var deserializeAws_restJson1DeleteOriginEndpointCommandError = function (output,
|
|
|
1341
1341
|
message = response.message || response.Message || errorCode;
|
|
1342
1342
|
response.message = message;
|
|
1343
1343
|
delete response.Message;
|
|
1344
|
-
return [2
|
|
1344
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1345
1345
|
}
|
|
1346
1346
|
});
|
|
1347
1347
|
}); };
|
|
@@ -1351,7 +1351,7 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
|
|
|
1351
1351
|
switch (_c.label) {
|
|
1352
1352
|
case 0:
|
|
1353
1353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1354
|
-
return [2
|
|
1354
|
+
return [2, deserializeAws_restJson1DescribeChannelCommandError(output, context)];
|
|
1355
1355
|
}
|
|
1356
1356
|
contents = {
|
|
1357
1357
|
$metadata: deserializeMetadata(output),
|
|
@@ -1365,7 +1365,7 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
|
|
|
1365
1365
|
};
|
|
1366
1366
|
_a = __expectNonNull;
|
|
1367
1367
|
_b = __expectObject;
|
|
1368
|
-
return [4
|
|
1368
|
+
return [4, parseBody(output.body, context)];
|
|
1369
1369
|
case 1:
|
|
1370
1370
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1371
1371
|
if (data.arn !== undefined && data.arn !== null) {
|
|
@@ -1389,7 +1389,7 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
|
|
|
1389
1389
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1390
1390
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1391
1391
|
}
|
|
1392
|
-
return [2
|
|
1392
|
+
return [2, Promise.resolve(contents)];
|
|
1393
1393
|
}
|
|
1394
1394
|
});
|
|
1395
1395
|
}); };
|
|
@@ -1401,63 +1401,63 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
|
|
|
1401
1401
|
case 0:
|
|
1402
1402
|
_a = [__assign({}, output)];
|
|
1403
1403
|
_j = {};
|
|
1404
|
-
return [4
|
|
1404
|
+
return [4, parseBody(output.body, context)];
|
|
1405
1405
|
case 1:
|
|
1406
1406
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1407
1407
|
errorCode = "UnknownError";
|
|
1408
1408
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
1409
|
_b = errorCode;
|
|
1410
1410
|
switch (_b) {
|
|
1411
|
-
case "ForbiddenException": return [3
|
|
1412
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
1413
|
-
case "InternalServerErrorException": return [3
|
|
1414
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
1415
|
-
case "NotFoundException": return [3
|
|
1416
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
1417
|
-
case "ServiceUnavailableException": return [3
|
|
1418
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
1419
|
-
case "TooManyRequestsException": return [3
|
|
1420
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
1421
|
-
case "UnprocessableEntityException": return [3
|
|
1422
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
1423
|
-
}
|
|
1424
|
-
return [3
|
|
1411
|
+
case "ForbiddenException": return [3, 2];
|
|
1412
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
1413
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1414
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
1415
|
+
case "NotFoundException": return [3, 6];
|
|
1416
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
1417
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1418
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
1419
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1420
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
1421
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
1422
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
1423
|
+
}
|
|
1424
|
+
return [3, 14];
|
|
1425
1425
|
case 2:
|
|
1426
1426
|
_c = [{}];
|
|
1427
|
-
return [4
|
|
1427
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1428
1428
|
case 3:
|
|
1429
1429
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1430
|
-
return [3
|
|
1430
|
+
return [3, 15];
|
|
1431
1431
|
case 4:
|
|
1432
1432
|
_d = [{}];
|
|
1433
|
-
return [4
|
|
1433
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1434
1434
|
case 5:
|
|
1435
1435
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1436
|
-
return [3
|
|
1436
|
+
return [3, 15];
|
|
1437
1437
|
case 6:
|
|
1438
1438
|
_e = [{}];
|
|
1439
|
-
return [4
|
|
1439
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1440
1440
|
case 7:
|
|
1441
1441
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1442
|
-
return [3
|
|
1442
|
+
return [3, 15];
|
|
1443
1443
|
case 8:
|
|
1444
1444
|
_f = [{}];
|
|
1445
|
-
return [4
|
|
1445
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1446
1446
|
case 9:
|
|
1447
1447
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1448
|
-
return [3
|
|
1448
|
+
return [3, 15];
|
|
1449
1449
|
case 10:
|
|
1450
1450
|
_g = [{}];
|
|
1451
|
-
return [4
|
|
1451
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1452
1452
|
case 11:
|
|
1453
1453
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1454
|
-
return [3
|
|
1454
|
+
return [3, 15];
|
|
1455
1455
|
case 12:
|
|
1456
1456
|
_h = [{}];
|
|
1457
|
-
return [4
|
|
1457
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1458
1458
|
case 13:
|
|
1459
1459
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1460
|
-
return [3
|
|
1460
|
+
return [3, 15];
|
|
1461
1461
|
case 14:
|
|
1462
1462
|
parsedBody = parsedOutput.body;
|
|
1463
1463
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1467,7 +1467,7 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
|
|
|
1467
1467
|
message = response.message || response.Message || errorCode;
|
|
1468
1468
|
response.message = message;
|
|
1469
1469
|
delete response.Message;
|
|
1470
|
-
return [2
|
|
1470
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1471
1471
|
}
|
|
1472
1472
|
});
|
|
1473
1473
|
}); };
|
|
@@ -1477,7 +1477,7 @@ export var deserializeAws_restJson1DescribeHarvestJobCommand = function (output,
|
|
|
1477
1477
|
switch (_c.label) {
|
|
1478
1478
|
case 0:
|
|
1479
1479
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1480
|
-
return [2
|
|
1480
|
+
return [2, deserializeAws_restJson1DescribeHarvestJobCommandError(output, context)];
|
|
1481
1481
|
}
|
|
1482
1482
|
contents = {
|
|
1483
1483
|
$metadata: deserializeMetadata(output),
|
|
@@ -1493,7 +1493,7 @@ export var deserializeAws_restJson1DescribeHarvestJobCommand = function (output,
|
|
|
1493
1493
|
};
|
|
1494
1494
|
_a = __expectNonNull;
|
|
1495
1495
|
_b = __expectObject;
|
|
1496
|
-
return [4
|
|
1496
|
+
return [4, parseBody(output.body, context)];
|
|
1497
1497
|
case 1:
|
|
1498
1498
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1499
1499
|
if (data.arn !== undefined && data.arn !== null) {
|
|
@@ -1523,7 +1523,7 @@ export var deserializeAws_restJson1DescribeHarvestJobCommand = function (output,
|
|
|
1523
1523
|
if (data.status !== undefined && data.status !== null) {
|
|
1524
1524
|
contents.Status = __expectString(data.status);
|
|
1525
1525
|
}
|
|
1526
|
-
return [2
|
|
1526
|
+
return [2, Promise.resolve(contents)];
|
|
1527
1527
|
}
|
|
1528
1528
|
});
|
|
1529
1529
|
}); };
|
|
@@ -1535,63 +1535,63 @@ var deserializeAws_restJson1DescribeHarvestJobCommandError = function (output, c
|
|
|
1535
1535
|
case 0:
|
|
1536
1536
|
_a = [__assign({}, output)];
|
|
1537
1537
|
_j = {};
|
|
1538
|
-
return [4
|
|
1538
|
+
return [4, parseBody(output.body, context)];
|
|
1539
1539
|
case 1:
|
|
1540
1540
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1541
1541
|
errorCode = "UnknownError";
|
|
1542
1542
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
1543
|
_b = errorCode;
|
|
1544
1544
|
switch (_b) {
|
|
1545
|
-
case "ForbiddenException": return [3
|
|
1546
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
1547
|
-
case "InternalServerErrorException": return [3
|
|
1548
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
1549
|
-
case "NotFoundException": return [3
|
|
1550
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
1551
|
-
case "ServiceUnavailableException": return [3
|
|
1552
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
1553
|
-
case "TooManyRequestsException": return [3
|
|
1554
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
1555
|
-
case "UnprocessableEntityException": return [3
|
|
1556
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
1557
|
-
}
|
|
1558
|
-
return [3
|
|
1545
|
+
case "ForbiddenException": return [3, 2];
|
|
1546
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
1547
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1548
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
1549
|
+
case "NotFoundException": return [3, 6];
|
|
1550
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
1551
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1552
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
1553
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1554
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
1555
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
1556
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
1557
|
+
}
|
|
1558
|
+
return [3, 14];
|
|
1559
1559
|
case 2:
|
|
1560
1560
|
_c = [{}];
|
|
1561
|
-
return [4
|
|
1561
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1562
1562
|
case 3:
|
|
1563
1563
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1564
|
-
return [3
|
|
1564
|
+
return [3, 15];
|
|
1565
1565
|
case 4:
|
|
1566
1566
|
_d = [{}];
|
|
1567
|
-
return [4
|
|
1567
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1568
1568
|
case 5:
|
|
1569
1569
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1570
|
-
return [3
|
|
1570
|
+
return [3, 15];
|
|
1571
1571
|
case 6:
|
|
1572
1572
|
_e = [{}];
|
|
1573
|
-
return [4
|
|
1573
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1574
1574
|
case 7:
|
|
1575
1575
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1576
|
-
return [3
|
|
1576
|
+
return [3, 15];
|
|
1577
1577
|
case 8:
|
|
1578
1578
|
_f = [{}];
|
|
1579
|
-
return [4
|
|
1579
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1580
1580
|
case 9:
|
|
1581
1581
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1582
|
-
return [3
|
|
1582
|
+
return [3, 15];
|
|
1583
1583
|
case 10:
|
|
1584
1584
|
_g = [{}];
|
|
1585
|
-
return [4
|
|
1585
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1586
1586
|
case 11:
|
|
1587
1587
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1588
|
-
return [3
|
|
1588
|
+
return [3, 15];
|
|
1589
1589
|
case 12:
|
|
1590
1590
|
_h = [{}];
|
|
1591
|
-
return [4
|
|
1591
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1592
1592
|
case 13:
|
|
1593
1593
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1594
|
-
return [3
|
|
1594
|
+
return [3, 15];
|
|
1595
1595
|
case 14:
|
|
1596
1596
|
parsedBody = parsedOutput.body;
|
|
1597
1597
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1601,7 +1601,7 @@ var deserializeAws_restJson1DescribeHarvestJobCommandError = function (output, c
|
|
|
1601
1601
|
message = response.message || response.Message || errorCode;
|
|
1602
1602
|
response.message = message;
|
|
1603
1603
|
delete response.Message;
|
|
1604
|
-
return [2
|
|
1604
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1605
1605
|
}
|
|
1606
1606
|
});
|
|
1607
1607
|
}); };
|
|
@@ -1611,7 +1611,7 @@ export var deserializeAws_restJson1DescribeOriginEndpointCommand = function (out
|
|
|
1611
1611
|
switch (_c.label) {
|
|
1612
1612
|
case 0:
|
|
1613
1613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1614
|
-
return [2
|
|
1614
|
+
return [2, deserializeAws_restJson1DescribeOriginEndpointCommandError(output, context)];
|
|
1615
1615
|
}
|
|
1616
1616
|
contents = {
|
|
1617
1617
|
$metadata: deserializeMetadata(output),
|
|
@@ -1634,7 +1634,7 @@ export var deserializeAws_restJson1DescribeOriginEndpointCommand = function (out
|
|
|
1634
1634
|
};
|
|
1635
1635
|
_a = __expectNonNull;
|
|
1636
1636
|
_b = __expectObject;
|
|
1637
|
-
return [4
|
|
1637
|
+
return [4, parseBody(output.body, context)];
|
|
1638
1638
|
case 1:
|
|
1639
1639
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1640
1640
|
if (data.arn !== undefined && data.arn !== null) {
|
|
@@ -1685,7 +1685,7 @@ export var deserializeAws_restJson1DescribeOriginEndpointCommand = function (out
|
|
|
1685
1685
|
if (data.whitelist !== undefined && data.whitelist !== null) {
|
|
1686
1686
|
contents.Whitelist = deserializeAws_restJson1__listOf__string(data.whitelist, context);
|
|
1687
1687
|
}
|
|
1688
|
-
return [2
|
|
1688
|
+
return [2, Promise.resolve(contents)];
|
|
1689
1689
|
}
|
|
1690
1690
|
});
|
|
1691
1691
|
}); };
|
|
@@ -1697,63 +1697,63 @@ var deserializeAws_restJson1DescribeOriginEndpointCommandError = function (outpu
|
|
|
1697
1697
|
case 0:
|
|
1698
1698
|
_a = [__assign({}, output)];
|
|
1699
1699
|
_j = {};
|
|
1700
|
-
return [4
|
|
1700
|
+
return [4, parseBody(output.body, context)];
|
|
1701
1701
|
case 1:
|
|
1702
1702
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1703
1703
|
errorCode = "UnknownError";
|
|
1704
1704
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1705
1705
|
_b = errorCode;
|
|
1706
1706
|
switch (_b) {
|
|
1707
|
-
case "ForbiddenException": return [3
|
|
1708
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
1709
|
-
case "InternalServerErrorException": return [3
|
|
1710
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
1711
|
-
case "NotFoundException": return [3
|
|
1712
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
1713
|
-
case "ServiceUnavailableException": return [3
|
|
1714
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
1715
|
-
case "TooManyRequestsException": return [3
|
|
1716
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
1717
|
-
case "UnprocessableEntityException": return [3
|
|
1718
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
1719
|
-
}
|
|
1720
|
-
return [3
|
|
1707
|
+
case "ForbiddenException": return [3, 2];
|
|
1708
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
1709
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1710
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
1711
|
+
case "NotFoundException": return [3, 6];
|
|
1712
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
1713
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1714
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
1715
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1716
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
1717
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
1718
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
1719
|
+
}
|
|
1720
|
+
return [3, 14];
|
|
1721
1721
|
case 2:
|
|
1722
1722
|
_c = [{}];
|
|
1723
|
-
return [4
|
|
1723
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1724
1724
|
case 3:
|
|
1725
1725
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1726
|
-
return [3
|
|
1726
|
+
return [3, 15];
|
|
1727
1727
|
case 4:
|
|
1728
1728
|
_d = [{}];
|
|
1729
|
-
return [4
|
|
1729
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1730
1730
|
case 5:
|
|
1731
1731
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1732
|
-
return [3
|
|
1732
|
+
return [3, 15];
|
|
1733
1733
|
case 6:
|
|
1734
1734
|
_e = [{}];
|
|
1735
|
-
return [4
|
|
1735
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1736
1736
|
case 7:
|
|
1737
1737
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1738
|
-
return [3
|
|
1738
|
+
return [3, 15];
|
|
1739
1739
|
case 8:
|
|
1740
1740
|
_f = [{}];
|
|
1741
|
-
return [4
|
|
1741
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1742
1742
|
case 9:
|
|
1743
1743
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1744
|
-
return [3
|
|
1744
|
+
return [3, 15];
|
|
1745
1745
|
case 10:
|
|
1746
1746
|
_g = [{}];
|
|
1747
|
-
return [4
|
|
1747
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1748
1748
|
case 11:
|
|
1749
1749
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1750
|
-
return [3
|
|
1750
|
+
return [3, 15];
|
|
1751
1751
|
case 12:
|
|
1752
1752
|
_h = [{}];
|
|
1753
|
-
return [4
|
|
1753
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1754
1754
|
case 13:
|
|
1755
1755
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1756
|
-
return [3
|
|
1756
|
+
return [3, 15];
|
|
1757
1757
|
case 14:
|
|
1758
1758
|
parsedBody = parsedOutput.body;
|
|
1759
1759
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1763,7 +1763,7 @@ var deserializeAws_restJson1DescribeOriginEndpointCommandError = function (outpu
|
|
|
1763
1763
|
message = response.message || response.Message || errorCode;
|
|
1764
1764
|
response.message = message;
|
|
1765
1765
|
delete response.Message;
|
|
1766
|
-
return [2
|
|
1766
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1767
1767
|
}
|
|
1768
1768
|
});
|
|
1769
1769
|
}); };
|
|
@@ -1773,7 +1773,7 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
|
|
|
1773
1773
|
switch (_c.label) {
|
|
1774
1774
|
case 0:
|
|
1775
1775
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1776
|
-
return [2
|
|
1776
|
+
return [2, deserializeAws_restJson1ListChannelsCommandError(output, context)];
|
|
1777
1777
|
}
|
|
1778
1778
|
contents = {
|
|
1779
1779
|
$metadata: deserializeMetadata(output),
|
|
@@ -1782,7 +1782,7 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
|
|
|
1782
1782
|
};
|
|
1783
1783
|
_a = __expectNonNull;
|
|
1784
1784
|
_b = __expectObject;
|
|
1785
|
-
return [4
|
|
1785
|
+
return [4, parseBody(output.body, context)];
|
|
1786
1786
|
case 1:
|
|
1787
1787
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1788
1788
|
if (data.channels !== undefined && data.channels !== null) {
|
|
@@ -1791,7 +1791,7 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
|
|
|
1791
1791
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1792
1792
|
contents.NextToken = __expectString(data.nextToken);
|
|
1793
1793
|
}
|
|
1794
|
-
return [2
|
|
1794
|
+
return [2, Promise.resolve(contents)];
|
|
1795
1795
|
}
|
|
1796
1796
|
});
|
|
1797
1797
|
}); };
|
|
@@ -1803,63 +1803,63 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
|
|
|
1803
1803
|
case 0:
|
|
1804
1804
|
_a = [__assign({}, output)];
|
|
1805
1805
|
_j = {};
|
|
1806
|
-
return [4
|
|
1806
|
+
return [4, parseBody(output.body, context)];
|
|
1807
1807
|
case 1:
|
|
1808
1808
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1809
1809
|
errorCode = "UnknownError";
|
|
1810
1810
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1811
1811
|
_b = errorCode;
|
|
1812
1812
|
switch (_b) {
|
|
1813
|
-
case "ForbiddenException": return [3
|
|
1814
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
1815
|
-
case "InternalServerErrorException": return [3
|
|
1816
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
1817
|
-
case "NotFoundException": return [3
|
|
1818
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
1819
|
-
case "ServiceUnavailableException": return [3
|
|
1820
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
1821
|
-
case "TooManyRequestsException": return [3
|
|
1822
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
1823
|
-
case "UnprocessableEntityException": return [3
|
|
1824
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
1825
|
-
}
|
|
1826
|
-
return [3
|
|
1813
|
+
case "ForbiddenException": return [3, 2];
|
|
1814
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
1815
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1816
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
1817
|
+
case "NotFoundException": return [3, 6];
|
|
1818
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
1819
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1820
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
1821
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1822
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
1823
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
1824
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
1825
|
+
}
|
|
1826
|
+
return [3, 14];
|
|
1827
1827
|
case 2:
|
|
1828
1828
|
_c = [{}];
|
|
1829
|
-
return [4
|
|
1829
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1830
1830
|
case 3:
|
|
1831
1831
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1832
|
-
return [3
|
|
1832
|
+
return [3, 15];
|
|
1833
1833
|
case 4:
|
|
1834
1834
|
_d = [{}];
|
|
1835
|
-
return [4
|
|
1835
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1836
1836
|
case 5:
|
|
1837
1837
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1838
|
-
return [3
|
|
1838
|
+
return [3, 15];
|
|
1839
1839
|
case 6:
|
|
1840
1840
|
_e = [{}];
|
|
1841
|
-
return [4
|
|
1841
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1842
1842
|
case 7:
|
|
1843
1843
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1844
|
-
return [3
|
|
1844
|
+
return [3, 15];
|
|
1845
1845
|
case 8:
|
|
1846
1846
|
_f = [{}];
|
|
1847
|
-
return [4
|
|
1847
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1848
1848
|
case 9:
|
|
1849
1849
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1850
|
-
return [3
|
|
1850
|
+
return [3, 15];
|
|
1851
1851
|
case 10:
|
|
1852
1852
|
_g = [{}];
|
|
1853
|
-
return [4
|
|
1853
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1854
1854
|
case 11:
|
|
1855
1855
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1856
|
-
return [3
|
|
1856
|
+
return [3, 15];
|
|
1857
1857
|
case 12:
|
|
1858
1858
|
_h = [{}];
|
|
1859
|
-
return [4
|
|
1859
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1860
1860
|
case 13:
|
|
1861
1861
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1862
|
-
return [3
|
|
1862
|
+
return [3, 15];
|
|
1863
1863
|
case 14:
|
|
1864
1864
|
parsedBody = parsedOutput.body;
|
|
1865
1865
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1869,7 +1869,7 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
|
|
|
1869
1869
|
message = response.message || response.Message || errorCode;
|
|
1870
1870
|
response.message = message;
|
|
1871
1871
|
delete response.Message;
|
|
1872
|
-
return [2
|
|
1872
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1873
1873
|
}
|
|
1874
1874
|
});
|
|
1875
1875
|
}); };
|
|
@@ -1879,7 +1879,7 @@ export var deserializeAws_restJson1ListHarvestJobsCommand = function (output, co
|
|
|
1879
1879
|
switch (_c.label) {
|
|
1880
1880
|
case 0:
|
|
1881
1881
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1882
|
-
return [2
|
|
1882
|
+
return [2, deserializeAws_restJson1ListHarvestJobsCommandError(output, context)];
|
|
1883
1883
|
}
|
|
1884
1884
|
contents = {
|
|
1885
1885
|
$metadata: deserializeMetadata(output),
|
|
@@ -1888,7 +1888,7 @@ export var deserializeAws_restJson1ListHarvestJobsCommand = function (output, co
|
|
|
1888
1888
|
};
|
|
1889
1889
|
_a = __expectNonNull;
|
|
1890
1890
|
_b = __expectObject;
|
|
1891
|
-
return [4
|
|
1891
|
+
return [4, parseBody(output.body, context)];
|
|
1892
1892
|
case 1:
|
|
1893
1893
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1894
1894
|
if (data.harvestJobs !== undefined && data.harvestJobs !== null) {
|
|
@@ -1897,7 +1897,7 @@ export var deserializeAws_restJson1ListHarvestJobsCommand = function (output, co
|
|
|
1897
1897
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1898
1898
|
contents.NextToken = __expectString(data.nextToken);
|
|
1899
1899
|
}
|
|
1900
|
-
return [2
|
|
1900
|
+
return [2, Promise.resolve(contents)];
|
|
1901
1901
|
}
|
|
1902
1902
|
});
|
|
1903
1903
|
}); };
|
|
@@ -1909,63 +1909,63 @@ var deserializeAws_restJson1ListHarvestJobsCommandError = function (output, cont
|
|
|
1909
1909
|
case 0:
|
|
1910
1910
|
_a = [__assign({}, output)];
|
|
1911
1911
|
_j = {};
|
|
1912
|
-
return [4
|
|
1912
|
+
return [4, parseBody(output.body, context)];
|
|
1913
1913
|
case 1:
|
|
1914
1914
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1915
1915
|
errorCode = "UnknownError";
|
|
1916
1916
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1917
1917
|
_b = errorCode;
|
|
1918
1918
|
switch (_b) {
|
|
1919
|
-
case "ForbiddenException": return [3
|
|
1920
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
1921
|
-
case "InternalServerErrorException": return [3
|
|
1922
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
1923
|
-
case "NotFoundException": return [3
|
|
1924
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
1925
|
-
case "ServiceUnavailableException": return [3
|
|
1926
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
1927
|
-
case "TooManyRequestsException": return [3
|
|
1928
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
1929
|
-
case "UnprocessableEntityException": return [3
|
|
1930
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
1931
|
-
}
|
|
1932
|
-
return [3
|
|
1919
|
+
case "ForbiddenException": return [3, 2];
|
|
1920
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
1921
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1922
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
1923
|
+
case "NotFoundException": return [3, 6];
|
|
1924
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
1925
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1926
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
1927
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1928
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
1929
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
1930
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
1931
|
+
}
|
|
1932
|
+
return [3, 14];
|
|
1933
1933
|
case 2:
|
|
1934
1934
|
_c = [{}];
|
|
1935
|
-
return [4
|
|
1935
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1936
1936
|
case 3:
|
|
1937
1937
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1938
|
-
return [3
|
|
1938
|
+
return [3, 15];
|
|
1939
1939
|
case 4:
|
|
1940
1940
|
_d = [{}];
|
|
1941
|
-
return [4
|
|
1941
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1942
1942
|
case 5:
|
|
1943
1943
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1944
|
-
return [3
|
|
1944
|
+
return [3, 15];
|
|
1945
1945
|
case 6:
|
|
1946
1946
|
_e = [{}];
|
|
1947
|
-
return [4
|
|
1947
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1948
1948
|
case 7:
|
|
1949
1949
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1950
|
-
return [3
|
|
1950
|
+
return [3, 15];
|
|
1951
1951
|
case 8:
|
|
1952
1952
|
_f = [{}];
|
|
1953
|
-
return [4
|
|
1953
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1954
1954
|
case 9:
|
|
1955
1955
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1956
|
-
return [3
|
|
1956
|
+
return [3, 15];
|
|
1957
1957
|
case 10:
|
|
1958
1958
|
_g = [{}];
|
|
1959
|
-
return [4
|
|
1959
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1960
1960
|
case 11:
|
|
1961
1961
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1962
|
-
return [3
|
|
1962
|
+
return [3, 15];
|
|
1963
1963
|
case 12:
|
|
1964
1964
|
_h = [{}];
|
|
1965
|
-
return [4
|
|
1965
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1966
1966
|
case 13:
|
|
1967
1967
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1968
|
-
return [3
|
|
1968
|
+
return [3, 15];
|
|
1969
1969
|
case 14:
|
|
1970
1970
|
parsedBody = parsedOutput.body;
|
|
1971
1971
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1975,7 +1975,7 @@ var deserializeAws_restJson1ListHarvestJobsCommandError = function (output, cont
|
|
|
1975
1975
|
message = response.message || response.Message || errorCode;
|
|
1976
1976
|
response.message = message;
|
|
1977
1977
|
delete response.Message;
|
|
1978
|
-
return [2
|
|
1978
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1979
1979
|
}
|
|
1980
1980
|
});
|
|
1981
1981
|
}); };
|
|
@@ -1985,7 +1985,7 @@ export var deserializeAws_restJson1ListOriginEndpointsCommand = function (output
|
|
|
1985
1985
|
switch (_c.label) {
|
|
1986
1986
|
case 0:
|
|
1987
1987
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1988
|
-
return [2
|
|
1988
|
+
return [2, deserializeAws_restJson1ListOriginEndpointsCommandError(output, context)];
|
|
1989
1989
|
}
|
|
1990
1990
|
contents = {
|
|
1991
1991
|
$metadata: deserializeMetadata(output),
|
|
@@ -1994,7 +1994,7 @@ export var deserializeAws_restJson1ListOriginEndpointsCommand = function (output
|
|
|
1994
1994
|
};
|
|
1995
1995
|
_a = __expectNonNull;
|
|
1996
1996
|
_b = __expectObject;
|
|
1997
|
-
return [4
|
|
1997
|
+
return [4, parseBody(output.body, context)];
|
|
1998
1998
|
case 1:
|
|
1999
1999
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2000
2000
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -2003,7 +2003,7 @@ export var deserializeAws_restJson1ListOriginEndpointsCommand = function (output
|
|
|
2003
2003
|
if (data.originEndpoints !== undefined && data.originEndpoints !== null) {
|
|
2004
2004
|
contents.OriginEndpoints = deserializeAws_restJson1__listOfOriginEndpoint(data.originEndpoints, context);
|
|
2005
2005
|
}
|
|
2006
|
-
return [2
|
|
2006
|
+
return [2, Promise.resolve(contents)];
|
|
2007
2007
|
}
|
|
2008
2008
|
});
|
|
2009
2009
|
}); };
|
|
@@ -2015,63 +2015,63 @@ var deserializeAws_restJson1ListOriginEndpointsCommandError = function (output,
|
|
|
2015
2015
|
case 0:
|
|
2016
2016
|
_a = [__assign({}, output)];
|
|
2017
2017
|
_j = {};
|
|
2018
|
-
return [4
|
|
2018
|
+
return [4, parseBody(output.body, context)];
|
|
2019
2019
|
case 1:
|
|
2020
2020
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2021
2021
|
errorCode = "UnknownError";
|
|
2022
2022
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2023
2023
|
_b = errorCode;
|
|
2024
2024
|
switch (_b) {
|
|
2025
|
-
case "ForbiddenException": return [3
|
|
2026
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
2027
|
-
case "InternalServerErrorException": return [3
|
|
2028
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
2029
|
-
case "NotFoundException": return [3
|
|
2030
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
2031
|
-
case "ServiceUnavailableException": return [3
|
|
2032
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
2033
|
-
case "TooManyRequestsException": return [3
|
|
2034
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
2035
|
-
case "UnprocessableEntityException": return [3
|
|
2036
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
2037
|
-
}
|
|
2038
|
-
return [3
|
|
2025
|
+
case "ForbiddenException": return [3, 2];
|
|
2026
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
2027
|
+
case "InternalServerErrorException": return [3, 4];
|
|
2028
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
2029
|
+
case "NotFoundException": return [3, 6];
|
|
2030
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
2031
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
2032
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
2033
|
+
case "TooManyRequestsException": return [3, 10];
|
|
2034
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
2035
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
2036
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
2037
|
+
}
|
|
2038
|
+
return [3, 14];
|
|
2039
2039
|
case 2:
|
|
2040
2040
|
_c = [{}];
|
|
2041
|
-
return [4
|
|
2041
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2042
2042
|
case 3:
|
|
2043
2043
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2044
|
-
return [3
|
|
2044
|
+
return [3, 15];
|
|
2045
2045
|
case 4:
|
|
2046
2046
|
_d = [{}];
|
|
2047
|
-
return [4
|
|
2047
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2048
2048
|
case 5:
|
|
2049
2049
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2050
|
-
return [3
|
|
2050
|
+
return [3, 15];
|
|
2051
2051
|
case 6:
|
|
2052
2052
|
_e = [{}];
|
|
2053
|
-
return [4
|
|
2053
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2054
2054
|
case 7:
|
|
2055
2055
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2056
|
-
return [3
|
|
2056
|
+
return [3, 15];
|
|
2057
2057
|
case 8:
|
|
2058
2058
|
_f = [{}];
|
|
2059
|
-
return [4
|
|
2059
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2060
2060
|
case 9:
|
|
2061
2061
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2062
|
-
return [3
|
|
2062
|
+
return [3, 15];
|
|
2063
2063
|
case 10:
|
|
2064
2064
|
_g = [{}];
|
|
2065
|
-
return [4
|
|
2065
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2066
2066
|
case 11:
|
|
2067
2067
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2068
|
-
return [3
|
|
2068
|
+
return [3, 15];
|
|
2069
2069
|
case 12:
|
|
2070
2070
|
_h = [{}];
|
|
2071
|
-
return [4
|
|
2071
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
2072
2072
|
case 13:
|
|
2073
2073
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2074
|
-
return [3
|
|
2074
|
+
return [3, 15];
|
|
2075
2075
|
case 14:
|
|
2076
2076
|
parsedBody = parsedOutput.body;
|
|
2077
2077
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2081,7 +2081,7 @@ var deserializeAws_restJson1ListOriginEndpointsCommandError = function (output,
|
|
|
2081
2081
|
message = response.message || response.Message || errorCode;
|
|
2082
2082
|
response.message = message;
|
|
2083
2083
|
delete response.Message;
|
|
2084
|
-
return [2
|
|
2084
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2085
2085
|
}
|
|
2086
2086
|
});
|
|
2087
2087
|
}); };
|
|
@@ -2091,7 +2091,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2091
2091
|
switch (_c.label) {
|
|
2092
2092
|
case 0:
|
|
2093
2093
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2094
|
-
return [2
|
|
2094
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2095
2095
|
}
|
|
2096
2096
|
contents = {
|
|
2097
2097
|
$metadata: deserializeMetadata(output),
|
|
@@ -2099,13 +2099,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2099
2099
|
};
|
|
2100
2100
|
_a = __expectNonNull;
|
|
2101
2101
|
_b = __expectObject;
|
|
2102
|
-
return [4
|
|
2102
|
+
return [4, parseBody(output.body, context)];
|
|
2103
2103
|
case 1:
|
|
2104
2104
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2105
2105
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2106
2106
|
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
2107
2107
|
}
|
|
2108
|
-
return [2
|
|
2108
|
+
return [2, Promise.resolve(contents)];
|
|
2109
2109
|
}
|
|
2110
2110
|
});
|
|
2111
2111
|
}); };
|
|
@@ -2117,7 +2117,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2117
2117
|
case 0:
|
|
2118
2118
|
_a = [__assign({}, output)];
|
|
2119
2119
|
_b = {};
|
|
2120
|
-
return [4
|
|
2120
|
+
return [4, parseBody(output.body, context)];
|
|
2121
2121
|
case 1:
|
|
2122
2122
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2123
2123
|
errorCode = "UnknownError";
|
|
@@ -2131,7 +2131,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2131
2131
|
message = response.message || response.Message || errorCode;
|
|
2132
2132
|
response.message = message;
|
|
2133
2133
|
delete response.Message;
|
|
2134
|
-
return [2
|
|
2134
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2135
2135
|
}
|
|
2136
2136
|
});
|
|
2137
2137
|
}); };
|
|
@@ -2141,7 +2141,7 @@ export var deserializeAws_restJson1RotateChannelCredentialsCommand = function (o
|
|
|
2141
2141
|
switch (_c.label) {
|
|
2142
2142
|
case 0:
|
|
2143
2143
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2144
|
-
return [2
|
|
2144
|
+
return [2, deserializeAws_restJson1RotateChannelCredentialsCommandError(output, context)];
|
|
2145
2145
|
}
|
|
2146
2146
|
contents = {
|
|
2147
2147
|
$metadata: deserializeMetadata(output),
|
|
@@ -2155,7 +2155,7 @@ export var deserializeAws_restJson1RotateChannelCredentialsCommand = function (o
|
|
|
2155
2155
|
};
|
|
2156
2156
|
_a = __expectNonNull;
|
|
2157
2157
|
_b = __expectObject;
|
|
2158
|
-
return [4
|
|
2158
|
+
return [4, parseBody(output.body, context)];
|
|
2159
2159
|
case 1:
|
|
2160
2160
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2161
2161
|
if (data.arn !== undefined && data.arn !== null) {
|
|
@@ -2179,7 +2179,7 @@ export var deserializeAws_restJson1RotateChannelCredentialsCommand = function (o
|
|
|
2179
2179
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2180
2180
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
2181
2181
|
}
|
|
2182
|
-
return [2
|
|
2182
|
+
return [2, Promise.resolve(contents)];
|
|
2183
2183
|
}
|
|
2184
2184
|
});
|
|
2185
2185
|
}); };
|
|
@@ -2191,63 +2191,63 @@ var deserializeAws_restJson1RotateChannelCredentialsCommandError = function (out
|
|
|
2191
2191
|
case 0:
|
|
2192
2192
|
_a = [__assign({}, output)];
|
|
2193
2193
|
_j = {};
|
|
2194
|
-
return [4
|
|
2194
|
+
return [4, parseBody(output.body, context)];
|
|
2195
2195
|
case 1:
|
|
2196
2196
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2197
2197
|
errorCode = "UnknownError";
|
|
2198
2198
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2199
2199
|
_b = errorCode;
|
|
2200
2200
|
switch (_b) {
|
|
2201
|
-
case "ForbiddenException": return [3
|
|
2202
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
2203
|
-
case "InternalServerErrorException": return [3
|
|
2204
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
2205
|
-
case "NotFoundException": return [3
|
|
2206
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
2207
|
-
case "ServiceUnavailableException": return [3
|
|
2208
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
2209
|
-
case "TooManyRequestsException": return [3
|
|
2210
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
2211
|
-
case "UnprocessableEntityException": return [3
|
|
2212
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
2213
|
-
}
|
|
2214
|
-
return [3
|
|
2201
|
+
case "ForbiddenException": return [3, 2];
|
|
2202
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
2203
|
+
case "InternalServerErrorException": return [3, 4];
|
|
2204
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
2205
|
+
case "NotFoundException": return [3, 6];
|
|
2206
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
2207
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
2208
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
2209
|
+
case "TooManyRequestsException": return [3, 10];
|
|
2210
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
2211
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
2212
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
2213
|
+
}
|
|
2214
|
+
return [3, 14];
|
|
2215
2215
|
case 2:
|
|
2216
2216
|
_c = [{}];
|
|
2217
|
-
return [4
|
|
2217
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2218
2218
|
case 3:
|
|
2219
2219
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2220
|
-
return [3
|
|
2220
|
+
return [3, 15];
|
|
2221
2221
|
case 4:
|
|
2222
2222
|
_d = [{}];
|
|
2223
|
-
return [4
|
|
2223
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2224
2224
|
case 5:
|
|
2225
2225
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2226
|
-
return [3
|
|
2226
|
+
return [3, 15];
|
|
2227
2227
|
case 6:
|
|
2228
2228
|
_e = [{}];
|
|
2229
|
-
return [4
|
|
2229
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2230
2230
|
case 7:
|
|
2231
2231
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2232
|
-
return [3
|
|
2232
|
+
return [3, 15];
|
|
2233
2233
|
case 8:
|
|
2234
2234
|
_f = [{}];
|
|
2235
|
-
return [4
|
|
2235
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2236
2236
|
case 9:
|
|
2237
2237
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2238
|
-
return [3
|
|
2238
|
+
return [3, 15];
|
|
2239
2239
|
case 10:
|
|
2240
2240
|
_g = [{}];
|
|
2241
|
-
return [4
|
|
2241
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2242
2242
|
case 11:
|
|
2243
2243
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2244
|
-
return [3
|
|
2244
|
+
return [3, 15];
|
|
2245
2245
|
case 12:
|
|
2246
2246
|
_h = [{}];
|
|
2247
|
-
return [4
|
|
2247
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
2248
2248
|
case 13:
|
|
2249
2249
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2250
|
-
return [3
|
|
2250
|
+
return [3, 15];
|
|
2251
2251
|
case 14:
|
|
2252
2252
|
parsedBody = parsedOutput.body;
|
|
2253
2253
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2257,7 +2257,7 @@ var deserializeAws_restJson1RotateChannelCredentialsCommandError = function (out
|
|
|
2257
2257
|
message = response.message || response.Message || errorCode;
|
|
2258
2258
|
response.message = message;
|
|
2259
2259
|
delete response.Message;
|
|
2260
|
-
return [2
|
|
2260
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2261
2261
|
}
|
|
2262
2262
|
});
|
|
2263
2263
|
}); };
|
|
@@ -2267,7 +2267,7 @@ export var deserializeAws_restJson1RotateIngestEndpointCredentialsCommand = func
|
|
|
2267
2267
|
switch (_c.label) {
|
|
2268
2268
|
case 0:
|
|
2269
2269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2270
|
-
return [2
|
|
2270
|
+
return [2, deserializeAws_restJson1RotateIngestEndpointCredentialsCommandError(output, context)];
|
|
2271
2271
|
}
|
|
2272
2272
|
contents = {
|
|
2273
2273
|
$metadata: deserializeMetadata(output),
|
|
@@ -2281,7 +2281,7 @@ export var deserializeAws_restJson1RotateIngestEndpointCredentialsCommand = func
|
|
|
2281
2281
|
};
|
|
2282
2282
|
_a = __expectNonNull;
|
|
2283
2283
|
_b = __expectObject;
|
|
2284
|
-
return [4
|
|
2284
|
+
return [4, parseBody(output.body, context)];
|
|
2285
2285
|
case 1:
|
|
2286
2286
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2287
2287
|
if (data.arn !== undefined && data.arn !== null) {
|
|
@@ -2305,7 +2305,7 @@ export var deserializeAws_restJson1RotateIngestEndpointCredentialsCommand = func
|
|
|
2305
2305
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2306
2306
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
2307
2307
|
}
|
|
2308
|
-
return [2
|
|
2308
|
+
return [2, Promise.resolve(contents)];
|
|
2309
2309
|
}
|
|
2310
2310
|
});
|
|
2311
2311
|
}); };
|
|
@@ -2317,63 +2317,63 @@ var deserializeAws_restJson1RotateIngestEndpointCredentialsCommandError = functi
|
|
|
2317
2317
|
case 0:
|
|
2318
2318
|
_a = [__assign({}, output)];
|
|
2319
2319
|
_j = {};
|
|
2320
|
-
return [4
|
|
2320
|
+
return [4, parseBody(output.body, context)];
|
|
2321
2321
|
case 1:
|
|
2322
2322
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2323
2323
|
errorCode = "UnknownError";
|
|
2324
2324
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2325
2325
|
_b = errorCode;
|
|
2326
2326
|
switch (_b) {
|
|
2327
|
-
case "ForbiddenException": return [3
|
|
2328
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
2329
|
-
case "InternalServerErrorException": return [3
|
|
2330
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
2331
|
-
case "NotFoundException": return [3
|
|
2332
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
2333
|
-
case "ServiceUnavailableException": return [3
|
|
2334
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
2335
|
-
case "TooManyRequestsException": return [3
|
|
2336
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
2337
|
-
case "UnprocessableEntityException": return [3
|
|
2338
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
2339
|
-
}
|
|
2340
|
-
return [3
|
|
2327
|
+
case "ForbiddenException": return [3, 2];
|
|
2328
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
2329
|
+
case "InternalServerErrorException": return [3, 4];
|
|
2330
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
2331
|
+
case "NotFoundException": return [3, 6];
|
|
2332
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
2333
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
2334
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
2335
|
+
case "TooManyRequestsException": return [3, 10];
|
|
2336
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
2337
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
2338
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
2339
|
+
}
|
|
2340
|
+
return [3, 14];
|
|
2341
2341
|
case 2:
|
|
2342
2342
|
_c = [{}];
|
|
2343
|
-
return [4
|
|
2343
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2344
2344
|
case 3:
|
|
2345
2345
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2346
|
-
return [3
|
|
2346
|
+
return [3, 15];
|
|
2347
2347
|
case 4:
|
|
2348
2348
|
_d = [{}];
|
|
2349
|
-
return [4
|
|
2349
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2350
2350
|
case 5:
|
|
2351
2351
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2352
|
-
return [3
|
|
2352
|
+
return [3, 15];
|
|
2353
2353
|
case 6:
|
|
2354
2354
|
_e = [{}];
|
|
2355
|
-
return [4
|
|
2355
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2356
2356
|
case 7:
|
|
2357
2357
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2358
|
-
return [3
|
|
2358
|
+
return [3, 15];
|
|
2359
2359
|
case 8:
|
|
2360
2360
|
_f = [{}];
|
|
2361
|
-
return [4
|
|
2361
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2362
2362
|
case 9:
|
|
2363
2363
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2364
|
-
return [3
|
|
2364
|
+
return [3, 15];
|
|
2365
2365
|
case 10:
|
|
2366
2366
|
_g = [{}];
|
|
2367
|
-
return [4
|
|
2367
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2368
2368
|
case 11:
|
|
2369
2369
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2370
|
-
return [3
|
|
2370
|
+
return [3, 15];
|
|
2371
2371
|
case 12:
|
|
2372
2372
|
_h = [{}];
|
|
2373
|
-
return [4
|
|
2373
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
2374
2374
|
case 13:
|
|
2375
2375
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2376
|
-
return [3
|
|
2376
|
+
return [3, 15];
|
|
2377
2377
|
case 14:
|
|
2378
2378
|
parsedBody = parsedOutput.body;
|
|
2379
2379
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2383,7 +2383,7 @@ var deserializeAws_restJson1RotateIngestEndpointCredentialsCommandError = functi
|
|
|
2383
2383
|
message = response.message || response.Message || errorCode;
|
|
2384
2384
|
response.message = message;
|
|
2385
2385
|
delete response.Message;
|
|
2386
|
-
return [2
|
|
2386
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2387
2387
|
}
|
|
2388
2388
|
});
|
|
2389
2389
|
}); };
|
|
@@ -2393,15 +2393,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2393
2393
|
switch (_a.label) {
|
|
2394
2394
|
case 0:
|
|
2395
2395
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2396
|
-
return [2
|
|
2396
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
2397
2397
|
}
|
|
2398
2398
|
contents = {
|
|
2399
2399
|
$metadata: deserializeMetadata(output),
|
|
2400
2400
|
};
|
|
2401
|
-
return [4
|
|
2401
|
+
return [4, collectBody(output.body, context)];
|
|
2402
2402
|
case 1:
|
|
2403
2403
|
_a.sent();
|
|
2404
|
-
return [2
|
|
2404
|
+
return [2, Promise.resolve(contents)];
|
|
2405
2405
|
}
|
|
2406
2406
|
});
|
|
2407
2407
|
}); };
|
|
@@ -2413,7 +2413,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2413
2413
|
case 0:
|
|
2414
2414
|
_a = [__assign({}, output)];
|
|
2415
2415
|
_b = {};
|
|
2416
|
-
return [4
|
|
2416
|
+
return [4, parseBody(output.body, context)];
|
|
2417
2417
|
case 1:
|
|
2418
2418
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2419
2419
|
errorCode = "UnknownError";
|
|
@@ -2427,7 +2427,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2427
2427
|
message = response.message || response.Message || errorCode;
|
|
2428
2428
|
response.message = message;
|
|
2429
2429
|
delete response.Message;
|
|
2430
|
-
return [2
|
|
2430
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2431
2431
|
}
|
|
2432
2432
|
});
|
|
2433
2433
|
}); };
|
|
@@ -2437,15 +2437,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2437
2437
|
switch (_a.label) {
|
|
2438
2438
|
case 0:
|
|
2439
2439
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2440
|
-
return [2
|
|
2440
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
2441
2441
|
}
|
|
2442
2442
|
contents = {
|
|
2443
2443
|
$metadata: deserializeMetadata(output),
|
|
2444
2444
|
};
|
|
2445
|
-
return [4
|
|
2445
|
+
return [4, collectBody(output.body, context)];
|
|
2446
2446
|
case 1:
|
|
2447
2447
|
_a.sent();
|
|
2448
|
-
return [2
|
|
2448
|
+
return [2, Promise.resolve(contents)];
|
|
2449
2449
|
}
|
|
2450
2450
|
});
|
|
2451
2451
|
}); };
|
|
@@ -2457,7 +2457,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2457
2457
|
case 0:
|
|
2458
2458
|
_a = [__assign({}, output)];
|
|
2459
2459
|
_b = {};
|
|
2460
|
-
return [4
|
|
2460
|
+
return [4, parseBody(output.body, context)];
|
|
2461
2461
|
case 1:
|
|
2462
2462
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2463
2463
|
errorCode = "UnknownError";
|
|
@@ -2471,7 +2471,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2471
2471
|
message = response.message || response.Message || errorCode;
|
|
2472
2472
|
response.message = message;
|
|
2473
2473
|
delete response.Message;
|
|
2474
|
-
return [2
|
|
2474
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2475
2475
|
}
|
|
2476
2476
|
});
|
|
2477
2477
|
}); };
|
|
@@ -2481,7 +2481,7 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
|
|
|
2481
2481
|
switch (_c.label) {
|
|
2482
2482
|
case 0:
|
|
2483
2483
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2484
|
-
return [2
|
|
2484
|
+
return [2, deserializeAws_restJson1UpdateChannelCommandError(output, context)];
|
|
2485
2485
|
}
|
|
2486
2486
|
contents = {
|
|
2487
2487
|
$metadata: deserializeMetadata(output),
|
|
@@ -2495,7 +2495,7 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
|
|
|
2495
2495
|
};
|
|
2496
2496
|
_a = __expectNonNull;
|
|
2497
2497
|
_b = __expectObject;
|
|
2498
|
-
return [4
|
|
2498
|
+
return [4, parseBody(output.body, context)];
|
|
2499
2499
|
case 1:
|
|
2500
2500
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2501
2501
|
if (data.arn !== undefined && data.arn !== null) {
|
|
@@ -2519,7 +2519,7 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
|
|
|
2519
2519
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2520
2520
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
2521
2521
|
}
|
|
2522
|
-
return [2
|
|
2522
|
+
return [2, Promise.resolve(contents)];
|
|
2523
2523
|
}
|
|
2524
2524
|
});
|
|
2525
2525
|
}); };
|
|
@@ -2531,63 +2531,63 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
|
|
|
2531
2531
|
case 0:
|
|
2532
2532
|
_a = [__assign({}, output)];
|
|
2533
2533
|
_j = {};
|
|
2534
|
-
return [4
|
|
2534
|
+
return [4, parseBody(output.body, context)];
|
|
2535
2535
|
case 1:
|
|
2536
2536
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2537
2537
|
errorCode = "UnknownError";
|
|
2538
2538
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2539
2539
|
_b = errorCode;
|
|
2540
2540
|
switch (_b) {
|
|
2541
|
-
case "ForbiddenException": return [3
|
|
2542
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
2543
|
-
case "InternalServerErrorException": return [3
|
|
2544
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
2545
|
-
case "NotFoundException": return [3
|
|
2546
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
2547
|
-
case "ServiceUnavailableException": return [3
|
|
2548
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
2549
|
-
case "TooManyRequestsException": return [3
|
|
2550
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
2551
|
-
case "UnprocessableEntityException": return [3
|
|
2552
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
2553
|
-
}
|
|
2554
|
-
return [3
|
|
2541
|
+
case "ForbiddenException": return [3, 2];
|
|
2542
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
2543
|
+
case "InternalServerErrorException": return [3, 4];
|
|
2544
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
2545
|
+
case "NotFoundException": return [3, 6];
|
|
2546
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
2547
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
2548
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
2549
|
+
case "TooManyRequestsException": return [3, 10];
|
|
2550
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
2551
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
2552
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
2553
|
+
}
|
|
2554
|
+
return [3, 14];
|
|
2555
2555
|
case 2:
|
|
2556
2556
|
_c = [{}];
|
|
2557
|
-
return [4
|
|
2557
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2558
2558
|
case 3:
|
|
2559
2559
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2560
|
-
return [3
|
|
2560
|
+
return [3, 15];
|
|
2561
2561
|
case 4:
|
|
2562
2562
|
_d = [{}];
|
|
2563
|
-
return [4
|
|
2563
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2564
2564
|
case 5:
|
|
2565
2565
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2566
|
-
return [3
|
|
2566
|
+
return [3, 15];
|
|
2567
2567
|
case 6:
|
|
2568
2568
|
_e = [{}];
|
|
2569
|
-
return [4
|
|
2569
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2570
2570
|
case 7:
|
|
2571
2571
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2572
|
-
return [3
|
|
2572
|
+
return [3, 15];
|
|
2573
2573
|
case 8:
|
|
2574
2574
|
_f = [{}];
|
|
2575
|
-
return [4
|
|
2575
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2576
2576
|
case 9:
|
|
2577
2577
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2578
|
-
return [3
|
|
2578
|
+
return [3, 15];
|
|
2579
2579
|
case 10:
|
|
2580
2580
|
_g = [{}];
|
|
2581
|
-
return [4
|
|
2581
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2582
2582
|
case 11:
|
|
2583
2583
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2584
|
-
return [3
|
|
2584
|
+
return [3, 15];
|
|
2585
2585
|
case 12:
|
|
2586
2586
|
_h = [{}];
|
|
2587
|
-
return [4
|
|
2587
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
2588
2588
|
case 13:
|
|
2589
2589
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2590
|
-
return [3
|
|
2590
|
+
return [3, 15];
|
|
2591
2591
|
case 14:
|
|
2592
2592
|
parsedBody = parsedOutput.body;
|
|
2593
2593
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2597,7 +2597,7 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
|
|
|
2597
2597
|
message = response.message || response.Message || errorCode;
|
|
2598
2598
|
response.message = message;
|
|
2599
2599
|
delete response.Message;
|
|
2600
|
-
return [2
|
|
2600
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2601
2601
|
}
|
|
2602
2602
|
});
|
|
2603
2603
|
}); };
|
|
@@ -2607,7 +2607,7 @@ export var deserializeAws_restJson1UpdateOriginEndpointCommand = function (outpu
|
|
|
2607
2607
|
switch (_c.label) {
|
|
2608
2608
|
case 0:
|
|
2609
2609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2610
|
-
return [2
|
|
2610
|
+
return [2, deserializeAws_restJson1UpdateOriginEndpointCommandError(output, context)];
|
|
2611
2611
|
}
|
|
2612
2612
|
contents = {
|
|
2613
2613
|
$metadata: deserializeMetadata(output),
|
|
@@ -2630,7 +2630,7 @@ export var deserializeAws_restJson1UpdateOriginEndpointCommand = function (outpu
|
|
|
2630
2630
|
};
|
|
2631
2631
|
_a = __expectNonNull;
|
|
2632
2632
|
_b = __expectObject;
|
|
2633
|
-
return [4
|
|
2633
|
+
return [4, parseBody(output.body, context)];
|
|
2634
2634
|
case 1:
|
|
2635
2635
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2636
2636
|
if (data.arn !== undefined && data.arn !== null) {
|
|
@@ -2681,7 +2681,7 @@ export var deserializeAws_restJson1UpdateOriginEndpointCommand = function (outpu
|
|
|
2681
2681
|
if (data.whitelist !== undefined && data.whitelist !== null) {
|
|
2682
2682
|
contents.Whitelist = deserializeAws_restJson1__listOf__string(data.whitelist, context);
|
|
2683
2683
|
}
|
|
2684
|
-
return [2
|
|
2684
|
+
return [2, Promise.resolve(contents)];
|
|
2685
2685
|
}
|
|
2686
2686
|
});
|
|
2687
2687
|
}); };
|
|
@@ -2693,63 +2693,63 @@ var deserializeAws_restJson1UpdateOriginEndpointCommandError = function (output,
|
|
|
2693
2693
|
case 0:
|
|
2694
2694
|
_a = [__assign({}, output)];
|
|
2695
2695
|
_j = {};
|
|
2696
|
-
return [4
|
|
2696
|
+
return [4, parseBody(output.body, context)];
|
|
2697
2697
|
case 1:
|
|
2698
2698
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2699
2699
|
errorCode = "UnknownError";
|
|
2700
2700
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2701
2701
|
_b = errorCode;
|
|
2702
2702
|
switch (_b) {
|
|
2703
|
-
case "ForbiddenException": return [3
|
|
2704
|
-
case "com.amazonaws.mediapackage#ForbiddenException": return [3
|
|
2705
|
-
case "InternalServerErrorException": return [3
|
|
2706
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3
|
|
2707
|
-
case "NotFoundException": return [3
|
|
2708
|
-
case "com.amazonaws.mediapackage#NotFoundException": return [3
|
|
2709
|
-
case "ServiceUnavailableException": return [3
|
|
2710
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3
|
|
2711
|
-
case "TooManyRequestsException": return [3
|
|
2712
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3
|
|
2713
|
-
case "UnprocessableEntityException": return [3
|
|
2714
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3
|
|
2715
|
-
}
|
|
2716
|
-
return [3
|
|
2703
|
+
case "ForbiddenException": return [3, 2];
|
|
2704
|
+
case "com.amazonaws.mediapackage#ForbiddenException": return [3, 2];
|
|
2705
|
+
case "InternalServerErrorException": return [3, 4];
|
|
2706
|
+
case "com.amazonaws.mediapackage#InternalServerErrorException": return [3, 4];
|
|
2707
|
+
case "NotFoundException": return [3, 6];
|
|
2708
|
+
case "com.amazonaws.mediapackage#NotFoundException": return [3, 6];
|
|
2709
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
2710
|
+
case "com.amazonaws.mediapackage#ServiceUnavailableException": return [3, 8];
|
|
2711
|
+
case "TooManyRequestsException": return [3, 10];
|
|
2712
|
+
case "com.amazonaws.mediapackage#TooManyRequestsException": return [3, 10];
|
|
2713
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
2714
|
+
case "com.amazonaws.mediapackage#UnprocessableEntityException": return [3, 12];
|
|
2715
|
+
}
|
|
2716
|
+
return [3, 14];
|
|
2717
2717
|
case 2:
|
|
2718
2718
|
_c = [{}];
|
|
2719
|
-
return [4
|
|
2719
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2720
2720
|
case 3:
|
|
2721
2721
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2722
|
-
return [3
|
|
2722
|
+
return [3, 15];
|
|
2723
2723
|
case 4:
|
|
2724
2724
|
_d = [{}];
|
|
2725
|
-
return [4
|
|
2725
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2726
2726
|
case 5:
|
|
2727
2727
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2728
|
-
return [3
|
|
2728
|
+
return [3, 15];
|
|
2729
2729
|
case 6:
|
|
2730
2730
|
_e = [{}];
|
|
2731
|
-
return [4
|
|
2731
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2732
2732
|
case 7:
|
|
2733
2733
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2734
|
-
return [3
|
|
2734
|
+
return [3, 15];
|
|
2735
2735
|
case 8:
|
|
2736
2736
|
_f = [{}];
|
|
2737
|
-
return [4
|
|
2737
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2738
2738
|
case 9:
|
|
2739
2739
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2740
|
-
return [3
|
|
2740
|
+
return [3, 15];
|
|
2741
2741
|
case 10:
|
|
2742
2742
|
_g = [{}];
|
|
2743
|
-
return [4
|
|
2743
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2744
2744
|
case 11:
|
|
2745
2745
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2746
|
-
return [3
|
|
2746
|
+
return [3, 15];
|
|
2747
2747
|
case 12:
|
|
2748
2748
|
_h = [{}];
|
|
2749
|
-
return [4
|
|
2749
|
+
return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
2750
2750
|
case 13:
|
|
2751
2751
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2752
|
-
return [3
|
|
2752
|
+
return [3, 15];
|
|
2753
2753
|
case 14:
|
|
2754
2754
|
parsedBody = parsedOutput.body;
|
|
2755
2755
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2759,7 +2759,7 @@ var deserializeAws_restJson1UpdateOriginEndpointCommandError = function (output,
|
|
|
2759
2759
|
message = response.message || response.Message || errorCode;
|
|
2760
2760
|
response.message = message;
|
|
2761
2761
|
delete response.Message;
|
|
2762
|
-
return [2
|
|
2762
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2763
2763
|
}
|
|
2764
2764
|
});
|
|
2765
2765
|
}); };
|
|
@@ -2776,7 +2776,7 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
2776
2776
|
if (data.message !== undefined && data.message !== null) {
|
|
2777
2777
|
contents.Message = __expectString(data.message);
|
|
2778
2778
|
}
|
|
2779
|
-
return [2
|
|
2779
|
+
return [2, contents];
|
|
2780
2780
|
});
|
|
2781
2781
|
}); };
|
|
2782
2782
|
var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2792,7 +2792,7 @@ var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (par
|
|
|
2792
2792
|
if (data.message !== undefined && data.message !== null) {
|
|
2793
2793
|
contents.Message = __expectString(data.message);
|
|
2794
2794
|
}
|
|
2795
|
-
return [2
|
|
2795
|
+
return [2, contents];
|
|
2796
2796
|
});
|
|
2797
2797
|
}); };
|
|
2798
2798
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2808,7 +2808,7 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
2808
2808
|
if (data.message !== undefined && data.message !== null) {
|
|
2809
2809
|
contents.Message = __expectString(data.message);
|
|
2810
2810
|
}
|
|
2811
|
-
return [2
|
|
2811
|
+
return [2, contents];
|
|
2812
2812
|
});
|
|
2813
2813
|
}); };
|
|
2814
2814
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2824,7 +2824,7 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
2824
2824
|
if (data.message !== undefined && data.message !== null) {
|
|
2825
2825
|
contents.Message = __expectString(data.message);
|
|
2826
2826
|
}
|
|
2827
|
-
return [2
|
|
2827
|
+
return [2, contents];
|
|
2828
2828
|
});
|
|
2829
2829
|
}); };
|
|
2830
2830
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2840,7 +2840,7 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
2840
2840
|
if (data.message !== undefined && data.message !== null) {
|
|
2841
2841
|
contents.Message = __expectString(data.message);
|
|
2842
2842
|
}
|
|
2843
|
-
return [2
|
|
2843
|
+
return [2, contents];
|
|
2844
2844
|
});
|
|
2845
2845
|
}); };
|
|
2846
2846
|
var deserializeAws_restJson1UnprocessableEntityExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2856,7 +2856,7 @@ var deserializeAws_restJson1UnprocessableEntityExceptionResponse = function (par
|
|
|
2856
2856
|
if (data.message !== undefined && data.message !== null) {
|
|
2857
2857
|
contents.Message = __expectString(data.message);
|
|
2858
2858
|
}
|
|
2859
|
-
return [2
|
|
2859
|
+
return [2, contents];
|
|
2860
2860
|
});
|
|
2861
2861
|
}); };
|
|
2862
2862
|
var serializeAws_restJson1__listOf__PeriodTriggersElement = function (input, context) {
|
|
@@ -3416,7 +3416,6 @@ var deserializeMetadata = function (output) {
|
|
|
3416
3416
|
cfId: output.headers["x-amz-cf-id"],
|
|
3417
3417
|
});
|
|
3418
3418
|
};
|
|
3419
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3420
3419
|
var collectBody = function (streamBody, context) {
|
|
3421
3420
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
3422
3421
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3424,7 +3423,6 @@ var collectBody = function (streamBody, context) {
|
|
|
3424
3423
|
}
|
|
3425
3424
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3426
3425
|
};
|
|
3427
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3428
3426
|
var collectBodyString = function (streamBody, context) {
|
|
3429
3427
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
3430
3428
|
};
|
|
@@ -3443,9 +3441,6 @@ var parseBody = function (streamBody, context) {
|
|
|
3443
3441
|
return {};
|
|
3444
3442
|
});
|
|
3445
3443
|
};
|
|
3446
|
-
/**
|
|
3447
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3448
|
-
*/
|
|
3449
3444
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3450
3445
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3451
3446
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -3470,4 +3465,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
3470
3465
|
}
|
|
3471
3466
|
return "";
|
|
3472
3467
|
};
|
|
3473
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|