@aws-sdk/client-mediaconnect 3.312.0 → 3.315.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/README.md +167 -7
- package/dist-cjs/MediaConnect.js +300 -0
- package/dist-cjs/commands/AddBridgeOutputsCommand.js +45 -0
- package/dist-cjs/commands/AddBridgeSourcesCommand.js +45 -0
- package/dist-cjs/commands/CreateBridgeCommand.js +45 -0
- package/dist-cjs/commands/CreateGatewayCommand.js +45 -0
- package/dist-cjs/commands/DeleteBridgeCommand.js +45 -0
- package/dist-cjs/commands/DeleteGatewayCommand.js +45 -0
- package/dist-cjs/commands/DeregisterGatewayInstanceCommand.js +45 -0
- package/dist-cjs/commands/DescribeBridgeCommand.js +45 -0
- package/dist-cjs/commands/DescribeGatewayCommand.js +45 -0
- package/dist-cjs/commands/DescribeGatewayInstanceCommand.js +45 -0
- package/dist-cjs/commands/ListBridgesCommand.js +45 -0
- package/dist-cjs/commands/ListGatewayInstancesCommand.js +45 -0
- package/dist-cjs/commands/ListGatewaysCommand.js +45 -0
- package/dist-cjs/commands/RemoveBridgeOutputCommand.js +45 -0
- package/dist-cjs/commands/RemoveBridgeSourceCommand.js +45 -0
- package/dist-cjs/commands/UpdateBridgeCommand.js +45 -0
- package/dist-cjs/commands/UpdateBridgeOutputCommand.js +45 -0
- package/dist-cjs/commands/UpdateBridgeSourceCommand.js +45 -0
- package/dist-cjs/commands/UpdateBridgeStateCommand.js +45 -0
- package/dist-cjs/commands/UpdateGatewayInstanceCommand.js +45 -0
- package/dist-cjs/commands/index.js +20 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +106 -20
- package/dist-cjs/pagination/ListBridgesPaginator.js +29 -0
- package/dist-cjs/pagination/ListGatewayInstancesPaginator.js +29 -0
- package/dist-cjs/pagination/ListGatewaysPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2740 -1056
- package/dist-es/MediaConnect.js +300 -0
- package/dist-es/commands/AddBridgeOutputsCommand.js +41 -0
- package/dist-es/commands/AddBridgeSourcesCommand.js +41 -0
- package/dist-es/commands/CreateBridgeCommand.js +41 -0
- package/dist-es/commands/CreateGatewayCommand.js +41 -0
- package/dist-es/commands/DeleteBridgeCommand.js +41 -0
- package/dist-es/commands/DeleteGatewayCommand.js +41 -0
- package/dist-es/commands/DeregisterGatewayInstanceCommand.js +41 -0
- package/dist-es/commands/DescribeBridgeCommand.js +41 -0
- package/dist-es/commands/DescribeGatewayCommand.js +41 -0
- package/dist-es/commands/DescribeGatewayInstanceCommand.js +41 -0
- package/dist-es/commands/ListBridgesCommand.js +41 -0
- package/dist-es/commands/ListGatewayInstancesCommand.js +41 -0
- package/dist-es/commands/ListGatewaysCommand.js +41 -0
- package/dist-es/commands/RemoveBridgeOutputCommand.js +41 -0
- package/dist-es/commands/RemoveBridgeSourceCommand.js +41 -0
- package/dist-es/commands/UpdateBridgeCommand.js +41 -0
- package/dist-es/commands/UpdateBridgeOutputCommand.js +41 -0
- package/dist-es/commands/UpdateBridgeSourceCommand.js +41 -0
- package/dist-es/commands/UpdateBridgeStateCommand.js +41 -0
- package/dist-es/commands/UpdateGatewayInstanceCommand.js +41 -0
- package/dist-es/commands/index.js +20 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +102 -19
- package/dist-es/pagination/ListBridgesPaginator.js +25 -0
- package/dist-es/pagination/ListGatewayInstancesPaginator.js +25 -0
- package/dist-es/pagination/ListGatewaysPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +2627 -983
- package/dist-types/MediaConnect.d.ts +160 -0
- package/dist-types/MediaConnectClient.d.ts +22 -2
- package/dist-types/commands/AddBridgeOutputsCommand.d.ts +96 -0
- package/dist-types/commands/AddBridgeSourcesCommand.d.ts +102 -0
- package/dist-types/commands/AddFlowOutputsCommand.d.ts +1 -1
- package/dist-types/commands/AddFlowSourcesCommand.d.ts +7 -1
- package/dist-types/commands/CreateBridgeCommand.d.ts +130 -0
- package/dist-types/commands/CreateFlowCommand.d.ts +15 -3
- package/dist-types/commands/CreateGatewayCommand.d.ts +93 -0
- package/dist-types/commands/DeleteBridgeCommand.d.ts +84 -0
- package/dist-types/commands/DeleteGatewayCommand.d.ts +84 -0
- package/dist-types/commands/DeregisterGatewayInstanceCommand.d.ts +85 -0
- package/dist-types/commands/DescribeBridgeCommand.d.ts +84 -0
- package/dist-types/commands/DescribeGatewayCommand.d.ts +84 -0
- package/dist-types/commands/DescribeGatewayInstanceCommand.d.ts +84 -0
- package/dist-types/commands/ListBridgesCommand.d.ts +80 -0
- package/dist-types/commands/ListGatewayInstancesCommand.d.ts +80 -0
- package/dist-types/commands/ListGatewaysCommand.d.ts +79 -0
- package/dist-types/commands/RemoveBridgeOutputCommand.d.ts +85 -0
- package/dist-types/commands/RemoveBridgeSourceCommand.d.ts +85 -0
- package/dist-types/commands/UpdateBridgeCommand.d.ts +99 -0
- package/dist-types/commands/UpdateBridgeOutputCommand.d.ts +92 -0
- package/dist-types/commands/UpdateBridgeSourceCommand.d.ts +97 -0
- package/dist-types/commands/UpdateBridgeStateCommand.d.ts +85 -0
- package/dist-types/commands/UpdateFlowOutputCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFlowSourceCommand.d.ts +7 -1
- package/dist-types/commands/UpdateGatewayInstanceCommand.d.ts +85 -0
- package/dist-types/commands/index.d.ts +20 -0
- package/dist-types/models/models_0.d.ts +1340 -85
- package/dist-types/pagination/ListBridgesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListGatewayInstancesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListGatewaysPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +180 -0
- package/dist-types/ts3.4/MediaConnect.d.ts +340 -0
- package/dist-types/ts3.4/MediaConnectClient.d.ts +122 -2
- package/dist-types/ts3.4/commands/AddBridgeOutputsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/AddBridgeSourcesCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateBridgeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreateGatewayCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteBridgeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteGatewayCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeregisterGatewayInstanceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeBridgeCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeGatewayCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeGatewayInstanceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListBridgesCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListGatewayInstancesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListGatewaysCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/RemoveBridgeOutputCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/RemoveBridgeSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateBridgeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateBridgeOutputCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateBridgeSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateBridgeStateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateGatewayInstanceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +20 -0
- package/dist-types/ts3.4/models/models_0.d.ts +442 -33
- package/dist-types/ts3.4/pagination/ListBridgesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListGatewayInstancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListGatewaysPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +240 -0
- package/package.json +6 -6
|
@@ -1,7 +1,49 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { MediaConnectServiceException as __BaseException } from "../models/MediaConnectServiceException";
|
|
4
|
-
import { AddFlowOutputs420Exception, BadRequestException, CreateFlow420Exception, ForbiddenException, GrantFlowEntitlements420Exception, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, } from "../models/models_0";
|
|
4
|
+
import { AddFlowOutputs420Exception, BadRequestException, ConflictException, CreateBridge420Exception, CreateFlow420Exception, CreateGateway420Exception, ForbiddenException, GrantFlowEntitlements420Exception, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, } from "../models/models_0";
|
|
5
|
+
export const se_AddBridgeOutputsCommand = async (input, context) => {
|
|
6
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
|
+
const headers = {
|
|
8
|
+
"content-type": "application/json",
|
|
9
|
+
};
|
|
10
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/outputs";
|
|
11
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
12
|
+
let body;
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
outputs: [, (_) => se___listOfAddBridgeOutputRequest(_, context), `Outputs`],
|
|
15
|
+
}));
|
|
16
|
+
return new __HttpRequest({
|
|
17
|
+
protocol,
|
|
18
|
+
hostname,
|
|
19
|
+
port,
|
|
20
|
+
method: "POST",
|
|
21
|
+
headers,
|
|
22
|
+
path: resolvedPath,
|
|
23
|
+
body,
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
export const se_AddBridgeSourcesCommand = async (input, context) => {
|
|
27
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
28
|
+
const headers = {
|
|
29
|
+
"content-type": "application/json",
|
|
30
|
+
};
|
|
31
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/sources";
|
|
32
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
33
|
+
let body;
|
|
34
|
+
body = JSON.stringify(take(input, {
|
|
35
|
+
sources: [, (_) => se___listOfAddBridgeSourceRequest(_, context), `Sources`],
|
|
36
|
+
}));
|
|
37
|
+
return new __HttpRequest({
|
|
38
|
+
protocol,
|
|
39
|
+
hostname,
|
|
40
|
+
port,
|
|
41
|
+
method: "POST",
|
|
42
|
+
headers,
|
|
43
|
+
path: resolvedPath,
|
|
44
|
+
body,
|
|
45
|
+
});
|
|
46
|
+
};
|
|
5
47
|
export const se_AddFlowMediaStreamsCommand = async (input, context) => {
|
|
6
48
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
49
|
const headers = {
|
|
@@ -10,9 +52,9 @@ export const se_AddFlowMediaStreamsCommand = async (input, context) => {
|
|
|
10
52
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/mediaStreams";
|
|
11
53
|
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
|
|
12
54
|
let body;
|
|
13
|
-
body = JSON.stringify({
|
|
14
|
-
|
|
15
|
-
});
|
|
55
|
+
body = JSON.stringify(take(input, {
|
|
56
|
+
mediaStreams: [, (_) => se___listOfAddMediaStreamRequest(_, context), `MediaStreams`],
|
|
57
|
+
}));
|
|
16
58
|
return new __HttpRequest({
|
|
17
59
|
protocol,
|
|
18
60
|
hostname,
|
|
@@ -31,9 +73,9 @@ export const se_AddFlowOutputsCommand = async (input, context) => {
|
|
|
31
73
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/outputs";
|
|
32
74
|
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
|
|
33
75
|
let body;
|
|
34
|
-
body = JSON.stringify({
|
|
35
|
-
|
|
36
|
-
});
|
|
76
|
+
body = JSON.stringify(take(input, {
|
|
77
|
+
outputs: [, (_) => se___listOfAddOutputRequest(_, context), `Outputs`],
|
|
78
|
+
}));
|
|
37
79
|
return new __HttpRequest({
|
|
38
80
|
protocol,
|
|
39
81
|
hostname,
|
|
@@ -52,9 +94,9 @@ export const se_AddFlowSourcesCommand = async (input, context) => {
|
|
|
52
94
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/source";
|
|
53
95
|
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
|
|
54
96
|
let body;
|
|
55
|
-
body = JSON.stringify({
|
|
56
|
-
|
|
57
|
-
});
|
|
97
|
+
body = JSON.stringify(take(input, {
|
|
98
|
+
sources: [, (_) => se___listOfSetSourceRequest(_, context), `Sources`],
|
|
99
|
+
}));
|
|
58
100
|
return new __HttpRequest({
|
|
59
101
|
protocol,
|
|
60
102
|
hostname,
|
|
@@ -73,9 +115,35 @@ export const se_AddFlowVpcInterfacesCommand = async (input, context) => {
|
|
|
73
115
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/vpcInterfaces";
|
|
74
116
|
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
|
|
75
117
|
let body;
|
|
76
|
-
body = JSON.stringify({
|
|
77
|
-
|
|
118
|
+
body = JSON.stringify(take(input, {
|
|
119
|
+
vpcInterfaces: [, (_) => se___listOfVpcInterfaceRequest(_, context), `VpcInterfaces`],
|
|
120
|
+
}));
|
|
121
|
+
return new __HttpRequest({
|
|
122
|
+
protocol,
|
|
123
|
+
hostname,
|
|
124
|
+
port,
|
|
125
|
+
method: "POST",
|
|
126
|
+
headers,
|
|
127
|
+
path: resolvedPath,
|
|
128
|
+
body,
|
|
78
129
|
});
|
|
130
|
+
};
|
|
131
|
+
export const se_CreateBridgeCommand = async (input, context) => {
|
|
132
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
133
|
+
const headers = {
|
|
134
|
+
"content-type": "application/json",
|
|
135
|
+
};
|
|
136
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges";
|
|
137
|
+
let body;
|
|
138
|
+
body = JSON.stringify(take(input, {
|
|
139
|
+
egressGatewayBridge: [, (_) => se_AddEgressGatewayBridgeRequest(_, context), `EgressGatewayBridge`],
|
|
140
|
+
ingressGatewayBridge: [, (_) => se_AddIngressGatewayBridgeRequest(_, context), `IngressGatewayBridge`],
|
|
141
|
+
name: [, , `Name`],
|
|
142
|
+
outputs: [, (_) => se___listOfAddBridgeOutputRequest(_, context), `Outputs`],
|
|
143
|
+
placementArn: [, , `PlacementArn`],
|
|
144
|
+
sourceFailoverConfig: [, (_) => se_FailoverConfig(_, context), `SourceFailoverConfig`],
|
|
145
|
+
sources: [, (_) => se___listOfAddBridgeSourceRequest(_, context), `Sources`],
|
|
146
|
+
}));
|
|
79
147
|
return new __HttpRequest({
|
|
80
148
|
protocol,
|
|
81
149
|
hostname,
|
|
@@ -93,22 +161,40 @@ export const se_CreateFlowCommand = async (input, context) => {
|
|
|
93
161
|
};
|
|
94
162
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows";
|
|
95
163
|
let body;
|
|
96
|
-
body = JSON.stringify({
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
164
|
+
body = JSON.stringify(take(input, {
|
|
165
|
+
availabilityZone: [, , `AvailabilityZone`],
|
|
166
|
+
entitlements: [, (_) => se___listOfGrantEntitlementRequest(_, context), `Entitlements`],
|
|
167
|
+
maintenance: [, (_) => se_AddMaintenance(_, context), `Maintenance`],
|
|
168
|
+
mediaStreams: [, (_) => se___listOfAddMediaStreamRequest(_, context), `MediaStreams`],
|
|
169
|
+
name: [, , `Name`],
|
|
170
|
+
outputs: [, (_) => se___listOfAddOutputRequest(_, context), `Outputs`],
|
|
171
|
+
source: [, (_) => se_SetSourceRequest(_, context), `Source`],
|
|
172
|
+
sourceFailoverConfig: [, (_) => se_FailoverConfig(_, context), `SourceFailoverConfig`],
|
|
173
|
+
sources: [, (_) => se___listOfSetSourceRequest(_, context), `Sources`],
|
|
174
|
+
vpcInterfaces: [, (_) => se___listOfVpcInterfaceRequest(_, context), `VpcInterfaces`],
|
|
175
|
+
}));
|
|
176
|
+
return new __HttpRequest({
|
|
177
|
+
protocol,
|
|
178
|
+
hostname,
|
|
179
|
+
port,
|
|
180
|
+
method: "POST",
|
|
181
|
+
headers,
|
|
182
|
+
path: resolvedPath,
|
|
183
|
+
body,
|
|
111
184
|
});
|
|
185
|
+
};
|
|
186
|
+
export const se_CreateGatewayCommand = async (input, context) => {
|
|
187
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
188
|
+
const headers = {
|
|
189
|
+
"content-type": "application/json",
|
|
190
|
+
};
|
|
191
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways";
|
|
192
|
+
let body;
|
|
193
|
+
body = JSON.stringify(take(input, {
|
|
194
|
+
egressCidrBlocks: [, (_) => _json(_), `EgressCidrBlocks`],
|
|
195
|
+
name: [, , `Name`],
|
|
196
|
+
networks: [, (_) => se___listOfGatewayNetwork(_, context), `Networks`],
|
|
197
|
+
}));
|
|
112
198
|
return new __HttpRequest({
|
|
113
199
|
protocol,
|
|
114
200
|
hostname,
|
|
@@ -119,6 +205,22 @@ export const se_CreateFlowCommand = async (input, context) => {
|
|
|
119
205
|
body,
|
|
120
206
|
});
|
|
121
207
|
};
|
|
208
|
+
export const se_DeleteBridgeCommand = async (input, context) => {
|
|
209
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
210
|
+
const headers = {};
|
|
211
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}";
|
|
212
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
213
|
+
let body;
|
|
214
|
+
return new __HttpRequest({
|
|
215
|
+
protocol,
|
|
216
|
+
hostname,
|
|
217
|
+
port,
|
|
218
|
+
method: "DELETE",
|
|
219
|
+
headers,
|
|
220
|
+
path: resolvedPath,
|
|
221
|
+
body,
|
|
222
|
+
});
|
|
223
|
+
};
|
|
122
224
|
export const se_DeleteFlowCommand = async (input, context) => {
|
|
123
225
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
124
226
|
const headers = {};
|
|
@@ -135,6 +237,59 @@ export const se_DeleteFlowCommand = async (input, context) => {
|
|
|
135
237
|
body,
|
|
136
238
|
});
|
|
137
239
|
};
|
|
240
|
+
export const se_DeleteGatewayCommand = async (input, context) => {
|
|
241
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
242
|
+
const headers = {};
|
|
243
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways/{GatewayArn}";
|
|
244
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GatewayArn", () => input.GatewayArn, "{GatewayArn}", false);
|
|
245
|
+
let body;
|
|
246
|
+
return new __HttpRequest({
|
|
247
|
+
protocol,
|
|
248
|
+
hostname,
|
|
249
|
+
port,
|
|
250
|
+
method: "DELETE",
|
|
251
|
+
headers,
|
|
252
|
+
path: resolvedPath,
|
|
253
|
+
body,
|
|
254
|
+
});
|
|
255
|
+
};
|
|
256
|
+
export const se_DeregisterGatewayInstanceCommand = async (input, context) => {
|
|
257
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
258
|
+
const headers = {};
|
|
259
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
260
|
+
"/v1/gateway-instances/{GatewayInstanceArn}";
|
|
261
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
|
|
262
|
+
const query = map({
|
|
263
|
+
force: [() => input.Force !== void 0, () => input.Force.toString()],
|
|
264
|
+
});
|
|
265
|
+
let body;
|
|
266
|
+
return new __HttpRequest({
|
|
267
|
+
protocol,
|
|
268
|
+
hostname,
|
|
269
|
+
port,
|
|
270
|
+
method: "DELETE",
|
|
271
|
+
headers,
|
|
272
|
+
path: resolvedPath,
|
|
273
|
+
query,
|
|
274
|
+
body,
|
|
275
|
+
});
|
|
276
|
+
};
|
|
277
|
+
export const se_DescribeBridgeCommand = async (input, context) => {
|
|
278
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
279
|
+
const headers = {};
|
|
280
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}";
|
|
281
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
282
|
+
let body;
|
|
283
|
+
return new __HttpRequest({
|
|
284
|
+
protocol,
|
|
285
|
+
hostname,
|
|
286
|
+
port,
|
|
287
|
+
method: "GET",
|
|
288
|
+
headers,
|
|
289
|
+
path: resolvedPath,
|
|
290
|
+
body,
|
|
291
|
+
});
|
|
292
|
+
};
|
|
138
293
|
export const se_DescribeFlowCommand = async (input, context) => {
|
|
139
294
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
140
295
|
const headers = {};
|
|
@@ -151,6 +306,39 @@ export const se_DescribeFlowCommand = async (input, context) => {
|
|
|
151
306
|
body,
|
|
152
307
|
});
|
|
153
308
|
};
|
|
309
|
+
export const se_DescribeGatewayCommand = async (input, context) => {
|
|
310
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
311
|
+
const headers = {};
|
|
312
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways/{GatewayArn}";
|
|
313
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GatewayArn", () => input.GatewayArn, "{GatewayArn}", false);
|
|
314
|
+
let body;
|
|
315
|
+
return new __HttpRequest({
|
|
316
|
+
protocol,
|
|
317
|
+
hostname,
|
|
318
|
+
port,
|
|
319
|
+
method: "GET",
|
|
320
|
+
headers,
|
|
321
|
+
path: resolvedPath,
|
|
322
|
+
body,
|
|
323
|
+
});
|
|
324
|
+
};
|
|
325
|
+
export const se_DescribeGatewayInstanceCommand = async (input, context) => {
|
|
326
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
327
|
+
const headers = {};
|
|
328
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
329
|
+
"/v1/gateway-instances/{GatewayInstanceArn}";
|
|
330
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
|
|
331
|
+
let body;
|
|
332
|
+
return new __HttpRequest({
|
|
333
|
+
protocol,
|
|
334
|
+
hostname,
|
|
335
|
+
port,
|
|
336
|
+
method: "GET",
|
|
337
|
+
headers,
|
|
338
|
+
path: resolvedPath,
|
|
339
|
+
body,
|
|
340
|
+
});
|
|
341
|
+
};
|
|
154
342
|
export const se_DescribeOfferingCommand = async (input, context) => {
|
|
155
343
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
156
344
|
const headers = {};
|
|
@@ -191,11 +379,9 @@ export const se_GrantFlowEntitlementsCommand = async (input, context) => {
|
|
|
191
379
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/entitlements";
|
|
192
380
|
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
|
|
193
381
|
let body;
|
|
194
|
-
body = JSON.stringify({
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}),
|
|
198
|
-
});
|
|
382
|
+
body = JSON.stringify(take(input, {
|
|
383
|
+
entitlements: [, (_) => se___listOfGrantEntitlementRequest(_, context), `Entitlements`],
|
|
384
|
+
}));
|
|
199
385
|
return new __HttpRequest({
|
|
200
386
|
protocol,
|
|
201
387
|
hostname,
|
|
@@ -206,6 +392,27 @@ export const se_GrantFlowEntitlementsCommand = async (input, context) => {
|
|
|
206
392
|
body,
|
|
207
393
|
});
|
|
208
394
|
};
|
|
395
|
+
export const se_ListBridgesCommand = async (input, context) => {
|
|
396
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
397
|
+
const headers = {};
|
|
398
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges";
|
|
399
|
+
const query = map({
|
|
400
|
+
filterArn: [, input.FilterArn],
|
|
401
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
402
|
+
nextToken: [, input.NextToken],
|
|
403
|
+
});
|
|
404
|
+
let body;
|
|
405
|
+
return new __HttpRequest({
|
|
406
|
+
protocol,
|
|
407
|
+
hostname,
|
|
408
|
+
port,
|
|
409
|
+
method: "GET",
|
|
410
|
+
headers,
|
|
411
|
+
path: resolvedPath,
|
|
412
|
+
query,
|
|
413
|
+
body,
|
|
414
|
+
});
|
|
415
|
+
};
|
|
209
416
|
export const se_ListEntitlementsCommand = async (input, context) => {
|
|
210
417
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
211
418
|
const headers = {};
|
|
@@ -246,6 +453,47 @@ export const se_ListFlowsCommand = async (input, context) => {
|
|
|
246
453
|
body,
|
|
247
454
|
});
|
|
248
455
|
};
|
|
456
|
+
export const se_ListGatewayInstancesCommand = async (input, context) => {
|
|
457
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
458
|
+
const headers = {};
|
|
459
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateway-instances";
|
|
460
|
+
const query = map({
|
|
461
|
+
filterArn: [, input.FilterArn],
|
|
462
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
463
|
+
nextToken: [, input.NextToken],
|
|
464
|
+
});
|
|
465
|
+
let body;
|
|
466
|
+
return new __HttpRequest({
|
|
467
|
+
protocol,
|
|
468
|
+
hostname,
|
|
469
|
+
port,
|
|
470
|
+
method: "GET",
|
|
471
|
+
headers,
|
|
472
|
+
path: resolvedPath,
|
|
473
|
+
query,
|
|
474
|
+
body,
|
|
475
|
+
});
|
|
476
|
+
};
|
|
477
|
+
export const se_ListGatewaysCommand = async (input, context) => {
|
|
478
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
479
|
+
const headers = {};
|
|
480
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways";
|
|
481
|
+
const query = map({
|
|
482
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
483
|
+
nextToken: [, input.NextToken],
|
|
484
|
+
});
|
|
485
|
+
let body;
|
|
486
|
+
return new __HttpRequest({
|
|
487
|
+
protocol,
|
|
488
|
+
hostname,
|
|
489
|
+
port,
|
|
490
|
+
method: "GET",
|
|
491
|
+
headers,
|
|
492
|
+
path: resolvedPath,
|
|
493
|
+
query,
|
|
494
|
+
body,
|
|
495
|
+
});
|
|
496
|
+
};
|
|
249
497
|
export const se_ListOfferingsCommand = async (input, context) => {
|
|
250
498
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
251
499
|
const headers = {};
|
|
@@ -310,10 +558,10 @@ export const se_PurchaseOfferingCommand = async (input, context) => {
|
|
|
310
558
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/offerings/{OfferingArn}";
|
|
311
559
|
resolvedPath = __resolvedPath(resolvedPath, input, "OfferingArn", () => input.OfferingArn, "{OfferingArn}", false);
|
|
312
560
|
let body;
|
|
313
|
-
body = JSON.stringify({
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
});
|
|
561
|
+
body = JSON.stringify(take(input, {
|
|
562
|
+
reservationName: [, , `ReservationName`],
|
|
563
|
+
start: [, , `Start`],
|
|
564
|
+
}));
|
|
317
565
|
return new __HttpRequest({
|
|
318
566
|
protocol,
|
|
319
567
|
hostname,
|
|
@@ -324,6 +572,42 @@ export const se_PurchaseOfferingCommand = async (input, context) => {
|
|
|
324
572
|
body,
|
|
325
573
|
});
|
|
326
574
|
};
|
|
575
|
+
export const se_RemoveBridgeOutputCommand = async (input, context) => {
|
|
576
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
577
|
+
const headers = {};
|
|
578
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
579
|
+
"/v1/bridges/{BridgeArn}/outputs/{OutputName}";
|
|
580
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
581
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OutputName", () => input.OutputName, "{OutputName}", false);
|
|
582
|
+
let body;
|
|
583
|
+
return new __HttpRequest({
|
|
584
|
+
protocol,
|
|
585
|
+
hostname,
|
|
586
|
+
port,
|
|
587
|
+
method: "DELETE",
|
|
588
|
+
headers,
|
|
589
|
+
path: resolvedPath,
|
|
590
|
+
body,
|
|
591
|
+
});
|
|
592
|
+
};
|
|
593
|
+
export const se_RemoveBridgeSourceCommand = async (input, context) => {
|
|
594
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
595
|
+
const headers = {};
|
|
596
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
597
|
+
"/v1/bridges/{BridgeArn}/sources/{SourceName}";
|
|
598
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
599
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "SourceName", () => input.SourceName, "{SourceName}", false);
|
|
600
|
+
let body;
|
|
601
|
+
return new __HttpRequest({
|
|
602
|
+
protocol,
|
|
603
|
+
hostname,
|
|
604
|
+
port,
|
|
605
|
+
method: "DELETE",
|
|
606
|
+
headers,
|
|
607
|
+
path: resolvedPath,
|
|
608
|
+
body,
|
|
609
|
+
});
|
|
610
|
+
};
|
|
327
611
|
export const se_RemoveFlowMediaStreamCommand = async (input, context) => {
|
|
328
612
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
329
613
|
const headers = {};
|
|
@@ -452,9 +736,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
452
736
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
453
737
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
454
738
|
let body;
|
|
455
|
-
body = JSON.stringify({
|
|
456
|
-
|
|
457
|
-
});
|
|
739
|
+
body = JSON.stringify(take(input, {
|
|
740
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
741
|
+
}));
|
|
458
742
|
return new __HttpRequest({
|
|
459
743
|
protocol,
|
|
460
744
|
hostname,
|
|
@@ -488,20 +772,19 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
488
772
|
body,
|
|
489
773
|
});
|
|
490
774
|
};
|
|
491
|
-
export const
|
|
775
|
+
export const se_UpdateBridgeCommand = async (input, context) => {
|
|
492
776
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
493
777
|
const headers = {
|
|
494
778
|
"content-type": "application/json",
|
|
495
779
|
};
|
|
496
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/
|
|
497
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "
|
|
780
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}";
|
|
781
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
498
782
|
let body;
|
|
499
|
-
body = JSON.stringify({
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
});
|
|
783
|
+
body = JSON.stringify(take(input, {
|
|
784
|
+
egressGatewayBridge: [, (_) => se_UpdateEgressGatewayBridgeRequest(_, context), `EgressGatewayBridge`],
|
|
785
|
+
ingressGatewayBridge: [, (_) => se_UpdateIngressGatewayBridgeRequest(_, context), `IngressGatewayBridge`],
|
|
786
|
+
sourceFailoverConfig: [, (_) => se_UpdateFailoverConfig(_, context), `SourceFailoverConfig`],
|
|
787
|
+
}));
|
|
505
788
|
return new __HttpRequest({
|
|
506
789
|
protocol,
|
|
507
790
|
hostname,
|
|
@@ -512,22 +795,19 @@ export const se_UpdateFlowCommand = async (input, context) => {
|
|
|
512
795
|
body,
|
|
513
796
|
});
|
|
514
797
|
};
|
|
515
|
-
export const
|
|
798
|
+
export const se_UpdateBridgeOutputCommand = async (input, context) => {
|
|
516
799
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
517
800
|
const headers = {
|
|
518
801
|
"content-type": "application/json",
|
|
519
802
|
};
|
|
520
803
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
521
|
-
"/v1/
|
|
522
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "
|
|
523
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "
|
|
804
|
+
"/v1/bridges/{BridgeArn}/outputs/{OutputName}";
|
|
805
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
806
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OutputName", () => input.OutputName, "{OutputName}", false);
|
|
524
807
|
let body;
|
|
525
|
-
body = JSON.stringify({
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
...(input.EntitlementStatus != null && { entitlementStatus: input.EntitlementStatus }),
|
|
529
|
-
...(input.Subscribers != null && { subscribers: se___listOf__string(input.Subscribers, context) }),
|
|
530
|
-
});
|
|
808
|
+
body = JSON.stringify(take(input, {
|
|
809
|
+
networkOutput: [, (_) => se_UpdateBridgeNetworkOutputRequest(_, context), `NetworkOutput`],
|
|
810
|
+
}));
|
|
531
811
|
return new __HttpRequest({
|
|
532
812
|
protocol,
|
|
533
813
|
hostname,
|
|
@@ -538,23 +818,20 @@ export const se_UpdateFlowEntitlementCommand = async (input, context) => {
|
|
|
538
818
|
body,
|
|
539
819
|
});
|
|
540
820
|
};
|
|
541
|
-
export const
|
|
821
|
+
export const se_UpdateBridgeSourceCommand = async (input, context) => {
|
|
542
822
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
543
823
|
const headers = {
|
|
544
824
|
"content-type": "application/json",
|
|
545
825
|
};
|
|
546
826
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
547
|
-
"/v1/
|
|
548
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "
|
|
549
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "
|
|
827
|
+
"/v1/bridges/{BridgeArn}/sources/{SourceName}";
|
|
828
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
829
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "SourceName", () => input.SourceName, "{SourceName}", false);
|
|
550
830
|
let body;
|
|
551
|
-
body = JSON.stringify({
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
...(input.MediaStreamType != null && { mediaStreamType: input.MediaStreamType }),
|
|
556
|
-
...(input.VideoFormat != null && { videoFormat: input.VideoFormat }),
|
|
557
|
-
});
|
|
831
|
+
body = JSON.stringify(take(input, {
|
|
832
|
+
flowSource: [, (_) => se_UpdateBridgeFlowSourceRequest(_, context), `FlowSource`],
|
|
833
|
+
networkSource: [, (_) => se_UpdateBridgeNetworkSourceRequest(_, context), `NetworkSource`],
|
|
834
|
+
}));
|
|
558
835
|
return new __HttpRequest({
|
|
559
836
|
protocol,
|
|
560
837
|
hostname,
|
|
@@ -565,36 +842,17 @@ export const se_UpdateFlowMediaStreamCommand = async (input, context) => {
|
|
|
565
842
|
body,
|
|
566
843
|
});
|
|
567
844
|
};
|
|
568
|
-
export const
|
|
845
|
+
export const se_UpdateBridgeStateCommand = async (input, context) => {
|
|
569
846
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
570
847
|
const headers = {
|
|
571
848
|
"content-type": "application/json",
|
|
572
849
|
};
|
|
573
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/
|
|
574
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "
|
|
575
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "OutputArn", () => input.OutputArn, "{OutputArn}", false);
|
|
850
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/state";
|
|
851
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
576
852
|
let body;
|
|
577
|
-
body = JSON.stringify({
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
...(input.Destination != null && { destination: input.Destination }),
|
|
581
|
-
...(input.Encryption != null && { encryption: se_UpdateEncryption(input.Encryption, context) }),
|
|
582
|
-
...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
|
|
583
|
-
...(input.MediaStreamOutputConfigurations != null && {
|
|
584
|
-
mediaStreamOutputConfigurations: se___listOfMediaStreamOutputConfigurationRequest(input.MediaStreamOutputConfigurations, context),
|
|
585
|
-
}),
|
|
586
|
-
...(input.MinLatency != null && { minLatency: input.MinLatency }),
|
|
587
|
-
...(input.Port != null && { port: input.Port }),
|
|
588
|
-
...(input.Protocol != null && { protocol: input.Protocol }),
|
|
589
|
-
...(input.RemoteId != null && { remoteId: input.RemoteId }),
|
|
590
|
-
...(input.SenderControlPort != null && { senderControlPort: input.SenderControlPort }),
|
|
591
|
-
...(input.SenderIpAddress != null && { senderIpAddress: input.SenderIpAddress }),
|
|
592
|
-
...(input.SmoothingLatency != null && { smoothingLatency: input.SmoothingLatency }),
|
|
593
|
-
...(input.StreamId != null && { streamId: input.StreamId }),
|
|
594
|
-
...(input.VpcInterfaceAttachment != null && {
|
|
595
|
-
vpcInterfaceAttachment: se_VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
|
|
596
|
-
}),
|
|
597
|
-
});
|
|
853
|
+
body = JSON.stringify(take(input, {
|
|
854
|
+
desiredState: [, , `DesiredState`],
|
|
855
|
+
}));
|
|
598
856
|
return new __HttpRequest({
|
|
599
857
|
protocol,
|
|
600
858
|
hostname,
|
|
@@ -605,36 +863,18 @@ export const se_UpdateFlowOutputCommand = async (input, context) => {
|
|
|
605
863
|
body,
|
|
606
864
|
});
|
|
607
865
|
};
|
|
608
|
-
export const
|
|
866
|
+
export const se_UpdateFlowCommand = async (input, context) => {
|
|
609
867
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
610
868
|
const headers = {
|
|
611
869
|
"content-type": "application/json",
|
|
612
870
|
};
|
|
613
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}
|
|
871
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}";
|
|
614
872
|
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
|
|
615
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "SourceArn", () => input.SourceArn, "{SourceArn}", false);
|
|
616
873
|
let body;
|
|
617
|
-
body = JSON.stringify({
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
...(input.IngestPort != null && { ingestPort: input.IngestPort }),
|
|
622
|
-
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
|
|
623
|
-
...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
|
|
624
|
-
...(input.MaxSyncBuffer != null && { maxSyncBuffer: input.MaxSyncBuffer }),
|
|
625
|
-
...(input.MediaStreamSourceConfigurations != null && {
|
|
626
|
-
mediaStreamSourceConfigurations: se___listOfMediaStreamSourceConfigurationRequest(input.MediaStreamSourceConfigurations, context),
|
|
627
|
-
}),
|
|
628
|
-
...(input.MinLatency != null && { minLatency: input.MinLatency }),
|
|
629
|
-
...(input.Protocol != null && { protocol: input.Protocol }),
|
|
630
|
-
...(input.SenderControlPort != null && { senderControlPort: input.SenderControlPort }),
|
|
631
|
-
...(input.SenderIpAddress != null && { senderIpAddress: input.SenderIpAddress }),
|
|
632
|
-
...(input.SourceListenerAddress != null && { sourceListenerAddress: input.SourceListenerAddress }),
|
|
633
|
-
...(input.SourceListenerPort != null && { sourceListenerPort: input.SourceListenerPort }),
|
|
634
|
-
...(input.StreamId != null && { streamId: input.StreamId }),
|
|
635
|
-
...(input.VpcInterfaceName != null && { vpcInterfaceName: input.VpcInterfaceName }),
|
|
636
|
-
...(input.WhitelistCidr != null && { whitelistCidr: input.WhitelistCidr }),
|
|
637
|
-
});
|
|
874
|
+
body = JSON.stringify(take(input, {
|
|
875
|
+
maintenance: [, (_) => se_UpdateMaintenance(_, context), `Maintenance`],
|
|
876
|
+
sourceFailoverConfig: [, (_) => se_UpdateFailoverConfig(_, context), `SourceFailoverConfig`],
|
|
877
|
+
}));
|
|
638
878
|
return new __HttpRequest({
|
|
639
879
|
protocol,
|
|
640
880
|
hostname,
|
|
@@ -645,23 +885,180 @@ export const se_UpdateFlowSourceCommand = async (input, context) => {
|
|
|
645
885
|
body,
|
|
646
886
|
});
|
|
647
887
|
};
|
|
648
|
-
export const
|
|
649
|
-
|
|
650
|
-
|
|
888
|
+
export const se_UpdateFlowEntitlementCommand = async (input, context) => {
|
|
889
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
890
|
+
const headers = {
|
|
891
|
+
"content-type": "application/json",
|
|
892
|
+
};
|
|
893
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
894
|
+
"/v1/flows/{FlowArn}/entitlements/{EntitlementArn}";
|
|
895
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EntitlementArn", () => input.EntitlementArn, "{EntitlementArn}", false);
|
|
896
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
|
|
897
|
+
let body;
|
|
898
|
+
body = JSON.stringify(take(input, {
|
|
899
|
+
description: [, , `Description`],
|
|
900
|
+
encryption: [, (_) => se_UpdateEncryption(_, context), `Encryption`],
|
|
901
|
+
entitlementStatus: [, , `EntitlementStatus`],
|
|
902
|
+
subscribers: [, (_) => _json(_), `Subscribers`],
|
|
903
|
+
}));
|
|
904
|
+
return new __HttpRequest({
|
|
905
|
+
protocol,
|
|
906
|
+
hostname,
|
|
907
|
+
port,
|
|
908
|
+
method: "PUT",
|
|
909
|
+
headers,
|
|
910
|
+
path: resolvedPath,
|
|
911
|
+
body,
|
|
912
|
+
});
|
|
913
|
+
};
|
|
914
|
+
export const se_UpdateFlowMediaStreamCommand = async (input, context) => {
|
|
915
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
916
|
+
const headers = {
|
|
917
|
+
"content-type": "application/json",
|
|
918
|
+
};
|
|
919
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
920
|
+
"/v1/flows/{FlowArn}/mediaStreams/{MediaStreamName}";
|
|
921
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
|
|
922
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MediaStreamName", () => input.MediaStreamName, "{MediaStreamName}", false);
|
|
923
|
+
let body;
|
|
924
|
+
body = JSON.stringify(take(input, {
|
|
925
|
+
attributes: [, (_) => se_MediaStreamAttributesRequest(_, context), `Attributes`],
|
|
926
|
+
clockRate: [, , `ClockRate`],
|
|
927
|
+
description: [, , `Description`],
|
|
928
|
+
mediaStreamType: [, , `MediaStreamType`],
|
|
929
|
+
videoFormat: [, , `VideoFormat`],
|
|
930
|
+
}));
|
|
931
|
+
return new __HttpRequest({
|
|
932
|
+
protocol,
|
|
933
|
+
hostname,
|
|
934
|
+
port,
|
|
935
|
+
method: "PUT",
|
|
936
|
+
headers,
|
|
937
|
+
path: resolvedPath,
|
|
938
|
+
body,
|
|
939
|
+
});
|
|
940
|
+
};
|
|
941
|
+
export const se_UpdateFlowOutputCommand = async (input, context) => {
|
|
942
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
943
|
+
const headers = {
|
|
944
|
+
"content-type": "application/json",
|
|
945
|
+
};
|
|
946
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/outputs/{OutputArn}";
|
|
947
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
|
|
948
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OutputArn", () => input.OutputArn, "{OutputArn}", false);
|
|
949
|
+
let body;
|
|
950
|
+
body = JSON.stringify(take(input, {
|
|
951
|
+
cidrAllowList: [, (_) => _json(_), `CidrAllowList`],
|
|
952
|
+
description: [, , `Description`],
|
|
953
|
+
destination: [, , `Destination`],
|
|
954
|
+
encryption: [, (_) => se_UpdateEncryption(_, context), `Encryption`],
|
|
955
|
+
maxLatency: [, , `MaxLatency`],
|
|
956
|
+
mediaStreamOutputConfigurations: [
|
|
957
|
+
,
|
|
958
|
+
(_) => se___listOfMediaStreamOutputConfigurationRequest(_, context),
|
|
959
|
+
`MediaStreamOutputConfigurations`,
|
|
960
|
+
],
|
|
961
|
+
minLatency: [, , `MinLatency`],
|
|
962
|
+
port: [, , `Port`],
|
|
963
|
+
protocol: [, , `Protocol`],
|
|
964
|
+
remoteId: [, , `RemoteId`],
|
|
965
|
+
senderControlPort: [, , `SenderControlPort`],
|
|
966
|
+
senderIpAddress: [, , `SenderIpAddress`],
|
|
967
|
+
smoothingLatency: [, , `SmoothingLatency`],
|
|
968
|
+
streamId: [, , `StreamId`],
|
|
969
|
+
vpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `VpcInterfaceAttachment`],
|
|
970
|
+
}));
|
|
971
|
+
return new __HttpRequest({
|
|
972
|
+
protocol,
|
|
973
|
+
hostname,
|
|
974
|
+
port,
|
|
975
|
+
method: "PUT",
|
|
976
|
+
headers,
|
|
977
|
+
path: resolvedPath,
|
|
978
|
+
body,
|
|
979
|
+
});
|
|
980
|
+
};
|
|
981
|
+
export const se_UpdateFlowSourceCommand = async (input, context) => {
|
|
982
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
983
|
+
const headers = {
|
|
984
|
+
"content-type": "application/json",
|
|
985
|
+
};
|
|
986
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/source/{SourceArn}";
|
|
987
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
|
|
988
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "SourceArn", () => input.SourceArn, "{SourceArn}", false);
|
|
989
|
+
let body;
|
|
990
|
+
body = JSON.stringify(take(input, {
|
|
991
|
+
decryption: [, (_) => se_UpdateEncryption(_, context), `Decryption`],
|
|
992
|
+
description: [, , `Description`],
|
|
993
|
+
entitlementArn: [, , `EntitlementArn`],
|
|
994
|
+
gatewayBridgeSource: [, (_) => se_UpdateGatewayBridgeSourceRequest(_, context), `GatewayBridgeSource`],
|
|
995
|
+
ingestPort: [, , `IngestPort`],
|
|
996
|
+
maxBitrate: [, , `MaxBitrate`],
|
|
997
|
+
maxLatency: [, , `MaxLatency`],
|
|
998
|
+
maxSyncBuffer: [, , `MaxSyncBuffer`],
|
|
999
|
+
mediaStreamSourceConfigurations: [
|
|
1000
|
+
,
|
|
1001
|
+
(_) => se___listOfMediaStreamSourceConfigurationRequest(_, context),
|
|
1002
|
+
`MediaStreamSourceConfigurations`,
|
|
1003
|
+
],
|
|
1004
|
+
minLatency: [, , `MinLatency`],
|
|
1005
|
+
protocol: [, , `Protocol`],
|
|
1006
|
+
senderControlPort: [, , `SenderControlPort`],
|
|
1007
|
+
senderIpAddress: [, , `SenderIpAddress`],
|
|
1008
|
+
sourceListenerAddress: [, , `SourceListenerAddress`],
|
|
1009
|
+
sourceListenerPort: [, , `SourceListenerPort`],
|
|
1010
|
+
streamId: [, , `StreamId`],
|
|
1011
|
+
vpcInterfaceName: [, , `VpcInterfaceName`],
|
|
1012
|
+
whitelistCidr: [, , `WhitelistCidr`],
|
|
1013
|
+
}));
|
|
1014
|
+
return new __HttpRequest({
|
|
1015
|
+
protocol,
|
|
1016
|
+
hostname,
|
|
1017
|
+
port,
|
|
1018
|
+
method: "PUT",
|
|
1019
|
+
headers,
|
|
1020
|
+
path: resolvedPath,
|
|
1021
|
+
body,
|
|
1022
|
+
});
|
|
1023
|
+
};
|
|
1024
|
+
export const se_UpdateGatewayInstanceCommand = async (input, context) => {
|
|
1025
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1026
|
+
const headers = {
|
|
1027
|
+
"content-type": "application/json",
|
|
1028
|
+
};
|
|
1029
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1030
|
+
"/v1/gateway-instances/{GatewayInstanceArn}";
|
|
1031
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
|
|
1032
|
+
let body;
|
|
1033
|
+
body = JSON.stringify(take(input, {
|
|
1034
|
+
bridgePlacement: [, , `BridgePlacement`],
|
|
1035
|
+
}));
|
|
1036
|
+
return new __HttpRequest({
|
|
1037
|
+
protocol,
|
|
1038
|
+
hostname,
|
|
1039
|
+
port,
|
|
1040
|
+
method: "PUT",
|
|
1041
|
+
headers,
|
|
1042
|
+
path: resolvedPath,
|
|
1043
|
+
body,
|
|
1044
|
+
});
|
|
1045
|
+
};
|
|
1046
|
+
export const de_AddBridgeOutputsCommand = async (output, context) => {
|
|
1047
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1048
|
+
return de_AddBridgeOutputsCommandError(output, context);
|
|
651
1049
|
}
|
|
652
1050
|
const contents = map({
|
|
653
1051
|
$metadata: deserializeMetadata(output),
|
|
654
1052
|
});
|
|
655
1053
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
}
|
|
1054
|
+
const doc = take(data, {
|
|
1055
|
+
BridgeArn: [, __expectString, `bridgeArn`],
|
|
1056
|
+
Outputs: [, (_) => de___listOfBridgeOutput(_, context), `outputs`],
|
|
1057
|
+
});
|
|
1058
|
+
Object.assign(contents, doc);
|
|
662
1059
|
return contents;
|
|
663
1060
|
};
|
|
664
|
-
const
|
|
1061
|
+
const de_AddBridgeOutputsCommandError = async (output, context) => {
|
|
665
1062
|
const parsedOutput = {
|
|
666
1063
|
...output,
|
|
667
1064
|
body: await parseErrorBody(output.body, context),
|
|
@@ -671,6 +1068,9 @@ const de_AddFlowMediaStreamsCommandError = async (output, context) => {
|
|
|
671
1068
|
case "BadRequestException":
|
|
672
1069
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
673
1070
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1071
|
+
case "ConflictException":
|
|
1072
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1073
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
674
1074
|
case "ForbiddenException":
|
|
675
1075
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
676
1076
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -688,43 +1088,41 @@ const de_AddFlowMediaStreamsCommandError = async (output, context) => {
|
|
|
688
1088
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
689
1089
|
default:
|
|
690
1090
|
const parsedBody = parsedOutput.body;
|
|
691
|
-
throwDefaultError({
|
|
1091
|
+
return throwDefaultError({
|
|
692
1092
|
output,
|
|
693
1093
|
parsedBody,
|
|
694
|
-
exceptionCtor: __BaseException,
|
|
695
1094
|
errorCode,
|
|
696
1095
|
});
|
|
697
1096
|
}
|
|
698
1097
|
};
|
|
699
|
-
export const
|
|
700
|
-
if (output.statusCode !==
|
|
701
|
-
return
|
|
1098
|
+
export const de_AddBridgeSourcesCommand = async (output, context) => {
|
|
1099
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1100
|
+
return de_AddBridgeSourcesCommandError(output, context);
|
|
702
1101
|
}
|
|
703
1102
|
const contents = map({
|
|
704
1103
|
$metadata: deserializeMetadata(output),
|
|
705
1104
|
});
|
|
706
1105
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
}
|
|
1106
|
+
const doc = take(data, {
|
|
1107
|
+
BridgeArn: [, __expectString, `bridgeArn`],
|
|
1108
|
+
Sources: [, (_) => de___listOfBridgeSource(_, context), `sources`],
|
|
1109
|
+
});
|
|
1110
|
+
Object.assign(contents, doc);
|
|
713
1111
|
return contents;
|
|
714
1112
|
};
|
|
715
|
-
const
|
|
1113
|
+
const de_AddBridgeSourcesCommandError = async (output, context) => {
|
|
716
1114
|
const parsedOutput = {
|
|
717
1115
|
...output,
|
|
718
1116
|
body: await parseErrorBody(output.body, context),
|
|
719
1117
|
};
|
|
720
1118
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
1119
|
switch (errorCode) {
|
|
722
|
-
case "AddFlowOutputs420Exception":
|
|
723
|
-
case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception":
|
|
724
|
-
throw await de_AddFlowOutputs420ExceptionRes(parsedOutput, context);
|
|
725
1120
|
case "BadRequestException":
|
|
726
1121
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
727
1122
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1123
|
+
case "ConflictException":
|
|
1124
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1125
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
728
1126
|
case "ForbiddenException":
|
|
729
1127
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
730
1128
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -742,31 +1140,29 @@ const de_AddFlowOutputsCommandError = async (output, context) => {
|
|
|
742
1140
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
743
1141
|
default:
|
|
744
1142
|
const parsedBody = parsedOutput.body;
|
|
745
|
-
throwDefaultError({
|
|
1143
|
+
return throwDefaultError({
|
|
746
1144
|
output,
|
|
747
1145
|
parsedBody,
|
|
748
|
-
exceptionCtor: __BaseException,
|
|
749
1146
|
errorCode,
|
|
750
1147
|
});
|
|
751
1148
|
}
|
|
752
1149
|
};
|
|
753
|
-
export const
|
|
1150
|
+
export const de_AddFlowMediaStreamsCommand = async (output, context) => {
|
|
754
1151
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
755
|
-
return
|
|
1152
|
+
return de_AddFlowMediaStreamsCommandError(output, context);
|
|
756
1153
|
}
|
|
757
1154
|
const contents = map({
|
|
758
1155
|
$metadata: deserializeMetadata(output),
|
|
759
1156
|
});
|
|
760
1157
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
}
|
|
1158
|
+
const doc = take(data, {
|
|
1159
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
1160
|
+
MediaStreams: [, (_) => de___listOfMediaStream(_, context), `mediaStreams`],
|
|
1161
|
+
});
|
|
1162
|
+
Object.assign(contents, doc);
|
|
767
1163
|
return contents;
|
|
768
1164
|
};
|
|
769
|
-
const
|
|
1165
|
+
const de_AddFlowMediaStreamsCommandError = async (output, context) => {
|
|
770
1166
|
const parsedOutput = {
|
|
771
1167
|
...output,
|
|
772
1168
|
body: await parseErrorBody(output.body, context),
|
|
@@ -793,37 +1189,38 @@ const de_AddFlowSourcesCommandError = async (output, context) => {
|
|
|
793
1189
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
794
1190
|
default:
|
|
795
1191
|
const parsedBody = parsedOutput.body;
|
|
796
|
-
throwDefaultError({
|
|
1192
|
+
return throwDefaultError({
|
|
797
1193
|
output,
|
|
798
1194
|
parsedBody,
|
|
799
|
-
exceptionCtor: __BaseException,
|
|
800
1195
|
errorCode,
|
|
801
1196
|
});
|
|
802
1197
|
}
|
|
803
1198
|
};
|
|
804
|
-
export const
|
|
1199
|
+
export const de_AddFlowOutputsCommand = async (output, context) => {
|
|
805
1200
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
806
|
-
return
|
|
1201
|
+
return de_AddFlowOutputsCommandError(output, context);
|
|
807
1202
|
}
|
|
808
1203
|
const contents = map({
|
|
809
1204
|
$metadata: deserializeMetadata(output),
|
|
810
1205
|
});
|
|
811
1206
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
}
|
|
1207
|
+
const doc = take(data, {
|
|
1208
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
1209
|
+
Outputs: [, (_) => de___listOfOutput(_, context), `outputs`],
|
|
1210
|
+
});
|
|
1211
|
+
Object.assign(contents, doc);
|
|
818
1212
|
return contents;
|
|
819
1213
|
};
|
|
820
|
-
const
|
|
1214
|
+
const de_AddFlowOutputsCommandError = async (output, context) => {
|
|
821
1215
|
const parsedOutput = {
|
|
822
1216
|
...output,
|
|
823
1217
|
body: await parseErrorBody(output.body, context),
|
|
824
1218
|
};
|
|
825
1219
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
1220
|
switch (errorCode) {
|
|
1221
|
+
case "AddFlowOutputs420Exception":
|
|
1222
|
+
case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception":
|
|
1223
|
+
throw await de_AddFlowOutputs420ExceptionRes(parsedOutput, context);
|
|
827
1224
|
case "BadRequestException":
|
|
828
1225
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
829
1226
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
@@ -844,28 +1241,29 @@ const de_AddFlowVpcInterfacesCommandError = async (output, context) => {
|
|
|
844
1241
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
845
1242
|
default:
|
|
846
1243
|
const parsedBody = parsedOutput.body;
|
|
847
|
-
throwDefaultError({
|
|
1244
|
+
return throwDefaultError({
|
|
848
1245
|
output,
|
|
849
1246
|
parsedBody,
|
|
850
|
-
exceptionCtor: __BaseException,
|
|
851
1247
|
errorCode,
|
|
852
1248
|
});
|
|
853
1249
|
}
|
|
854
1250
|
};
|
|
855
|
-
export const
|
|
1251
|
+
export const de_AddFlowSourcesCommand = async (output, context) => {
|
|
856
1252
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
857
|
-
return
|
|
1253
|
+
return de_AddFlowSourcesCommandError(output, context);
|
|
858
1254
|
}
|
|
859
1255
|
const contents = map({
|
|
860
1256
|
$metadata: deserializeMetadata(output),
|
|
861
1257
|
});
|
|
862
1258
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
1259
|
+
const doc = take(data, {
|
|
1260
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
1261
|
+
Sources: [, (_) => de___listOfSource(_, context), `sources`],
|
|
1262
|
+
});
|
|
1263
|
+
Object.assign(contents, doc);
|
|
866
1264
|
return contents;
|
|
867
1265
|
};
|
|
868
|
-
const
|
|
1266
|
+
const de_AddFlowSourcesCommandError = async (output, context) => {
|
|
869
1267
|
const parsedOutput = {
|
|
870
1268
|
...output,
|
|
871
1269
|
body: await parseErrorBody(output.body, context),
|
|
@@ -875,15 +1273,15 @@ const de_CreateFlowCommandError = async (output, context) => {
|
|
|
875
1273
|
case "BadRequestException":
|
|
876
1274
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
877
1275
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
878
|
-
case "CreateFlow420Exception":
|
|
879
|
-
case "com.amazonaws.mediaconnect#CreateFlow420Exception":
|
|
880
|
-
throw await de_CreateFlow420ExceptionRes(parsedOutput, context);
|
|
881
1276
|
case "ForbiddenException":
|
|
882
1277
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
883
1278
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
884
1279
|
case "InternalServerErrorException":
|
|
885
1280
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
886
1281
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1282
|
+
case "NotFoundException":
|
|
1283
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1284
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
887
1285
|
case "ServiceUnavailableException":
|
|
888
1286
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
889
1287
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -892,31 +1290,29 @@ const de_CreateFlowCommandError = async (output, context) => {
|
|
|
892
1290
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
893
1291
|
default:
|
|
894
1292
|
const parsedBody = parsedOutput.body;
|
|
895
|
-
throwDefaultError({
|
|
1293
|
+
return throwDefaultError({
|
|
896
1294
|
output,
|
|
897
1295
|
parsedBody,
|
|
898
|
-
exceptionCtor: __BaseException,
|
|
899
1296
|
errorCode,
|
|
900
1297
|
});
|
|
901
1298
|
}
|
|
902
1299
|
};
|
|
903
|
-
export const
|
|
904
|
-
if (output.statusCode !==
|
|
905
|
-
return
|
|
1300
|
+
export const de_AddFlowVpcInterfacesCommand = async (output, context) => {
|
|
1301
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1302
|
+
return de_AddFlowVpcInterfacesCommandError(output, context);
|
|
906
1303
|
}
|
|
907
1304
|
const contents = map({
|
|
908
1305
|
$metadata: deserializeMetadata(output),
|
|
909
1306
|
});
|
|
910
1307
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
}
|
|
1308
|
+
const doc = take(data, {
|
|
1309
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
1310
|
+
VpcInterfaces: [, (_) => de___listOfVpcInterface(_, context), `vpcInterfaces`],
|
|
1311
|
+
});
|
|
1312
|
+
Object.assign(contents, doc);
|
|
917
1313
|
return contents;
|
|
918
1314
|
};
|
|
919
|
-
const
|
|
1315
|
+
const de_AddFlowVpcInterfacesCommandError = async (output, context) => {
|
|
920
1316
|
const parsedOutput = {
|
|
921
1317
|
...output,
|
|
922
1318
|
body: await parseErrorBody(output.body, context),
|
|
@@ -943,31 +1339,28 @@ const de_DeleteFlowCommandError = async (output, context) => {
|
|
|
943
1339
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
944
1340
|
default:
|
|
945
1341
|
const parsedBody = parsedOutput.body;
|
|
946
|
-
throwDefaultError({
|
|
1342
|
+
return throwDefaultError({
|
|
947
1343
|
output,
|
|
948
1344
|
parsedBody,
|
|
949
|
-
exceptionCtor: __BaseException,
|
|
950
1345
|
errorCode,
|
|
951
1346
|
});
|
|
952
1347
|
}
|
|
953
1348
|
};
|
|
954
|
-
export const
|
|
955
|
-
if (output.statusCode !==
|
|
956
|
-
return
|
|
1349
|
+
export const de_CreateBridgeCommand = async (output, context) => {
|
|
1350
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1351
|
+
return de_CreateBridgeCommandError(output, context);
|
|
957
1352
|
}
|
|
958
1353
|
const contents = map({
|
|
959
1354
|
$metadata: deserializeMetadata(output),
|
|
960
1355
|
});
|
|
961
1356
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
contents.Messages = de_Messages(data.messages, context);
|
|
967
|
-
}
|
|
1357
|
+
const doc = take(data, {
|
|
1358
|
+
Bridge: [, (_) => de_Bridge(_, context), `bridge`],
|
|
1359
|
+
});
|
|
1360
|
+
Object.assign(contents, doc);
|
|
968
1361
|
return contents;
|
|
969
1362
|
};
|
|
970
|
-
const
|
|
1363
|
+
const de_CreateBridgeCommandError = async (output, context) => {
|
|
971
1364
|
const parsedOutput = {
|
|
972
1365
|
...output,
|
|
973
1366
|
body: await parseErrorBody(output.body, context),
|
|
@@ -977,15 +1370,18 @@ const de_DescribeFlowCommandError = async (output, context) => {
|
|
|
977
1370
|
case "BadRequestException":
|
|
978
1371
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
979
1372
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1373
|
+
case "ConflictException":
|
|
1374
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1375
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1376
|
+
case "CreateBridge420Exception":
|
|
1377
|
+
case "com.amazonaws.mediaconnect#CreateBridge420Exception":
|
|
1378
|
+
throw await de_CreateBridge420ExceptionRes(parsedOutput, context);
|
|
980
1379
|
case "ForbiddenException":
|
|
981
1380
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
982
1381
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
983
1382
|
case "InternalServerErrorException":
|
|
984
1383
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
985
1384
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
986
|
-
case "NotFoundException":
|
|
987
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
988
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
989
1385
|
case "ServiceUnavailableException":
|
|
990
1386
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
991
1387
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -994,28 +1390,28 @@ const de_DescribeFlowCommandError = async (output, context) => {
|
|
|
994
1390
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
995
1391
|
default:
|
|
996
1392
|
const parsedBody = parsedOutput.body;
|
|
997
|
-
throwDefaultError({
|
|
1393
|
+
return throwDefaultError({
|
|
998
1394
|
output,
|
|
999
1395
|
parsedBody,
|
|
1000
|
-
exceptionCtor: __BaseException,
|
|
1001
1396
|
errorCode,
|
|
1002
1397
|
});
|
|
1003
1398
|
}
|
|
1004
1399
|
};
|
|
1005
|
-
export const
|
|
1006
|
-
if (output.statusCode !==
|
|
1007
|
-
return
|
|
1400
|
+
export const de_CreateFlowCommand = async (output, context) => {
|
|
1401
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1402
|
+
return de_CreateFlowCommandError(output, context);
|
|
1008
1403
|
}
|
|
1009
1404
|
const contents = map({
|
|
1010
1405
|
$metadata: deserializeMetadata(output),
|
|
1011
1406
|
});
|
|
1012
1407
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
}
|
|
1408
|
+
const doc = take(data, {
|
|
1409
|
+
Flow: [, (_) => de_Flow(_, context), `flow`],
|
|
1410
|
+
});
|
|
1411
|
+
Object.assign(contents, doc);
|
|
1016
1412
|
return contents;
|
|
1017
1413
|
};
|
|
1018
|
-
const
|
|
1414
|
+
const de_CreateFlowCommandError = async (output, context) => {
|
|
1019
1415
|
const parsedOutput = {
|
|
1020
1416
|
...output,
|
|
1021
1417
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1025,12 +1421,15 @@ const de_DescribeOfferingCommandError = async (output, context) => {
|
|
|
1025
1421
|
case "BadRequestException":
|
|
1026
1422
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1027
1423
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1424
|
+
case "CreateFlow420Exception":
|
|
1425
|
+
case "com.amazonaws.mediaconnect#CreateFlow420Exception":
|
|
1426
|
+
throw await de_CreateFlow420ExceptionRes(parsedOutput, context);
|
|
1427
|
+
case "ForbiddenException":
|
|
1428
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1429
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1028
1430
|
case "InternalServerErrorException":
|
|
1029
1431
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1030
1432
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "NotFoundException":
|
|
1032
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1033
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1034
1433
|
case "ServiceUnavailableException":
|
|
1035
1434
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1036
1435
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1039,28 +1438,28 @@ const de_DescribeOfferingCommandError = async (output, context) => {
|
|
|
1039
1438
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1040
1439
|
default:
|
|
1041
1440
|
const parsedBody = parsedOutput.body;
|
|
1042
|
-
throwDefaultError({
|
|
1441
|
+
return throwDefaultError({
|
|
1043
1442
|
output,
|
|
1044
1443
|
parsedBody,
|
|
1045
|
-
exceptionCtor: __BaseException,
|
|
1046
1444
|
errorCode,
|
|
1047
1445
|
});
|
|
1048
1446
|
}
|
|
1049
1447
|
};
|
|
1050
|
-
export const
|
|
1051
|
-
if (output.statusCode !==
|
|
1052
|
-
return
|
|
1448
|
+
export const de_CreateGatewayCommand = async (output, context) => {
|
|
1449
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1450
|
+
return de_CreateGatewayCommandError(output, context);
|
|
1053
1451
|
}
|
|
1054
1452
|
const contents = map({
|
|
1055
1453
|
$metadata: deserializeMetadata(output),
|
|
1056
1454
|
});
|
|
1057
1455
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
}
|
|
1456
|
+
const doc = take(data, {
|
|
1457
|
+
Gateway: [, (_) => de_Gateway(_, context), `gateway`],
|
|
1458
|
+
});
|
|
1459
|
+
Object.assign(contents, doc);
|
|
1061
1460
|
return contents;
|
|
1062
1461
|
};
|
|
1063
|
-
const
|
|
1462
|
+
const de_CreateGatewayCommandError = async (output, context) => {
|
|
1064
1463
|
const parsedOutput = {
|
|
1065
1464
|
...output,
|
|
1066
1465
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1070,12 +1469,18 @@ const de_DescribeReservationCommandError = async (output, context) => {
|
|
|
1070
1469
|
case "BadRequestException":
|
|
1071
1470
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1072
1471
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1472
|
+
case "ConflictException":
|
|
1473
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1474
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1475
|
+
case "CreateGateway420Exception":
|
|
1476
|
+
case "com.amazonaws.mediaconnect#CreateGateway420Exception":
|
|
1477
|
+
throw await de_CreateGateway420ExceptionRes(parsedOutput, context);
|
|
1478
|
+
case "ForbiddenException":
|
|
1479
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1480
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1073
1481
|
case "InternalServerErrorException":
|
|
1074
1482
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1075
1483
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "NotFoundException":
|
|
1077
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1078
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1079
1484
|
case "ServiceUnavailableException":
|
|
1080
1485
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1081
1486
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1084,31 +1489,28 @@ const de_DescribeReservationCommandError = async (output, context) => {
|
|
|
1084
1489
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1085
1490
|
default:
|
|
1086
1491
|
const parsedBody = parsedOutput.body;
|
|
1087
|
-
throwDefaultError({
|
|
1492
|
+
return throwDefaultError({
|
|
1088
1493
|
output,
|
|
1089
1494
|
parsedBody,
|
|
1090
|
-
exceptionCtor: __BaseException,
|
|
1091
1495
|
errorCode,
|
|
1092
1496
|
});
|
|
1093
1497
|
}
|
|
1094
1498
|
};
|
|
1095
|
-
export const
|
|
1499
|
+
export const de_DeleteBridgeCommand = async (output, context) => {
|
|
1096
1500
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1097
|
-
return
|
|
1501
|
+
return de_DeleteBridgeCommandError(output, context);
|
|
1098
1502
|
}
|
|
1099
1503
|
const contents = map({
|
|
1100
1504
|
$metadata: deserializeMetadata(output),
|
|
1101
1505
|
});
|
|
1102
1506
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
contents.FlowArn = __expectString(data.flowArn);
|
|
1108
|
-
}
|
|
1507
|
+
const doc = take(data, {
|
|
1508
|
+
BridgeArn: [, __expectString, `bridgeArn`],
|
|
1509
|
+
});
|
|
1510
|
+
Object.assign(contents, doc);
|
|
1109
1511
|
return contents;
|
|
1110
1512
|
};
|
|
1111
|
-
const
|
|
1513
|
+
const de_DeleteBridgeCommandError = async (output, context) => {
|
|
1112
1514
|
const parsedOutput = {
|
|
1113
1515
|
...output,
|
|
1114
1516
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1118,12 +1520,12 @@ const de_GrantFlowEntitlementsCommandError = async (output, context) => {
|
|
|
1118
1520
|
case "BadRequestException":
|
|
1119
1521
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1120
1522
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1523
|
+
case "ConflictException":
|
|
1524
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1525
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1121
1526
|
case "ForbiddenException":
|
|
1122
1527
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1123
1528
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "GrantFlowEntitlements420Exception":
|
|
1125
|
-
case "com.amazonaws.mediaconnect#GrantFlowEntitlements420Exception":
|
|
1126
|
-
throw await de_GrantFlowEntitlements420ExceptionRes(parsedOutput, context);
|
|
1127
1529
|
case "InternalServerErrorException":
|
|
1128
1530
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1129
1531
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
@@ -1138,31 +1540,29 @@ const de_GrantFlowEntitlementsCommandError = async (output, context) => {
|
|
|
1138
1540
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1139
1541
|
default:
|
|
1140
1542
|
const parsedBody = parsedOutput.body;
|
|
1141
|
-
throwDefaultError({
|
|
1543
|
+
return throwDefaultError({
|
|
1142
1544
|
output,
|
|
1143
1545
|
parsedBody,
|
|
1144
|
-
exceptionCtor: __BaseException,
|
|
1145
1546
|
errorCode,
|
|
1146
1547
|
});
|
|
1147
1548
|
}
|
|
1148
1549
|
};
|
|
1149
|
-
export const
|
|
1150
|
-
if (output.statusCode !==
|
|
1151
|
-
return
|
|
1550
|
+
export const de_DeleteFlowCommand = async (output, context) => {
|
|
1551
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1552
|
+
return de_DeleteFlowCommandError(output, context);
|
|
1152
1553
|
}
|
|
1153
1554
|
const contents = map({
|
|
1154
1555
|
$metadata: deserializeMetadata(output),
|
|
1155
1556
|
});
|
|
1156
1557
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
}
|
|
1558
|
+
const doc = take(data, {
|
|
1559
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
1560
|
+
Status: [, __expectString, `status`],
|
|
1561
|
+
});
|
|
1562
|
+
Object.assign(contents, doc);
|
|
1163
1563
|
return contents;
|
|
1164
1564
|
};
|
|
1165
|
-
const
|
|
1565
|
+
const de_DeleteFlowCommandError = async (output, context) => {
|
|
1166
1566
|
const parsedOutput = {
|
|
1167
1567
|
...output,
|
|
1168
1568
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1172,9 +1572,15 @@ const de_ListEntitlementsCommandError = async (output, context) => {
|
|
|
1172
1572
|
case "BadRequestException":
|
|
1173
1573
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1174
1574
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1575
|
+
case "ForbiddenException":
|
|
1576
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1577
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1175
1578
|
case "InternalServerErrorException":
|
|
1176
1579
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1177
1580
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1581
|
+
case "NotFoundException":
|
|
1582
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1583
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1178
1584
|
case "ServiceUnavailableException":
|
|
1179
1585
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1180
1586
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1183,31 +1589,28 @@ const de_ListEntitlementsCommandError = async (output, context) => {
|
|
|
1183
1589
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1184
1590
|
default:
|
|
1185
1591
|
const parsedBody = parsedOutput.body;
|
|
1186
|
-
throwDefaultError({
|
|
1592
|
+
return throwDefaultError({
|
|
1187
1593
|
output,
|
|
1188
1594
|
parsedBody,
|
|
1189
|
-
exceptionCtor: __BaseException,
|
|
1190
1595
|
errorCode,
|
|
1191
1596
|
});
|
|
1192
1597
|
}
|
|
1193
1598
|
};
|
|
1194
|
-
export const
|
|
1599
|
+
export const de_DeleteGatewayCommand = async (output, context) => {
|
|
1195
1600
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1196
|
-
return
|
|
1601
|
+
return de_DeleteGatewayCommandError(output, context);
|
|
1197
1602
|
}
|
|
1198
1603
|
const contents = map({
|
|
1199
1604
|
$metadata: deserializeMetadata(output),
|
|
1200
1605
|
});
|
|
1201
1606
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
contents.NextToken = __expectString(data.nextToken);
|
|
1207
|
-
}
|
|
1607
|
+
const doc = take(data, {
|
|
1608
|
+
GatewayArn: [, __expectString, `gatewayArn`],
|
|
1609
|
+
});
|
|
1610
|
+
Object.assign(contents, doc);
|
|
1208
1611
|
return contents;
|
|
1209
1612
|
};
|
|
1210
|
-
const
|
|
1613
|
+
const de_DeleteGatewayCommandError = async (output, context) => {
|
|
1211
1614
|
const parsedOutput = {
|
|
1212
1615
|
...output,
|
|
1213
1616
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1217,9 +1620,18 @@ const de_ListFlowsCommandError = async (output, context) => {
|
|
|
1217
1620
|
case "BadRequestException":
|
|
1218
1621
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1219
1622
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1623
|
+
case "ConflictException":
|
|
1624
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1625
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1626
|
+
case "ForbiddenException":
|
|
1627
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1628
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1220
1629
|
case "InternalServerErrorException":
|
|
1221
1630
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1222
1631
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1632
|
+
case "NotFoundException":
|
|
1633
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1634
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1223
1635
|
case "ServiceUnavailableException":
|
|
1224
1636
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1225
1637
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1228,31 +1640,29 @@ const de_ListFlowsCommandError = async (output, context) => {
|
|
|
1228
1640
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1229
1641
|
default:
|
|
1230
1642
|
const parsedBody = parsedOutput.body;
|
|
1231
|
-
throwDefaultError({
|
|
1643
|
+
return throwDefaultError({
|
|
1232
1644
|
output,
|
|
1233
1645
|
parsedBody,
|
|
1234
|
-
exceptionCtor: __BaseException,
|
|
1235
1646
|
errorCode,
|
|
1236
1647
|
});
|
|
1237
1648
|
}
|
|
1238
1649
|
};
|
|
1239
|
-
export const
|
|
1240
|
-
if (output.statusCode !==
|
|
1241
|
-
return
|
|
1650
|
+
export const de_DeregisterGatewayInstanceCommand = async (output, context) => {
|
|
1651
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1652
|
+
return de_DeregisterGatewayInstanceCommandError(output, context);
|
|
1242
1653
|
}
|
|
1243
1654
|
const contents = map({
|
|
1244
1655
|
$metadata: deserializeMetadata(output),
|
|
1245
1656
|
});
|
|
1246
1657
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
}
|
|
1658
|
+
const doc = take(data, {
|
|
1659
|
+
GatewayInstanceArn: [, __expectString, `gatewayInstanceArn`],
|
|
1660
|
+
InstanceState: [, __expectString, `instanceState`],
|
|
1661
|
+
});
|
|
1662
|
+
Object.assign(contents, doc);
|
|
1253
1663
|
return contents;
|
|
1254
1664
|
};
|
|
1255
|
-
const
|
|
1665
|
+
const de_DeregisterGatewayInstanceCommandError = async (output, context) => {
|
|
1256
1666
|
const parsedOutput = {
|
|
1257
1667
|
...output,
|
|
1258
1668
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1262,9 +1672,18 @@ const de_ListOfferingsCommandError = async (output, context) => {
|
|
|
1262
1672
|
case "BadRequestException":
|
|
1263
1673
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1264
1674
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1675
|
+
case "ConflictException":
|
|
1676
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1677
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1678
|
+
case "ForbiddenException":
|
|
1679
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1680
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1265
1681
|
case "InternalServerErrorException":
|
|
1266
1682
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1267
1683
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1684
|
+
case "NotFoundException":
|
|
1685
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1686
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1268
1687
|
case "ServiceUnavailableException":
|
|
1269
1688
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1270
1689
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1273,31 +1692,28 @@ const de_ListOfferingsCommandError = async (output, context) => {
|
|
|
1273
1692
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1274
1693
|
default:
|
|
1275
1694
|
const parsedBody = parsedOutput.body;
|
|
1276
|
-
throwDefaultError({
|
|
1695
|
+
return throwDefaultError({
|
|
1277
1696
|
output,
|
|
1278
1697
|
parsedBody,
|
|
1279
|
-
exceptionCtor: __BaseException,
|
|
1280
1698
|
errorCode,
|
|
1281
1699
|
});
|
|
1282
1700
|
}
|
|
1283
1701
|
};
|
|
1284
|
-
export const
|
|
1702
|
+
export const de_DescribeBridgeCommand = async (output, context) => {
|
|
1285
1703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1286
|
-
return
|
|
1704
|
+
return de_DescribeBridgeCommandError(output, context);
|
|
1287
1705
|
}
|
|
1288
1706
|
const contents = map({
|
|
1289
1707
|
$metadata: deserializeMetadata(output),
|
|
1290
1708
|
});
|
|
1291
1709
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
contents.Reservations = de___listOfReservation(data.reservations, context);
|
|
1297
|
-
}
|
|
1710
|
+
const doc = take(data, {
|
|
1711
|
+
Bridge: [, (_) => de_Bridge(_, context), `bridge`],
|
|
1712
|
+
});
|
|
1713
|
+
Object.assign(contents, doc);
|
|
1298
1714
|
return contents;
|
|
1299
1715
|
};
|
|
1300
|
-
const
|
|
1716
|
+
const de_DescribeBridgeCommandError = async (output, context) => {
|
|
1301
1717
|
const parsedOutput = {
|
|
1302
1718
|
...output,
|
|
1303
1719
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1307,9 +1723,18 @@ const de_ListReservationsCommandError = async (output, context) => {
|
|
|
1307
1723
|
case "BadRequestException":
|
|
1308
1724
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1309
1725
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1726
|
+
case "ConflictException":
|
|
1727
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1728
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1729
|
+
case "ForbiddenException":
|
|
1730
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1731
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1310
1732
|
case "InternalServerErrorException":
|
|
1311
1733
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1312
1734
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1735
|
+
case "NotFoundException":
|
|
1736
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1737
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1313
1738
|
case "ServiceUnavailableException":
|
|
1314
1739
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1315
1740
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1318,28 +1743,29 @@ const de_ListReservationsCommandError = async (output, context) => {
|
|
|
1318
1743
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1319
1744
|
default:
|
|
1320
1745
|
const parsedBody = parsedOutput.body;
|
|
1321
|
-
throwDefaultError({
|
|
1746
|
+
return throwDefaultError({
|
|
1322
1747
|
output,
|
|
1323
1748
|
parsedBody,
|
|
1324
|
-
exceptionCtor: __BaseException,
|
|
1325
1749
|
errorCode,
|
|
1326
1750
|
});
|
|
1327
1751
|
}
|
|
1328
1752
|
};
|
|
1329
|
-
export const
|
|
1753
|
+
export const de_DescribeFlowCommand = async (output, context) => {
|
|
1330
1754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1331
|
-
return
|
|
1755
|
+
return de_DescribeFlowCommandError(output, context);
|
|
1332
1756
|
}
|
|
1333
1757
|
const contents = map({
|
|
1334
1758
|
$metadata: deserializeMetadata(output),
|
|
1335
1759
|
});
|
|
1336
1760
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1761
|
+
const doc = take(data, {
|
|
1762
|
+
Flow: [, (_) => de_Flow(_, context), `flow`],
|
|
1763
|
+
Messages: [, (_) => de_Messages(_, context), `messages`],
|
|
1764
|
+
});
|
|
1765
|
+
Object.assign(contents, doc);
|
|
1340
1766
|
return contents;
|
|
1341
1767
|
};
|
|
1342
|
-
const
|
|
1768
|
+
const de_DescribeFlowCommandError = async (output, context) => {
|
|
1343
1769
|
const parsedOutput = {
|
|
1344
1770
|
...output,
|
|
1345
1771
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1349,36 +1775,45 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1349
1775
|
case "BadRequestException":
|
|
1350
1776
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1351
1777
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1778
|
+
case "ForbiddenException":
|
|
1779
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1780
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1352
1781
|
case "InternalServerErrorException":
|
|
1353
1782
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1354
1783
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1355
1784
|
case "NotFoundException":
|
|
1356
1785
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1357
1786
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1787
|
+
case "ServiceUnavailableException":
|
|
1788
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1789
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1790
|
+
case "TooManyRequestsException":
|
|
1791
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1792
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1358
1793
|
default:
|
|
1359
1794
|
const parsedBody = parsedOutput.body;
|
|
1360
|
-
throwDefaultError({
|
|
1795
|
+
return throwDefaultError({
|
|
1361
1796
|
output,
|
|
1362
1797
|
parsedBody,
|
|
1363
|
-
exceptionCtor: __BaseException,
|
|
1364
1798
|
errorCode,
|
|
1365
1799
|
});
|
|
1366
1800
|
}
|
|
1367
1801
|
};
|
|
1368
|
-
export const
|
|
1369
|
-
if (output.statusCode !==
|
|
1370
|
-
return
|
|
1802
|
+
export const de_DescribeGatewayCommand = async (output, context) => {
|
|
1803
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1804
|
+
return de_DescribeGatewayCommandError(output, context);
|
|
1371
1805
|
}
|
|
1372
1806
|
const contents = map({
|
|
1373
1807
|
$metadata: deserializeMetadata(output),
|
|
1374
1808
|
});
|
|
1375
1809
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
}
|
|
1810
|
+
const doc = take(data, {
|
|
1811
|
+
Gateway: [, (_) => de_Gateway(_, context), `gateway`],
|
|
1812
|
+
});
|
|
1813
|
+
Object.assign(contents, doc);
|
|
1379
1814
|
return contents;
|
|
1380
1815
|
};
|
|
1381
|
-
const
|
|
1816
|
+
const de_DescribeGatewayCommandError = async (output, context) => {
|
|
1382
1817
|
const parsedOutput = {
|
|
1383
1818
|
...output,
|
|
1384
1819
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1388,6 +1823,9 @@ const de_PurchaseOfferingCommandError = async (output, context) => {
|
|
|
1388
1823
|
case "BadRequestException":
|
|
1389
1824
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1390
1825
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1826
|
+
case "ConflictException":
|
|
1827
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1828
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1391
1829
|
case "ForbiddenException":
|
|
1392
1830
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1393
1831
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -1405,31 +1843,28 @@ const de_PurchaseOfferingCommandError = async (output, context) => {
|
|
|
1405
1843
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1406
1844
|
default:
|
|
1407
1845
|
const parsedBody = parsedOutput.body;
|
|
1408
|
-
throwDefaultError({
|
|
1846
|
+
return throwDefaultError({
|
|
1409
1847
|
output,
|
|
1410
1848
|
parsedBody,
|
|
1411
|
-
exceptionCtor: __BaseException,
|
|
1412
1849
|
errorCode,
|
|
1413
1850
|
});
|
|
1414
1851
|
}
|
|
1415
1852
|
};
|
|
1416
|
-
export const
|
|
1853
|
+
export const de_DescribeGatewayInstanceCommand = async (output, context) => {
|
|
1417
1854
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1418
|
-
return
|
|
1855
|
+
return de_DescribeGatewayInstanceCommandError(output, context);
|
|
1419
1856
|
}
|
|
1420
1857
|
const contents = map({
|
|
1421
1858
|
$metadata: deserializeMetadata(output),
|
|
1422
1859
|
});
|
|
1423
1860
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
contents.MediaStreamName = __expectString(data.mediaStreamName);
|
|
1429
|
-
}
|
|
1861
|
+
const doc = take(data, {
|
|
1862
|
+
GatewayInstance: [, (_) => de_GatewayInstance(_, context), `gatewayInstance`],
|
|
1863
|
+
});
|
|
1864
|
+
Object.assign(contents, doc);
|
|
1430
1865
|
return contents;
|
|
1431
1866
|
};
|
|
1432
|
-
const
|
|
1867
|
+
const de_DescribeGatewayInstanceCommandError = async (output, context) => {
|
|
1433
1868
|
const parsedOutput = {
|
|
1434
1869
|
...output,
|
|
1435
1870
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1439,6 +1874,9 @@ const de_RemoveFlowMediaStreamCommandError = async (output, context) => {
|
|
|
1439
1874
|
case "BadRequestException":
|
|
1440
1875
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1441
1876
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1877
|
+
case "ConflictException":
|
|
1878
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1879
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1442
1880
|
case "ForbiddenException":
|
|
1443
1881
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1444
1882
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -1456,31 +1894,28 @@ const de_RemoveFlowMediaStreamCommandError = async (output, context) => {
|
|
|
1456
1894
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1457
1895
|
default:
|
|
1458
1896
|
const parsedBody = parsedOutput.body;
|
|
1459
|
-
throwDefaultError({
|
|
1897
|
+
return throwDefaultError({
|
|
1460
1898
|
output,
|
|
1461
1899
|
parsedBody,
|
|
1462
|
-
exceptionCtor: __BaseException,
|
|
1463
1900
|
errorCode,
|
|
1464
1901
|
});
|
|
1465
1902
|
}
|
|
1466
1903
|
};
|
|
1467
|
-
export const
|
|
1468
|
-
if (output.statusCode !==
|
|
1469
|
-
return
|
|
1904
|
+
export const de_DescribeOfferingCommand = async (output, context) => {
|
|
1905
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1906
|
+
return de_DescribeOfferingCommandError(output, context);
|
|
1470
1907
|
}
|
|
1471
1908
|
const contents = map({
|
|
1472
1909
|
$metadata: deserializeMetadata(output),
|
|
1473
1910
|
});
|
|
1474
1911
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
contents.OutputArn = __expectString(data.outputArn);
|
|
1480
|
-
}
|
|
1912
|
+
const doc = take(data, {
|
|
1913
|
+
Offering: [, (_) => de_Offering(_, context), `offering`],
|
|
1914
|
+
});
|
|
1915
|
+
Object.assign(contents, doc);
|
|
1481
1916
|
return contents;
|
|
1482
1917
|
};
|
|
1483
|
-
const
|
|
1918
|
+
const de_DescribeOfferingCommandError = async (output, context) => {
|
|
1484
1919
|
const parsedOutput = {
|
|
1485
1920
|
...output,
|
|
1486
1921
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1490,9 +1925,6 @@ const de_RemoveFlowOutputCommandError = async (output, context) => {
|
|
|
1490
1925
|
case "BadRequestException":
|
|
1491
1926
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1492
1927
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "ForbiddenException":
|
|
1494
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1495
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1496
1928
|
case "InternalServerErrorException":
|
|
1497
1929
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1498
1930
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
@@ -1507,31 +1939,28 @@ const de_RemoveFlowOutputCommandError = async (output, context) => {
|
|
|
1507
1939
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1508
1940
|
default:
|
|
1509
1941
|
const parsedBody = parsedOutput.body;
|
|
1510
|
-
throwDefaultError({
|
|
1942
|
+
return throwDefaultError({
|
|
1511
1943
|
output,
|
|
1512
1944
|
parsedBody,
|
|
1513
|
-
exceptionCtor: __BaseException,
|
|
1514
1945
|
errorCode,
|
|
1515
1946
|
});
|
|
1516
1947
|
}
|
|
1517
1948
|
};
|
|
1518
|
-
export const
|
|
1519
|
-
if (output.statusCode !==
|
|
1520
|
-
return
|
|
1949
|
+
export const de_DescribeReservationCommand = async (output, context) => {
|
|
1950
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1951
|
+
return de_DescribeReservationCommandError(output, context);
|
|
1521
1952
|
}
|
|
1522
1953
|
const contents = map({
|
|
1523
1954
|
$metadata: deserializeMetadata(output),
|
|
1524
1955
|
});
|
|
1525
1956
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
contents.SourceArn = __expectString(data.sourceArn);
|
|
1531
|
-
}
|
|
1957
|
+
const doc = take(data, {
|
|
1958
|
+
Reservation: [, (_) => de_Reservation(_, context), `reservation`],
|
|
1959
|
+
});
|
|
1960
|
+
Object.assign(contents, doc);
|
|
1532
1961
|
return contents;
|
|
1533
1962
|
};
|
|
1534
|
-
const
|
|
1963
|
+
const de_DescribeReservationCommandError = async (output, context) => {
|
|
1535
1964
|
const parsedOutput = {
|
|
1536
1965
|
...output,
|
|
1537
1966
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1541,9 +1970,6 @@ const de_RemoveFlowSourceCommandError = async (output, context) => {
|
|
|
1541
1970
|
case "BadRequestException":
|
|
1542
1971
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1543
1972
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "ForbiddenException":
|
|
1545
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1546
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1547
1973
|
case "InternalServerErrorException":
|
|
1548
1974
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1549
1975
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
@@ -1558,34 +1984,29 @@ const de_RemoveFlowSourceCommandError = async (output, context) => {
|
|
|
1558
1984
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1559
1985
|
default:
|
|
1560
1986
|
const parsedBody = parsedOutput.body;
|
|
1561
|
-
throwDefaultError({
|
|
1987
|
+
return throwDefaultError({
|
|
1562
1988
|
output,
|
|
1563
1989
|
parsedBody,
|
|
1564
|
-
exceptionCtor: __BaseException,
|
|
1565
1990
|
errorCode,
|
|
1566
1991
|
});
|
|
1567
1992
|
}
|
|
1568
1993
|
};
|
|
1569
|
-
export const
|
|
1994
|
+
export const de_GrantFlowEntitlementsCommand = async (output, context) => {
|
|
1570
1995
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1571
|
-
return
|
|
1996
|
+
return de_GrantFlowEntitlementsCommandError(output, context);
|
|
1572
1997
|
}
|
|
1573
1998
|
const contents = map({
|
|
1574
1999
|
$metadata: deserializeMetadata(output),
|
|
1575
2000
|
});
|
|
1576
2001
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
}
|
|
1583
|
-
if (data.vpcInterfaceName != null) {
|
|
1584
|
-
contents.VpcInterfaceName = __expectString(data.vpcInterfaceName);
|
|
1585
|
-
}
|
|
2002
|
+
const doc = take(data, {
|
|
2003
|
+
Entitlements: [, (_) => de___listOfEntitlement(_, context), `entitlements`],
|
|
2004
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
2005
|
+
});
|
|
2006
|
+
Object.assign(contents, doc);
|
|
1586
2007
|
return contents;
|
|
1587
2008
|
};
|
|
1588
|
-
const
|
|
2009
|
+
const de_GrantFlowEntitlementsCommandError = async (output, context) => {
|
|
1589
2010
|
const parsedOutput = {
|
|
1590
2011
|
...output,
|
|
1591
2012
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1598,6 +2019,9 @@ const de_RemoveFlowVpcInterfaceCommandError = async (output, context) => {
|
|
|
1598
2019
|
case "ForbiddenException":
|
|
1599
2020
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1600
2021
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2022
|
+
case "GrantFlowEntitlements420Exception":
|
|
2023
|
+
case "com.amazonaws.mediaconnect#GrantFlowEntitlements420Exception":
|
|
2024
|
+
throw await de_GrantFlowEntitlements420ExceptionRes(parsedOutput, context);
|
|
1601
2025
|
case "InternalServerErrorException":
|
|
1602
2026
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1603
2027
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
@@ -1612,31 +2036,29 @@ const de_RemoveFlowVpcInterfaceCommandError = async (output, context) => {
|
|
|
1612
2036
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1613
2037
|
default:
|
|
1614
2038
|
const parsedBody = parsedOutput.body;
|
|
1615
|
-
throwDefaultError({
|
|
2039
|
+
return throwDefaultError({
|
|
1616
2040
|
output,
|
|
1617
2041
|
parsedBody,
|
|
1618
|
-
exceptionCtor: __BaseException,
|
|
1619
2042
|
errorCode,
|
|
1620
2043
|
});
|
|
1621
2044
|
}
|
|
1622
2045
|
};
|
|
1623
|
-
export const
|
|
1624
|
-
if (output.statusCode !==
|
|
1625
|
-
return
|
|
2046
|
+
export const de_ListBridgesCommand = async (output, context) => {
|
|
2047
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2048
|
+
return de_ListBridgesCommandError(output, context);
|
|
1626
2049
|
}
|
|
1627
2050
|
const contents = map({
|
|
1628
2051
|
$metadata: deserializeMetadata(output),
|
|
1629
2052
|
});
|
|
1630
2053
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
}
|
|
2054
|
+
const doc = take(data, {
|
|
2055
|
+
Bridges: [, (_) => de___listOfListedBridge(_, context), `bridges`],
|
|
2056
|
+
NextToken: [, __expectString, `nextToken`],
|
|
2057
|
+
});
|
|
2058
|
+
Object.assign(contents, doc);
|
|
1637
2059
|
return contents;
|
|
1638
2060
|
};
|
|
1639
|
-
const
|
|
2061
|
+
const de_ListBridgesCommandError = async (output, context) => {
|
|
1640
2062
|
const parsedOutput = {
|
|
1641
2063
|
...output,
|
|
1642
2064
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1646,15 +2068,12 @@ const de_RevokeFlowEntitlementCommandError = async (output, context) => {
|
|
|
1646
2068
|
case "BadRequestException":
|
|
1647
2069
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1648
2070
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1649
|
-
case "
|
|
1650
|
-
case "com.amazonaws.mediaconnect#
|
|
1651
|
-
throw await
|
|
2071
|
+
case "ConflictException":
|
|
2072
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2073
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1652
2074
|
case "InternalServerErrorException":
|
|
1653
2075
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1654
2076
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1655
|
-
case "NotFoundException":
|
|
1656
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1657
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1658
2077
|
case "ServiceUnavailableException":
|
|
1659
2078
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1660
2079
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1663,31 +2082,29 @@ const de_RevokeFlowEntitlementCommandError = async (output, context) => {
|
|
|
1663
2082
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1664
2083
|
default:
|
|
1665
2084
|
const parsedBody = parsedOutput.body;
|
|
1666
|
-
throwDefaultError({
|
|
2085
|
+
return throwDefaultError({
|
|
1667
2086
|
output,
|
|
1668
2087
|
parsedBody,
|
|
1669
|
-
exceptionCtor: __BaseException,
|
|
1670
2088
|
errorCode,
|
|
1671
2089
|
});
|
|
1672
2090
|
}
|
|
1673
2091
|
};
|
|
1674
|
-
export const
|
|
1675
|
-
if (output.statusCode !==
|
|
1676
|
-
return
|
|
2092
|
+
export const de_ListEntitlementsCommand = async (output, context) => {
|
|
2093
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2094
|
+
return de_ListEntitlementsCommandError(output, context);
|
|
1677
2095
|
}
|
|
1678
2096
|
const contents = map({
|
|
1679
2097
|
$metadata: deserializeMetadata(output),
|
|
1680
2098
|
});
|
|
1681
2099
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
}
|
|
2100
|
+
const doc = take(data, {
|
|
2101
|
+
Entitlements: [, (_) => de___listOfListedEntitlement(_, context), `entitlements`],
|
|
2102
|
+
NextToken: [, __expectString, `nextToken`],
|
|
2103
|
+
});
|
|
2104
|
+
Object.assign(contents, doc);
|
|
1688
2105
|
return contents;
|
|
1689
2106
|
};
|
|
1690
|
-
const
|
|
2107
|
+
const de_ListEntitlementsCommandError = async (output, context) => {
|
|
1691
2108
|
const parsedOutput = {
|
|
1692
2109
|
...output,
|
|
1693
2110
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1697,15 +2114,9 @@ const de_StartFlowCommandError = async (output, context) => {
|
|
|
1697
2114
|
case "BadRequestException":
|
|
1698
2115
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1699
2116
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1700
|
-
case "ForbiddenException":
|
|
1701
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1702
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1703
2117
|
case "InternalServerErrorException":
|
|
1704
2118
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1705
2119
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1706
|
-
case "NotFoundException":
|
|
1707
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1708
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1709
2120
|
case "ServiceUnavailableException":
|
|
1710
2121
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1711
2122
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1714,31 +2125,29 @@ const de_StartFlowCommandError = async (output, context) => {
|
|
|
1714
2125
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1715
2126
|
default:
|
|
1716
2127
|
const parsedBody = parsedOutput.body;
|
|
1717
|
-
throwDefaultError({
|
|
2128
|
+
return throwDefaultError({
|
|
1718
2129
|
output,
|
|
1719
2130
|
parsedBody,
|
|
1720
|
-
exceptionCtor: __BaseException,
|
|
1721
2131
|
errorCode,
|
|
1722
2132
|
});
|
|
1723
2133
|
}
|
|
1724
2134
|
};
|
|
1725
|
-
export const
|
|
1726
|
-
if (output.statusCode !==
|
|
1727
|
-
return
|
|
2135
|
+
export const de_ListFlowsCommand = async (output, context) => {
|
|
2136
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2137
|
+
return de_ListFlowsCommandError(output, context);
|
|
1728
2138
|
}
|
|
1729
2139
|
const contents = map({
|
|
1730
2140
|
$metadata: deserializeMetadata(output),
|
|
1731
2141
|
});
|
|
1732
2142
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
}
|
|
2143
|
+
const doc = take(data, {
|
|
2144
|
+
Flows: [, (_) => de___listOfListedFlow(_, context), `flows`],
|
|
2145
|
+
NextToken: [, __expectString, `nextToken`],
|
|
2146
|
+
});
|
|
2147
|
+
Object.assign(contents, doc);
|
|
1739
2148
|
return contents;
|
|
1740
2149
|
};
|
|
1741
|
-
const
|
|
2150
|
+
const de_ListFlowsCommandError = async (output, context) => {
|
|
1742
2151
|
const parsedOutput = {
|
|
1743
2152
|
...output,
|
|
1744
2153
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1748,15 +2157,9 @@ const de_StopFlowCommandError = async (output, context) => {
|
|
|
1748
2157
|
case "BadRequestException":
|
|
1749
2158
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1750
2159
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "ForbiddenException":
|
|
1752
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1753
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1754
2160
|
case "InternalServerErrorException":
|
|
1755
2161
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1756
2162
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1757
|
-
case "NotFoundException":
|
|
1758
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1759
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1760
2163
|
case "ServiceUnavailableException":
|
|
1761
2164
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1762
2165
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1765,25 +2168,29 @@ const de_StopFlowCommandError = async (output, context) => {
|
|
|
1765
2168
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1766
2169
|
default:
|
|
1767
2170
|
const parsedBody = parsedOutput.body;
|
|
1768
|
-
throwDefaultError({
|
|
2171
|
+
return throwDefaultError({
|
|
1769
2172
|
output,
|
|
1770
2173
|
parsedBody,
|
|
1771
|
-
exceptionCtor: __BaseException,
|
|
1772
2174
|
errorCode,
|
|
1773
2175
|
});
|
|
1774
2176
|
}
|
|
1775
2177
|
};
|
|
1776
|
-
export const
|
|
1777
|
-
if (output.statusCode !==
|
|
1778
|
-
return
|
|
2178
|
+
export const de_ListGatewayInstancesCommand = async (output, context) => {
|
|
2179
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2180
|
+
return de_ListGatewayInstancesCommandError(output, context);
|
|
1779
2181
|
}
|
|
1780
2182
|
const contents = map({
|
|
1781
2183
|
$metadata: deserializeMetadata(output),
|
|
1782
2184
|
});
|
|
1783
|
-
await
|
|
2185
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2186
|
+
const doc = take(data, {
|
|
2187
|
+
Instances: [, (_) => de___listOfListedGatewayInstance(_, context), `instances`],
|
|
2188
|
+
NextToken: [, __expectString, `nextToken`],
|
|
2189
|
+
});
|
|
2190
|
+
Object.assign(contents, doc);
|
|
1784
2191
|
return contents;
|
|
1785
2192
|
};
|
|
1786
|
-
const
|
|
2193
|
+
const de_ListGatewayInstancesCommandError = async (output, context) => {
|
|
1787
2194
|
const parsedOutput = {
|
|
1788
2195
|
...output,
|
|
1789
2196
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1793,33 +2200,43 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1793
2200
|
case "BadRequestException":
|
|
1794
2201
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1795
2202
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2203
|
+
case "ConflictException":
|
|
2204
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2205
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1796
2206
|
case "InternalServerErrorException":
|
|
1797
2207
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1798
2208
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "
|
|
1800
|
-
case "com.amazonaws.mediaconnect#
|
|
1801
|
-
throw await
|
|
2209
|
+
case "ServiceUnavailableException":
|
|
2210
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2211
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2212
|
+
case "TooManyRequestsException":
|
|
2213
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2214
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1802
2215
|
default:
|
|
1803
2216
|
const parsedBody = parsedOutput.body;
|
|
1804
|
-
throwDefaultError({
|
|
2217
|
+
return throwDefaultError({
|
|
1805
2218
|
output,
|
|
1806
2219
|
parsedBody,
|
|
1807
|
-
exceptionCtor: __BaseException,
|
|
1808
2220
|
errorCode,
|
|
1809
2221
|
});
|
|
1810
2222
|
}
|
|
1811
2223
|
};
|
|
1812
|
-
export const
|
|
1813
|
-
if (output.statusCode !==
|
|
1814
|
-
return
|
|
2224
|
+
export const de_ListGatewaysCommand = async (output, context) => {
|
|
2225
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2226
|
+
return de_ListGatewaysCommandError(output, context);
|
|
1815
2227
|
}
|
|
1816
2228
|
const contents = map({
|
|
1817
2229
|
$metadata: deserializeMetadata(output),
|
|
1818
2230
|
});
|
|
1819
|
-
await
|
|
2231
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2232
|
+
const doc = take(data, {
|
|
2233
|
+
Gateways: [, (_) => de___listOfListedGateway(_, context), `gateways`],
|
|
2234
|
+
NextToken: [, __expectString, `nextToken`],
|
|
2235
|
+
});
|
|
2236
|
+
Object.assign(contents, doc);
|
|
1820
2237
|
return contents;
|
|
1821
2238
|
};
|
|
1822
|
-
const
|
|
2239
|
+
const de_ListGatewaysCommandError = async (output, context) => {
|
|
1823
2240
|
const parsedOutput = {
|
|
1824
2241
|
...output,
|
|
1825
2242
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1829,36 +2246,43 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1829
2246
|
case "BadRequestException":
|
|
1830
2247
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1831
2248
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2249
|
+
case "ConflictException":
|
|
2250
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2251
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1832
2252
|
case "InternalServerErrorException":
|
|
1833
2253
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1834
2254
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "
|
|
1836
|
-
case "com.amazonaws.mediaconnect#
|
|
1837
|
-
throw await
|
|
2255
|
+
case "ServiceUnavailableException":
|
|
2256
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2257
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2258
|
+
case "TooManyRequestsException":
|
|
2259
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2260
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1838
2261
|
default:
|
|
1839
2262
|
const parsedBody = parsedOutput.body;
|
|
1840
|
-
throwDefaultError({
|
|
2263
|
+
return throwDefaultError({
|
|
1841
2264
|
output,
|
|
1842
2265
|
parsedBody,
|
|
1843
|
-
exceptionCtor: __BaseException,
|
|
1844
2266
|
errorCode,
|
|
1845
2267
|
});
|
|
1846
2268
|
}
|
|
1847
2269
|
};
|
|
1848
|
-
export const
|
|
1849
|
-
if (output.statusCode !==
|
|
1850
|
-
return
|
|
2270
|
+
export const de_ListOfferingsCommand = async (output, context) => {
|
|
2271
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2272
|
+
return de_ListOfferingsCommandError(output, context);
|
|
1851
2273
|
}
|
|
1852
2274
|
const contents = map({
|
|
1853
2275
|
$metadata: deserializeMetadata(output),
|
|
1854
2276
|
});
|
|
1855
2277
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
2278
|
+
const doc = take(data, {
|
|
2279
|
+
NextToken: [, __expectString, `nextToken`],
|
|
2280
|
+
Offerings: [, (_) => de___listOfOffering(_, context), `offerings`],
|
|
2281
|
+
});
|
|
2282
|
+
Object.assign(contents, doc);
|
|
1859
2283
|
return contents;
|
|
1860
2284
|
};
|
|
1861
|
-
const
|
|
2285
|
+
const de_ListOfferingsCommandError = async (output, context) => {
|
|
1862
2286
|
const parsedOutput = {
|
|
1863
2287
|
...output,
|
|
1864
2288
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1868,15 +2292,9 @@ const de_UpdateFlowCommandError = async (output, context) => {
|
|
|
1868
2292
|
case "BadRequestException":
|
|
1869
2293
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1870
2294
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1871
|
-
case "ForbiddenException":
|
|
1872
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1873
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1874
2295
|
case "InternalServerErrorException":
|
|
1875
2296
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1876
2297
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1877
|
-
case "NotFoundException":
|
|
1878
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1879
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1880
2298
|
case "ServiceUnavailableException":
|
|
1881
2299
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1882
2300
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1885,31 +2303,29 @@ const de_UpdateFlowCommandError = async (output, context) => {
|
|
|
1885
2303
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1886
2304
|
default:
|
|
1887
2305
|
const parsedBody = parsedOutput.body;
|
|
1888
|
-
throwDefaultError({
|
|
2306
|
+
return throwDefaultError({
|
|
1889
2307
|
output,
|
|
1890
2308
|
parsedBody,
|
|
1891
|
-
exceptionCtor: __BaseException,
|
|
1892
2309
|
errorCode,
|
|
1893
2310
|
});
|
|
1894
2311
|
}
|
|
1895
2312
|
};
|
|
1896
|
-
export const
|
|
1897
|
-
if (output.statusCode !==
|
|
1898
|
-
return
|
|
2313
|
+
export const de_ListReservationsCommand = async (output, context) => {
|
|
2314
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2315
|
+
return de_ListReservationsCommandError(output, context);
|
|
1899
2316
|
}
|
|
1900
2317
|
const contents = map({
|
|
1901
2318
|
$metadata: deserializeMetadata(output),
|
|
1902
2319
|
});
|
|
1903
2320
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
}
|
|
2321
|
+
const doc = take(data, {
|
|
2322
|
+
NextToken: [, __expectString, `nextToken`],
|
|
2323
|
+
Reservations: [, (_) => de___listOfReservation(_, context), `reservations`],
|
|
2324
|
+
});
|
|
2325
|
+
Object.assign(contents, doc);
|
|
1910
2326
|
return contents;
|
|
1911
2327
|
};
|
|
1912
|
-
const
|
|
2328
|
+
const de_ListReservationsCommandError = async (output, context) => {
|
|
1913
2329
|
const parsedOutput = {
|
|
1914
2330
|
...output,
|
|
1915
2331
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1919,15 +2335,9 @@ const de_UpdateFlowEntitlementCommandError = async (output, context) => {
|
|
|
1919
2335
|
case "BadRequestException":
|
|
1920
2336
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1921
2337
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1922
|
-
case "ForbiddenException":
|
|
1923
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1924
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1925
2338
|
case "InternalServerErrorException":
|
|
1926
2339
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1927
2340
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "NotFoundException":
|
|
1929
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1930
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1931
2341
|
case "ServiceUnavailableException":
|
|
1932
2342
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1933
2343
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1936,31 +2346,67 @@ const de_UpdateFlowEntitlementCommandError = async (output, context) => {
|
|
|
1936
2346
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1937
2347
|
default:
|
|
1938
2348
|
const parsedBody = parsedOutput.body;
|
|
1939
|
-
throwDefaultError({
|
|
2349
|
+
return throwDefaultError({
|
|
1940
2350
|
output,
|
|
1941
2351
|
parsedBody,
|
|
1942
|
-
exceptionCtor: __BaseException,
|
|
1943
2352
|
errorCode,
|
|
1944
2353
|
});
|
|
1945
2354
|
}
|
|
1946
2355
|
};
|
|
1947
|
-
export const
|
|
1948
|
-
if (output.statusCode !==
|
|
1949
|
-
return
|
|
2356
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2357
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2358
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1950
2359
|
}
|
|
1951
2360
|
const contents = map({
|
|
1952
2361
|
$metadata: deserializeMetadata(output),
|
|
1953
2362
|
});
|
|
1954
2363
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1955
|
-
|
|
1956
|
-
|
|
2364
|
+
const doc = take(data, {
|
|
2365
|
+
Tags: [, _json, `tags`],
|
|
2366
|
+
});
|
|
2367
|
+
Object.assign(contents, doc);
|
|
2368
|
+
return contents;
|
|
2369
|
+
};
|
|
2370
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2371
|
+
const parsedOutput = {
|
|
2372
|
+
...output,
|
|
2373
|
+
body: await parseErrorBody(output.body, context),
|
|
2374
|
+
};
|
|
2375
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2376
|
+
switch (errorCode) {
|
|
2377
|
+
case "BadRequestException":
|
|
2378
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2379
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2380
|
+
case "InternalServerErrorException":
|
|
2381
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2382
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2383
|
+
case "NotFoundException":
|
|
2384
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2385
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2386
|
+
default:
|
|
2387
|
+
const parsedBody = parsedOutput.body;
|
|
2388
|
+
return throwDefaultError({
|
|
2389
|
+
output,
|
|
2390
|
+
parsedBody,
|
|
2391
|
+
errorCode,
|
|
2392
|
+
});
|
|
1957
2393
|
}
|
|
1958
|
-
|
|
1959
|
-
|
|
2394
|
+
};
|
|
2395
|
+
export const de_PurchaseOfferingCommand = async (output, context) => {
|
|
2396
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2397
|
+
return de_PurchaseOfferingCommandError(output, context);
|
|
1960
2398
|
}
|
|
2399
|
+
const contents = map({
|
|
2400
|
+
$metadata: deserializeMetadata(output),
|
|
2401
|
+
});
|
|
2402
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2403
|
+
const doc = take(data, {
|
|
2404
|
+
Reservation: [, (_) => de_Reservation(_, context), `reservation`],
|
|
2405
|
+
});
|
|
2406
|
+
Object.assign(contents, doc);
|
|
1961
2407
|
return contents;
|
|
1962
2408
|
};
|
|
1963
|
-
const
|
|
2409
|
+
const de_PurchaseOfferingCommandError = async (output, context) => {
|
|
1964
2410
|
const parsedOutput = {
|
|
1965
2411
|
...output,
|
|
1966
2412
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1987,31 +2433,29 @@ const de_UpdateFlowMediaStreamCommandError = async (output, context) => {
|
|
|
1987
2433
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1988
2434
|
default:
|
|
1989
2435
|
const parsedBody = parsedOutput.body;
|
|
1990
|
-
throwDefaultError({
|
|
2436
|
+
return throwDefaultError({
|
|
1991
2437
|
output,
|
|
1992
2438
|
parsedBody,
|
|
1993
|
-
exceptionCtor: __BaseException,
|
|
1994
2439
|
errorCode,
|
|
1995
2440
|
});
|
|
1996
2441
|
}
|
|
1997
2442
|
};
|
|
1998
|
-
export const
|
|
2443
|
+
export const de_RemoveBridgeOutputCommand = async (output, context) => {
|
|
1999
2444
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2000
|
-
return
|
|
2445
|
+
return de_RemoveBridgeOutputCommandError(output, context);
|
|
2001
2446
|
}
|
|
2002
2447
|
const contents = map({
|
|
2003
2448
|
$metadata: deserializeMetadata(output),
|
|
2004
2449
|
});
|
|
2005
2450
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
}
|
|
2451
|
+
const doc = take(data, {
|
|
2452
|
+
BridgeArn: [, __expectString, `bridgeArn`],
|
|
2453
|
+
OutputName: [, __expectString, `outputName`],
|
|
2454
|
+
});
|
|
2455
|
+
Object.assign(contents, doc);
|
|
2012
2456
|
return contents;
|
|
2013
2457
|
};
|
|
2014
|
-
const
|
|
2458
|
+
const de_RemoveBridgeOutputCommandError = async (output, context) => {
|
|
2015
2459
|
const parsedOutput = {
|
|
2016
2460
|
...output,
|
|
2017
2461
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2021,6 +2465,9 @@ const de_UpdateFlowOutputCommandError = async (output, context) => {
|
|
|
2021
2465
|
case "BadRequestException":
|
|
2022
2466
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2023
2467
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2468
|
+
case "ConflictException":
|
|
2469
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2470
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2024
2471
|
case "ForbiddenException":
|
|
2025
2472
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2026
2473
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -2038,31 +2485,29 @@ const de_UpdateFlowOutputCommandError = async (output, context) => {
|
|
|
2038
2485
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2039
2486
|
default:
|
|
2040
2487
|
const parsedBody = parsedOutput.body;
|
|
2041
|
-
throwDefaultError({
|
|
2488
|
+
return throwDefaultError({
|
|
2042
2489
|
output,
|
|
2043
2490
|
parsedBody,
|
|
2044
|
-
exceptionCtor: __BaseException,
|
|
2045
2491
|
errorCode,
|
|
2046
2492
|
});
|
|
2047
2493
|
}
|
|
2048
2494
|
};
|
|
2049
|
-
export const
|
|
2495
|
+
export const de_RemoveBridgeSourceCommand = async (output, context) => {
|
|
2050
2496
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2051
|
-
return
|
|
2497
|
+
return de_RemoveBridgeSourceCommandError(output, context);
|
|
2052
2498
|
}
|
|
2053
2499
|
const contents = map({
|
|
2054
2500
|
$metadata: deserializeMetadata(output),
|
|
2055
2501
|
});
|
|
2056
2502
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
}
|
|
2503
|
+
const doc = take(data, {
|
|
2504
|
+
BridgeArn: [, __expectString, `bridgeArn`],
|
|
2505
|
+
SourceName: [, __expectString, `sourceName`],
|
|
2506
|
+
});
|
|
2507
|
+
Object.assign(contents, doc);
|
|
2063
2508
|
return contents;
|
|
2064
2509
|
};
|
|
2065
|
-
const
|
|
2510
|
+
const de_RemoveBridgeSourceCommandError = async (output, context) => {
|
|
2066
2511
|
const parsedOutput = {
|
|
2067
2512
|
...output,
|
|
2068
2513
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2072,6 +2517,9 @@ const de_UpdateFlowSourceCommandError = async (output, context) => {
|
|
|
2072
2517
|
case "BadRequestException":
|
|
2073
2518
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2074
2519
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2520
|
+
case "ConflictException":
|
|
2521
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2522
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2075
2523
|
case "ForbiddenException":
|
|
2076
2524
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2077
2525
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -2089,34 +2537,978 @@ const de_UpdateFlowSourceCommandError = async (output, context) => {
|
|
|
2089
2537
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2090
2538
|
default:
|
|
2091
2539
|
const parsedBody = parsedOutput.body;
|
|
2092
|
-
throwDefaultError({
|
|
2540
|
+
return throwDefaultError({
|
|
2093
2541
|
output,
|
|
2094
2542
|
parsedBody,
|
|
2095
|
-
exceptionCtor: __BaseException,
|
|
2096
2543
|
errorCode,
|
|
2097
2544
|
});
|
|
2098
2545
|
}
|
|
2099
2546
|
};
|
|
2100
|
-
const
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
const data = parsedOutput.body;
|
|
2104
|
-
if (data.message != null) {
|
|
2105
|
-
contents.Message = __expectString(data.message);
|
|
2547
|
+
export const de_RemoveFlowMediaStreamCommand = async (output, context) => {
|
|
2548
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2549
|
+
return de_RemoveFlowMediaStreamCommandError(output, context);
|
|
2106
2550
|
}
|
|
2551
|
+
const contents = map({
|
|
2552
|
+
$metadata: deserializeMetadata(output),
|
|
2553
|
+
});
|
|
2554
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2555
|
+
const doc = take(data, {
|
|
2556
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
2557
|
+
MediaStreamName: [, __expectString, `mediaStreamName`],
|
|
2558
|
+
});
|
|
2559
|
+
Object.assign(contents, doc);
|
|
2560
|
+
return contents;
|
|
2561
|
+
};
|
|
2562
|
+
const de_RemoveFlowMediaStreamCommandError = async (output, context) => {
|
|
2563
|
+
const parsedOutput = {
|
|
2564
|
+
...output,
|
|
2565
|
+
body: await parseErrorBody(output.body, context),
|
|
2566
|
+
};
|
|
2567
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2568
|
+
switch (errorCode) {
|
|
2569
|
+
case "BadRequestException":
|
|
2570
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2571
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2572
|
+
case "ForbiddenException":
|
|
2573
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2574
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2575
|
+
case "InternalServerErrorException":
|
|
2576
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2577
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2578
|
+
case "NotFoundException":
|
|
2579
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2580
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2581
|
+
case "ServiceUnavailableException":
|
|
2582
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2583
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2584
|
+
case "TooManyRequestsException":
|
|
2585
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2586
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2587
|
+
default:
|
|
2588
|
+
const parsedBody = parsedOutput.body;
|
|
2589
|
+
return throwDefaultError({
|
|
2590
|
+
output,
|
|
2591
|
+
parsedBody,
|
|
2592
|
+
errorCode,
|
|
2593
|
+
});
|
|
2594
|
+
}
|
|
2595
|
+
};
|
|
2596
|
+
export const de_RemoveFlowOutputCommand = async (output, context) => {
|
|
2597
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2598
|
+
return de_RemoveFlowOutputCommandError(output, context);
|
|
2599
|
+
}
|
|
2600
|
+
const contents = map({
|
|
2601
|
+
$metadata: deserializeMetadata(output),
|
|
2602
|
+
});
|
|
2603
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2604
|
+
const doc = take(data, {
|
|
2605
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
2606
|
+
OutputArn: [, __expectString, `outputArn`],
|
|
2607
|
+
});
|
|
2608
|
+
Object.assign(contents, doc);
|
|
2609
|
+
return contents;
|
|
2610
|
+
};
|
|
2611
|
+
const de_RemoveFlowOutputCommandError = async (output, context) => {
|
|
2612
|
+
const parsedOutput = {
|
|
2613
|
+
...output,
|
|
2614
|
+
body: await parseErrorBody(output.body, context),
|
|
2615
|
+
};
|
|
2616
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2617
|
+
switch (errorCode) {
|
|
2618
|
+
case "BadRequestException":
|
|
2619
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2620
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2621
|
+
case "ForbiddenException":
|
|
2622
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2623
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2624
|
+
case "InternalServerErrorException":
|
|
2625
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2626
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2627
|
+
case "NotFoundException":
|
|
2628
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2629
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2630
|
+
case "ServiceUnavailableException":
|
|
2631
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2632
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2633
|
+
case "TooManyRequestsException":
|
|
2634
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2635
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2636
|
+
default:
|
|
2637
|
+
const parsedBody = parsedOutput.body;
|
|
2638
|
+
return throwDefaultError({
|
|
2639
|
+
output,
|
|
2640
|
+
parsedBody,
|
|
2641
|
+
errorCode,
|
|
2642
|
+
});
|
|
2643
|
+
}
|
|
2644
|
+
};
|
|
2645
|
+
export const de_RemoveFlowSourceCommand = async (output, context) => {
|
|
2646
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2647
|
+
return de_RemoveFlowSourceCommandError(output, context);
|
|
2648
|
+
}
|
|
2649
|
+
const contents = map({
|
|
2650
|
+
$metadata: deserializeMetadata(output),
|
|
2651
|
+
});
|
|
2652
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2653
|
+
const doc = take(data, {
|
|
2654
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
2655
|
+
SourceArn: [, __expectString, `sourceArn`],
|
|
2656
|
+
});
|
|
2657
|
+
Object.assign(contents, doc);
|
|
2658
|
+
return contents;
|
|
2659
|
+
};
|
|
2660
|
+
const de_RemoveFlowSourceCommandError = async (output, context) => {
|
|
2661
|
+
const parsedOutput = {
|
|
2662
|
+
...output,
|
|
2663
|
+
body: await parseErrorBody(output.body, context),
|
|
2664
|
+
};
|
|
2665
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2666
|
+
switch (errorCode) {
|
|
2667
|
+
case "BadRequestException":
|
|
2668
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2669
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2670
|
+
case "ForbiddenException":
|
|
2671
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2672
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2673
|
+
case "InternalServerErrorException":
|
|
2674
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2675
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2676
|
+
case "NotFoundException":
|
|
2677
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2678
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2679
|
+
case "ServiceUnavailableException":
|
|
2680
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2681
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2682
|
+
case "TooManyRequestsException":
|
|
2683
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2684
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2685
|
+
default:
|
|
2686
|
+
const parsedBody = parsedOutput.body;
|
|
2687
|
+
return throwDefaultError({
|
|
2688
|
+
output,
|
|
2689
|
+
parsedBody,
|
|
2690
|
+
errorCode,
|
|
2691
|
+
});
|
|
2692
|
+
}
|
|
2693
|
+
};
|
|
2694
|
+
export const de_RemoveFlowVpcInterfaceCommand = async (output, context) => {
|
|
2695
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2696
|
+
return de_RemoveFlowVpcInterfaceCommandError(output, context);
|
|
2697
|
+
}
|
|
2698
|
+
const contents = map({
|
|
2699
|
+
$metadata: deserializeMetadata(output),
|
|
2700
|
+
});
|
|
2701
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2702
|
+
const doc = take(data, {
|
|
2703
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
2704
|
+
NonDeletedNetworkInterfaceIds: [, _json, `nonDeletedNetworkInterfaceIds`],
|
|
2705
|
+
VpcInterfaceName: [, __expectString, `vpcInterfaceName`],
|
|
2706
|
+
});
|
|
2707
|
+
Object.assign(contents, doc);
|
|
2708
|
+
return contents;
|
|
2709
|
+
};
|
|
2710
|
+
const de_RemoveFlowVpcInterfaceCommandError = async (output, context) => {
|
|
2711
|
+
const parsedOutput = {
|
|
2712
|
+
...output,
|
|
2713
|
+
body: await parseErrorBody(output.body, context),
|
|
2714
|
+
};
|
|
2715
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2716
|
+
switch (errorCode) {
|
|
2717
|
+
case "BadRequestException":
|
|
2718
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2719
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2720
|
+
case "ForbiddenException":
|
|
2721
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2722
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2723
|
+
case "InternalServerErrorException":
|
|
2724
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2725
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2726
|
+
case "NotFoundException":
|
|
2727
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2728
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2729
|
+
case "ServiceUnavailableException":
|
|
2730
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2731
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2732
|
+
case "TooManyRequestsException":
|
|
2733
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2734
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2735
|
+
default:
|
|
2736
|
+
const parsedBody = parsedOutput.body;
|
|
2737
|
+
return throwDefaultError({
|
|
2738
|
+
output,
|
|
2739
|
+
parsedBody,
|
|
2740
|
+
errorCode,
|
|
2741
|
+
});
|
|
2742
|
+
}
|
|
2743
|
+
};
|
|
2744
|
+
export const de_RevokeFlowEntitlementCommand = async (output, context) => {
|
|
2745
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2746
|
+
return de_RevokeFlowEntitlementCommandError(output, context);
|
|
2747
|
+
}
|
|
2748
|
+
const contents = map({
|
|
2749
|
+
$metadata: deserializeMetadata(output),
|
|
2750
|
+
});
|
|
2751
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2752
|
+
const doc = take(data, {
|
|
2753
|
+
EntitlementArn: [, __expectString, `entitlementArn`],
|
|
2754
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
2755
|
+
});
|
|
2756
|
+
Object.assign(contents, doc);
|
|
2757
|
+
return contents;
|
|
2758
|
+
};
|
|
2759
|
+
const de_RevokeFlowEntitlementCommandError = async (output, context) => {
|
|
2760
|
+
const parsedOutput = {
|
|
2761
|
+
...output,
|
|
2762
|
+
body: await parseErrorBody(output.body, context),
|
|
2763
|
+
};
|
|
2764
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2765
|
+
switch (errorCode) {
|
|
2766
|
+
case "BadRequestException":
|
|
2767
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2768
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2769
|
+
case "ForbiddenException":
|
|
2770
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2771
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2772
|
+
case "InternalServerErrorException":
|
|
2773
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2774
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2775
|
+
case "NotFoundException":
|
|
2776
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2777
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2778
|
+
case "ServiceUnavailableException":
|
|
2779
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2780
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2781
|
+
case "TooManyRequestsException":
|
|
2782
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2783
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2784
|
+
default:
|
|
2785
|
+
const parsedBody = parsedOutput.body;
|
|
2786
|
+
return throwDefaultError({
|
|
2787
|
+
output,
|
|
2788
|
+
parsedBody,
|
|
2789
|
+
errorCode,
|
|
2790
|
+
});
|
|
2791
|
+
}
|
|
2792
|
+
};
|
|
2793
|
+
export const de_StartFlowCommand = async (output, context) => {
|
|
2794
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2795
|
+
return de_StartFlowCommandError(output, context);
|
|
2796
|
+
}
|
|
2797
|
+
const contents = map({
|
|
2798
|
+
$metadata: deserializeMetadata(output),
|
|
2799
|
+
});
|
|
2800
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2801
|
+
const doc = take(data, {
|
|
2802
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
2803
|
+
Status: [, __expectString, `status`],
|
|
2804
|
+
});
|
|
2805
|
+
Object.assign(contents, doc);
|
|
2806
|
+
return contents;
|
|
2807
|
+
};
|
|
2808
|
+
const de_StartFlowCommandError = async (output, context) => {
|
|
2809
|
+
const parsedOutput = {
|
|
2810
|
+
...output,
|
|
2811
|
+
body: await parseErrorBody(output.body, context),
|
|
2812
|
+
};
|
|
2813
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2814
|
+
switch (errorCode) {
|
|
2815
|
+
case "BadRequestException":
|
|
2816
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2817
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2818
|
+
case "ForbiddenException":
|
|
2819
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2820
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2821
|
+
case "InternalServerErrorException":
|
|
2822
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2823
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2824
|
+
case "NotFoundException":
|
|
2825
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2826
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2827
|
+
case "ServiceUnavailableException":
|
|
2828
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2829
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2830
|
+
case "TooManyRequestsException":
|
|
2831
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2832
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2833
|
+
default:
|
|
2834
|
+
const parsedBody = parsedOutput.body;
|
|
2835
|
+
return throwDefaultError({
|
|
2836
|
+
output,
|
|
2837
|
+
parsedBody,
|
|
2838
|
+
errorCode,
|
|
2839
|
+
});
|
|
2840
|
+
}
|
|
2841
|
+
};
|
|
2842
|
+
export const de_StopFlowCommand = async (output, context) => {
|
|
2843
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2844
|
+
return de_StopFlowCommandError(output, context);
|
|
2845
|
+
}
|
|
2846
|
+
const contents = map({
|
|
2847
|
+
$metadata: deserializeMetadata(output),
|
|
2848
|
+
});
|
|
2849
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2850
|
+
const doc = take(data, {
|
|
2851
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
2852
|
+
Status: [, __expectString, `status`],
|
|
2853
|
+
});
|
|
2854
|
+
Object.assign(contents, doc);
|
|
2855
|
+
return contents;
|
|
2856
|
+
};
|
|
2857
|
+
const de_StopFlowCommandError = async (output, context) => {
|
|
2858
|
+
const parsedOutput = {
|
|
2859
|
+
...output,
|
|
2860
|
+
body: await parseErrorBody(output.body, context),
|
|
2861
|
+
};
|
|
2862
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2863
|
+
switch (errorCode) {
|
|
2864
|
+
case "BadRequestException":
|
|
2865
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2866
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2867
|
+
case "ForbiddenException":
|
|
2868
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2869
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2870
|
+
case "InternalServerErrorException":
|
|
2871
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2872
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2873
|
+
case "NotFoundException":
|
|
2874
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2875
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2876
|
+
case "ServiceUnavailableException":
|
|
2877
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2878
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2879
|
+
case "TooManyRequestsException":
|
|
2880
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2881
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2882
|
+
default:
|
|
2883
|
+
const parsedBody = parsedOutput.body;
|
|
2884
|
+
return throwDefaultError({
|
|
2885
|
+
output,
|
|
2886
|
+
parsedBody,
|
|
2887
|
+
errorCode,
|
|
2888
|
+
});
|
|
2889
|
+
}
|
|
2890
|
+
};
|
|
2891
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2892
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2893
|
+
return de_TagResourceCommandError(output, context);
|
|
2894
|
+
}
|
|
2895
|
+
const contents = map({
|
|
2896
|
+
$metadata: deserializeMetadata(output),
|
|
2897
|
+
});
|
|
2898
|
+
await collectBody(output.body, context);
|
|
2899
|
+
return contents;
|
|
2900
|
+
};
|
|
2901
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2902
|
+
const parsedOutput = {
|
|
2903
|
+
...output,
|
|
2904
|
+
body: await parseErrorBody(output.body, context),
|
|
2905
|
+
};
|
|
2906
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2907
|
+
switch (errorCode) {
|
|
2908
|
+
case "BadRequestException":
|
|
2909
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2910
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2911
|
+
case "InternalServerErrorException":
|
|
2912
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2913
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2914
|
+
case "NotFoundException":
|
|
2915
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2916
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2917
|
+
default:
|
|
2918
|
+
const parsedBody = parsedOutput.body;
|
|
2919
|
+
return throwDefaultError({
|
|
2920
|
+
output,
|
|
2921
|
+
parsedBody,
|
|
2922
|
+
errorCode,
|
|
2923
|
+
});
|
|
2924
|
+
}
|
|
2925
|
+
};
|
|
2926
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
2927
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2928
|
+
return de_UntagResourceCommandError(output, context);
|
|
2929
|
+
}
|
|
2930
|
+
const contents = map({
|
|
2931
|
+
$metadata: deserializeMetadata(output),
|
|
2932
|
+
});
|
|
2933
|
+
await collectBody(output.body, context);
|
|
2934
|
+
return contents;
|
|
2935
|
+
};
|
|
2936
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2937
|
+
const parsedOutput = {
|
|
2938
|
+
...output,
|
|
2939
|
+
body: await parseErrorBody(output.body, context),
|
|
2940
|
+
};
|
|
2941
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2942
|
+
switch (errorCode) {
|
|
2943
|
+
case "BadRequestException":
|
|
2944
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2945
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2946
|
+
case "InternalServerErrorException":
|
|
2947
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2948
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2949
|
+
case "NotFoundException":
|
|
2950
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2951
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2952
|
+
default:
|
|
2953
|
+
const parsedBody = parsedOutput.body;
|
|
2954
|
+
return throwDefaultError({
|
|
2955
|
+
output,
|
|
2956
|
+
parsedBody,
|
|
2957
|
+
errorCode,
|
|
2958
|
+
});
|
|
2959
|
+
}
|
|
2960
|
+
};
|
|
2961
|
+
export const de_UpdateBridgeCommand = async (output, context) => {
|
|
2962
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2963
|
+
return de_UpdateBridgeCommandError(output, context);
|
|
2964
|
+
}
|
|
2965
|
+
const contents = map({
|
|
2966
|
+
$metadata: deserializeMetadata(output),
|
|
2967
|
+
});
|
|
2968
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2969
|
+
const doc = take(data, {
|
|
2970
|
+
Bridge: [, (_) => de_Bridge(_, context), `bridge`],
|
|
2971
|
+
});
|
|
2972
|
+
Object.assign(contents, doc);
|
|
2973
|
+
return contents;
|
|
2974
|
+
};
|
|
2975
|
+
const de_UpdateBridgeCommandError = async (output, context) => {
|
|
2976
|
+
const parsedOutput = {
|
|
2977
|
+
...output,
|
|
2978
|
+
body: await parseErrorBody(output.body, context),
|
|
2979
|
+
};
|
|
2980
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2981
|
+
switch (errorCode) {
|
|
2982
|
+
case "BadRequestException":
|
|
2983
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2984
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2985
|
+
case "ConflictException":
|
|
2986
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2987
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2988
|
+
case "ForbiddenException":
|
|
2989
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2990
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2991
|
+
case "InternalServerErrorException":
|
|
2992
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2993
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2994
|
+
case "NotFoundException":
|
|
2995
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2996
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2997
|
+
case "ServiceUnavailableException":
|
|
2998
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2999
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3000
|
+
case "TooManyRequestsException":
|
|
3001
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3002
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3003
|
+
default:
|
|
3004
|
+
const parsedBody = parsedOutput.body;
|
|
3005
|
+
return throwDefaultError({
|
|
3006
|
+
output,
|
|
3007
|
+
parsedBody,
|
|
3008
|
+
errorCode,
|
|
3009
|
+
});
|
|
3010
|
+
}
|
|
3011
|
+
};
|
|
3012
|
+
export const de_UpdateBridgeOutputCommand = async (output, context) => {
|
|
3013
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3014
|
+
return de_UpdateBridgeOutputCommandError(output, context);
|
|
3015
|
+
}
|
|
3016
|
+
const contents = map({
|
|
3017
|
+
$metadata: deserializeMetadata(output),
|
|
3018
|
+
});
|
|
3019
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3020
|
+
const doc = take(data, {
|
|
3021
|
+
BridgeArn: [, __expectString, `bridgeArn`],
|
|
3022
|
+
Output: [, (_) => de_BridgeOutput(_, context), `output`],
|
|
3023
|
+
});
|
|
3024
|
+
Object.assign(contents, doc);
|
|
3025
|
+
return contents;
|
|
3026
|
+
};
|
|
3027
|
+
const de_UpdateBridgeOutputCommandError = async (output, context) => {
|
|
3028
|
+
const parsedOutput = {
|
|
3029
|
+
...output,
|
|
3030
|
+
body: await parseErrorBody(output.body, context),
|
|
3031
|
+
};
|
|
3032
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3033
|
+
switch (errorCode) {
|
|
3034
|
+
case "BadRequestException":
|
|
3035
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3036
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3037
|
+
case "ConflictException":
|
|
3038
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3039
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3040
|
+
case "ForbiddenException":
|
|
3041
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3042
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3043
|
+
case "InternalServerErrorException":
|
|
3044
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3045
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3046
|
+
case "NotFoundException":
|
|
3047
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3048
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3049
|
+
case "ServiceUnavailableException":
|
|
3050
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3051
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3052
|
+
case "TooManyRequestsException":
|
|
3053
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3054
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3055
|
+
default:
|
|
3056
|
+
const parsedBody = parsedOutput.body;
|
|
3057
|
+
return throwDefaultError({
|
|
3058
|
+
output,
|
|
3059
|
+
parsedBody,
|
|
3060
|
+
errorCode,
|
|
3061
|
+
});
|
|
3062
|
+
}
|
|
3063
|
+
};
|
|
3064
|
+
export const de_UpdateBridgeSourceCommand = async (output, context) => {
|
|
3065
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3066
|
+
return de_UpdateBridgeSourceCommandError(output, context);
|
|
3067
|
+
}
|
|
3068
|
+
const contents = map({
|
|
3069
|
+
$metadata: deserializeMetadata(output),
|
|
3070
|
+
});
|
|
3071
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3072
|
+
const doc = take(data, {
|
|
3073
|
+
BridgeArn: [, __expectString, `bridgeArn`],
|
|
3074
|
+
Source: [, (_) => de_BridgeSource(_, context), `source`],
|
|
3075
|
+
});
|
|
3076
|
+
Object.assign(contents, doc);
|
|
3077
|
+
return contents;
|
|
3078
|
+
};
|
|
3079
|
+
const de_UpdateBridgeSourceCommandError = async (output, context) => {
|
|
3080
|
+
const parsedOutput = {
|
|
3081
|
+
...output,
|
|
3082
|
+
body: await parseErrorBody(output.body, context),
|
|
3083
|
+
};
|
|
3084
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3085
|
+
switch (errorCode) {
|
|
3086
|
+
case "BadRequestException":
|
|
3087
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3088
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3089
|
+
case "ConflictException":
|
|
3090
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3091
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3092
|
+
case "ForbiddenException":
|
|
3093
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3094
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3095
|
+
case "InternalServerErrorException":
|
|
3096
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3097
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3098
|
+
case "NotFoundException":
|
|
3099
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3100
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3101
|
+
case "ServiceUnavailableException":
|
|
3102
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3103
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3104
|
+
case "TooManyRequestsException":
|
|
3105
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3106
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3107
|
+
default:
|
|
3108
|
+
const parsedBody = parsedOutput.body;
|
|
3109
|
+
return throwDefaultError({
|
|
3110
|
+
output,
|
|
3111
|
+
parsedBody,
|
|
3112
|
+
errorCode,
|
|
3113
|
+
});
|
|
3114
|
+
}
|
|
3115
|
+
};
|
|
3116
|
+
export const de_UpdateBridgeStateCommand = async (output, context) => {
|
|
3117
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3118
|
+
return de_UpdateBridgeStateCommandError(output, context);
|
|
3119
|
+
}
|
|
3120
|
+
const contents = map({
|
|
3121
|
+
$metadata: deserializeMetadata(output),
|
|
3122
|
+
});
|
|
3123
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3124
|
+
const doc = take(data, {
|
|
3125
|
+
BridgeArn: [, __expectString, `bridgeArn`],
|
|
3126
|
+
DesiredState: [, __expectString, `desiredState`],
|
|
3127
|
+
});
|
|
3128
|
+
Object.assign(contents, doc);
|
|
3129
|
+
return contents;
|
|
3130
|
+
};
|
|
3131
|
+
const de_UpdateBridgeStateCommandError = async (output, context) => {
|
|
3132
|
+
const parsedOutput = {
|
|
3133
|
+
...output,
|
|
3134
|
+
body: await parseErrorBody(output.body, context),
|
|
3135
|
+
};
|
|
3136
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3137
|
+
switch (errorCode) {
|
|
3138
|
+
case "BadRequestException":
|
|
3139
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3140
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3141
|
+
case "ConflictException":
|
|
3142
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3143
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3144
|
+
case "ForbiddenException":
|
|
3145
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3146
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3147
|
+
case "InternalServerErrorException":
|
|
3148
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3149
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3150
|
+
case "NotFoundException":
|
|
3151
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3152
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3153
|
+
case "ServiceUnavailableException":
|
|
3154
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3155
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3156
|
+
case "TooManyRequestsException":
|
|
3157
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3158
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3159
|
+
default:
|
|
3160
|
+
const parsedBody = parsedOutput.body;
|
|
3161
|
+
return throwDefaultError({
|
|
3162
|
+
output,
|
|
3163
|
+
parsedBody,
|
|
3164
|
+
errorCode,
|
|
3165
|
+
});
|
|
3166
|
+
}
|
|
3167
|
+
};
|
|
3168
|
+
export const de_UpdateFlowCommand = async (output, context) => {
|
|
3169
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3170
|
+
return de_UpdateFlowCommandError(output, context);
|
|
3171
|
+
}
|
|
3172
|
+
const contents = map({
|
|
3173
|
+
$metadata: deserializeMetadata(output),
|
|
3174
|
+
});
|
|
3175
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3176
|
+
const doc = take(data, {
|
|
3177
|
+
Flow: [, (_) => de_Flow(_, context), `flow`],
|
|
3178
|
+
});
|
|
3179
|
+
Object.assign(contents, doc);
|
|
3180
|
+
return contents;
|
|
3181
|
+
};
|
|
3182
|
+
const de_UpdateFlowCommandError = async (output, context) => {
|
|
3183
|
+
const parsedOutput = {
|
|
3184
|
+
...output,
|
|
3185
|
+
body: await parseErrorBody(output.body, context),
|
|
3186
|
+
};
|
|
3187
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3188
|
+
switch (errorCode) {
|
|
3189
|
+
case "BadRequestException":
|
|
3190
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3191
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3192
|
+
case "ForbiddenException":
|
|
3193
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3194
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3195
|
+
case "InternalServerErrorException":
|
|
3196
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3197
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3198
|
+
case "NotFoundException":
|
|
3199
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3200
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3201
|
+
case "ServiceUnavailableException":
|
|
3202
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3203
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3204
|
+
case "TooManyRequestsException":
|
|
3205
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3206
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3207
|
+
default:
|
|
3208
|
+
const parsedBody = parsedOutput.body;
|
|
3209
|
+
return throwDefaultError({
|
|
3210
|
+
output,
|
|
3211
|
+
parsedBody,
|
|
3212
|
+
errorCode,
|
|
3213
|
+
});
|
|
3214
|
+
}
|
|
3215
|
+
};
|
|
3216
|
+
export const de_UpdateFlowEntitlementCommand = async (output, context) => {
|
|
3217
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3218
|
+
return de_UpdateFlowEntitlementCommandError(output, context);
|
|
3219
|
+
}
|
|
3220
|
+
const contents = map({
|
|
3221
|
+
$metadata: deserializeMetadata(output),
|
|
3222
|
+
});
|
|
3223
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3224
|
+
const doc = take(data, {
|
|
3225
|
+
Entitlement: [, (_) => de_Entitlement(_, context), `entitlement`],
|
|
3226
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
3227
|
+
});
|
|
3228
|
+
Object.assign(contents, doc);
|
|
3229
|
+
return contents;
|
|
3230
|
+
};
|
|
3231
|
+
const de_UpdateFlowEntitlementCommandError = async (output, context) => {
|
|
3232
|
+
const parsedOutput = {
|
|
3233
|
+
...output,
|
|
3234
|
+
body: await parseErrorBody(output.body, context),
|
|
3235
|
+
};
|
|
3236
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3237
|
+
switch (errorCode) {
|
|
3238
|
+
case "BadRequestException":
|
|
3239
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3240
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3241
|
+
case "ForbiddenException":
|
|
3242
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3243
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3244
|
+
case "InternalServerErrorException":
|
|
3245
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3246
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3247
|
+
case "NotFoundException":
|
|
3248
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3249
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3250
|
+
case "ServiceUnavailableException":
|
|
3251
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3252
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3253
|
+
case "TooManyRequestsException":
|
|
3254
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3255
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3256
|
+
default:
|
|
3257
|
+
const parsedBody = parsedOutput.body;
|
|
3258
|
+
return throwDefaultError({
|
|
3259
|
+
output,
|
|
3260
|
+
parsedBody,
|
|
3261
|
+
errorCode,
|
|
3262
|
+
});
|
|
3263
|
+
}
|
|
3264
|
+
};
|
|
3265
|
+
export const de_UpdateFlowMediaStreamCommand = async (output, context) => {
|
|
3266
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3267
|
+
return de_UpdateFlowMediaStreamCommandError(output, context);
|
|
3268
|
+
}
|
|
3269
|
+
const contents = map({
|
|
3270
|
+
$metadata: deserializeMetadata(output),
|
|
3271
|
+
});
|
|
3272
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3273
|
+
const doc = take(data, {
|
|
3274
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
3275
|
+
MediaStream: [, (_) => de_MediaStream(_, context), `mediaStream`],
|
|
3276
|
+
});
|
|
3277
|
+
Object.assign(contents, doc);
|
|
3278
|
+
return contents;
|
|
3279
|
+
};
|
|
3280
|
+
const de_UpdateFlowMediaStreamCommandError = async (output, context) => {
|
|
3281
|
+
const parsedOutput = {
|
|
3282
|
+
...output,
|
|
3283
|
+
body: await parseErrorBody(output.body, context),
|
|
3284
|
+
};
|
|
3285
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3286
|
+
switch (errorCode) {
|
|
3287
|
+
case "BadRequestException":
|
|
3288
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3289
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3290
|
+
case "ForbiddenException":
|
|
3291
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3292
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3293
|
+
case "InternalServerErrorException":
|
|
3294
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3295
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3296
|
+
case "NotFoundException":
|
|
3297
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3298
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3299
|
+
case "ServiceUnavailableException":
|
|
3300
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3301
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3302
|
+
case "TooManyRequestsException":
|
|
3303
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3304
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3305
|
+
default:
|
|
3306
|
+
const parsedBody = parsedOutput.body;
|
|
3307
|
+
return throwDefaultError({
|
|
3308
|
+
output,
|
|
3309
|
+
parsedBody,
|
|
3310
|
+
errorCode,
|
|
3311
|
+
});
|
|
3312
|
+
}
|
|
3313
|
+
};
|
|
3314
|
+
export const de_UpdateFlowOutputCommand = async (output, context) => {
|
|
3315
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3316
|
+
return de_UpdateFlowOutputCommandError(output, context);
|
|
3317
|
+
}
|
|
3318
|
+
const contents = map({
|
|
3319
|
+
$metadata: deserializeMetadata(output),
|
|
3320
|
+
});
|
|
3321
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3322
|
+
const doc = take(data, {
|
|
3323
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
3324
|
+
Output: [, (_) => de_Output(_, context), `output`],
|
|
3325
|
+
});
|
|
3326
|
+
Object.assign(contents, doc);
|
|
3327
|
+
return contents;
|
|
3328
|
+
};
|
|
3329
|
+
const de_UpdateFlowOutputCommandError = async (output, context) => {
|
|
3330
|
+
const parsedOutput = {
|
|
3331
|
+
...output,
|
|
3332
|
+
body: await parseErrorBody(output.body, context),
|
|
3333
|
+
};
|
|
3334
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3335
|
+
switch (errorCode) {
|
|
3336
|
+
case "BadRequestException":
|
|
3337
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3338
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3339
|
+
case "ForbiddenException":
|
|
3340
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3341
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3342
|
+
case "InternalServerErrorException":
|
|
3343
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3344
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3345
|
+
case "NotFoundException":
|
|
3346
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3347
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3348
|
+
case "ServiceUnavailableException":
|
|
3349
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3350
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3351
|
+
case "TooManyRequestsException":
|
|
3352
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3353
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3354
|
+
default:
|
|
3355
|
+
const parsedBody = parsedOutput.body;
|
|
3356
|
+
return throwDefaultError({
|
|
3357
|
+
output,
|
|
3358
|
+
parsedBody,
|
|
3359
|
+
errorCode,
|
|
3360
|
+
});
|
|
3361
|
+
}
|
|
3362
|
+
};
|
|
3363
|
+
export const de_UpdateFlowSourceCommand = async (output, context) => {
|
|
3364
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3365
|
+
return de_UpdateFlowSourceCommandError(output, context);
|
|
3366
|
+
}
|
|
3367
|
+
const contents = map({
|
|
3368
|
+
$metadata: deserializeMetadata(output),
|
|
3369
|
+
});
|
|
3370
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3371
|
+
const doc = take(data, {
|
|
3372
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
3373
|
+
Source: [, (_) => de_Source(_, context), `source`],
|
|
3374
|
+
});
|
|
3375
|
+
Object.assign(contents, doc);
|
|
3376
|
+
return contents;
|
|
3377
|
+
};
|
|
3378
|
+
const de_UpdateFlowSourceCommandError = async (output, context) => {
|
|
3379
|
+
const parsedOutput = {
|
|
3380
|
+
...output,
|
|
3381
|
+
body: await parseErrorBody(output.body, context),
|
|
3382
|
+
};
|
|
3383
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3384
|
+
switch (errorCode) {
|
|
3385
|
+
case "BadRequestException":
|
|
3386
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3387
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3388
|
+
case "ForbiddenException":
|
|
3389
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3390
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3391
|
+
case "InternalServerErrorException":
|
|
3392
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3393
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3394
|
+
case "NotFoundException":
|
|
3395
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3396
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3397
|
+
case "ServiceUnavailableException":
|
|
3398
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3399
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3400
|
+
case "TooManyRequestsException":
|
|
3401
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3402
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3403
|
+
default:
|
|
3404
|
+
const parsedBody = parsedOutput.body;
|
|
3405
|
+
return throwDefaultError({
|
|
3406
|
+
output,
|
|
3407
|
+
parsedBody,
|
|
3408
|
+
errorCode,
|
|
3409
|
+
});
|
|
3410
|
+
}
|
|
3411
|
+
};
|
|
3412
|
+
export const de_UpdateGatewayInstanceCommand = async (output, context) => {
|
|
3413
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3414
|
+
return de_UpdateGatewayInstanceCommandError(output, context);
|
|
3415
|
+
}
|
|
3416
|
+
const contents = map({
|
|
3417
|
+
$metadata: deserializeMetadata(output),
|
|
3418
|
+
});
|
|
3419
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3420
|
+
const doc = take(data, {
|
|
3421
|
+
BridgePlacement: [, __expectString, `bridgePlacement`],
|
|
3422
|
+
GatewayInstanceArn: [, __expectString, `gatewayInstanceArn`],
|
|
3423
|
+
});
|
|
3424
|
+
Object.assign(contents, doc);
|
|
3425
|
+
return contents;
|
|
3426
|
+
};
|
|
3427
|
+
const de_UpdateGatewayInstanceCommandError = async (output, context) => {
|
|
3428
|
+
const parsedOutput = {
|
|
3429
|
+
...output,
|
|
3430
|
+
body: await parseErrorBody(output.body, context),
|
|
3431
|
+
};
|
|
3432
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3433
|
+
switch (errorCode) {
|
|
3434
|
+
case "BadRequestException":
|
|
3435
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3436
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3437
|
+
case "ConflictException":
|
|
3438
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3439
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3440
|
+
case "ForbiddenException":
|
|
3441
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3442
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3443
|
+
case "InternalServerErrorException":
|
|
3444
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3445
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3446
|
+
case "NotFoundException":
|
|
3447
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3448
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3449
|
+
case "ServiceUnavailableException":
|
|
3450
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3451
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3452
|
+
case "TooManyRequestsException":
|
|
3453
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3454
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3455
|
+
default:
|
|
3456
|
+
const parsedBody = parsedOutput.body;
|
|
3457
|
+
return throwDefaultError({
|
|
3458
|
+
output,
|
|
3459
|
+
parsedBody,
|
|
3460
|
+
errorCode,
|
|
3461
|
+
});
|
|
3462
|
+
}
|
|
3463
|
+
};
|
|
3464
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
3465
|
+
const de_AddFlowOutputs420ExceptionRes = async (parsedOutput, context) => {
|
|
3466
|
+
const contents = map({});
|
|
3467
|
+
const data = parsedOutput.body;
|
|
3468
|
+
const doc = take(data, {
|
|
3469
|
+
Message: [, __expectString, `message`],
|
|
3470
|
+
});
|
|
3471
|
+
Object.assign(contents, doc);
|
|
2107
3472
|
const exception = new AddFlowOutputs420Exception({
|
|
2108
3473
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2109
3474
|
...contents,
|
|
2110
3475
|
});
|
|
2111
3476
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2112
3477
|
};
|
|
2113
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
3478
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
3479
|
+
const contents = map({});
|
|
3480
|
+
const data = parsedOutput.body;
|
|
3481
|
+
const doc = take(data, {
|
|
3482
|
+
Message: [, __expectString, `message`],
|
|
3483
|
+
});
|
|
3484
|
+
Object.assign(contents, doc);
|
|
3485
|
+
const exception = new BadRequestException({
|
|
3486
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3487
|
+
...contents,
|
|
3488
|
+
});
|
|
3489
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
3490
|
+
};
|
|
3491
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3492
|
+
const contents = map({});
|
|
3493
|
+
const data = parsedOutput.body;
|
|
3494
|
+
const doc = take(data, {
|
|
3495
|
+
Message: [, __expectString, `message`],
|
|
3496
|
+
});
|
|
3497
|
+
Object.assign(contents, doc);
|
|
3498
|
+
const exception = new ConflictException({
|
|
3499
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3500
|
+
...contents,
|
|
3501
|
+
});
|
|
3502
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
3503
|
+
};
|
|
3504
|
+
const de_CreateBridge420ExceptionRes = async (parsedOutput, context) => {
|
|
2114
3505
|
const contents = map({});
|
|
2115
3506
|
const data = parsedOutput.body;
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
}
|
|
2119
|
-
|
|
3507
|
+
const doc = take(data, {
|
|
3508
|
+
Message: [, __expectString, `message`],
|
|
3509
|
+
});
|
|
3510
|
+
Object.assign(contents, doc);
|
|
3511
|
+
const exception = new CreateBridge420Exception({
|
|
2120
3512
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2121
3513
|
...contents,
|
|
2122
3514
|
});
|
|
@@ -2125,21 +3517,36 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
2125
3517
|
const de_CreateFlow420ExceptionRes = async (parsedOutput, context) => {
|
|
2126
3518
|
const contents = map({});
|
|
2127
3519
|
const data = parsedOutput.body;
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
}
|
|
3520
|
+
const doc = take(data, {
|
|
3521
|
+
Message: [, __expectString, `message`],
|
|
3522
|
+
});
|
|
3523
|
+
Object.assign(contents, doc);
|
|
2131
3524
|
const exception = new CreateFlow420Exception({
|
|
2132
3525
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2133
3526
|
...contents,
|
|
2134
3527
|
});
|
|
2135
3528
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2136
3529
|
};
|
|
3530
|
+
const de_CreateGateway420ExceptionRes = async (parsedOutput, context) => {
|
|
3531
|
+
const contents = map({});
|
|
3532
|
+
const data = parsedOutput.body;
|
|
3533
|
+
const doc = take(data, {
|
|
3534
|
+
Message: [, __expectString, `message`],
|
|
3535
|
+
});
|
|
3536
|
+
Object.assign(contents, doc);
|
|
3537
|
+
const exception = new CreateGateway420Exception({
|
|
3538
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3539
|
+
...contents,
|
|
3540
|
+
});
|
|
3541
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
3542
|
+
};
|
|
2137
3543
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2138
3544
|
const contents = map({});
|
|
2139
3545
|
const data = parsedOutput.body;
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
}
|
|
3546
|
+
const doc = take(data, {
|
|
3547
|
+
Message: [, __expectString, `message`],
|
|
3548
|
+
});
|
|
3549
|
+
Object.assign(contents, doc);
|
|
2143
3550
|
const exception = new ForbiddenException({
|
|
2144
3551
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2145
3552
|
...contents,
|
|
@@ -2149,9 +3556,10 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
2149
3556
|
const de_GrantFlowEntitlements420ExceptionRes = async (parsedOutput, context) => {
|
|
2150
3557
|
const contents = map({});
|
|
2151
3558
|
const data = parsedOutput.body;
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
}
|
|
3559
|
+
const doc = take(data, {
|
|
3560
|
+
Message: [, __expectString, `message`],
|
|
3561
|
+
});
|
|
3562
|
+
Object.assign(contents, doc);
|
|
2155
3563
|
const exception = new GrantFlowEntitlements420Exception({
|
|
2156
3564
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2157
3565
|
...contents,
|
|
@@ -2161,9 +3569,10 @@ const de_GrantFlowEntitlements420ExceptionRes = async (parsedOutput, context) =>
|
|
|
2161
3569
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
2162
3570
|
const contents = map({});
|
|
2163
3571
|
const data = parsedOutput.body;
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
}
|
|
3572
|
+
const doc = take(data, {
|
|
3573
|
+
Message: [, __expectString, `message`],
|
|
3574
|
+
});
|
|
3575
|
+
Object.assign(contents, doc);
|
|
2167
3576
|
const exception = new InternalServerErrorException({
|
|
2168
3577
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2169
3578
|
...contents,
|
|
@@ -2173,9 +3582,10 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
2173
3582
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2174
3583
|
const contents = map({});
|
|
2175
3584
|
const data = parsedOutput.body;
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
}
|
|
3585
|
+
const doc = take(data, {
|
|
3586
|
+
Message: [, __expectString, `message`],
|
|
3587
|
+
});
|
|
3588
|
+
Object.assign(contents, doc);
|
|
2179
3589
|
const exception = new NotFoundException({
|
|
2180
3590
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2181
3591
|
...contents,
|
|
@@ -2185,9 +3595,10 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2185
3595
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2186
3596
|
const contents = map({});
|
|
2187
3597
|
const data = parsedOutput.body;
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
}
|
|
3598
|
+
const doc = take(data, {
|
|
3599
|
+
Message: [, __expectString, `message`],
|
|
3600
|
+
});
|
|
3601
|
+
Object.assign(contents, doc);
|
|
2191
3602
|
const exception = new ServiceUnavailableException({
|
|
2192
3603
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2193
3604
|
...contents,
|
|
@@ -2197,20 +3608,28 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
2197
3608
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
2198
3609
|
const contents = map({});
|
|
2199
3610
|
const data = parsedOutput.body;
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
}
|
|
3611
|
+
const doc = take(data, {
|
|
3612
|
+
Message: [, __expectString, `message`],
|
|
3613
|
+
});
|
|
3614
|
+
Object.assign(contents, doc);
|
|
2203
3615
|
const exception = new TooManyRequestsException({
|
|
2204
3616
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2205
3617
|
...contents,
|
|
2206
3618
|
});
|
|
2207
3619
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2208
3620
|
};
|
|
2209
|
-
const
|
|
3621
|
+
const se___listOfAddBridgeOutputRequest = (input, context) => {
|
|
3622
|
+
return input
|
|
3623
|
+
.filter((e) => e != null)
|
|
3624
|
+
.map((entry) => {
|
|
3625
|
+
return se_AddBridgeOutputRequest(entry, context);
|
|
3626
|
+
});
|
|
3627
|
+
};
|
|
3628
|
+
const se___listOfAddBridgeSourceRequest = (input, context) => {
|
|
2210
3629
|
return input
|
|
2211
3630
|
.filter((e) => e != null)
|
|
2212
3631
|
.map((entry) => {
|
|
2213
|
-
return entry;
|
|
3632
|
+
return se_AddBridgeSourceRequest(entry, context);
|
|
2214
3633
|
});
|
|
2215
3634
|
};
|
|
2216
3635
|
const se___listOfAddMediaStreamRequest = (input, context) => {
|
|
@@ -2234,6 +3653,13 @@ const se___listOfDestinationConfigurationRequest = (input, context) => {
|
|
|
2234
3653
|
return se_DestinationConfigurationRequest(entry, context);
|
|
2235
3654
|
});
|
|
2236
3655
|
};
|
|
3656
|
+
const se___listOfGatewayNetwork = (input, context) => {
|
|
3657
|
+
return input
|
|
3658
|
+
.filter((e) => e != null)
|
|
3659
|
+
.map((entry) => {
|
|
3660
|
+
return se_GatewayNetwork(entry, context);
|
|
3661
|
+
});
|
|
3662
|
+
};
|
|
2237
3663
|
const se___listOfGrantEntitlementRequest = (input, context) => {
|
|
2238
3664
|
return input
|
|
2239
3665
|
.filter((e) => e != null)
|
|
@@ -2276,233 +3702,324 @@ const se___listOfVpcInterfaceRequest = (input, context) => {
|
|
|
2276
3702
|
return se_VpcInterfaceRequest(entry, context);
|
|
2277
3703
|
});
|
|
2278
3704
|
};
|
|
2279
|
-
const
|
|
2280
|
-
return
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
3705
|
+
const se_AddBridgeFlowSourceRequest = (input, context) => {
|
|
3706
|
+
return take(input, {
|
|
3707
|
+
flowArn: [, , `FlowArn`],
|
|
3708
|
+
flowVpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `FlowVpcInterfaceAttachment`],
|
|
3709
|
+
name: [, , `Name`],
|
|
3710
|
+
});
|
|
3711
|
+
};
|
|
3712
|
+
const se_AddBridgeNetworkOutputRequest = (input, context) => {
|
|
3713
|
+
return take(input, {
|
|
3714
|
+
ipAddress: [, , `IpAddress`],
|
|
3715
|
+
name: [, , `Name`],
|
|
3716
|
+
networkName: [, , `NetworkName`],
|
|
3717
|
+
port: [, , `Port`],
|
|
3718
|
+
protocol: [, , `Protocol`],
|
|
3719
|
+
ttl: [, , `Ttl`],
|
|
3720
|
+
});
|
|
3721
|
+
};
|
|
3722
|
+
const se_AddBridgeNetworkSourceRequest = (input, context) => {
|
|
3723
|
+
return take(input, {
|
|
3724
|
+
multicastIp: [, , `MulticastIp`],
|
|
3725
|
+
name: [, , `Name`],
|
|
3726
|
+
networkName: [, , `NetworkName`],
|
|
3727
|
+
port: [, , `Port`],
|
|
3728
|
+
protocol: [, , `Protocol`],
|
|
3729
|
+
});
|
|
3730
|
+
};
|
|
3731
|
+
const se_AddBridgeOutputRequest = (input, context) => {
|
|
3732
|
+
return take(input, {
|
|
3733
|
+
networkOutput: [, (_) => se_AddBridgeNetworkOutputRequest(_, context), `NetworkOutput`],
|
|
3734
|
+
});
|
|
3735
|
+
};
|
|
3736
|
+
const se_AddBridgeSourceRequest = (input, context) => {
|
|
3737
|
+
return take(input, {
|
|
3738
|
+
flowSource: [, (_) => se_AddBridgeFlowSourceRequest(_, context), `FlowSource`],
|
|
3739
|
+
networkSource: [, (_) => se_AddBridgeNetworkSourceRequest(_, context), `NetworkSource`],
|
|
3740
|
+
});
|
|
3741
|
+
};
|
|
3742
|
+
const se_AddEgressGatewayBridgeRequest = (input, context) => {
|
|
3743
|
+
return take(input, {
|
|
3744
|
+
maxBitrate: [, , `MaxBitrate`],
|
|
3745
|
+
});
|
|
3746
|
+
};
|
|
3747
|
+
const se_AddIngressGatewayBridgeRequest = (input, context) => {
|
|
3748
|
+
return take(input, {
|
|
3749
|
+
maxBitrate: [, , `MaxBitrate`],
|
|
3750
|
+
maxOutputs: [, , `MaxOutputs`],
|
|
3751
|
+
});
|
|
2287
3752
|
};
|
|
2288
3753
|
const se_AddMaintenance = (input, context) => {
|
|
2289
|
-
return {
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
};
|
|
3754
|
+
return take(input, {
|
|
3755
|
+
maintenanceDay: [, , `MaintenanceDay`],
|
|
3756
|
+
maintenanceStartHour: [, , `MaintenanceStartHour`],
|
|
3757
|
+
});
|
|
2293
3758
|
};
|
|
2294
3759
|
const se_AddMediaStreamRequest = (input, context) => {
|
|
2295
|
-
return {
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
};
|
|
3760
|
+
return take(input, {
|
|
3761
|
+
attributes: [, (_) => se_MediaStreamAttributesRequest(_, context), `Attributes`],
|
|
3762
|
+
clockRate: [, , `ClockRate`],
|
|
3763
|
+
description: [, , `Description`],
|
|
3764
|
+
mediaStreamId: [, , `MediaStreamId`],
|
|
3765
|
+
mediaStreamName: [, , `MediaStreamName`],
|
|
3766
|
+
mediaStreamType: [, , `MediaStreamType`],
|
|
3767
|
+
videoFormat: [, , `VideoFormat`],
|
|
3768
|
+
});
|
|
2304
3769
|
};
|
|
2305
3770
|
const se_AddOutputRequest = (input, context) => {
|
|
2306
|
-
return {
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
};
|
|
3771
|
+
return take(input, {
|
|
3772
|
+
cidrAllowList: [, _json, `CidrAllowList`],
|
|
3773
|
+
description: [, , `Description`],
|
|
3774
|
+
destination: [, , `Destination`],
|
|
3775
|
+
encryption: [, (_) => se_Encryption(_, context), `Encryption`],
|
|
3776
|
+
maxLatency: [, , `MaxLatency`],
|
|
3777
|
+
mediaStreamOutputConfigurations: [
|
|
3778
|
+
,
|
|
3779
|
+
(_) => se___listOfMediaStreamOutputConfigurationRequest(_, context),
|
|
3780
|
+
`MediaStreamOutputConfigurations`,
|
|
3781
|
+
],
|
|
3782
|
+
minLatency: [, , `MinLatency`],
|
|
3783
|
+
name: [, , `Name`],
|
|
3784
|
+
port: [, , `Port`],
|
|
3785
|
+
protocol: [, , `Protocol`],
|
|
3786
|
+
remoteId: [, , `RemoteId`],
|
|
3787
|
+
senderControlPort: [, , `SenderControlPort`],
|
|
3788
|
+
smoothingLatency: [, , `SmoothingLatency`],
|
|
3789
|
+
streamId: [, , `StreamId`],
|
|
3790
|
+
vpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `VpcInterfaceAttachment`],
|
|
3791
|
+
});
|
|
2327
3792
|
};
|
|
2328
3793
|
const se_DestinationConfigurationRequest = (input, context) => {
|
|
2329
|
-
return {
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
};
|
|
3794
|
+
return take(input, {
|
|
3795
|
+
destinationIp: [, , `DestinationIp`],
|
|
3796
|
+
destinationPort: [, , `DestinationPort`],
|
|
3797
|
+
interface: [, (_) => se_InterfaceRequest(_, context), `Interface`],
|
|
3798
|
+
});
|
|
2334
3799
|
};
|
|
2335
3800
|
const se_EncodingParametersRequest = (input, context) => {
|
|
2336
|
-
return {
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
};
|
|
3801
|
+
return take(input, {
|
|
3802
|
+
compressionFactor: [, __serializeFloat, `CompressionFactor`],
|
|
3803
|
+
encoderProfile: [, , `EncoderProfile`],
|
|
3804
|
+
});
|
|
2340
3805
|
};
|
|
2341
3806
|
const se_Encryption = (input, context) => {
|
|
2342
|
-
return {
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
...(input.Url != null && { url: input.Url }),
|
|
2354
|
-
};
|
|
3807
|
+
return take(input, {
|
|
3808
|
+
algorithm: [, , `Algorithm`],
|
|
3809
|
+
constantInitializationVector: [, , `ConstantInitializationVector`],
|
|
3810
|
+
deviceId: [, , `DeviceId`],
|
|
3811
|
+
keyType: [, , `KeyType`],
|
|
3812
|
+
region: [, , `Region`],
|
|
3813
|
+
resourceId: [, , `ResourceId`],
|
|
3814
|
+
roleArn: [, , `RoleArn`],
|
|
3815
|
+
secretArn: [, , `SecretArn`],
|
|
3816
|
+
url: [, , `Url`],
|
|
3817
|
+
});
|
|
2355
3818
|
};
|
|
2356
3819
|
const se_FailoverConfig = (input, context) => {
|
|
2357
|
-
return {
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
};
|
|
3820
|
+
return take(input, {
|
|
3821
|
+
failoverMode: [, , `FailoverMode`],
|
|
3822
|
+
recoveryWindow: [, , `RecoveryWindow`],
|
|
3823
|
+
sourcePriority: [, (_) => se_SourcePriority(_, context), `SourcePriority`],
|
|
3824
|
+
state: [, , `State`],
|
|
3825
|
+
});
|
|
2363
3826
|
};
|
|
2364
3827
|
const se_FmtpRequest = (input, context) => {
|
|
2365
|
-
return {
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
};
|
|
3828
|
+
return take(input, {
|
|
3829
|
+
channelOrder: [, , `ChannelOrder`],
|
|
3830
|
+
colorimetry: [, , `Colorimetry`],
|
|
3831
|
+
exactFramerate: [, , `ExactFramerate`],
|
|
3832
|
+
par: [, , `Par`],
|
|
3833
|
+
range: [, , `Range`],
|
|
3834
|
+
scanMode: [, , `ScanMode`],
|
|
3835
|
+
tcs: [, , `Tcs`],
|
|
3836
|
+
});
|
|
3837
|
+
};
|
|
3838
|
+
const se_GatewayNetwork = (input, context) => {
|
|
3839
|
+
return take(input, {
|
|
3840
|
+
cidrBlock: [, , `CidrBlock`],
|
|
3841
|
+
name: [, , `Name`],
|
|
3842
|
+
});
|
|
2374
3843
|
};
|
|
2375
3844
|
const se_GrantEntitlementRequest = (input, context) => {
|
|
2376
|
-
return {
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
...(input.Subscribers != null && { subscribers: se___listOf__string(input.Subscribers, context) }),
|
|
2385
|
-
};
|
|
3845
|
+
return take(input, {
|
|
3846
|
+
dataTransferSubscriberFeePercent: [, , `DataTransferSubscriberFeePercent`],
|
|
3847
|
+
description: [, , `Description`],
|
|
3848
|
+
encryption: [, (_) => se_Encryption(_, context), `Encryption`],
|
|
3849
|
+
entitlementStatus: [, , `EntitlementStatus`],
|
|
3850
|
+
name: [, , `Name`],
|
|
3851
|
+
subscribers: [, _json, `Subscribers`],
|
|
3852
|
+
});
|
|
2386
3853
|
};
|
|
2387
3854
|
const se_InputConfigurationRequest = (input, context) => {
|
|
2388
|
-
return {
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
};
|
|
3855
|
+
return take(input, {
|
|
3856
|
+
inputPort: [, , `InputPort`],
|
|
3857
|
+
interface: [, (_) => se_InterfaceRequest(_, context), `Interface`],
|
|
3858
|
+
});
|
|
2392
3859
|
};
|
|
2393
3860
|
const se_InterfaceRequest = (input, context) => {
|
|
2394
|
-
return {
|
|
2395
|
-
|
|
2396
|
-
};
|
|
3861
|
+
return take(input, {
|
|
3862
|
+
name: [, , `Name`],
|
|
3863
|
+
});
|
|
2397
3864
|
};
|
|
2398
3865
|
const se_MediaStreamAttributesRequest = (input, context) => {
|
|
2399
|
-
return {
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
};
|
|
3866
|
+
return take(input, {
|
|
3867
|
+
fmtp: [, (_) => se_FmtpRequest(_, context), `Fmtp`],
|
|
3868
|
+
lang: [, , `Lang`],
|
|
3869
|
+
});
|
|
2403
3870
|
};
|
|
2404
3871
|
const se_MediaStreamOutputConfigurationRequest = (input, context) => {
|
|
2405
|
-
return {
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
};
|
|
3872
|
+
return take(input, {
|
|
3873
|
+
destinationConfigurations: [
|
|
3874
|
+
,
|
|
3875
|
+
(_) => se___listOfDestinationConfigurationRequest(_, context),
|
|
3876
|
+
`DestinationConfigurations`,
|
|
3877
|
+
],
|
|
3878
|
+
encodingName: [, , `EncodingName`],
|
|
3879
|
+
encodingParameters: [, (_) => se_EncodingParametersRequest(_, context), `EncodingParameters`],
|
|
3880
|
+
mediaStreamName: [, , `MediaStreamName`],
|
|
3881
|
+
});
|
|
2415
3882
|
};
|
|
2416
3883
|
const se_MediaStreamSourceConfigurationRequest = (input, context) => {
|
|
2417
|
-
return {
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
3884
|
+
return take(input, {
|
|
3885
|
+
encodingName: [, , `EncodingName`],
|
|
3886
|
+
inputConfigurations: [, (_) => se___listOfInputConfigurationRequest(_, context), `InputConfigurations`],
|
|
3887
|
+
mediaStreamName: [, , `MediaStreamName`],
|
|
3888
|
+
});
|
|
3889
|
+
};
|
|
3890
|
+
const se_SetGatewayBridgeSourceRequest = (input, context) => {
|
|
3891
|
+
return take(input, {
|
|
3892
|
+
bridgeArn: [, , `BridgeArn`],
|
|
3893
|
+
vpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `VpcInterfaceAttachment`],
|
|
3894
|
+
});
|
|
2424
3895
|
};
|
|
2425
3896
|
const se_SetSourceRequest = (input, context) => {
|
|
2426
|
-
return {
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
3897
|
+
return take(input, {
|
|
3898
|
+
decryption: [, (_) => se_Encryption(_, context), `Decryption`],
|
|
3899
|
+
description: [, , `Description`],
|
|
3900
|
+
entitlementArn: [, , `EntitlementArn`],
|
|
3901
|
+
gatewayBridgeSource: [, (_) => se_SetGatewayBridgeSourceRequest(_, context), `GatewayBridgeSource`],
|
|
3902
|
+
ingestPort: [, , `IngestPort`],
|
|
3903
|
+
maxBitrate: [, , `MaxBitrate`],
|
|
3904
|
+
maxLatency: [, , `MaxLatency`],
|
|
3905
|
+
maxSyncBuffer: [, , `MaxSyncBuffer`],
|
|
3906
|
+
mediaStreamSourceConfigurations: [
|
|
3907
|
+
,
|
|
3908
|
+
(_) => se___listOfMediaStreamSourceConfigurationRequest(_, context),
|
|
3909
|
+
`MediaStreamSourceConfigurations`,
|
|
3910
|
+
],
|
|
3911
|
+
minLatency: [, , `MinLatency`],
|
|
3912
|
+
name: [, , `Name`],
|
|
3913
|
+
protocol: [, , `Protocol`],
|
|
3914
|
+
senderControlPort: [, , `SenderControlPort`],
|
|
3915
|
+
senderIpAddress: [, , `SenderIpAddress`],
|
|
3916
|
+
sourceListenerAddress: [, , `SourceListenerAddress`],
|
|
3917
|
+
sourceListenerPort: [, , `SourceListenerPort`],
|
|
3918
|
+
streamId: [, , `StreamId`],
|
|
3919
|
+
vpcInterfaceName: [, , `VpcInterfaceName`],
|
|
3920
|
+
whitelistCidr: [, , `WhitelistCidr`],
|
|
3921
|
+
});
|
|
2448
3922
|
};
|
|
2449
3923
|
const se_SourcePriority = (input, context) => {
|
|
2450
|
-
return {
|
|
2451
|
-
|
|
2452
|
-
};
|
|
3924
|
+
return take(input, {
|
|
3925
|
+
primarySource: [, , `PrimarySource`],
|
|
3926
|
+
});
|
|
3927
|
+
};
|
|
3928
|
+
const se_UpdateBridgeFlowSourceRequest = (input, context) => {
|
|
3929
|
+
return take(input, {
|
|
3930
|
+
flowArn: [, , `FlowArn`],
|
|
3931
|
+
flowVpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `FlowVpcInterfaceAttachment`],
|
|
3932
|
+
});
|
|
3933
|
+
};
|
|
3934
|
+
const se_UpdateBridgeNetworkOutputRequest = (input, context) => {
|
|
3935
|
+
return take(input, {
|
|
3936
|
+
ipAddress: [, , `IpAddress`],
|
|
3937
|
+
networkName: [, , `NetworkName`],
|
|
3938
|
+
port: [, , `Port`],
|
|
3939
|
+
protocol: [, , `Protocol`],
|
|
3940
|
+
ttl: [, , `Ttl`],
|
|
3941
|
+
});
|
|
3942
|
+
};
|
|
3943
|
+
const se_UpdateBridgeNetworkSourceRequest = (input, context) => {
|
|
3944
|
+
return take(input, {
|
|
3945
|
+
multicastIp: [, , `MulticastIp`],
|
|
3946
|
+
networkName: [, , `NetworkName`],
|
|
3947
|
+
port: [, , `Port`],
|
|
3948
|
+
protocol: [, , `Protocol`],
|
|
3949
|
+
});
|
|
3950
|
+
};
|
|
3951
|
+
const se_UpdateEgressGatewayBridgeRequest = (input, context) => {
|
|
3952
|
+
return take(input, {
|
|
3953
|
+
maxBitrate: [, , `MaxBitrate`],
|
|
3954
|
+
});
|
|
2453
3955
|
};
|
|
2454
3956
|
const se_UpdateEncryption = (input, context) => {
|
|
2455
|
-
return {
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
...(input.Url != null && { url: input.Url }),
|
|
2467
|
-
};
|
|
3957
|
+
return take(input, {
|
|
3958
|
+
algorithm: [, , `Algorithm`],
|
|
3959
|
+
constantInitializationVector: [, , `ConstantInitializationVector`],
|
|
3960
|
+
deviceId: [, , `DeviceId`],
|
|
3961
|
+
keyType: [, , `KeyType`],
|
|
3962
|
+
region: [, , `Region`],
|
|
3963
|
+
resourceId: [, , `ResourceId`],
|
|
3964
|
+
roleArn: [, , `RoleArn`],
|
|
3965
|
+
secretArn: [, , `SecretArn`],
|
|
3966
|
+
url: [, , `Url`],
|
|
3967
|
+
});
|
|
2468
3968
|
};
|
|
2469
3969
|
const se_UpdateFailoverConfig = (input, context) => {
|
|
2470
|
-
return {
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
};
|
|
3970
|
+
return take(input, {
|
|
3971
|
+
failoverMode: [, , `FailoverMode`],
|
|
3972
|
+
recoveryWindow: [, , `RecoveryWindow`],
|
|
3973
|
+
sourcePriority: [, (_) => se_SourcePriority(_, context), `SourcePriority`],
|
|
3974
|
+
state: [, , `State`],
|
|
3975
|
+
});
|
|
3976
|
+
};
|
|
3977
|
+
const se_UpdateGatewayBridgeSourceRequest = (input, context) => {
|
|
3978
|
+
return take(input, {
|
|
3979
|
+
bridgeArn: [, , `BridgeArn`],
|
|
3980
|
+
vpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `VpcInterfaceAttachment`],
|
|
3981
|
+
});
|
|
3982
|
+
};
|
|
3983
|
+
const se_UpdateIngressGatewayBridgeRequest = (input, context) => {
|
|
3984
|
+
return take(input, {
|
|
3985
|
+
maxBitrate: [, , `MaxBitrate`],
|
|
3986
|
+
maxOutputs: [, , `MaxOutputs`],
|
|
3987
|
+
});
|
|
2476
3988
|
};
|
|
2477
3989
|
const se_UpdateMaintenance = (input, context) => {
|
|
2478
|
-
return {
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
};
|
|
3990
|
+
return take(input, {
|
|
3991
|
+
maintenanceDay: [, , `MaintenanceDay`],
|
|
3992
|
+
maintenanceScheduledDate: [, , `MaintenanceScheduledDate`],
|
|
3993
|
+
maintenanceStartHour: [, , `MaintenanceStartHour`],
|
|
3994
|
+
});
|
|
2483
3995
|
};
|
|
2484
3996
|
const se_VpcInterfaceAttachment = (input, context) => {
|
|
2485
|
-
return {
|
|
2486
|
-
|
|
2487
|
-
};
|
|
3997
|
+
return take(input, {
|
|
3998
|
+
vpcInterfaceName: [, , `VpcInterfaceName`],
|
|
3999
|
+
});
|
|
2488
4000
|
};
|
|
2489
4001
|
const se_VpcInterfaceRequest = (input, context) => {
|
|
2490
|
-
return {
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
};
|
|
4002
|
+
return take(input, {
|
|
4003
|
+
name: [, , `Name`],
|
|
4004
|
+
networkInterfaceType: [, , `NetworkInterfaceType`],
|
|
4005
|
+
roleArn: [, , `RoleArn`],
|
|
4006
|
+
securityGroupIds: [, _json, `SecurityGroupIds`],
|
|
4007
|
+
subnetId: [, , `SubnetId`],
|
|
4008
|
+
});
|
|
2497
4009
|
};
|
|
2498
|
-
const
|
|
4010
|
+
const de___listOfBridgeOutput = (output, context) => {
|
|
2499
4011
|
const retVal = (output || [])
|
|
2500
4012
|
.filter((e) => e != null)
|
|
2501
4013
|
.map((entry) => {
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
4014
|
+
return de_BridgeOutput(entry, context);
|
|
4015
|
+
});
|
|
4016
|
+
return retVal;
|
|
4017
|
+
};
|
|
4018
|
+
const de___listOfBridgeSource = (output, context) => {
|
|
4019
|
+
const retVal = (output || [])
|
|
4020
|
+
.filter((e) => e != null)
|
|
4021
|
+
.map((entry) => {
|
|
4022
|
+
return de_BridgeSource(entry, context);
|
|
2506
4023
|
});
|
|
2507
4024
|
return retVal;
|
|
2508
4025
|
};
|
|
@@ -2510,9 +4027,6 @@ const de___listOfDestinationConfiguration = (output, context) => {
|
|
|
2510
4027
|
const retVal = (output || [])
|
|
2511
4028
|
.filter((e) => e != null)
|
|
2512
4029
|
.map((entry) => {
|
|
2513
|
-
if (entry === null) {
|
|
2514
|
-
return null;
|
|
2515
|
-
}
|
|
2516
4030
|
return de_DestinationConfiguration(entry, context);
|
|
2517
4031
|
});
|
|
2518
4032
|
return retVal;
|
|
@@ -2521,31 +4035,38 @@ const de___listOfEntitlement = (output, context) => {
|
|
|
2521
4035
|
const retVal = (output || [])
|
|
2522
4036
|
.filter((e) => e != null)
|
|
2523
4037
|
.map((entry) => {
|
|
2524
|
-
if (entry === null) {
|
|
2525
|
-
return null;
|
|
2526
|
-
}
|
|
2527
4038
|
return de_Entitlement(entry, context);
|
|
2528
4039
|
});
|
|
2529
4040
|
return retVal;
|
|
2530
4041
|
};
|
|
4042
|
+
const de___listOfGatewayNetwork = (output, context) => {
|
|
4043
|
+
const retVal = (output || [])
|
|
4044
|
+
.filter((e) => e != null)
|
|
4045
|
+
.map((entry) => {
|
|
4046
|
+
return de_GatewayNetwork(entry, context);
|
|
4047
|
+
});
|
|
4048
|
+
return retVal;
|
|
4049
|
+
};
|
|
2531
4050
|
const de___listOfInputConfiguration = (output, context) => {
|
|
2532
4051
|
const retVal = (output || [])
|
|
2533
4052
|
.filter((e) => e != null)
|
|
2534
4053
|
.map((entry) => {
|
|
2535
|
-
if (entry === null) {
|
|
2536
|
-
return null;
|
|
2537
|
-
}
|
|
2538
4054
|
return de_InputConfiguration(entry, context);
|
|
2539
4055
|
});
|
|
2540
4056
|
return retVal;
|
|
2541
4057
|
};
|
|
4058
|
+
const de___listOfListedBridge = (output, context) => {
|
|
4059
|
+
const retVal = (output || [])
|
|
4060
|
+
.filter((e) => e != null)
|
|
4061
|
+
.map((entry) => {
|
|
4062
|
+
return de_ListedBridge(entry, context);
|
|
4063
|
+
});
|
|
4064
|
+
return retVal;
|
|
4065
|
+
};
|
|
2542
4066
|
const de___listOfListedEntitlement = (output, context) => {
|
|
2543
4067
|
const retVal = (output || [])
|
|
2544
4068
|
.filter((e) => e != null)
|
|
2545
4069
|
.map((entry) => {
|
|
2546
|
-
if (entry === null) {
|
|
2547
|
-
return null;
|
|
2548
|
-
}
|
|
2549
4070
|
return de_ListedEntitlement(entry, context);
|
|
2550
4071
|
});
|
|
2551
4072
|
return retVal;
|
|
@@ -2554,20 +4075,30 @@ const de___listOfListedFlow = (output, context) => {
|
|
|
2554
4075
|
const retVal = (output || [])
|
|
2555
4076
|
.filter((e) => e != null)
|
|
2556
4077
|
.map((entry) => {
|
|
2557
|
-
if (entry === null) {
|
|
2558
|
-
return null;
|
|
2559
|
-
}
|
|
2560
4078
|
return de_ListedFlow(entry, context);
|
|
2561
4079
|
});
|
|
2562
4080
|
return retVal;
|
|
2563
4081
|
};
|
|
4082
|
+
const de___listOfListedGateway = (output, context) => {
|
|
4083
|
+
const retVal = (output || [])
|
|
4084
|
+
.filter((e) => e != null)
|
|
4085
|
+
.map((entry) => {
|
|
4086
|
+
return de_ListedGateway(entry, context);
|
|
4087
|
+
});
|
|
4088
|
+
return retVal;
|
|
4089
|
+
};
|
|
4090
|
+
const de___listOfListedGatewayInstance = (output, context) => {
|
|
4091
|
+
const retVal = (output || [])
|
|
4092
|
+
.filter((e) => e != null)
|
|
4093
|
+
.map((entry) => {
|
|
4094
|
+
return de_ListedGatewayInstance(entry, context);
|
|
4095
|
+
});
|
|
4096
|
+
return retVal;
|
|
4097
|
+
};
|
|
2564
4098
|
const de___listOfMediaStream = (output, context) => {
|
|
2565
4099
|
const retVal = (output || [])
|
|
2566
4100
|
.filter((e) => e != null)
|
|
2567
4101
|
.map((entry) => {
|
|
2568
|
-
if (entry === null) {
|
|
2569
|
-
return null;
|
|
2570
|
-
}
|
|
2571
4102
|
return de_MediaStream(entry, context);
|
|
2572
4103
|
});
|
|
2573
4104
|
return retVal;
|
|
@@ -2576,9 +4107,6 @@ const de___listOfMediaStreamOutputConfiguration = (output, context) => {
|
|
|
2576
4107
|
const retVal = (output || [])
|
|
2577
4108
|
.filter((e) => e != null)
|
|
2578
4109
|
.map((entry) => {
|
|
2579
|
-
if (entry === null) {
|
|
2580
|
-
return null;
|
|
2581
|
-
}
|
|
2582
4110
|
return de_MediaStreamOutputConfiguration(entry, context);
|
|
2583
4111
|
});
|
|
2584
4112
|
return retVal;
|
|
@@ -2587,20 +4115,22 @@ const de___listOfMediaStreamSourceConfiguration = (output, context) => {
|
|
|
2587
4115
|
const retVal = (output || [])
|
|
2588
4116
|
.filter((e) => e != null)
|
|
2589
4117
|
.map((entry) => {
|
|
2590
|
-
if (entry === null) {
|
|
2591
|
-
return null;
|
|
2592
|
-
}
|
|
2593
4118
|
return de_MediaStreamSourceConfiguration(entry, context);
|
|
2594
4119
|
});
|
|
2595
4120
|
return retVal;
|
|
2596
4121
|
};
|
|
4122
|
+
const de___listOfMessageDetail = (output, context) => {
|
|
4123
|
+
const retVal = (output || [])
|
|
4124
|
+
.filter((e) => e != null)
|
|
4125
|
+
.map((entry) => {
|
|
4126
|
+
return de_MessageDetail(entry, context);
|
|
4127
|
+
});
|
|
4128
|
+
return retVal;
|
|
4129
|
+
};
|
|
2597
4130
|
const de___listOfOffering = (output, context) => {
|
|
2598
4131
|
const retVal = (output || [])
|
|
2599
4132
|
.filter((e) => e != null)
|
|
2600
4133
|
.map((entry) => {
|
|
2601
|
-
if (entry === null) {
|
|
2602
|
-
return null;
|
|
2603
|
-
}
|
|
2604
4134
|
return de_Offering(entry, context);
|
|
2605
4135
|
});
|
|
2606
4136
|
return retVal;
|
|
@@ -2609,9 +4139,6 @@ const de___listOfOutput = (output, context) => {
|
|
|
2609
4139
|
const retVal = (output || [])
|
|
2610
4140
|
.filter((e) => e != null)
|
|
2611
4141
|
.map((entry) => {
|
|
2612
|
-
if (entry === null) {
|
|
2613
|
-
return null;
|
|
2614
|
-
}
|
|
2615
4142
|
return de_Output(entry, context);
|
|
2616
4143
|
});
|
|
2617
4144
|
return retVal;
|
|
@@ -2620,9 +4147,6 @@ const de___listOfReservation = (output, context) => {
|
|
|
2620
4147
|
const retVal = (output || [])
|
|
2621
4148
|
.filter((e) => e != null)
|
|
2622
4149
|
.map((entry) => {
|
|
2623
|
-
if (entry === null) {
|
|
2624
|
-
return null;
|
|
2625
|
-
}
|
|
2626
4150
|
return de_Reservation(entry, context);
|
|
2627
4151
|
});
|
|
2628
4152
|
return retVal;
|
|
@@ -2631,9 +4155,6 @@ const de___listOfSource = (output, context) => {
|
|
|
2631
4155
|
const retVal = (output || [])
|
|
2632
4156
|
.filter((e) => e != null)
|
|
2633
4157
|
.map((entry) => {
|
|
2634
|
-
if (entry === null) {
|
|
2635
|
-
return null;
|
|
2636
|
-
}
|
|
2637
4158
|
return de_Source(entry, context);
|
|
2638
4159
|
});
|
|
2639
4160
|
return retVal;
|
|
@@ -2642,293 +4163,416 @@ const de___listOfVpcInterface = (output, context) => {
|
|
|
2642
4163
|
const retVal = (output || [])
|
|
2643
4164
|
.filter((e) => e != null)
|
|
2644
4165
|
.map((entry) => {
|
|
2645
|
-
if (entry === null) {
|
|
2646
|
-
return null;
|
|
2647
|
-
}
|
|
2648
4166
|
return de_VpcInterface(entry, context);
|
|
2649
4167
|
});
|
|
2650
4168
|
return retVal;
|
|
2651
4169
|
};
|
|
2652
|
-
const
|
|
2653
|
-
return
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
4170
|
+
const de_Bridge = (output, context) => {
|
|
4171
|
+
return take(output, {
|
|
4172
|
+
BridgeArn: [, __expectString, `bridgeArn`],
|
|
4173
|
+
BridgeMessages: (_) => [, de___listOfMessageDetail(_, context), `bridgeMessages`],
|
|
4174
|
+
BridgeState: [, __expectString, `bridgeState`],
|
|
4175
|
+
EgressGatewayBridge: (_) => [, de_EgressGatewayBridge(_, context), `egressGatewayBridge`],
|
|
4176
|
+
IngressGatewayBridge: (_) => [, de_IngressGatewayBridge(_, context), `ingressGatewayBridge`],
|
|
4177
|
+
Name: [, __expectString, `name`],
|
|
4178
|
+
Outputs: (_) => [, de___listOfBridgeOutput(_, context), `outputs`],
|
|
4179
|
+
PlacementArn: [, __expectString, `placementArn`],
|
|
4180
|
+
SourceFailoverConfig: (_) => [, de_FailoverConfig(_, context), `sourceFailoverConfig`],
|
|
4181
|
+
Sources: (_) => [, de___listOfBridgeSource(_, context), `sources`],
|
|
4182
|
+
});
|
|
4183
|
+
};
|
|
4184
|
+
const de_BridgeFlowOutput = (output, context) => {
|
|
4185
|
+
return take(output, {
|
|
4186
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
4187
|
+
FlowSourceArn: [, __expectString, `flowSourceArn`],
|
|
4188
|
+
Name: [, __expectString, `name`],
|
|
4189
|
+
});
|
|
4190
|
+
};
|
|
4191
|
+
const de_BridgeFlowSource = (output, context) => {
|
|
4192
|
+
return take(output, {
|
|
4193
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
4194
|
+
FlowVpcInterfaceAttachment: (_) => [, de_VpcInterfaceAttachment(_, context), `flowVpcInterfaceAttachment`],
|
|
4195
|
+
Name: [, __expectString, `name`],
|
|
4196
|
+
OutputArn: [, __expectString, `outputArn`],
|
|
4197
|
+
});
|
|
4198
|
+
};
|
|
4199
|
+
const de_BridgeNetworkOutput = (output, context) => {
|
|
4200
|
+
return take(output, {
|
|
4201
|
+
IpAddress: [, __expectString, `ipAddress`],
|
|
4202
|
+
Name: [, __expectString, `name`],
|
|
4203
|
+
NetworkName: [, __expectString, `networkName`],
|
|
4204
|
+
Port: [, __expectInt32, `port`],
|
|
4205
|
+
Protocol: [, __expectString, `protocol`],
|
|
4206
|
+
Ttl: [, __expectInt32, `ttl`],
|
|
4207
|
+
});
|
|
4208
|
+
};
|
|
4209
|
+
const de_BridgeNetworkSource = (output, context) => {
|
|
4210
|
+
return take(output, {
|
|
4211
|
+
MulticastIp: [, __expectString, `multicastIp`],
|
|
4212
|
+
Name: [, __expectString, `name`],
|
|
4213
|
+
NetworkName: [, __expectString, `networkName`],
|
|
4214
|
+
Port: [, __expectInt32, `port`],
|
|
4215
|
+
Protocol: [, __expectString, `protocol`],
|
|
4216
|
+
});
|
|
4217
|
+
};
|
|
4218
|
+
const de_BridgeOutput = (output, context) => {
|
|
4219
|
+
return take(output, {
|
|
4220
|
+
FlowOutput: (_) => [, de_BridgeFlowOutput(_, context), `flowOutput`],
|
|
4221
|
+
NetworkOutput: (_) => [, de_BridgeNetworkOutput(_, context), `networkOutput`],
|
|
4222
|
+
});
|
|
4223
|
+
};
|
|
4224
|
+
const de_BridgeSource = (output, context) => {
|
|
4225
|
+
return take(output, {
|
|
4226
|
+
FlowSource: (_) => [, de_BridgeFlowSource(_, context), `flowSource`],
|
|
4227
|
+
NetworkSource: (_) => [, de_BridgeNetworkSource(_, context), `networkSource`],
|
|
4228
|
+
});
|
|
2660
4229
|
};
|
|
2661
4230
|
const de_DestinationConfiguration = (output, context) => {
|
|
2662
|
-
return {
|
|
2663
|
-
DestinationIp: __expectString
|
|
2664
|
-
DestinationPort: __expectInt32
|
|
2665
|
-
Interface:
|
|
2666
|
-
OutboundIp: __expectString
|
|
2667
|
-
};
|
|
4231
|
+
return take(output, {
|
|
4232
|
+
DestinationIp: [, __expectString, `destinationIp`],
|
|
4233
|
+
DestinationPort: [, __expectInt32, `destinationPort`],
|
|
4234
|
+
Interface: (_) => [, de_Interface(_, context), `interface`],
|
|
4235
|
+
OutboundIp: [, __expectString, `outboundIp`],
|
|
4236
|
+
});
|
|
4237
|
+
};
|
|
4238
|
+
const de_EgressGatewayBridge = (output, context) => {
|
|
4239
|
+
return take(output, {
|
|
4240
|
+
InstanceId: [, __expectString, `instanceId`],
|
|
4241
|
+
MaxBitrate: [, __expectInt32, `maxBitrate`],
|
|
4242
|
+
});
|
|
2668
4243
|
};
|
|
2669
4244
|
const de_EncodingParameters = (output, context) => {
|
|
2670
|
-
return {
|
|
2671
|
-
CompressionFactor: __limitedParseDouble
|
|
2672
|
-
EncoderProfile: __expectString
|
|
2673
|
-
};
|
|
4245
|
+
return take(output, {
|
|
4246
|
+
CompressionFactor: [, __limitedParseDouble, `compressionFactor`],
|
|
4247
|
+
EncoderProfile: [, __expectString, `encoderProfile`],
|
|
4248
|
+
});
|
|
2674
4249
|
};
|
|
2675
4250
|
const de_Encryption = (output, context) => {
|
|
2676
|
-
return {
|
|
2677
|
-
Algorithm: __expectString
|
|
2678
|
-
ConstantInitializationVector: __expectString
|
|
2679
|
-
DeviceId: __expectString
|
|
2680
|
-
KeyType: __expectString
|
|
2681
|
-
Region: __expectString
|
|
2682
|
-
ResourceId: __expectString
|
|
2683
|
-
RoleArn: __expectString
|
|
2684
|
-
SecretArn: __expectString
|
|
2685
|
-
Url: __expectString
|
|
2686
|
-
};
|
|
4251
|
+
return take(output, {
|
|
4252
|
+
Algorithm: [, __expectString, `algorithm`],
|
|
4253
|
+
ConstantInitializationVector: [, __expectString, `constantInitializationVector`],
|
|
4254
|
+
DeviceId: [, __expectString, `deviceId`],
|
|
4255
|
+
KeyType: [, __expectString, `keyType`],
|
|
4256
|
+
Region: [, __expectString, `region`],
|
|
4257
|
+
ResourceId: [, __expectString, `resourceId`],
|
|
4258
|
+
RoleArn: [, __expectString, `roleArn`],
|
|
4259
|
+
SecretArn: [, __expectString, `secretArn`],
|
|
4260
|
+
Url: [, __expectString, `url`],
|
|
4261
|
+
});
|
|
2687
4262
|
};
|
|
2688
4263
|
const de_Entitlement = (output, context) => {
|
|
2689
|
-
return {
|
|
2690
|
-
DataTransferSubscriberFeePercent: __expectInt32
|
|
2691
|
-
Description: __expectString
|
|
2692
|
-
Encryption:
|
|
2693
|
-
EntitlementArn: __expectString
|
|
2694
|
-
EntitlementStatus: __expectString
|
|
2695
|
-
Name: __expectString
|
|
2696
|
-
Subscribers:
|
|
2697
|
-
};
|
|
4264
|
+
return take(output, {
|
|
4265
|
+
DataTransferSubscriberFeePercent: [, __expectInt32, `dataTransferSubscriberFeePercent`],
|
|
4266
|
+
Description: [, __expectString, `description`],
|
|
4267
|
+
Encryption: (_) => [, de_Encryption(_, context), `encryption`],
|
|
4268
|
+
EntitlementArn: [, __expectString, `entitlementArn`],
|
|
4269
|
+
EntitlementStatus: [, __expectString, `entitlementStatus`],
|
|
4270
|
+
Name: [, __expectString, `name`],
|
|
4271
|
+
Subscribers: [, _json, `subscribers`],
|
|
4272
|
+
});
|
|
2698
4273
|
};
|
|
2699
4274
|
const de_FailoverConfig = (output, context) => {
|
|
2700
|
-
return {
|
|
2701
|
-
FailoverMode: __expectString
|
|
2702
|
-
RecoveryWindow: __expectInt32
|
|
2703
|
-
SourcePriority:
|
|
2704
|
-
State: __expectString
|
|
2705
|
-
};
|
|
4275
|
+
return take(output, {
|
|
4276
|
+
FailoverMode: [, __expectString, `failoverMode`],
|
|
4277
|
+
RecoveryWindow: [, __expectInt32, `recoveryWindow`],
|
|
4278
|
+
SourcePriority: (_) => [, de_SourcePriority(_, context), `sourcePriority`],
|
|
4279
|
+
State: [, __expectString, `state`],
|
|
4280
|
+
});
|
|
2706
4281
|
};
|
|
2707
4282
|
const de_Flow = (output, context) => {
|
|
2708
|
-
return {
|
|
2709
|
-
AvailabilityZone: __expectString
|
|
2710
|
-
Description: __expectString
|
|
2711
|
-
EgressIp: __expectString
|
|
2712
|
-
Entitlements:
|
|
2713
|
-
FlowArn: __expectString
|
|
2714
|
-
Maintenance:
|
|
2715
|
-
MediaStreams:
|
|
2716
|
-
Name: __expectString
|
|
2717
|
-
Outputs:
|
|
2718
|
-
Source:
|
|
2719
|
-
SourceFailoverConfig:
|
|
2720
|
-
Sources:
|
|
2721
|
-
Status: __expectString
|
|
2722
|
-
VpcInterfaces:
|
|
2723
|
-
};
|
|
4283
|
+
return take(output, {
|
|
4284
|
+
AvailabilityZone: [, __expectString, `availabilityZone`],
|
|
4285
|
+
Description: [, __expectString, `description`],
|
|
4286
|
+
EgressIp: [, __expectString, `egressIp`],
|
|
4287
|
+
Entitlements: (_) => [, de___listOfEntitlement(_, context), `entitlements`],
|
|
4288
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
4289
|
+
Maintenance: (_) => [, de_Maintenance(_, context), `maintenance`],
|
|
4290
|
+
MediaStreams: (_) => [, de___listOfMediaStream(_, context), `mediaStreams`],
|
|
4291
|
+
Name: [, __expectString, `name`],
|
|
4292
|
+
Outputs: (_) => [, de___listOfOutput(_, context), `outputs`],
|
|
4293
|
+
Source: (_) => [, de_Source(_, context), `source`],
|
|
4294
|
+
SourceFailoverConfig: (_) => [, de_FailoverConfig(_, context), `sourceFailoverConfig`],
|
|
4295
|
+
Sources: (_) => [, de___listOfSource(_, context), `sources`],
|
|
4296
|
+
Status: [, __expectString, `status`],
|
|
4297
|
+
VpcInterfaces: (_) => [, de___listOfVpcInterface(_, context), `vpcInterfaces`],
|
|
4298
|
+
});
|
|
2724
4299
|
};
|
|
2725
4300
|
const de_Fmtp = (output, context) => {
|
|
2726
|
-
return {
|
|
2727
|
-
ChannelOrder: __expectString
|
|
2728
|
-
Colorimetry: __expectString
|
|
2729
|
-
ExactFramerate: __expectString
|
|
2730
|
-
Par: __expectString
|
|
2731
|
-
Range: __expectString
|
|
2732
|
-
ScanMode: __expectString
|
|
2733
|
-
Tcs: __expectString
|
|
2734
|
-
};
|
|
4301
|
+
return take(output, {
|
|
4302
|
+
ChannelOrder: [, __expectString, `channelOrder`],
|
|
4303
|
+
Colorimetry: [, __expectString, `colorimetry`],
|
|
4304
|
+
ExactFramerate: [, __expectString, `exactFramerate`],
|
|
4305
|
+
Par: [, __expectString, `par`],
|
|
4306
|
+
Range: [, __expectString, `range`],
|
|
4307
|
+
ScanMode: [, __expectString, `scanMode`],
|
|
4308
|
+
Tcs: [, __expectString, `tcs`],
|
|
4309
|
+
});
|
|
4310
|
+
};
|
|
4311
|
+
const de_Gateway = (output, context) => {
|
|
4312
|
+
return take(output, {
|
|
4313
|
+
EgressCidrBlocks: [, _json, `egressCidrBlocks`],
|
|
4314
|
+
GatewayArn: [, __expectString, `gatewayArn`],
|
|
4315
|
+
GatewayMessages: (_) => [, de___listOfMessageDetail(_, context), `gatewayMessages`],
|
|
4316
|
+
GatewayState: [, __expectString, `gatewayState`],
|
|
4317
|
+
Name: [, __expectString, `name`],
|
|
4318
|
+
Networks: (_) => [, de___listOfGatewayNetwork(_, context), `networks`],
|
|
4319
|
+
});
|
|
4320
|
+
};
|
|
4321
|
+
const de_GatewayBridgeSource = (output, context) => {
|
|
4322
|
+
return take(output, {
|
|
4323
|
+
BridgeArn: [, __expectString, `bridgeArn`],
|
|
4324
|
+
VpcInterfaceAttachment: (_) => [, de_VpcInterfaceAttachment(_, context), `vpcInterfaceAttachment`],
|
|
4325
|
+
});
|
|
4326
|
+
};
|
|
4327
|
+
const de_GatewayInstance = (output, context) => {
|
|
4328
|
+
return take(output, {
|
|
4329
|
+
BridgePlacement: [, __expectString, `bridgePlacement`],
|
|
4330
|
+
ConnectionStatus: [, __expectString, `connectionStatus`],
|
|
4331
|
+
GatewayArn: [, __expectString, `gatewayArn`],
|
|
4332
|
+
GatewayInstanceArn: [, __expectString, `gatewayInstanceArn`],
|
|
4333
|
+
InstanceId: [, __expectString, `instanceId`],
|
|
4334
|
+
InstanceMessages: (_) => [, de___listOfMessageDetail(_, context), `instanceMessages`],
|
|
4335
|
+
InstanceState: [, __expectString, `instanceState`],
|
|
4336
|
+
RunningBridgeCount: [, __expectInt32, `runningBridgeCount`],
|
|
4337
|
+
});
|
|
4338
|
+
};
|
|
4339
|
+
const de_GatewayNetwork = (output, context) => {
|
|
4340
|
+
return take(output, {
|
|
4341
|
+
CidrBlock: [, __expectString, `cidrBlock`],
|
|
4342
|
+
Name: [, __expectString, `name`],
|
|
4343
|
+
});
|
|
4344
|
+
};
|
|
4345
|
+
const de_IngressGatewayBridge = (output, context) => {
|
|
4346
|
+
return take(output, {
|
|
4347
|
+
InstanceId: [, __expectString, `instanceId`],
|
|
4348
|
+
MaxBitrate: [, __expectInt32, `maxBitrate`],
|
|
4349
|
+
MaxOutputs: [, __expectInt32, `maxOutputs`],
|
|
4350
|
+
});
|
|
2735
4351
|
};
|
|
2736
4352
|
const de_InputConfiguration = (output, context) => {
|
|
2737
|
-
return {
|
|
2738
|
-
InputIp: __expectString
|
|
2739
|
-
InputPort: __expectInt32
|
|
2740
|
-
Interface:
|
|
2741
|
-
};
|
|
4353
|
+
return take(output, {
|
|
4354
|
+
InputIp: [, __expectString, `inputIp`],
|
|
4355
|
+
InputPort: [, __expectInt32, `inputPort`],
|
|
4356
|
+
Interface: (_) => [, de_Interface(_, context), `interface`],
|
|
4357
|
+
});
|
|
2742
4358
|
};
|
|
2743
4359
|
const de_Interface = (output, context) => {
|
|
2744
|
-
return {
|
|
2745
|
-
Name: __expectString
|
|
2746
|
-
};
|
|
4360
|
+
return take(output, {
|
|
4361
|
+
Name: [, __expectString, `name`],
|
|
4362
|
+
});
|
|
4363
|
+
};
|
|
4364
|
+
const de_ListedBridge = (output, context) => {
|
|
4365
|
+
return take(output, {
|
|
4366
|
+
BridgeArn: [, __expectString, `bridgeArn`],
|
|
4367
|
+
BridgeState: [, __expectString, `bridgeState`],
|
|
4368
|
+
BridgeType: [, __expectString, `bridgeType`],
|
|
4369
|
+
Name: [, __expectString, `name`],
|
|
4370
|
+
PlacementArn: [, __expectString, `placementArn`],
|
|
4371
|
+
});
|
|
2747
4372
|
};
|
|
2748
4373
|
const de_ListedEntitlement = (output, context) => {
|
|
2749
|
-
return {
|
|
2750
|
-
DataTransferSubscriberFeePercent: __expectInt32
|
|
2751
|
-
EntitlementArn: __expectString
|
|
2752
|
-
EntitlementName: __expectString
|
|
2753
|
-
};
|
|
4374
|
+
return take(output, {
|
|
4375
|
+
DataTransferSubscriberFeePercent: [, __expectInt32, `dataTransferSubscriberFeePercent`],
|
|
4376
|
+
EntitlementArn: [, __expectString, `entitlementArn`],
|
|
4377
|
+
EntitlementName: [, __expectString, `entitlementName`],
|
|
4378
|
+
});
|
|
2754
4379
|
};
|
|
2755
4380
|
const de_ListedFlow = (output, context) => {
|
|
2756
|
-
return {
|
|
2757
|
-
AvailabilityZone: __expectString
|
|
2758
|
-
Description: __expectString
|
|
2759
|
-
FlowArn: __expectString
|
|
2760
|
-
Maintenance:
|
|
2761
|
-
Name: __expectString
|
|
2762
|
-
SourceType: __expectString
|
|
2763
|
-
Status: __expectString
|
|
2764
|
-
};
|
|
4381
|
+
return take(output, {
|
|
4382
|
+
AvailabilityZone: [, __expectString, `availabilityZone`],
|
|
4383
|
+
Description: [, __expectString, `description`],
|
|
4384
|
+
FlowArn: [, __expectString, `flowArn`],
|
|
4385
|
+
Maintenance: (_) => [, de_Maintenance(_, context), `maintenance`],
|
|
4386
|
+
Name: [, __expectString, `name`],
|
|
4387
|
+
SourceType: [, __expectString, `sourceType`],
|
|
4388
|
+
Status: [, __expectString, `status`],
|
|
4389
|
+
});
|
|
4390
|
+
};
|
|
4391
|
+
const de_ListedGateway = (output, context) => {
|
|
4392
|
+
return take(output, {
|
|
4393
|
+
GatewayArn: [, __expectString, `gatewayArn`],
|
|
4394
|
+
GatewayState: [, __expectString, `gatewayState`],
|
|
4395
|
+
Name: [, __expectString, `name`],
|
|
4396
|
+
});
|
|
4397
|
+
};
|
|
4398
|
+
const de_ListedGatewayInstance = (output, context) => {
|
|
4399
|
+
return take(output, {
|
|
4400
|
+
GatewayArn: [, __expectString, `gatewayArn`],
|
|
4401
|
+
GatewayInstanceArn: [, __expectString, `gatewayInstanceArn`],
|
|
4402
|
+
InstanceId: [, __expectString, `instanceId`],
|
|
4403
|
+
InstanceState: [, __expectString, `instanceState`],
|
|
4404
|
+
});
|
|
2765
4405
|
};
|
|
2766
4406
|
const de_Maintenance = (output, context) => {
|
|
2767
|
-
return {
|
|
2768
|
-
MaintenanceDay: __expectString
|
|
2769
|
-
MaintenanceDeadline: __expectString
|
|
2770
|
-
MaintenanceScheduledDate: __expectString
|
|
2771
|
-
MaintenanceStartHour: __expectString
|
|
2772
|
-
};
|
|
4407
|
+
return take(output, {
|
|
4408
|
+
MaintenanceDay: [, __expectString, `maintenanceDay`],
|
|
4409
|
+
MaintenanceDeadline: [, __expectString, `maintenanceDeadline`],
|
|
4410
|
+
MaintenanceScheduledDate: [, __expectString, `maintenanceScheduledDate`],
|
|
4411
|
+
MaintenanceStartHour: [, __expectString, `maintenanceStartHour`],
|
|
4412
|
+
});
|
|
2773
4413
|
};
|
|
2774
4414
|
const de_MediaStream = (output, context) => {
|
|
2775
|
-
return {
|
|
2776
|
-
Attributes:
|
|
2777
|
-
ClockRate: __expectInt32
|
|
2778
|
-
Description: __expectString
|
|
2779
|
-
Fmt: __expectInt32
|
|
2780
|
-
MediaStreamId: __expectInt32
|
|
2781
|
-
MediaStreamName: __expectString
|
|
2782
|
-
MediaStreamType: __expectString
|
|
2783
|
-
VideoFormat: __expectString
|
|
2784
|
-
};
|
|
4415
|
+
return take(output, {
|
|
4416
|
+
Attributes: (_) => [, de_MediaStreamAttributes(_, context), `attributes`],
|
|
4417
|
+
ClockRate: [, __expectInt32, `clockRate`],
|
|
4418
|
+
Description: [, __expectString, `description`],
|
|
4419
|
+
Fmt: [, __expectInt32, `fmt`],
|
|
4420
|
+
MediaStreamId: [, __expectInt32, `mediaStreamId`],
|
|
4421
|
+
MediaStreamName: [, __expectString, `mediaStreamName`],
|
|
4422
|
+
MediaStreamType: [, __expectString, `mediaStreamType`],
|
|
4423
|
+
VideoFormat: [, __expectString, `videoFormat`],
|
|
4424
|
+
});
|
|
2785
4425
|
};
|
|
2786
4426
|
const de_MediaStreamAttributes = (output, context) => {
|
|
2787
|
-
return {
|
|
2788
|
-
Fmtp:
|
|
2789
|
-
Lang: __expectString
|
|
2790
|
-
};
|
|
4427
|
+
return take(output, {
|
|
4428
|
+
Fmtp: (_) => [, de_Fmtp(_, context), `fmtp`],
|
|
4429
|
+
Lang: [, __expectString, `lang`],
|
|
4430
|
+
});
|
|
2791
4431
|
};
|
|
2792
4432
|
const de_MediaStreamOutputConfiguration = (output, context) => {
|
|
2793
|
-
return {
|
|
2794
|
-
DestinationConfigurations:
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
MediaStreamName: __expectString(output.mediaStreamName),
|
|
2800
|
-
};
|
|
4433
|
+
return take(output, {
|
|
4434
|
+
DestinationConfigurations: (_) => [, de___listOfDestinationConfiguration(_, context), `destinationConfigurations`],
|
|
4435
|
+
EncodingName: [, __expectString, `encodingName`],
|
|
4436
|
+
EncodingParameters: (_) => [, de_EncodingParameters(_, context), `encodingParameters`],
|
|
4437
|
+
MediaStreamName: [, __expectString, `mediaStreamName`],
|
|
4438
|
+
});
|
|
2801
4439
|
};
|
|
2802
4440
|
const de_MediaStreamSourceConfiguration = (output, context) => {
|
|
2803
|
-
return {
|
|
2804
|
-
EncodingName: __expectString
|
|
2805
|
-
InputConfigurations:
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
4441
|
+
return take(output, {
|
|
4442
|
+
EncodingName: [, __expectString, `encodingName`],
|
|
4443
|
+
InputConfigurations: (_) => [, de___listOfInputConfiguration(_, context), `inputConfigurations`],
|
|
4444
|
+
MediaStreamName: [, __expectString, `mediaStreamName`],
|
|
4445
|
+
});
|
|
4446
|
+
};
|
|
4447
|
+
const de_MessageDetail = (output, context) => {
|
|
4448
|
+
return take(output, {
|
|
4449
|
+
Code: [, __expectString, `code`],
|
|
4450
|
+
Message: [, __expectString, `message`],
|
|
4451
|
+
ResourceName: [, __expectString, `resourceName`],
|
|
4452
|
+
});
|
|
2810
4453
|
};
|
|
2811
4454
|
const de_Messages = (output, context) => {
|
|
2812
|
-
return {
|
|
2813
|
-
Errors:
|
|
2814
|
-
};
|
|
4455
|
+
return take(output, {
|
|
4456
|
+
Errors: [, _json, `errors`],
|
|
4457
|
+
});
|
|
2815
4458
|
};
|
|
2816
4459
|
const de_Offering = (output, context) => {
|
|
2817
|
-
return {
|
|
2818
|
-
CurrencyCode: __expectString
|
|
2819
|
-
Duration: __expectInt32
|
|
2820
|
-
DurationUnits: __expectString
|
|
2821
|
-
OfferingArn: __expectString
|
|
2822
|
-
OfferingDescription: __expectString
|
|
2823
|
-
PricePerUnit: __expectString
|
|
2824
|
-
PriceUnits: __expectString
|
|
2825
|
-
ResourceSpecification:
|
|
2826
|
-
|
|
2827
|
-
: undefined,
|
|
2828
|
-
};
|
|
4460
|
+
return take(output, {
|
|
4461
|
+
CurrencyCode: [, __expectString, `currencyCode`],
|
|
4462
|
+
Duration: [, __expectInt32, `duration`],
|
|
4463
|
+
DurationUnits: [, __expectString, `durationUnits`],
|
|
4464
|
+
OfferingArn: [, __expectString, `offeringArn`],
|
|
4465
|
+
OfferingDescription: [, __expectString, `offeringDescription`],
|
|
4466
|
+
PricePerUnit: [, __expectString, `pricePerUnit`],
|
|
4467
|
+
PriceUnits: [, __expectString, `priceUnits`],
|
|
4468
|
+
ResourceSpecification: (_) => [, de_ResourceSpecification(_, context), `resourceSpecification`],
|
|
4469
|
+
});
|
|
2829
4470
|
};
|
|
2830
4471
|
const de_Output = (output, context) => {
|
|
2831
|
-
return {
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
4472
|
+
return take(output, {
|
|
4473
|
+
BridgeArn: [, __expectString, `bridgeArn`],
|
|
4474
|
+
BridgePorts: [, _json, `bridgePorts`],
|
|
4475
|
+
DataTransferSubscriberFeePercent: [, __expectInt32, `dataTransferSubscriberFeePercent`],
|
|
4476
|
+
Description: [, __expectString, `description`],
|
|
4477
|
+
Destination: [, __expectString, `destination`],
|
|
4478
|
+
Encryption: (_) => [, de_Encryption(_, context), `encryption`],
|
|
4479
|
+
EntitlementArn: [, __expectString, `entitlementArn`],
|
|
4480
|
+
ListenerAddress: [, __expectString, `listenerAddress`],
|
|
4481
|
+
MediaLiveInputArn: [, __expectString, `mediaLiveInputArn`],
|
|
4482
|
+
MediaStreamOutputConfigurations: (_) => [
|
|
4483
|
+
,
|
|
4484
|
+
de___listOfMediaStreamOutputConfiguration(_, context),
|
|
4485
|
+
`mediaStreamOutputConfigurations`,
|
|
4486
|
+
],
|
|
4487
|
+
Name: [, __expectString, `name`],
|
|
4488
|
+
OutputArn: [, __expectString, `outputArn`],
|
|
4489
|
+
Port: [, __expectInt32, `port`],
|
|
4490
|
+
Transport: (_) => [, de_Transport(_, context), `transport`],
|
|
4491
|
+
VpcInterfaceAttachment: (_) => [, de_VpcInterfaceAttachment(_, context), `vpcInterfaceAttachment`],
|
|
4492
|
+
});
|
|
2850
4493
|
};
|
|
2851
4494
|
const de_Reservation = (output, context) => {
|
|
2852
|
-
return {
|
|
2853
|
-
CurrencyCode: __expectString
|
|
2854
|
-
Duration: __expectInt32
|
|
2855
|
-
DurationUnits: __expectString
|
|
2856
|
-
End: __expectString
|
|
2857
|
-
OfferingArn: __expectString
|
|
2858
|
-
OfferingDescription: __expectString
|
|
2859
|
-
PricePerUnit: __expectString
|
|
2860
|
-
PriceUnits: __expectString
|
|
2861
|
-
ReservationArn: __expectString
|
|
2862
|
-
ReservationName: __expectString
|
|
2863
|
-
ReservationState: __expectString
|
|
2864
|
-
ResourceSpecification:
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
Start: __expectString(output.start),
|
|
2868
|
-
};
|
|
4495
|
+
return take(output, {
|
|
4496
|
+
CurrencyCode: [, __expectString, `currencyCode`],
|
|
4497
|
+
Duration: [, __expectInt32, `duration`],
|
|
4498
|
+
DurationUnits: [, __expectString, `durationUnits`],
|
|
4499
|
+
End: [, __expectString, `end`],
|
|
4500
|
+
OfferingArn: [, __expectString, `offeringArn`],
|
|
4501
|
+
OfferingDescription: [, __expectString, `offeringDescription`],
|
|
4502
|
+
PricePerUnit: [, __expectString, `pricePerUnit`],
|
|
4503
|
+
PriceUnits: [, __expectString, `priceUnits`],
|
|
4504
|
+
ReservationArn: [, __expectString, `reservationArn`],
|
|
4505
|
+
ReservationName: [, __expectString, `reservationName`],
|
|
4506
|
+
ReservationState: [, __expectString, `reservationState`],
|
|
4507
|
+
ResourceSpecification: (_) => [, de_ResourceSpecification(_, context), `resourceSpecification`],
|
|
4508
|
+
Start: [, __expectString, `start`],
|
|
4509
|
+
});
|
|
2869
4510
|
};
|
|
2870
4511
|
const de_ResourceSpecification = (output, context) => {
|
|
2871
|
-
return {
|
|
2872
|
-
ReservedBitrate: __expectInt32
|
|
2873
|
-
ResourceType: __expectString
|
|
2874
|
-
};
|
|
4512
|
+
return take(output, {
|
|
4513
|
+
ReservedBitrate: [, __expectInt32, `reservedBitrate`],
|
|
4514
|
+
ResourceType: [, __expectString, `resourceType`],
|
|
4515
|
+
});
|
|
2875
4516
|
};
|
|
2876
4517
|
const de_Source = (output, context) => {
|
|
2877
|
-
return {
|
|
2878
|
-
DataTransferSubscriberFeePercent: __expectInt32
|
|
2879
|
-
Decryption:
|
|
2880
|
-
Description: __expectString
|
|
2881
|
-
EntitlementArn: __expectString
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
4518
|
+
return take(output, {
|
|
4519
|
+
DataTransferSubscriberFeePercent: [, __expectInt32, `dataTransferSubscriberFeePercent`],
|
|
4520
|
+
Decryption: (_) => [, de_Encryption(_, context), `decryption`],
|
|
4521
|
+
Description: [, __expectString, `description`],
|
|
4522
|
+
EntitlementArn: [, __expectString, `entitlementArn`],
|
|
4523
|
+
GatewayBridgeSource: (_) => [, de_GatewayBridgeSource(_, context), `gatewayBridgeSource`],
|
|
4524
|
+
IngestIp: [, __expectString, `ingestIp`],
|
|
4525
|
+
IngestPort: [, __expectInt32, `ingestPort`],
|
|
4526
|
+
MediaStreamSourceConfigurations: (_) => [
|
|
4527
|
+
,
|
|
4528
|
+
de___listOfMediaStreamSourceConfiguration(_, context),
|
|
4529
|
+
`mediaStreamSourceConfigurations`,
|
|
4530
|
+
],
|
|
4531
|
+
Name: [, __expectString, `name`],
|
|
4532
|
+
SenderControlPort: [, __expectInt32, `senderControlPort`],
|
|
4533
|
+
SenderIpAddress: [, __expectString, `senderIpAddress`],
|
|
4534
|
+
SourceArn: [, __expectString, `sourceArn`],
|
|
4535
|
+
Transport: (_) => [, de_Transport(_, context), `transport`],
|
|
4536
|
+
VpcInterfaceName: [, __expectString, `vpcInterfaceName`],
|
|
4537
|
+
WhitelistCidr: [, __expectString, `whitelistCidr`],
|
|
4538
|
+
});
|
|
2895
4539
|
};
|
|
2896
4540
|
const de_SourcePriority = (output, context) => {
|
|
2897
|
-
return {
|
|
2898
|
-
PrimarySource: __expectString
|
|
2899
|
-
};
|
|
4541
|
+
return take(output, {
|
|
4542
|
+
PrimarySource: [, __expectString, `primarySource`],
|
|
4543
|
+
});
|
|
2900
4544
|
};
|
|
2901
4545
|
const de_Transport = (output, context) => {
|
|
2902
|
-
return {
|
|
2903
|
-
CidrAllowList:
|
|
2904
|
-
MaxBitrate: __expectInt32
|
|
2905
|
-
MaxLatency: __expectInt32
|
|
2906
|
-
MaxSyncBuffer: __expectInt32
|
|
2907
|
-
MinLatency: __expectInt32
|
|
2908
|
-
Protocol: __expectString
|
|
2909
|
-
RemoteId: __expectString
|
|
2910
|
-
SenderControlPort: __expectInt32
|
|
2911
|
-
SenderIpAddress: __expectString
|
|
2912
|
-
SmoothingLatency: __expectInt32
|
|
2913
|
-
SourceListenerAddress: __expectString
|
|
2914
|
-
SourceListenerPort: __expectInt32
|
|
2915
|
-
StreamId: __expectString
|
|
2916
|
-
};
|
|
4546
|
+
return take(output, {
|
|
4547
|
+
CidrAllowList: [, _json, `cidrAllowList`],
|
|
4548
|
+
MaxBitrate: [, __expectInt32, `maxBitrate`],
|
|
4549
|
+
MaxLatency: [, __expectInt32, `maxLatency`],
|
|
4550
|
+
MaxSyncBuffer: [, __expectInt32, `maxSyncBuffer`],
|
|
4551
|
+
MinLatency: [, __expectInt32, `minLatency`],
|
|
4552
|
+
Protocol: [, __expectString, `protocol`],
|
|
4553
|
+
RemoteId: [, __expectString, `remoteId`],
|
|
4554
|
+
SenderControlPort: [, __expectInt32, `senderControlPort`],
|
|
4555
|
+
SenderIpAddress: [, __expectString, `senderIpAddress`],
|
|
4556
|
+
SmoothingLatency: [, __expectInt32, `smoothingLatency`],
|
|
4557
|
+
SourceListenerAddress: [, __expectString, `sourceListenerAddress`],
|
|
4558
|
+
SourceListenerPort: [, __expectInt32, `sourceListenerPort`],
|
|
4559
|
+
StreamId: [, __expectString, `streamId`],
|
|
4560
|
+
});
|
|
2917
4561
|
};
|
|
2918
4562
|
const de_VpcInterface = (output, context) => {
|
|
2919
|
-
return {
|
|
2920
|
-
Name: __expectString
|
|
2921
|
-
NetworkInterfaceIds:
|
|
2922
|
-
NetworkInterfaceType: __expectString
|
|
2923
|
-
RoleArn: __expectString
|
|
2924
|
-
SecurityGroupIds:
|
|
2925
|
-
SubnetId: __expectString
|
|
2926
|
-
};
|
|
4563
|
+
return take(output, {
|
|
4564
|
+
Name: [, __expectString, `name`],
|
|
4565
|
+
NetworkInterfaceIds: [, _json, `networkInterfaceIds`],
|
|
4566
|
+
NetworkInterfaceType: [, __expectString, `networkInterfaceType`],
|
|
4567
|
+
RoleArn: [, __expectString, `roleArn`],
|
|
4568
|
+
SecurityGroupIds: [, _json, `securityGroupIds`],
|
|
4569
|
+
SubnetId: [, __expectString, `subnetId`],
|
|
4570
|
+
});
|
|
2927
4571
|
};
|
|
2928
4572
|
const de_VpcInterfaceAttachment = (output, context) => {
|
|
2929
|
-
return {
|
|
2930
|
-
VpcInterfaceName: __expectString
|
|
2931
|
-
};
|
|
4573
|
+
return take(output, {
|
|
4574
|
+
VpcInterfaceName: [, __expectString, `vpcInterfaceName`],
|
|
4575
|
+
});
|
|
2932
4576
|
};
|
|
2933
4577
|
const deserializeMetadata = (output) => ({
|
|
2934
4578
|
httpStatusCode: output.statusCode,
|