@aws-sdk/client-mediapackage-vod 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/MediaPackageVod.js +77 -70
- package/dist-es/MediaPackageVodClient.js +28 -22
- package/dist-es/commands/ConfigureLogsCommand.js +28 -21
- package/dist-es/commands/CreateAssetCommand.js +28 -21
- package/dist-es/commands/CreatePackagingConfigurationCommand.js +28 -21
- package/dist-es/commands/CreatePackagingGroupCommand.js +28 -21
- package/dist-es/commands/DeleteAssetCommand.js +28 -21
- package/dist-es/commands/DeletePackagingConfigurationCommand.js +28 -21
- package/dist-es/commands/DeletePackagingGroupCommand.js +28 -21
- package/dist-es/commands/DescribeAssetCommand.js +28 -21
- package/dist-es/commands/DescribePackagingConfigurationCommand.js +28 -21
- package/dist-es/commands/DescribePackagingGroupCommand.js +28 -21
- package/dist-es/commands/ListAssetsCommand.js +28 -21
- package/dist-es/commands/ListPackagingConfigurationsCommand.js +28 -21
- package/dist-es/commands/ListPackagingGroupsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +29 -22
- package/dist-es/commands/UntagResourceCommand.js +29 -22
- package/dist-es/commands/UpdatePackagingGroupCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MediaPackageVodServiceException.js +10 -5
- package/dist-es/models/models_0.js +124 -225
- package/dist-es/pagination/ListAssetsPaginator.js +68 -25
- package/dist-es/pagination/ListPackagingConfigurationsPaginator.js +68 -25
- package/dist-es/pagination/ListPackagingGroupsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +1997 -1530
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,1519 +1,1970 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
3
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { MediaPackageVodServiceException as __BaseException } from "../models/MediaPackageVodServiceException";
|
|
4
5
|
import { ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, UnprocessableEntityException, } from "../models/models_0";
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
6
|
+
export var serializeAws_restJson1ConfigureLogsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
8
|
+
return __generator(this, function (_c) {
|
|
9
|
+
switch (_c.label) {
|
|
10
|
+
case 0: return [4, context.endpoint()];
|
|
11
|
+
case 1:
|
|
12
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
|
+
headers = {
|
|
14
|
+
"content-type": "application/json",
|
|
15
|
+
};
|
|
16
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_groups/{Id}/configure_logs";
|
|
17
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
18
|
+
body = JSON.stringify(__assign({}, (input.EgressAccessLogs != null && {
|
|
19
|
+
egressAccessLogs: serializeAws_restJson1EgressAccessLogs(input.EgressAccessLogs, context),
|
|
20
|
+
})));
|
|
21
|
+
return [2, new __HttpRequest({
|
|
22
|
+
protocol: protocol,
|
|
23
|
+
hostname: hostname,
|
|
24
|
+
port: port,
|
|
25
|
+
method: "PUT",
|
|
26
|
+
headers: headers,
|
|
27
|
+
path: resolvedPath,
|
|
28
|
+
body: body,
|
|
29
|
+
})];
|
|
30
|
+
}
|
|
26
31
|
});
|
|
27
|
-
};
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
body,
|
|
32
|
+
}); };
|
|
33
|
+
export var serializeAws_restJson1CreateAssetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
34
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
35
|
+
return __generator(this, function (_c) {
|
|
36
|
+
switch (_c.label) {
|
|
37
|
+
case 0: return [4, context.endpoint()];
|
|
38
|
+
case 1:
|
|
39
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
40
|
+
headers = {
|
|
41
|
+
"content-type": "application/json",
|
|
42
|
+
};
|
|
43
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets";
|
|
44
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Id != null && { id: input.Id })), (input.PackagingGroupId != null && { packagingGroupId: input.PackagingGroupId })), (input.ResourceId != null && { resourceId: input.ResourceId })), (input.SourceArn != null && { sourceArn: input.SourceArn })), (input.SourceRoleArn != null && { sourceRoleArn: input.SourceRoleArn })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
45
|
+
return [2, new __HttpRequest({
|
|
46
|
+
protocol: protocol,
|
|
47
|
+
hostname: hostname,
|
|
48
|
+
port: port,
|
|
49
|
+
method: "POST",
|
|
50
|
+
headers: headers,
|
|
51
|
+
path: resolvedPath,
|
|
52
|
+
body: body,
|
|
53
|
+
})];
|
|
54
|
+
}
|
|
51
55
|
});
|
|
52
|
-
};
|
|
53
|
-
export
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
path: resolvedPath,
|
|
76
|
-
body,
|
|
56
|
+
}); };
|
|
57
|
+
export var serializeAws_restJson1CreatePackagingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
58
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
59
|
+
return __generator(this, function (_c) {
|
|
60
|
+
switch (_c.label) {
|
|
61
|
+
case 0: return [4, context.endpoint()];
|
|
62
|
+
case 1:
|
|
63
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
64
|
+
headers = {
|
|
65
|
+
"content-type": "application/json",
|
|
66
|
+
};
|
|
67
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_configurations";
|
|
68
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CmafPackage != null && { cmafPackage: serializeAws_restJson1CmafPackage(input.CmafPackage, context) })), (input.DashPackage != null && { dashPackage: serializeAws_restJson1DashPackage(input.DashPackage, context) })), (input.HlsPackage != null && { hlsPackage: serializeAws_restJson1HlsPackage(input.HlsPackage, context) })), (input.Id != null && { id: input.Id })), (input.MssPackage != null && { mssPackage: serializeAws_restJson1MssPackage(input.MssPackage, context) })), (input.PackagingGroupId != null && { packagingGroupId: input.PackagingGroupId })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
69
|
+
return [2, new __HttpRequest({
|
|
70
|
+
protocol: protocol,
|
|
71
|
+
hostname: hostname,
|
|
72
|
+
port: port,
|
|
73
|
+
method: "POST",
|
|
74
|
+
headers: headers,
|
|
75
|
+
path: resolvedPath,
|
|
76
|
+
body: body,
|
|
77
|
+
})];
|
|
78
|
+
}
|
|
77
79
|
});
|
|
78
|
-
};
|
|
79
|
-
export
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
80
|
+
}); };
|
|
81
|
+
export var serializeAws_restJson1CreatePackagingGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
82
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
83
|
+
return __generator(this, function (_c) {
|
|
84
|
+
switch (_c.label) {
|
|
85
|
+
case 0: return [4, context.endpoint()];
|
|
86
|
+
case 1:
|
|
87
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
88
|
+
headers = {
|
|
89
|
+
"content-type": "application/json",
|
|
90
|
+
};
|
|
91
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_groups";
|
|
92
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Authorization != null && {
|
|
93
|
+
authorization: serializeAws_restJson1Authorization(input.Authorization, context),
|
|
94
|
+
})), (input.EgressAccessLogs != null && {
|
|
95
|
+
egressAccessLogs: serializeAws_restJson1EgressAccessLogs(input.EgressAccessLogs, context),
|
|
96
|
+
})), (input.Id != null && { id: input.Id })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
97
|
+
return [2, new __HttpRequest({
|
|
98
|
+
protocol: protocol,
|
|
99
|
+
hostname: hostname,
|
|
100
|
+
port: port,
|
|
101
|
+
method: "POST",
|
|
102
|
+
headers: headers,
|
|
103
|
+
path: resolvedPath,
|
|
104
|
+
body: body,
|
|
105
|
+
})];
|
|
106
|
+
}
|
|
104
107
|
});
|
|
105
|
-
};
|
|
106
|
-
export
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
108
|
+
}); };
|
|
109
|
+
export var serializeAws_restJson1DeleteAssetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
110
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
111
|
+
return __generator(this, function (_c) {
|
|
112
|
+
switch (_c.label) {
|
|
113
|
+
case 0: return [4, context.endpoint()];
|
|
114
|
+
case 1:
|
|
115
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
116
|
+
headers = {};
|
|
117
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{Id}";
|
|
118
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
119
|
+
return [2, new __HttpRequest({
|
|
120
|
+
protocol: protocol,
|
|
121
|
+
hostname: hostname,
|
|
122
|
+
port: port,
|
|
123
|
+
method: "DELETE",
|
|
124
|
+
headers: headers,
|
|
125
|
+
path: resolvedPath,
|
|
126
|
+
body: body,
|
|
127
|
+
})];
|
|
128
|
+
}
|
|
120
129
|
});
|
|
121
|
-
};
|
|
122
|
-
export
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
130
|
+
}); };
|
|
131
|
+
export var serializeAws_restJson1DeletePackagingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
132
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
133
|
+
return __generator(this, function (_c) {
|
|
134
|
+
switch (_c.label) {
|
|
135
|
+
case 0: return [4, context.endpoint()];
|
|
136
|
+
case 1:
|
|
137
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
138
|
+
headers = {};
|
|
139
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_configurations/{Id}";
|
|
140
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
141
|
+
return [2, new __HttpRequest({
|
|
142
|
+
protocol: protocol,
|
|
143
|
+
hostname: hostname,
|
|
144
|
+
port: port,
|
|
145
|
+
method: "DELETE",
|
|
146
|
+
headers: headers,
|
|
147
|
+
path: resolvedPath,
|
|
148
|
+
body: body,
|
|
149
|
+
})];
|
|
150
|
+
}
|
|
136
151
|
});
|
|
137
|
-
};
|
|
138
|
-
export
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
+
}); };
|
|
153
|
+
export var serializeAws_restJson1DeletePackagingGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
154
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
155
|
+
return __generator(this, function (_c) {
|
|
156
|
+
switch (_c.label) {
|
|
157
|
+
case 0: return [4, context.endpoint()];
|
|
158
|
+
case 1:
|
|
159
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
160
|
+
headers = {};
|
|
161
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_groups/{Id}";
|
|
162
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
163
|
+
return [2, new __HttpRequest({
|
|
164
|
+
protocol: protocol,
|
|
165
|
+
hostname: hostname,
|
|
166
|
+
port: port,
|
|
167
|
+
method: "DELETE",
|
|
168
|
+
headers: headers,
|
|
169
|
+
path: resolvedPath,
|
|
170
|
+
body: body,
|
|
171
|
+
})];
|
|
172
|
+
}
|
|
152
173
|
});
|
|
153
|
-
};
|
|
154
|
-
export
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
174
|
+
}); };
|
|
175
|
+
export var serializeAws_restJson1DescribeAssetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
176
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
177
|
+
return __generator(this, function (_c) {
|
|
178
|
+
switch (_c.label) {
|
|
179
|
+
case 0: return [4, context.endpoint()];
|
|
180
|
+
case 1:
|
|
181
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
182
|
+
headers = {};
|
|
183
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{Id}";
|
|
184
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
185
|
+
return [2, new __HttpRequest({
|
|
186
|
+
protocol: protocol,
|
|
187
|
+
hostname: hostname,
|
|
188
|
+
port: port,
|
|
189
|
+
method: "GET",
|
|
190
|
+
headers: headers,
|
|
191
|
+
path: resolvedPath,
|
|
192
|
+
body: body,
|
|
193
|
+
})];
|
|
194
|
+
}
|
|
168
195
|
});
|
|
169
|
-
};
|
|
170
|
-
export
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
196
|
+
}); };
|
|
197
|
+
export var serializeAws_restJson1DescribePackagingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
198
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
199
|
+
return __generator(this, function (_c) {
|
|
200
|
+
switch (_c.label) {
|
|
201
|
+
case 0: return [4, context.endpoint()];
|
|
202
|
+
case 1:
|
|
203
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
204
|
+
headers = {};
|
|
205
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_configurations/{Id}";
|
|
206
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
207
|
+
return [2, new __HttpRequest({
|
|
208
|
+
protocol: protocol,
|
|
209
|
+
hostname: hostname,
|
|
210
|
+
port: port,
|
|
211
|
+
method: "GET",
|
|
212
|
+
headers: headers,
|
|
213
|
+
path: resolvedPath,
|
|
214
|
+
body: body,
|
|
215
|
+
})];
|
|
216
|
+
}
|
|
184
217
|
});
|
|
185
|
-
};
|
|
186
|
-
export
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
218
|
+
}); };
|
|
219
|
+
export var serializeAws_restJson1DescribePackagingGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
220
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
221
|
+
return __generator(this, function (_c) {
|
|
222
|
+
switch (_c.label) {
|
|
223
|
+
case 0: return [4, context.endpoint()];
|
|
224
|
+
case 1:
|
|
225
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
226
|
+
headers = {};
|
|
227
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_groups/{Id}";
|
|
228
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
229
|
+
return [2, new __HttpRequest({
|
|
230
|
+
protocol: protocol,
|
|
231
|
+
hostname: hostname,
|
|
232
|
+
port: port,
|
|
233
|
+
method: "GET",
|
|
234
|
+
headers: headers,
|
|
235
|
+
path: resolvedPath,
|
|
236
|
+
body: body,
|
|
237
|
+
})];
|
|
238
|
+
}
|
|
200
239
|
});
|
|
201
|
-
};
|
|
202
|
-
export
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
240
|
+
}); };
|
|
241
|
+
export var serializeAws_restJson1ListAssetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
242
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
243
|
+
return __generator(this, function (_c) {
|
|
244
|
+
switch (_c.label) {
|
|
245
|
+
case 0: return [4, context.endpoint()];
|
|
246
|
+
case 1:
|
|
247
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
248
|
+
headers = {};
|
|
249
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets";
|
|
250
|
+
query = map({
|
|
251
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
252
|
+
nextToken: [, input.NextToken],
|
|
253
|
+
packagingGroupId: [, input.PackagingGroupId],
|
|
254
|
+
});
|
|
255
|
+
return [2, new __HttpRequest({
|
|
256
|
+
protocol: protocol,
|
|
257
|
+
hostname: hostname,
|
|
258
|
+
port: port,
|
|
259
|
+
method: "GET",
|
|
260
|
+
headers: headers,
|
|
261
|
+
path: resolvedPath,
|
|
262
|
+
query: query,
|
|
263
|
+
body: body,
|
|
264
|
+
})];
|
|
265
|
+
}
|
|
221
266
|
});
|
|
222
|
-
};
|
|
223
|
-
export
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
267
|
+
}); };
|
|
268
|
+
export var serializeAws_restJson1ListPackagingConfigurationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
269
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
270
|
+
return __generator(this, function (_c) {
|
|
271
|
+
switch (_c.label) {
|
|
272
|
+
case 0: return [4, context.endpoint()];
|
|
273
|
+
case 1:
|
|
274
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
275
|
+
headers = {};
|
|
276
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_configurations";
|
|
277
|
+
query = map({
|
|
278
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
279
|
+
nextToken: [, input.NextToken],
|
|
280
|
+
packagingGroupId: [, input.PackagingGroupId],
|
|
281
|
+
});
|
|
282
|
+
return [2, new __HttpRequest({
|
|
283
|
+
protocol: protocol,
|
|
284
|
+
hostname: hostname,
|
|
285
|
+
port: port,
|
|
286
|
+
method: "GET",
|
|
287
|
+
headers: headers,
|
|
288
|
+
path: resolvedPath,
|
|
289
|
+
query: query,
|
|
290
|
+
body: body,
|
|
291
|
+
})];
|
|
292
|
+
}
|
|
242
293
|
});
|
|
243
|
-
};
|
|
244
|
-
export
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
294
|
+
}); };
|
|
295
|
+
export var serializeAws_restJson1ListPackagingGroupsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
296
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
297
|
+
return __generator(this, function (_c) {
|
|
298
|
+
switch (_c.label) {
|
|
299
|
+
case 0: return [4, context.endpoint()];
|
|
300
|
+
case 1:
|
|
301
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
302
|
+
headers = {};
|
|
303
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_groups";
|
|
304
|
+
query = map({
|
|
305
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
306
|
+
nextToken: [, input.NextToken],
|
|
307
|
+
});
|
|
308
|
+
return [2, new __HttpRequest({
|
|
309
|
+
protocol: protocol,
|
|
310
|
+
hostname: hostname,
|
|
311
|
+
port: port,
|
|
312
|
+
method: "GET",
|
|
313
|
+
headers: headers,
|
|
314
|
+
path: resolvedPath,
|
|
315
|
+
query: query,
|
|
316
|
+
body: body,
|
|
317
|
+
})];
|
|
318
|
+
}
|
|
262
319
|
});
|
|
263
|
-
};
|
|
264
|
-
export
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
320
|
+
}); };
|
|
321
|
+
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
322
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
323
|
+
return __generator(this, function (_c) {
|
|
324
|
+
switch (_c.label) {
|
|
325
|
+
case 0: return [4, context.endpoint()];
|
|
326
|
+
case 1:
|
|
327
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
328
|
+
headers = {};
|
|
329
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
330
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
331
|
+
return [2, new __HttpRequest({
|
|
332
|
+
protocol: protocol,
|
|
333
|
+
hostname: hostname,
|
|
334
|
+
port: port,
|
|
335
|
+
method: "GET",
|
|
336
|
+
headers: headers,
|
|
337
|
+
path: resolvedPath,
|
|
338
|
+
body: body,
|
|
339
|
+
})];
|
|
340
|
+
}
|
|
278
341
|
});
|
|
279
|
-
};
|
|
280
|
-
export
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
342
|
+
}); };
|
|
343
|
+
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
344
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
345
|
+
return __generator(this, function (_c) {
|
|
346
|
+
switch (_c.label) {
|
|
347
|
+
case 0: return [4, context.endpoint()];
|
|
348
|
+
case 1:
|
|
349
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
350
|
+
headers = {
|
|
351
|
+
"content-type": "application/json",
|
|
352
|
+
};
|
|
353
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
354
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
355
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
356
|
+
return [2, new __HttpRequest({
|
|
357
|
+
protocol: protocol,
|
|
358
|
+
hostname: hostname,
|
|
359
|
+
port: port,
|
|
360
|
+
method: "POST",
|
|
361
|
+
headers: headers,
|
|
362
|
+
path: resolvedPath,
|
|
363
|
+
body: body,
|
|
364
|
+
})];
|
|
365
|
+
}
|
|
299
366
|
});
|
|
300
|
-
};
|
|
301
|
-
export
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
367
|
+
}); };
|
|
368
|
+
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
369
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
370
|
+
return __generator(this, function (_c) {
|
|
371
|
+
switch (_c.label) {
|
|
372
|
+
case 0: return [4, context.endpoint()];
|
|
373
|
+
case 1:
|
|
374
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
375
|
+
headers = {};
|
|
376
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
377
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
378
|
+
query = map({
|
|
379
|
+
tagKeys: [function () { return input.TagKeys !== void 0; }, function () { return (input.TagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
380
|
+
});
|
|
381
|
+
return [2, new __HttpRequest({
|
|
382
|
+
protocol: protocol,
|
|
383
|
+
hostname: hostname,
|
|
384
|
+
port: port,
|
|
385
|
+
method: "DELETE",
|
|
386
|
+
headers: headers,
|
|
387
|
+
path: resolvedPath,
|
|
388
|
+
query: query,
|
|
389
|
+
body: body,
|
|
390
|
+
})];
|
|
391
|
+
}
|
|
319
392
|
});
|
|
320
|
-
};
|
|
321
|
-
export
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
393
|
+
}); };
|
|
394
|
+
export var serializeAws_restJson1UpdatePackagingGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
395
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
396
|
+
return __generator(this, function (_c) {
|
|
397
|
+
switch (_c.label) {
|
|
398
|
+
case 0: return [4, context.endpoint()];
|
|
399
|
+
case 1:
|
|
400
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
401
|
+
headers = {
|
|
402
|
+
"content-type": "application/json",
|
|
403
|
+
};
|
|
404
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_groups/{Id}";
|
|
405
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
406
|
+
body = JSON.stringify(__assign({}, (input.Authorization != null && {
|
|
407
|
+
authorization: serializeAws_restJson1Authorization(input.Authorization, context),
|
|
408
|
+
})));
|
|
409
|
+
return [2, new __HttpRequest({
|
|
410
|
+
protocol: protocol,
|
|
411
|
+
hostname: hostname,
|
|
412
|
+
port: port,
|
|
413
|
+
method: "PUT",
|
|
414
|
+
headers: headers,
|
|
415
|
+
path: resolvedPath,
|
|
416
|
+
body: body,
|
|
417
|
+
})];
|
|
418
|
+
}
|
|
342
419
|
});
|
|
343
|
-
};
|
|
344
|
-
export
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
420
|
+
}); };
|
|
421
|
+
export var deserializeAws_restJson1ConfigureLogsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
422
|
+
var contents, data, _a, _b;
|
|
423
|
+
return __generator(this, function (_c) {
|
|
424
|
+
switch (_c.label) {
|
|
425
|
+
case 0:
|
|
426
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
427
|
+
return [2, deserializeAws_restJson1ConfigureLogsCommandError(output, context)];
|
|
428
|
+
}
|
|
429
|
+
contents = map({
|
|
430
|
+
$metadata: deserializeMetadata(output),
|
|
431
|
+
});
|
|
432
|
+
_a = __expectNonNull;
|
|
433
|
+
_b = __expectObject;
|
|
434
|
+
return [4, parseBody(output.body, context)];
|
|
435
|
+
case 1:
|
|
436
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
437
|
+
if (data.arn != null) {
|
|
438
|
+
contents.Arn = __expectString(data.arn);
|
|
439
|
+
}
|
|
440
|
+
if (data.authorization != null) {
|
|
441
|
+
contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
|
|
442
|
+
}
|
|
443
|
+
if (data.domainName != null) {
|
|
444
|
+
contents.DomainName = __expectString(data.domainName);
|
|
445
|
+
}
|
|
446
|
+
if (data.egressAccessLogs != null) {
|
|
447
|
+
contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
|
|
448
|
+
}
|
|
449
|
+
if (data.id != null) {
|
|
450
|
+
contents.Id = __expectString(data.id);
|
|
451
|
+
}
|
|
452
|
+
if (data.tags != null) {
|
|
453
|
+
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
454
|
+
}
|
|
455
|
+
return [2, contents];
|
|
456
|
+
}
|
|
350
457
|
});
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
throw
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
throw
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
errorCode,
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
};
|
|
407
|
-
export const deserializeAws_restJson1CreateAssetCommand = async (output, context) => {
|
|
408
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
409
|
-
return deserializeAws_restJson1CreateAssetCommandError(output, context);
|
|
410
|
-
}
|
|
411
|
-
const contents = map({
|
|
412
|
-
$metadata: deserializeMetadata(output),
|
|
458
|
+
}); };
|
|
459
|
+
var deserializeAws_restJson1ConfigureLogsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
460
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
461
|
+
var _c;
|
|
462
|
+
return __generator(this, function (_d) {
|
|
463
|
+
switch (_d.label) {
|
|
464
|
+
case 0:
|
|
465
|
+
_a = [__assign({}, output)];
|
|
466
|
+
_c = {};
|
|
467
|
+
return [4, parseErrorBody(output.body, context)];
|
|
468
|
+
case 1:
|
|
469
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
470
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
471
|
+
_b = errorCode;
|
|
472
|
+
switch (_b) {
|
|
473
|
+
case "ForbiddenException": return [3, 2];
|
|
474
|
+
case "com.amazonaws.mediapackagevod#ForbiddenException": return [3, 2];
|
|
475
|
+
case "InternalServerErrorException": return [3, 4];
|
|
476
|
+
case "com.amazonaws.mediapackagevod#InternalServerErrorException": return [3, 4];
|
|
477
|
+
case "NotFoundException": return [3, 6];
|
|
478
|
+
case "com.amazonaws.mediapackagevod#NotFoundException": return [3, 6];
|
|
479
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
480
|
+
case "com.amazonaws.mediapackagevod#ServiceUnavailableException": return [3, 8];
|
|
481
|
+
case "TooManyRequestsException": return [3, 10];
|
|
482
|
+
case "com.amazonaws.mediapackagevod#TooManyRequestsException": return [3, 10];
|
|
483
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
484
|
+
case "com.amazonaws.mediapackagevod#UnprocessableEntityException": return [3, 12];
|
|
485
|
+
}
|
|
486
|
+
return [3, 14];
|
|
487
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
488
|
+
case 3: throw _d.sent();
|
|
489
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
490
|
+
case 5: throw _d.sent();
|
|
491
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
492
|
+
case 7: throw _d.sent();
|
|
493
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
494
|
+
case 9: throw _d.sent();
|
|
495
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
496
|
+
case 11: throw _d.sent();
|
|
497
|
+
case 12: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
498
|
+
case 13: throw _d.sent();
|
|
499
|
+
case 14:
|
|
500
|
+
parsedBody = parsedOutput.body;
|
|
501
|
+
throwDefaultError({
|
|
502
|
+
output: output,
|
|
503
|
+
parsedBody: parsedBody,
|
|
504
|
+
exceptionCtor: __BaseException,
|
|
505
|
+
errorCode: errorCode,
|
|
506
|
+
});
|
|
507
|
+
_d.label = 15;
|
|
508
|
+
case 15: return [2];
|
|
509
|
+
}
|
|
413
510
|
});
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
case "ServiceUnavailableException":
|
|
461
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
462
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
463
|
-
case "TooManyRequestsException":
|
|
464
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
465
|
-
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
466
|
-
case "UnprocessableEntityException":
|
|
467
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
468
|
-
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
469
|
-
default:
|
|
470
|
-
const parsedBody = parsedOutput.body;
|
|
471
|
-
throwDefaultError({
|
|
472
|
-
output,
|
|
473
|
-
parsedBody,
|
|
474
|
-
exceptionCtor: __BaseException,
|
|
475
|
-
errorCode,
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
|
-
export const deserializeAws_restJson1CreatePackagingConfigurationCommand = async (output, context) => {
|
|
480
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
481
|
-
return deserializeAws_restJson1CreatePackagingConfigurationCommandError(output, context);
|
|
482
|
-
}
|
|
483
|
-
const contents = map({
|
|
484
|
-
$metadata: deserializeMetadata(output),
|
|
511
|
+
}); };
|
|
512
|
+
export var deserializeAws_restJson1CreateAssetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
513
|
+
var contents, data, _a, _b;
|
|
514
|
+
return __generator(this, function (_c) {
|
|
515
|
+
switch (_c.label) {
|
|
516
|
+
case 0:
|
|
517
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
518
|
+
return [2, deserializeAws_restJson1CreateAssetCommandError(output, context)];
|
|
519
|
+
}
|
|
520
|
+
contents = map({
|
|
521
|
+
$metadata: deserializeMetadata(output),
|
|
522
|
+
});
|
|
523
|
+
_a = __expectNonNull;
|
|
524
|
+
_b = __expectObject;
|
|
525
|
+
return [4, parseBody(output.body, context)];
|
|
526
|
+
case 1:
|
|
527
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
528
|
+
if (data.arn != null) {
|
|
529
|
+
contents.Arn = __expectString(data.arn);
|
|
530
|
+
}
|
|
531
|
+
if (data.createdAt != null) {
|
|
532
|
+
contents.CreatedAt = __expectString(data.createdAt);
|
|
533
|
+
}
|
|
534
|
+
if (data.egressEndpoints != null) {
|
|
535
|
+
contents.EgressEndpoints = deserializeAws_restJson1__listOfEgressEndpoint(data.egressEndpoints, context);
|
|
536
|
+
}
|
|
537
|
+
if (data.id != null) {
|
|
538
|
+
contents.Id = __expectString(data.id);
|
|
539
|
+
}
|
|
540
|
+
if (data.packagingGroupId != null) {
|
|
541
|
+
contents.PackagingGroupId = __expectString(data.packagingGroupId);
|
|
542
|
+
}
|
|
543
|
+
if (data.resourceId != null) {
|
|
544
|
+
contents.ResourceId = __expectString(data.resourceId);
|
|
545
|
+
}
|
|
546
|
+
if (data.sourceArn != null) {
|
|
547
|
+
contents.SourceArn = __expectString(data.sourceArn);
|
|
548
|
+
}
|
|
549
|
+
if (data.sourceRoleArn != null) {
|
|
550
|
+
contents.SourceRoleArn = __expectString(data.sourceRoleArn);
|
|
551
|
+
}
|
|
552
|
+
if (data.tags != null) {
|
|
553
|
+
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
554
|
+
}
|
|
555
|
+
return [2, contents];
|
|
556
|
+
}
|
|
485
557
|
});
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
throw
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
default:
|
|
539
|
-
const parsedBody = parsedOutput.body;
|
|
540
|
-
throwDefaultError({
|
|
541
|
-
output,
|
|
542
|
-
parsedBody,
|
|
543
|
-
exceptionCtor: __BaseException,
|
|
544
|
-
errorCode,
|
|
545
|
-
});
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
|
-
export const deserializeAws_restJson1CreatePackagingGroupCommand = async (output, context) => {
|
|
549
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
550
|
-
return deserializeAws_restJson1CreatePackagingGroupCommandError(output, context);
|
|
551
|
-
}
|
|
552
|
-
const contents = map({
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
558
|
+
}); };
|
|
559
|
+
var deserializeAws_restJson1CreateAssetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
560
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
561
|
+
var _c;
|
|
562
|
+
return __generator(this, function (_d) {
|
|
563
|
+
switch (_d.label) {
|
|
564
|
+
case 0:
|
|
565
|
+
_a = [__assign({}, output)];
|
|
566
|
+
_c = {};
|
|
567
|
+
return [4, parseErrorBody(output.body, context)];
|
|
568
|
+
case 1:
|
|
569
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
570
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
571
|
+
_b = errorCode;
|
|
572
|
+
switch (_b) {
|
|
573
|
+
case "ForbiddenException": return [3, 2];
|
|
574
|
+
case "com.amazonaws.mediapackagevod#ForbiddenException": return [3, 2];
|
|
575
|
+
case "InternalServerErrorException": return [3, 4];
|
|
576
|
+
case "com.amazonaws.mediapackagevod#InternalServerErrorException": return [3, 4];
|
|
577
|
+
case "NotFoundException": return [3, 6];
|
|
578
|
+
case "com.amazonaws.mediapackagevod#NotFoundException": return [3, 6];
|
|
579
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
580
|
+
case "com.amazonaws.mediapackagevod#ServiceUnavailableException": return [3, 8];
|
|
581
|
+
case "TooManyRequestsException": return [3, 10];
|
|
582
|
+
case "com.amazonaws.mediapackagevod#TooManyRequestsException": return [3, 10];
|
|
583
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
584
|
+
case "com.amazonaws.mediapackagevod#UnprocessableEntityException": return [3, 12];
|
|
585
|
+
}
|
|
586
|
+
return [3, 14];
|
|
587
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
588
|
+
case 3: throw _d.sent();
|
|
589
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
590
|
+
case 5: throw _d.sent();
|
|
591
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
592
|
+
case 7: throw _d.sent();
|
|
593
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
594
|
+
case 9: throw _d.sent();
|
|
595
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
596
|
+
case 11: throw _d.sent();
|
|
597
|
+
case 12: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
598
|
+
case 13: throw _d.sent();
|
|
599
|
+
case 14:
|
|
600
|
+
parsedBody = parsedOutput.body;
|
|
601
|
+
throwDefaultError({
|
|
602
|
+
output: output,
|
|
603
|
+
parsedBody: parsedBody,
|
|
604
|
+
exceptionCtor: __BaseException,
|
|
605
|
+
errorCode: errorCode,
|
|
606
|
+
});
|
|
607
|
+
_d.label = 15;
|
|
608
|
+
case 15: return [2];
|
|
609
|
+
}
|
|
554
610
|
});
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
case "UnprocessableEntityException":
|
|
599
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
600
|
-
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
601
|
-
default:
|
|
602
|
-
const parsedBody = parsedOutput.body;
|
|
603
|
-
throwDefaultError({
|
|
604
|
-
output,
|
|
605
|
-
parsedBody,
|
|
606
|
-
exceptionCtor: __BaseException,
|
|
607
|
-
errorCode,
|
|
608
|
-
});
|
|
609
|
-
}
|
|
610
|
-
};
|
|
611
|
-
export const deserializeAws_restJson1DeleteAssetCommand = async (output, context) => {
|
|
612
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
613
|
-
return deserializeAws_restJson1DeleteAssetCommandError(output, context);
|
|
614
|
-
}
|
|
615
|
-
const contents = map({
|
|
616
|
-
$metadata: deserializeMetadata(output),
|
|
611
|
+
}); };
|
|
612
|
+
export var deserializeAws_restJson1CreatePackagingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
613
|
+
var contents, data, _a, _b;
|
|
614
|
+
return __generator(this, function (_c) {
|
|
615
|
+
switch (_c.label) {
|
|
616
|
+
case 0:
|
|
617
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
618
|
+
return [2, deserializeAws_restJson1CreatePackagingConfigurationCommandError(output, context)];
|
|
619
|
+
}
|
|
620
|
+
contents = map({
|
|
621
|
+
$metadata: deserializeMetadata(output),
|
|
622
|
+
});
|
|
623
|
+
_a = __expectNonNull;
|
|
624
|
+
_b = __expectObject;
|
|
625
|
+
return [4, parseBody(output.body, context)];
|
|
626
|
+
case 1:
|
|
627
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
628
|
+
if (data.arn != null) {
|
|
629
|
+
contents.Arn = __expectString(data.arn);
|
|
630
|
+
}
|
|
631
|
+
if (data.cmafPackage != null) {
|
|
632
|
+
contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
|
|
633
|
+
}
|
|
634
|
+
if (data.dashPackage != null) {
|
|
635
|
+
contents.DashPackage = deserializeAws_restJson1DashPackage(data.dashPackage, context);
|
|
636
|
+
}
|
|
637
|
+
if (data.hlsPackage != null) {
|
|
638
|
+
contents.HlsPackage = deserializeAws_restJson1HlsPackage(data.hlsPackage, context);
|
|
639
|
+
}
|
|
640
|
+
if (data.id != null) {
|
|
641
|
+
contents.Id = __expectString(data.id);
|
|
642
|
+
}
|
|
643
|
+
if (data.mssPackage != null) {
|
|
644
|
+
contents.MssPackage = deserializeAws_restJson1MssPackage(data.mssPackage, context);
|
|
645
|
+
}
|
|
646
|
+
if (data.packagingGroupId != null) {
|
|
647
|
+
contents.PackagingGroupId = __expectString(data.packagingGroupId);
|
|
648
|
+
}
|
|
649
|
+
if (data.tags != null) {
|
|
650
|
+
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
651
|
+
}
|
|
652
|
+
return [2, contents];
|
|
653
|
+
}
|
|
617
654
|
});
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
655
|
+
}); };
|
|
656
|
+
var deserializeAws_restJson1CreatePackagingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
657
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
658
|
+
var _c;
|
|
659
|
+
return __generator(this, function (_d) {
|
|
660
|
+
switch (_d.label) {
|
|
661
|
+
case 0:
|
|
662
|
+
_a = [__assign({}, output)];
|
|
663
|
+
_c = {};
|
|
664
|
+
return [4, parseErrorBody(output.body, context)];
|
|
665
|
+
case 1:
|
|
666
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
667
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
668
|
+
_b = errorCode;
|
|
669
|
+
switch (_b) {
|
|
670
|
+
case "ForbiddenException": return [3, 2];
|
|
671
|
+
case "com.amazonaws.mediapackagevod#ForbiddenException": return [3, 2];
|
|
672
|
+
case "InternalServerErrorException": return [3, 4];
|
|
673
|
+
case "com.amazonaws.mediapackagevod#InternalServerErrorException": return [3, 4];
|
|
674
|
+
case "NotFoundException": return [3, 6];
|
|
675
|
+
case "com.amazonaws.mediapackagevod#NotFoundException": return [3, 6];
|
|
676
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
677
|
+
case "com.amazonaws.mediapackagevod#ServiceUnavailableException": return [3, 8];
|
|
678
|
+
case "TooManyRequestsException": return [3, 10];
|
|
679
|
+
case "com.amazonaws.mediapackagevod#TooManyRequestsException": return [3, 10];
|
|
680
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
681
|
+
case "com.amazonaws.mediapackagevod#UnprocessableEntityException": return [3, 12];
|
|
682
|
+
}
|
|
683
|
+
return [3, 14];
|
|
684
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
685
|
+
case 3: throw _d.sent();
|
|
686
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
687
|
+
case 5: throw _d.sent();
|
|
688
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
689
|
+
case 7: throw _d.sent();
|
|
690
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
691
|
+
case 9: throw _d.sent();
|
|
692
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
693
|
+
case 11: throw _d.sent();
|
|
694
|
+
case 12: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
695
|
+
case 13: throw _d.sent();
|
|
696
|
+
case 14:
|
|
697
|
+
parsedBody = parsedOutput.body;
|
|
698
|
+
throwDefaultError({
|
|
699
|
+
output: output,
|
|
700
|
+
parsedBody: parsedBody,
|
|
701
|
+
exceptionCtor: __BaseException,
|
|
702
|
+
errorCode: errorCode,
|
|
703
|
+
});
|
|
704
|
+
_d.label = 15;
|
|
705
|
+
case 15: return [2];
|
|
706
|
+
}
|
|
662
707
|
});
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
};
|
|
701
|
-
export const deserializeAws_restJson1DeletePackagingGroupCommand = async (output, context) => {
|
|
702
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
703
|
-
return deserializeAws_restJson1DeletePackagingGroupCommandError(output, context);
|
|
704
|
-
}
|
|
705
|
-
const contents = map({
|
|
706
|
-
$metadata: deserializeMetadata(output),
|
|
708
|
+
}); };
|
|
709
|
+
export var deserializeAws_restJson1CreatePackagingGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
710
|
+
var contents, data, _a, _b;
|
|
711
|
+
return __generator(this, function (_c) {
|
|
712
|
+
switch (_c.label) {
|
|
713
|
+
case 0:
|
|
714
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
715
|
+
return [2, deserializeAws_restJson1CreatePackagingGroupCommandError(output, context)];
|
|
716
|
+
}
|
|
717
|
+
contents = map({
|
|
718
|
+
$metadata: deserializeMetadata(output),
|
|
719
|
+
});
|
|
720
|
+
_a = __expectNonNull;
|
|
721
|
+
_b = __expectObject;
|
|
722
|
+
return [4, parseBody(output.body, context)];
|
|
723
|
+
case 1:
|
|
724
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
725
|
+
if (data.arn != null) {
|
|
726
|
+
contents.Arn = __expectString(data.arn);
|
|
727
|
+
}
|
|
728
|
+
if (data.authorization != null) {
|
|
729
|
+
contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
|
|
730
|
+
}
|
|
731
|
+
if (data.domainName != null) {
|
|
732
|
+
contents.DomainName = __expectString(data.domainName);
|
|
733
|
+
}
|
|
734
|
+
if (data.egressAccessLogs != null) {
|
|
735
|
+
contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
|
|
736
|
+
}
|
|
737
|
+
if (data.id != null) {
|
|
738
|
+
contents.Id = __expectString(data.id);
|
|
739
|
+
}
|
|
740
|
+
if (data.tags != null) {
|
|
741
|
+
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
742
|
+
}
|
|
743
|
+
return [2, contents];
|
|
744
|
+
}
|
|
707
745
|
});
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
746
|
+
}); };
|
|
747
|
+
var deserializeAws_restJson1CreatePackagingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
748
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
749
|
+
var _c;
|
|
750
|
+
return __generator(this, function (_d) {
|
|
751
|
+
switch (_d.label) {
|
|
752
|
+
case 0:
|
|
753
|
+
_a = [__assign({}, output)];
|
|
754
|
+
_c = {};
|
|
755
|
+
return [4, parseErrorBody(output.body, context)];
|
|
756
|
+
case 1:
|
|
757
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
758
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
|
+
_b = errorCode;
|
|
760
|
+
switch (_b) {
|
|
761
|
+
case "ForbiddenException": return [3, 2];
|
|
762
|
+
case "com.amazonaws.mediapackagevod#ForbiddenException": return [3, 2];
|
|
763
|
+
case "InternalServerErrorException": return [3, 4];
|
|
764
|
+
case "com.amazonaws.mediapackagevod#InternalServerErrorException": return [3, 4];
|
|
765
|
+
case "NotFoundException": return [3, 6];
|
|
766
|
+
case "com.amazonaws.mediapackagevod#NotFoundException": return [3, 6];
|
|
767
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
768
|
+
case "com.amazonaws.mediapackagevod#ServiceUnavailableException": return [3, 8];
|
|
769
|
+
case "TooManyRequestsException": return [3, 10];
|
|
770
|
+
case "com.amazonaws.mediapackagevod#TooManyRequestsException": return [3, 10];
|
|
771
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
772
|
+
case "com.amazonaws.mediapackagevod#UnprocessableEntityException": return [3, 12];
|
|
773
|
+
}
|
|
774
|
+
return [3, 14];
|
|
775
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
776
|
+
case 3: throw _d.sent();
|
|
777
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
778
|
+
case 5: throw _d.sent();
|
|
779
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
780
|
+
case 7: throw _d.sent();
|
|
781
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
782
|
+
case 9: throw _d.sent();
|
|
783
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
784
|
+
case 11: throw _d.sent();
|
|
785
|
+
case 12: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
786
|
+
case 13: throw _d.sent();
|
|
787
|
+
case 14:
|
|
788
|
+
parsedBody = parsedOutput.body;
|
|
789
|
+
throwDefaultError({
|
|
790
|
+
output: output,
|
|
791
|
+
parsedBody: parsedBody,
|
|
792
|
+
exceptionCtor: __BaseException,
|
|
793
|
+
errorCode: errorCode,
|
|
794
|
+
});
|
|
795
|
+
_d.label = 15;
|
|
796
|
+
case 15: return [2];
|
|
797
|
+
}
|
|
752
798
|
});
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
contents.ResourceId = __expectString(data.resourceId);
|
|
771
|
-
}
|
|
772
|
-
if (data.sourceArn != null) {
|
|
773
|
-
contents.SourceArn = __expectString(data.sourceArn);
|
|
774
|
-
}
|
|
775
|
-
if (data.sourceRoleArn != null) {
|
|
776
|
-
contents.SourceRoleArn = __expectString(data.sourceRoleArn);
|
|
777
|
-
}
|
|
778
|
-
if (data.tags != null) {
|
|
779
|
-
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
780
|
-
}
|
|
781
|
-
return contents;
|
|
782
|
-
};
|
|
783
|
-
const deserializeAws_restJson1DescribeAssetCommandError = async (output, context) => {
|
|
784
|
-
const parsedOutput = {
|
|
785
|
-
...output,
|
|
786
|
-
body: await parseErrorBody(output.body, context),
|
|
787
|
-
};
|
|
788
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
|
-
switch (errorCode) {
|
|
790
|
-
case "ForbiddenException":
|
|
791
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
792
|
-
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
793
|
-
case "InternalServerErrorException":
|
|
794
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
795
|
-
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
796
|
-
case "NotFoundException":
|
|
797
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
798
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
799
|
-
case "ServiceUnavailableException":
|
|
800
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
801
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
802
|
-
case "TooManyRequestsException":
|
|
803
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
804
|
-
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
805
|
-
case "UnprocessableEntityException":
|
|
806
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
807
|
-
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
808
|
-
default:
|
|
809
|
-
const parsedBody = parsedOutput.body;
|
|
810
|
-
throwDefaultError({
|
|
811
|
-
output,
|
|
812
|
-
parsedBody,
|
|
813
|
-
exceptionCtor: __BaseException,
|
|
814
|
-
errorCode,
|
|
815
|
-
});
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
|
-
export const deserializeAws_restJson1DescribePackagingConfigurationCommand = async (output, context) => {
|
|
819
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
820
|
-
return deserializeAws_restJson1DescribePackagingConfigurationCommandError(output, context);
|
|
821
|
-
}
|
|
822
|
-
const contents = map({
|
|
823
|
-
$metadata: deserializeMetadata(output),
|
|
799
|
+
}); };
|
|
800
|
+
export var deserializeAws_restJson1DeleteAssetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
801
|
+
var contents;
|
|
802
|
+
return __generator(this, function (_a) {
|
|
803
|
+
switch (_a.label) {
|
|
804
|
+
case 0:
|
|
805
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
806
|
+
return [2, deserializeAws_restJson1DeleteAssetCommandError(output, context)];
|
|
807
|
+
}
|
|
808
|
+
contents = map({
|
|
809
|
+
$metadata: deserializeMetadata(output),
|
|
810
|
+
});
|
|
811
|
+
return [4, collectBody(output.body, context)];
|
|
812
|
+
case 1:
|
|
813
|
+
_a.sent();
|
|
814
|
+
return [2, contents];
|
|
815
|
+
}
|
|
824
816
|
});
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
throw
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
default:
|
|
878
|
-
const parsedBody = parsedOutput.body;
|
|
879
|
-
throwDefaultError({
|
|
880
|
-
output,
|
|
881
|
-
parsedBody,
|
|
882
|
-
exceptionCtor: __BaseException,
|
|
883
|
-
errorCode,
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
};
|
|
887
|
-
export const deserializeAws_restJson1DescribePackagingGroupCommand = async (output, context) => {
|
|
888
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
889
|
-
return deserializeAws_restJson1DescribePackagingGroupCommandError(output, context);
|
|
890
|
-
}
|
|
891
|
-
const contents = map({
|
|
892
|
-
$metadata: deserializeMetadata(output),
|
|
817
|
+
}); };
|
|
818
|
+
var deserializeAws_restJson1DeleteAssetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
819
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
820
|
+
var _c;
|
|
821
|
+
return __generator(this, function (_d) {
|
|
822
|
+
switch (_d.label) {
|
|
823
|
+
case 0:
|
|
824
|
+
_a = [__assign({}, output)];
|
|
825
|
+
_c = {};
|
|
826
|
+
return [4, parseErrorBody(output.body, context)];
|
|
827
|
+
case 1:
|
|
828
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
829
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
830
|
+
_b = errorCode;
|
|
831
|
+
switch (_b) {
|
|
832
|
+
case "ForbiddenException": return [3, 2];
|
|
833
|
+
case "com.amazonaws.mediapackagevod#ForbiddenException": return [3, 2];
|
|
834
|
+
case "InternalServerErrorException": return [3, 4];
|
|
835
|
+
case "com.amazonaws.mediapackagevod#InternalServerErrorException": return [3, 4];
|
|
836
|
+
case "NotFoundException": return [3, 6];
|
|
837
|
+
case "com.amazonaws.mediapackagevod#NotFoundException": return [3, 6];
|
|
838
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
839
|
+
case "com.amazonaws.mediapackagevod#ServiceUnavailableException": return [3, 8];
|
|
840
|
+
case "TooManyRequestsException": return [3, 10];
|
|
841
|
+
case "com.amazonaws.mediapackagevod#TooManyRequestsException": return [3, 10];
|
|
842
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
843
|
+
case "com.amazonaws.mediapackagevod#UnprocessableEntityException": return [3, 12];
|
|
844
|
+
}
|
|
845
|
+
return [3, 14];
|
|
846
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
847
|
+
case 3: throw _d.sent();
|
|
848
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
849
|
+
case 5: throw _d.sent();
|
|
850
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
851
|
+
case 7: throw _d.sent();
|
|
852
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
853
|
+
case 9: throw _d.sent();
|
|
854
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
855
|
+
case 11: throw _d.sent();
|
|
856
|
+
case 12: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
857
|
+
case 13: throw _d.sent();
|
|
858
|
+
case 14:
|
|
859
|
+
parsedBody = parsedOutput.body;
|
|
860
|
+
throwDefaultError({
|
|
861
|
+
output: output,
|
|
862
|
+
parsedBody: parsedBody,
|
|
863
|
+
exceptionCtor: __BaseException,
|
|
864
|
+
errorCode: errorCode,
|
|
865
|
+
});
|
|
866
|
+
_d.label = 15;
|
|
867
|
+
case 15: return [2];
|
|
868
|
+
}
|
|
893
869
|
});
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
912
|
-
}
|
|
913
|
-
return contents;
|
|
914
|
-
};
|
|
915
|
-
const deserializeAws_restJson1DescribePackagingGroupCommandError = async (output, context) => {
|
|
916
|
-
const parsedOutput = {
|
|
917
|
-
...output,
|
|
918
|
-
body: await parseErrorBody(output.body, context),
|
|
919
|
-
};
|
|
920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
|
-
switch (errorCode) {
|
|
922
|
-
case "ForbiddenException":
|
|
923
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
924
|
-
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
925
|
-
case "InternalServerErrorException":
|
|
926
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
927
|
-
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
928
|
-
case "NotFoundException":
|
|
929
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
930
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
931
|
-
case "ServiceUnavailableException":
|
|
932
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
933
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
934
|
-
case "TooManyRequestsException":
|
|
935
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
936
|
-
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
937
|
-
case "UnprocessableEntityException":
|
|
938
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
939
|
-
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
940
|
-
default:
|
|
941
|
-
const parsedBody = parsedOutput.body;
|
|
942
|
-
throwDefaultError({
|
|
943
|
-
output,
|
|
944
|
-
parsedBody,
|
|
945
|
-
exceptionCtor: __BaseException,
|
|
946
|
-
errorCode,
|
|
947
|
-
});
|
|
948
|
-
}
|
|
949
|
-
};
|
|
950
|
-
export const deserializeAws_restJson1ListAssetsCommand = async (output, context) => {
|
|
951
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
952
|
-
return deserializeAws_restJson1ListAssetsCommandError(output, context);
|
|
953
|
-
}
|
|
954
|
-
const contents = map({
|
|
955
|
-
$metadata: deserializeMetadata(output),
|
|
870
|
+
}); };
|
|
871
|
+
export var deserializeAws_restJson1DeletePackagingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
872
|
+
var contents;
|
|
873
|
+
return __generator(this, function (_a) {
|
|
874
|
+
switch (_a.label) {
|
|
875
|
+
case 0:
|
|
876
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
877
|
+
return [2, deserializeAws_restJson1DeletePackagingConfigurationCommandError(output, context)];
|
|
878
|
+
}
|
|
879
|
+
contents = map({
|
|
880
|
+
$metadata: deserializeMetadata(output),
|
|
881
|
+
});
|
|
882
|
+
return [4, collectBody(output.body, context)];
|
|
883
|
+
case 1:
|
|
884
|
+
_a.sent();
|
|
885
|
+
return [2, contents];
|
|
886
|
+
}
|
|
956
887
|
});
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
};
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
throw
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
888
|
+
}); };
|
|
889
|
+
var deserializeAws_restJson1DeletePackagingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
890
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
891
|
+
var _c;
|
|
892
|
+
return __generator(this, function (_d) {
|
|
893
|
+
switch (_d.label) {
|
|
894
|
+
case 0:
|
|
895
|
+
_a = [__assign({}, output)];
|
|
896
|
+
_c = {};
|
|
897
|
+
return [4, parseErrorBody(output.body, context)];
|
|
898
|
+
case 1:
|
|
899
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
900
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
901
|
+
_b = errorCode;
|
|
902
|
+
switch (_b) {
|
|
903
|
+
case "ForbiddenException": return [3, 2];
|
|
904
|
+
case "com.amazonaws.mediapackagevod#ForbiddenException": return [3, 2];
|
|
905
|
+
case "InternalServerErrorException": return [3, 4];
|
|
906
|
+
case "com.amazonaws.mediapackagevod#InternalServerErrorException": return [3, 4];
|
|
907
|
+
case "NotFoundException": return [3, 6];
|
|
908
|
+
case "com.amazonaws.mediapackagevod#NotFoundException": return [3, 6];
|
|
909
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
910
|
+
case "com.amazonaws.mediapackagevod#ServiceUnavailableException": return [3, 8];
|
|
911
|
+
case "TooManyRequestsException": return [3, 10];
|
|
912
|
+
case "com.amazonaws.mediapackagevod#TooManyRequestsException": return [3, 10];
|
|
913
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
914
|
+
case "com.amazonaws.mediapackagevod#UnprocessableEntityException": return [3, 12];
|
|
915
|
+
}
|
|
916
|
+
return [3, 14];
|
|
917
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
918
|
+
case 3: throw _d.sent();
|
|
919
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
920
|
+
case 5: throw _d.sent();
|
|
921
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
922
|
+
case 7: throw _d.sent();
|
|
923
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
924
|
+
case 9: throw _d.sent();
|
|
925
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
926
|
+
case 11: throw _d.sent();
|
|
927
|
+
case 12: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
928
|
+
case 13: throw _d.sent();
|
|
929
|
+
case 14:
|
|
930
|
+
parsedBody = parsedOutput.body;
|
|
931
|
+
throwDefaultError({
|
|
932
|
+
output: output,
|
|
933
|
+
parsedBody: parsedBody,
|
|
934
|
+
exceptionCtor: __BaseException,
|
|
935
|
+
errorCode: errorCode,
|
|
936
|
+
});
|
|
937
|
+
_d.label = 15;
|
|
938
|
+
case 15: return [2];
|
|
939
|
+
}
|
|
1007
940
|
});
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
1026
|
-
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1027
|
-
case "InternalServerErrorException":
|
|
1028
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
1029
|
-
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1030
|
-
case "NotFoundException":
|
|
1031
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
1032
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1033
|
-
case "ServiceUnavailableException":
|
|
1034
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
1035
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1036
|
-
case "TooManyRequestsException":
|
|
1037
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
1038
|
-
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1039
|
-
case "UnprocessableEntityException":
|
|
1040
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
1041
|
-
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1042
|
-
default:
|
|
1043
|
-
const parsedBody = parsedOutput.body;
|
|
1044
|
-
throwDefaultError({
|
|
1045
|
-
output,
|
|
1046
|
-
parsedBody,
|
|
1047
|
-
exceptionCtor: __BaseException,
|
|
1048
|
-
errorCode,
|
|
1049
|
-
});
|
|
1050
|
-
}
|
|
1051
|
-
};
|
|
1052
|
-
export const deserializeAws_restJson1ListPackagingGroupsCommand = async (output, context) => {
|
|
1053
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1054
|
-
return deserializeAws_restJson1ListPackagingGroupsCommandError(output, context);
|
|
1055
|
-
}
|
|
1056
|
-
const contents = map({
|
|
1057
|
-
$metadata: deserializeMetadata(output),
|
|
941
|
+
}); };
|
|
942
|
+
export var deserializeAws_restJson1DeletePackagingGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
943
|
+
var contents;
|
|
944
|
+
return __generator(this, function (_a) {
|
|
945
|
+
switch (_a.label) {
|
|
946
|
+
case 0:
|
|
947
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
948
|
+
return [2, deserializeAws_restJson1DeletePackagingGroupCommandError(output, context)];
|
|
949
|
+
}
|
|
950
|
+
contents = map({
|
|
951
|
+
$metadata: deserializeMetadata(output),
|
|
952
|
+
});
|
|
953
|
+
return [4, collectBody(output.body, context)];
|
|
954
|
+
case 1:
|
|
955
|
+
_a.sent();
|
|
956
|
+
return [2, contents];
|
|
957
|
+
}
|
|
1058
958
|
});
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
};
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
throw
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
959
|
+
}); };
|
|
960
|
+
var deserializeAws_restJson1DeletePackagingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
961
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
962
|
+
var _c;
|
|
963
|
+
return __generator(this, function (_d) {
|
|
964
|
+
switch (_d.label) {
|
|
965
|
+
case 0:
|
|
966
|
+
_a = [__assign({}, output)];
|
|
967
|
+
_c = {};
|
|
968
|
+
return [4, parseErrorBody(output.body, context)];
|
|
969
|
+
case 1:
|
|
970
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
971
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
972
|
+
_b = errorCode;
|
|
973
|
+
switch (_b) {
|
|
974
|
+
case "ForbiddenException": return [3, 2];
|
|
975
|
+
case "com.amazonaws.mediapackagevod#ForbiddenException": return [3, 2];
|
|
976
|
+
case "InternalServerErrorException": return [3, 4];
|
|
977
|
+
case "com.amazonaws.mediapackagevod#InternalServerErrorException": return [3, 4];
|
|
978
|
+
case "NotFoundException": return [3, 6];
|
|
979
|
+
case "com.amazonaws.mediapackagevod#NotFoundException": return [3, 6];
|
|
980
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
981
|
+
case "com.amazonaws.mediapackagevod#ServiceUnavailableException": return [3, 8];
|
|
982
|
+
case "TooManyRequestsException": return [3, 10];
|
|
983
|
+
case "com.amazonaws.mediapackagevod#TooManyRequestsException": return [3, 10];
|
|
984
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
985
|
+
case "com.amazonaws.mediapackagevod#UnprocessableEntityException": return [3, 12];
|
|
986
|
+
}
|
|
987
|
+
return [3, 14];
|
|
988
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
989
|
+
case 3: throw _d.sent();
|
|
990
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
991
|
+
case 5: throw _d.sent();
|
|
992
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
993
|
+
case 7: throw _d.sent();
|
|
994
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
995
|
+
case 9: throw _d.sent();
|
|
996
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
997
|
+
case 11: throw _d.sent();
|
|
998
|
+
case 12: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
999
|
+
case 13: throw _d.sent();
|
|
1000
|
+
case 14:
|
|
1001
|
+
parsedBody = parsedOutput.body;
|
|
1002
|
+
throwDefaultError({
|
|
1003
|
+
output: output,
|
|
1004
|
+
parsedBody: parsedBody,
|
|
1005
|
+
exceptionCtor: __BaseException,
|
|
1006
|
+
errorCode: errorCode,
|
|
1007
|
+
});
|
|
1008
|
+
_d.label = 15;
|
|
1009
|
+
case 15: return [2];
|
|
1010
|
+
}
|
|
1109
1011
|
});
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1012
|
+
}); };
|
|
1013
|
+
export var deserializeAws_restJson1DescribeAssetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1014
|
+
var contents, data, _a, _b;
|
|
1015
|
+
return __generator(this, function (_c) {
|
|
1016
|
+
switch (_c.label) {
|
|
1017
|
+
case 0:
|
|
1018
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1019
|
+
return [2, deserializeAws_restJson1DescribeAssetCommandError(output, context)];
|
|
1020
|
+
}
|
|
1021
|
+
contents = map({
|
|
1022
|
+
$metadata: deserializeMetadata(output),
|
|
1023
|
+
});
|
|
1024
|
+
_a = __expectNonNull;
|
|
1025
|
+
_b = __expectObject;
|
|
1026
|
+
return [4, parseBody(output.body, context)];
|
|
1027
|
+
case 1:
|
|
1028
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1029
|
+
if (data.arn != null) {
|
|
1030
|
+
contents.Arn = __expectString(data.arn);
|
|
1031
|
+
}
|
|
1032
|
+
if (data.createdAt != null) {
|
|
1033
|
+
contents.CreatedAt = __expectString(data.createdAt);
|
|
1034
|
+
}
|
|
1035
|
+
if (data.egressEndpoints != null) {
|
|
1036
|
+
contents.EgressEndpoints = deserializeAws_restJson1__listOfEgressEndpoint(data.egressEndpoints, context);
|
|
1037
|
+
}
|
|
1038
|
+
if (data.id != null) {
|
|
1039
|
+
contents.Id = __expectString(data.id);
|
|
1040
|
+
}
|
|
1041
|
+
if (data.packagingGroupId != null) {
|
|
1042
|
+
contents.PackagingGroupId = __expectString(data.packagingGroupId);
|
|
1043
|
+
}
|
|
1044
|
+
if (data.resourceId != null) {
|
|
1045
|
+
contents.ResourceId = __expectString(data.resourceId);
|
|
1046
|
+
}
|
|
1047
|
+
if (data.sourceArn != null) {
|
|
1048
|
+
contents.SourceArn = __expectString(data.sourceArn);
|
|
1049
|
+
}
|
|
1050
|
+
if (data.sourceRoleArn != null) {
|
|
1051
|
+
contents.SourceRoleArn = __expectString(data.sourceRoleArn);
|
|
1052
|
+
}
|
|
1053
|
+
if (data.tags != null) {
|
|
1054
|
+
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1055
|
+
}
|
|
1056
|
+
return [2, contents];
|
|
1057
|
+
}
|
|
1128
1058
|
});
|
|
1129
|
-
};
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1059
|
+
}); };
|
|
1060
|
+
var deserializeAws_restJson1DescribeAssetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1061
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1062
|
+
var _c;
|
|
1063
|
+
return __generator(this, function (_d) {
|
|
1064
|
+
switch (_d.label) {
|
|
1065
|
+
case 0:
|
|
1066
|
+
_a = [__assign({}, output)];
|
|
1067
|
+
_c = {};
|
|
1068
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1069
|
+
case 1:
|
|
1070
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1071
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
|
+
_b = errorCode;
|
|
1073
|
+
switch (_b) {
|
|
1074
|
+
case "ForbiddenException": return [3, 2];
|
|
1075
|
+
case "com.amazonaws.mediapackagevod#ForbiddenException": return [3, 2];
|
|
1076
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1077
|
+
case "com.amazonaws.mediapackagevod#InternalServerErrorException": return [3, 4];
|
|
1078
|
+
case "NotFoundException": return [3, 6];
|
|
1079
|
+
case "com.amazonaws.mediapackagevod#NotFoundException": return [3, 6];
|
|
1080
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1081
|
+
case "com.amazonaws.mediapackagevod#ServiceUnavailableException": return [3, 8];
|
|
1082
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1083
|
+
case "com.amazonaws.mediapackagevod#TooManyRequestsException": return [3, 10];
|
|
1084
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
1085
|
+
case "com.amazonaws.mediapackagevod#UnprocessableEntityException": return [3, 12];
|
|
1086
|
+
}
|
|
1087
|
+
return [3, 14];
|
|
1088
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1089
|
+
case 3: throw _d.sent();
|
|
1090
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1091
|
+
case 5: throw _d.sent();
|
|
1092
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1093
|
+
case 7: throw _d.sent();
|
|
1094
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1095
|
+
case 9: throw _d.sent();
|
|
1096
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1097
|
+
case 11: throw _d.sent();
|
|
1098
|
+
case 12: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1099
|
+
case 13: throw _d.sent();
|
|
1100
|
+
case 14:
|
|
1101
|
+
parsedBody = parsedOutput.body;
|
|
1102
|
+
throwDefaultError({
|
|
1103
|
+
output: output,
|
|
1104
|
+
parsedBody: parsedBody,
|
|
1105
|
+
exceptionCtor: __BaseException,
|
|
1106
|
+
errorCode: errorCode,
|
|
1107
|
+
});
|
|
1108
|
+
_d.label = 15;
|
|
1109
|
+
case 15: return [2];
|
|
1110
|
+
}
|
|
1136
1111
|
});
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1112
|
+
}); };
|
|
1113
|
+
export var deserializeAws_restJson1DescribePackagingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1114
|
+
var contents, data, _a, _b;
|
|
1115
|
+
return __generator(this, function (_c) {
|
|
1116
|
+
switch (_c.label) {
|
|
1117
|
+
case 0:
|
|
1118
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1119
|
+
return [2, deserializeAws_restJson1DescribePackagingConfigurationCommandError(output, context)];
|
|
1120
|
+
}
|
|
1121
|
+
contents = map({
|
|
1122
|
+
$metadata: deserializeMetadata(output),
|
|
1123
|
+
});
|
|
1124
|
+
_a = __expectNonNull;
|
|
1125
|
+
_b = __expectObject;
|
|
1126
|
+
return [4, parseBody(output.body, context)];
|
|
1127
|
+
case 1:
|
|
1128
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1129
|
+
if (data.arn != null) {
|
|
1130
|
+
contents.Arn = __expectString(data.arn);
|
|
1131
|
+
}
|
|
1132
|
+
if (data.cmafPackage != null) {
|
|
1133
|
+
contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
|
|
1134
|
+
}
|
|
1135
|
+
if (data.dashPackage != null) {
|
|
1136
|
+
contents.DashPackage = deserializeAws_restJson1DashPackage(data.dashPackage, context);
|
|
1137
|
+
}
|
|
1138
|
+
if (data.hlsPackage != null) {
|
|
1139
|
+
contents.HlsPackage = deserializeAws_restJson1HlsPackage(data.hlsPackage, context);
|
|
1140
|
+
}
|
|
1141
|
+
if (data.id != null) {
|
|
1142
|
+
contents.Id = __expectString(data.id);
|
|
1143
|
+
}
|
|
1144
|
+
if (data.mssPackage != null) {
|
|
1145
|
+
contents.MssPackage = deserializeAws_restJson1MssPackage(data.mssPackage, context);
|
|
1146
|
+
}
|
|
1147
|
+
if (data.packagingGroupId != null) {
|
|
1148
|
+
contents.PackagingGroupId = __expectString(data.packagingGroupId);
|
|
1149
|
+
}
|
|
1150
|
+
if (data.tags != null) {
|
|
1151
|
+
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1152
|
+
}
|
|
1153
|
+
return [2, contents];
|
|
1154
|
+
}
|
|
1152
1155
|
});
|
|
1153
|
-
};
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1156
|
+
}); };
|
|
1157
|
+
var deserializeAws_restJson1DescribePackagingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1158
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1159
|
+
var _c;
|
|
1160
|
+
return __generator(this, function (_d) {
|
|
1161
|
+
switch (_d.label) {
|
|
1162
|
+
case 0:
|
|
1163
|
+
_a = [__assign({}, output)];
|
|
1164
|
+
_c = {};
|
|
1165
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1166
|
+
case 1:
|
|
1167
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1168
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1169
|
+
_b = errorCode;
|
|
1170
|
+
switch (_b) {
|
|
1171
|
+
case "ForbiddenException": return [3, 2];
|
|
1172
|
+
case "com.amazonaws.mediapackagevod#ForbiddenException": return [3, 2];
|
|
1173
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1174
|
+
case "com.amazonaws.mediapackagevod#InternalServerErrorException": return [3, 4];
|
|
1175
|
+
case "NotFoundException": return [3, 6];
|
|
1176
|
+
case "com.amazonaws.mediapackagevod#NotFoundException": return [3, 6];
|
|
1177
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1178
|
+
case "com.amazonaws.mediapackagevod#ServiceUnavailableException": return [3, 8];
|
|
1179
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1180
|
+
case "com.amazonaws.mediapackagevod#TooManyRequestsException": return [3, 10];
|
|
1181
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
1182
|
+
case "com.amazonaws.mediapackagevod#UnprocessableEntityException": return [3, 12];
|
|
1183
|
+
}
|
|
1184
|
+
return [3, 14];
|
|
1185
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1186
|
+
case 3: throw _d.sent();
|
|
1187
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1188
|
+
case 5: throw _d.sent();
|
|
1189
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1190
|
+
case 7: throw _d.sent();
|
|
1191
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1192
|
+
case 9: throw _d.sent();
|
|
1193
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1194
|
+
case 11: throw _d.sent();
|
|
1195
|
+
case 12: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1196
|
+
case 13: throw _d.sent();
|
|
1197
|
+
case 14:
|
|
1198
|
+
parsedBody = parsedOutput.body;
|
|
1199
|
+
throwDefaultError({
|
|
1200
|
+
output: output,
|
|
1201
|
+
parsedBody: parsedBody,
|
|
1202
|
+
exceptionCtor: __BaseException,
|
|
1203
|
+
errorCode: errorCode,
|
|
1204
|
+
});
|
|
1205
|
+
_d.label = 15;
|
|
1206
|
+
case 15: return [2];
|
|
1207
|
+
}
|
|
1160
1208
|
});
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1209
|
+
}); };
|
|
1210
|
+
export var deserializeAws_restJson1DescribePackagingGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1211
|
+
var contents, data, _a, _b;
|
|
1212
|
+
return __generator(this, function (_c) {
|
|
1213
|
+
switch (_c.label) {
|
|
1214
|
+
case 0:
|
|
1215
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1216
|
+
return [2, deserializeAws_restJson1DescribePackagingGroupCommandError(output, context)];
|
|
1217
|
+
}
|
|
1218
|
+
contents = map({
|
|
1219
|
+
$metadata: deserializeMetadata(output),
|
|
1220
|
+
});
|
|
1221
|
+
_a = __expectNonNull;
|
|
1222
|
+
_b = __expectObject;
|
|
1223
|
+
return [4, parseBody(output.body, context)];
|
|
1224
|
+
case 1:
|
|
1225
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1226
|
+
if (data.arn != null) {
|
|
1227
|
+
contents.Arn = __expectString(data.arn);
|
|
1228
|
+
}
|
|
1229
|
+
if (data.authorization != null) {
|
|
1230
|
+
contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
|
|
1231
|
+
}
|
|
1232
|
+
if (data.domainName != null) {
|
|
1233
|
+
contents.DomainName = __expectString(data.domainName);
|
|
1234
|
+
}
|
|
1235
|
+
if (data.egressAccessLogs != null) {
|
|
1236
|
+
contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
|
|
1237
|
+
}
|
|
1238
|
+
if (data.id != null) {
|
|
1239
|
+
contents.Id = __expectString(data.id);
|
|
1240
|
+
}
|
|
1241
|
+
if (data.tags != null) {
|
|
1242
|
+
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1243
|
+
}
|
|
1244
|
+
return [2, contents];
|
|
1245
|
+
}
|
|
1176
1246
|
});
|
|
1177
|
-
};
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1247
|
+
}); };
|
|
1248
|
+
var deserializeAws_restJson1DescribePackagingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1249
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1250
|
+
var _c;
|
|
1251
|
+
return __generator(this, function (_d) {
|
|
1252
|
+
switch (_d.label) {
|
|
1253
|
+
case 0:
|
|
1254
|
+
_a = [__assign({}, output)];
|
|
1255
|
+
_c = {};
|
|
1256
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1257
|
+
case 1:
|
|
1258
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1259
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1260
|
+
_b = errorCode;
|
|
1261
|
+
switch (_b) {
|
|
1262
|
+
case "ForbiddenException": return [3, 2];
|
|
1263
|
+
case "com.amazonaws.mediapackagevod#ForbiddenException": return [3, 2];
|
|
1264
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1265
|
+
case "com.amazonaws.mediapackagevod#InternalServerErrorException": return [3, 4];
|
|
1266
|
+
case "NotFoundException": return [3, 6];
|
|
1267
|
+
case "com.amazonaws.mediapackagevod#NotFoundException": return [3, 6];
|
|
1268
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1269
|
+
case "com.amazonaws.mediapackagevod#ServiceUnavailableException": return [3, 8];
|
|
1270
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1271
|
+
case "com.amazonaws.mediapackagevod#TooManyRequestsException": return [3, 10];
|
|
1272
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
1273
|
+
case "com.amazonaws.mediapackagevod#UnprocessableEntityException": return [3, 12];
|
|
1274
|
+
}
|
|
1275
|
+
return [3, 14];
|
|
1276
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1277
|
+
case 3: throw _d.sent();
|
|
1278
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1279
|
+
case 5: throw _d.sent();
|
|
1280
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1281
|
+
case 7: throw _d.sent();
|
|
1282
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1283
|
+
case 9: throw _d.sent();
|
|
1284
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1285
|
+
case 11: throw _d.sent();
|
|
1286
|
+
case 12: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1287
|
+
case 13: throw _d.sent();
|
|
1288
|
+
case 14:
|
|
1289
|
+
parsedBody = parsedOutput.body;
|
|
1290
|
+
throwDefaultError({
|
|
1291
|
+
output: output,
|
|
1292
|
+
parsedBody: parsedBody,
|
|
1293
|
+
exceptionCtor: __BaseException,
|
|
1294
|
+
errorCode: errorCode,
|
|
1295
|
+
});
|
|
1296
|
+
_d.label = 15;
|
|
1297
|
+
case 15: return [2];
|
|
1298
|
+
}
|
|
1184
1299
|
});
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
};
|
|
1211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
|
-
switch (errorCode) {
|
|
1213
|
-
case "ForbiddenException":
|
|
1214
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
1215
|
-
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1216
|
-
case "InternalServerErrorException":
|
|
1217
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
1218
|
-
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1219
|
-
case "NotFoundException":
|
|
1220
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
1221
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1222
|
-
case "ServiceUnavailableException":
|
|
1223
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
1224
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1225
|
-
case "TooManyRequestsException":
|
|
1226
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
1227
|
-
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1228
|
-
case "UnprocessableEntityException":
|
|
1229
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
1230
|
-
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1231
|
-
default:
|
|
1232
|
-
const parsedBody = parsedOutput.body;
|
|
1233
|
-
throwDefaultError({
|
|
1234
|
-
output,
|
|
1235
|
-
parsedBody,
|
|
1236
|
-
exceptionCtor: __BaseException,
|
|
1237
|
-
errorCode,
|
|
1238
|
-
});
|
|
1239
|
-
}
|
|
1240
|
-
};
|
|
1241
|
-
const map = __map;
|
|
1242
|
-
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
1243
|
-
const contents = map({});
|
|
1244
|
-
const data = parsedOutput.body;
|
|
1245
|
-
if (data.message != null) {
|
|
1246
|
-
contents.Message = __expectString(data.message);
|
|
1247
|
-
}
|
|
1248
|
-
const exception = new ForbiddenException({
|
|
1249
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1250
|
-
...contents,
|
|
1300
|
+
}); };
|
|
1301
|
+
export var deserializeAws_restJson1ListAssetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1302
|
+
var contents, data, _a, _b;
|
|
1303
|
+
return __generator(this, function (_c) {
|
|
1304
|
+
switch (_c.label) {
|
|
1305
|
+
case 0:
|
|
1306
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1307
|
+
return [2, deserializeAws_restJson1ListAssetsCommandError(output, context)];
|
|
1308
|
+
}
|
|
1309
|
+
contents = map({
|
|
1310
|
+
$metadata: deserializeMetadata(output),
|
|
1311
|
+
});
|
|
1312
|
+
_a = __expectNonNull;
|
|
1313
|
+
_b = __expectObject;
|
|
1314
|
+
return [4, parseBody(output.body, context)];
|
|
1315
|
+
case 1:
|
|
1316
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1317
|
+
if (data.assets != null) {
|
|
1318
|
+
contents.Assets = deserializeAws_restJson1__listOfAssetShallow(data.assets, context);
|
|
1319
|
+
}
|
|
1320
|
+
if (data.nextToken != null) {
|
|
1321
|
+
contents.NextToken = __expectString(data.nextToken);
|
|
1322
|
+
}
|
|
1323
|
+
return [2, contents];
|
|
1324
|
+
}
|
|
1251
1325
|
});
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1326
|
+
}); };
|
|
1327
|
+
var deserializeAws_restJson1ListAssetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1328
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1329
|
+
var _c;
|
|
1330
|
+
return __generator(this, function (_d) {
|
|
1331
|
+
switch (_d.label) {
|
|
1332
|
+
case 0:
|
|
1333
|
+
_a = [__assign({}, output)];
|
|
1334
|
+
_c = {};
|
|
1335
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1336
|
+
case 1:
|
|
1337
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1338
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1339
|
+
_b = errorCode;
|
|
1340
|
+
switch (_b) {
|
|
1341
|
+
case "ForbiddenException": return [3, 2];
|
|
1342
|
+
case "com.amazonaws.mediapackagevod#ForbiddenException": return [3, 2];
|
|
1343
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1344
|
+
case "com.amazonaws.mediapackagevod#InternalServerErrorException": return [3, 4];
|
|
1345
|
+
case "NotFoundException": return [3, 6];
|
|
1346
|
+
case "com.amazonaws.mediapackagevod#NotFoundException": return [3, 6];
|
|
1347
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1348
|
+
case "com.amazonaws.mediapackagevod#ServiceUnavailableException": return [3, 8];
|
|
1349
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1350
|
+
case "com.amazonaws.mediapackagevod#TooManyRequestsException": return [3, 10];
|
|
1351
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
1352
|
+
case "com.amazonaws.mediapackagevod#UnprocessableEntityException": return [3, 12];
|
|
1353
|
+
}
|
|
1354
|
+
return [3, 14];
|
|
1355
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1356
|
+
case 3: throw _d.sent();
|
|
1357
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1358
|
+
case 5: throw _d.sent();
|
|
1359
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1360
|
+
case 7: throw _d.sent();
|
|
1361
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1362
|
+
case 9: throw _d.sent();
|
|
1363
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1364
|
+
case 11: throw _d.sent();
|
|
1365
|
+
case 12: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1366
|
+
case 13: throw _d.sent();
|
|
1367
|
+
case 14:
|
|
1368
|
+
parsedBody = parsedOutput.body;
|
|
1369
|
+
throwDefaultError({
|
|
1370
|
+
output: output,
|
|
1371
|
+
parsedBody: parsedBody,
|
|
1372
|
+
exceptionCtor: __BaseException,
|
|
1373
|
+
errorCode: errorCode,
|
|
1374
|
+
});
|
|
1375
|
+
_d.label = 15;
|
|
1376
|
+
case 15: return [2];
|
|
1377
|
+
}
|
|
1263
1378
|
});
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1379
|
+
}); };
|
|
1380
|
+
export var deserializeAws_restJson1ListPackagingConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1381
|
+
var contents, data, _a, _b;
|
|
1382
|
+
return __generator(this, function (_c) {
|
|
1383
|
+
switch (_c.label) {
|
|
1384
|
+
case 0:
|
|
1385
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1386
|
+
return [2, deserializeAws_restJson1ListPackagingConfigurationsCommandError(output, context)];
|
|
1387
|
+
}
|
|
1388
|
+
contents = map({
|
|
1389
|
+
$metadata: deserializeMetadata(output),
|
|
1390
|
+
});
|
|
1391
|
+
_a = __expectNonNull;
|
|
1392
|
+
_b = __expectObject;
|
|
1393
|
+
return [4, parseBody(output.body, context)];
|
|
1394
|
+
case 1:
|
|
1395
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1396
|
+
if (data.nextToken != null) {
|
|
1397
|
+
contents.NextToken = __expectString(data.nextToken);
|
|
1398
|
+
}
|
|
1399
|
+
if (data.packagingConfigurations != null) {
|
|
1400
|
+
contents.PackagingConfigurations = deserializeAws_restJson1__listOfPackagingConfiguration(data.packagingConfigurations, context);
|
|
1401
|
+
}
|
|
1402
|
+
return [2, contents];
|
|
1403
|
+
}
|
|
1275
1404
|
});
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1405
|
+
}); };
|
|
1406
|
+
var deserializeAws_restJson1ListPackagingConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1407
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1408
|
+
var _c;
|
|
1409
|
+
return __generator(this, function (_d) {
|
|
1410
|
+
switch (_d.label) {
|
|
1411
|
+
case 0:
|
|
1412
|
+
_a = [__assign({}, output)];
|
|
1413
|
+
_c = {};
|
|
1414
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1415
|
+
case 1:
|
|
1416
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1417
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
|
+
_b = errorCode;
|
|
1419
|
+
switch (_b) {
|
|
1420
|
+
case "ForbiddenException": return [3, 2];
|
|
1421
|
+
case "com.amazonaws.mediapackagevod#ForbiddenException": return [3, 2];
|
|
1422
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1423
|
+
case "com.amazonaws.mediapackagevod#InternalServerErrorException": return [3, 4];
|
|
1424
|
+
case "NotFoundException": return [3, 6];
|
|
1425
|
+
case "com.amazonaws.mediapackagevod#NotFoundException": return [3, 6];
|
|
1426
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1427
|
+
case "com.amazonaws.mediapackagevod#ServiceUnavailableException": return [3, 8];
|
|
1428
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1429
|
+
case "com.amazonaws.mediapackagevod#TooManyRequestsException": return [3, 10];
|
|
1430
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
1431
|
+
case "com.amazonaws.mediapackagevod#UnprocessableEntityException": return [3, 12];
|
|
1432
|
+
}
|
|
1433
|
+
return [3, 14];
|
|
1434
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1435
|
+
case 3: throw _d.sent();
|
|
1436
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1437
|
+
case 5: throw _d.sent();
|
|
1438
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1439
|
+
case 7: throw _d.sent();
|
|
1440
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1441
|
+
case 9: throw _d.sent();
|
|
1442
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1443
|
+
case 11: throw _d.sent();
|
|
1444
|
+
case 12: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1445
|
+
case 13: throw _d.sent();
|
|
1446
|
+
case 14:
|
|
1447
|
+
parsedBody = parsedOutput.body;
|
|
1448
|
+
throwDefaultError({
|
|
1449
|
+
output: output,
|
|
1450
|
+
parsedBody: parsedBody,
|
|
1451
|
+
exceptionCtor: __BaseException,
|
|
1452
|
+
errorCode: errorCode,
|
|
1453
|
+
});
|
|
1454
|
+
_d.label = 15;
|
|
1455
|
+
case 15: return [2];
|
|
1456
|
+
}
|
|
1287
1457
|
});
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1458
|
+
}); };
|
|
1459
|
+
export var deserializeAws_restJson1ListPackagingGroupsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1460
|
+
var contents, data, _a, _b;
|
|
1461
|
+
return __generator(this, function (_c) {
|
|
1462
|
+
switch (_c.label) {
|
|
1463
|
+
case 0:
|
|
1464
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1465
|
+
return [2, deserializeAws_restJson1ListPackagingGroupsCommandError(output, context)];
|
|
1466
|
+
}
|
|
1467
|
+
contents = map({
|
|
1468
|
+
$metadata: deserializeMetadata(output),
|
|
1469
|
+
});
|
|
1470
|
+
_a = __expectNonNull;
|
|
1471
|
+
_b = __expectObject;
|
|
1472
|
+
return [4, parseBody(output.body, context)];
|
|
1473
|
+
case 1:
|
|
1474
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1475
|
+
if (data.nextToken != null) {
|
|
1476
|
+
contents.NextToken = __expectString(data.nextToken);
|
|
1477
|
+
}
|
|
1478
|
+
if (data.packagingGroups != null) {
|
|
1479
|
+
contents.PackagingGroups = deserializeAws_restJson1__listOfPackagingGroup(data.packagingGroups, context);
|
|
1480
|
+
}
|
|
1481
|
+
return [2, contents];
|
|
1482
|
+
}
|
|
1299
1483
|
});
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1484
|
+
}); };
|
|
1485
|
+
var deserializeAws_restJson1ListPackagingGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1486
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1487
|
+
var _c;
|
|
1488
|
+
return __generator(this, function (_d) {
|
|
1489
|
+
switch (_d.label) {
|
|
1490
|
+
case 0:
|
|
1491
|
+
_a = [__assign({}, output)];
|
|
1492
|
+
_c = {};
|
|
1493
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1494
|
+
case 1:
|
|
1495
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1496
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1497
|
+
_b = errorCode;
|
|
1498
|
+
switch (_b) {
|
|
1499
|
+
case "ForbiddenException": return [3, 2];
|
|
1500
|
+
case "com.amazonaws.mediapackagevod#ForbiddenException": return [3, 2];
|
|
1501
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1502
|
+
case "com.amazonaws.mediapackagevod#InternalServerErrorException": return [3, 4];
|
|
1503
|
+
case "NotFoundException": return [3, 6];
|
|
1504
|
+
case "com.amazonaws.mediapackagevod#NotFoundException": return [3, 6];
|
|
1505
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1506
|
+
case "com.amazonaws.mediapackagevod#ServiceUnavailableException": return [3, 8];
|
|
1507
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1508
|
+
case "com.amazonaws.mediapackagevod#TooManyRequestsException": return [3, 10];
|
|
1509
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
1510
|
+
case "com.amazonaws.mediapackagevod#UnprocessableEntityException": return [3, 12];
|
|
1511
|
+
}
|
|
1512
|
+
return [3, 14];
|
|
1513
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1514
|
+
case 3: throw _d.sent();
|
|
1515
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1516
|
+
case 5: throw _d.sent();
|
|
1517
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1518
|
+
case 7: throw _d.sent();
|
|
1519
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1520
|
+
case 9: throw _d.sent();
|
|
1521
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1522
|
+
case 11: throw _d.sent();
|
|
1523
|
+
case 12: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1524
|
+
case 13: throw _d.sent();
|
|
1525
|
+
case 14:
|
|
1526
|
+
parsedBody = parsedOutput.body;
|
|
1527
|
+
throwDefaultError({
|
|
1528
|
+
output: output,
|
|
1529
|
+
parsedBody: parsedBody,
|
|
1530
|
+
exceptionCtor: __BaseException,
|
|
1531
|
+
errorCode: errorCode,
|
|
1532
|
+
});
|
|
1533
|
+
_d.label = 15;
|
|
1534
|
+
case 15: return [2];
|
|
1535
|
+
}
|
|
1311
1536
|
});
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1537
|
+
}); };
|
|
1538
|
+
export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1539
|
+
var contents, data, _a, _b;
|
|
1540
|
+
return __generator(this, function (_c) {
|
|
1541
|
+
switch (_c.label) {
|
|
1542
|
+
case 0:
|
|
1543
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1544
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1545
|
+
}
|
|
1546
|
+
contents = map({
|
|
1547
|
+
$metadata: deserializeMetadata(output),
|
|
1548
|
+
});
|
|
1549
|
+
_a = __expectNonNull;
|
|
1550
|
+
_b = __expectObject;
|
|
1551
|
+
return [4, parseBody(output.body, context)];
|
|
1552
|
+
case 1:
|
|
1553
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1554
|
+
if (data.tags != null) {
|
|
1555
|
+
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
1556
|
+
}
|
|
1557
|
+
return [2, contents];
|
|
1558
|
+
}
|
|
1559
|
+
});
|
|
1560
|
+
}); };
|
|
1561
|
+
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1562
|
+
var parsedOutput, _a, errorCode, parsedBody;
|
|
1563
|
+
var _b;
|
|
1564
|
+
return __generator(this, function (_c) {
|
|
1565
|
+
switch (_c.label) {
|
|
1566
|
+
case 0:
|
|
1567
|
+
_a = [__assign({}, output)];
|
|
1568
|
+
_b = {};
|
|
1569
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1570
|
+
case 1:
|
|
1571
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1572
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1573
|
+
parsedBody = parsedOutput.body;
|
|
1574
|
+
throwDefaultError({
|
|
1575
|
+
output: output,
|
|
1576
|
+
parsedBody: parsedBody,
|
|
1577
|
+
exceptionCtor: __BaseException,
|
|
1578
|
+
errorCode: errorCode,
|
|
1579
|
+
});
|
|
1580
|
+
return [2];
|
|
1581
|
+
}
|
|
1582
|
+
});
|
|
1583
|
+
}); };
|
|
1584
|
+
export var deserializeAws_restJson1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1585
|
+
var contents;
|
|
1586
|
+
return __generator(this, function (_a) {
|
|
1587
|
+
switch (_a.label) {
|
|
1588
|
+
case 0:
|
|
1589
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1590
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1591
|
+
}
|
|
1592
|
+
contents = map({
|
|
1593
|
+
$metadata: deserializeMetadata(output),
|
|
1594
|
+
});
|
|
1595
|
+
return [4, collectBody(output.body, context)];
|
|
1596
|
+
case 1:
|
|
1597
|
+
_a.sent();
|
|
1598
|
+
return [2, contents];
|
|
1599
|
+
}
|
|
1600
|
+
});
|
|
1601
|
+
}); };
|
|
1602
|
+
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1603
|
+
var parsedOutput, _a, errorCode, parsedBody;
|
|
1604
|
+
var _b;
|
|
1605
|
+
return __generator(this, function (_c) {
|
|
1606
|
+
switch (_c.label) {
|
|
1607
|
+
case 0:
|
|
1608
|
+
_a = [__assign({}, output)];
|
|
1609
|
+
_b = {};
|
|
1610
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1611
|
+
case 1:
|
|
1612
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1613
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1614
|
+
parsedBody = parsedOutput.body;
|
|
1615
|
+
throwDefaultError({
|
|
1616
|
+
output: output,
|
|
1617
|
+
parsedBody: parsedBody,
|
|
1618
|
+
exceptionCtor: __BaseException,
|
|
1619
|
+
errorCode: errorCode,
|
|
1620
|
+
});
|
|
1621
|
+
return [2];
|
|
1622
|
+
}
|
|
1623
|
+
});
|
|
1624
|
+
}); };
|
|
1625
|
+
export var deserializeAws_restJson1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1626
|
+
var contents;
|
|
1627
|
+
return __generator(this, function (_a) {
|
|
1628
|
+
switch (_a.label) {
|
|
1629
|
+
case 0:
|
|
1630
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1631
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1632
|
+
}
|
|
1633
|
+
contents = map({
|
|
1634
|
+
$metadata: deserializeMetadata(output),
|
|
1635
|
+
});
|
|
1636
|
+
return [4, collectBody(output.body, context)];
|
|
1637
|
+
case 1:
|
|
1638
|
+
_a.sent();
|
|
1639
|
+
return [2, contents];
|
|
1640
|
+
}
|
|
1641
|
+
});
|
|
1642
|
+
}); };
|
|
1643
|
+
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1644
|
+
var parsedOutput, _a, errorCode, parsedBody;
|
|
1645
|
+
var _b;
|
|
1646
|
+
return __generator(this, function (_c) {
|
|
1647
|
+
switch (_c.label) {
|
|
1648
|
+
case 0:
|
|
1649
|
+
_a = [__assign({}, output)];
|
|
1650
|
+
_b = {};
|
|
1651
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1652
|
+
case 1:
|
|
1653
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1654
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1655
|
+
parsedBody = parsedOutput.body;
|
|
1656
|
+
throwDefaultError({
|
|
1657
|
+
output: output,
|
|
1658
|
+
parsedBody: parsedBody,
|
|
1659
|
+
exceptionCtor: __BaseException,
|
|
1660
|
+
errorCode: errorCode,
|
|
1661
|
+
});
|
|
1662
|
+
return [2];
|
|
1663
|
+
}
|
|
1664
|
+
});
|
|
1665
|
+
}); };
|
|
1666
|
+
export var deserializeAws_restJson1UpdatePackagingGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1667
|
+
var contents, data, _a, _b;
|
|
1668
|
+
return __generator(this, function (_c) {
|
|
1669
|
+
switch (_c.label) {
|
|
1670
|
+
case 0:
|
|
1671
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1672
|
+
return [2, deserializeAws_restJson1UpdatePackagingGroupCommandError(output, context)];
|
|
1673
|
+
}
|
|
1674
|
+
contents = map({
|
|
1675
|
+
$metadata: deserializeMetadata(output),
|
|
1676
|
+
});
|
|
1677
|
+
_a = __expectNonNull;
|
|
1678
|
+
_b = __expectObject;
|
|
1679
|
+
return [4, parseBody(output.body, context)];
|
|
1680
|
+
case 1:
|
|
1681
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1682
|
+
if (data.arn != null) {
|
|
1683
|
+
contents.Arn = __expectString(data.arn);
|
|
1684
|
+
}
|
|
1685
|
+
if (data.authorization != null) {
|
|
1686
|
+
contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
|
|
1687
|
+
}
|
|
1688
|
+
if (data.domainName != null) {
|
|
1689
|
+
contents.DomainName = __expectString(data.domainName);
|
|
1690
|
+
}
|
|
1691
|
+
if (data.egressAccessLogs != null) {
|
|
1692
|
+
contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
|
|
1693
|
+
}
|
|
1694
|
+
if (data.id != null) {
|
|
1695
|
+
contents.Id = __expectString(data.id);
|
|
1696
|
+
}
|
|
1697
|
+
if (data.tags != null) {
|
|
1698
|
+
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1699
|
+
}
|
|
1700
|
+
return [2, contents];
|
|
1701
|
+
}
|
|
1702
|
+
});
|
|
1703
|
+
}); };
|
|
1704
|
+
var deserializeAws_restJson1UpdatePackagingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1705
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1706
|
+
var _c;
|
|
1707
|
+
return __generator(this, function (_d) {
|
|
1708
|
+
switch (_d.label) {
|
|
1709
|
+
case 0:
|
|
1710
|
+
_a = [__assign({}, output)];
|
|
1711
|
+
_c = {};
|
|
1712
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1713
|
+
case 1:
|
|
1714
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1715
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1716
|
+
_b = errorCode;
|
|
1717
|
+
switch (_b) {
|
|
1718
|
+
case "ForbiddenException": return [3, 2];
|
|
1719
|
+
case "com.amazonaws.mediapackagevod#ForbiddenException": return [3, 2];
|
|
1720
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1721
|
+
case "com.amazonaws.mediapackagevod#InternalServerErrorException": return [3, 4];
|
|
1722
|
+
case "NotFoundException": return [3, 6];
|
|
1723
|
+
case "com.amazonaws.mediapackagevod#NotFoundException": return [3, 6];
|
|
1724
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1725
|
+
case "com.amazonaws.mediapackagevod#ServiceUnavailableException": return [3, 8];
|
|
1726
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1727
|
+
case "com.amazonaws.mediapackagevod#TooManyRequestsException": return [3, 10];
|
|
1728
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
1729
|
+
case "com.amazonaws.mediapackagevod#UnprocessableEntityException": return [3, 12];
|
|
1730
|
+
}
|
|
1731
|
+
return [3, 14];
|
|
1732
|
+
case 2: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1733
|
+
case 3: throw _d.sent();
|
|
1734
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1735
|
+
case 5: throw _d.sent();
|
|
1736
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1737
|
+
case 7: throw _d.sent();
|
|
1738
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1739
|
+
case 9: throw _d.sent();
|
|
1740
|
+
case 10: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1741
|
+
case 11: throw _d.sent();
|
|
1742
|
+
case 12: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1743
|
+
case 13: throw _d.sent();
|
|
1744
|
+
case 14:
|
|
1745
|
+
parsedBody = parsedOutput.body;
|
|
1746
|
+
throwDefaultError({
|
|
1747
|
+
output: output,
|
|
1748
|
+
parsedBody: parsedBody,
|
|
1749
|
+
exceptionCtor: __BaseException,
|
|
1750
|
+
errorCode: errorCode,
|
|
1751
|
+
});
|
|
1752
|
+
_d.label = 15;
|
|
1753
|
+
case 15: return [2];
|
|
1754
|
+
}
|
|
1755
|
+
});
|
|
1756
|
+
}); };
|
|
1757
|
+
var map = __map;
|
|
1758
|
+
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1759
|
+
var contents, data, exception;
|
|
1760
|
+
return __generator(this, function (_a) {
|
|
1761
|
+
contents = map({});
|
|
1762
|
+
data = parsedOutput.body;
|
|
1763
|
+
if (data.message != null) {
|
|
1764
|
+
contents.Message = __expectString(data.message);
|
|
1765
|
+
}
|
|
1766
|
+
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1767
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1768
|
+
});
|
|
1769
|
+
}); };
|
|
1770
|
+
var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1771
|
+
var contents, data, exception;
|
|
1772
|
+
return __generator(this, function (_a) {
|
|
1773
|
+
contents = map({});
|
|
1774
|
+
data = parsedOutput.body;
|
|
1775
|
+
if (data.message != null) {
|
|
1776
|
+
contents.Message = __expectString(data.message);
|
|
1777
|
+
}
|
|
1778
|
+
exception = new InternalServerErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1779
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1780
|
+
});
|
|
1781
|
+
}); };
|
|
1782
|
+
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1783
|
+
var contents, data, exception;
|
|
1784
|
+
return __generator(this, function (_a) {
|
|
1785
|
+
contents = map({});
|
|
1786
|
+
data = parsedOutput.body;
|
|
1787
|
+
if (data.message != null) {
|
|
1788
|
+
contents.Message = __expectString(data.message);
|
|
1789
|
+
}
|
|
1790
|
+
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1791
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1792
|
+
});
|
|
1793
|
+
}); };
|
|
1794
|
+
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1795
|
+
var contents, data, exception;
|
|
1796
|
+
return __generator(this, function (_a) {
|
|
1797
|
+
contents = map({});
|
|
1798
|
+
data = parsedOutput.body;
|
|
1799
|
+
if (data.message != null) {
|
|
1800
|
+
contents.Message = __expectString(data.message);
|
|
1801
|
+
}
|
|
1802
|
+
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1803
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1804
|
+
});
|
|
1805
|
+
}); };
|
|
1806
|
+
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1807
|
+
var contents, data, exception;
|
|
1808
|
+
return __generator(this, function (_a) {
|
|
1809
|
+
contents = map({});
|
|
1810
|
+
data = parsedOutput.body;
|
|
1811
|
+
if (data.message != null) {
|
|
1812
|
+
contents.Message = __expectString(data.message);
|
|
1813
|
+
}
|
|
1814
|
+
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1815
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1816
|
+
});
|
|
1817
|
+
}); };
|
|
1818
|
+
var deserializeAws_restJson1UnprocessableEntityExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1819
|
+
var contents, data, exception;
|
|
1820
|
+
return __generator(this, function (_a) {
|
|
1821
|
+
contents = map({});
|
|
1822
|
+
data = parsedOutput.body;
|
|
1823
|
+
if (data.message != null) {
|
|
1824
|
+
contents.Message = __expectString(data.message);
|
|
1825
|
+
}
|
|
1826
|
+
exception = new UnprocessableEntityException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1827
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1828
|
+
});
|
|
1829
|
+
}); };
|
|
1830
|
+
var serializeAws_restJson1__listOf__PeriodTriggersElement = function (input, context) {
|
|
1315
1831
|
return input
|
|
1316
|
-
.filter((e)
|
|
1317
|
-
.map((entry)
|
|
1832
|
+
.filter(function (e) { return e != null; })
|
|
1833
|
+
.map(function (entry) {
|
|
1318
1834
|
return entry;
|
|
1319
1835
|
});
|
|
1320
1836
|
};
|
|
1321
|
-
|
|
1837
|
+
var serializeAws_restJson1__listOf__string = function (input, context) {
|
|
1322
1838
|
return input
|
|
1323
|
-
.filter((e)
|
|
1324
|
-
.map((entry)
|
|
1839
|
+
.filter(function (e) { return e != null; })
|
|
1840
|
+
.map(function (entry) {
|
|
1325
1841
|
return entry;
|
|
1326
1842
|
});
|
|
1327
1843
|
};
|
|
1328
|
-
|
|
1844
|
+
var serializeAws_restJson1__listOfDashManifest = function (input, context) {
|
|
1329
1845
|
return input
|
|
1330
|
-
.filter((e)
|
|
1331
|
-
.map((entry)
|
|
1846
|
+
.filter(function (e) { return e != null; })
|
|
1847
|
+
.map(function (entry) {
|
|
1332
1848
|
return serializeAws_restJson1DashManifest(entry, context);
|
|
1333
1849
|
});
|
|
1334
1850
|
};
|
|
1335
|
-
|
|
1851
|
+
var serializeAws_restJson1__listOfHlsManifest = function (input, context) {
|
|
1336
1852
|
return input
|
|
1337
|
-
.filter((e)
|
|
1338
|
-
.map((entry)
|
|
1853
|
+
.filter(function (e) { return e != null; })
|
|
1854
|
+
.map(function (entry) {
|
|
1339
1855
|
return serializeAws_restJson1HlsManifest(entry, context);
|
|
1340
1856
|
});
|
|
1341
1857
|
};
|
|
1342
|
-
|
|
1858
|
+
var serializeAws_restJson1__listOfMssManifest = function (input, context) {
|
|
1343
1859
|
return input
|
|
1344
|
-
.filter((e)
|
|
1345
|
-
.map((entry)
|
|
1860
|
+
.filter(function (e) { return e != null; })
|
|
1861
|
+
.map(function (entry) {
|
|
1346
1862
|
return serializeAws_restJson1MssManifest(entry, context);
|
|
1347
1863
|
});
|
|
1348
1864
|
};
|
|
1349
|
-
|
|
1350
|
-
return Object.entries(input).reduce((acc,
|
|
1865
|
+
var serializeAws_restJson1__mapOf__string = function (input, context) {
|
|
1866
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
1867
|
+
var _b;
|
|
1868
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1351
1869
|
if (value === null) {
|
|
1352
1870
|
return acc;
|
|
1353
1871
|
}
|
|
1354
|
-
return {
|
|
1355
|
-
...acc,
|
|
1356
|
-
[key]: value,
|
|
1357
|
-
};
|
|
1872
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
1358
1873
|
}, {});
|
|
1359
1874
|
};
|
|
1360
|
-
|
|
1361
|
-
return {
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
};
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
};
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
};
|
|
1422
|
-
};
|
|
1423
|
-
|
|
1424
|
-
return {
|
|
1425
|
-
|
|
1426
|
-
};
|
|
1427
|
-
};
|
|
1428
|
-
|
|
1429
|
-
return {
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
};
|
|
1438
|
-
};
|
|
1439
|
-
|
|
1440
|
-
return {
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
...(input.ManifestName != null && { manifestName: input.ManifestName }),
|
|
1444
|
-
...(input.ProgramDateTimeIntervalSeconds != null && {
|
|
1445
|
-
programDateTimeIntervalSeconds: input.ProgramDateTimeIntervalSeconds,
|
|
1446
|
-
}),
|
|
1447
|
-
...(input.RepeatExtXKey != null && { repeatExtXKey: input.RepeatExtXKey }),
|
|
1448
|
-
...(input.StreamSelection != null && {
|
|
1449
|
-
streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
|
|
1450
|
-
}),
|
|
1451
|
-
};
|
|
1452
|
-
};
|
|
1453
|
-
const serializeAws_restJson1HlsPackage = (input, context) => {
|
|
1454
|
-
return {
|
|
1455
|
-
...(input.Encryption != null && { encryption: serializeAws_restJson1HlsEncryption(input.Encryption, context) }),
|
|
1456
|
-
...(input.HlsManifests != null && {
|
|
1457
|
-
hlsManifests: serializeAws_restJson1__listOfHlsManifest(input.HlsManifests, context),
|
|
1458
|
-
}),
|
|
1459
|
-
...(input.IncludeDvbSubtitles != null && { includeDvbSubtitles: input.IncludeDvbSubtitles }),
|
|
1460
|
-
...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
|
|
1461
|
-
...(input.UseAudioRenditionGroup != null && { useAudioRenditionGroup: input.UseAudioRenditionGroup }),
|
|
1462
|
-
};
|
|
1463
|
-
};
|
|
1464
|
-
const serializeAws_restJson1MssEncryption = (input, context) => {
|
|
1465
|
-
return {
|
|
1466
|
-
...(input.SpekeKeyProvider != null && {
|
|
1467
|
-
spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
|
|
1468
|
-
}),
|
|
1469
|
-
};
|
|
1470
|
-
};
|
|
1471
|
-
const serializeAws_restJson1MssManifest = (input, context) => {
|
|
1472
|
-
return {
|
|
1473
|
-
...(input.ManifestName != null && { manifestName: input.ManifestName }),
|
|
1474
|
-
...(input.StreamSelection != null && {
|
|
1475
|
-
streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
|
|
1476
|
-
}),
|
|
1477
|
-
};
|
|
1478
|
-
};
|
|
1479
|
-
const serializeAws_restJson1MssPackage = (input, context) => {
|
|
1480
|
-
return {
|
|
1481
|
-
...(input.Encryption != null && { encryption: serializeAws_restJson1MssEncryption(input.Encryption, context) }),
|
|
1482
|
-
...(input.MssManifests != null && {
|
|
1483
|
-
mssManifests: serializeAws_restJson1__listOfMssManifest(input.MssManifests, context),
|
|
1484
|
-
}),
|
|
1485
|
-
...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
|
|
1486
|
-
};
|
|
1487
|
-
};
|
|
1488
|
-
const serializeAws_restJson1SpekeKeyProvider = (input, context) => {
|
|
1489
|
-
return {
|
|
1490
|
-
...(input.RoleArn != null && { roleArn: input.RoleArn }),
|
|
1491
|
-
...(input.SystemIds != null && { systemIds: serializeAws_restJson1__listOf__string(input.SystemIds, context) }),
|
|
1492
|
-
...(input.Url != null && { url: input.Url }),
|
|
1493
|
-
};
|
|
1494
|
-
};
|
|
1495
|
-
const serializeAws_restJson1StreamSelection = (input, context) => {
|
|
1496
|
-
return {
|
|
1497
|
-
...(input.MaxVideoBitsPerSecond != null && { maxVideoBitsPerSecond: input.MaxVideoBitsPerSecond }),
|
|
1498
|
-
...(input.MinVideoBitsPerSecond != null && { minVideoBitsPerSecond: input.MinVideoBitsPerSecond }),
|
|
1499
|
-
...(input.StreamOrder != null && { streamOrder: input.StreamOrder }),
|
|
1500
|
-
};
|
|
1501
|
-
};
|
|
1502
|
-
const serializeAws_restJson1Tags = (input, context) => {
|
|
1503
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1875
|
+
var serializeAws_restJson1Authorization = function (input, context) {
|
|
1876
|
+
return __assign(__assign({}, (input.CdnIdentifierSecret != null && { cdnIdentifierSecret: input.CdnIdentifierSecret })), (input.SecretsRoleArn != null && { secretsRoleArn: input.SecretsRoleArn }));
|
|
1877
|
+
};
|
|
1878
|
+
var serializeAws_restJson1CmafEncryption = function (input, context) {
|
|
1879
|
+
return __assign(__assign({}, (input.ConstantInitializationVector != null && {
|
|
1880
|
+
constantInitializationVector: input.ConstantInitializationVector,
|
|
1881
|
+
})), (input.SpekeKeyProvider != null && {
|
|
1882
|
+
spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
|
|
1883
|
+
}));
|
|
1884
|
+
};
|
|
1885
|
+
var serializeAws_restJson1CmafPackage = function (input, context) {
|
|
1886
|
+
return __assign(__assign(__assign(__assign({}, (input.Encryption != null && { encryption: serializeAws_restJson1CmafEncryption(input.Encryption, context) })), (input.HlsManifests != null && {
|
|
1887
|
+
hlsManifests: serializeAws_restJson1__listOfHlsManifest(input.HlsManifests, context),
|
|
1888
|
+
})), (input.IncludeEncoderConfigurationInSegments != null && {
|
|
1889
|
+
includeEncoderConfigurationInSegments: input.IncludeEncoderConfigurationInSegments,
|
|
1890
|
+
})), (input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }));
|
|
1891
|
+
};
|
|
1892
|
+
var serializeAws_restJson1DashEncryption = function (input, context) {
|
|
1893
|
+
return __assign({}, (input.SpekeKeyProvider != null && {
|
|
1894
|
+
spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
|
|
1895
|
+
}));
|
|
1896
|
+
};
|
|
1897
|
+
var serializeAws_restJson1DashManifest = function (input, context) {
|
|
1898
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ManifestLayout != null && { manifestLayout: input.ManifestLayout })), (input.ManifestName != null && { manifestName: input.ManifestName })), (input.MinBufferTimeSeconds != null && { minBufferTimeSeconds: input.MinBufferTimeSeconds })), (input.Profile != null && { profile: input.Profile })), (input.ScteMarkersSource != null && { scteMarkersSource: input.ScteMarkersSource })), (input.StreamSelection != null && {
|
|
1899
|
+
streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
|
|
1900
|
+
}));
|
|
1901
|
+
};
|
|
1902
|
+
var serializeAws_restJson1DashPackage = function (input, context) {
|
|
1903
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DashManifests != null && {
|
|
1904
|
+
dashManifests: serializeAws_restJson1__listOfDashManifest(input.DashManifests, context),
|
|
1905
|
+
})), (input.Encryption != null && { encryption: serializeAws_restJson1DashEncryption(input.Encryption, context) })), (input.IncludeEncoderConfigurationInSegments != null && {
|
|
1906
|
+
includeEncoderConfigurationInSegments: input.IncludeEncoderConfigurationInSegments,
|
|
1907
|
+
})), (input.PeriodTriggers != null && {
|
|
1908
|
+
periodTriggers: serializeAws_restJson1__listOf__PeriodTriggersElement(input.PeriodTriggers, context),
|
|
1909
|
+
})), (input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds })), (input.SegmentTemplateFormat != null && { segmentTemplateFormat: input.SegmentTemplateFormat }));
|
|
1910
|
+
};
|
|
1911
|
+
var serializeAws_restJson1EgressAccessLogs = function (input, context) {
|
|
1912
|
+
return __assign({}, (input.LogGroupName != null && { logGroupName: input.LogGroupName }));
|
|
1913
|
+
};
|
|
1914
|
+
var serializeAws_restJson1HlsEncryption = function (input, context) {
|
|
1915
|
+
return __assign(__assign(__assign({}, (input.ConstantInitializationVector != null && {
|
|
1916
|
+
constantInitializationVector: input.ConstantInitializationVector,
|
|
1917
|
+
})), (input.EncryptionMethod != null && { encryptionMethod: input.EncryptionMethod })), (input.SpekeKeyProvider != null && {
|
|
1918
|
+
spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
|
|
1919
|
+
}));
|
|
1920
|
+
};
|
|
1921
|
+
var serializeAws_restJson1HlsManifest = function (input, context) {
|
|
1922
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdMarkers != null && { adMarkers: input.AdMarkers })), (input.IncludeIframeOnlyStream != null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream })), (input.ManifestName != null && { manifestName: input.ManifestName })), (input.ProgramDateTimeIntervalSeconds != null && {
|
|
1923
|
+
programDateTimeIntervalSeconds: input.ProgramDateTimeIntervalSeconds,
|
|
1924
|
+
})), (input.RepeatExtXKey != null && { repeatExtXKey: input.RepeatExtXKey })), (input.StreamSelection != null && {
|
|
1925
|
+
streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
|
|
1926
|
+
}));
|
|
1927
|
+
};
|
|
1928
|
+
var serializeAws_restJson1HlsPackage = function (input, context) {
|
|
1929
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Encryption != null && { encryption: serializeAws_restJson1HlsEncryption(input.Encryption, context) })), (input.HlsManifests != null && {
|
|
1930
|
+
hlsManifests: serializeAws_restJson1__listOfHlsManifest(input.HlsManifests, context),
|
|
1931
|
+
})), (input.IncludeDvbSubtitles != null && { includeDvbSubtitles: input.IncludeDvbSubtitles })), (input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds })), (input.UseAudioRenditionGroup != null && { useAudioRenditionGroup: input.UseAudioRenditionGroup }));
|
|
1932
|
+
};
|
|
1933
|
+
var serializeAws_restJson1MssEncryption = function (input, context) {
|
|
1934
|
+
return __assign({}, (input.SpekeKeyProvider != null && {
|
|
1935
|
+
spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
|
|
1936
|
+
}));
|
|
1937
|
+
};
|
|
1938
|
+
var serializeAws_restJson1MssManifest = function (input, context) {
|
|
1939
|
+
return __assign(__assign({}, (input.ManifestName != null && { manifestName: input.ManifestName })), (input.StreamSelection != null && {
|
|
1940
|
+
streamSelection: serializeAws_restJson1StreamSelection(input.StreamSelection, context),
|
|
1941
|
+
}));
|
|
1942
|
+
};
|
|
1943
|
+
var serializeAws_restJson1MssPackage = function (input, context) {
|
|
1944
|
+
return __assign(__assign(__assign({}, (input.Encryption != null && { encryption: serializeAws_restJson1MssEncryption(input.Encryption, context) })), (input.MssManifests != null && {
|
|
1945
|
+
mssManifests: serializeAws_restJson1__listOfMssManifest(input.MssManifests, context),
|
|
1946
|
+
})), (input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }));
|
|
1947
|
+
};
|
|
1948
|
+
var serializeAws_restJson1SpekeKeyProvider = function (input, context) {
|
|
1949
|
+
return __assign(__assign(__assign({}, (input.RoleArn != null && { roleArn: input.RoleArn })), (input.SystemIds != null && { systemIds: serializeAws_restJson1__listOf__string(input.SystemIds, context) })), (input.Url != null && { url: input.Url }));
|
|
1950
|
+
};
|
|
1951
|
+
var serializeAws_restJson1StreamSelection = function (input, context) {
|
|
1952
|
+
return __assign(__assign(__assign({}, (input.MaxVideoBitsPerSecond != null && { maxVideoBitsPerSecond: input.MaxVideoBitsPerSecond })), (input.MinVideoBitsPerSecond != null && { minVideoBitsPerSecond: input.MinVideoBitsPerSecond })), (input.StreamOrder != null && { streamOrder: input.StreamOrder }));
|
|
1953
|
+
};
|
|
1954
|
+
var serializeAws_restJson1Tags = function (input, context) {
|
|
1955
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
1956
|
+
var _b;
|
|
1957
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1504
1958
|
if (value === null) {
|
|
1505
1959
|
return acc;
|
|
1506
1960
|
}
|
|
1507
|
-
return {
|
|
1508
|
-
...acc,
|
|
1509
|
-
[key]: value,
|
|
1510
|
-
};
|
|
1961
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
1511
1962
|
}, {});
|
|
1512
1963
|
};
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
.filter((e)
|
|
1516
|
-
.map((entry)
|
|
1964
|
+
var deserializeAws_restJson1__listOf__PeriodTriggersElement = function (output, context) {
|
|
1965
|
+
var retVal = (output || [])
|
|
1966
|
+
.filter(function (e) { return e != null; })
|
|
1967
|
+
.map(function (entry) {
|
|
1517
1968
|
if (entry === null) {
|
|
1518
1969
|
return null;
|
|
1519
1970
|
}
|
|
@@ -1521,10 +1972,10 @@ const deserializeAws_restJson1__listOf__PeriodTriggersElement = (output, context
|
|
|
1521
1972
|
});
|
|
1522
1973
|
return retVal;
|
|
1523
1974
|
};
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
.filter((e)
|
|
1527
|
-
.map((entry)
|
|
1975
|
+
var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
1976
|
+
var retVal = (output || [])
|
|
1977
|
+
.filter(function (e) { return e != null; })
|
|
1978
|
+
.map(function (entry) {
|
|
1528
1979
|
if (entry === null) {
|
|
1529
1980
|
return null;
|
|
1530
1981
|
}
|
|
@@ -1532,10 +1983,10 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
1532
1983
|
});
|
|
1533
1984
|
return retVal;
|
|
1534
1985
|
};
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
.filter((e)
|
|
1538
|
-
.map((entry)
|
|
1986
|
+
var deserializeAws_restJson1__listOfAssetShallow = function (output, context) {
|
|
1987
|
+
var retVal = (output || [])
|
|
1988
|
+
.filter(function (e) { return e != null; })
|
|
1989
|
+
.map(function (entry) {
|
|
1539
1990
|
if (entry === null) {
|
|
1540
1991
|
return null;
|
|
1541
1992
|
}
|
|
@@ -1543,10 +1994,10 @@ const deserializeAws_restJson1__listOfAssetShallow = (output, context) => {
|
|
|
1543
1994
|
});
|
|
1544
1995
|
return retVal;
|
|
1545
1996
|
};
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
.filter((e)
|
|
1549
|
-
.map((entry)
|
|
1997
|
+
var deserializeAws_restJson1__listOfDashManifest = function (output, context) {
|
|
1998
|
+
var retVal = (output || [])
|
|
1999
|
+
.filter(function (e) { return e != null; })
|
|
2000
|
+
.map(function (entry) {
|
|
1550
2001
|
if (entry === null) {
|
|
1551
2002
|
return null;
|
|
1552
2003
|
}
|
|
@@ -1554,10 +2005,10 @@ const deserializeAws_restJson1__listOfDashManifest = (output, context) => {
|
|
|
1554
2005
|
});
|
|
1555
2006
|
return retVal;
|
|
1556
2007
|
};
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
.filter((e)
|
|
1560
|
-
.map((entry)
|
|
2008
|
+
var deserializeAws_restJson1__listOfEgressEndpoint = function (output, context) {
|
|
2009
|
+
var retVal = (output || [])
|
|
2010
|
+
.filter(function (e) { return e != null; })
|
|
2011
|
+
.map(function (entry) {
|
|
1561
2012
|
if (entry === null) {
|
|
1562
2013
|
return null;
|
|
1563
2014
|
}
|
|
@@ -1565,10 +2016,10 @@ const deserializeAws_restJson1__listOfEgressEndpoint = (output, context) => {
|
|
|
1565
2016
|
});
|
|
1566
2017
|
return retVal;
|
|
1567
2018
|
};
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
.filter((e)
|
|
1571
|
-
.map((entry)
|
|
2019
|
+
var deserializeAws_restJson1__listOfHlsManifest = function (output, context) {
|
|
2020
|
+
var retVal = (output || [])
|
|
2021
|
+
.filter(function (e) { return e != null; })
|
|
2022
|
+
.map(function (entry) {
|
|
1572
2023
|
if (entry === null) {
|
|
1573
2024
|
return null;
|
|
1574
2025
|
}
|
|
@@ -1576,10 +2027,10 @@ const deserializeAws_restJson1__listOfHlsManifest = (output, context) => {
|
|
|
1576
2027
|
});
|
|
1577
2028
|
return retVal;
|
|
1578
2029
|
};
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
.filter((e)
|
|
1582
|
-
.map((entry)
|
|
2030
|
+
var deserializeAws_restJson1__listOfMssManifest = function (output, context) {
|
|
2031
|
+
var retVal = (output || [])
|
|
2032
|
+
.filter(function (e) { return e != null; })
|
|
2033
|
+
.map(function (entry) {
|
|
1583
2034
|
if (entry === null) {
|
|
1584
2035
|
return null;
|
|
1585
2036
|
}
|
|
@@ -1587,10 +2038,10 @@ const deserializeAws_restJson1__listOfMssManifest = (output, context) => {
|
|
|
1587
2038
|
});
|
|
1588
2039
|
return retVal;
|
|
1589
2040
|
};
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
.filter((e)
|
|
1593
|
-
.map((entry)
|
|
2041
|
+
var deserializeAws_restJson1__listOfPackagingConfiguration = function (output, context) {
|
|
2042
|
+
var retVal = (output || [])
|
|
2043
|
+
.filter(function (e) { return e != null; })
|
|
2044
|
+
.map(function (entry) {
|
|
1594
2045
|
if (entry === null) {
|
|
1595
2046
|
return null;
|
|
1596
2047
|
}
|
|
@@ -1598,10 +2049,10 @@ const deserializeAws_restJson1__listOfPackagingConfiguration = (output, context)
|
|
|
1598
2049
|
});
|
|
1599
2050
|
return retVal;
|
|
1600
2051
|
};
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
.filter((e)
|
|
1604
|
-
.map((entry)
|
|
2052
|
+
var deserializeAws_restJson1__listOfPackagingGroup = function (output, context) {
|
|
2053
|
+
var retVal = (output || [])
|
|
2054
|
+
.filter(function (e) { return e != null; })
|
|
2055
|
+
.map(function (entry) {
|
|
1605
2056
|
if (entry === null) {
|
|
1606
2057
|
return null;
|
|
1607
2058
|
}
|
|
@@ -1609,18 +2060,17 @@ const deserializeAws_restJson1__listOfPackagingGroup = (output, context) => {
|
|
|
1609
2060
|
});
|
|
1610
2061
|
return retVal;
|
|
1611
2062
|
};
|
|
1612
|
-
|
|
1613
|
-
return Object.entries(output).reduce((acc,
|
|
2063
|
+
var deserializeAws_restJson1__mapOf__string = function (output, context) {
|
|
2064
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2065
|
+
var _b;
|
|
2066
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1614
2067
|
if (value === null) {
|
|
1615
2068
|
return acc;
|
|
1616
2069
|
}
|
|
1617
|
-
return {
|
|
1618
|
-
...acc,
|
|
1619
|
-
[key]: __expectString(value),
|
|
1620
|
-
};
|
|
2070
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
1621
2071
|
}, {});
|
|
1622
2072
|
};
|
|
1623
|
-
|
|
2073
|
+
var deserializeAws_restJson1AssetShallow = function (output, context) {
|
|
1624
2074
|
return {
|
|
1625
2075
|
Arn: __expectString(output.arn),
|
|
1626
2076
|
CreatedAt: __expectString(output.createdAt),
|
|
@@ -1632,13 +2082,13 @@ const deserializeAws_restJson1AssetShallow = (output, context) => {
|
|
|
1632
2082
|
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
1633
2083
|
};
|
|
1634
2084
|
};
|
|
1635
|
-
|
|
2085
|
+
var deserializeAws_restJson1Authorization = function (output, context) {
|
|
1636
2086
|
return {
|
|
1637
2087
|
CdnIdentifierSecret: __expectString(output.cdnIdentifierSecret),
|
|
1638
2088
|
SecretsRoleArn: __expectString(output.secretsRoleArn),
|
|
1639
2089
|
};
|
|
1640
2090
|
};
|
|
1641
|
-
|
|
2091
|
+
var deserializeAws_restJson1CmafEncryption = function (output, context) {
|
|
1642
2092
|
return {
|
|
1643
2093
|
ConstantInitializationVector: __expectString(output.constantInitializationVector),
|
|
1644
2094
|
SpekeKeyProvider: output.spekeKeyProvider != null
|
|
@@ -1646,7 +2096,7 @@ const deserializeAws_restJson1CmafEncryption = (output, context) => {
|
|
|
1646
2096
|
: undefined,
|
|
1647
2097
|
};
|
|
1648
2098
|
};
|
|
1649
|
-
|
|
2099
|
+
var deserializeAws_restJson1CmafPackage = function (output, context) {
|
|
1650
2100
|
return {
|
|
1651
2101
|
Encryption: output.encryption != null ? deserializeAws_restJson1CmafEncryption(output.encryption, context) : undefined,
|
|
1652
2102
|
HlsManifests: output.hlsManifests != null
|
|
@@ -1656,14 +2106,14 @@ const deserializeAws_restJson1CmafPackage = (output, context) => {
|
|
|
1656
2106
|
SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
|
|
1657
2107
|
};
|
|
1658
2108
|
};
|
|
1659
|
-
|
|
2109
|
+
var deserializeAws_restJson1DashEncryption = function (output, context) {
|
|
1660
2110
|
return {
|
|
1661
2111
|
SpekeKeyProvider: output.spekeKeyProvider != null
|
|
1662
2112
|
? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
|
|
1663
2113
|
: undefined,
|
|
1664
2114
|
};
|
|
1665
2115
|
};
|
|
1666
|
-
|
|
2116
|
+
var deserializeAws_restJson1DashManifest = function (output, context) {
|
|
1667
2117
|
return {
|
|
1668
2118
|
ManifestLayout: __expectString(output.manifestLayout),
|
|
1669
2119
|
ManifestName: __expectString(output.manifestName),
|
|
@@ -1675,7 +2125,7 @@ const deserializeAws_restJson1DashManifest = (output, context) => {
|
|
|
1675
2125
|
: undefined,
|
|
1676
2126
|
};
|
|
1677
2127
|
};
|
|
1678
|
-
|
|
2128
|
+
var deserializeAws_restJson1DashPackage = function (output, context) {
|
|
1679
2129
|
return {
|
|
1680
2130
|
DashManifests: output.dashManifests != null
|
|
1681
2131
|
? deserializeAws_restJson1__listOfDashManifest(output.dashManifests, context)
|
|
@@ -1689,19 +2139,19 @@ const deserializeAws_restJson1DashPackage = (output, context) => {
|
|
|
1689
2139
|
SegmentTemplateFormat: __expectString(output.segmentTemplateFormat),
|
|
1690
2140
|
};
|
|
1691
2141
|
};
|
|
1692
|
-
|
|
2142
|
+
var deserializeAws_restJson1EgressAccessLogs = function (output, context) {
|
|
1693
2143
|
return {
|
|
1694
2144
|
LogGroupName: __expectString(output.logGroupName),
|
|
1695
2145
|
};
|
|
1696
2146
|
};
|
|
1697
|
-
|
|
2147
|
+
var deserializeAws_restJson1EgressEndpoint = function (output, context) {
|
|
1698
2148
|
return {
|
|
1699
2149
|
PackagingConfigurationId: __expectString(output.packagingConfigurationId),
|
|
1700
2150
|
Status: __expectString(output.status),
|
|
1701
2151
|
Url: __expectString(output.url),
|
|
1702
2152
|
};
|
|
1703
2153
|
};
|
|
1704
|
-
|
|
2154
|
+
var deserializeAws_restJson1HlsEncryption = function (output, context) {
|
|
1705
2155
|
return {
|
|
1706
2156
|
ConstantInitializationVector: __expectString(output.constantInitializationVector),
|
|
1707
2157
|
EncryptionMethod: __expectString(output.encryptionMethod),
|
|
@@ -1710,7 +2160,7 @@ const deserializeAws_restJson1HlsEncryption = (output, context) => {
|
|
|
1710
2160
|
: undefined,
|
|
1711
2161
|
};
|
|
1712
2162
|
};
|
|
1713
|
-
|
|
2163
|
+
var deserializeAws_restJson1HlsManifest = function (output, context) {
|
|
1714
2164
|
return {
|
|
1715
2165
|
AdMarkers: __expectString(output.adMarkers),
|
|
1716
2166
|
IncludeIframeOnlyStream: __expectBoolean(output.includeIframeOnlyStream),
|
|
@@ -1722,7 +2172,7 @@ const deserializeAws_restJson1HlsManifest = (output, context) => {
|
|
|
1722
2172
|
: undefined,
|
|
1723
2173
|
};
|
|
1724
2174
|
};
|
|
1725
|
-
|
|
2175
|
+
var deserializeAws_restJson1HlsPackage = function (output, context) {
|
|
1726
2176
|
return {
|
|
1727
2177
|
Encryption: output.encryption != null ? deserializeAws_restJson1HlsEncryption(output.encryption, context) : undefined,
|
|
1728
2178
|
HlsManifests: output.hlsManifests != null
|
|
@@ -1733,14 +2183,14 @@ const deserializeAws_restJson1HlsPackage = (output, context) => {
|
|
|
1733
2183
|
UseAudioRenditionGroup: __expectBoolean(output.useAudioRenditionGroup),
|
|
1734
2184
|
};
|
|
1735
2185
|
};
|
|
1736
|
-
|
|
2186
|
+
var deserializeAws_restJson1MssEncryption = function (output, context) {
|
|
1737
2187
|
return {
|
|
1738
2188
|
SpekeKeyProvider: output.spekeKeyProvider != null
|
|
1739
2189
|
? deserializeAws_restJson1SpekeKeyProvider(output.spekeKeyProvider, context)
|
|
1740
2190
|
: undefined,
|
|
1741
2191
|
};
|
|
1742
2192
|
};
|
|
1743
|
-
|
|
2193
|
+
var deserializeAws_restJson1MssManifest = function (output, context) {
|
|
1744
2194
|
return {
|
|
1745
2195
|
ManifestName: __expectString(output.manifestName),
|
|
1746
2196
|
StreamSelection: output.streamSelection != null
|
|
@@ -1748,7 +2198,7 @@ const deserializeAws_restJson1MssManifest = (output, context) => {
|
|
|
1748
2198
|
: undefined,
|
|
1749
2199
|
};
|
|
1750
2200
|
};
|
|
1751
|
-
|
|
2201
|
+
var deserializeAws_restJson1MssPackage = function (output, context) {
|
|
1752
2202
|
return {
|
|
1753
2203
|
Encryption: output.encryption != null ? deserializeAws_restJson1MssEncryption(output.encryption, context) : undefined,
|
|
1754
2204
|
MssManifests: output.mssManifests != null
|
|
@@ -1757,7 +2207,7 @@ const deserializeAws_restJson1MssPackage = (output, context) => {
|
|
|
1757
2207
|
SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
|
|
1758
2208
|
};
|
|
1759
2209
|
};
|
|
1760
|
-
|
|
2210
|
+
var deserializeAws_restJson1PackagingConfiguration = function (output, context) {
|
|
1761
2211
|
return {
|
|
1762
2212
|
Arn: __expectString(output.arn),
|
|
1763
2213
|
CmafPackage: output.cmafPackage != null ? deserializeAws_restJson1CmafPackage(output.cmafPackage, context) : undefined,
|
|
@@ -1769,7 +2219,7 @@ const deserializeAws_restJson1PackagingConfiguration = (output, context) => {
|
|
|
1769
2219
|
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
1770
2220
|
};
|
|
1771
2221
|
};
|
|
1772
|
-
|
|
2222
|
+
var deserializeAws_restJson1PackagingGroup = function (output, context) {
|
|
1773
2223
|
return {
|
|
1774
2224
|
Arn: __expectString(output.arn),
|
|
1775
2225
|
Authorization: output.authorization != null ? deserializeAws_restJson1Authorization(output.authorization, context) : undefined,
|
|
@@ -1781,64 +2231,81 @@ const deserializeAws_restJson1PackagingGroup = (output, context) => {
|
|
|
1781
2231
|
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
1782
2232
|
};
|
|
1783
2233
|
};
|
|
1784
|
-
|
|
2234
|
+
var deserializeAws_restJson1SpekeKeyProvider = function (output, context) {
|
|
1785
2235
|
return {
|
|
1786
2236
|
RoleArn: __expectString(output.roleArn),
|
|
1787
2237
|
SystemIds: output.systemIds != null ? deserializeAws_restJson1__listOf__string(output.systemIds, context) : undefined,
|
|
1788
2238
|
Url: __expectString(output.url),
|
|
1789
2239
|
};
|
|
1790
2240
|
};
|
|
1791
|
-
|
|
2241
|
+
var deserializeAws_restJson1StreamSelection = function (output, context) {
|
|
1792
2242
|
return {
|
|
1793
2243
|
MaxVideoBitsPerSecond: __expectInt32(output.maxVideoBitsPerSecond),
|
|
1794
2244
|
MinVideoBitsPerSecond: __expectInt32(output.minVideoBitsPerSecond),
|
|
1795
2245
|
StreamOrder: __expectString(output.streamOrder),
|
|
1796
2246
|
};
|
|
1797
2247
|
};
|
|
1798
|
-
|
|
1799
|
-
return Object.entries(output).reduce((acc,
|
|
2248
|
+
var deserializeAws_restJson1Tags = function (output, context) {
|
|
2249
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2250
|
+
var _b;
|
|
2251
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1800
2252
|
if (value === null) {
|
|
1801
2253
|
return acc;
|
|
1802
2254
|
}
|
|
1803
|
-
return {
|
|
1804
|
-
...acc,
|
|
1805
|
-
[key]: __expectString(value),
|
|
1806
|
-
};
|
|
2255
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
1807
2256
|
}, {});
|
|
1808
2257
|
};
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
2258
|
+
var deserializeMetadata = function (output) {
|
|
2259
|
+
var _a, _b;
|
|
2260
|
+
return ({
|
|
2261
|
+
httpStatusCode: output.statusCode,
|
|
2262
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
2263
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2264
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2265
|
+
});
|
|
2266
|
+
};
|
|
2267
|
+
var collectBody = function (streamBody, context) {
|
|
2268
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1816
2269
|
if (streamBody instanceof Uint8Array) {
|
|
1817
2270
|
return Promise.resolve(streamBody);
|
|
1818
2271
|
}
|
|
1819
2272
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1820
2273
|
};
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
value !== null &&
|
|
1824
|
-
value !== "" &&
|
|
1825
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1826
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1827
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1828
|
-
if (encoded.length) {
|
|
1829
|
-
return JSON.parse(encoded);
|
|
1830
|
-
}
|
|
1831
|
-
return {};
|
|
1832
|
-
});
|
|
1833
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1834
|
-
const value = await parseBody(errorBody, context);
|
|
1835
|
-
value.message = value.message ?? value.Message;
|
|
1836
|
-
return value;
|
|
2274
|
+
var collectBodyString = function (streamBody, context) {
|
|
2275
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
1837
2276
|
};
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
2277
|
+
var isSerializableHeaderValue = function (value) {
|
|
2278
|
+
return value !== undefined &&
|
|
2279
|
+
value !== null &&
|
|
2280
|
+
value !== "" &&
|
|
2281
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2282
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2283
|
+
};
|
|
2284
|
+
var parseBody = function (streamBody, context) {
|
|
2285
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2286
|
+
if (encoded.length) {
|
|
2287
|
+
return JSON.parse(encoded);
|
|
2288
|
+
}
|
|
2289
|
+
return {};
|
|
2290
|
+
});
|
|
2291
|
+
};
|
|
2292
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2293
|
+
var value;
|
|
2294
|
+
var _a;
|
|
2295
|
+
return __generator(this, function (_b) {
|
|
2296
|
+
switch (_b.label) {
|
|
2297
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2298
|
+
case 1:
|
|
2299
|
+
value = _b.sent();
|
|
2300
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2301
|
+
return [2, value];
|
|
2302
|
+
}
|
|
2303
|
+
});
|
|
2304
|
+
}); };
|
|
2305
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
2306
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2307
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
2308
|
+
var cleanValue = rawValue;
|
|
1842
2309
|
if (typeof cleanValue === "number") {
|
|
1843
2310
|
cleanValue = cleanValue.toString();
|
|
1844
2311
|
}
|
|
@@ -1853,7 +2320,7 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1853
2320
|
}
|
|
1854
2321
|
return cleanValue;
|
|
1855
2322
|
};
|
|
1856
|
-
|
|
2323
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1857
2324
|
if (headerKey !== undefined) {
|
|
1858
2325
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1859
2326
|
}
|