@aws-sdk/client-mediaconnect 3.30.0 → 3.34.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 +35 -0
- package/dist/cjs/MediaConnectClient.js +13 -13
- package/dist/cjs/MediaConnectClient.js.map +1 -1
- package/dist/cjs/commands/AddFlowMediaStreamsCommand.js +3 -3
- package/dist/cjs/commands/AddFlowMediaStreamsCommand.js.map +1 -1
- package/dist/cjs/commands/AddFlowOutputsCommand.js +3 -3
- package/dist/cjs/commands/AddFlowOutputsCommand.js.map +1 -1
- package/dist/cjs/commands/AddFlowSourcesCommand.js +3 -3
- package/dist/cjs/commands/AddFlowSourcesCommand.js.map +1 -1
- package/dist/cjs/commands/AddFlowVpcInterfacesCommand.js +3 -3
- package/dist/cjs/commands/AddFlowVpcInterfacesCommand.js.map +1 -1
- package/dist/cjs/commands/CreateFlowCommand.js +3 -3
- package/dist/cjs/commands/CreateFlowCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteFlowCommand.js +3 -3
- package/dist/cjs/commands/DeleteFlowCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeFlowCommand.js +3 -3
- package/dist/cjs/commands/DescribeFlowCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeOfferingCommand.js +3 -3
- package/dist/cjs/commands/DescribeOfferingCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeReservationCommand.js +3 -3
- package/dist/cjs/commands/DescribeReservationCommand.js.map +1 -1
- package/dist/cjs/commands/GrantFlowEntitlementsCommand.js +3 -3
- package/dist/cjs/commands/GrantFlowEntitlementsCommand.js.map +1 -1
- package/dist/cjs/commands/ListEntitlementsCommand.js +3 -3
- package/dist/cjs/commands/ListEntitlementsCommand.js.map +1 -1
- package/dist/cjs/commands/ListFlowsCommand.js +3 -3
- package/dist/cjs/commands/ListFlowsCommand.js.map +1 -1
- package/dist/cjs/commands/ListOfferingsCommand.js +3 -3
- package/dist/cjs/commands/ListOfferingsCommand.js.map +1 -1
- package/dist/cjs/commands/ListReservationsCommand.js +3 -3
- package/dist/cjs/commands/ListReservationsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/PurchaseOfferingCommand.js +3 -3
- package/dist/cjs/commands/PurchaseOfferingCommand.js.map +1 -1
- package/dist/cjs/commands/RemoveFlowMediaStreamCommand.js +3 -3
- package/dist/cjs/commands/RemoveFlowMediaStreamCommand.js.map +1 -1
- package/dist/cjs/commands/RemoveFlowOutputCommand.js +3 -3
- package/dist/cjs/commands/RemoveFlowOutputCommand.js.map +1 -1
- package/dist/cjs/commands/RemoveFlowSourceCommand.js +3 -3
- package/dist/cjs/commands/RemoveFlowSourceCommand.js.map +1 -1
- package/dist/cjs/commands/RemoveFlowVpcInterfaceCommand.js +3 -3
- package/dist/cjs/commands/RemoveFlowVpcInterfaceCommand.js.map +1 -1
- package/dist/cjs/commands/RevokeFlowEntitlementCommand.js +3 -3
- package/dist/cjs/commands/RevokeFlowEntitlementCommand.js.map +1 -1
- package/dist/cjs/commands/StartFlowCommand.js +3 -3
- package/dist/cjs/commands/StartFlowCommand.js.map +1 -1
- package/dist/cjs/commands/StopFlowCommand.js +3 -3
- package/dist/cjs/commands/StopFlowCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateFlowCommand.js +3 -3
- package/dist/cjs/commands/UpdateFlowCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateFlowEntitlementCommand.js +3 -3
- package/dist/cjs/commands/UpdateFlowEntitlementCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateFlowMediaStreamCommand.js +3 -3
- package/dist/cjs/commands/UpdateFlowMediaStreamCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateFlowOutputCommand.js +3 -3
- package/dist/cjs/commands/UpdateFlowOutputCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateFlowSourceCommand.js +3 -3
- package/dist/cjs/commands/UpdateFlowSourceCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +41 -41
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +40 -40
- package/dist/cjs/protocols/Aws_restJson1.js +215 -215
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/waiters/waitForFlowActive.js +3 -3
- package/dist/cjs/waiters/waitForFlowActive.js.map +1 -1
- package/dist/cjs/waiters/waitForFlowDeleted.js +3 -3
- package/dist/cjs/waiters/waitForFlowDeleted.js.map +1 -1
- package/dist/cjs/waiters/waitForFlowStandby.js +3 -3
- package/dist/cjs/waiters/waitForFlowStandby.js.map +1 -1
- package/dist/es/MediaConnect.js +1 -4
- package/dist/es/MediaConnect.js.map +1 -1
- package/dist/es/MediaConnectClient.js +1 -9
- package/dist/es/MediaConnectClient.js.map +1 -1
- package/dist/es/commands/AddFlowMediaStreamsCommand.js +2 -27
- package/dist/es/commands/AddFlowMediaStreamsCommand.js.map +1 -1
- package/dist/es/commands/AddFlowOutputsCommand.js +2 -27
- package/dist/es/commands/AddFlowOutputsCommand.js.map +1 -1
- package/dist/es/commands/AddFlowSourcesCommand.js +2 -27
- package/dist/es/commands/AddFlowSourcesCommand.js.map +1 -1
- package/dist/es/commands/AddFlowVpcInterfacesCommand.js +2 -27
- package/dist/es/commands/AddFlowVpcInterfacesCommand.js.map +1 -1
- package/dist/es/commands/CreateFlowCommand.js +2 -27
- package/dist/es/commands/CreateFlowCommand.js.map +1 -1
- package/dist/es/commands/DeleteFlowCommand.js +2 -27
- package/dist/es/commands/DeleteFlowCommand.js.map +1 -1
- package/dist/es/commands/DescribeFlowCommand.js +2 -27
- package/dist/es/commands/DescribeFlowCommand.js.map +1 -1
- package/dist/es/commands/DescribeOfferingCommand.js +2 -27
- package/dist/es/commands/DescribeOfferingCommand.js.map +1 -1
- package/dist/es/commands/DescribeReservationCommand.js +2 -27
- package/dist/es/commands/DescribeReservationCommand.js.map +1 -1
- package/dist/es/commands/GrantFlowEntitlementsCommand.js +2 -27
- package/dist/es/commands/GrantFlowEntitlementsCommand.js.map +1 -1
- package/dist/es/commands/ListEntitlementsCommand.js +2 -27
- package/dist/es/commands/ListEntitlementsCommand.js.map +1 -1
- package/dist/es/commands/ListFlowsCommand.js +2 -27
- package/dist/es/commands/ListFlowsCommand.js.map +1 -1
- package/dist/es/commands/ListOfferingsCommand.js +2 -27
- package/dist/es/commands/ListOfferingsCommand.js.map +1 -1
- package/dist/es/commands/ListReservationsCommand.js +2 -27
- package/dist/es/commands/ListReservationsCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/PurchaseOfferingCommand.js +2 -27
- package/dist/es/commands/PurchaseOfferingCommand.js.map +1 -1
- package/dist/es/commands/RemoveFlowMediaStreamCommand.js +2 -27
- package/dist/es/commands/RemoveFlowMediaStreamCommand.js.map +1 -1
- package/dist/es/commands/RemoveFlowOutputCommand.js +2 -27
- package/dist/es/commands/RemoveFlowOutputCommand.js.map +1 -1
- package/dist/es/commands/RemoveFlowSourceCommand.js +2 -27
- package/dist/es/commands/RemoveFlowSourceCommand.js.map +1 -1
- package/dist/es/commands/RemoveFlowVpcInterfaceCommand.js +2 -27
- package/dist/es/commands/RemoveFlowVpcInterfaceCommand.js.map +1 -1
- package/dist/es/commands/RevokeFlowEntitlementCommand.js +2 -27
- package/dist/es/commands/RevokeFlowEntitlementCommand.js.map +1 -1
- package/dist/es/commands/StartFlowCommand.js +2 -27
- package/dist/es/commands/StartFlowCommand.js.map +1 -1
- package/dist/es/commands/StopFlowCommand.js +2 -27
- package/dist/es/commands/StopFlowCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -27
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -27
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UpdateFlowCommand.js +2 -27
- package/dist/es/commands/UpdateFlowCommand.js.map +1 -1
- package/dist/es/commands/UpdateFlowEntitlementCommand.js +2 -27
- package/dist/es/commands/UpdateFlowEntitlementCommand.js.map +1 -1
- package/dist/es/commands/UpdateFlowMediaStreamCommand.js +2 -27
- package/dist/es/commands/UpdateFlowMediaStreamCommand.js.map +1 -1
- package/dist/es/commands/UpdateFlowOutputCommand.js +2 -27
- package/dist/es/commands/UpdateFlowOutputCommand.js.map +1 -1
- package/dist/es/commands/UpdateFlowSourceCommand.js +2 -27
- package/dist/es/commands/UpdateFlowSourceCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -321
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +40 -40
- package/dist/es/pagination/ListEntitlementsPaginator.js +16 -28
- package/dist/es/pagination/ListEntitlementsPaginator.js.map +1 -1
- package/dist/es/pagination/ListFlowsPaginator.js +16 -28
- package/dist/es/pagination/ListFlowsPaginator.js.map +1 -1
- package/dist/es/pagination/ListOfferingsPaginator.js +16 -28
- package/dist/es/pagination/ListOfferingsPaginator.js.map +1 -1
- package/dist/es/pagination/ListReservationsPaginator.js +16 -28
- package/dist/es/pagination/ListReservationsPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_restJson1.js +931 -936
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/es/waiters/waitForFlowActive.js +13 -22
- package/dist/es/waiters/waitForFlowActive.js.map +1 -1
- package/dist/es/waiters/waitForFlowDeleted.js +12 -21
- package/dist/es/waiters/waitForFlowDeleted.js.map +1 -1
- package/dist/es/waiters/waitForFlowStandby.js +12 -21
- package/dist/es/waiters/waitForFlowStandby.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +40 -40
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1AddFlowMediaStreamsCommand = function (input, c
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -26,7 +26,7 @@ export var serializeAws_restJson1AddFlowMediaStreamsCommand = function (input, c
|
|
|
26
26
|
input.MediaStreams !== null && {
|
|
27
27
|
mediaStreams: serializeAws_restJson1__listOfAddMediaStreamRequest(input.MediaStreams, context),
|
|
28
28
|
})));
|
|
29
|
-
return [2
|
|
29
|
+
return [2, new __HttpRequest({
|
|
30
30
|
protocol: protocol,
|
|
31
31
|
hostname: hostname,
|
|
32
32
|
port: port,
|
|
@@ -42,7 +42,7 @@ export var serializeAws_restJson1AddFlowOutputsCommand = function (input, contex
|
|
|
42
42
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
43
43
|
return __generator(this, function (_c) {
|
|
44
44
|
switch (_c.label) {
|
|
45
|
-
case 0: return [4
|
|
45
|
+
case 0: return [4, context.endpoint()];
|
|
46
46
|
case 1:
|
|
47
47
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
48
48
|
headers = {
|
|
@@ -61,7 +61,7 @@ export var serializeAws_restJson1AddFlowOutputsCommand = function (input, contex
|
|
|
61
61
|
}
|
|
62
62
|
body = JSON.stringify(__assign({}, (input.Outputs !== undefined &&
|
|
63
63
|
input.Outputs !== null && { outputs: serializeAws_restJson1__listOfAddOutputRequest(input.Outputs, context) })));
|
|
64
|
-
return [2
|
|
64
|
+
return [2, new __HttpRequest({
|
|
65
65
|
protocol: protocol,
|
|
66
66
|
hostname: hostname,
|
|
67
67
|
port: port,
|
|
@@ -77,7 +77,7 @@ export var serializeAws_restJson1AddFlowSourcesCommand = function (input, contex
|
|
|
77
77
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
78
78
|
return __generator(this, function (_c) {
|
|
79
79
|
switch (_c.label) {
|
|
80
|
-
case 0: return [4
|
|
80
|
+
case 0: return [4, context.endpoint()];
|
|
81
81
|
case 1:
|
|
82
82
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
83
83
|
headers = {
|
|
@@ -96,7 +96,7 @@ export var serializeAws_restJson1AddFlowSourcesCommand = function (input, contex
|
|
|
96
96
|
}
|
|
97
97
|
body = JSON.stringify(__assign({}, (input.Sources !== undefined &&
|
|
98
98
|
input.Sources !== null && { sources: serializeAws_restJson1__listOfSetSourceRequest(input.Sources, context) })));
|
|
99
|
-
return [2
|
|
99
|
+
return [2, new __HttpRequest({
|
|
100
100
|
protocol: protocol,
|
|
101
101
|
hostname: hostname,
|
|
102
102
|
port: port,
|
|
@@ -112,7 +112,7 @@ export var serializeAws_restJson1AddFlowVpcInterfacesCommand = function (input,
|
|
|
112
112
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
113
113
|
return __generator(this, function (_c) {
|
|
114
114
|
switch (_c.label) {
|
|
115
|
-
case 0: return [4
|
|
115
|
+
case 0: return [4, context.endpoint()];
|
|
116
116
|
case 1:
|
|
117
117
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
118
118
|
headers = {
|
|
@@ -133,7 +133,7 @@ export var serializeAws_restJson1AddFlowVpcInterfacesCommand = function (input,
|
|
|
133
133
|
input.VpcInterfaces !== null && {
|
|
134
134
|
vpcInterfaces: serializeAws_restJson1__listOfVpcInterfaceRequest(input.VpcInterfaces, context),
|
|
135
135
|
})));
|
|
136
|
-
return [2
|
|
136
|
+
return [2, new __HttpRequest({
|
|
137
137
|
protocol: protocol,
|
|
138
138
|
hostname: hostname,
|
|
139
139
|
port: port,
|
|
@@ -149,7 +149,7 @@ export var serializeAws_restJson1CreateFlowCommand = function (input, context) {
|
|
|
149
149
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
150
150
|
return __generator(this, function (_c) {
|
|
151
151
|
switch (_c.label) {
|
|
152
|
-
case 0: return [4
|
|
152
|
+
case 0: return [4, context.endpoint()];
|
|
153
153
|
case 1:
|
|
154
154
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
155
155
|
headers = {
|
|
@@ -173,7 +173,7 @@ export var serializeAws_restJson1CreateFlowCommand = function (input, context) {
|
|
|
173
173
|
input.VpcInterfaces !== null && {
|
|
174
174
|
vpcInterfaces: serializeAws_restJson1__listOfVpcInterfaceRequest(input.VpcInterfaces, context),
|
|
175
175
|
})));
|
|
176
|
-
return [2
|
|
176
|
+
return [2, new __HttpRequest({
|
|
177
177
|
protocol: protocol,
|
|
178
178
|
hostname: hostname,
|
|
179
179
|
port: port,
|
|
@@ -189,7 +189,7 @@ export var serializeAws_restJson1DeleteFlowCommand = function (input, context) {
|
|
|
189
189
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
190
190
|
return __generator(this, function (_c) {
|
|
191
191
|
switch (_c.label) {
|
|
192
|
-
case 0: return [4
|
|
192
|
+
case 0: return [4, context.endpoint()];
|
|
193
193
|
case 1:
|
|
194
194
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
195
195
|
headers = {};
|
|
@@ -204,7 +204,7 @@ export var serializeAws_restJson1DeleteFlowCommand = function (input, context) {
|
|
|
204
204
|
else {
|
|
205
205
|
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
206
206
|
}
|
|
207
|
-
return [2
|
|
207
|
+
return [2, new __HttpRequest({
|
|
208
208
|
protocol: protocol,
|
|
209
209
|
hostname: hostname,
|
|
210
210
|
port: port,
|
|
@@ -220,7 +220,7 @@ export var serializeAws_restJson1DescribeFlowCommand = function (input, context)
|
|
|
220
220
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
221
221
|
return __generator(this, function (_c) {
|
|
222
222
|
switch (_c.label) {
|
|
223
|
-
case 0: return [4
|
|
223
|
+
case 0: return [4, context.endpoint()];
|
|
224
224
|
case 1:
|
|
225
225
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
226
226
|
headers = {};
|
|
@@ -235,7 +235,7 @@ export var serializeAws_restJson1DescribeFlowCommand = function (input, context)
|
|
|
235
235
|
else {
|
|
236
236
|
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
237
237
|
}
|
|
238
|
-
return [2
|
|
238
|
+
return [2, new __HttpRequest({
|
|
239
239
|
protocol: protocol,
|
|
240
240
|
hostname: hostname,
|
|
241
241
|
port: port,
|
|
@@ -251,7 +251,7 @@ export var serializeAws_restJson1DescribeOfferingCommand = function (input, cont
|
|
|
251
251
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
252
252
|
return __generator(this, function (_c) {
|
|
253
253
|
switch (_c.label) {
|
|
254
|
-
case 0: return [4
|
|
254
|
+
case 0: return [4, context.endpoint()];
|
|
255
255
|
case 1:
|
|
256
256
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
257
257
|
headers = {};
|
|
@@ -266,7 +266,7 @@ export var serializeAws_restJson1DescribeOfferingCommand = function (input, cont
|
|
|
266
266
|
else {
|
|
267
267
|
throw new Error("No value provided for input HTTP label: OfferingArn.");
|
|
268
268
|
}
|
|
269
|
-
return [2
|
|
269
|
+
return [2, new __HttpRequest({
|
|
270
270
|
protocol: protocol,
|
|
271
271
|
hostname: hostname,
|
|
272
272
|
port: port,
|
|
@@ -282,7 +282,7 @@ export var serializeAws_restJson1DescribeReservationCommand = function (input, c
|
|
|
282
282
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
283
283
|
return __generator(this, function (_c) {
|
|
284
284
|
switch (_c.label) {
|
|
285
|
-
case 0: return [4
|
|
285
|
+
case 0: return [4, context.endpoint()];
|
|
286
286
|
case 1:
|
|
287
287
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
288
288
|
headers = {};
|
|
@@ -297,7 +297,7 @@ export var serializeAws_restJson1DescribeReservationCommand = function (input, c
|
|
|
297
297
|
else {
|
|
298
298
|
throw new Error("No value provided for input HTTP label: ReservationArn.");
|
|
299
299
|
}
|
|
300
|
-
return [2
|
|
300
|
+
return [2, new __HttpRequest({
|
|
301
301
|
protocol: protocol,
|
|
302
302
|
hostname: hostname,
|
|
303
303
|
port: port,
|
|
@@ -313,7 +313,7 @@ export var serializeAws_restJson1GrantFlowEntitlementsCommand = function (input,
|
|
|
313
313
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
314
314
|
return __generator(this, function (_c) {
|
|
315
315
|
switch (_c.label) {
|
|
316
|
-
case 0: return [4
|
|
316
|
+
case 0: return [4, context.endpoint()];
|
|
317
317
|
case 1:
|
|
318
318
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
319
319
|
headers = {
|
|
@@ -334,7 +334,7 @@ export var serializeAws_restJson1GrantFlowEntitlementsCommand = function (input,
|
|
|
334
334
|
input.Entitlements !== null && {
|
|
335
335
|
entitlements: serializeAws_restJson1__listOfGrantEntitlementRequest(input.Entitlements, context),
|
|
336
336
|
})));
|
|
337
|
-
return [2
|
|
337
|
+
return [2, new __HttpRequest({
|
|
338
338
|
protocol: protocol,
|
|
339
339
|
hostname: hostname,
|
|
340
340
|
port: port,
|
|
@@ -350,13 +350,13 @@ export var serializeAws_restJson1ListEntitlementsCommand = function (input, cont
|
|
|
350
350
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
351
351
|
return __generator(this, function (_c) {
|
|
352
352
|
switch (_c.label) {
|
|
353
|
-
case 0: return [4
|
|
353
|
+
case 0: return [4, context.endpoint()];
|
|
354
354
|
case 1:
|
|
355
355
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
356
356
|
headers = {};
|
|
357
357
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/entitlements";
|
|
358
358
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
359
|
-
return [2
|
|
359
|
+
return [2, new __HttpRequest({
|
|
360
360
|
protocol: protocol,
|
|
361
361
|
hostname: hostname,
|
|
362
362
|
port: port,
|
|
@@ -373,13 +373,13 @@ export var serializeAws_restJson1ListFlowsCommand = function (input, context) {
|
|
|
373
373
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
374
374
|
return __generator(this, function (_c) {
|
|
375
375
|
switch (_c.label) {
|
|
376
|
-
case 0: return [4
|
|
376
|
+
case 0: return [4, context.endpoint()];
|
|
377
377
|
case 1:
|
|
378
378
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
379
379
|
headers = {};
|
|
380
380
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows";
|
|
381
381
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
382
|
-
return [2
|
|
382
|
+
return [2, new __HttpRequest({
|
|
383
383
|
protocol: protocol,
|
|
384
384
|
hostname: hostname,
|
|
385
385
|
port: port,
|
|
@@ -396,13 +396,13 @@ export var serializeAws_restJson1ListOfferingsCommand = function (input, context
|
|
|
396
396
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
397
397
|
return __generator(this, function (_c) {
|
|
398
398
|
switch (_c.label) {
|
|
399
|
-
case 0: return [4
|
|
399
|
+
case 0: return [4, context.endpoint()];
|
|
400
400
|
case 1:
|
|
401
401
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
402
402
|
headers = {};
|
|
403
403
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/offerings";
|
|
404
404
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
405
|
-
return [2
|
|
405
|
+
return [2, new __HttpRequest({
|
|
406
406
|
protocol: protocol,
|
|
407
407
|
hostname: hostname,
|
|
408
408
|
port: port,
|
|
@@ -419,13 +419,13 @@ export var serializeAws_restJson1ListReservationsCommand = function (input, cont
|
|
|
419
419
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
420
420
|
return __generator(this, function (_c) {
|
|
421
421
|
switch (_c.label) {
|
|
422
|
-
case 0: return [4
|
|
422
|
+
case 0: return [4, context.endpoint()];
|
|
423
423
|
case 1:
|
|
424
424
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
425
425
|
headers = {};
|
|
426
426
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/reservations";
|
|
427
427
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
428
|
-
return [2
|
|
428
|
+
return [2, new __HttpRequest({
|
|
429
429
|
protocol: protocol,
|
|
430
430
|
hostname: hostname,
|
|
431
431
|
port: port,
|
|
@@ -442,7 +442,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
442
442
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
443
443
|
return __generator(this, function (_c) {
|
|
444
444
|
switch (_c.label) {
|
|
445
|
-
case 0: return [4
|
|
445
|
+
case 0: return [4, context.endpoint()];
|
|
446
446
|
case 1:
|
|
447
447
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
448
448
|
headers = {};
|
|
@@ -457,7 +457,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
457
457
|
else {
|
|
458
458
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
459
459
|
}
|
|
460
|
-
return [2
|
|
460
|
+
return [2, new __HttpRequest({
|
|
461
461
|
protocol: protocol,
|
|
462
462
|
hostname: hostname,
|
|
463
463
|
port: port,
|
|
@@ -473,7 +473,7 @@ export var serializeAws_restJson1PurchaseOfferingCommand = function (input, cont
|
|
|
473
473
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
474
474
|
return __generator(this, function (_c) {
|
|
475
475
|
switch (_c.label) {
|
|
476
|
-
case 0: return [4
|
|
476
|
+
case 0: return [4, context.endpoint()];
|
|
477
477
|
case 1:
|
|
478
478
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
479
479
|
headers = {
|
|
@@ -492,7 +492,7 @@ export var serializeAws_restJson1PurchaseOfferingCommand = function (input, cont
|
|
|
492
492
|
}
|
|
493
493
|
body = JSON.stringify(__assign(__assign({}, (input.ReservationName !== undefined &&
|
|
494
494
|
input.ReservationName !== null && { reservationName: input.ReservationName })), (input.Start !== undefined && input.Start !== null && { start: input.Start })));
|
|
495
|
-
return [2
|
|
495
|
+
return [2, new __HttpRequest({
|
|
496
496
|
protocol: protocol,
|
|
497
497
|
hostname: hostname,
|
|
498
498
|
port: port,
|
|
@@ -508,7 +508,7 @@ export var serializeAws_restJson1RemoveFlowMediaStreamCommand = function (input,
|
|
|
508
508
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
509
509
|
return __generator(this, function (_c) {
|
|
510
510
|
switch (_c.label) {
|
|
511
|
-
case 0: return [4
|
|
511
|
+
case 0: return [4, context.endpoint()];
|
|
512
512
|
case 1:
|
|
513
513
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
514
514
|
headers = {};
|
|
@@ -534,7 +534,7 @@ export var serializeAws_restJson1RemoveFlowMediaStreamCommand = function (input,
|
|
|
534
534
|
else {
|
|
535
535
|
throw new Error("No value provided for input HTTP label: MediaStreamName.");
|
|
536
536
|
}
|
|
537
|
-
return [2
|
|
537
|
+
return [2, new __HttpRequest({
|
|
538
538
|
protocol: protocol,
|
|
539
539
|
hostname: hostname,
|
|
540
540
|
port: port,
|
|
@@ -550,7 +550,7 @@ export var serializeAws_restJson1RemoveFlowOutputCommand = function (input, cont
|
|
|
550
550
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
551
551
|
return __generator(this, function (_c) {
|
|
552
552
|
switch (_c.label) {
|
|
553
|
-
case 0: return [4
|
|
553
|
+
case 0: return [4, context.endpoint()];
|
|
554
554
|
case 1:
|
|
555
555
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
556
556
|
headers = {};
|
|
@@ -575,7 +575,7 @@ export var serializeAws_restJson1RemoveFlowOutputCommand = function (input, cont
|
|
|
575
575
|
else {
|
|
576
576
|
throw new Error("No value provided for input HTTP label: OutputArn.");
|
|
577
577
|
}
|
|
578
|
-
return [2
|
|
578
|
+
return [2, new __HttpRequest({
|
|
579
579
|
protocol: protocol,
|
|
580
580
|
hostname: hostname,
|
|
581
581
|
port: port,
|
|
@@ -591,7 +591,7 @@ export var serializeAws_restJson1RemoveFlowSourceCommand = function (input, cont
|
|
|
591
591
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
592
592
|
return __generator(this, function (_c) {
|
|
593
593
|
switch (_c.label) {
|
|
594
|
-
case 0: return [4
|
|
594
|
+
case 0: return [4, context.endpoint()];
|
|
595
595
|
case 1:
|
|
596
596
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
597
597
|
headers = {};
|
|
@@ -616,7 +616,7 @@ export var serializeAws_restJson1RemoveFlowSourceCommand = function (input, cont
|
|
|
616
616
|
else {
|
|
617
617
|
throw new Error("No value provided for input HTTP label: SourceArn.");
|
|
618
618
|
}
|
|
619
|
-
return [2
|
|
619
|
+
return [2, new __HttpRequest({
|
|
620
620
|
protocol: protocol,
|
|
621
621
|
hostname: hostname,
|
|
622
622
|
port: port,
|
|
@@ -632,7 +632,7 @@ export var serializeAws_restJson1RemoveFlowVpcInterfaceCommand = function (input
|
|
|
632
632
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
633
633
|
return __generator(this, function (_c) {
|
|
634
634
|
switch (_c.label) {
|
|
635
|
-
case 0: return [4
|
|
635
|
+
case 0: return [4, context.endpoint()];
|
|
636
636
|
case 1:
|
|
637
637
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
638
638
|
headers = {};
|
|
@@ -658,7 +658,7 @@ export var serializeAws_restJson1RemoveFlowVpcInterfaceCommand = function (input
|
|
|
658
658
|
else {
|
|
659
659
|
throw new Error("No value provided for input HTTP label: VpcInterfaceName.");
|
|
660
660
|
}
|
|
661
|
-
return [2
|
|
661
|
+
return [2, new __HttpRequest({
|
|
662
662
|
protocol: protocol,
|
|
663
663
|
hostname: hostname,
|
|
664
664
|
port: port,
|
|
@@ -674,7 +674,7 @@ export var serializeAws_restJson1RevokeFlowEntitlementCommand = function (input,
|
|
|
674
674
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
675
675
|
return __generator(this, function (_c) {
|
|
676
676
|
switch (_c.label) {
|
|
677
|
-
case 0: return [4
|
|
677
|
+
case 0: return [4, context.endpoint()];
|
|
678
678
|
case 1:
|
|
679
679
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
680
680
|
headers = {};
|
|
@@ -700,7 +700,7 @@ export var serializeAws_restJson1RevokeFlowEntitlementCommand = function (input,
|
|
|
700
700
|
else {
|
|
701
701
|
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
702
702
|
}
|
|
703
|
-
return [2
|
|
703
|
+
return [2, new __HttpRequest({
|
|
704
704
|
protocol: protocol,
|
|
705
705
|
hostname: hostname,
|
|
706
706
|
port: port,
|
|
@@ -716,7 +716,7 @@ export var serializeAws_restJson1StartFlowCommand = function (input, context) {
|
|
|
716
716
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
717
717
|
return __generator(this, function (_c) {
|
|
718
718
|
switch (_c.label) {
|
|
719
|
-
case 0: return [4
|
|
719
|
+
case 0: return [4, context.endpoint()];
|
|
720
720
|
case 1:
|
|
721
721
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
722
722
|
headers = {};
|
|
@@ -731,7 +731,7 @@ export var serializeAws_restJson1StartFlowCommand = function (input, context) {
|
|
|
731
731
|
else {
|
|
732
732
|
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
733
733
|
}
|
|
734
|
-
return [2
|
|
734
|
+
return [2, new __HttpRequest({
|
|
735
735
|
protocol: protocol,
|
|
736
736
|
hostname: hostname,
|
|
737
737
|
port: port,
|
|
@@ -747,7 +747,7 @@ export var serializeAws_restJson1StopFlowCommand = function (input, context) { r
|
|
|
747
747
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
748
748
|
return __generator(this, function (_c) {
|
|
749
749
|
switch (_c.label) {
|
|
750
|
-
case 0: return [4
|
|
750
|
+
case 0: return [4, context.endpoint()];
|
|
751
751
|
case 1:
|
|
752
752
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
753
753
|
headers = {};
|
|
@@ -762,7 +762,7 @@ export var serializeAws_restJson1StopFlowCommand = function (input, context) { r
|
|
|
762
762
|
else {
|
|
763
763
|
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
764
764
|
}
|
|
765
|
-
return [2
|
|
765
|
+
return [2, new __HttpRequest({
|
|
766
766
|
protocol: protocol,
|
|
767
767
|
hostname: hostname,
|
|
768
768
|
port: port,
|
|
@@ -778,7 +778,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
778
778
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
779
779
|
return __generator(this, function (_c) {
|
|
780
780
|
switch (_c.label) {
|
|
781
|
-
case 0: return [4
|
|
781
|
+
case 0: return [4, context.endpoint()];
|
|
782
782
|
case 1:
|
|
783
783
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
784
784
|
headers = {
|
|
@@ -797,7 +797,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
797
797
|
}
|
|
798
798
|
body = JSON.stringify(__assign({}, (input.Tags !== undefined &&
|
|
799
799
|
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
800
|
-
return [2
|
|
800
|
+
return [2, new __HttpRequest({
|
|
801
801
|
protocol: protocol,
|
|
802
802
|
hostname: hostname,
|
|
803
803
|
port: port,
|
|
@@ -813,7 +813,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
813
813
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
814
814
|
return __generator(this, function (_c) {
|
|
815
815
|
switch (_c.label) {
|
|
816
|
-
case 0: return [4
|
|
816
|
+
case 0: return [4, context.endpoint()];
|
|
817
817
|
case 1:
|
|
818
818
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
819
819
|
headers = {};
|
|
@@ -829,7 +829,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
829
829
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
830
830
|
}
|
|
831
831
|
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
832
|
-
return [2
|
|
832
|
+
return [2, new __HttpRequest({
|
|
833
833
|
protocol: protocol,
|
|
834
834
|
hostname: hostname,
|
|
835
835
|
port: port,
|
|
@@ -846,7 +846,7 @@ export var serializeAws_restJson1UpdateFlowCommand = function (input, context) {
|
|
|
846
846
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
847
847
|
return __generator(this, function (_c) {
|
|
848
848
|
switch (_c.label) {
|
|
849
|
-
case 0: return [4
|
|
849
|
+
case 0: return [4, context.endpoint()];
|
|
850
850
|
case 1:
|
|
851
851
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
852
852
|
headers = {
|
|
@@ -867,7 +867,7 @@ export var serializeAws_restJson1UpdateFlowCommand = function (input, context) {
|
|
|
867
867
|
input.SourceFailoverConfig !== null && {
|
|
868
868
|
sourceFailoverConfig: serializeAws_restJson1UpdateFailoverConfig(input.SourceFailoverConfig, context),
|
|
869
869
|
})));
|
|
870
|
-
return [2
|
|
870
|
+
return [2, new __HttpRequest({
|
|
871
871
|
protocol: protocol,
|
|
872
872
|
hostname: hostname,
|
|
873
873
|
port: port,
|
|
@@ -883,7 +883,7 @@ export var serializeAws_restJson1UpdateFlowEntitlementCommand = function (input,
|
|
|
883
883
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
884
884
|
return __generator(this, function (_c) {
|
|
885
885
|
switch (_c.label) {
|
|
886
|
-
case 0: return [4
|
|
886
|
+
case 0: return [4, context.endpoint()];
|
|
887
887
|
case 1:
|
|
888
888
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
889
889
|
headers = {
|
|
@@ -917,7 +917,7 @@ export var serializeAws_restJson1UpdateFlowEntitlementCommand = function (input,
|
|
|
917
917
|
input.Subscribers !== null && {
|
|
918
918
|
subscribers: serializeAws_restJson1__listOf__string(input.Subscribers, context),
|
|
919
919
|
})));
|
|
920
|
-
return [2
|
|
920
|
+
return [2, new __HttpRequest({
|
|
921
921
|
protocol: protocol,
|
|
922
922
|
hostname: hostname,
|
|
923
923
|
port: port,
|
|
@@ -933,7 +933,7 @@ export var serializeAws_restJson1UpdateFlowMediaStreamCommand = function (input,
|
|
|
933
933
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
934
934
|
return __generator(this, function (_c) {
|
|
935
935
|
switch (_c.label) {
|
|
936
|
-
case 0: return [4
|
|
936
|
+
case 0: return [4, context.endpoint()];
|
|
937
937
|
case 1:
|
|
938
938
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
939
939
|
headers = {
|
|
@@ -966,7 +966,7 @@ export var serializeAws_restJson1UpdateFlowMediaStreamCommand = function (input,
|
|
|
966
966
|
attributes: serializeAws_restJson1MediaStreamAttributesRequest(input.Attributes, context),
|
|
967
967
|
})), (input.ClockRate !== undefined && input.ClockRate !== null && { clockRate: input.ClockRate })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.MediaStreamType !== undefined &&
|
|
968
968
|
input.MediaStreamType !== null && { mediaStreamType: input.MediaStreamType })), (input.VideoFormat !== undefined && input.VideoFormat !== null && { videoFormat: input.VideoFormat })));
|
|
969
|
-
return [2
|
|
969
|
+
return [2, new __HttpRequest({
|
|
970
970
|
protocol: protocol,
|
|
971
971
|
hostname: hostname,
|
|
972
972
|
port: port,
|
|
@@ -982,7 +982,7 @@ export var serializeAws_restJson1UpdateFlowOutputCommand = function (input, cont
|
|
|
982
982
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
983
983
|
return __generator(this, function (_c) {
|
|
984
984
|
switch (_c.label) {
|
|
985
|
-
case 0: return [4
|
|
985
|
+
case 0: return [4, context.endpoint()];
|
|
986
986
|
case 1:
|
|
987
987
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
988
988
|
headers = {
|
|
@@ -1021,7 +1021,7 @@ export var serializeAws_restJson1UpdateFlowOutputCommand = function (input, cont
|
|
|
1021
1021
|
input.VpcInterfaceAttachment !== null && {
|
|
1022
1022
|
vpcInterfaceAttachment: serializeAws_restJson1VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
|
|
1023
1023
|
})));
|
|
1024
|
-
return [2
|
|
1024
|
+
return [2, new __HttpRequest({
|
|
1025
1025
|
protocol: protocol,
|
|
1026
1026
|
hostname: hostname,
|
|
1027
1027
|
port: port,
|
|
@@ -1037,7 +1037,7 @@ export var serializeAws_restJson1UpdateFlowSourceCommand = function (input, cont
|
|
|
1037
1037
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
1038
1038
|
return __generator(this, function (_c) {
|
|
1039
1039
|
switch (_c.label) {
|
|
1040
|
-
case 0: return [4
|
|
1040
|
+
case 0: return [4, context.endpoint()];
|
|
1041
1041
|
case 1:
|
|
1042
1042
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1043
1043
|
headers = {
|
|
@@ -1071,7 +1071,7 @@ export var serializeAws_restJson1UpdateFlowSourceCommand = function (input, cont
|
|
|
1071
1071
|
mediaStreamSourceConfigurations: serializeAws_restJson1__listOfMediaStreamSourceConfigurationRequest(input.MediaStreamSourceConfigurations, context),
|
|
1072
1072
|
})), (input.MinLatency !== undefined && input.MinLatency !== null && { minLatency: input.MinLatency })), (input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol })), (input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId })), (input.VpcInterfaceName !== undefined &&
|
|
1073
1073
|
input.VpcInterfaceName !== null && { vpcInterfaceName: input.VpcInterfaceName })), (input.WhitelistCidr !== undefined && input.WhitelistCidr !== null && { whitelistCidr: input.WhitelistCidr })));
|
|
1074
|
-
return [2
|
|
1074
|
+
return [2, new __HttpRequest({
|
|
1075
1075
|
protocol: protocol,
|
|
1076
1076
|
hostname: hostname,
|
|
1077
1077
|
port: port,
|
|
@@ -1089,7 +1089,7 @@ export var deserializeAws_restJson1AddFlowMediaStreamsCommand = function (output
|
|
|
1089
1089
|
switch (_c.label) {
|
|
1090
1090
|
case 0:
|
|
1091
1091
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1092
|
-
return [2
|
|
1092
|
+
return [2, deserializeAws_restJson1AddFlowMediaStreamsCommandError(output, context)];
|
|
1093
1093
|
}
|
|
1094
1094
|
contents = {
|
|
1095
1095
|
$metadata: deserializeMetadata(output),
|
|
@@ -1098,7 +1098,7 @@ export var deserializeAws_restJson1AddFlowMediaStreamsCommand = function (output
|
|
|
1098
1098
|
};
|
|
1099
1099
|
_a = __expectNonNull;
|
|
1100
1100
|
_b = __expectObject;
|
|
1101
|
-
return [4
|
|
1101
|
+
return [4, parseBody(output.body, context)];
|
|
1102
1102
|
case 1:
|
|
1103
1103
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1104
1104
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -1107,7 +1107,7 @@ export var deserializeAws_restJson1AddFlowMediaStreamsCommand = function (output
|
|
|
1107
1107
|
if (data.mediaStreams !== undefined && data.mediaStreams !== null) {
|
|
1108
1108
|
contents.MediaStreams = deserializeAws_restJson1__listOfMediaStream(data.mediaStreams, context);
|
|
1109
1109
|
}
|
|
1110
|
-
return [2
|
|
1110
|
+
return [2, Promise.resolve(contents)];
|
|
1111
1111
|
}
|
|
1112
1112
|
});
|
|
1113
1113
|
}); };
|
|
@@ -1119,63 +1119,63 @@ var deserializeAws_restJson1AddFlowMediaStreamsCommandError = function (output,
|
|
|
1119
1119
|
case 0:
|
|
1120
1120
|
_a = [__assign({}, output)];
|
|
1121
1121
|
_j = {};
|
|
1122
|
-
return [4
|
|
1122
|
+
return [4, parseBody(output.body, context)];
|
|
1123
1123
|
case 1:
|
|
1124
1124
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1125
1125
|
errorCode = "UnknownError";
|
|
1126
1126
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1127
1127
|
_b = errorCode;
|
|
1128
1128
|
switch (_b) {
|
|
1129
|
-
case "BadRequestException": return [3
|
|
1130
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
1131
|
-
case "ForbiddenException": return [3
|
|
1132
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
1133
|
-
case "InternalServerErrorException": return [3
|
|
1134
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
1135
|
-
case "NotFoundException": return [3
|
|
1136
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
1137
|
-
case "ServiceUnavailableException": return [3
|
|
1138
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
1139
|
-
case "TooManyRequestsException": return [3
|
|
1140
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
1141
|
-
}
|
|
1142
|
-
return [3
|
|
1129
|
+
case "BadRequestException": return [3, 2];
|
|
1130
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
1131
|
+
case "ForbiddenException": return [3, 4];
|
|
1132
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
1133
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1134
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
1135
|
+
case "NotFoundException": return [3, 8];
|
|
1136
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
1137
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1138
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
1139
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1140
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
1141
|
+
}
|
|
1142
|
+
return [3, 14];
|
|
1143
1143
|
case 2:
|
|
1144
1144
|
_c = [{}];
|
|
1145
|
-
return [4
|
|
1145
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1146
1146
|
case 3:
|
|
1147
1147
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1148
|
-
return [3
|
|
1148
|
+
return [3, 15];
|
|
1149
1149
|
case 4:
|
|
1150
1150
|
_d = [{}];
|
|
1151
|
-
return [4
|
|
1151
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1152
1152
|
case 5:
|
|
1153
1153
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1154
|
-
return [3
|
|
1154
|
+
return [3, 15];
|
|
1155
1155
|
case 6:
|
|
1156
1156
|
_e = [{}];
|
|
1157
|
-
return [4
|
|
1157
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1158
1158
|
case 7:
|
|
1159
1159
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1160
|
-
return [3
|
|
1160
|
+
return [3, 15];
|
|
1161
1161
|
case 8:
|
|
1162
1162
|
_f = [{}];
|
|
1163
|
-
return [4
|
|
1163
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1164
1164
|
case 9:
|
|
1165
1165
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1166
|
-
return [3
|
|
1166
|
+
return [3, 15];
|
|
1167
1167
|
case 10:
|
|
1168
1168
|
_g = [{}];
|
|
1169
|
-
return [4
|
|
1169
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1170
1170
|
case 11:
|
|
1171
1171
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1172
|
-
return [3
|
|
1172
|
+
return [3, 15];
|
|
1173
1173
|
case 12:
|
|
1174
1174
|
_h = [{}];
|
|
1175
|
-
return [4
|
|
1175
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1176
1176
|
case 13:
|
|
1177
1177
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1178
|
-
return [3
|
|
1178
|
+
return [3, 15];
|
|
1179
1179
|
case 14:
|
|
1180
1180
|
parsedBody = parsedOutput.body;
|
|
1181
1181
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1185,7 +1185,7 @@ var deserializeAws_restJson1AddFlowMediaStreamsCommandError = function (output,
|
|
|
1185
1185
|
message = response.message || response.Message || errorCode;
|
|
1186
1186
|
response.message = message;
|
|
1187
1187
|
delete response.Message;
|
|
1188
|
-
return [2
|
|
1188
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1189
1189
|
}
|
|
1190
1190
|
});
|
|
1191
1191
|
}); };
|
|
@@ -1195,7 +1195,7 @@ export var deserializeAws_restJson1AddFlowOutputsCommand = function (output, con
|
|
|
1195
1195
|
switch (_c.label) {
|
|
1196
1196
|
case 0:
|
|
1197
1197
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1198
|
-
return [2
|
|
1198
|
+
return [2, deserializeAws_restJson1AddFlowOutputsCommandError(output, context)];
|
|
1199
1199
|
}
|
|
1200
1200
|
contents = {
|
|
1201
1201
|
$metadata: deserializeMetadata(output),
|
|
@@ -1204,7 +1204,7 @@ export var deserializeAws_restJson1AddFlowOutputsCommand = function (output, con
|
|
|
1204
1204
|
};
|
|
1205
1205
|
_a = __expectNonNull;
|
|
1206
1206
|
_b = __expectObject;
|
|
1207
|
-
return [4
|
|
1207
|
+
return [4, parseBody(output.body, context)];
|
|
1208
1208
|
case 1:
|
|
1209
1209
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1210
1210
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -1213,7 +1213,7 @@ export var deserializeAws_restJson1AddFlowOutputsCommand = function (output, con
|
|
|
1213
1213
|
if (data.outputs !== undefined && data.outputs !== null) {
|
|
1214
1214
|
contents.Outputs = deserializeAws_restJson1__listOfOutput(data.outputs, context);
|
|
1215
1215
|
}
|
|
1216
|
-
return [2
|
|
1216
|
+
return [2, Promise.resolve(contents)];
|
|
1217
1217
|
}
|
|
1218
1218
|
});
|
|
1219
1219
|
}); };
|
|
@@ -1225,71 +1225,71 @@ var deserializeAws_restJson1AddFlowOutputsCommandError = function (output, conte
|
|
|
1225
1225
|
case 0:
|
|
1226
1226
|
_a = [__assign({}, output)];
|
|
1227
1227
|
_k = {};
|
|
1228
|
-
return [4
|
|
1228
|
+
return [4, parseBody(output.body, context)];
|
|
1229
1229
|
case 1:
|
|
1230
1230
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1231
1231
|
errorCode = "UnknownError";
|
|
1232
1232
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
1233
|
_b = errorCode;
|
|
1234
1234
|
switch (_b) {
|
|
1235
|
-
case "AddFlowOutputs420Exception": return [3
|
|
1236
|
-
case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception": return [3
|
|
1237
|
-
case "BadRequestException": return [3
|
|
1238
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
1239
|
-
case "ForbiddenException": return [3
|
|
1240
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
1241
|
-
case "InternalServerErrorException": return [3
|
|
1242
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
1243
|
-
case "NotFoundException": return [3
|
|
1244
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
1245
|
-
case "ServiceUnavailableException": return [3
|
|
1246
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
1247
|
-
case "TooManyRequestsException": return [3
|
|
1248
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
1249
|
-
}
|
|
1250
|
-
return [3
|
|
1235
|
+
case "AddFlowOutputs420Exception": return [3, 2];
|
|
1236
|
+
case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception": return [3, 2];
|
|
1237
|
+
case "BadRequestException": return [3, 4];
|
|
1238
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 4];
|
|
1239
|
+
case "ForbiddenException": return [3, 6];
|
|
1240
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 6];
|
|
1241
|
+
case "InternalServerErrorException": return [3, 8];
|
|
1242
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 8];
|
|
1243
|
+
case "NotFoundException": return [3, 10];
|
|
1244
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 10];
|
|
1245
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1246
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 12];
|
|
1247
|
+
case "TooManyRequestsException": return [3, 14];
|
|
1248
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 14];
|
|
1249
|
+
}
|
|
1250
|
+
return [3, 16];
|
|
1251
1251
|
case 2:
|
|
1252
1252
|
_c = [{}];
|
|
1253
|
-
return [4
|
|
1253
|
+
return [4, deserializeAws_restJson1AddFlowOutputs420ExceptionResponse(parsedOutput, context)];
|
|
1254
1254
|
case 3:
|
|
1255
1255
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1256
|
-
return [3
|
|
1256
|
+
return [3, 17];
|
|
1257
1257
|
case 4:
|
|
1258
1258
|
_d = [{}];
|
|
1259
|
-
return [4
|
|
1259
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1260
1260
|
case 5:
|
|
1261
1261
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1262
|
-
return [3
|
|
1262
|
+
return [3, 17];
|
|
1263
1263
|
case 6:
|
|
1264
1264
|
_e = [{}];
|
|
1265
|
-
return [4
|
|
1265
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1266
1266
|
case 7:
|
|
1267
1267
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1268
|
-
return [3
|
|
1268
|
+
return [3, 17];
|
|
1269
1269
|
case 8:
|
|
1270
1270
|
_f = [{}];
|
|
1271
|
-
return [4
|
|
1271
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1272
1272
|
case 9:
|
|
1273
1273
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1274
|
-
return [3
|
|
1274
|
+
return [3, 17];
|
|
1275
1275
|
case 10:
|
|
1276
1276
|
_g = [{}];
|
|
1277
|
-
return [4
|
|
1277
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1278
1278
|
case 11:
|
|
1279
1279
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1280
|
-
return [3
|
|
1280
|
+
return [3, 17];
|
|
1281
1281
|
case 12:
|
|
1282
1282
|
_h = [{}];
|
|
1283
|
-
return [4
|
|
1283
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1284
1284
|
case 13:
|
|
1285
1285
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1286
|
-
return [3
|
|
1286
|
+
return [3, 17];
|
|
1287
1287
|
case 14:
|
|
1288
1288
|
_j = [{}];
|
|
1289
|
-
return [4
|
|
1289
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1290
1290
|
case 15:
|
|
1291
1291
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1292
|
-
return [3
|
|
1292
|
+
return [3, 17];
|
|
1293
1293
|
case 16:
|
|
1294
1294
|
parsedBody = parsedOutput.body;
|
|
1295
1295
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1299,7 +1299,7 @@ var deserializeAws_restJson1AddFlowOutputsCommandError = function (output, conte
|
|
|
1299
1299
|
message = response.message || response.Message || errorCode;
|
|
1300
1300
|
response.message = message;
|
|
1301
1301
|
delete response.Message;
|
|
1302
|
-
return [2
|
|
1302
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1303
1303
|
}
|
|
1304
1304
|
});
|
|
1305
1305
|
}); };
|
|
@@ -1309,7 +1309,7 @@ export var deserializeAws_restJson1AddFlowSourcesCommand = function (output, con
|
|
|
1309
1309
|
switch (_c.label) {
|
|
1310
1310
|
case 0:
|
|
1311
1311
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1312
|
-
return [2
|
|
1312
|
+
return [2, deserializeAws_restJson1AddFlowSourcesCommandError(output, context)];
|
|
1313
1313
|
}
|
|
1314
1314
|
contents = {
|
|
1315
1315
|
$metadata: deserializeMetadata(output),
|
|
@@ -1318,7 +1318,7 @@ export var deserializeAws_restJson1AddFlowSourcesCommand = function (output, con
|
|
|
1318
1318
|
};
|
|
1319
1319
|
_a = __expectNonNull;
|
|
1320
1320
|
_b = __expectObject;
|
|
1321
|
-
return [4
|
|
1321
|
+
return [4, parseBody(output.body, context)];
|
|
1322
1322
|
case 1:
|
|
1323
1323
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1324
1324
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -1327,7 +1327,7 @@ export var deserializeAws_restJson1AddFlowSourcesCommand = function (output, con
|
|
|
1327
1327
|
if (data.sources !== undefined && data.sources !== null) {
|
|
1328
1328
|
contents.Sources = deserializeAws_restJson1__listOfSource(data.sources, context);
|
|
1329
1329
|
}
|
|
1330
|
-
return [2
|
|
1330
|
+
return [2, Promise.resolve(contents)];
|
|
1331
1331
|
}
|
|
1332
1332
|
});
|
|
1333
1333
|
}); };
|
|
@@ -1339,63 +1339,63 @@ var deserializeAws_restJson1AddFlowSourcesCommandError = function (output, conte
|
|
|
1339
1339
|
case 0:
|
|
1340
1340
|
_a = [__assign({}, output)];
|
|
1341
1341
|
_j = {};
|
|
1342
|
-
return [4
|
|
1342
|
+
return [4, parseBody(output.body, context)];
|
|
1343
1343
|
case 1:
|
|
1344
1344
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1345
1345
|
errorCode = "UnknownError";
|
|
1346
1346
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1347
1347
|
_b = errorCode;
|
|
1348
1348
|
switch (_b) {
|
|
1349
|
-
case "BadRequestException": return [3
|
|
1350
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
1351
|
-
case "ForbiddenException": return [3
|
|
1352
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
1353
|
-
case "InternalServerErrorException": return [3
|
|
1354
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
1355
|
-
case "NotFoundException": return [3
|
|
1356
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
1357
|
-
case "ServiceUnavailableException": return [3
|
|
1358
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
1359
|
-
case "TooManyRequestsException": return [3
|
|
1360
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
1361
|
-
}
|
|
1362
|
-
return [3
|
|
1349
|
+
case "BadRequestException": return [3, 2];
|
|
1350
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
1351
|
+
case "ForbiddenException": return [3, 4];
|
|
1352
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
1353
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1354
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
1355
|
+
case "NotFoundException": return [3, 8];
|
|
1356
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
1357
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1358
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
1359
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1360
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
1361
|
+
}
|
|
1362
|
+
return [3, 14];
|
|
1363
1363
|
case 2:
|
|
1364
1364
|
_c = [{}];
|
|
1365
|
-
return [4
|
|
1365
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1366
1366
|
case 3:
|
|
1367
1367
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1368
|
-
return [3
|
|
1368
|
+
return [3, 15];
|
|
1369
1369
|
case 4:
|
|
1370
1370
|
_d = [{}];
|
|
1371
|
-
return [4
|
|
1371
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1372
1372
|
case 5:
|
|
1373
1373
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1374
|
-
return [3
|
|
1374
|
+
return [3, 15];
|
|
1375
1375
|
case 6:
|
|
1376
1376
|
_e = [{}];
|
|
1377
|
-
return [4
|
|
1377
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1378
1378
|
case 7:
|
|
1379
1379
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1380
|
-
return [3
|
|
1380
|
+
return [3, 15];
|
|
1381
1381
|
case 8:
|
|
1382
1382
|
_f = [{}];
|
|
1383
|
-
return [4
|
|
1383
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1384
1384
|
case 9:
|
|
1385
1385
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1386
|
-
return [3
|
|
1386
|
+
return [3, 15];
|
|
1387
1387
|
case 10:
|
|
1388
1388
|
_g = [{}];
|
|
1389
|
-
return [4
|
|
1389
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1390
1390
|
case 11:
|
|
1391
1391
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1392
|
-
return [3
|
|
1392
|
+
return [3, 15];
|
|
1393
1393
|
case 12:
|
|
1394
1394
|
_h = [{}];
|
|
1395
|
-
return [4
|
|
1395
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1396
1396
|
case 13:
|
|
1397
1397
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1398
|
-
return [3
|
|
1398
|
+
return [3, 15];
|
|
1399
1399
|
case 14:
|
|
1400
1400
|
parsedBody = parsedOutput.body;
|
|
1401
1401
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1405,7 +1405,7 @@ var deserializeAws_restJson1AddFlowSourcesCommandError = function (output, conte
|
|
|
1405
1405
|
message = response.message || response.Message || errorCode;
|
|
1406
1406
|
response.message = message;
|
|
1407
1407
|
delete response.Message;
|
|
1408
|
-
return [2
|
|
1408
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1409
1409
|
}
|
|
1410
1410
|
});
|
|
1411
1411
|
}); };
|
|
@@ -1415,7 +1415,7 @@ export var deserializeAws_restJson1AddFlowVpcInterfacesCommand = function (outpu
|
|
|
1415
1415
|
switch (_c.label) {
|
|
1416
1416
|
case 0:
|
|
1417
1417
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1418
|
-
return [2
|
|
1418
|
+
return [2, deserializeAws_restJson1AddFlowVpcInterfacesCommandError(output, context)];
|
|
1419
1419
|
}
|
|
1420
1420
|
contents = {
|
|
1421
1421
|
$metadata: deserializeMetadata(output),
|
|
@@ -1424,7 +1424,7 @@ export var deserializeAws_restJson1AddFlowVpcInterfacesCommand = function (outpu
|
|
|
1424
1424
|
};
|
|
1425
1425
|
_a = __expectNonNull;
|
|
1426
1426
|
_b = __expectObject;
|
|
1427
|
-
return [4
|
|
1427
|
+
return [4, parseBody(output.body, context)];
|
|
1428
1428
|
case 1:
|
|
1429
1429
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1430
1430
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -1433,7 +1433,7 @@ export var deserializeAws_restJson1AddFlowVpcInterfacesCommand = function (outpu
|
|
|
1433
1433
|
if (data.vpcInterfaces !== undefined && data.vpcInterfaces !== null) {
|
|
1434
1434
|
contents.VpcInterfaces = deserializeAws_restJson1__listOfVpcInterface(data.vpcInterfaces, context);
|
|
1435
1435
|
}
|
|
1436
|
-
return [2
|
|
1436
|
+
return [2, Promise.resolve(contents)];
|
|
1437
1437
|
}
|
|
1438
1438
|
});
|
|
1439
1439
|
}); };
|
|
@@ -1445,63 +1445,63 @@ var deserializeAws_restJson1AddFlowVpcInterfacesCommandError = function (output,
|
|
|
1445
1445
|
case 0:
|
|
1446
1446
|
_a = [__assign({}, output)];
|
|
1447
1447
|
_j = {};
|
|
1448
|
-
return [4
|
|
1448
|
+
return [4, parseBody(output.body, context)];
|
|
1449
1449
|
case 1:
|
|
1450
1450
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1451
1451
|
errorCode = "UnknownError";
|
|
1452
1452
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1453
1453
|
_b = errorCode;
|
|
1454
1454
|
switch (_b) {
|
|
1455
|
-
case "BadRequestException": return [3
|
|
1456
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
1457
|
-
case "ForbiddenException": return [3
|
|
1458
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
1459
|
-
case "InternalServerErrorException": return [3
|
|
1460
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
1461
|
-
case "NotFoundException": return [3
|
|
1462
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
1463
|
-
case "ServiceUnavailableException": return [3
|
|
1464
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
1465
|
-
case "TooManyRequestsException": return [3
|
|
1466
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
1467
|
-
}
|
|
1468
|
-
return [3
|
|
1455
|
+
case "BadRequestException": return [3, 2];
|
|
1456
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
1457
|
+
case "ForbiddenException": return [3, 4];
|
|
1458
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
1459
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1460
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
1461
|
+
case "NotFoundException": return [3, 8];
|
|
1462
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
1463
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1464
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
1465
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1466
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
1467
|
+
}
|
|
1468
|
+
return [3, 14];
|
|
1469
1469
|
case 2:
|
|
1470
1470
|
_c = [{}];
|
|
1471
|
-
return [4
|
|
1471
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1472
1472
|
case 3:
|
|
1473
1473
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1474
|
-
return [3
|
|
1474
|
+
return [3, 15];
|
|
1475
1475
|
case 4:
|
|
1476
1476
|
_d = [{}];
|
|
1477
|
-
return [4
|
|
1477
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1478
1478
|
case 5:
|
|
1479
1479
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1480
|
-
return [3
|
|
1480
|
+
return [3, 15];
|
|
1481
1481
|
case 6:
|
|
1482
1482
|
_e = [{}];
|
|
1483
|
-
return [4
|
|
1483
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1484
1484
|
case 7:
|
|
1485
1485
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1486
|
-
return [3
|
|
1486
|
+
return [3, 15];
|
|
1487
1487
|
case 8:
|
|
1488
1488
|
_f = [{}];
|
|
1489
|
-
return [4
|
|
1489
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1490
1490
|
case 9:
|
|
1491
1491
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1492
|
-
return [3
|
|
1492
|
+
return [3, 15];
|
|
1493
1493
|
case 10:
|
|
1494
1494
|
_g = [{}];
|
|
1495
|
-
return [4
|
|
1495
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1496
1496
|
case 11:
|
|
1497
1497
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1498
|
-
return [3
|
|
1498
|
+
return [3, 15];
|
|
1499
1499
|
case 12:
|
|
1500
1500
|
_h = [{}];
|
|
1501
|
-
return [4
|
|
1501
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1502
1502
|
case 13:
|
|
1503
1503
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1504
|
-
return [3
|
|
1504
|
+
return [3, 15];
|
|
1505
1505
|
case 14:
|
|
1506
1506
|
parsedBody = parsedOutput.body;
|
|
1507
1507
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1511,7 +1511,7 @@ var deserializeAws_restJson1AddFlowVpcInterfacesCommandError = function (output,
|
|
|
1511
1511
|
message = response.message || response.Message || errorCode;
|
|
1512
1512
|
response.message = message;
|
|
1513
1513
|
delete response.Message;
|
|
1514
|
-
return [2
|
|
1514
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1515
1515
|
}
|
|
1516
1516
|
});
|
|
1517
1517
|
}); };
|
|
@@ -1521,7 +1521,7 @@ export var deserializeAws_restJson1CreateFlowCommand = function (output, context
|
|
|
1521
1521
|
switch (_c.label) {
|
|
1522
1522
|
case 0:
|
|
1523
1523
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1524
|
-
return [2
|
|
1524
|
+
return [2, deserializeAws_restJson1CreateFlowCommandError(output, context)];
|
|
1525
1525
|
}
|
|
1526
1526
|
contents = {
|
|
1527
1527
|
$metadata: deserializeMetadata(output),
|
|
@@ -1529,13 +1529,13 @@ export var deserializeAws_restJson1CreateFlowCommand = function (output, context
|
|
|
1529
1529
|
};
|
|
1530
1530
|
_a = __expectNonNull;
|
|
1531
1531
|
_b = __expectObject;
|
|
1532
|
-
return [4
|
|
1532
|
+
return [4, parseBody(output.body, context)];
|
|
1533
1533
|
case 1:
|
|
1534
1534
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1535
1535
|
if (data.flow !== undefined && data.flow !== null) {
|
|
1536
1536
|
contents.Flow = deserializeAws_restJson1Flow(data.flow, context);
|
|
1537
1537
|
}
|
|
1538
|
-
return [2
|
|
1538
|
+
return [2, Promise.resolve(contents)];
|
|
1539
1539
|
}
|
|
1540
1540
|
});
|
|
1541
1541
|
}); };
|
|
@@ -1547,63 +1547,63 @@ var deserializeAws_restJson1CreateFlowCommandError = function (output, context)
|
|
|
1547
1547
|
case 0:
|
|
1548
1548
|
_a = [__assign({}, output)];
|
|
1549
1549
|
_j = {};
|
|
1550
|
-
return [4
|
|
1550
|
+
return [4, parseBody(output.body, context)];
|
|
1551
1551
|
case 1:
|
|
1552
1552
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1553
1553
|
errorCode = "UnknownError";
|
|
1554
1554
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
1555
|
_b = errorCode;
|
|
1556
1556
|
switch (_b) {
|
|
1557
|
-
case "BadRequestException": return [3
|
|
1558
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
1559
|
-
case "CreateFlow420Exception": return [3
|
|
1560
|
-
case "com.amazonaws.mediaconnect#CreateFlow420Exception": return [3
|
|
1561
|
-
case "ForbiddenException": return [3
|
|
1562
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
1563
|
-
case "InternalServerErrorException": return [3
|
|
1564
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
1565
|
-
case "ServiceUnavailableException": return [3
|
|
1566
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
1567
|
-
case "TooManyRequestsException": return [3
|
|
1568
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
1569
|
-
}
|
|
1570
|
-
return [3
|
|
1557
|
+
case "BadRequestException": return [3, 2];
|
|
1558
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
1559
|
+
case "CreateFlow420Exception": return [3, 4];
|
|
1560
|
+
case "com.amazonaws.mediaconnect#CreateFlow420Exception": return [3, 4];
|
|
1561
|
+
case "ForbiddenException": return [3, 6];
|
|
1562
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 6];
|
|
1563
|
+
case "InternalServerErrorException": return [3, 8];
|
|
1564
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 8];
|
|
1565
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1566
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
1567
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1568
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
1569
|
+
}
|
|
1570
|
+
return [3, 14];
|
|
1571
1571
|
case 2:
|
|
1572
1572
|
_c = [{}];
|
|
1573
|
-
return [4
|
|
1573
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1574
1574
|
case 3:
|
|
1575
1575
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1576
|
-
return [3
|
|
1576
|
+
return [3, 15];
|
|
1577
1577
|
case 4:
|
|
1578
1578
|
_d = [{}];
|
|
1579
|
-
return [4
|
|
1579
|
+
return [4, deserializeAws_restJson1CreateFlow420ExceptionResponse(parsedOutput, context)];
|
|
1580
1580
|
case 5:
|
|
1581
1581
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1582
|
-
return [3
|
|
1582
|
+
return [3, 15];
|
|
1583
1583
|
case 6:
|
|
1584
1584
|
_e = [{}];
|
|
1585
|
-
return [4
|
|
1585
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1586
1586
|
case 7:
|
|
1587
1587
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1588
|
-
return [3
|
|
1588
|
+
return [3, 15];
|
|
1589
1589
|
case 8:
|
|
1590
1590
|
_f = [{}];
|
|
1591
|
-
return [4
|
|
1591
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1592
1592
|
case 9:
|
|
1593
1593
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1594
|
-
return [3
|
|
1594
|
+
return [3, 15];
|
|
1595
1595
|
case 10:
|
|
1596
1596
|
_g = [{}];
|
|
1597
|
-
return [4
|
|
1597
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1598
1598
|
case 11:
|
|
1599
1599
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1600
|
-
return [3
|
|
1600
|
+
return [3, 15];
|
|
1601
1601
|
case 12:
|
|
1602
1602
|
_h = [{}];
|
|
1603
|
-
return [4
|
|
1603
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1604
1604
|
case 13:
|
|
1605
1605
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1606
|
-
return [3
|
|
1606
|
+
return [3, 15];
|
|
1607
1607
|
case 14:
|
|
1608
1608
|
parsedBody = parsedOutput.body;
|
|
1609
1609
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1613,7 +1613,7 @@ var deserializeAws_restJson1CreateFlowCommandError = function (output, context)
|
|
|
1613
1613
|
message = response.message || response.Message || errorCode;
|
|
1614
1614
|
response.message = message;
|
|
1615
1615
|
delete response.Message;
|
|
1616
|
-
return [2
|
|
1616
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1617
1617
|
}
|
|
1618
1618
|
});
|
|
1619
1619
|
}); };
|
|
@@ -1623,7 +1623,7 @@ export var deserializeAws_restJson1DeleteFlowCommand = function (output, context
|
|
|
1623
1623
|
switch (_c.label) {
|
|
1624
1624
|
case 0:
|
|
1625
1625
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1626
|
-
return [2
|
|
1626
|
+
return [2, deserializeAws_restJson1DeleteFlowCommandError(output, context)];
|
|
1627
1627
|
}
|
|
1628
1628
|
contents = {
|
|
1629
1629
|
$metadata: deserializeMetadata(output),
|
|
@@ -1632,7 +1632,7 @@ export var deserializeAws_restJson1DeleteFlowCommand = function (output, context
|
|
|
1632
1632
|
};
|
|
1633
1633
|
_a = __expectNonNull;
|
|
1634
1634
|
_b = __expectObject;
|
|
1635
|
-
return [4
|
|
1635
|
+
return [4, parseBody(output.body, context)];
|
|
1636
1636
|
case 1:
|
|
1637
1637
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1638
1638
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -1641,7 +1641,7 @@ export var deserializeAws_restJson1DeleteFlowCommand = function (output, context
|
|
|
1641
1641
|
if (data.status !== undefined && data.status !== null) {
|
|
1642
1642
|
contents.Status = __expectString(data.status);
|
|
1643
1643
|
}
|
|
1644
|
-
return [2
|
|
1644
|
+
return [2, Promise.resolve(contents)];
|
|
1645
1645
|
}
|
|
1646
1646
|
});
|
|
1647
1647
|
}); };
|
|
@@ -1653,63 +1653,63 @@ var deserializeAws_restJson1DeleteFlowCommandError = function (output, context)
|
|
|
1653
1653
|
case 0:
|
|
1654
1654
|
_a = [__assign({}, output)];
|
|
1655
1655
|
_j = {};
|
|
1656
|
-
return [4
|
|
1656
|
+
return [4, parseBody(output.body, context)];
|
|
1657
1657
|
case 1:
|
|
1658
1658
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1659
1659
|
errorCode = "UnknownError";
|
|
1660
1660
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1661
1661
|
_b = errorCode;
|
|
1662
1662
|
switch (_b) {
|
|
1663
|
-
case "BadRequestException": return [3
|
|
1664
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
1665
|
-
case "ForbiddenException": return [3
|
|
1666
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
1667
|
-
case "InternalServerErrorException": return [3
|
|
1668
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
1669
|
-
case "NotFoundException": return [3
|
|
1670
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
1671
|
-
case "ServiceUnavailableException": return [3
|
|
1672
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
1673
|
-
case "TooManyRequestsException": return [3
|
|
1674
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
1675
|
-
}
|
|
1676
|
-
return [3
|
|
1663
|
+
case "BadRequestException": return [3, 2];
|
|
1664
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
1665
|
+
case "ForbiddenException": return [3, 4];
|
|
1666
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
1667
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1668
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
1669
|
+
case "NotFoundException": return [3, 8];
|
|
1670
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
1671
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1672
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
1673
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1674
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
1675
|
+
}
|
|
1676
|
+
return [3, 14];
|
|
1677
1677
|
case 2:
|
|
1678
1678
|
_c = [{}];
|
|
1679
|
-
return [4
|
|
1679
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1680
1680
|
case 3:
|
|
1681
1681
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1682
|
-
return [3
|
|
1682
|
+
return [3, 15];
|
|
1683
1683
|
case 4:
|
|
1684
1684
|
_d = [{}];
|
|
1685
|
-
return [4
|
|
1685
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1686
1686
|
case 5:
|
|
1687
1687
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1688
|
-
return [3
|
|
1688
|
+
return [3, 15];
|
|
1689
1689
|
case 6:
|
|
1690
1690
|
_e = [{}];
|
|
1691
|
-
return [4
|
|
1691
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1692
1692
|
case 7:
|
|
1693
1693
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1694
|
-
return [3
|
|
1694
|
+
return [3, 15];
|
|
1695
1695
|
case 8:
|
|
1696
1696
|
_f = [{}];
|
|
1697
|
-
return [4
|
|
1697
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1698
1698
|
case 9:
|
|
1699
1699
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1700
|
-
return [3
|
|
1700
|
+
return [3, 15];
|
|
1701
1701
|
case 10:
|
|
1702
1702
|
_g = [{}];
|
|
1703
|
-
return [4
|
|
1703
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1704
1704
|
case 11:
|
|
1705
1705
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1706
|
-
return [3
|
|
1706
|
+
return [3, 15];
|
|
1707
1707
|
case 12:
|
|
1708
1708
|
_h = [{}];
|
|
1709
|
-
return [4
|
|
1709
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1710
1710
|
case 13:
|
|
1711
1711
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1712
|
-
return [3
|
|
1712
|
+
return [3, 15];
|
|
1713
1713
|
case 14:
|
|
1714
1714
|
parsedBody = parsedOutput.body;
|
|
1715
1715
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1719,7 +1719,7 @@ var deserializeAws_restJson1DeleteFlowCommandError = function (output, context)
|
|
|
1719
1719
|
message = response.message || response.Message || errorCode;
|
|
1720
1720
|
response.message = message;
|
|
1721
1721
|
delete response.Message;
|
|
1722
|
-
return [2
|
|
1722
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1723
1723
|
}
|
|
1724
1724
|
});
|
|
1725
1725
|
}); };
|
|
@@ -1729,7 +1729,7 @@ export var deserializeAws_restJson1DescribeFlowCommand = function (output, conte
|
|
|
1729
1729
|
switch (_c.label) {
|
|
1730
1730
|
case 0:
|
|
1731
1731
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1732
|
-
return [2
|
|
1732
|
+
return [2, deserializeAws_restJson1DescribeFlowCommandError(output, context)];
|
|
1733
1733
|
}
|
|
1734
1734
|
contents = {
|
|
1735
1735
|
$metadata: deserializeMetadata(output),
|
|
@@ -1738,7 +1738,7 @@ export var deserializeAws_restJson1DescribeFlowCommand = function (output, conte
|
|
|
1738
1738
|
};
|
|
1739
1739
|
_a = __expectNonNull;
|
|
1740
1740
|
_b = __expectObject;
|
|
1741
|
-
return [4
|
|
1741
|
+
return [4, parseBody(output.body, context)];
|
|
1742
1742
|
case 1:
|
|
1743
1743
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1744
1744
|
if (data.flow !== undefined && data.flow !== null) {
|
|
@@ -1747,7 +1747,7 @@ export var deserializeAws_restJson1DescribeFlowCommand = function (output, conte
|
|
|
1747
1747
|
if (data.messages !== undefined && data.messages !== null) {
|
|
1748
1748
|
contents.Messages = deserializeAws_restJson1Messages(data.messages, context);
|
|
1749
1749
|
}
|
|
1750
|
-
return [2
|
|
1750
|
+
return [2, Promise.resolve(contents)];
|
|
1751
1751
|
}
|
|
1752
1752
|
});
|
|
1753
1753
|
}); };
|
|
@@ -1759,63 +1759,63 @@ var deserializeAws_restJson1DescribeFlowCommandError = function (output, context
|
|
|
1759
1759
|
case 0:
|
|
1760
1760
|
_a = [__assign({}, output)];
|
|
1761
1761
|
_j = {};
|
|
1762
|
-
return [4
|
|
1762
|
+
return [4, parseBody(output.body, context)];
|
|
1763
1763
|
case 1:
|
|
1764
1764
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1765
1765
|
errorCode = "UnknownError";
|
|
1766
1766
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1767
1767
|
_b = errorCode;
|
|
1768
1768
|
switch (_b) {
|
|
1769
|
-
case "BadRequestException": return [3
|
|
1770
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
1771
|
-
case "ForbiddenException": return [3
|
|
1772
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
1773
|
-
case "InternalServerErrorException": return [3
|
|
1774
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
1775
|
-
case "NotFoundException": return [3
|
|
1776
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
1777
|
-
case "ServiceUnavailableException": return [3
|
|
1778
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
1779
|
-
case "TooManyRequestsException": return [3
|
|
1780
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
1781
|
-
}
|
|
1782
|
-
return [3
|
|
1769
|
+
case "BadRequestException": return [3, 2];
|
|
1770
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
1771
|
+
case "ForbiddenException": return [3, 4];
|
|
1772
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
1773
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1774
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
1775
|
+
case "NotFoundException": return [3, 8];
|
|
1776
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
1777
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1778
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
1779
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1780
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
1781
|
+
}
|
|
1782
|
+
return [3, 14];
|
|
1783
1783
|
case 2:
|
|
1784
1784
|
_c = [{}];
|
|
1785
|
-
return [4
|
|
1785
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1786
1786
|
case 3:
|
|
1787
1787
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1788
|
-
return [3
|
|
1788
|
+
return [3, 15];
|
|
1789
1789
|
case 4:
|
|
1790
1790
|
_d = [{}];
|
|
1791
|
-
return [4
|
|
1791
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1792
1792
|
case 5:
|
|
1793
1793
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1794
|
-
return [3
|
|
1794
|
+
return [3, 15];
|
|
1795
1795
|
case 6:
|
|
1796
1796
|
_e = [{}];
|
|
1797
|
-
return [4
|
|
1797
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1798
1798
|
case 7:
|
|
1799
1799
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1800
|
-
return [3
|
|
1800
|
+
return [3, 15];
|
|
1801
1801
|
case 8:
|
|
1802
1802
|
_f = [{}];
|
|
1803
|
-
return [4
|
|
1803
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1804
1804
|
case 9:
|
|
1805
1805
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1806
|
-
return [3
|
|
1806
|
+
return [3, 15];
|
|
1807
1807
|
case 10:
|
|
1808
1808
|
_g = [{}];
|
|
1809
|
-
return [4
|
|
1809
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1810
1810
|
case 11:
|
|
1811
1811
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1812
|
-
return [3
|
|
1812
|
+
return [3, 15];
|
|
1813
1813
|
case 12:
|
|
1814
1814
|
_h = [{}];
|
|
1815
|
-
return [4
|
|
1815
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1816
1816
|
case 13:
|
|
1817
1817
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1818
|
-
return [3
|
|
1818
|
+
return [3, 15];
|
|
1819
1819
|
case 14:
|
|
1820
1820
|
parsedBody = parsedOutput.body;
|
|
1821
1821
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1825,7 +1825,7 @@ var deserializeAws_restJson1DescribeFlowCommandError = function (output, context
|
|
|
1825
1825
|
message = response.message || response.Message || errorCode;
|
|
1826
1826
|
response.message = message;
|
|
1827
1827
|
delete response.Message;
|
|
1828
|
-
return [2
|
|
1828
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1829
1829
|
}
|
|
1830
1830
|
});
|
|
1831
1831
|
}); };
|
|
@@ -1835,7 +1835,7 @@ export var deserializeAws_restJson1DescribeOfferingCommand = function (output, c
|
|
|
1835
1835
|
switch (_c.label) {
|
|
1836
1836
|
case 0:
|
|
1837
1837
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1838
|
-
return [2
|
|
1838
|
+
return [2, deserializeAws_restJson1DescribeOfferingCommandError(output, context)];
|
|
1839
1839
|
}
|
|
1840
1840
|
contents = {
|
|
1841
1841
|
$metadata: deserializeMetadata(output),
|
|
@@ -1843,13 +1843,13 @@ export var deserializeAws_restJson1DescribeOfferingCommand = function (output, c
|
|
|
1843
1843
|
};
|
|
1844
1844
|
_a = __expectNonNull;
|
|
1845
1845
|
_b = __expectObject;
|
|
1846
|
-
return [4
|
|
1846
|
+
return [4, parseBody(output.body, context)];
|
|
1847
1847
|
case 1:
|
|
1848
1848
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1849
1849
|
if (data.offering !== undefined && data.offering !== null) {
|
|
1850
1850
|
contents.Offering = deserializeAws_restJson1Offering(data.offering, context);
|
|
1851
1851
|
}
|
|
1852
|
-
return [2
|
|
1852
|
+
return [2, Promise.resolve(contents)];
|
|
1853
1853
|
}
|
|
1854
1854
|
});
|
|
1855
1855
|
}); };
|
|
@@ -1861,55 +1861,55 @@ var deserializeAws_restJson1DescribeOfferingCommandError = function (output, con
|
|
|
1861
1861
|
case 0:
|
|
1862
1862
|
_a = [__assign({}, output)];
|
|
1863
1863
|
_h = {};
|
|
1864
|
-
return [4
|
|
1864
|
+
return [4, parseBody(output.body, context)];
|
|
1865
1865
|
case 1:
|
|
1866
1866
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1867
1867
|
errorCode = "UnknownError";
|
|
1868
1868
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1869
1869
|
_b = errorCode;
|
|
1870
1870
|
switch (_b) {
|
|
1871
|
-
case "BadRequestException": return [3
|
|
1872
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
1873
|
-
case "InternalServerErrorException": return [3
|
|
1874
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
1875
|
-
case "NotFoundException": return [3
|
|
1876
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
1877
|
-
case "ServiceUnavailableException": return [3
|
|
1878
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
1879
|
-
case "TooManyRequestsException": return [3
|
|
1880
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
1881
|
-
}
|
|
1882
|
-
return [3
|
|
1871
|
+
case "BadRequestException": return [3, 2];
|
|
1872
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
1873
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1874
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 4];
|
|
1875
|
+
case "NotFoundException": return [3, 6];
|
|
1876
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 6];
|
|
1877
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1878
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 8];
|
|
1879
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1880
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 10];
|
|
1881
|
+
}
|
|
1882
|
+
return [3, 12];
|
|
1883
1883
|
case 2:
|
|
1884
1884
|
_c = [{}];
|
|
1885
|
-
return [4
|
|
1885
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1886
1886
|
case 3:
|
|
1887
1887
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1888
|
-
return [3
|
|
1888
|
+
return [3, 13];
|
|
1889
1889
|
case 4:
|
|
1890
1890
|
_d = [{}];
|
|
1891
|
-
return [4
|
|
1891
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1892
1892
|
case 5:
|
|
1893
1893
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1894
|
-
return [3
|
|
1894
|
+
return [3, 13];
|
|
1895
1895
|
case 6:
|
|
1896
1896
|
_e = [{}];
|
|
1897
|
-
return [4
|
|
1897
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1898
1898
|
case 7:
|
|
1899
1899
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1900
|
-
return [3
|
|
1900
|
+
return [3, 13];
|
|
1901
1901
|
case 8:
|
|
1902
1902
|
_f = [{}];
|
|
1903
|
-
return [4
|
|
1903
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1904
1904
|
case 9:
|
|
1905
1905
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1906
|
-
return [3
|
|
1906
|
+
return [3, 13];
|
|
1907
1907
|
case 10:
|
|
1908
1908
|
_g = [{}];
|
|
1909
|
-
return [4
|
|
1909
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1910
1910
|
case 11:
|
|
1911
1911
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1912
|
-
return [3
|
|
1912
|
+
return [3, 13];
|
|
1913
1913
|
case 12:
|
|
1914
1914
|
parsedBody = parsedOutput.body;
|
|
1915
1915
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1919,7 +1919,7 @@ var deserializeAws_restJson1DescribeOfferingCommandError = function (output, con
|
|
|
1919
1919
|
message = response.message || response.Message || errorCode;
|
|
1920
1920
|
response.message = message;
|
|
1921
1921
|
delete response.Message;
|
|
1922
|
-
return [2
|
|
1922
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1923
1923
|
}
|
|
1924
1924
|
});
|
|
1925
1925
|
}); };
|
|
@@ -1929,7 +1929,7 @@ export var deserializeAws_restJson1DescribeReservationCommand = function (output
|
|
|
1929
1929
|
switch (_c.label) {
|
|
1930
1930
|
case 0:
|
|
1931
1931
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1932
|
-
return [2
|
|
1932
|
+
return [2, deserializeAws_restJson1DescribeReservationCommandError(output, context)];
|
|
1933
1933
|
}
|
|
1934
1934
|
contents = {
|
|
1935
1935
|
$metadata: deserializeMetadata(output),
|
|
@@ -1937,13 +1937,13 @@ export var deserializeAws_restJson1DescribeReservationCommand = function (output
|
|
|
1937
1937
|
};
|
|
1938
1938
|
_a = __expectNonNull;
|
|
1939
1939
|
_b = __expectObject;
|
|
1940
|
-
return [4
|
|
1940
|
+
return [4, parseBody(output.body, context)];
|
|
1941
1941
|
case 1:
|
|
1942
1942
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1943
1943
|
if (data.reservation !== undefined && data.reservation !== null) {
|
|
1944
1944
|
contents.Reservation = deserializeAws_restJson1Reservation(data.reservation, context);
|
|
1945
1945
|
}
|
|
1946
|
-
return [2
|
|
1946
|
+
return [2, Promise.resolve(contents)];
|
|
1947
1947
|
}
|
|
1948
1948
|
});
|
|
1949
1949
|
}); };
|
|
@@ -1955,55 +1955,55 @@ var deserializeAws_restJson1DescribeReservationCommandError = function (output,
|
|
|
1955
1955
|
case 0:
|
|
1956
1956
|
_a = [__assign({}, output)];
|
|
1957
1957
|
_h = {};
|
|
1958
|
-
return [4
|
|
1958
|
+
return [4, parseBody(output.body, context)];
|
|
1959
1959
|
case 1:
|
|
1960
1960
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1961
1961
|
errorCode = "UnknownError";
|
|
1962
1962
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1963
1963
|
_b = errorCode;
|
|
1964
1964
|
switch (_b) {
|
|
1965
|
-
case "BadRequestException": return [3
|
|
1966
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
1967
|
-
case "InternalServerErrorException": return [3
|
|
1968
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
1969
|
-
case "NotFoundException": return [3
|
|
1970
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
1971
|
-
case "ServiceUnavailableException": return [3
|
|
1972
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
1973
|
-
case "TooManyRequestsException": return [3
|
|
1974
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
1975
|
-
}
|
|
1976
|
-
return [3
|
|
1965
|
+
case "BadRequestException": return [3, 2];
|
|
1966
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
1967
|
+
case "InternalServerErrorException": return [3, 4];
|
|
1968
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 4];
|
|
1969
|
+
case "NotFoundException": return [3, 6];
|
|
1970
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 6];
|
|
1971
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1972
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 8];
|
|
1973
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1974
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 10];
|
|
1975
|
+
}
|
|
1976
|
+
return [3, 12];
|
|
1977
1977
|
case 2:
|
|
1978
1978
|
_c = [{}];
|
|
1979
|
-
return [4
|
|
1979
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1980
1980
|
case 3:
|
|
1981
1981
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1982
|
-
return [3
|
|
1982
|
+
return [3, 13];
|
|
1983
1983
|
case 4:
|
|
1984
1984
|
_d = [{}];
|
|
1985
|
-
return [4
|
|
1985
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1986
1986
|
case 5:
|
|
1987
1987
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1988
|
-
return [3
|
|
1988
|
+
return [3, 13];
|
|
1989
1989
|
case 6:
|
|
1990
1990
|
_e = [{}];
|
|
1991
|
-
return [4
|
|
1991
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1992
1992
|
case 7:
|
|
1993
1993
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1994
|
-
return [3
|
|
1994
|
+
return [3, 13];
|
|
1995
1995
|
case 8:
|
|
1996
1996
|
_f = [{}];
|
|
1997
|
-
return [4
|
|
1997
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1998
1998
|
case 9:
|
|
1999
1999
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2000
|
-
return [3
|
|
2000
|
+
return [3, 13];
|
|
2001
2001
|
case 10:
|
|
2002
2002
|
_g = [{}];
|
|
2003
|
-
return [4
|
|
2003
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2004
2004
|
case 11:
|
|
2005
2005
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2006
|
-
return [3
|
|
2006
|
+
return [3, 13];
|
|
2007
2007
|
case 12:
|
|
2008
2008
|
parsedBody = parsedOutput.body;
|
|
2009
2009
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2013,7 +2013,7 @@ var deserializeAws_restJson1DescribeReservationCommandError = function (output,
|
|
|
2013
2013
|
message = response.message || response.Message || errorCode;
|
|
2014
2014
|
response.message = message;
|
|
2015
2015
|
delete response.Message;
|
|
2016
|
-
return [2
|
|
2016
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2017
2017
|
}
|
|
2018
2018
|
});
|
|
2019
2019
|
}); };
|
|
@@ -2023,7 +2023,7 @@ export var deserializeAws_restJson1GrantFlowEntitlementsCommand = function (outp
|
|
|
2023
2023
|
switch (_c.label) {
|
|
2024
2024
|
case 0:
|
|
2025
2025
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2026
|
-
return [2
|
|
2026
|
+
return [2, deserializeAws_restJson1GrantFlowEntitlementsCommandError(output, context)];
|
|
2027
2027
|
}
|
|
2028
2028
|
contents = {
|
|
2029
2029
|
$metadata: deserializeMetadata(output),
|
|
@@ -2032,7 +2032,7 @@ export var deserializeAws_restJson1GrantFlowEntitlementsCommand = function (outp
|
|
|
2032
2032
|
};
|
|
2033
2033
|
_a = __expectNonNull;
|
|
2034
2034
|
_b = __expectObject;
|
|
2035
|
-
return [4
|
|
2035
|
+
return [4, parseBody(output.body, context)];
|
|
2036
2036
|
case 1:
|
|
2037
2037
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2038
2038
|
if (data.entitlements !== undefined && data.entitlements !== null) {
|
|
@@ -2041,7 +2041,7 @@ export var deserializeAws_restJson1GrantFlowEntitlementsCommand = function (outp
|
|
|
2041
2041
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
2042
2042
|
contents.FlowArn = __expectString(data.flowArn);
|
|
2043
2043
|
}
|
|
2044
|
-
return [2
|
|
2044
|
+
return [2, Promise.resolve(contents)];
|
|
2045
2045
|
}
|
|
2046
2046
|
});
|
|
2047
2047
|
}); };
|
|
@@ -2053,71 +2053,71 @@ var deserializeAws_restJson1GrantFlowEntitlementsCommandError = function (output
|
|
|
2053
2053
|
case 0:
|
|
2054
2054
|
_a = [__assign({}, output)];
|
|
2055
2055
|
_k = {};
|
|
2056
|
-
return [4
|
|
2056
|
+
return [4, parseBody(output.body, context)];
|
|
2057
2057
|
case 1:
|
|
2058
2058
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
2059
2059
|
errorCode = "UnknownError";
|
|
2060
2060
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2061
2061
|
_b = errorCode;
|
|
2062
2062
|
switch (_b) {
|
|
2063
|
-
case "BadRequestException": return [3
|
|
2064
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
2065
|
-
case "ForbiddenException": return [3
|
|
2066
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
2067
|
-
case "GrantFlowEntitlements420Exception": return [3
|
|
2068
|
-
case "com.amazonaws.mediaconnect#GrantFlowEntitlements420Exception": return [3
|
|
2069
|
-
case "InternalServerErrorException": return [3
|
|
2070
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
2071
|
-
case "NotFoundException": return [3
|
|
2072
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
2073
|
-
case "ServiceUnavailableException": return [3
|
|
2074
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
2075
|
-
case "TooManyRequestsException": return [3
|
|
2076
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
2077
|
-
}
|
|
2078
|
-
return [3
|
|
2063
|
+
case "BadRequestException": return [3, 2];
|
|
2064
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
2065
|
+
case "ForbiddenException": return [3, 4];
|
|
2066
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
2067
|
+
case "GrantFlowEntitlements420Exception": return [3, 6];
|
|
2068
|
+
case "com.amazonaws.mediaconnect#GrantFlowEntitlements420Exception": return [3, 6];
|
|
2069
|
+
case "InternalServerErrorException": return [3, 8];
|
|
2070
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 8];
|
|
2071
|
+
case "NotFoundException": return [3, 10];
|
|
2072
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 10];
|
|
2073
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
2074
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 12];
|
|
2075
|
+
case "TooManyRequestsException": return [3, 14];
|
|
2076
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 14];
|
|
2077
|
+
}
|
|
2078
|
+
return [3, 16];
|
|
2079
2079
|
case 2:
|
|
2080
2080
|
_c = [{}];
|
|
2081
|
-
return [4
|
|
2081
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2082
2082
|
case 3:
|
|
2083
2083
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2084
|
-
return [3
|
|
2084
|
+
return [3, 17];
|
|
2085
2085
|
case 4:
|
|
2086
2086
|
_d = [{}];
|
|
2087
|
-
return [4
|
|
2087
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2088
2088
|
case 5:
|
|
2089
2089
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2090
|
-
return [3
|
|
2090
|
+
return [3, 17];
|
|
2091
2091
|
case 6:
|
|
2092
2092
|
_e = [{}];
|
|
2093
|
-
return [4
|
|
2093
|
+
return [4, deserializeAws_restJson1GrantFlowEntitlements420ExceptionResponse(parsedOutput, context)];
|
|
2094
2094
|
case 7:
|
|
2095
2095
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2096
|
-
return [3
|
|
2096
|
+
return [3, 17];
|
|
2097
2097
|
case 8:
|
|
2098
2098
|
_f = [{}];
|
|
2099
|
-
return [4
|
|
2099
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2100
2100
|
case 9:
|
|
2101
2101
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2102
|
-
return [3
|
|
2102
|
+
return [3, 17];
|
|
2103
2103
|
case 10:
|
|
2104
2104
|
_g = [{}];
|
|
2105
|
-
return [4
|
|
2105
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2106
2106
|
case 11:
|
|
2107
2107
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2108
|
-
return [3
|
|
2108
|
+
return [3, 17];
|
|
2109
2109
|
case 12:
|
|
2110
2110
|
_h = [{}];
|
|
2111
|
-
return [4
|
|
2111
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2112
2112
|
case 13:
|
|
2113
2113
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2114
|
-
return [3
|
|
2114
|
+
return [3, 17];
|
|
2115
2115
|
case 14:
|
|
2116
2116
|
_j = [{}];
|
|
2117
|
-
return [4
|
|
2117
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2118
2118
|
case 15:
|
|
2119
2119
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2120
|
-
return [3
|
|
2120
|
+
return [3, 17];
|
|
2121
2121
|
case 16:
|
|
2122
2122
|
parsedBody = parsedOutput.body;
|
|
2123
2123
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2127,7 +2127,7 @@ var deserializeAws_restJson1GrantFlowEntitlementsCommandError = function (output
|
|
|
2127
2127
|
message = response.message || response.Message || errorCode;
|
|
2128
2128
|
response.message = message;
|
|
2129
2129
|
delete response.Message;
|
|
2130
|
-
return [2
|
|
2130
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2131
2131
|
}
|
|
2132
2132
|
});
|
|
2133
2133
|
}); };
|
|
@@ -2137,7 +2137,7 @@ export var deserializeAws_restJson1ListEntitlementsCommand = function (output, c
|
|
|
2137
2137
|
switch (_c.label) {
|
|
2138
2138
|
case 0:
|
|
2139
2139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2140
|
-
return [2
|
|
2140
|
+
return [2, deserializeAws_restJson1ListEntitlementsCommandError(output, context)];
|
|
2141
2141
|
}
|
|
2142
2142
|
contents = {
|
|
2143
2143
|
$metadata: deserializeMetadata(output),
|
|
@@ -2146,7 +2146,7 @@ export var deserializeAws_restJson1ListEntitlementsCommand = function (output, c
|
|
|
2146
2146
|
};
|
|
2147
2147
|
_a = __expectNonNull;
|
|
2148
2148
|
_b = __expectObject;
|
|
2149
|
-
return [4
|
|
2149
|
+
return [4, parseBody(output.body, context)];
|
|
2150
2150
|
case 1:
|
|
2151
2151
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2152
2152
|
if (data.entitlements !== undefined && data.entitlements !== null) {
|
|
@@ -2155,7 +2155,7 @@ export var deserializeAws_restJson1ListEntitlementsCommand = function (output, c
|
|
|
2155
2155
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2156
2156
|
contents.NextToken = __expectString(data.nextToken);
|
|
2157
2157
|
}
|
|
2158
|
-
return [2
|
|
2158
|
+
return [2, Promise.resolve(contents)];
|
|
2159
2159
|
}
|
|
2160
2160
|
});
|
|
2161
2161
|
}); };
|
|
@@ -2167,47 +2167,47 @@ var deserializeAws_restJson1ListEntitlementsCommandError = function (output, con
|
|
|
2167
2167
|
case 0:
|
|
2168
2168
|
_a = [__assign({}, output)];
|
|
2169
2169
|
_g = {};
|
|
2170
|
-
return [4
|
|
2170
|
+
return [4, parseBody(output.body, context)];
|
|
2171
2171
|
case 1:
|
|
2172
2172
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2173
2173
|
errorCode = "UnknownError";
|
|
2174
2174
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2175
2175
|
_b = errorCode;
|
|
2176
2176
|
switch (_b) {
|
|
2177
|
-
case "BadRequestException": return [3
|
|
2178
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
2179
|
-
case "InternalServerErrorException": return [3
|
|
2180
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
2181
|
-
case "ServiceUnavailableException": return [3
|
|
2182
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
2183
|
-
case "TooManyRequestsException": return [3
|
|
2184
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
2185
|
-
}
|
|
2186
|
-
return [3
|
|
2177
|
+
case "BadRequestException": return [3, 2];
|
|
2178
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
2179
|
+
case "InternalServerErrorException": return [3, 4];
|
|
2180
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 4];
|
|
2181
|
+
case "ServiceUnavailableException": return [3, 6];
|
|
2182
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 6];
|
|
2183
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2184
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 8];
|
|
2185
|
+
}
|
|
2186
|
+
return [3, 10];
|
|
2187
2187
|
case 2:
|
|
2188
2188
|
_c = [{}];
|
|
2189
|
-
return [4
|
|
2189
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2190
2190
|
case 3:
|
|
2191
2191
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2192
|
-
return [3
|
|
2192
|
+
return [3, 11];
|
|
2193
2193
|
case 4:
|
|
2194
2194
|
_d = [{}];
|
|
2195
|
-
return [4
|
|
2195
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2196
2196
|
case 5:
|
|
2197
2197
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2198
|
-
return [3
|
|
2198
|
+
return [3, 11];
|
|
2199
2199
|
case 6:
|
|
2200
2200
|
_e = [{}];
|
|
2201
|
-
return [4
|
|
2201
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2202
2202
|
case 7:
|
|
2203
2203
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2204
|
-
return [3
|
|
2204
|
+
return [3, 11];
|
|
2205
2205
|
case 8:
|
|
2206
2206
|
_f = [{}];
|
|
2207
|
-
return [4
|
|
2207
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2208
2208
|
case 9:
|
|
2209
2209
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2210
|
-
return [3
|
|
2210
|
+
return [3, 11];
|
|
2211
2211
|
case 10:
|
|
2212
2212
|
parsedBody = parsedOutput.body;
|
|
2213
2213
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2217,7 +2217,7 @@ var deserializeAws_restJson1ListEntitlementsCommandError = function (output, con
|
|
|
2217
2217
|
message = response.message || response.Message || errorCode;
|
|
2218
2218
|
response.message = message;
|
|
2219
2219
|
delete response.Message;
|
|
2220
|
-
return [2
|
|
2220
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2221
2221
|
}
|
|
2222
2222
|
});
|
|
2223
2223
|
}); };
|
|
@@ -2227,7 +2227,7 @@ export var deserializeAws_restJson1ListFlowsCommand = function (output, context)
|
|
|
2227
2227
|
switch (_c.label) {
|
|
2228
2228
|
case 0:
|
|
2229
2229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2230
|
-
return [2
|
|
2230
|
+
return [2, deserializeAws_restJson1ListFlowsCommandError(output, context)];
|
|
2231
2231
|
}
|
|
2232
2232
|
contents = {
|
|
2233
2233
|
$metadata: deserializeMetadata(output),
|
|
@@ -2236,7 +2236,7 @@ export var deserializeAws_restJson1ListFlowsCommand = function (output, context)
|
|
|
2236
2236
|
};
|
|
2237
2237
|
_a = __expectNonNull;
|
|
2238
2238
|
_b = __expectObject;
|
|
2239
|
-
return [4
|
|
2239
|
+
return [4, parseBody(output.body, context)];
|
|
2240
2240
|
case 1:
|
|
2241
2241
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2242
2242
|
if (data.flows !== undefined && data.flows !== null) {
|
|
@@ -2245,7 +2245,7 @@ export var deserializeAws_restJson1ListFlowsCommand = function (output, context)
|
|
|
2245
2245
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2246
2246
|
contents.NextToken = __expectString(data.nextToken);
|
|
2247
2247
|
}
|
|
2248
|
-
return [2
|
|
2248
|
+
return [2, Promise.resolve(contents)];
|
|
2249
2249
|
}
|
|
2250
2250
|
});
|
|
2251
2251
|
}); };
|
|
@@ -2257,47 +2257,47 @@ var deserializeAws_restJson1ListFlowsCommandError = function (output, context) {
|
|
|
2257
2257
|
case 0:
|
|
2258
2258
|
_a = [__assign({}, output)];
|
|
2259
2259
|
_g = {};
|
|
2260
|
-
return [4
|
|
2260
|
+
return [4, parseBody(output.body, context)];
|
|
2261
2261
|
case 1:
|
|
2262
2262
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2263
2263
|
errorCode = "UnknownError";
|
|
2264
2264
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2265
2265
|
_b = errorCode;
|
|
2266
2266
|
switch (_b) {
|
|
2267
|
-
case "BadRequestException": return [3
|
|
2268
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
2269
|
-
case "InternalServerErrorException": return [3
|
|
2270
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
2271
|
-
case "ServiceUnavailableException": return [3
|
|
2272
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
2273
|
-
case "TooManyRequestsException": return [3
|
|
2274
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
2275
|
-
}
|
|
2276
|
-
return [3
|
|
2267
|
+
case "BadRequestException": return [3, 2];
|
|
2268
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
2269
|
+
case "InternalServerErrorException": return [3, 4];
|
|
2270
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 4];
|
|
2271
|
+
case "ServiceUnavailableException": return [3, 6];
|
|
2272
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 6];
|
|
2273
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2274
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 8];
|
|
2275
|
+
}
|
|
2276
|
+
return [3, 10];
|
|
2277
2277
|
case 2:
|
|
2278
2278
|
_c = [{}];
|
|
2279
|
-
return [4
|
|
2279
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2280
2280
|
case 3:
|
|
2281
2281
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2282
|
-
return [3
|
|
2282
|
+
return [3, 11];
|
|
2283
2283
|
case 4:
|
|
2284
2284
|
_d = [{}];
|
|
2285
|
-
return [4
|
|
2285
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2286
2286
|
case 5:
|
|
2287
2287
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2288
|
-
return [3
|
|
2288
|
+
return [3, 11];
|
|
2289
2289
|
case 6:
|
|
2290
2290
|
_e = [{}];
|
|
2291
|
-
return [4
|
|
2291
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2292
2292
|
case 7:
|
|
2293
2293
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2294
|
-
return [3
|
|
2294
|
+
return [3, 11];
|
|
2295
2295
|
case 8:
|
|
2296
2296
|
_f = [{}];
|
|
2297
|
-
return [4
|
|
2297
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2298
2298
|
case 9:
|
|
2299
2299
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2300
|
-
return [3
|
|
2300
|
+
return [3, 11];
|
|
2301
2301
|
case 10:
|
|
2302
2302
|
parsedBody = parsedOutput.body;
|
|
2303
2303
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2307,7 +2307,7 @@ var deserializeAws_restJson1ListFlowsCommandError = function (output, context) {
|
|
|
2307
2307
|
message = response.message || response.Message || errorCode;
|
|
2308
2308
|
response.message = message;
|
|
2309
2309
|
delete response.Message;
|
|
2310
|
-
return [2
|
|
2310
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2311
2311
|
}
|
|
2312
2312
|
});
|
|
2313
2313
|
}); };
|
|
@@ -2317,7 +2317,7 @@ export var deserializeAws_restJson1ListOfferingsCommand = function (output, cont
|
|
|
2317
2317
|
switch (_c.label) {
|
|
2318
2318
|
case 0:
|
|
2319
2319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2320
|
-
return [2
|
|
2320
|
+
return [2, deserializeAws_restJson1ListOfferingsCommandError(output, context)];
|
|
2321
2321
|
}
|
|
2322
2322
|
contents = {
|
|
2323
2323
|
$metadata: deserializeMetadata(output),
|
|
@@ -2326,7 +2326,7 @@ export var deserializeAws_restJson1ListOfferingsCommand = function (output, cont
|
|
|
2326
2326
|
};
|
|
2327
2327
|
_a = __expectNonNull;
|
|
2328
2328
|
_b = __expectObject;
|
|
2329
|
-
return [4
|
|
2329
|
+
return [4, parseBody(output.body, context)];
|
|
2330
2330
|
case 1:
|
|
2331
2331
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2332
2332
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -2335,7 +2335,7 @@ export var deserializeAws_restJson1ListOfferingsCommand = function (output, cont
|
|
|
2335
2335
|
if (data.offerings !== undefined && data.offerings !== null) {
|
|
2336
2336
|
contents.Offerings = deserializeAws_restJson1__listOfOffering(data.offerings, context);
|
|
2337
2337
|
}
|
|
2338
|
-
return [2
|
|
2338
|
+
return [2, Promise.resolve(contents)];
|
|
2339
2339
|
}
|
|
2340
2340
|
});
|
|
2341
2341
|
}); };
|
|
@@ -2347,47 +2347,47 @@ var deserializeAws_restJson1ListOfferingsCommandError = function (output, contex
|
|
|
2347
2347
|
case 0:
|
|
2348
2348
|
_a = [__assign({}, output)];
|
|
2349
2349
|
_g = {};
|
|
2350
|
-
return [4
|
|
2350
|
+
return [4, parseBody(output.body, context)];
|
|
2351
2351
|
case 1:
|
|
2352
2352
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2353
2353
|
errorCode = "UnknownError";
|
|
2354
2354
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
2355
|
_b = errorCode;
|
|
2356
2356
|
switch (_b) {
|
|
2357
|
-
case "BadRequestException": return [3
|
|
2358
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
2359
|
-
case "InternalServerErrorException": return [3
|
|
2360
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
2361
|
-
case "ServiceUnavailableException": return [3
|
|
2362
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
2363
|
-
case "TooManyRequestsException": return [3
|
|
2364
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
2365
|
-
}
|
|
2366
|
-
return [3
|
|
2357
|
+
case "BadRequestException": return [3, 2];
|
|
2358
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
2359
|
+
case "InternalServerErrorException": return [3, 4];
|
|
2360
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 4];
|
|
2361
|
+
case "ServiceUnavailableException": return [3, 6];
|
|
2362
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 6];
|
|
2363
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2364
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 8];
|
|
2365
|
+
}
|
|
2366
|
+
return [3, 10];
|
|
2367
2367
|
case 2:
|
|
2368
2368
|
_c = [{}];
|
|
2369
|
-
return [4
|
|
2369
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2370
2370
|
case 3:
|
|
2371
2371
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2372
|
-
return [3
|
|
2372
|
+
return [3, 11];
|
|
2373
2373
|
case 4:
|
|
2374
2374
|
_d = [{}];
|
|
2375
|
-
return [4
|
|
2375
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2376
2376
|
case 5:
|
|
2377
2377
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2378
|
-
return [3
|
|
2378
|
+
return [3, 11];
|
|
2379
2379
|
case 6:
|
|
2380
2380
|
_e = [{}];
|
|
2381
|
-
return [4
|
|
2381
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2382
2382
|
case 7:
|
|
2383
2383
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2384
|
-
return [3
|
|
2384
|
+
return [3, 11];
|
|
2385
2385
|
case 8:
|
|
2386
2386
|
_f = [{}];
|
|
2387
|
-
return [4
|
|
2387
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2388
2388
|
case 9:
|
|
2389
2389
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2390
|
-
return [3
|
|
2390
|
+
return [3, 11];
|
|
2391
2391
|
case 10:
|
|
2392
2392
|
parsedBody = parsedOutput.body;
|
|
2393
2393
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2397,7 +2397,7 @@ var deserializeAws_restJson1ListOfferingsCommandError = function (output, contex
|
|
|
2397
2397
|
message = response.message || response.Message || errorCode;
|
|
2398
2398
|
response.message = message;
|
|
2399
2399
|
delete response.Message;
|
|
2400
|
-
return [2
|
|
2400
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2401
2401
|
}
|
|
2402
2402
|
});
|
|
2403
2403
|
}); };
|
|
@@ -2407,7 +2407,7 @@ export var deserializeAws_restJson1ListReservationsCommand = function (output, c
|
|
|
2407
2407
|
switch (_c.label) {
|
|
2408
2408
|
case 0:
|
|
2409
2409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2410
|
-
return [2
|
|
2410
|
+
return [2, deserializeAws_restJson1ListReservationsCommandError(output, context)];
|
|
2411
2411
|
}
|
|
2412
2412
|
contents = {
|
|
2413
2413
|
$metadata: deserializeMetadata(output),
|
|
@@ -2416,7 +2416,7 @@ export var deserializeAws_restJson1ListReservationsCommand = function (output, c
|
|
|
2416
2416
|
};
|
|
2417
2417
|
_a = __expectNonNull;
|
|
2418
2418
|
_b = __expectObject;
|
|
2419
|
-
return [4
|
|
2419
|
+
return [4, parseBody(output.body, context)];
|
|
2420
2420
|
case 1:
|
|
2421
2421
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2422
2422
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -2425,7 +2425,7 @@ export var deserializeAws_restJson1ListReservationsCommand = function (output, c
|
|
|
2425
2425
|
if (data.reservations !== undefined && data.reservations !== null) {
|
|
2426
2426
|
contents.Reservations = deserializeAws_restJson1__listOfReservation(data.reservations, context);
|
|
2427
2427
|
}
|
|
2428
|
-
return [2
|
|
2428
|
+
return [2, Promise.resolve(contents)];
|
|
2429
2429
|
}
|
|
2430
2430
|
});
|
|
2431
2431
|
}); };
|
|
@@ -2437,47 +2437,47 @@ var deserializeAws_restJson1ListReservationsCommandError = function (output, con
|
|
|
2437
2437
|
case 0:
|
|
2438
2438
|
_a = [__assign({}, output)];
|
|
2439
2439
|
_g = {};
|
|
2440
|
-
return [4
|
|
2440
|
+
return [4, parseBody(output.body, context)];
|
|
2441
2441
|
case 1:
|
|
2442
2442
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2443
2443
|
errorCode = "UnknownError";
|
|
2444
2444
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2445
2445
|
_b = errorCode;
|
|
2446
2446
|
switch (_b) {
|
|
2447
|
-
case "BadRequestException": return [3
|
|
2448
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
2449
|
-
case "InternalServerErrorException": return [3
|
|
2450
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
2451
|
-
case "ServiceUnavailableException": return [3
|
|
2452
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
2453
|
-
case "TooManyRequestsException": return [3
|
|
2454
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
2455
|
-
}
|
|
2456
|
-
return [3
|
|
2447
|
+
case "BadRequestException": return [3, 2];
|
|
2448
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
2449
|
+
case "InternalServerErrorException": return [3, 4];
|
|
2450
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 4];
|
|
2451
|
+
case "ServiceUnavailableException": return [3, 6];
|
|
2452
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 6];
|
|
2453
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2454
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 8];
|
|
2455
|
+
}
|
|
2456
|
+
return [3, 10];
|
|
2457
2457
|
case 2:
|
|
2458
2458
|
_c = [{}];
|
|
2459
|
-
return [4
|
|
2459
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2460
2460
|
case 3:
|
|
2461
2461
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2462
|
-
return [3
|
|
2462
|
+
return [3, 11];
|
|
2463
2463
|
case 4:
|
|
2464
2464
|
_d = [{}];
|
|
2465
|
-
return [4
|
|
2465
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2466
2466
|
case 5:
|
|
2467
2467
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2468
|
-
return [3
|
|
2468
|
+
return [3, 11];
|
|
2469
2469
|
case 6:
|
|
2470
2470
|
_e = [{}];
|
|
2471
|
-
return [4
|
|
2471
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2472
2472
|
case 7:
|
|
2473
2473
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2474
|
-
return [3
|
|
2474
|
+
return [3, 11];
|
|
2475
2475
|
case 8:
|
|
2476
2476
|
_f = [{}];
|
|
2477
|
-
return [4
|
|
2477
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2478
2478
|
case 9:
|
|
2479
2479
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2480
|
-
return [3
|
|
2480
|
+
return [3, 11];
|
|
2481
2481
|
case 10:
|
|
2482
2482
|
parsedBody = parsedOutput.body;
|
|
2483
2483
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2487,7 +2487,7 @@ var deserializeAws_restJson1ListReservationsCommandError = function (output, con
|
|
|
2487
2487
|
message = response.message || response.Message || errorCode;
|
|
2488
2488
|
response.message = message;
|
|
2489
2489
|
delete response.Message;
|
|
2490
|
-
return [2
|
|
2490
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2491
2491
|
}
|
|
2492
2492
|
});
|
|
2493
2493
|
}); };
|
|
@@ -2497,7 +2497,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2497
2497
|
switch (_c.label) {
|
|
2498
2498
|
case 0:
|
|
2499
2499
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2500
|
-
return [2
|
|
2500
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2501
2501
|
}
|
|
2502
2502
|
contents = {
|
|
2503
2503
|
$metadata: deserializeMetadata(output),
|
|
@@ -2505,13 +2505,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2505
2505
|
};
|
|
2506
2506
|
_a = __expectNonNull;
|
|
2507
2507
|
_b = __expectObject;
|
|
2508
|
-
return [4
|
|
2508
|
+
return [4, parseBody(output.body, context)];
|
|
2509
2509
|
case 1:
|
|
2510
2510
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2511
2511
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2512
2512
|
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
2513
2513
|
}
|
|
2514
|
-
return [2
|
|
2514
|
+
return [2, Promise.resolve(contents)];
|
|
2515
2515
|
}
|
|
2516
2516
|
});
|
|
2517
2517
|
}); };
|
|
@@ -2523,39 +2523,39 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2523
2523
|
case 0:
|
|
2524
2524
|
_a = [__assign({}, output)];
|
|
2525
2525
|
_f = {};
|
|
2526
|
-
return [4
|
|
2526
|
+
return [4, parseBody(output.body, context)];
|
|
2527
2527
|
case 1:
|
|
2528
2528
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2529
2529
|
errorCode = "UnknownError";
|
|
2530
2530
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2531
2531
|
_b = errorCode;
|
|
2532
2532
|
switch (_b) {
|
|
2533
|
-
case "BadRequestException": return [3
|
|
2534
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
2535
|
-
case "InternalServerErrorException": return [3
|
|
2536
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
2537
|
-
case "NotFoundException": return [3
|
|
2538
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
2539
|
-
}
|
|
2540
|
-
return [3
|
|
2533
|
+
case "BadRequestException": return [3, 2];
|
|
2534
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
2535
|
+
case "InternalServerErrorException": return [3, 4];
|
|
2536
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 4];
|
|
2537
|
+
case "NotFoundException": return [3, 6];
|
|
2538
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 6];
|
|
2539
|
+
}
|
|
2540
|
+
return [3, 8];
|
|
2541
2541
|
case 2:
|
|
2542
2542
|
_c = [{}];
|
|
2543
|
-
return [4
|
|
2543
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2544
2544
|
case 3:
|
|
2545
2545
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2546
|
-
return [3
|
|
2546
|
+
return [3, 9];
|
|
2547
2547
|
case 4:
|
|
2548
2548
|
_d = [{}];
|
|
2549
|
-
return [4
|
|
2549
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2550
2550
|
case 5:
|
|
2551
2551
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2552
|
-
return [3
|
|
2552
|
+
return [3, 9];
|
|
2553
2553
|
case 6:
|
|
2554
2554
|
_e = [{}];
|
|
2555
|
-
return [4
|
|
2555
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2556
2556
|
case 7:
|
|
2557
2557
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2558
|
-
return [3
|
|
2558
|
+
return [3, 9];
|
|
2559
2559
|
case 8:
|
|
2560
2560
|
parsedBody = parsedOutput.body;
|
|
2561
2561
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2565,7 +2565,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2565
2565
|
message = response.message || response.Message || errorCode;
|
|
2566
2566
|
response.message = message;
|
|
2567
2567
|
delete response.Message;
|
|
2568
|
-
return [2
|
|
2568
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2569
2569
|
}
|
|
2570
2570
|
});
|
|
2571
2571
|
}); };
|
|
@@ -2575,7 +2575,7 @@ export var deserializeAws_restJson1PurchaseOfferingCommand = function (output, c
|
|
|
2575
2575
|
switch (_c.label) {
|
|
2576
2576
|
case 0:
|
|
2577
2577
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2578
|
-
return [2
|
|
2578
|
+
return [2, deserializeAws_restJson1PurchaseOfferingCommandError(output, context)];
|
|
2579
2579
|
}
|
|
2580
2580
|
contents = {
|
|
2581
2581
|
$metadata: deserializeMetadata(output),
|
|
@@ -2583,13 +2583,13 @@ export var deserializeAws_restJson1PurchaseOfferingCommand = function (output, c
|
|
|
2583
2583
|
};
|
|
2584
2584
|
_a = __expectNonNull;
|
|
2585
2585
|
_b = __expectObject;
|
|
2586
|
-
return [4
|
|
2586
|
+
return [4, parseBody(output.body, context)];
|
|
2587
2587
|
case 1:
|
|
2588
2588
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2589
2589
|
if (data.reservation !== undefined && data.reservation !== null) {
|
|
2590
2590
|
contents.Reservation = deserializeAws_restJson1Reservation(data.reservation, context);
|
|
2591
2591
|
}
|
|
2592
|
-
return [2
|
|
2592
|
+
return [2, Promise.resolve(contents)];
|
|
2593
2593
|
}
|
|
2594
2594
|
});
|
|
2595
2595
|
}); };
|
|
@@ -2601,63 +2601,63 @@ var deserializeAws_restJson1PurchaseOfferingCommandError = function (output, con
|
|
|
2601
2601
|
case 0:
|
|
2602
2602
|
_a = [__assign({}, output)];
|
|
2603
2603
|
_j = {};
|
|
2604
|
-
return [4
|
|
2604
|
+
return [4, parseBody(output.body, context)];
|
|
2605
2605
|
case 1:
|
|
2606
2606
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2607
2607
|
errorCode = "UnknownError";
|
|
2608
2608
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2609
2609
|
_b = errorCode;
|
|
2610
2610
|
switch (_b) {
|
|
2611
|
-
case "BadRequestException": return [3
|
|
2612
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
2613
|
-
case "ForbiddenException": return [3
|
|
2614
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
2615
|
-
case "InternalServerErrorException": return [3
|
|
2616
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
2617
|
-
case "NotFoundException": return [3
|
|
2618
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
2619
|
-
case "ServiceUnavailableException": return [3
|
|
2620
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
2621
|
-
case "TooManyRequestsException": return [3
|
|
2622
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
2623
|
-
}
|
|
2624
|
-
return [3
|
|
2611
|
+
case "BadRequestException": return [3, 2];
|
|
2612
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
2613
|
+
case "ForbiddenException": return [3, 4];
|
|
2614
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
2615
|
+
case "InternalServerErrorException": return [3, 6];
|
|
2616
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
2617
|
+
case "NotFoundException": return [3, 8];
|
|
2618
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
2619
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2620
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
2621
|
+
case "TooManyRequestsException": return [3, 12];
|
|
2622
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
2623
|
+
}
|
|
2624
|
+
return [3, 14];
|
|
2625
2625
|
case 2:
|
|
2626
2626
|
_c = [{}];
|
|
2627
|
-
return [4
|
|
2627
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2628
2628
|
case 3:
|
|
2629
2629
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2630
|
-
return [3
|
|
2630
|
+
return [3, 15];
|
|
2631
2631
|
case 4:
|
|
2632
2632
|
_d = [{}];
|
|
2633
|
-
return [4
|
|
2633
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2634
2634
|
case 5:
|
|
2635
2635
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2636
|
-
return [3
|
|
2636
|
+
return [3, 15];
|
|
2637
2637
|
case 6:
|
|
2638
2638
|
_e = [{}];
|
|
2639
|
-
return [4
|
|
2639
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2640
2640
|
case 7:
|
|
2641
2641
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2642
|
-
return [3
|
|
2642
|
+
return [3, 15];
|
|
2643
2643
|
case 8:
|
|
2644
2644
|
_f = [{}];
|
|
2645
|
-
return [4
|
|
2645
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2646
2646
|
case 9:
|
|
2647
2647
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2648
|
-
return [3
|
|
2648
|
+
return [3, 15];
|
|
2649
2649
|
case 10:
|
|
2650
2650
|
_g = [{}];
|
|
2651
|
-
return [4
|
|
2651
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2652
2652
|
case 11:
|
|
2653
2653
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2654
|
-
return [3
|
|
2654
|
+
return [3, 15];
|
|
2655
2655
|
case 12:
|
|
2656
2656
|
_h = [{}];
|
|
2657
|
-
return [4
|
|
2657
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2658
2658
|
case 13:
|
|
2659
2659
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2660
|
-
return [3
|
|
2660
|
+
return [3, 15];
|
|
2661
2661
|
case 14:
|
|
2662
2662
|
parsedBody = parsedOutput.body;
|
|
2663
2663
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2667,7 +2667,7 @@ var deserializeAws_restJson1PurchaseOfferingCommandError = function (output, con
|
|
|
2667
2667
|
message = response.message || response.Message || errorCode;
|
|
2668
2668
|
response.message = message;
|
|
2669
2669
|
delete response.Message;
|
|
2670
|
-
return [2
|
|
2670
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2671
2671
|
}
|
|
2672
2672
|
});
|
|
2673
2673
|
}); };
|
|
@@ -2677,7 +2677,7 @@ export var deserializeAws_restJson1RemoveFlowMediaStreamCommand = function (outp
|
|
|
2677
2677
|
switch (_c.label) {
|
|
2678
2678
|
case 0:
|
|
2679
2679
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2680
|
-
return [2
|
|
2680
|
+
return [2, deserializeAws_restJson1RemoveFlowMediaStreamCommandError(output, context)];
|
|
2681
2681
|
}
|
|
2682
2682
|
contents = {
|
|
2683
2683
|
$metadata: deserializeMetadata(output),
|
|
@@ -2686,7 +2686,7 @@ export var deserializeAws_restJson1RemoveFlowMediaStreamCommand = function (outp
|
|
|
2686
2686
|
};
|
|
2687
2687
|
_a = __expectNonNull;
|
|
2688
2688
|
_b = __expectObject;
|
|
2689
|
-
return [4
|
|
2689
|
+
return [4, parseBody(output.body, context)];
|
|
2690
2690
|
case 1:
|
|
2691
2691
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2692
2692
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -2695,7 +2695,7 @@ export var deserializeAws_restJson1RemoveFlowMediaStreamCommand = function (outp
|
|
|
2695
2695
|
if (data.mediaStreamName !== undefined && data.mediaStreamName !== null) {
|
|
2696
2696
|
contents.MediaStreamName = __expectString(data.mediaStreamName);
|
|
2697
2697
|
}
|
|
2698
|
-
return [2
|
|
2698
|
+
return [2, Promise.resolve(contents)];
|
|
2699
2699
|
}
|
|
2700
2700
|
});
|
|
2701
2701
|
}); };
|
|
@@ -2707,63 +2707,63 @@ var deserializeAws_restJson1RemoveFlowMediaStreamCommandError = function (output
|
|
|
2707
2707
|
case 0:
|
|
2708
2708
|
_a = [__assign({}, output)];
|
|
2709
2709
|
_j = {};
|
|
2710
|
-
return [4
|
|
2710
|
+
return [4, parseBody(output.body, context)];
|
|
2711
2711
|
case 1:
|
|
2712
2712
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2713
2713
|
errorCode = "UnknownError";
|
|
2714
2714
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2715
2715
|
_b = errorCode;
|
|
2716
2716
|
switch (_b) {
|
|
2717
|
-
case "BadRequestException": return [3
|
|
2718
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
2719
|
-
case "ForbiddenException": return [3
|
|
2720
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
2721
|
-
case "InternalServerErrorException": return [3
|
|
2722
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
2723
|
-
case "NotFoundException": return [3
|
|
2724
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
2725
|
-
case "ServiceUnavailableException": return [3
|
|
2726
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
2727
|
-
case "TooManyRequestsException": return [3
|
|
2728
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
2729
|
-
}
|
|
2730
|
-
return [3
|
|
2717
|
+
case "BadRequestException": return [3, 2];
|
|
2718
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
2719
|
+
case "ForbiddenException": return [3, 4];
|
|
2720
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
2721
|
+
case "InternalServerErrorException": return [3, 6];
|
|
2722
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
2723
|
+
case "NotFoundException": return [3, 8];
|
|
2724
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
2725
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2726
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
2727
|
+
case "TooManyRequestsException": return [3, 12];
|
|
2728
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
2729
|
+
}
|
|
2730
|
+
return [3, 14];
|
|
2731
2731
|
case 2:
|
|
2732
2732
|
_c = [{}];
|
|
2733
|
-
return [4
|
|
2733
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2734
2734
|
case 3:
|
|
2735
2735
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2736
|
-
return [3
|
|
2736
|
+
return [3, 15];
|
|
2737
2737
|
case 4:
|
|
2738
2738
|
_d = [{}];
|
|
2739
|
-
return [4
|
|
2739
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2740
2740
|
case 5:
|
|
2741
2741
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2742
|
-
return [3
|
|
2742
|
+
return [3, 15];
|
|
2743
2743
|
case 6:
|
|
2744
2744
|
_e = [{}];
|
|
2745
|
-
return [4
|
|
2745
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2746
2746
|
case 7:
|
|
2747
2747
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2748
|
-
return [3
|
|
2748
|
+
return [3, 15];
|
|
2749
2749
|
case 8:
|
|
2750
2750
|
_f = [{}];
|
|
2751
|
-
return [4
|
|
2751
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2752
2752
|
case 9:
|
|
2753
2753
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2754
|
-
return [3
|
|
2754
|
+
return [3, 15];
|
|
2755
2755
|
case 10:
|
|
2756
2756
|
_g = [{}];
|
|
2757
|
-
return [4
|
|
2757
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2758
2758
|
case 11:
|
|
2759
2759
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2760
|
-
return [3
|
|
2760
|
+
return [3, 15];
|
|
2761
2761
|
case 12:
|
|
2762
2762
|
_h = [{}];
|
|
2763
|
-
return [4
|
|
2763
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2764
2764
|
case 13:
|
|
2765
2765
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2766
|
-
return [3
|
|
2766
|
+
return [3, 15];
|
|
2767
2767
|
case 14:
|
|
2768
2768
|
parsedBody = parsedOutput.body;
|
|
2769
2769
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2773,7 +2773,7 @@ var deserializeAws_restJson1RemoveFlowMediaStreamCommandError = function (output
|
|
|
2773
2773
|
message = response.message || response.Message || errorCode;
|
|
2774
2774
|
response.message = message;
|
|
2775
2775
|
delete response.Message;
|
|
2776
|
-
return [2
|
|
2776
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2777
2777
|
}
|
|
2778
2778
|
});
|
|
2779
2779
|
}); };
|
|
@@ -2783,7 +2783,7 @@ export var deserializeAws_restJson1RemoveFlowOutputCommand = function (output, c
|
|
|
2783
2783
|
switch (_c.label) {
|
|
2784
2784
|
case 0:
|
|
2785
2785
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2786
|
-
return [2
|
|
2786
|
+
return [2, deserializeAws_restJson1RemoveFlowOutputCommandError(output, context)];
|
|
2787
2787
|
}
|
|
2788
2788
|
contents = {
|
|
2789
2789
|
$metadata: deserializeMetadata(output),
|
|
@@ -2792,7 +2792,7 @@ export var deserializeAws_restJson1RemoveFlowOutputCommand = function (output, c
|
|
|
2792
2792
|
};
|
|
2793
2793
|
_a = __expectNonNull;
|
|
2794
2794
|
_b = __expectObject;
|
|
2795
|
-
return [4
|
|
2795
|
+
return [4, parseBody(output.body, context)];
|
|
2796
2796
|
case 1:
|
|
2797
2797
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2798
2798
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -2801,7 +2801,7 @@ export var deserializeAws_restJson1RemoveFlowOutputCommand = function (output, c
|
|
|
2801
2801
|
if (data.outputArn !== undefined && data.outputArn !== null) {
|
|
2802
2802
|
contents.OutputArn = __expectString(data.outputArn);
|
|
2803
2803
|
}
|
|
2804
|
-
return [2
|
|
2804
|
+
return [2, Promise.resolve(contents)];
|
|
2805
2805
|
}
|
|
2806
2806
|
});
|
|
2807
2807
|
}); };
|
|
@@ -2813,63 +2813,63 @@ var deserializeAws_restJson1RemoveFlowOutputCommandError = function (output, con
|
|
|
2813
2813
|
case 0:
|
|
2814
2814
|
_a = [__assign({}, output)];
|
|
2815
2815
|
_j = {};
|
|
2816
|
-
return [4
|
|
2816
|
+
return [4, parseBody(output.body, context)];
|
|
2817
2817
|
case 1:
|
|
2818
2818
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2819
2819
|
errorCode = "UnknownError";
|
|
2820
2820
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2821
2821
|
_b = errorCode;
|
|
2822
2822
|
switch (_b) {
|
|
2823
|
-
case "BadRequestException": return [3
|
|
2824
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
2825
|
-
case "ForbiddenException": return [3
|
|
2826
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
2827
|
-
case "InternalServerErrorException": return [3
|
|
2828
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
2829
|
-
case "NotFoundException": return [3
|
|
2830
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
2831
|
-
case "ServiceUnavailableException": return [3
|
|
2832
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
2833
|
-
case "TooManyRequestsException": return [3
|
|
2834
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
2835
|
-
}
|
|
2836
|
-
return [3
|
|
2823
|
+
case "BadRequestException": return [3, 2];
|
|
2824
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
2825
|
+
case "ForbiddenException": return [3, 4];
|
|
2826
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
2827
|
+
case "InternalServerErrorException": return [3, 6];
|
|
2828
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
2829
|
+
case "NotFoundException": return [3, 8];
|
|
2830
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
2831
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2832
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
2833
|
+
case "TooManyRequestsException": return [3, 12];
|
|
2834
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
2835
|
+
}
|
|
2836
|
+
return [3, 14];
|
|
2837
2837
|
case 2:
|
|
2838
2838
|
_c = [{}];
|
|
2839
|
-
return [4
|
|
2839
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2840
2840
|
case 3:
|
|
2841
2841
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2842
|
-
return [3
|
|
2842
|
+
return [3, 15];
|
|
2843
2843
|
case 4:
|
|
2844
2844
|
_d = [{}];
|
|
2845
|
-
return [4
|
|
2845
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2846
2846
|
case 5:
|
|
2847
2847
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2848
|
-
return [3
|
|
2848
|
+
return [3, 15];
|
|
2849
2849
|
case 6:
|
|
2850
2850
|
_e = [{}];
|
|
2851
|
-
return [4
|
|
2851
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2852
2852
|
case 7:
|
|
2853
2853
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2854
|
-
return [3
|
|
2854
|
+
return [3, 15];
|
|
2855
2855
|
case 8:
|
|
2856
2856
|
_f = [{}];
|
|
2857
|
-
return [4
|
|
2857
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2858
2858
|
case 9:
|
|
2859
2859
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2860
|
-
return [3
|
|
2860
|
+
return [3, 15];
|
|
2861
2861
|
case 10:
|
|
2862
2862
|
_g = [{}];
|
|
2863
|
-
return [4
|
|
2863
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2864
2864
|
case 11:
|
|
2865
2865
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2866
|
-
return [3
|
|
2866
|
+
return [3, 15];
|
|
2867
2867
|
case 12:
|
|
2868
2868
|
_h = [{}];
|
|
2869
|
-
return [4
|
|
2869
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2870
2870
|
case 13:
|
|
2871
2871
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2872
|
-
return [3
|
|
2872
|
+
return [3, 15];
|
|
2873
2873
|
case 14:
|
|
2874
2874
|
parsedBody = parsedOutput.body;
|
|
2875
2875
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2879,7 +2879,7 @@ var deserializeAws_restJson1RemoveFlowOutputCommandError = function (output, con
|
|
|
2879
2879
|
message = response.message || response.Message || errorCode;
|
|
2880
2880
|
response.message = message;
|
|
2881
2881
|
delete response.Message;
|
|
2882
|
-
return [2
|
|
2882
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2883
2883
|
}
|
|
2884
2884
|
});
|
|
2885
2885
|
}); };
|
|
@@ -2889,7 +2889,7 @@ export var deserializeAws_restJson1RemoveFlowSourceCommand = function (output, c
|
|
|
2889
2889
|
switch (_c.label) {
|
|
2890
2890
|
case 0:
|
|
2891
2891
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2892
|
-
return [2
|
|
2892
|
+
return [2, deserializeAws_restJson1RemoveFlowSourceCommandError(output, context)];
|
|
2893
2893
|
}
|
|
2894
2894
|
contents = {
|
|
2895
2895
|
$metadata: deserializeMetadata(output),
|
|
@@ -2898,7 +2898,7 @@ export var deserializeAws_restJson1RemoveFlowSourceCommand = function (output, c
|
|
|
2898
2898
|
};
|
|
2899
2899
|
_a = __expectNonNull;
|
|
2900
2900
|
_b = __expectObject;
|
|
2901
|
-
return [4
|
|
2901
|
+
return [4, parseBody(output.body, context)];
|
|
2902
2902
|
case 1:
|
|
2903
2903
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2904
2904
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -2907,7 +2907,7 @@ export var deserializeAws_restJson1RemoveFlowSourceCommand = function (output, c
|
|
|
2907
2907
|
if (data.sourceArn !== undefined && data.sourceArn !== null) {
|
|
2908
2908
|
contents.SourceArn = __expectString(data.sourceArn);
|
|
2909
2909
|
}
|
|
2910
|
-
return [2
|
|
2910
|
+
return [2, Promise.resolve(contents)];
|
|
2911
2911
|
}
|
|
2912
2912
|
});
|
|
2913
2913
|
}); };
|
|
@@ -2919,63 +2919,63 @@ var deserializeAws_restJson1RemoveFlowSourceCommandError = function (output, con
|
|
|
2919
2919
|
case 0:
|
|
2920
2920
|
_a = [__assign({}, output)];
|
|
2921
2921
|
_j = {};
|
|
2922
|
-
return [4
|
|
2922
|
+
return [4, parseBody(output.body, context)];
|
|
2923
2923
|
case 1:
|
|
2924
2924
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2925
2925
|
errorCode = "UnknownError";
|
|
2926
2926
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2927
2927
|
_b = errorCode;
|
|
2928
2928
|
switch (_b) {
|
|
2929
|
-
case "BadRequestException": return [3
|
|
2930
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
2931
|
-
case "ForbiddenException": return [3
|
|
2932
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
2933
|
-
case "InternalServerErrorException": return [3
|
|
2934
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
2935
|
-
case "NotFoundException": return [3
|
|
2936
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
2937
|
-
case "ServiceUnavailableException": return [3
|
|
2938
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
2939
|
-
case "TooManyRequestsException": return [3
|
|
2940
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
2941
|
-
}
|
|
2942
|
-
return [3
|
|
2929
|
+
case "BadRequestException": return [3, 2];
|
|
2930
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
2931
|
+
case "ForbiddenException": return [3, 4];
|
|
2932
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
2933
|
+
case "InternalServerErrorException": return [3, 6];
|
|
2934
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
2935
|
+
case "NotFoundException": return [3, 8];
|
|
2936
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
2937
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2938
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
2939
|
+
case "TooManyRequestsException": return [3, 12];
|
|
2940
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
2941
|
+
}
|
|
2942
|
+
return [3, 14];
|
|
2943
2943
|
case 2:
|
|
2944
2944
|
_c = [{}];
|
|
2945
|
-
return [4
|
|
2945
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2946
2946
|
case 3:
|
|
2947
2947
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2948
|
-
return [3
|
|
2948
|
+
return [3, 15];
|
|
2949
2949
|
case 4:
|
|
2950
2950
|
_d = [{}];
|
|
2951
|
-
return [4
|
|
2951
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2952
2952
|
case 5:
|
|
2953
2953
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2954
|
-
return [3
|
|
2954
|
+
return [3, 15];
|
|
2955
2955
|
case 6:
|
|
2956
2956
|
_e = [{}];
|
|
2957
|
-
return [4
|
|
2957
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2958
2958
|
case 7:
|
|
2959
2959
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2960
|
-
return [3
|
|
2960
|
+
return [3, 15];
|
|
2961
2961
|
case 8:
|
|
2962
2962
|
_f = [{}];
|
|
2963
|
-
return [4
|
|
2963
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2964
2964
|
case 9:
|
|
2965
2965
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2966
|
-
return [3
|
|
2966
|
+
return [3, 15];
|
|
2967
2967
|
case 10:
|
|
2968
2968
|
_g = [{}];
|
|
2969
|
-
return [4
|
|
2969
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2970
2970
|
case 11:
|
|
2971
2971
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2972
|
-
return [3
|
|
2972
|
+
return [3, 15];
|
|
2973
2973
|
case 12:
|
|
2974
2974
|
_h = [{}];
|
|
2975
|
-
return [4
|
|
2975
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2976
2976
|
case 13:
|
|
2977
2977
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2978
|
-
return [3
|
|
2978
|
+
return [3, 15];
|
|
2979
2979
|
case 14:
|
|
2980
2980
|
parsedBody = parsedOutput.body;
|
|
2981
2981
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2985,7 +2985,7 @@ var deserializeAws_restJson1RemoveFlowSourceCommandError = function (output, con
|
|
|
2985
2985
|
message = response.message || response.Message || errorCode;
|
|
2986
2986
|
response.message = message;
|
|
2987
2987
|
delete response.Message;
|
|
2988
|
-
return [2
|
|
2988
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2989
2989
|
}
|
|
2990
2990
|
});
|
|
2991
2991
|
}); };
|
|
@@ -2995,7 +2995,7 @@ export var deserializeAws_restJson1RemoveFlowVpcInterfaceCommand = function (out
|
|
|
2995
2995
|
switch (_c.label) {
|
|
2996
2996
|
case 0:
|
|
2997
2997
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2998
|
-
return [2
|
|
2998
|
+
return [2, deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError(output, context)];
|
|
2999
2999
|
}
|
|
3000
3000
|
contents = {
|
|
3001
3001
|
$metadata: deserializeMetadata(output),
|
|
@@ -3005,7 +3005,7 @@ export var deserializeAws_restJson1RemoveFlowVpcInterfaceCommand = function (out
|
|
|
3005
3005
|
};
|
|
3006
3006
|
_a = __expectNonNull;
|
|
3007
3007
|
_b = __expectObject;
|
|
3008
|
-
return [4
|
|
3008
|
+
return [4, parseBody(output.body, context)];
|
|
3009
3009
|
case 1:
|
|
3010
3010
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3011
3011
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -3017,7 +3017,7 @@ export var deserializeAws_restJson1RemoveFlowVpcInterfaceCommand = function (out
|
|
|
3017
3017
|
if (data.vpcInterfaceName !== undefined && data.vpcInterfaceName !== null) {
|
|
3018
3018
|
contents.VpcInterfaceName = __expectString(data.vpcInterfaceName);
|
|
3019
3019
|
}
|
|
3020
|
-
return [2
|
|
3020
|
+
return [2, Promise.resolve(contents)];
|
|
3021
3021
|
}
|
|
3022
3022
|
});
|
|
3023
3023
|
}); };
|
|
@@ -3029,63 +3029,63 @@ var deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError = function (outpu
|
|
|
3029
3029
|
case 0:
|
|
3030
3030
|
_a = [__assign({}, output)];
|
|
3031
3031
|
_j = {};
|
|
3032
|
-
return [4
|
|
3032
|
+
return [4, parseBody(output.body, context)];
|
|
3033
3033
|
case 1:
|
|
3034
3034
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3035
3035
|
errorCode = "UnknownError";
|
|
3036
3036
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3037
3037
|
_b = errorCode;
|
|
3038
3038
|
switch (_b) {
|
|
3039
|
-
case "BadRequestException": return [3
|
|
3040
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
3041
|
-
case "ForbiddenException": return [3
|
|
3042
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
3043
|
-
case "InternalServerErrorException": return [3
|
|
3044
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
3045
|
-
case "NotFoundException": return [3
|
|
3046
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
3047
|
-
case "ServiceUnavailableException": return [3
|
|
3048
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
3049
|
-
case "TooManyRequestsException": return [3
|
|
3050
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
3051
|
-
}
|
|
3052
|
-
return [3
|
|
3039
|
+
case "BadRequestException": return [3, 2];
|
|
3040
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
3041
|
+
case "ForbiddenException": return [3, 4];
|
|
3042
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
3043
|
+
case "InternalServerErrorException": return [3, 6];
|
|
3044
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
3045
|
+
case "NotFoundException": return [3, 8];
|
|
3046
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
3047
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
3048
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
3049
|
+
case "TooManyRequestsException": return [3, 12];
|
|
3050
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
3051
|
+
}
|
|
3052
|
+
return [3, 14];
|
|
3053
3053
|
case 2:
|
|
3054
3054
|
_c = [{}];
|
|
3055
|
-
return [4
|
|
3055
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3056
3056
|
case 3:
|
|
3057
3057
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3058
|
-
return [3
|
|
3058
|
+
return [3, 15];
|
|
3059
3059
|
case 4:
|
|
3060
3060
|
_d = [{}];
|
|
3061
|
-
return [4
|
|
3061
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3062
3062
|
case 5:
|
|
3063
3063
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3064
|
-
return [3
|
|
3064
|
+
return [3, 15];
|
|
3065
3065
|
case 6:
|
|
3066
3066
|
_e = [{}];
|
|
3067
|
-
return [4
|
|
3067
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
3068
3068
|
case 7:
|
|
3069
3069
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3070
|
-
return [3
|
|
3070
|
+
return [3, 15];
|
|
3071
3071
|
case 8:
|
|
3072
3072
|
_f = [{}];
|
|
3073
|
-
return [4
|
|
3073
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3074
3074
|
case 9:
|
|
3075
3075
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3076
|
-
return [3
|
|
3076
|
+
return [3, 15];
|
|
3077
3077
|
case 10:
|
|
3078
3078
|
_g = [{}];
|
|
3079
|
-
return [4
|
|
3079
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3080
3080
|
case 11:
|
|
3081
3081
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3082
|
-
return [3
|
|
3082
|
+
return [3, 15];
|
|
3083
3083
|
case 12:
|
|
3084
3084
|
_h = [{}];
|
|
3085
|
-
return [4
|
|
3085
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3086
3086
|
case 13:
|
|
3087
3087
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3088
|
-
return [3
|
|
3088
|
+
return [3, 15];
|
|
3089
3089
|
case 14:
|
|
3090
3090
|
parsedBody = parsedOutput.body;
|
|
3091
3091
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3095,7 +3095,7 @@ var deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError = function (outpu
|
|
|
3095
3095
|
message = response.message || response.Message || errorCode;
|
|
3096
3096
|
response.message = message;
|
|
3097
3097
|
delete response.Message;
|
|
3098
|
-
return [2
|
|
3098
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3099
3099
|
}
|
|
3100
3100
|
});
|
|
3101
3101
|
}); };
|
|
@@ -3105,7 +3105,7 @@ export var deserializeAws_restJson1RevokeFlowEntitlementCommand = function (outp
|
|
|
3105
3105
|
switch (_c.label) {
|
|
3106
3106
|
case 0:
|
|
3107
3107
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3108
|
-
return [2
|
|
3108
|
+
return [2, deserializeAws_restJson1RevokeFlowEntitlementCommandError(output, context)];
|
|
3109
3109
|
}
|
|
3110
3110
|
contents = {
|
|
3111
3111
|
$metadata: deserializeMetadata(output),
|
|
@@ -3114,7 +3114,7 @@ export var deserializeAws_restJson1RevokeFlowEntitlementCommand = function (outp
|
|
|
3114
3114
|
};
|
|
3115
3115
|
_a = __expectNonNull;
|
|
3116
3116
|
_b = __expectObject;
|
|
3117
|
-
return [4
|
|
3117
|
+
return [4, parseBody(output.body, context)];
|
|
3118
3118
|
case 1:
|
|
3119
3119
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3120
3120
|
if (data.entitlementArn !== undefined && data.entitlementArn !== null) {
|
|
@@ -3123,7 +3123,7 @@ export var deserializeAws_restJson1RevokeFlowEntitlementCommand = function (outp
|
|
|
3123
3123
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
3124
3124
|
contents.FlowArn = __expectString(data.flowArn);
|
|
3125
3125
|
}
|
|
3126
|
-
return [2
|
|
3126
|
+
return [2, Promise.resolve(contents)];
|
|
3127
3127
|
}
|
|
3128
3128
|
});
|
|
3129
3129
|
}); };
|
|
@@ -3135,63 +3135,63 @@ var deserializeAws_restJson1RevokeFlowEntitlementCommandError = function (output
|
|
|
3135
3135
|
case 0:
|
|
3136
3136
|
_a = [__assign({}, output)];
|
|
3137
3137
|
_j = {};
|
|
3138
|
-
return [4
|
|
3138
|
+
return [4, parseBody(output.body, context)];
|
|
3139
3139
|
case 1:
|
|
3140
3140
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3141
3141
|
errorCode = "UnknownError";
|
|
3142
3142
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3143
3143
|
_b = errorCode;
|
|
3144
3144
|
switch (_b) {
|
|
3145
|
-
case "BadRequestException": return [3
|
|
3146
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
3147
|
-
case "ForbiddenException": return [3
|
|
3148
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
3149
|
-
case "InternalServerErrorException": return [3
|
|
3150
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
3151
|
-
case "NotFoundException": return [3
|
|
3152
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
3153
|
-
case "ServiceUnavailableException": return [3
|
|
3154
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
3155
|
-
case "TooManyRequestsException": return [3
|
|
3156
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
3157
|
-
}
|
|
3158
|
-
return [3
|
|
3145
|
+
case "BadRequestException": return [3, 2];
|
|
3146
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
3147
|
+
case "ForbiddenException": return [3, 4];
|
|
3148
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
3149
|
+
case "InternalServerErrorException": return [3, 6];
|
|
3150
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
3151
|
+
case "NotFoundException": return [3, 8];
|
|
3152
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
3153
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
3154
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
3155
|
+
case "TooManyRequestsException": return [3, 12];
|
|
3156
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
3157
|
+
}
|
|
3158
|
+
return [3, 14];
|
|
3159
3159
|
case 2:
|
|
3160
3160
|
_c = [{}];
|
|
3161
|
-
return [4
|
|
3161
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3162
3162
|
case 3:
|
|
3163
3163
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3164
|
-
return [3
|
|
3164
|
+
return [3, 15];
|
|
3165
3165
|
case 4:
|
|
3166
3166
|
_d = [{}];
|
|
3167
|
-
return [4
|
|
3167
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3168
3168
|
case 5:
|
|
3169
3169
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3170
|
-
return [3
|
|
3170
|
+
return [3, 15];
|
|
3171
3171
|
case 6:
|
|
3172
3172
|
_e = [{}];
|
|
3173
|
-
return [4
|
|
3173
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
3174
3174
|
case 7:
|
|
3175
3175
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3176
|
-
return [3
|
|
3176
|
+
return [3, 15];
|
|
3177
3177
|
case 8:
|
|
3178
3178
|
_f = [{}];
|
|
3179
|
-
return [4
|
|
3179
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3180
3180
|
case 9:
|
|
3181
3181
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3182
|
-
return [3
|
|
3182
|
+
return [3, 15];
|
|
3183
3183
|
case 10:
|
|
3184
3184
|
_g = [{}];
|
|
3185
|
-
return [4
|
|
3185
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3186
3186
|
case 11:
|
|
3187
3187
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3188
|
-
return [3
|
|
3188
|
+
return [3, 15];
|
|
3189
3189
|
case 12:
|
|
3190
3190
|
_h = [{}];
|
|
3191
|
-
return [4
|
|
3191
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3192
3192
|
case 13:
|
|
3193
3193
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3194
|
-
return [3
|
|
3194
|
+
return [3, 15];
|
|
3195
3195
|
case 14:
|
|
3196
3196
|
parsedBody = parsedOutput.body;
|
|
3197
3197
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3201,7 +3201,7 @@ var deserializeAws_restJson1RevokeFlowEntitlementCommandError = function (output
|
|
|
3201
3201
|
message = response.message || response.Message || errorCode;
|
|
3202
3202
|
response.message = message;
|
|
3203
3203
|
delete response.Message;
|
|
3204
|
-
return [2
|
|
3204
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3205
3205
|
}
|
|
3206
3206
|
});
|
|
3207
3207
|
}); };
|
|
@@ -3211,7 +3211,7 @@ export var deserializeAws_restJson1StartFlowCommand = function (output, context)
|
|
|
3211
3211
|
switch (_c.label) {
|
|
3212
3212
|
case 0:
|
|
3213
3213
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3214
|
-
return [2
|
|
3214
|
+
return [2, deserializeAws_restJson1StartFlowCommandError(output, context)];
|
|
3215
3215
|
}
|
|
3216
3216
|
contents = {
|
|
3217
3217
|
$metadata: deserializeMetadata(output),
|
|
@@ -3220,7 +3220,7 @@ export var deserializeAws_restJson1StartFlowCommand = function (output, context)
|
|
|
3220
3220
|
};
|
|
3221
3221
|
_a = __expectNonNull;
|
|
3222
3222
|
_b = __expectObject;
|
|
3223
|
-
return [4
|
|
3223
|
+
return [4, parseBody(output.body, context)];
|
|
3224
3224
|
case 1:
|
|
3225
3225
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3226
3226
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -3229,7 +3229,7 @@ export var deserializeAws_restJson1StartFlowCommand = function (output, context)
|
|
|
3229
3229
|
if (data.status !== undefined && data.status !== null) {
|
|
3230
3230
|
contents.Status = __expectString(data.status);
|
|
3231
3231
|
}
|
|
3232
|
-
return [2
|
|
3232
|
+
return [2, Promise.resolve(contents)];
|
|
3233
3233
|
}
|
|
3234
3234
|
});
|
|
3235
3235
|
}); };
|
|
@@ -3241,63 +3241,63 @@ var deserializeAws_restJson1StartFlowCommandError = function (output, context) {
|
|
|
3241
3241
|
case 0:
|
|
3242
3242
|
_a = [__assign({}, output)];
|
|
3243
3243
|
_j = {};
|
|
3244
|
-
return [4
|
|
3244
|
+
return [4, parseBody(output.body, context)];
|
|
3245
3245
|
case 1:
|
|
3246
3246
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3247
3247
|
errorCode = "UnknownError";
|
|
3248
3248
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3249
3249
|
_b = errorCode;
|
|
3250
3250
|
switch (_b) {
|
|
3251
|
-
case "BadRequestException": return [3
|
|
3252
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
3253
|
-
case "ForbiddenException": return [3
|
|
3254
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
3255
|
-
case "InternalServerErrorException": return [3
|
|
3256
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
3257
|
-
case "NotFoundException": return [3
|
|
3258
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
3259
|
-
case "ServiceUnavailableException": return [3
|
|
3260
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
3261
|
-
case "TooManyRequestsException": return [3
|
|
3262
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
3263
|
-
}
|
|
3264
|
-
return [3
|
|
3251
|
+
case "BadRequestException": return [3, 2];
|
|
3252
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
3253
|
+
case "ForbiddenException": return [3, 4];
|
|
3254
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
3255
|
+
case "InternalServerErrorException": return [3, 6];
|
|
3256
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
3257
|
+
case "NotFoundException": return [3, 8];
|
|
3258
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
3259
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
3260
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
3261
|
+
case "TooManyRequestsException": return [3, 12];
|
|
3262
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
3263
|
+
}
|
|
3264
|
+
return [3, 14];
|
|
3265
3265
|
case 2:
|
|
3266
3266
|
_c = [{}];
|
|
3267
|
-
return [4
|
|
3267
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3268
3268
|
case 3:
|
|
3269
3269
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3270
|
-
return [3
|
|
3270
|
+
return [3, 15];
|
|
3271
3271
|
case 4:
|
|
3272
3272
|
_d = [{}];
|
|
3273
|
-
return [4
|
|
3273
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3274
3274
|
case 5:
|
|
3275
3275
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3276
|
-
return [3
|
|
3276
|
+
return [3, 15];
|
|
3277
3277
|
case 6:
|
|
3278
3278
|
_e = [{}];
|
|
3279
|
-
return [4
|
|
3279
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
3280
3280
|
case 7:
|
|
3281
3281
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3282
|
-
return [3
|
|
3282
|
+
return [3, 15];
|
|
3283
3283
|
case 8:
|
|
3284
3284
|
_f = [{}];
|
|
3285
|
-
return [4
|
|
3285
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3286
3286
|
case 9:
|
|
3287
3287
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3288
|
-
return [3
|
|
3288
|
+
return [3, 15];
|
|
3289
3289
|
case 10:
|
|
3290
3290
|
_g = [{}];
|
|
3291
|
-
return [4
|
|
3291
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3292
3292
|
case 11:
|
|
3293
3293
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3294
|
-
return [3
|
|
3294
|
+
return [3, 15];
|
|
3295
3295
|
case 12:
|
|
3296
3296
|
_h = [{}];
|
|
3297
|
-
return [4
|
|
3297
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3298
3298
|
case 13:
|
|
3299
3299
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3300
|
-
return [3
|
|
3300
|
+
return [3, 15];
|
|
3301
3301
|
case 14:
|
|
3302
3302
|
parsedBody = parsedOutput.body;
|
|
3303
3303
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3307,7 +3307,7 @@ var deserializeAws_restJson1StartFlowCommandError = function (output, context) {
|
|
|
3307
3307
|
message = response.message || response.Message || errorCode;
|
|
3308
3308
|
response.message = message;
|
|
3309
3309
|
delete response.Message;
|
|
3310
|
-
return [2
|
|
3310
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3311
3311
|
}
|
|
3312
3312
|
});
|
|
3313
3313
|
}); };
|
|
@@ -3317,7 +3317,7 @@ export var deserializeAws_restJson1StopFlowCommand = function (output, context)
|
|
|
3317
3317
|
switch (_c.label) {
|
|
3318
3318
|
case 0:
|
|
3319
3319
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3320
|
-
return [2
|
|
3320
|
+
return [2, deserializeAws_restJson1StopFlowCommandError(output, context)];
|
|
3321
3321
|
}
|
|
3322
3322
|
contents = {
|
|
3323
3323
|
$metadata: deserializeMetadata(output),
|
|
@@ -3326,7 +3326,7 @@ export var deserializeAws_restJson1StopFlowCommand = function (output, context)
|
|
|
3326
3326
|
};
|
|
3327
3327
|
_a = __expectNonNull;
|
|
3328
3328
|
_b = __expectObject;
|
|
3329
|
-
return [4
|
|
3329
|
+
return [4, parseBody(output.body, context)];
|
|
3330
3330
|
case 1:
|
|
3331
3331
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3332
3332
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -3335,7 +3335,7 @@ export var deserializeAws_restJson1StopFlowCommand = function (output, context)
|
|
|
3335
3335
|
if (data.status !== undefined && data.status !== null) {
|
|
3336
3336
|
contents.Status = __expectString(data.status);
|
|
3337
3337
|
}
|
|
3338
|
-
return [2
|
|
3338
|
+
return [2, Promise.resolve(contents)];
|
|
3339
3339
|
}
|
|
3340
3340
|
});
|
|
3341
3341
|
}); };
|
|
@@ -3347,63 +3347,63 @@ var deserializeAws_restJson1StopFlowCommandError = function (output, context) {
|
|
|
3347
3347
|
case 0:
|
|
3348
3348
|
_a = [__assign({}, output)];
|
|
3349
3349
|
_j = {};
|
|
3350
|
-
return [4
|
|
3350
|
+
return [4, parseBody(output.body, context)];
|
|
3351
3351
|
case 1:
|
|
3352
3352
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3353
3353
|
errorCode = "UnknownError";
|
|
3354
3354
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3355
3355
|
_b = errorCode;
|
|
3356
3356
|
switch (_b) {
|
|
3357
|
-
case "BadRequestException": return [3
|
|
3358
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
3359
|
-
case "ForbiddenException": return [3
|
|
3360
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
3361
|
-
case "InternalServerErrorException": return [3
|
|
3362
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
3363
|
-
case "NotFoundException": return [3
|
|
3364
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
3365
|
-
case "ServiceUnavailableException": return [3
|
|
3366
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
3367
|
-
case "TooManyRequestsException": return [3
|
|
3368
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
3369
|
-
}
|
|
3370
|
-
return [3
|
|
3357
|
+
case "BadRequestException": return [3, 2];
|
|
3358
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
3359
|
+
case "ForbiddenException": return [3, 4];
|
|
3360
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
3361
|
+
case "InternalServerErrorException": return [3, 6];
|
|
3362
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
3363
|
+
case "NotFoundException": return [3, 8];
|
|
3364
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
3365
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
3366
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
3367
|
+
case "TooManyRequestsException": return [3, 12];
|
|
3368
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
3369
|
+
}
|
|
3370
|
+
return [3, 14];
|
|
3371
3371
|
case 2:
|
|
3372
3372
|
_c = [{}];
|
|
3373
|
-
return [4
|
|
3373
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3374
3374
|
case 3:
|
|
3375
3375
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3376
|
-
return [3
|
|
3376
|
+
return [3, 15];
|
|
3377
3377
|
case 4:
|
|
3378
3378
|
_d = [{}];
|
|
3379
|
-
return [4
|
|
3379
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3380
3380
|
case 5:
|
|
3381
3381
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3382
|
-
return [3
|
|
3382
|
+
return [3, 15];
|
|
3383
3383
|
case 6:
|
|
3384
3384
|
_e = [{}];
|
|
3385
|
-
return [4
|
|
3385
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
3386
3386
|
case 7:
|
|
3387
3387
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3388
|
-
return [3
|
|
3388
|
+
return [3, 15];
|
|
3389
3389
|
case 8:
|
|
3390
3390
|
_f = [{}];
|
|
3391
|
-
return [4
|
|
3391
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3392
3392
|
case 9:
|
|
3393
3393
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3394
|
-
return [3
|
|
3394
|
+
return [3, 15];
|
|
3395
3395
|
case 10:
|
|
3396
3396
|
_g = [{}];
|
|
3397
|
-
return [4
|
|
3397
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3398
3398
|
case 11:
|
|
3399
3399
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3400
|
-
return [3
|
|
3400
|
+
return [3, 15];
|
|
3401
3401
|
case 12:
|
|
3402
3402
|
_h = [{}];
|
|
3403
|
-
return [4
|
|
3403
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3404
3404
|
case 13:
|
|
3405
3405
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3406
|
-
return [3
|
|
3406
|
+
return [3, 15];
|
|
3407
3407
|
case 14:
|
|
3408
3408
|
parsedBody = parsedOutput.body;
|
|
3409
3409
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3413,7 +3413,7 @@ var deserializeAws_restJson1StopFlowCommandError = function (output, context) {
|
|
|
3413
3413
|
message = response.message || response.Message || errorCode;
|
|
3414
3414
|
response.message = message;
|
|
3415
3415
|
delete response.Message;
|
|
3416
|
-
return [2
|
|
3416
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3417
3417
|
}
|
|
3418
3418
|
});
|
|
3419
3419
|
}); };
|
|
@@ -3423,15 +3423,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
3423
3423
|
switch (_a.label) {
|
|
3424
3424
|
case 0:
|
|
3425
3425
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3426
|
-
return [2
|
|
3426
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
3427
3427
|
}
|
|
3428
3428
|
contents = {
|
|
3429
3429
|
$metadata: deserializeMetadata(output),
|
|
3430
3430
|
};
|
|
3431
|
-
return [4
|
|
3431
|
+
return [4, collectBody(output.body, context)];
|
|
3432
3432
|
case 1:
|
|
3433
3433
|
_a.sent();
|
|
3434
|
-
return [2
|
|
3434
|
+
return [2, Promise.resolve(contents)];
|
|
3435
3435
|
}
|
|
3436
3436
|
});
|
|
3437
3437
|
}); };
|
|
@@ -3443,39 +3443,39 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3443
3443
|
case 0:
|
|
3444
3444
|
_a = [__assign({}, output)];
|
|
3445
3445
|
_f = {};
|
|
3446
|
-
return [4
|
|
3446
|
+
return [4, parseBody(output.body, context)];
|
|
3447
3447
|
case 1:
|
|
3448
3448
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3449
3449
|
errorCode = "UnknownError";
|
|
3450
3450
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3451
3451
|
_b = errorCode;
|
|
3452
3452
|
switch (_b) {
|
|
3453
|
-
case "BadRequestException": return [3
|
|
3454
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
3455
|
-
case "InternalServerErrorException": return [3
|
|
3456
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
3457
|
-
case "NotFoundException": return [3
|
|
3458
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
3459
|
-
}
|
|
3460
|
-
return [3
|
|
3453
|
+
case "BadRequestException": return [3, 2];
|
|
3454
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
3455
|
+
case "InternalServerErrorException": return [3, 4];
|
|
3456
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 4];
|
|
3457
|
+
case "NotFoundException": return [3, 6];
|
|
3458
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 6];
|
|
3459
|
+
}
|
|
3460
|
+
return [3, 8];
|
|
3461
3461
|
case 2:
|
|
3462
3462
|
_c = [{}];
|
|
3463
|
-
return [4
|
|
3463
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3464
3464
|
case 3:
|
|
3465
3465
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3466
|
-
return [3
|
|
3466
|
+
return [3, 9];
|
|
3467
3467
|
case 4:
|
|
3468
3468
|
_d = [{}];
|
|
3469
|
-
return [4
|
|
3469
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
3470
3470
|
case 5:
|
|
3471
3471
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3472
|
-
return [3
|
|
3472
|
+
return [3, 9];
|
|
3473
3473
|
case 6:
|
|
3474
3474
|
_e = [{}];
|
|
3475
|
-
return [4
|
|
3475
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3476
3476
|
case 7:
|
|
3477
3477
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3478
|
-
return [3
|
|
3478
|
+
return [3, 9];
|
|
3479
3479
|
case 8:
|
|
3480
3480
|
parsedBody = parsedOutput.body;
|
|
3481
3481
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3485,7 +3485,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3485
3485
|
message = response.message || response.Message || errorCode;
|
|
3486
3486
|
response.message = message;
|
|
3487
3487
|
delete response.Message;
|
|
3488
|
-
return [2
|
|
3488
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3489
3489
|
}
|
|
3490
3490
|
});
|
|
3491
3491
|
}); };
|
|
@@ -3495,15 +3495,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3495
3495
|
switch (_a.label) {
|
|
3496
3496
|
case 0:
|
|
3497
3497
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3498
|
-
return [2
|
|
3498
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
3499
3499
|
}
|
|
3500
3500
|
contents = {
|
|
3501
3501
|
$metadata: deserializeMetadata(output),
|
|
3502
3502
|
};
|
|
3503
|
-
return [4
|
|
3503
|
+
return [4, collectBody(output.body, context)];
|
|
3504
3504
|
case 1:
|
|
3505
3505
|
_a.sent();
|
|
3506
|
-
return [2
|
|
3506
|
+
return [2, Promise.resolve(contents)];
|
|
3507
3507
|
}
|
|
3508
3508
|
});
|
|
3509
3509
|
}); };
|
|
@@ -3515,39 +3515,39 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3515
3515
|
case 0:
|
|
3516
3516
|
_a = [__assign({}, output)];
|
|
3517
3517
|
_f = {};
|
|
3518
|
-
return [4
|
|
3518
|
+
return [4, parseBody(output.body, context)];
|
|
3519
3519
|
case 1:
|
|
3520
3520
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3521
3521
|
errorCode = "UnknownError";
|
|
3522
3522
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3523
3523
|
_b = errorCode;
|
|
3524
3524
|
switch (_b) {
|
|
3525
|
-
case "BadRequestException": return [3
|
|
3526
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
3527
|
-
case "InternalServerErrorException": return [3
|
|
3528
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
3529
|
-
case "NotFoundException": return [3
|
|
3530
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
3531
|
-
}
|
|
3532
|
-
return [3
|
|
3525
|
+
case "BadRequestException": return [3, 2];
|
|
3526
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
3527
|
+
case "InternalServerErrorException": return [3, 4];
|
|
3528
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 4];
|
|
3529
|
+
case "NotFoundException": return [3, 6];
|
|
3530
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 6];
|
|
3531
|
+
}
|
|
3532
|
+
return [3, 8];
|
|
3533
3533
|
case 2:
|
|
3534
3534
|
_c = [{}];
|
|
3535
|
-
return [4
|
|
3535
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3536
3536
|
case 3:
|
|
3537
3537
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3538
|
-
return [3
|
|
3538
|
+
return [3, 9];
|
|
3539
3539
|
case 4:
|
|
3540
3540
|
_d = [{}];
|
|
3541
|
-
return [4
|
|
3541
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
3542
3542
|
case 5:
|
|
3543
3543
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3544
|
-
return [3
|
|
3544
|
+
return [3, 9];
|
|
3545
3545
|
case 6:
|
|
3546
3546
|
_e = [{}];
|
|
3547
|
-
return [4
|
|
3547
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3548
3548
|
case 7:
|
|
3549
3549
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3550
|
-
return [3
|
|
3550
|
+
return [3, 9];
|
|
3551
3551
|
case 8:
|
|
3552
3552
|
parsedBody = parsedOutput.body;
|
|
3553
3553
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3557,7 +3557,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3557
3557
|
message = response.message || response.Message || errorCode;
|
|
3558
3558
|
response.message = message;
|
|
3559
3559
|
delete response.Message;
|
|
3560
|
-
return [2
|
|
3560
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3561
3561
|
}
|
|
3562
3562
|
});
|
|
3563
3563
|
}); };
|
|
@@ -3567,7 +3567,7 @@ export var deserializeAws_restJson1UpdateFlowCommand = function (output, context
|
|
|
3567
3567
|
switch (_c.label) {
|
|
3568
3568
|
case 0:
|
|
3569
3569
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3570
|
-
return [2
|
|
3570
|
+
return [2, deserializeAws_restJson1UpdateFlowCommandError(output, context)];
|
|
3571
3571
|
}
|
|
3572
3572
|
contents = {
|
|
3573
3573
|
$metadata: deserializeMetadata(output),
|
|
@@ -3575,13 +3575,13 @@ export var deserializeAws_restJson1UpdateFlowCommand = function (output, context
|
|
|
3575
3575
|
};
|
|
3576
3576
|
_a = __expectNonNull;
|
|
3577
3577
|
_b = __expectObject;
|
|
3578
|
-
return [4
|
|
3578
|
+
return [4, parseBody(output.body, context)];
|
|
3579
3579
|
case 1:
|
|
3580
3580
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3581
3581
|
if (data.flow !== undefined && data.flow !== null) {
|
|
3582
3582
|
contents.Flow = deserializeAws_restJson1Flow(data.flow, context);
|
|
3583
3583
|
}
|
|
3584
|
-
return [2
|
|
3584
|
+
return [2, Promise.resolve(contents)];
|
|
3585
3585
|
}
|
|
3586
3586
|
});
|
|
3587
3587
|
}); };
|
|
@@ -3593,63 +3593,63 @@ var deserializeAws_restJson1UpdateFlowCommandError = function (output, context)
|
|
|
3593
3593
|
case 0:
|
|
3594
3594
|
_a = [__assign({}, output)];
|
|
3595
3595
|
_j = {};
|
|
3596
|
-
return [4
|
|
3596
|
+
return [4, parseBody(output.body, context)];
|
|
3597
3597
|
case 1:
|
|
3598
3598
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3599
3599
|
errorCode = "UnknownError";
|
|
3600
3600
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3601
3601
|
_b = errorCode;
|
|
3602
3602
|
switch (_b) {
|
|
3603
|
-
case "BadRequestException": return [3
|
|
3604
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
3605
|
-
case "ForbiddenException": return [3
|
|
3606
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
3607
|
-
case "InternalServerErrorException": return [3
|
|
3608
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
3609
|
-
case "NotFoundException": return [3
|
|
3610
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
3611
|
-
case "ServiceUnavailableException": return [3
|
|
3612
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
3613
|
-
case "TooManyRequestsException": return [3
|
|
3614
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
3615
|
-
}
|
|
3616
|
-
return [3
|
|
3603
|
+
case "BadRequestException": return [3, 2];
|
|
3604
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
3605
|
+
case "ForbiddenException": return [3, 4];
|
|
3606
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
3607
|
+
case "InternalServerErrorException": return [3, 6];
|
|
3608
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
3609
|
+
case "NotFoundException": return [3, 8];
|
|
3610
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
3611
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
3612
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
3613
|
+
case "TooManyRequestsException": return [3, 12];
|
|
3614
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
3615
|
+
}
|
|
3616
|
+
return [3, 14];
|
|
3617
3617
|
case 2:
|
|
3618
3618
|
_c = [{}];
|
|
3619
|
-
return [4
|
|
3619
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3620
3620
|
case 3:
|
|
3621
3621
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3622
|
-
return [3
|
|
3622
|
+
return [3, 15];
|
|
3623
3623
|
case 4:
|
|
3624
3624
|
_d = [{}];
|
|
3625
|
-
return [4
|
|
3625
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3626
3626
|
case 5:
|
|
3627
3627
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3628
|
-
return [3
|
|
3628
|
+
return [3, 15];
|
|
3629
3629
|
case 6:
|
|
3630
3630
|
_e = [{}];
|
|
3631
|
-
return [4
|
|
3631
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
3632
3632
|
case 7:
|
|
3633
3633
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3634
|
-
return [3
|
|
3634
|
+
return [3, 15];
|
|
3635
3635
|
case 8:
|
|
3636
3636
|
_f = [{}];
|
|
3637
|
-
return [4
|
|
3637
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3638
3638
|
case 9:
|
|
3639
3639
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3640
|
-
return [3
|
|
3640
|
+
return [3, 15];
|
|
3641
3641
|
case 10:
|
|
3642
3642
|
_g = [{}];
|
|
3643
|
-
return [4
|
|
3643
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3644
3644
|
case 11:
|
|
3645
3645
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3646
|
-
return [3
|
|
3646
|
+
return [3, 15];
|
|
3647
3647
|
case 12:
|
|
3648
3648
|
_h = [{}];
|
|
3649
|
-
return [4
|
|
3649
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3650
3650
|
case 13:
|
|
3651
3651
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3652
|
-
return [3
|
|
3652
|
+
return [3, 15];
|
|
3653
3653
|
case 14:
|
|
3654
3654
|
parsedBody = parsedOutput.body;
|
|
3655
3655
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3659,7 +3659,7 @@ var deserializeAws_restJson1UpdateFlowCommandError = function (output, context)
|
|
|
3659
3659
|
message = response.message || response.Message || errorCode;
|
|
3660
3660
|
response.message = message;
|
|
3661
3661
|
delete response.Message;
|
|
3662
|
-
return [2
|
|
3662
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3663
3663
|
}
|
|
3664
3664
|
});
|
|
3665
3665
|
}); };
|
|
@@ -3669,7 +3669,7 @@ export var deserializeAws_restJson1UpdateFlowEntitlementCommand = function (outp
|
|
|
3669
3669
|
switch (_c.label) {
|
|
3670
3670
|
case 0:
|
|
3671
3671
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3672
|
-
return [2
|
|
3672
|
+
return [2, deserializeAws_restJson1UpdateFlowEntitlementCommandError(output, context)];
|
|
3673
3673
|
}
|
|
3674
3674
|
contents = {
|
|
3675
3675
|
$metadata: deserializeMetadata(output),
|
|
@@ -3678,7 +3678,7 @@ export var deserializeAws_restJson1UpdateFlowEntitlementCommand = function (outp
|
|
|
3678
3678
|
};
|
|
3679
3679
|
_a = __expectNonNull;
|
|
3680
3680
|
_b = __expectObject;
|
|
3681
|
-
return [4
|
|
3681
|
+
return [4, parseBody(output.body, context)];
|
|
3682
3682
|
case 1:
|
|
3683
3683
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3684
3684
|
if (data.entitlement !== undefined && data.entitlement !== null) {
|
|
@@ -3687,7 +3687,7 @@ export var deserializeAws_restJson1UpdateFlowEntitlementCommand = function (outp
|
|
|
3687
3687
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
3688
3688
|
contents.FlowArn = __expectString(data.flowArn);
|
|
3689
3689
|
}
|
|
3690
|
-
return [2
|
|
3690
|
+
return [2, Promise.resolve(contents)];
|
|
3691
3691
|
}
|
|
3692
3692
|
});
|
|
3693
3693
|
}); };
|
|
@@ -3699,63 +3699,63 @@ var deserializeAws_restJson1UpdateFlowEntitlementCommandError = function (output
|
|
|
3699
3699
|
case 0:
|
|
3700
3700
|
_a = [__assign({}, output)];
|
|
3701
3701
|
_j = {};
|
|
3702
|
-
return [4
|
|
3702
|
+
return [4, parseBody(output.body, context)];
|
|
3703
3703
|
case 1:
|
|
3704
3704
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3705
3705
|
errorCode = "UnknownError";
|
|
3706
3706
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3707
3707
|
_b = errorCode;
|
|
3708
3708
|
switch (_b) {
|
|
3709
|
-
case "BadRequestException": return [3
|
|
3710
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
3711
|
-
case "ForbiddenException": return [3
|
|
3712
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
3713
|
-
case "InternalServerErrorException": return [3
|
|
3714
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
3715
|
-
case "NotFoundException": return [3
|
|
3716
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
3717
|
-
case "ServiceUnavailableException": return [3
|
|
3718
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
3719
|
-
case "TooManyRequestsException": return [3
|
|
3720
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
3721
|
-
}
|
|
3722
|
-
return [3
|
|
3709
|
+
case "BadRequestException": return [3, 2];
|
|
3710
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
3711
|
+
case "ForbiddenException": return [3, 4];
|
|
3712
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
3713
|
+
case "InternalServerErrorException": return [3, 6];
|
|
3714
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
3715
|
+
case "NotFoundException": return [3, 8];
|
|
3716
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
3717
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
3718
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
3719
|
+
case "TooManyRequestsException": return [3, 12];
|
|
3720
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
3721
|
+
}
|
|
3722
|
+
return [3, 14];
|
|
3723
3723
|
case 2:
|
|
3724
3724
|
_c = [{}];
|
|
3725
|
-
return [4
|
|
3725
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3726
3726
|
case 3:
|
|
3727
3727
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3728
|
-
return [3
|
|
3728
|
+
return [3, 15];
|
|
3729
3729
|
case 4:
|
|
3730
3730
|
_d = [{}];
|
|
3731
|
-
return [4
|
|
3731
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3732
3732
|
case 5:
|
|
3733
3733
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3734
|
-
return [3
|
|
3734
|
+
return [3, 15];
|
|
3735
3735
|
case 6:
|
|
3736
3736
|
_e = [{}];
|
|
3737
|
-
return [4
|
|
3737
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
3738
3738
|
case 7:
|
|
3739
3739
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3740
|
-
return [3
|
|
3740
|
+
return [3, 15];
|
|
3741
3741
|
case 8:
|
|
3742
3742
|
_f = [{}];
|
|
3743
|
-
return [4
|
|
3743
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3744
3744
|
case 9:
|
|
3745
3745
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3746
|
-
return [3
|
|
3746
|
+
return [3, 15];
|
|
3747
3747
|
case 10:
|
|
3748
3748
|
_g = [{}];
|
|
3749
|
-
return [4
|
|
3749
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3750
3750
|
case 11:
|
|
3751
3751
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3752
|
-
return [3
|
|
3752
|
+
return [3, 15];
|
|
3753
3753
|
case 12:
|
|
3754
3754
|
_h = [{}];
|
|
3755
|
-
return [4
|
|
3755
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3756
3756
|
case 13:
|
|
3757
3757
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3758
|
-
return [3
|
|
3758
|
+
return [3, 15];
|
|
3759
3759
|
case 14:
|
|
3760
3760
|
parsedBody = parsedOutput.body;
|
|
3761
3761
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3765,7 +3765,7 @@ var deserializeAws_restJson1UpdateFlowEntitlementCommandError = function (output
|
|
|
3765
3765
|
message = response.message || response.Message || errorCode;
|
|
3766
3766
|
response.message = message;
|
|
3767
3767
|
delete response.Message;
|
|
3768
|
-
return [2
|
|
3768
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3769
3769
|
}
|
|
3770
3770
|
});
|
|
3771
3771
|
}); };
|
|
@@ -3775,7 +3775,7 @@ export var deserializeAws_restJson1UpdateFlowMediaStreamCommand = function (outp
|
|
|
3775
3775
|
switch (_c.label) {
|
|
3776
3776
|
case 0:
|
|
3777
3777
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3778
|
-
return [2
|
|
3778
|
+
return [2, deserializeAws_restJson1UpdateFlowMediaStreamCommandError(output, context)];
|
|
3779
3779
|
}
|
|
3780
3780
|
contents = {
|
|
3781
3781
|
$metadata: deserializeMetadata(output),
|
|
@@ -3784,7 +3784,7 @@ export var deserializeAws_restJson1UpdateFlowMediaStreamCommand = function (outp
|
|
|
3784
3784
|
};
|
|
3785
3785
|
_a = __expectNonNull;
|
|
3786
3786
|
_b = __expectObject;
|
|
3787
|
-
return [4
|
|
3787
|
+
return [4, parseBody(output.body, context)];
|
|
3788
3788
|
case 1:
|
|
3789
3789
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3790
3790
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -3793,7 +3793,7 @@ export var deserializeAws_restJson1UpdateFlowMediaStreamCommand = function (outp
|
|
|
3793
3793
|
if (data.mediaStream !== undefined && data.mediaStream !== null) {
|
|
3794
3794
|
contents.MediaStream = deserializeAws_restJson1MediaStream(data.mediaStream, context);
|
|
3795
3795
|
}
|
|
3796
|
-
return [2
|
|
3796
|
+
return [2, Promise.resolve(contents)];
|
|
3797
3797
|
}
|
|
3798
3798
|
});
|
|
3799
3799
|
}); };
|
|
@@ -3805,63 +3805,63 @@ var deserializeAws_restJson1UpdateFlowMediaStreamCommandError = function (output
|
|
|
3805
3805
|
case 0:
|
|
3806
3806
|
_a = [__assign({}, output)];
|
|
3807
3807
|
_j = {};
|
|
3808
|
-
return [4
|
|
3808
|
+
return [4, parseBody(output.body, context)];
|
|
3809
3809
|
case 1:
|
|
3810
3810
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3811
3811
|
errorCode = "UnknownError";
|
|
3812
3812
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3813
3813
|
_b = errorCode;
|
|
3814
3814
|
switch (_b) {
|
|
3815
|
-
case "BadRequestException": return [3
|
|
3816
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
3817
|
-
case "ForbiddenException": return [3
|
|
3818
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
3819
|
-
case "InternalServerErrorException": return [3
|
|
3820
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
3821
|
-
case "NotFoundException": return [3
|
|
3822
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
3823
|
-
case "ServiceUnavailableException": return [3
|
|
3824
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
3825
|
-
case "TooManyRequestsException": return [3
|
|
3826
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
3827
|
-
}
|
|
3828
|
-
return [3
|
|
3815
|
+
case "BadRequestException": return [3, 2];
|
|
3816
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
3817
|
+
case "ForbiddenException": return [3, 4];
|
|
3818
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
3819
|
+
case "InternalServerErrorException": return [3, 6];
|
|
3820
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
3821
|
+
case "NotFoundException": return [3, 8];
|
|
3822
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
3823
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
3824
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
3825
|
+
case "TooManyRequestsException": return [3, 12];
|
|
3826
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
3827
|
+
}
|
|
3828
|
+
return [3, 14];
|
|
3829
3829
|
case 2:
|
|
3830
3830
|
_c = [{}];
|
|
3831
|
-
return [4
|
|
3831
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3832
3832
|
case 3:
|
|
3833
3833
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3834
|
-
return [3
|
|
3834
|
+
return [3, 15];
|
|
3835
3835
|
case 4:
|
|
3836
3836
|
_d = [{}];
|
|
3837
|
-
return [4
|
|
3837
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3838
3838
|
case 5:
|
|
3839
3839
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3840
|
-
return [3
|
|
3840
|
+
return [3, 15];
|
|
3841
3841
|
case 6:
|
|
3842
3842
|
_e = [{}];
|
|
3843
|
-
return [4
|
|
3843
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
3844
3844
|
case 7:
|
|
3845
3845
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3846
|
-
return [3
|
|
3846
|
+
return [3, 15];
|
|
3847
3847
|
case 8:
|
|
3848
3848
|
_f = [{}];
|
|
3849
|
-
return [4
|
|
3849
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3850
3850
|
case 9:
|
|
3851
3851
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3852
|
-
return [3
|
|
3852
|
+
return [3, 15];
|
|
3853
3853
|
case 10:
|
|
3854
3854
|
_g = [{}];
|
|
3855
|
-
return [4
|
|
3855
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3856
3856
|
case 11:
|
|
3857
3857
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3858
|
-
return [3
|
|
3858
|
+
return [3, 15];
|
|
3859
3859
|
case 12:
|
|
3860
3860
|
_h = [{}];
|
|
3861
|
-
return [4
|
|
3861
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3862
3862
|
case 13:
|
|
3863
3863
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3864
|
-
return [3
|
|
3864
|
+
return [3, 15];
|
|
3865
3865
|
case 14:
|
|
3866
3866
|
parsedBody = parsedOutput.body;
|
|
3867
3867
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3871,7 +3871,7 @@ var deserializeAws_restJson1UpdateFlowMediaStreamCommandError = function (output
|
|
|
3871
3871
|
message = response.message || response.Message || errorCode;
|
|
3872
3872
|
response.message = message;
|
|
3873
3873
|
delete response.Message;
|
|
3874
|
-
return [2
|
|
3874
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3875
3875
|
}
|
|
3876
3876
|
});
|
|
3877
3877
|
}); };
|
|
@@ -3881,7 +3881,7 @@ export var deserializeAws_restJson1UpdateFlowOutputCommand = function (output, c
|
|
|
3881
3881
|
switch (_c.label) {
|
|
3882
3882
|
case 0:
|
|
3883
3883
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3884
|
-
return [2
|
|
3884
|
+
return [2, deserializeAws_restJson1UpdateFlowOutputCommandError(output, context)];
|
|
3885
3885
|
}
|
|
3886
3886
|
contents = {
|
|
3887
3887
|
$metadata: deserializeMetadata(output),
|
|
@@ -3890,7 +3890,7 @@ export var deserializeAws_restJson1UpdateFlowOutputCommand = function (output, c
|
|
|
3890
3890
|
};
|
|
3891
3891
|
_a = __expectNonNull;
|
|
3892
3892
|
_b = __expectObject;
|
|
3893
|
-
return [4
|
|
3893
|
+
return [4, parseBody(output.body, context)];
|
|
3894
3894
|
case 1:
|
|
3895
3895
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3896
3896
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -3899,7 +3899,7 @@ export var deserializeAws_restJson1UpdateFlowOutputCommand = function (output, c
|
|
|
3899
3899
|
if (data.output !== undefined && data.output !== null) {
|
|
3900
3900
|
contents.Output = deserializeAws_restJson1Output(data.output, context);
|
|
3901
3901
|
}
|
|
3902
|
-
return [2
|
|
3902
|
+
return [2, Promise.resolve(contents)];
|
|
3903
3903
|
}
|
|
3904
3904
|
});
|
|
3905
3905
|
}); };
|
|
@@ -3911,63 +3911,63 @@ var deserializeAws_restJson1UpdateFlowOutputCommandError = function (output, con
|
|
|
3911
3911
|
case 0:
|
|
3912
3912
|
_a = [__assign({}, output)];
|
|
3913
3913
|
_j = {};
|
|
3914
|
-
return [4
|
|
3914
|
+
return [4, parseBody(output.body, context)];
|
|
3915
3915
|
case 1:
|
|
3916
3916
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3917
3917
|
errorCode = "UnknownError";
|
|
3918
3918
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3919
3919
|
_b = errorCode;
|
|
3920
3920
|
switch (_b) {
|
|
3921
|
-
case "BadRequestException": return [3
|
|
3922
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
3923
|
-
case "ForbiddenException": return [3
|
|
3924
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
3925
|
-
case "InternalServerErrorException": return [3
|
|
3926
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
3927
|
-
case "NotFoundException": return [3
|
|
3928
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
3929
|
-
case "ServiceUnavailableException": return [3
|
|
3930
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
3931
|
-
case "TooManyRequestsException": return [3
|
|
3932
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
3933
|
-
}
|
|
3934
|
-
return [3
|
|
3921
|
+
case "BadRequestException": return [3, 2];
|
|
3922
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
3923
|
+
case "ForbiddenException": return [3, 4];
|
|
3924
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
3925
|
+
case "InternalServerErrorException": return [3, 6];
|
|
3926
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
3927
|
+
case "NotFoundException": return [3, 8];
|
|
3928
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
3929
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
3930
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
3931
|
+
case "TooManyRequestsException": return [3, 12];
|
|
3932
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
3933
|
+
}
|
|
3934
|
+
return [3, 14];
|
|
3935
3935
|
case 2:
|
|
3936
3936
|
_c = [{}];
|
|
3937
|
-
return [4
|
|
3937
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3938
3938
|
case 3:
|
|
3939
3939
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3940
|
-
return [3
|
|
3940
|
+
return [3, 15];
|
|
3941
3941
|
case 4:
|
|
3942
3942
|
_d = [{}];
|
|
3943
|
-
return [4
|
|
3943
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3944
3944
|
case 5:
|
|
3945
3945
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3946
|
-
return [3
|
|
3946
|
+
return [3, 15];
|
|
3947
3947
|
case 6:
|
|
3948
3948
|
_e = [{}];
|
|
3949
|
-
return [4
|
|
3949
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
3950
3950
|
case 7:
|
|
3951
3951
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3952
|
-
return [3
|
|
3952
|
+
return [3, 15];
|
|
3953
3953
|
case 8:
|
|
3954
3954
|
_f = [{}];
|
|
3955
|
-
return [4
|
|
3955
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3956
3956
|
case 9:
|
|
3957
3957
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3958
|
-
return [3
|
|
3958
|
+
return [3, 15];
|
|
3959
3959
|
case 10:
|
|
3960
3960
|
_g = [{}];
|
|
3961
|
-
return [4
|
|
3961
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3962
3962
|
case 11:
|
|
3963
3963
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3964
|
-
return [3
|
|
3964
|
+
return [3, 15];
|
|
3965
3965
|
case 12:
|
|
3966
3966
|
_h = [{}];
|
|
3967
|
-
return [4
|
|
3967
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3968
3968
|
case 13:
|
|
3969
3969
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3970
|
-
return [3
|
|
3970
|
+
return [3, 15];
|
|
3971
3971
|
case 14:
|
|
3972
3972
|
parsedBody = parsedOutput.body;
|
|
3973
3973
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3977,7 +3977,7 @@ var deserializeAws_restJson1UpdateFlowOutputCommandError = function (output, con
|
|
|
3977
3977
|
message = response.message || response.Message || errorCode;
|
|
3978
3978
|
response.message = message;
|
|
3979
3979
|
delete response.Message;
|
|
3980
|
-
return [2
|
|
3980
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3981
3981
|
}
|
|
3982
3982
|
});
|
|
3983
3983
|
}); };
|
|
@@ -3987,7 +3987,7 @@ export var deserializeAws_restJson1UpdateFlowSourceCommand = function (output, c
|
|
|
3987
3987
|
switch (_c.label) {
|
|
3988
3988
|
case 0:
|
|
3989
3989
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3990
|
-
return [2
|
|
3990
|
+
return [2, deserializeAws_restJson1UpdateFlowSourceCommandError(output, context)];
|
|
3991
3991
|
}
|
|
3992
3992
|
contents = {
|
|
3993
3993
|
$metadata: deserializeMetadata(output),
|
|
@@ -3996,7 +3996,7 @@ export var deserializeAws_restJson1UpdateFlowSourceCommand = function (output, c
|
|
|
3996
3996
|
};
|
|
3997
3997
|
_a = __expectNonNull;
|
|
3998
3998
|
_b = __expectObject;
|
|
3999
|
-
return [4
|
|
3999
|
+
return [4, parseBody(output.body, context)];
|
|
4000
4000
|
case 1:
|
|
4001
4001
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4002
4002
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -4005,7 +4005,7 @@ export var deserializeAws_restJson1UpdateFlowSourceCommand = function (output, c
|
|
|
4005
4005
|
if (data.source !== undefined && data.source !== null) {
|
|
4006
4006
|
contents.Source = deserializeAws_restJson1Source(data.source, context);
|
|
4007
4007
|
}
|
|
4008
|
-
return [2
|
|
4008
|
+
return [2, Promise.resolve(contents)];
|
|
4009
4009
|
}
|
|
4010
4010
|
});
|
|
4011
4011
|
}); };
|
|
@@ -4017,63 +4017,63 @@ var deserializeAws_restJson1UpdateFlowSourceCommandError = function (output, con
|
|
|
4017
4017
|
case 0:
|
|
4018
4018
|
_a = [__assign({}, output)];
|
|
4019
4019
|
_j = {};
|
|
4020
|
-
return [4
|
|
4020
|
+
return [4, parseBody(output.body, context)];
|
|
4021
4021
|
case 1:
|
|
4022
4022
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
4023
4023
|
errorCode = "UnknownError";
|
|
4024
4024
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4025
4025
|
_b = errorCode;
|
|
4026
4026
|
switch (_b) {
|
|
4027
|
-
case "BadRequestException": return [3
|
|
4028
|
-
case "com.amazonaws.mediaconnect#BadRequestException": return [3
|
|
4029
|
-
case "ForbiddenException": return [3
|
|
4030
|
-
case "com.amazonaws.mediaconnect#ForbiddenException": return [3
|
|
4031
|
-
case "InternalServerErrorException": return [3
|
|
4032
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3
|
|
4033
|
-
case "NotFoundException": return [3
|
|
4034
|
-
case "com.amazonaws.mediaconnect#NotFoundException": return [3
|
|
4035
|
-
case "ServiceUnavailableException": return [3
|
|
4036
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3
|
|
4037
|
-
case "TooManyRequestsException": return [3
|
|
4038
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3
|
|
4039
|
-
}
|
|
4040
|
-
return [3
|
|
4027
|
+
case "BadRequestException": return [3, 2];
|
|
4028
|
+
case "com.amazonaws.mediaconnect#BadRequestException": return [3, 2];
|
|
4029
|
+
case "ForbiddenException": return [3, 4];
|
|
4030
|
+
case "com.amazonaws.mediaconnect#ForbiddenException": return [3, 4];
|
|
4031
|
+
case "InternalServerErrorException": return [3, 6];
|
|
4032
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException": return [3, 6];
|
|
4033
|
+
case "NotFoundException": return [3, 8];
|
|
4034
|
+
case "com.amazonaws.mediaconnect#NotFoundException": return [3, 8];
|
|
4035
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
4036
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException": return [3, 10];
|
|
4037
|
+
case "TooManyRequestsException": return [3, 12];
|
|
4038
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException": return [3, 12];
|
|
4039
|
+
}
|
|
4040
|
+
return [3, 14];
|
|
4041
4041
|
case 2:
|
|
4042
4042
|
_c = [{}];
|
|
4043
|
-
return [4
|
|
4043
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4044
4044
|
case 3:
|
|
4045
4045
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4046
|
-
return [3
|
|
4046
|
+
return [3, 15];
|
|
4047
4047
|
case 4:
|
|
4048
4048
|
_d = [{}];
|
|
4049
|
-
return [4
|
|
4049
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
4050
4050
|
case 5:
|
|
4051
4051
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4052
|
-
return [3
|
|
4052
|
+
return [3, 15];
|
|
4053
4053
|
case 6:
|
|
4054
4054
|
_e = [{}];
|
|
4055
|
-
return [4
|
|
4055
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
4056
4056
|
case 7:
|
|
4057
4057
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4058
|
-
return [3
|
|
4058
|
+
return [3, 15];
|
|
4059
4059
|
case 8:
|
|
4060
4060
|
_f = [{}];
|
|
4061
|
-
return [4
|
|
4061
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4062
4062
|
case 9:
|
|
4063
4063
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4064
|
-
return [3
|
|
4064
|
+
return [3, 15];
|
|
4065
4065
|
case 10:
|
|
4066
4066
|
_g = [{}];
|
|
4067
|
-
return [4
|
|
4067
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
4068
4068
|
case 11:
|
|
4069
4069
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4070
|
-
return [3
|
|
4070
|
+
return [3, 15];
|
|
4071
4071
|
case 12:
|
|
4072
4072
|
_h = [{}];
|
|
4073
|
-
return [4
|
|
4073
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4074
4074
|
case 13:
|
|
4075
4075
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4076
|
-
return [3
|
|
4076
|
+
return [3, 15];
|
|
4077
4077
|
case 14:
|
|
4078
4078
|
parsedBody = parsedOutput.body;
|
|
4079
4079
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4083,7 +4083,7 @@ var deserializeAws_restJson1UpdateFlowSourceCommandError = function (output, con
|
|
|
4083
4083
|
message = response.message || response.Message || errorCode;
|
|
4084
4084
|
response.message = message;
|
|
4085
4085
|
delete response.Message;
|
|
4086
|
-
return [2
|
|
4086
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4087
4087
|
}
|
|
4088
4088
|
});
|
|
4089
4089
|
}); };
|
|
@@ -4100,7 +4100,7 @@ var deserializeAws_restJson1AddFlowOutputs420ExceptionResponse = function (parse
|
|
|
4100
4100
|
if (data.message !== undefined && data.message !== null) {
|
|
4101
4101
|
contents.Message = __expectString(data.message);
|
|
4102
4102
|
}
|
|
4103
|
-
return [2
|
|
4103
|
+
return [2, contents];
|
|
4104
4104
|
});
|
|
4105
4105
|
}); };
|
|
4106
4106
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4116,7 +4116,7 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
4116
4116
|
if (data.message !== undefined && data.message !== null) {
|
|
4117
4117
|
contents.Message = __expectString(data.message);
|
|
4118
4118
|
}
|
|
4119
|
-
return [2
|
|
4119
|
+
return [2, contents];
|
|
4120
4120
|
});
|
|
4121
4121
|
}); };
|
|
4122
4122
|
var deserializeAws_restJson1CreateFlow420ExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4132,7 +4132,7 @@ var deserializeAws_restJson1CreateFlow420ExceptionResponse = function (parsedOut
|
|
|
4132
4132
|
if (data.message !== undefined && data.message !== null) {
|
|
4133
4133
|
contents.Message = __expectString(data.message);
|
|
4134
4134
|
}
|
|
4135
|
-
return [2
|
|
4135
|
+
return [2, contents];
|
|
4136
4136
|
});
|
|
4137
4137
|
}); };
|
|
4138
4138
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4148,7 +4148,7 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
4148
4148
|
if (data.message !== undefined && data.message !== null) {
|
|
4149
4149
|
contents.Message = __expectString(data.message);
|
|
4150
4150
|
}
|
|
4151
|
-
return [2
|
|
4151
|
+
return [2, contents];
|
|
4152
4152
|
});
|
|
4153
4153
|
}); };
|
|
4154
4154
|
var deserializeAws_restJson1GrantFlowEntitlements420ExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4164,7 +4164,7 @@ var deserializeAws_restJson1GrantFlowEntitlements420ExceptionResponse = function
|
|
|
4164
4164
|
if (data.message !== undefined && data.message !== null) {
|
|
4165
4165
|
contents.Message = __expectString(data.message);
|
|
4166
4166
|
}
|
|
4167
|
-
return [2
|
|
4167
|
+
return [2, contents];
|
|
4168
4168
|
});
|
|
4169
4169
|
}); };
|
|
4170
4170
|
var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4180,7 +4180,7 @@ var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (par
|
|
|
4180
4180
|
if (data.message !== undefined && data.message !== null) {
|
|
4181
4181
|
contents.Message = __expectString(data.message);
|
|
4182
4182
|
}
|
|
4183
|
-
return [2
|
|
4183
|
+
return [2, contents];
|
|
4184
4184
|
});
|
|
4185
4185
|
}); };
|
|
4186
4186
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4196,7 +4196,7 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
4196
4196
|
if (data.message !== undefined && data.message !== null) {
|
|
4197
4197
|
contents.Message = __expectString(data.message);
|
|
4198
4198
|
}
|
|
4199
|
-
return [2
|
|
4199
|
+
return [2, contents];
|
|
4200
4200
|
});
|
|
4201
4201
|
}); };
|
|
4202
4202
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4212,7 +4212,7 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
4212
4212
|
if (data.message !== undefined && data.message !== null) {
|
|
4213
4213
|
contents.Message = __expectString(data.message);
|
|
4214
4214
|
}
|
|
4215
|
-
return [2
|
|
4215
|
+
return [2, contents];
|
|
4216
4216
|
});
|
|
4217
4217
|
}); };
|
|
4218
4218
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4228,7 +4228,7 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
4228
4228
|
if (data.message !== undefined && data.message !== null) {
|
|
4229
4229
|
contents.Message = __expectString(data.message);
|
|
4230
4230
|
}
|
|
4231
|
-
return [2
|
|
4231
|
+
return [2, contents];
|
|
4232
4232
|
});
|
|
4233
4233
|
}); };
|
|
4234
4234
|
var serializeAws_restJson1__listOf__string = function (input, context) {
|
|
@@ -4926,7 +4926,6 @@ var deserializeMetadata = function (output) {
|
|
|
4926
4926
|
cfId: output.headers["x-amz-cf-id"],
|
|
4927
4927
|
});
|
|
4928
4928
|
};
|
|
4929
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4930
4929
|
var collectBody = function (streamBody, context) {
|
|
4931
4930
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
4932
4931
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -4934,7 +4933,6 @@ var collectBody = function (streamBody, context) {
|
|
|
4934
4933
|
}
|
|
4935
4934
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4936
4935
|
};
|
|
4937
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4938
4936
|
var collectBodyString = function (streamBody, context) {
|
|
4939
4937
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
4940
4938
|
};
|
|
@@ -4953,9 +4951,6 @@ var parseBody = function (streamBody, context) {
|
|
|
4953
4951
|
return {};
|
|
4954
4952
|
});
|
|
4955
4953
|
};
|
|
4956
|
-
/**
|
|
4957
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
4958
|
-
*/
|
|
4959
4954
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4960
4955
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4961
4956
|
var sanitizeErrorCode = function (rawValue) {
|